mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-17 18:46:11 +02:00
fix: namespace cursor agent installs
This commit is contained in:
parent
5881554a1c
commit
e1d6d853f7
9 changed files with 121 additions and 7 deletions
|
|
@ -136,7 +136,8 @@ function runTests() {
|
|||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'rules', 'common-agents.mdc')));
|
||||
assert.ok(!fs.existsSync(path.join(projectDir, '.cursor', 'rules', 'common-agents.md')));
|
||||
assert.ok(!fs.existsSync(path.join(projectDir, '.cursor', 'rules', 'README.mdc')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'agents', 'architect.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'agents', 'ecc-architect.md')));
|
||||
assert.ok(!fs.existsSync(path.join(projectDir, '.cursor', 'agents', 'architect.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'commands', 'plan.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'hooks.json')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.cursor', 'mcp.json')));
|
||||
|
|
|
|||
|
|
@ -93,6 +93,21 @@ function runTests() {
|
|||
);
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('README documents Cursor agent namespace and loading caveat', () => {
|
||||
assert.ok(
|
||||
readme.includes('`.cursor/agents/ecc-*.md`'),
|
||||
'README should document the Cursor agent namespace'
|
||||
);
|
||||
assert.ok(
|
||||
readme.includes('Cursor-native loading behavior can vary by Cursor build.'),
|
||||
'README should avoid overclaiming Cursor agent loading semantics'
|
||||
);
|
||||
assert.ok(
|
||||
readme.includes('ECC does not install root `AGENTS.md` into `.cursor/`.'),
|
||||
'README should explain why root AGENTS.md is not copied into Cursor context'
|
||||
);
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('README explains plugin-path cleanup and rules scoping', () => {
|
||||
assert.ok(
|
||||
readme.includes('remove the plugin from Claude Code'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue