@wix/himalaya-cli 0.1555.0 → 0.1557.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.
@@ -251,6 +251,11 @@ redirects, invalid data, source changes and disk errors remain failures.
251
251
  - `invalid_output_path`: unsafe name, symlinked ancestor or inaccessible output parent
252
252
  (exit 2). Use the real directory path rather than a symlink.
253
253
  - `output_exists`: destination already exists; choose a new name or parent (exit 2).
254
+ - `cli_update_required`: the installed CLI is older than the latest published version
255
+ (exit 1, stage `checking-cli-version`). Update before retrying; no workspace, authentication
256
+ or source collection has started.
257
+ - `cli_version_unverified`: the latest or installed version could not be verified
258
+ (exit 1, stage `checking-cli-version`). Restore registry access and retry before collection.
254
259
  - `auth_unavailable`: a user-scoped Wix token could not be obtained (exit 1).
255
260
  `WIX_API_KEY` is not used by this workflow.
256
261
  - `source_unauthorized` / `source_forbidden`: source rejected the identity or access
@@ -18,6 +18,13 @@ himi one-app migrate --msid <one-app-meta-site-id> \
18
18
  --target bo --json
19
19
  ```
20
20
 
21
+ Before collection, an installed CLI checks the latest published version afresh. An older
22
+ version stops with `cli_update_required`: update with `npm i -g @wix/himalaya-cli@latest`
23
+ and retry. If registry access cannot establish a version, `cli_version_unverified` asks
24
+ you to retry; no workspace or source request has been created. This is stricter than the
25
+ normal self-updater's build-age policy, because a fresh migration needs the current template
26
+ features. Source checkouts and existing explicit version-check opt-outs keep their behavior.
27
+
21
28
  - `--msid` is required. It is the source MetaSite ID, not Structure's document ID.
22
29
  - `--app-instance` accepts `branded` or `free`; default is `branded`. Branded falls
23
30
  back to free only when no Branded configuration exists. Authorization, malformed
@@ -114,10 +114,18 @@ should keep working.
114
114
  It **refuses** (exit `2`, nothing written) when `--keep` is missing or names an id the app does
115
115
  not serve (the report lists the ones it does), when the app's `dev/index.ts` or `config.ts` is
116
116
  no longer in the shape `himi init` writes (a block, the `navigation` object or
117
- `workerSubtreeScreens` that is not plain JSON), when kept screens link to removed ones and no `--links` was given, when no tab would be
117
+ `workerSubtreeScreens` that is not JSON data), when kept screens link to removed ones and no `--links` was given, when no tab would be
118
118
  left, and when dropping links would leave a kept screen empty or cannot reach a link. Then trim
119
119
  by hand, below.
120
120
 
121
+ The `navigation` object and `workerSubtreeScreens` array in `config.ts` may contain
122
+ `//` or `/* … */` comments. Read-only template commands preserve their
123
+ source bytes. Commands that rewrite navigation, including trim and `template screens --add`,
124
+ re-emit that block as JSON, removing comments inside it.
125
+ Property names and strings must remain double-quoted; computed values, spreads and function
126
+ calls are refused rather than evaluated. This also keeps migrated navigation readable by
127
+ `himi template screens`, `himi template inspect` and `himi template trim` after an agent adds notes.
128
+
121
129
  Afterwards: `himi render <each kept screen>`, then `himi test`.
122
130
 
123
131
  ## How to trim by hand
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1555.0",
3
+ "version": "0.1557.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "e307bc39941a4361847922e798725eec91eaa76e98753612e7133ca1"
74
+ "falconPackageHash": "af9ec3d733e930df474d226a826345b720afccbb9190afc75704ab57"
75
75
  }