@wix/himalaya-cli 0.1638.0 → 0.1639.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/dist/cli.mjs +1161 -840
- package/guides/himi-json-output.md +33 -0
- package/guides/himi-test.md +8 -0
- package/package.json +2 -2
|
@@ -14,6 +14,12 @@ require those fields. Existing error-only push refusals now also carry `ok: fals
|
|
|
14
14
|
Output channels and process exit codes are unchanged. Read JSON failures on both
|
|
15
15
|
stdout and stderr; progress/warnings are not failure envelopes.
|
|
16
16
|
|
|
17
|
+
## `himi login --wix` codes
|
|
18
|
+
|
|
19
|
+
| Code | Meaning |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `wix_cli_missing` | No held token or API key is available and the `wix` CLI is missing from PATH. Install `@wix/cli` and run `wix login`, or use a token, `--browser`, or `--dpx`. Exit 1. |
|
|
22
|
+
|
|
17
23
|
## `himi login --device` codes
|
|
18
24
|
|
|
19
25
|
| Code | Meaning |
|
|
@@ -161,6 +167,7 @@ worker's bundle. These names are stable.
|
|
|
161
167
|
| `lint_errors` | Build/lint validation found errors. |
|
|
162
168
|
| `depth_budget_exceeded` | A screen or a bound list/grid row template nests deeper, or has more components, than the depth budget (`depth-budget` validator pass), or any of its JSON — props, modifiers, `input`, action `args` — nests past the raw-JSON ceiling of 256 levels. Each `issues[]` entry with `pass: "depth-budget"` carries the JSON `path` of the deepest node (the tree root for a node count, the first value past the ceiling for raw JSON), the `limit` and the `actual` value. Takes precedence over `lint_errors`, and `--force` does not override it: content over the budget overflows the renderer's stack on devices already in the field. Flatten the layout and push again. `himi patch screen` refuses an over-deep raw descriptor with the same code, before any network request, and `himi pack` / `himi template publish` refuse with it even under `--force`. |
|
|
163
169
|
| `placeholder_site_binding` | The app declares `wix_api` and uses the `wix-consumer` auth provider, but its resolved auth still has the scaffold placeholder `clientId` (`YOUR_WIX_CLIENT_ID`) or `siteUrl` (`https://your-site.example.com`), and it is not bound to a source site through the One App identity. Nothing is published: every Wix call would fail. Bind the site (`himi one-app provision` for a One App migration; otherwise a real clientId and siteUrl). `--force` does not override it. |
|
|
170
|
+
| `auth_provider_invalid` | The app's `config.ts` `auth` entry cannot be used: missing, no `providerId`, or a `config` that is not an object. `file`, `field` and `fix` say where and what to write. Nothing is published. Exit 2. The same code comes from `himi validate`, `render` and `test` (see "`config.ts` failures" below). |
|
|
164
171
|
| `one_app_readiness_failed` | Reserved legacy refusal code. One App migration readiness is now advisory: publish and promotion report structured warnings instead. Other independent release checks may still refuse a push. |
|
|
165
172
|
| `control_token_expired` | The selected control token has expired. |
|
|
166
173
|
| `app_source_contains_secrets` | Source archiving detected a possible credential. |
|
|
@@ -365,6 +372,32 @@ file). Other `template screens` paths, and `--add`/`--write` refusals about the
|
|
|
365
372
|
| `invalid_input` | The `--from` file is missing, unreadable or not JSON. For `--add`/`--write` also: it is not a ScreenDescriptor object, `{ "<id>": <ScreenDescriptor> }` or the entry `--show` prints, or its key or `screenId` is not the `<id>` given; a templated route (`{ pattern, display, template }`) takes back only the text `--show` prints for it. `error` names the file. Exit 2. |
|
|
366
373
|
| `upsert_refused` | The JSON is not `{ "<screenId>": <ScreenDescriptor> }`, an id or `screenId` does not match, the result would not parse as plain SCREENS entries, or a target file is a symlink. `error` names which. Exit 2. |
|
|
367
374
|
|
|
375
|
+
## `himi template recommend` codes
|
|
376
|
+
|
|
377
|
+
Every refusal carries a code, on stderr, exit 2. `--book <dir>` reads a `himi site analyze` output
|
|
378
|
+
dir. Its verticals come from the vertical probes. A URL-only pass (no `--client-id`) skips every
|
|
379
|
+
probe, so recommend falls back to the book's installed Wix apps (`taxonomy.installedApps`, matched by appDefId, or by name for an unknown id) and its
|
|
380
|
+
crawled page roles. With no vertical found and no `--text`, it ranks on the book's own words:
|
|
381
|
+
business name, description, tagline and section headings. A success with `--book` says which
|
|
382
|
+
signals it used in `book.verticalsFrom` and `book.textFrom`.
|
|
383
|
+
|
|
384
|
+
| Code | Meaning |
|
|
385
|
+
|---|---|
|
|
386
|
+
| `invalid_usage` | No `--text`, `--verticals` or `--book` was given. |
|
|
387
|
+
| `book_not_found` | `--book` names a dir with no `book.json` or `provisioning.overlay.json`, directly or under `.himi/business-book`. Run `himi site analyze --url <site> --out <dir>` first. `book` echoes the flag. |
|
|
388
|
+
| `book_unreadable` | `book.json` or `provisioning.overlay.json` is not valid JSON. `error` names the file. Re-run `himi site analyze`. |
|
|
389
|
+
| `book_no_signal` | The book was read and has nothing to rank on: no installed verticals (the error says whether the probes were skipped or ran and found each vertical empty or not installed), no Wix vertical among its installed apps, no page role that names a vertical, and no business name, description, tagline or section copy. `lacked` lists each missing signal. Pass `--verticals` or `--text`, or re-run `himi site analyze` with `--client-id`. |
|
|
390
|
+
|
|
391
|
+
## `config.ts` failures (`himi validate`, `himi render`, `himi test`, `himi push`)
|
|
392
|
+
|
|
393
|
+
The release build checks the app's `config.ts` before it builds anything. A failure is printed
|
|
394
|
+
on stderr as `{ ok: false, code, error, file, field, fix }`, exit 2. `file` is the config.ts path,
|
|
395
|
+
`field` is the field at fault, and `fix` says what to write instead.
|
|
396
|
+
|
|
397
|
+
| Code | Meaning |
|
|
398
|
+
|---|---|
|
|
399
|
+
| `auth_provider_invalid` | The `auth` entry cannot be used. `field: "auth"`: the entry is missing, or it is an array, a primitive, or a provider factory that was never called. `field: "auth.providerId"`: the entry has no `providerId`, or it is empty or not a string. `field: "auth.config"`: the entry has no `config`, or it is null, an array or not an object (write `config: {}` for a provider that takes no options). Use a provider factory (`WixConsumerAuthProvider({ … })`, `GenericOAuthProvider({ … })`), or write `auth: { providerId: "none", config: {} }` for an app with no sign-in. |
|
|
400
|
+
|
|
368
401
|
## `himi site member-app` codes
|
|
369
402
|
|
|
370
403
|
`himi site member-app set|clear|show <site>` prints one envelope. A refusal from the publishing service
|
package/guides/himi-test.md
CHANGED
|
@@ -265,6 +265,13 @@ back/return, state carry-over or the source row's emitted navigation params; ver
|
|
|
265
265
|
real interactions as well. A green derived crawl without such expectations does not establish
|
|
266
266
|
that a detail shows the selected record.
|
|
267
267
|
|
|
268
|
+
A `"steps": []` journey reports `stepsExercised: 0`: it dispatched nothing, by design, and its
|
|
269
|
+
`expectText` is checked against the entry state booted with its `input`. The text checks read
|
|
270
|
+
the copy each component paints — including an `EmptyState`'s `subtitle`, and its `actionLabel`
|
|
271
|
+
when it has an `action` — so a not-found expectation can name any of them. Text authored in a
|
|
272
|
+
prop the observation set does not read is reported as `journey-unobservable` (not verified), never
|
|
273
|
+
as "never rendered".
|
|
274
|
+
|
|
268
275
|
## What it checks
|
|
269
276
|
|
|
270
277
|
Only **unambiguous** defects, so a green run stays worth trusting:
|
|
@@ -288,6 +295,7 @@ Only **unambiguous** defects, so a green run stays worth trusting:
|
|
|
288
295
|
| `token-type-invalid` | error | The package's tokens file holds a value a native `Int` field rejects — `typography.<k>.size` or `.weight`, `motions.<k>.duration` (milliseconds: `0.3` → `300`), or a `spacing` / `radius` entry — in the base document or any `idiom.<overlay>`. Both natives decode tokens.json in one strict pass, so one such value drops the WHOLE theme (iOS "Theme unavailable"; Android default palette and fonts) while the web preview looks right. Reported with `screen: "tokens.json"`, never counted as a failed screen; `himi validate` reports the same finding. |
|
|
289
296
|
| `capability-undeclared` | error | A `capability.<id>.<verb>` call the screen's gate denied — reported from the gate itself, so it is raised **even when the worker catches the rejection** (which on device leaves a control that silently does nothing). Fix: declare the id on that screen's `logicBundle.declaredCapabilities` and in `config.ts` `capabilities`. One per capability per screen. See [Capabilities](#capabilities). |
|
|
290
297
|
| `journey-failed` | error | A `himi-test.json` journey named an action the screen lacks, threw, or never rendered its `expectText`. |
|
|
298
|
+
| `journey-unobservable` | **warning** | A journey's `expectText` is authored on a node the user can see, but in a copy prop the observation set does not read (a `Banner`'s `actionLabel`, say). The assertion was **not verified**, so the journey is not `ok` and its result carries `notVerified`, but the run does not fail on it: the screen may well paint that text. Assert copy from an observed prop instead (a `Text`'s `text`, a `Button`'s `title`, an `EmptyState`'s `title`, `subtitle` or `actionLabel`), or check this one on a preview. Only copy the renderer paints in that state counts: copy on a collapsed node, in a `FragmentSlot` case the state did not select, or in a label whose handler is absent (an `actionLabel` with no `action`) is not on screen and stays `journey-failed`. |
|
|
291
299
|
| `inverse-pair-diverges` | **warning** | An action and the action that undoes it do not return to the state the boot settled on — `add` then `remove` leaving a different list, or a counter it forgot to put back. |
|
|
292
300
|
| `refresh-not-idempotent` | **warning** | `refresh` from a fresh boot settles somewhere other than the boot did, on identical data — usually a refresh that appends instead of replacing. |
|
|
293
301
|
| `list-shrank-on-load-more` | **warning** | A "load more" returned FEWER rows than before it ran: the new page replaced the list instead of extending it. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1639.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "c340afe9c75f9fe0e715a9e6e98b473ad26bdb35f720d30371c3c56b"
|
|
76
76
|
}
|