cli-swarm 1.0.3 → 1.0.4
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/cli.mjs +6 -6
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/skill.json +1 -1
package/cli.mjs
CHANGED
|
@@ -114,21 +114,21 @@ async function install(explicit) {
|
|
|
114
114
|
const previous = readMeta(target)
|
|
115
115
|
await copyFile(join(PACKAGE_SKILL_DIR, 'SKILL.md'), join(target, 'SKILL.md'))
|
|
116
116
|
await copyFile(join(PACKAGE_SKILL_DIR, 'skill.json'), join(target, 'skill.json'))
|
|
117
|
-
const
|
|
117
|
+
const installedVersion = JSON.parse(readFileSync(join(target, 'skill.json'), 'utf8')).version
|
|
118
|
+
if (!installedVersion) throw new Error('skill.json is missing version')
|
|
118
119
|
await writeFile(join(target, INSTALL_META), `${JSON.stringify({
|
|
119
120
|
source: 'zj7fTPVh4p',
|
|
120
121
|
slug: 'swarm',
|
|
121
|
-
version:
|
|
122
|
+
version: installedVersion,
|
|
122
123
|
endpoint: ENDPOINT,
|
|
123
124
|
installedAt: new Date().toISOString(),
|
|
124
125
|
}, null, 2)}\n`)
|
|
125
|
-
if (previous?.version &&
|
|
126
|
+
if (previous?.version && previous.version !== installedVersion) {
|
|
126
127
|
console.log(`swarm skill updated: ${target}`)
|
|
127
|
-
console.log(` ⤴ ${previous.version} → ${
|
|
128
|
+
console.log(` ⤴ ${previous.version} → ${installedVersion}`)
|
|
128
129
|
} else {
|
|
129
|
-
console.log(`swarm skill installed: ${target}
|
|
130
|
+
console.log(`swarm skill installed: ${target} (${installedVersion})`)
|
|
130
131
|
}
|
|
131
|
-
if (latest?.version) console.log(`Latest version on cli.tax: ${latest.version}`)
|
|
132
132
|
console.log('Next: return to your IDE conversation and describe the swarm goal.')
|
|
133
133
|
console.log('The IDE agent reads the installed SKILL.md, asks the intake questions,')
|
|
134
134
|
console.log('and then orchestrates the swarm: org-chart → dispatch → traffic-light → ops → security-guard.')
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -52,7 +52,7 @@ intake 时可选择 `blueprintEnabled`:任务先交给 Blueprint 技能规划
|
|
|
52
52
|
|
|
53
53
|
## Official catalog hops
|
|
54
54
|
|
|
55
|
-
After `capabilities`, read `officialCatalog`. Default allowlist is official skills. Call another skill only when its capability matches this demand. User-named extras enter only when the user names them; then confirm that skill's capabilities before invoke. Do not call chain-unrelated or self-extended skills.
|
|
55
|
+
After `capabilities`, read `officialCatalog`. Default allowlist is official skills. Call another skill only when its capability matches this demand. User-named extras enter only when the user names them; then confirm that skill's capabilities before invoke. Do not call chain-unrelated or self-extended skills. Image npm package is `cli-images`. Quick start: `npx cli-images@latest install`. Never install `cli-image`: that is a third-party terminal image viewer, unrelated to CLI.Tax.
|
|
56
56
|
|
|
57
57
|
## 核心原则
|
|
58
58
|
|