cli-aimlock 1.0.2 → 1.0.3
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 +1 -1
- package/cli.mjs +6 -6
- package/package.json +1 -1
- package/skill/SKILL.md +2 -2
- package/skill/skill.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Aimlock — 智能目标 skill(CLI.Tax 发布)。
|
|
|
5
5
|
- 把需求锁成可执行目标,阻止思考漂移、执行漂移、范围膨胀
|
|
6
6
|
- Lock / Probe / Swarm 三档:小改不调蜂群;大改才派单
|
|
7
7
|
- 改前文件快照,禁止创建 git 分支
|
|
8
|
-
- 按目标调用 Blueprint、Swarm、Calctool;需要出图时调用 Image
|
|
8
|
+
- 按目标调用 Blueprint、Swarm、Calctool;需要出图时调用 Image(`npx cli-images@latest install`,禁止安装 `cli-image`)
|
|
9
9
|
|
|
10
10
|
安装:`npx cli-aimlock@latest install`
|
|
11
11
|
|
package/cli.mjs
CHANGED
|
@@ -89,21 +89,21 @@ async function install(explicit) {
|
|
|
89
89
|
const previous = readMeta(target)
|
|
90
90
|
await copyFile(join(PACKAGE_SKILL_DIR, 'SKILL.md'), join(target, 'SKILL.md'))
|
|
91
91
|
await copyFile(join(PACKAGE_SKILL_DIR, 'skill.json'), join(target, 'skill.json'))
|
|
92
|
-
const
|
|
92
|
+
const installedVersion = JSON.parse(readFileSync(join(target, 'skill.json'), 'utf8')).version
|
|
93
|
+
if (!installedVersion) throw new Error('skill.json is missing version')
|
|
93
94
|
await writeFile(join(target, INSTALL_META), `${JSON.stringify({
|
|
94
95
|
source: 'R3mQ8kWpXn',
|
|
95
96
|
slug: 'aimlock',
|
|
96
|
-
version:
|
|
97
|
+
version: installedVersion,
|
|
97
98
|
endpoint: ENDPOINT,
|
|
98
99
|
installedAt: new Date().toISOString(),
|
|
99
100
|
}, null, 2)}\n`)
|
|
100
|
-
if (previous?.version &&
|
|
101
|
+
if (previous?.version && previous.version !== installedVersion) {
|
|
101
102
|
console.log(`aimlock skill updated: ${target}`)
|
|
102
|
-
console.log(` ⤴ ${previous.version} → ${
|
|
103
|
+
console.log(` ⤴ ${previous.version} → ${installedVersion}`)
|
|
103
104
|
} else {
|
|
104
|
-
console.log(`aimlock skill installed: ${target}
|
|
105
|
+
console.log(`aimlock skill installed: ${target} (${installedVersion})`)
|
|
105
106
|
}
|
|
106
|
-
if (latest?.version) console.log(`Latest version on cli.tax: ${latest.version}`)
|
|
107
107
|
console.log('Next: return to your IDE and describe the aim. Do not edit code until Aimlock classifies and gates mutate.')
|
|
108
108
|
}
|
|
109
109
|
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -77,7 +77,7 @@ Call a hop only when `call` is true. That means the hop's capability matches thi
|
|
|
77
77
|
- Do not call self-extended or marketplace extras.
|
|
78
78
|
- Extra skills enter the candidate list only when the user names them (`userSpecifiedSkills`). Then call that skill's `capabilities` and invoke only if its capability matches the demand.
|
|
79
79
|
|
|
80
|
-
Do not call Image for ordinary code edits. Do not call Calctool unless the aim is a calculator tool.
|
|
80
|
+
Do not call Image for ordinary code edits. Do not call Calctool unless the aim is a calculator tool. 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.
|
|
81
81
|
|
|
82
82
|
### Interrupt
|
|
83
83
|
|
|
@@ -124,4 +124,4 @@ User: 修支付回调的状态机,可能有上下游.
|
|
|
124
124
|
|
|
125
125
|
User: 根据这个商品说明生成三张主图.
|
|
126
126
|
|
|
127
|
-
`goalKind`: `image`. `skill-route` returns Image with `call: true`. The agent uses the Image skill to generate pictures. Aimlock still owns the aim, keep-alive, and interrupt rules.
|
|
127
|
+
`goalKind`: `image`. `skill-route` returns Image with `call: true`. The agent uses the Image skill to generate pictures. Install Image with `npx cli-images@latest install`. Never install `cli-image`. Aimlock still owns the aim, keep-alive, and interrupt rules.
|