mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
Handle nested imported AGENTS edge case
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
e4e5b61596
commit
08bdc3d28e
2 changed files with 71 additions and 1 deletions
|
|
@ -3870,7 +3870,7 @@ export function companyPortabilityService(db: Db, storage?: StorageService) {
|
|||
if (typeof markdownRaw === "string") {
|
||||
const importedInstructionsBody = parseFrontmatterMarkdown(markdownRaw).body;
|
||||
bundleFiles[entryRelativePath] = importedInstructionsBody;
|
||||
if (entryRelativePath !== "AGENTS.md" && !bundleFiles["AGENTS.md"]) {
|
||||
if (entryRelativePath !== "AGENTS.md") {
|
||||
bundleFiles["AGENTS.md"] = importedInstructionsBody;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue