@xgspz/cli-skill 0.1.2 → 0.1.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 CHANGED
@@ -2,27 +2,20 @@
2
2
 
3
3
  中枢 CLI Task Center 的独立 API 客户端、命令行和可安装 Skill。业务系统通过它把工作交给已配置的远端 CLI Agent,支持一次性多任务拆解、依赖关系、派发即返回、等待结果和节点 ego 浏览器开关。只调用现有 HTTP API,不修改中枢服务、调度器或 Operator。
4
4
 
5
- **0.1.1 已发布到 npm**,包含普通对话的执行配置、能力读取和按修订号保存。当前源码为 **0.1.2 本地候选**,仅修正文档与版本标识,功能与 0.1.1 相同;不会覆盖已发布版本。执行配置需要配套中枢迁移和节点升级,安装本包不会完成这些服务端步骤。可与已发布的 `@xgspz/cli-ui@0.6.9` 协同使用,各包版本独立。
5
+ **@xgspz/cli-skill@0.1.3 已发布(2026-11-11)**,包含普通对话执行配置、能力读取和按修订号保存。0.1.3 只更新包内说明,命令和功能与 0.1.2、旧命名空间 0.1.1 相同。可与 `@xgspz/cli-ui@0.6.15` 协同使用,各包版本独立;执行配置仍需配套中枢迁移和节点升级,安装本包不会部署服务。
6
6
 
7
7
  ## 安装 Skill
8
8
 
9
- 要求 Node.js 22+。以下安装示例固定使用已核验发布的 0.1.1,支持本文全部命令:
9
+ 要求 Node.js 22+。以下安装示例固定使用已发布的 0.1.3,支持本文全部命令:
10
10
 
11
11
  ```bash
12
- npx -y @xgspz/cli-skill@0.1.1 install --agent codex
13
- npx -y @xgspz/cli-skill@0.1.1 install --agent claude
12
+ npx -y @xgspz/cli-skill@0.1.3 install --agent codex
13
+ npx -y @xgspz/cli-skill@0.1.3 install --agent claude
14
14
  # 或同时安装到两者
15
- npx -y @xgspz/cli-skill@0.1.1 install --agent all
15
+ npx -y @xgspz/cli-skill@0.1.3 install --agent all
16
16
  ```
17
17
 
18
- 验收 0.1.2 时安装本地候选 tarball,并用同版本命令安装 Skill:
19
-
20
- ```bash
21
- npm install -g /path/to/spzxg-cli-skill-0.1.2.tgz
22
- cli-skill install --agent codex
23
- ```
24
-
25
- 0.1.2 尚未发布,当前公开 npm 命令继续使用 0.1.1。历史版本 0.1.0 不支持执行配置命令或 `execution_config` 字段。
18
+ 需要全局安装时使用 `npm i -g @xgspz/cli-skill@0.1.3`,然后运行 `cli-skill install --agent codex`。历史版本 0.1.0 不支持执行配置命令或 `execution_config` 字段。
26
19
 
27
20
  默认安装到 `~/.codex/skills/cli-task-center` 或 `~/.claude/skills/cli-task-center`;Codex 尊重 `CODEX_HOME`。自定义宿主用 `install --dir /path/to/skills`。已有目录时明确报错;确认替换本 Skill 时加 `--force`。无 npm 安装后脚本,不自动修改任何宿主配置。安装后按宿主的技能刷新方式加载,或重开会话。
28
21
 
@@ -50,12 +43,12 @@ Base URL 是中枢根地址;也支持业务代理前缀,例如 `https://busi
50
43
 
51
44
  ```bash
52
45
  # 接受后立即返回 IDs,不后台轮询
53
- npx -y @xgspz/cli-skill@0.1.1 dispatch --input job.json
46
+ npx -y @xgspz/cli-skill@0.1.3 dispatch --input job.json
54
47
  # 接受后等待,最多 60 秒
55
- npx -y @xgspz/cli-skill@0.1.1 dispatch --input job.json --wait --timeout-seconds 60
48
+ npx -y @xgspz/cli-skill@0.1.3 dispatch --input job.json --wait --timeout-seconds 60
56
49
  # 延续已有任务的等待,不新建任务
57
- npx -y @xgspz/cli-skill@0.1.1 wait <job_id> --timeout-seconds 60
58
- npx -y @xgspz/cli-skill@0.1.1 get <job_id>
50
+ npx -y @xgspz/cli-skill@0.1.3 wait <job_id> --timeout-seconds 60
51
+ npx -y @xgspz/cli-skill@0.1.3 get <job_id>
59
52
  ```
60
53
 
61
54
  也支持 `--input -` 从 stdin 读取 JSON。`--browser true|false` 覆盖整个提交中的子任务;省略时保留每个 `tasks[].browser`,缺省 false。true 由现有服务在执行节点准备 ego 浏览器,本机不会启动浏览器。
package/bin/cli-skill.js CHANGED
@@ -4,7 +4,7 @@ import { readFile } from 'node:fs/promises';
4
4
  import { createClientFromEnv } from '../src/client.js';
5
5
  import { installSkill } from '../src/install.js';
6
6
 
7
- const help = `CLI Task Center · @xgspz/cli-skill 0.1.2
7
+ const help = `CLI Task Center · @xgspz/cli-skill 0.1.3
8
8
 
9
9
  Install an agent skill:
10
10
  cli-skill install [--agent codex|claude|all] [--dir <skills-directory>] [--force]
@@ -38,7 +38,7 @@ try {
38
38
  'turn-id': { type: 'string' }, help: { type: 'boolean', short: 'h' }, version: { type: 'boolean', short: 'v' },
39
39
  'task-id': { type: 'string' }, 'expected-revision': { type: 'string' },
40
40
  } });
41
- if (values.version) { process.stdout.write('0.1.2\n'); }
41
+ if (values.version) { process.stdout.write('0.1.3\n'); }
42
42
  else if (values.help || !positionals.length) { process.stdout.write(help); }
43
43
  else {
44
44
  const [command, id, ...extra] = positionals;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xgspz/cli-skill",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI Task Center API client and installable agent skill: dispatch background tasks, wait for results, split dependent work, and enable execution-node ego browsers.",
5
5
  "type": "module",
6
6
  "engines": { "node": ">=22" },
@@ -11,7 +11,7 @@ Use this skill when the user wants work executed by their configured Center and
11
11
 
12
12
  Commands require Node.js 22+ and two environment variables: `CLI_CENTER_BASE_URL` (Center root or business backend proxy URL, without a trailing `/api`) and `CLI_CENTER_TOKEN` (product-line token). The credential stays in the environment; never place it in prompts, JSON job files, skill files, or published artifacts. Do not read an admin token to supply missing product-line configuration.
13
13
 
14
- This Skill accompanies the `@xgspz/cli-skill@0.1.2` documentation/version correction candidate; its commands are unchanged from the published 0.1.1. For the published package, use `npx -y @xgspz/cli-skill@0.1.1` followed by a command below, or an installed 0.1.1 `cli-skill`. To validate the 0.1.2 candidate, use the matching installed command from its local tarball; 0.1.2 is not yet published. Version 0.1.0 lacks the execution-settings commands. Settings still require the matching Center migration and node upgrade; installing the client does not deploy services or migrate a database.
14
+ This Skill accompanies `@xgspz/cli-skill@0.1.3` (published 2026-11-11); its commands are unchanged from 0.1.1 (0.1.3 only refreshes package documentation). Use `npx -y @xgspz/cli-skill@0.1.3` followed by a command below, or an installed `cli-skill`. Version 0.1.0 lacks the execution-settings commands. Settings still require the matching Center migration and node upgrade; installing the client does not deploy services or migrate a database.
15
15
 
16
16
  ## Choose the user's completion contract
17
17