mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
Handle nested imported AGENTS edge case
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
e4e5b61596
commit
08bdc3d28e
2 files changed
+71
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user