cli-calctool 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 CHANGED
@@ -1,14 +1,12 @@
1
- # calctool — 按需生成万能计算工具
1
+ # cli-calctool
2
2
 
3
3
  从 CLI.Tax 安装并运行 calctool 技能:输入领域需求(如"我是财务,想要一个经营健康诊断工具"),
4
4
  生成可执行、可验证、可发布的在线计算工具——支持自定义指标、自定义公式逻辑、上传内容自动识别。
5
5
 
6
- ## 命令
6
+ ```bash
7
+ npx cli-calctool@latest install
8
+ ```
7
9
 
8
- - `npx <package-url> install [directory]` — 安装 skill 到当前 IDE
9
- - `npx <package-url> run` — 技能握手:capabilities + intake 提问,保存 CALCTOOL-REQUIREMENTS.json
10
+ Source: https://github.com/88208555/calctool-clitax.git
10
11
 
11
- ## 运行时
12
-
13
- `calctool.skill.request/1.0` 协议,端点 `https://cli.tax/KKyA6xljUX`,
14
- 操作:capabilities / help / intake / validate / compile-inline(确定性引擎定义生成)。
12
+ `calctool.skill.request/1.0` 协议,端点 `https://cli.tax/KKyA6xljUX`。
package/cli.mjs CHANGED
@@ -128,24 +128,22 @@ async function install(explicit) {
128
128
  const previous = readMeta(target)
129
129
  await copyFile(join(PACKAGE_SKILL_DIR, 'SKILL.md'), join(target, 'SKILL.md'))
130
130
  await copyFile(join(PACKAGE_SKILL_DIR, 'skill.json'), join(target, 'skill.json'))
131
+ const installedVersion = JSON.parse(readFileSync(join(target, 'skill.json'), 'utf8')).version
132
+ if (!installedVersion) throw new Error('skill.json is missing version')
131
133
  const localVersion = process.env.npm_package_version ?? ''
132
- const latest = await fetchLatestVersion()
133
134
  await writeFile(join(target, INSTALL_META), `${JSON.stringify({
134
135
  source: 'KKyA6xljUX',
135
136
  slug: 'calctool',
136
- version: latest?.version ?? '',
137
+ version: installedVersion,
137
138
  packageVersion: localVersion,
138
139
  endpoint: ENDPOINT,
139
140
  installedAt: new Date().toISOString(),
140
141
  }, null, 2)}\n`)
141
- if (previous?.version && latest?.version && previous.version !== latest.version) {
142
+ if (previous?.version && previous.version !== installedVersion) {
142
143
  console.log(`calctool skill updated: ${target}`)
143
- console.log(` ⤴ ${previous.version} → ${latest.version}`)
144
+ console.log(` ⤴ ${previous.version} → ${installedVersion}`)
144
145
  } else {
145
- console.log(`calctool skill installed: ${target}${latest?.version ? ` (${latest.version})` : ''}`)
146
- }
147
- if (latest?.version) {
148
- console.log(`Latest version on cli.tax: ${latest.version}`)
146
+ console.log(`calctool skill installed: ${target} (${installedVersion})`)
149
147
  }
150
148
  console.log('Next: return to your IDE conversation and describe the calculator tool you want.')
151
149
  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-calctool",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Calctool skill installer for CLI.Tax: generate a runnable online calculator from a domain need.",
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/calctool-clitax.git"
21
+ },
18
22
  "license": "UNLICENSED",
19
23
  "keywords": [
20
24
  "cli.tax",
package/skill/SKILL.md CHANGED
@@ -53,7 +53,7 @@ description: '按需生成「万能计算工具」:用户输入一个领域需
53
53
 
54
54
  ## Official catalog hops
55
55
 
56
- 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.
56
+ 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.
57
57
 
58
58
  ## 核心原则
59
59
 
package/skill/skill.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "schemaVersion": "calctool.skill.request/1.0",
6
6
  "endpoint": "https://cli.tax/KKyA6xljUX",
7
7
  "method": "POST",
8
- "version": "v1.0.2",
8
+ "version": "v1.0.4",
9
9
  "type": "Skill"
10
10
  }