@hcmai/cli 0.30.0 → 0.31.1
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 +19 -0
- package/dist/index.js +791 -449
- package/dist/index.js.map +1 -1
- package/dist/skills/hcm-delivery-seed/SKILL.md +2 -1
- package/dist/skills/hcm-env-transfer/SKILL.md +11 -5
- package/dist/skills/llms.txt +2 -2
- package/dist/skills/manifest.json +15 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,6 +29,19 @@ package and are stored locally through the HCM login flow.
|
|
|
29
29
|
Source and release automation are maintained in
|
|
30
30
|
[CNB](https://cnb.cool/hcm/hcm_nx_cli).
|
|
31
31
|
|
|
32
|
+
## JSON 参数文件
|
|
33
|
+
|
|
34
|
+
`hcm action` 支持 `--params '<JSON>'` 或 `--params-file <path>`;
|
|
35
|
+
`hcm create/update` 对应使用 `--data` 或 `--data-file`。两种来源互斥,顶层必须是 JSON 对象。
|
|
36
|
+
只有确认动作无参数时,才省略 `--params/--params-file` 或使用 `--params '{}'`。
|
|
37
|
+
合法的 `{}` 与空文件不同:空文件、纯空白和截断 JSON 都会报 `INVALID_JSON`,不会补成 `{}`。
|
|
38
|
+
|
|
39
|
+
CLI 只读取调用方指定的文件,不自建参数临时文件。并发调用时,每个任务须使用独立文件,
|
|
40
|
+
并等待文件写入完成、关闭后再调用 CLI;不要让多个任务共用一个仍在写入的路径。
|
|
41
|
+
文件解析失败时,诊断会显示实际读取的绝对路径、字节数和下一步,不输出 JSON 原文。
|
|
42
|
+
此错误发生在鉴权和业务请求之前,不代表服务端 Action 已执行或失败;CLI 不会自动重读文件、
|
|
43
|
+
重试或重发写动作。先修正参数文件,再明确决定是否执行一次调用。
|
|
44
|
+
|
|
32
45
|
## 安装包
|
|
33
46
|
|
|
34
47
|
```bash
|
|
@@ -113,6 +126,12 @@ holds the consultant's own skills, which the CLI never writes. Same id on both
|
|
|
113
126
|
sides: `local/` shadows `sync/`. The `claude` target stays flat
|
|
114
127
|
(`.claude/skills/`) because Claude Code only discovers one level deep.
|
|
115
128
|
|
|
129
|
+
A skill-resource HTTP 404 reports the requested path (including deployment
|
|
130
|
+
prefixes) and the server trace ID when available. Check `hcm skills list` and
|
|
131
|
+
whether the serving instances have the same catalog and resources; a missing
|
|
132
|
+
reference does not mean the whole skill is absent. The command still fails and
|
|
133
|
+
does not automatically retry.
|
|
134
|
+
|
|
116
135
|
Page acceptance is `hcm chiron page`. It mints the same short-lived
|
|
117
136
|
`hcm open` ticket, drives a headless Chromium through Playwright (the
|
|
118
137
|
`chromium_headless_shell-*` build in your Playwright cache — the one Playwright
|