@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 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
- Install Chiron Skills with `hcm skills install` (targets: `codex`, `claude`), then use
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.
38
- Controlled execution binds to the skills lock written by `skills install`
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
- `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:
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
- ./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
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.