mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-13 13:17:55 +02:00
fix(install): exclude ECC skills from antigravity install target (#2680)
* fix: exclude ECC skills from antigravity install target * test(install): cover antigravity skills exclusion Two tests encoded the collision the parent commit fixes. install-manifests used skills/example as its example of a supported antigravity path; it now asserts skills are filtered and uses commands/example for the positive case, so the test still proves supported paths survive filtering. install-apply asserted .agent/skills/tdd-workflow/SKILL.md exists. That directory is antigravity's agent directory and already receives ECC agents/, so the assertion was pinning ECC skills and ECC agents to the same destination. Inverted, with the reason recorded inline. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Calum Reeves <reevesc88@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
Calum Reeves
parent
8a97868b5b
commit
f235549cb8
@@ -7,7 +7,7 @@ const {
|
||||
normalizeRelativePath,
|
||||
} = require('./helpers');
|
||||
|
||||
const SUPPORTED_SOURCE_PREFIXES = ['rules', 'commands', 'agents', 'skills', '.agents', 'AGENTS.md'];
|
||||
const SUPPORTED_SOURCE_PREFIXES = ['rules', 'commands', 'agents', '.agents', 'AGENTS.md'];
|
||||
|
||||
function supportsAntigravitySourcePath(sourceRelativePath) {
|
||||
const normalizedPath = normalizeRelativePath(sourceRelativePath);
|
||||
|
||||
@@ -846,7 +846,7 @@ function runTests() {
|
||||
id: 'unsupported-antigravity',
|
||||
kind: 'skills',
|
||||
description: 'Unsupported',
|
||||
paths: ['.cursor', 'skills/example'],
|
||||
paths: ['.cursor', 'skills/example', 'commands/example'],
|
||||
targets: ['antigravity'],
|
||||
dependencies: [],
|
||||
defaultInstall: false,
|
||||
@@ -875,8 +875,12 @@ function runTests() {
|
||||
'Unsupported antigravity paths should be filtered from planned operations'
|
||||
);
|
||||
assert.ok(
|
||||
plan.operations.some(operation => operation.sourceRelativePath === 'skills/example'),
|
||||
'Supported antigravity skill paths should still be planned'
|
||||
plan.operations.every(operation => operation.sourceRelativePath !== 'skills/example'),
|
||||
'ECC skills should be filtered: antigravity .agent/skills holds ECC agents'
|
||||
);
|
||||
assert.ok(
|
||||
plan.operations.some(operation => operation.sourceRelativePath === 'commands/example'),
|
||||
'Supported antigravity source paths should still be planned'
|
||||
);
|
||||
} finally {
|
||||
cleanupTestRepo(repoRoot);
|
||||
|
||||
@@ -580,7 +580,10 @@ function runTests() {
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'rules', 'common-coding-style.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'skills', 'architect.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'workflows', 'plan.md')));
|
||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'skills', 'tdd-workflow', 'SKILL.md')));
|
||||
// .agent/skills is where antigravity keeps its agents, and ECC agents are
|
||||
// already mapped there. Installing ECC skills into the same directory made
|
||||
// the two collide, so skills are no longer an antigravity source path.
|
||||
assert.ok(!fs.existsSync(path.join(projectDir, '.agent', 'skills', 'tdd-workflow', 'SKILL.md')));
|
||||
|
||||
const state = readJson(path.join(projectDir, '.agent', 'ecc-install-state.json'));
|
||||
assert.strictEqual(state.request.profile, 'core');
|
||||
|
||||
Reference in New Issue
Block a user