@hcmai/cli 0.4.19 → 0.4.21
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 +15 -0
- package/dist/index.js +1151 -270
- package/dist/index.js.map +1 -1
- package/dist/skills/manifest.json +16 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -18,10 +18,13 @@ Node.js 22 or newer is required.
|
|
|
18
18
|
hcm env add production --endpoint https://hcm.example.com
|
|
19
19
|
hcm login https://hcm.example.com --code <one-time-pairing-code>
|
|
20
20
|
hcm env current
|
|
21
|
+
hcm identity show <identity-alias> --output json
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
The npm package is public. Application credentials are not included in the
|
|
24
25
|
package and are stored locally through the HCM login flow.
|
|
26
|
+
`identity show` uses that alias's stored token to return the live `userId`, `username`,
|
|
27
|
+
`tenantId`, and `roles` without printing the token.
|
|
25
28
|
|
|
26
29
|
Source and release automation are maintained in
|
|
27
30
|
[CNB](https://cnb.cool/hcm/hcm_nx_cli).
|
|
@@ -30,5 +33,17 @@ Source and release automation are maintained in
|
|
|
30
33
|
|
|
31
34
|
Install Chiron Skills with `hcm skills install` (targets: `codex`, `claude`), then use
|
|
32
35
|
`hcm delivery assess`, `prepare`, and `execute` for the command risk contract.
|
|
36
|
+
The repo-local `codex` target maintains the skill index in `AGENTS.md` and mirrors it
|
|
37
|
+
to an existing `CLAUDE.md`, so a scaffolded dual-agent project shares one locked skill tree.
|
|
33
38
|
Controlled execution binds to the skills lock written by `skills install`
|
|
34
39
|
(`hcm-skills/.hcm-skills.json` or `.claude/skills/.hcm-skills.json`).
|
|
40
|
+
|
|
41
|
+
`hcm delivery init` also generates `page-acceptance.sh`. It consumes a short-lived
|
|
42
|
+
`hcm open --print-url` ticket in local Chrome/Chromium, requires at least one visible
|
|
43
|
+
text assertion, and writes a non-overwriting PNG under the project's `证据/` directory:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
./page-acceptance.sh --env acme-dev --as consultant-acme-dev \
|
|
47
|
+
--path /dashboard/<id> --expect-text '<dashboard title>' \
|
|
48
|
+
--out 证据/acme-dev/<date>-dashboard/page.png
|
|
49
|
+
```
|