@hcmai/cli 0.9.5 → 0.11.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 +25 -11
- package/dist/index.js +2672 -1372
- package/dist/index.js.map +1 -1
- package/dist/skills/manifest.json +80 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,21 +29,35 @@ 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
|
+
## Project environments
|
|
33
|
+
|
|
34
|
+
A project `env.yaml` can declare `default` and named `environments`, each with
|
|
35
|
+
`endpoint`, `frontend`, `tenant`, optional `roles`, and `danger`. Legacy three-line
|
|
36
|
+
files remain supported. `--env` first matches a project name, then a local slot.
|
|
37
|
+
Connection provenance is printed to stderr; writes to `danger: true` environments
|
|
38
|
+
require `--allow-danger`. Credentials stay in the local identity store.
|
|
39
|
+
|
|
32
40
|
## Delivery projects
|
|
33
41
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
`hcm chiron init` scaffolds a consultant project: `env.yaml`, the working
|
|
43
|
+
directories, and the managed block in `AGENTS.md` / `CLAUDE.md`. Skills come from
|
|
44
|
+
`hcm skills sync` (targets: `codex`, `claude`); the repo-local `codex` target
|
|
45
|
+
maintains the skill index in `AGENTS.md` and mirrors it to an existing `CLAUDE.md`,
|
|
46
|
+
so a dual-agent project shares one locked skill tree
|
|
39
47
|
(`hcm-skills/.hcm-skills.json` or `.claude/skills/.hcm-skills.json`).
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
`hcm open
|
|
43
|
-
|
|
49
|
+
Page acceptance is `hcm chiron page`. It mints the same short-lived
|
|
50
|
+
`hcm open` ticket, drives local Chrome/Chromium headless, and writes a
|
|
51
|
+
non-overwriting PNG under the project's `evidence/` directory. **At least one
|
|
52
|
+
`--expect-text` is mandatory** — a login page, an error page and a blank page all
|
|
53
|
+
produce a screenshot, so "a screenshot exists" is not evidence:
|
|
44
54
|
|
|
45
55
|
```bash
|
|
46
|
-
|
|
47
|
-
--
|
|
48
|
-
--out
|
|
56
|
+
hcm chiron page /dashboard/<id> --env acme-dev --as consultant-acme-dev \
|
|
57
|
+
--expect-text '<dashboard title>' --reject-text '未知组件类型' \
|
|
58
|
+
--out evidence/acme-dev/<date>-dashboard/page.png
|
|
49
59
|
```
|
|
60
|
+
|
|
61
|
+
Exit code is `0` when the page carries every `--expect-text` and none of the
|
|
62
|
+
`--reject-text`, and `3` when it does not; the screenshot is kept either way so a
|
|
63
|
+
human can see whether it was a login page, an error page, or a real gap.
|