@hcmai/cli 0.23.0 → 0.25.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,6 +29,37 @@ 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
+ ## Workspace revision conflicts
33
+
34
+ `hcm workspace pull` downloads workspace files and records a local snapshot. It
35
+ does not reset the server's baseline against active. A mini app's `target contains
36
+ existing files` error protects local files: keep the original directory and pull
37
+ into a new empty directory, or use `--force` only after confirming those local
38
+ files may be overwritten.
39
+
40
+ For a confirmed workspace/active revision conflict:
41
+
42
+ ```bash
43
+ hcm workspace rebase --workspace <key> --dry-run --output json
44
+ hcm workspace rebase --workspace <key> --dry-run --plan /tmp/rebase-plan.json
45
+ # Edit reason and each path's resolution before applying.
46
+ hcm workspace rebase --workspace <key> --plan /tmp/rebase-plan.json --output json
47
+ ```
48
+
49
+ Keep the same `--env` / `--as`; `--dir` can supply the local workspace binding.
50
+ Without `--plan`, rebase only previews. `--dry-run --plan` creates a new draft and
51
+ never overwrites an existing plan or submits a remote write. Base content is
52
+ unavailable (`baseContentAvailable: false`); the preview includes hashes and the
53
+ active/workspace contents for manual comparison.
54
+
55
+ Fill a nonempty `reason`, remove paths you will handle later, and replace every
56
+ remaining `UNRESOLVED` with `TAKE_ACTIVE`, `KEEP_WORKSPACE`, `MERGED`, or `DELETE`.
57
+ Only `MERGED` submits `content`, which must be a string (an empty string is valid).
58
+ The server rejects a stale `planDigest`; preview again and review a new plan.
59
+ Check `resolvedPaths`, `baselineHash`, and `remainingConflicts` in the receipt.
60
+ Rebase does not rewrite local files or release/deploy. Do not delete and recreate
61
+ files or the whole workspace to refresh the baseline.
62
+
32
63
  ## Project environments
33
64
 
34
65
  A project `env.yaml` can declare `default` and named `environments`, each with