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 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 latest = await fetchLatestVersion()
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: latest?.version ?? '',
122
+ version: installedVersion,
122
123
  endpoint: ENDPOINT,
123
124
  installedAt: new Date().toISOString(),
124
125
  }, null, 2)}\n`)
125
- if (previous?.version && latest?.version && previous.version !== latest.version) {
126
+ if (previous?.version && previous.version !== installedVersion) {
126
127
  console.log(`swarm skill updated: ${target}`)
127
- console.log(` ⤴ ${previous.version} → ${latest.version}`)
128
+ console.log(` ⤴ ${previous.version} → ${installedVersion}`)
128
129
  } else {
129
- console.log(`swarm skill installed: ${target}${latest?.version ? ` (${latest.version})` : ''}`)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-swarm",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Swarm skill installer for CLI.Tax: orchestrate N sub-agents with enterprise org-chart rules.",
5
5
  "type": "module",
6
6
  "bin": {
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
 
package/skill/skill.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "schemaVersion": "swarm.skill.request/1.0",
6
6
  "endpoint": "https://cli.tax/zj7fTPVh4p",
7
7
  "method": "POST",
8
- "version": "v1.0.2",
8
+ "version": "v1.0.4",
9
9
  "type": "Skill"
10
10
  }