@hcmai/cli 0.26.2 → 0.27.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 +51 -0
- package/dist/index.js +1995 -1543
- package/dist/index.js.map +1 -1
- package/dist/skills/manifest.json +78 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -103,3 +103,54 @@ hcm chiron page /dashboard/<id> --env acme-dev --as consultant-acme-dev \
|
|
|
103
103
|
Exit code is `0` when the page carries every `--expect-text` and none of the
|
|
104
104
|
`--reject-text`, and `3` when it does not; the screenshot is kept either way so a
|
|
105
105
|
human can see whether it was a login page, an error page, or a real gap.
|
|
106
|
+
|
|
107
|
+
## Workspace delivery checks
|
|
108
|
+
|
|
109
|
+
Raw `workspace push` requires Core workspace delivery protocol 1 and `conditionalRawWrite`.
|
|
110
|
+
It hashes only locally added, modified or deleted candidates, checks existence for all
|
|
111
|
+
baseline/local paths, and checkpoints normalized commit receipts per file. Exact desired
|
|
112
|
+
remote values are marked `observed`; an unprovable normalized result stays `UNKNOWN`.
|
|
113
|
+
The overall deadline remains 300 seconds. Mini apps currently have complete-list guards,
|
|
114
|
+
but do not provide conditional writes, complete pagination or full workspace resume.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
hcm workspace inspect --entries --output json
|
|
118
|
+
mkdir -p /tmp/hcm-delivery-review
|
|
119
|
+
hcm workspace cleanup-plan .tools/ --purpose 'temporary logs' --reason 'external backup retained' --owner-declaration --plan /tmp/hcm-delivery-review/cleanup-001.json
|
|
120
|
+
hcm workspace cleanup --plan /tmp/hcm-delivery-review/cleanup-001.json --output json
|
|
121
|
+
hcm workspace release-plan 1.2.3 --plan /tmp/hcm-delivery-review/release-001.json --output json
|
|
122
|
+
hcm workspace release --plan /tmp/hcm-delivery-review/release-001.json --output json
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Review plans outside the workspace. Cleanup sends only the original exact `execution`
|
|
126
|
+
paths and digest, and reports each committed, failed, notExecuted or UNKNOWN outcome.
|
|
127
|
+
Owner declaration and known-consumer checks do not prove absence of every possible use.
|
|
128
|
+
Release plans show the actual patch; unrecognized files still follow the current all-file
|
|
129
|
+
policy. Controlled delivery retains the existing R3 restriction on release.
|
|
130
|
+
|
|
131
|
+
Run these commands from the bound local workspace. Plan files require an existing parent
|
|
132
|
+
outside its real physical root and are created exclusively; use a new filename each time.
|
|
133
|
+
For API boundaries, field-policy failures and recovery, see the
|
|
134
|
+
[workspace workflow](../../docs/how-to/agent-workspace-workflow.md#规模辅助材料清理与受检封箱).
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Standard release lifecycle and scopes (ADR-464)
|
|
138
|
+
|
|
139
|
+
These commands require a Core build that implements ADR-464. They are standard product capabilities.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
hcm workspace release-plan 2.0.0 --policy-version RUNTIME_ASSETS_V2 --plan /tmp/release-2.json
|
|
143
|
+
hcm workspace release --plan /tmp/release-2.json
|
|
144
|
+
hcm workspace cancel-release <releaseId> --reason 'Unused candidate'
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
New previews default to `RUNTIME_ASSETS_V2`. Unknown paths block publication. Choose
|
|
148
|
+
`ALL_WORKSPACE_PATCH_FILES_V1` explicitly to retain the previous all-patch behavior.
|
|
149
|
+
The selected policy is saved with the reviewed digest and sent unchanged for checked creation;
|
|
150
|
+
an older Core ignoring V2 is rejected before saving an executable plan. Existing V1 plans remain compatible.
|
|
151
|
+
|
|
152
|
+
Cancellation requires both workspace ownership and configuration administrator authorization.
|
|
153
|
+
Any deployment/MR history, package installation/recovery dependency or unknown evidence blocks it.
|
|
154
|
+
Release bytes, audit and version reservation remain; cancelled releases cannot be deployed, merged,
|
|
155
|
+
or used for a new workspace. Cancellation disables automatic retries. A lost response remains UNKNOWN;
|
|
156
|
+
read the original release and its cancellation audit before deciding whether to retry that exact ID.
|