code-abyss 1.8.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -22
- package/bin/adapters/claude.js +12 -4
- package/bin/adapters/codex.js +2 -2
- package/bin/install.js +66 -62
- package/bin/lib/skill-registry.js +190 -0
- package/bin/lib/utils.js +9 -3
- package/bin/verify-skills-contract.js +27 -0
- package/config/AGENTS.md +288 -332
- package/config/CLAUDE.md +124 -31
- package/config/codex-config.example.toml +9 -5
- package/config/settings.example.json +13 -4
- package/output-styles/abyss-cultivator.md +166 -303
- package/package.json +3 -2
- package/skills/SKILL.md +102 -0
- package/skills/domains/security/SKILL.md +30 -12
- package/skills/domains/security/red-team.md +0 -1
- package/skills/run_skill.js +35 -38
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const { collectSkills } = require('./lib/skill-registry');
|
|
5
|
+
|
|
6
|
+
function resolveSkillsDir() {
|
|
7
|
+
return process.env.SAGE_SKILLS_DIR
|
|
8
|
+
? path.resolve(process.env.SAGE_SKILLS_DIR)
|
|
9
|
+
: path.join(__dirname, '..', 'skills');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function main() {
|
|
13
|
+
const skillsDir = resolveSkillsDir();
|
|
14
|
+
const skills = collectSkills(skillsDir);
|
|
15
|
+
console.log(`技能契约验证通过: ${skills.length} skills`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (require.main === module) {
|
|
19
|
+
try {
|
|
20
|
+
main();
|
|
21
|
+
} catch (err) {
|
|
22
|
+
console.error(err.message);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = { main, resolveSkillsDir };
|