@wix/himalaya-cli 0.1946.0 → 0.1947.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38.bin → da958a2a47eef7082c7892c1cc755a58bbeefcb4b617b47fde87f1ce567b3e64.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +488 -55
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-test.md +31 -0
- package/package.json +2 -2
|
Binary file
|
package/guides/himi-test.md
CHANGED
|
@@ -304,6 +304,10 @@ Only **unambiguous** defects, so a green run stays worth trusting:
|
|
|
304
304
|
| `nav-target-absent` | error | A `himi.open` has no authored `screenId` in params/args (for example `{ screen: "detail", input: { id } }`). Use `{ screenId: "detail", id }`. Targetless back/dismiss/alert/snackbar presentations and dynamic targets are allowed. |
|
|
305
305
|
| `nav-target-missing` | **warning** | A `himi.open` whose target is neither a baked screen, nor one of the app's declared `linkableScreens`, nor an instance of one (`course_detail_c1` under the base `course_detail`) — the tap opens nothing. Only judged when the caller supplies the app's exact linkable set; an absent set means no opinion, never a guess. A target still carrying an **unresolved** `$` token is dropped before it becomes an edge and is never judged — but one that RESOLVED to a concrete id is judged, which is the point: `$item.detailScreenId` resolving to `course_detail_c1` against the first row is exactly the case the instance rule exists for. |
|
|
306
306
|
| `poll-action-missing` | error | A `_poll` directive every host will silently ignore — an action the bundle never declares, a malformed `action`, a missing `id`, or a non-positive `intervalMs`. Each ends the same way: a screen that never refreshes, with nothing saying why. Nothing in the descriptor names the polled action, so no static check can see it. (A merely too-small interval is legal — the host clamps it.) |
|
|
307
|
+
| `poll-stop-extra-fields` | **warning** | A `_poll` stop — `{ id, stop: true }` — that also sets `intervalMs`, `action` or `immediate`. Every host ignores the extras, so it works, but it usually means a start that never ran or a stop pasted from one. Checked on screen workers and app services alike. |
|
|
308
|
+
| `app-binding-unresolved` | error | A `$app:<svc>.<path>` a descriptor (or the app config) binds that the **booted app bundle's state** does not hold — a service it does not define, or a first path segment absent after `onLaunch`. Same depth and severity as `binding-unresolved` for `$service:`. See *App services*. |
|
|
309
|
+
| `app-action-unresolved` | error | An `app.<svc>.<action>` id (descriptor, chrome, push route, `observer_action`) naming a service or action the app bundle does not declare. The tap does nothing on device. |
|
|
310
|
+
| `app-nav-without-gesture` | error | A `_nav` returned from an **ambient** invocation of the app bundle — a `_poll` / `_stream` tick, any hook except an unresolved `onPushOpened`, a push receipt, or an `app.dispatch` from a screen worker. The host drops it (`no_user_gesture`), so nothing navigates. A `_nav` from a tap is fine. |
|
|
307
311
|
| `no-request-issued` | **warning** | A worker that uses the Wix transport but never fetches — "the screen loaded with sample data." A warning: a conditional or tap-triggered fetch is legitimate. |
|
|
308
312
|
| `native-decode-failed` | error | Under `--native`, the real Swift/Kotlin decoder rejected the baked descriptor bytes (the oracle decodes strictly, so an unknown enum value or malformed child is reported here even though production decoding degrades it to a fallback or an `unknown` placeholder) — or the release's `tokens.json`, reported with `screen: "tokens.json"`: both natives decode it in one strict pass, so a single fractional `typography.*.size` or a `motions.*.duration` written in seconds drops the whole theme. A token finding fails the run but never counts as a failed screen. |
|
|
309
313
|
| `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. |
|
|
@@ -377,6 +381,33 @@ a check that merely never fires.
|
|
|
377
381
|
> `poll-action-missing` finding on a *computed* `action` as suspect until you've confirmed
|
|
378
382
|
> the crawl fed the same input the screen gets on device.
|
|
379
383
|
|
|
384
|
+
## App services — the app-level bundle as one more crawl target
|
|
385
|
+
|
|
386
|
+
When `config.ts` declares an app-level worker (`app.logicBundle`, or its alias `navigation.navLogicBundle`),
|
|
387
|
+
`himi test` boots it **once**, in the same hermetic sandbox (fake net / fake services seams), hydrating from an
|
|
388
|
+
empty snapshot, and runs `onLaunch`. It then exercises the app services the way it exercises a screen worker:
|
|
389
|
+
|
|
390
|
+
| Step | What it does | Finding |
|
|
391
|
+
|------|--------------|---------|
|
|
392
|
+
| `$app:` | Resolves every `$app:<svc>.<path>` in the descriptors and the app config against the booted state. | `app-binding-unresolved` |
|
|
393
|
+
| `app.*` | Dispatches every `app.<svc>.<action>` id the descriptors, chrome, push routes and `observer_action` declare — plus every `app.dispatch("<svc>.<action>")` a screen worker calls — from a fresh boot, with the descriptor's own params as fixture args. | `app-action-unresolved`; a throw is `worker-threw`, source-mapped to the `tier5-src` line |
|
|
394
|
+
| Hooks | `onLaunch`, `onIdentityChange({ signedIn: true, userId })`, `onIdentityChange({ signedIn: false })`, `onForeground`, `onBackground`, `onPushOpened({ link, payload, resolved: false })`, each to every service that declares it, in declaration order. | — |
|
|
395
|
+
| Origin | Every dispatch carries an origin from the origin rules: a tap, a snackbar/alert button and an unresolved `onPushOpened` are **gesture**; ticks, the other hooks, push receipts and `app.dispatch` are **ambient**. A `_nav` returned from an ambient one is reported with the invocation and the `tier5-src` line. | `app-nav-without-gesture` |
|
|
396
|
+
| Polls | A `_poll` an app service arms (at boot or from any invocation) is ticked once, as ambient, so a `_nav` in the polled action is seen; a stop with extra fields is reported. | `poll-stop-extra-fields` |
|
|
397
|
+
|
|
398
|
+
App-service findings with no screen of their own (a hook, a tick, a chrome action) carry `screen: "(app services)"`.
|
|
399
|
+
The report's `appServices` block lists the services booted, the bindings checked, the `app.*` dispatches run and
|
|
400
|
+
the hooks with the services each reached. The gap ledger (kind `unverifiable`, key `unverifiable|app-services|<surface>`)
|
|
401
|
+
names what the crawl could **not** reach: `onPushOpened` is dispatched with a synthetic payload and never with
|
|
402
|
+
`resolved: true` (a real notification tap and the host's route resolution); `onIdentityChange` does not rebind the
|
|
403
|
+
worker's `wixApi` to a member session or re-key its persisted snapshot; an `app.*` param bound to a row or to screen
|
|
404
|
+
state is dispatched without it. Prove those on a device.
|
|
405
|
+
|
|
406
|
+
The matching static lint is `tier5-names-app-service` (`himi validate`, the live preview's diagnostics and the release
|
|
407
|
+
build share it): a descriptor `tier5.<svc>.<action>` whose `<svc>` the app bundle defines gets a suggestion to use
|
|
408
|
+
`app.<svc>.<action>` — **only** in an app whose oldest served binary already supports app services (`appServicesAllowed`);
|
|
409
|
+
an older binary has no `app.*` route, so nothing is reported there.
|
|
410
|
+
|
|
380
411
|
## Where the data comes from
|
|
381
412
|
|
|
382
413
|
Real data makes the success path run — that is where data-shape bugs hide. The crawl
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1947.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": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "b476298e6f7807fe2bff304116a435ae3f747b419dc41ec6457d995d"
|
|
86
86
|
}
|