cli-blueprint 1.0.2 → 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/README.md +3 -23
- package/cli.mjs +6 -8
- package/package.json +5 -1
- package/skill/SKILL.md +1 -1
- package/skill/skill.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cli-blueprint
|
|
2
2
|
|
|
3
3
|
Install and run the Blueprint skill from [CLI.Tax](https://cli.tax/blueprint).
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx
|
|
6
|
+
npx cli-blueprint@latest install
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Installs the Blueprint skill into the current IDE skills directory
|
|
@@ -11,27 +11,7 @@ Installs the Blueprint skill into the current IDE skills directory
|
|
|
11
11
|
so the IDE agent can discover the protocol and compile goals into
|
|
12
12
|
implementation-ready engineering blueprints.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
npx clitaxio@latest run wvz6zmRWmX
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Runs the skill handshake in the terminal: it prints the capability address,
|
|
19
|
-
method, and example request so the IDE agent can read the installed SKILL.md
|
|
20
|
-
and take the intake questions before calling.
|
|
14
|
+
Source: https://github.com/88208555/blueprint-clitax.git
|
|
21
15
|
|
|
22
16
|
The live endpoint is `https://cli.tax/wvz6zmRWmX` and speaks
|
|
23
17
|
`blueprint.skill.request/1.0`.
|
|
24
|
-
|
|
25
|
-
## Distribution
|
|
26
|
-
|
|
27
|
-
No npm account is required. The installer tarball is hosted on the platform
|
|
28
|
-
itself and mirrored to the object storage download folder `cli-downloads/`:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
pnpm pack:blueprint
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
`scripts/pack-blueprint-cli.mjs` packs this directory into
|
|
35
|
-
`apps/web/public/cli-downloads/clitax-wvz6zmRWmX.tgz`; the production deploy
|
|
36
|
-
uploads every file in that folder to the object storage bucket under the
|
|
37
|
-
dedicated `cli-downloads/` key prefix.
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-blueprint",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Blueprint skill installer for CLI.Tax: compile one goal into an executable, verifiable engineering blueprint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=18"
|
|
17
17
|
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/88208555/blueprint-clitax.git"
|
|
21
|
+
},
|
|
18
22
|
"license": "UNLICENSED",
|
|
19
23
|
"keywords": [
|
|
20
24
|
"cli.tax",
|
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
|
|