fix: prefer cursor native hooks during install

This commit is contained in:
Affaan Mustafa
2026-04-13 00:07:15 -07:00
parent 30f6ae4253
commit 9e607ebb30
3 changed files with 150 additions and 38 deletions

View File

@@ -124,11 +124,11 @@ function runTests() {
);
assert.ok(
plan.operations.some(operation => (
operation.sourceRelativePath === '.cursor/rules/common-agents.md'
operation.sourceRelativePath === 'rules/common/agents.md'
&& operation.destinationPath === path.join(projectRoot, '.cursor', 'rules', 'common-agents.mdc')
&& operation.strategy === 'flatten-copy'
)),
'Should flatten Cursor platform rules into .mdc files'
'Should produce Cursor .mdc rules while preferring rules-core over duplicate platform copies'
);
})) passed++; else failed++;