mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-17 05:22:17 +00:00
fix(skills-health): make the one-off checkout fallback explicit (#3865)
commands-core copies scripts/lib into the Claude config root, so it does not repair a marketplace plugin installation. Lead with a direct dashboard run from a full checkout and keep commands-core as the non-marketplace reinstall path. Co-Authored-By: TRAE <noreply@trae.ai>
This commit is contained in:
1 parent
a496ab1686
commit
0c2a542d20
2 files changed
+4
-1
No files matched your search
@@ -15,7 +15,8 @@ try {
|
||||
if (error && error.code === 'MODULE_NOT_FOUND' && missing && /skill-evolution/.test(error.message)) {
|
||||
console.error(
|
||||
`skills-health could not load ${missing}; this installation is missing part of scripts/lib/skill-evolution.\n` +
|
||||
'Run this from a full ECC checkout: node scripts/install-apply.js --target <host> --modules commands-core'
|
||||
'For a one-off report, run from a full ECC checkout: node scripts/skills-health.js --dashboard. ' +
|
||||
'For a non-marketplace install, select commands-core: node scripts/install-apply.js --target <host> --modules commands-core.'
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ if (
|
||||
});
|
||||
assert.strictEqual(result.status, 1);
|
||||
assert.match(result.stderr, /could not load \.\/lib\/skill-evolution\/health/);
|
||||
assert.match(result.stderr, /skills-health\.js --dashboard/);
|
||||
assert.match(result.stderr, /--modules commands-core/);
|
||||
assert.match(result.stderr, /full ECC checkout/);
|
||||
assert.doesNotMatch(result.stderr, /Cannot find module/);
|
||||
@@ -67,6 +68,7 @@ if (
|
||||
});
|
||||
assert.strictEqual(result.status, 1);
|
||||
assert.match(result.stderr, /could not load \.\.\/utils/);
|
||||
assert.match(result.stderr, /skills-health\.js --dashboard/);
|
||||
assert.match(result.stderr, /--modules commands-core/);
|
||||
assert.doesNotMatch(result.stderr, /Cannot find module/);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user