mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-30 22:13:28 +08:00
fix: avoid cursor nested AGENTS context pollution
This commit is contained in:
committed by
Affaan Mustafa
parent
95ce9eaaeb
commit
d49f0329a9
@@ -133,6 +133,12 @@ module.exports = createInstallTargetAdapter({
|
||||
destinationPath: path.join(targetRoot, 'mcp.json'),
|
||||
});
|
||||
|
||||
if (sourceRelativePath === 'AGENTS.md') {
|
||||
// Cursor treats nested AGENTS.md files as directory context; do not
|
||||
// install ECC's root project identity into a host project's .cursor/.
|
||||
return [];
|
||||
}
|
||||
|
||||
if (sourceRelativePath === 'rules') {
|
||||
return takeUniqueOperations(createFlatRuleOperations({
|
||||
moduleId: module.id,
|
||||
|
||||
Reference in New Issue
Block a user