@hcmai/cli 0.27.4 → 0.29.0
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 +32 -0
- package/dist/index.js +1973 -983
- package/dist/index.js.map +1 -1
- package/dist/skills/manifest.json +61 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,6 +29,38 @@ 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
|
+
## 安装包
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
hcm package pack ./my-package/v1.0.0 --out ./my-package.hcmpkg
|
|
36
|
+
hcm package install ./my-package.hcmpkg --env sandbox --output json
|
|
37
|
+
hcm package status <runId> --env sandbox --output json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
安装包 = `extensions:` 扩展资产 + `models:` 数据。`hcm datapackage` 为同义,旧名。
|
|
41
|
+
离线打包校验路径、文本类型、UTF-8、4MB 单文件与 32MB 扩展总量;只从制品副本剥离
|
|
42
|
+
metas 的 `fields[].definitionId`。数据 UUID 仅允许本包显式行 id 或 `opaque_uuid_fields`
|
|
43
|
+
声明的非引用字段;扩展 UUID 一律拒绝,轻应用按编码取数。
|
|
44
|
+
安装等锁事实写 stderr;本机等待超时退出 3,JSON 保留 `timedOut: true`,服务端继续执行。
|
|
45
|
+
|
|
46
|
+
## LLM 能力探针
|
|
47
|
+
|
|
48
|
+
客户私有化模型出问题时,用后端实际调用路径探测能力与故障归属;会调用模型并计入租户预算。
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
hcm llm probe --output table
|
|
52
|
+
hcm llm probe --config <id> --items tool.single,tool.result_roundtrip --budget-ms 90000 --repeats 3 --output json
|
|
53
|
+
hcm llm probe --config <id> --no-control-leg --deep
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
不给 `--config` 时,按 `purpose=LLM AND isDefault=true` 查询,必须恰好一行;否则列出候选
|
|
57
|
+
id / modelName 与选择命令。仅发送显式给出的参数,缺省预算、重复次数和对照腿由 Core 决定
|
|
58
|
+
(默认预算 90000ms、对照腿开启)。`--deep` 加测上下文声明窗口的 80%。
|
|
59
|
+
表格一项一行,显示「找谁」与对照腿,末尾显示 summary 全部计数、evaluated/expected 和 ownersOfFailures;
|
|
60
|
+
JSON 输出 ActionResponse.data 中的探针结果,保留原字段与顺序(含 summary.digest),提示走 stderr。
|
|
61
|
+
PASS / FAIL / INCOMPLETE 分别退出 0 / 1 / 3;未知 verdict 报原值并退出 1。
|
|
62
|
+
老 Core 没有 Action 时返回 `LLM_PROBE_UNAVAILABLE`、退出 3,按提示升级 Core。
|
|
63
|
+
|
|
32
64
|
## Workspace revision conflicts
|
|
33
65
|
|
|
34
66
|
`hcm workspace pull` downloads workspace files and records a local snapshot. It
|