mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: avoid cursor nested AGENTS context pollution
This commit is contained in:
parent
95ce9eaaeb
commit
d49f0329a9
2 changed files with 36 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue