@hcmai/cli 0.10.0 → 0.11.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 CHANGED
@@ -39,19 +39,25 @@ require `--allow-danger`. Credentials stay in the local identity store.
39
39
 
40
40
  ## Delivery projects
41
41
 
42
- Install Chiron Skills with `hcm skills install` (targets: `codex`, `claude`), then use
43
- `hcm delivery assess`, `prepare`, and `execute` for the command risk contract.
44
- The repo-local `codex` target maintains the skill index in `AGENTS.md` and mirrors it
45
- to an existing `CLAUDE.md`, so a scaffolded dual-agent project shares one locked skill tree.
46
- 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
47
47
  (`hcm-skills/.hcm-skills.json` or `.claude/skills/.hcm-skills.json`).
48
48
 
49
- `hcm delivery init` also generates `page-acceptance.sh`. It consumes a short-lived
50
- `hcm open --print-url` ticket in local Chrome/Chromium, requires at least one visible
51
- 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:
52
54
 
53
55
  ```bash
54
- ./page-acceptance.sh --env acme-dev --as consultant-acme-dev \
55
- --path /dashboard/<id> --expect-text '<dashboard title>' \
56
- --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
57
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.