cli-blueprint 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 -8
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/skill.json +1 -1
package/cli.mjs
CHANGED
|
@@ -116,24 +116,22 @@ async function install(explicit) {
|
|
|
116
116
|
const previous = readMeta(target)
|
|
117
117
|
await copyFile(join(PACKAGE_SKILL_DIR, 'SKILL.md'), join(target, 'SKILL.md'))
|
|
118
118
|
await copyFile(join(PACKAGE_SKILL_DIR, 'skill.json'), join(target, 'skill.json'))
|
|
119
|
+
const installedVersion = JSON.parse(readFileSync(join(target, 'skill.json'), 'utf8')).version
|
|
120
|
+
if (!installedVersion) throw new Error('skill.json is missing version')
|
|
119
121
|
const localVersion = process.env.npm_package_version ?? ''
|
|
120
|
-
const latest = await fetchLatestVersion()
|
|
121
122
|
await writeFile(join(target, INSTALL_META), `${JSON.stringify({
|
|
122
123
|
source: 'wvz6zmRWmX',
|
|
123
124
|
slug: 'blueprint',
|
|
124
|
-
version:
|
|
125
|
+
version: installedVersion,
|
|
125
126
|
packageVersion: localVersion,
|
|
126
127
|
endpoint: ENDPOINT,
|
|
127
128
|
installedAt: new Date().toISOString(),
|
|
128
129
|
}, null, 2)}\n`)
|
|
129
|
-
if (previous?.version &&
|
|
130
|
+
if (previous?.version && previous.version !== installedVersion) {
|
|
130
131
|
console.log(`Blueprint skill updated: ${target}`)
|
|
131
|
-
console.log(` ⤴ ${previous.version} → ${
|
|
132
|
+
console.log(` ⤴ ${previous.version} → ${installedVersion}`)
|
|
132
133
|
} else {
|
|
133
|
-
console.log(`Blueprint skill installed: ${target}
|
|
134
|
-
}
|
|
135
|
-
if (latest?.version) {
|
|
136
|
-
console.log(`Latest version on cli.tax: ${latest.version}`)
|
|
134
|
+
console.log(`Blueprint skill installed: ${target} (${installedVersion})`)
|
|
137
135
|
}
|
|
138
136
|
console.log('Next: return to your IDE conversation and state the goal.')
|
|
139
137
|
console.log('The IDE agent reads the installed SKILL.md, asks you the intake questions,')
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -42,7 +42,7 @@ POST JSON to the endpoint with an `input` wrapper:
|
|
|
42
42
|
|
|
43
43
|
## Official catalog hops
|
|
44
44
|
|
|
45
|
-
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.
|
|
45
|
+
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.
|
|
46
46
|
|
|
47
47
|
## Safety rules
|
|
48
48
|
|