@wix/himalaya-cli 0.1991.0 → 0.1993.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.
Binary file
@@ -51,7 +51,7 @@
51
51
  "bindings": [
52
52
  "itemsPath"
53
53
  ],
54
- "propsSource": "export interface GridProps {\n items: Component[];\n /** Base column count — used at compact width (<600) and as the fallback for\n * clients that don't understand the responsive overrides below. */\n columns: number;\n /** Responsive column overrides, resolved against the Grid's OWN\n * available width: `columnsMedium` at ≥600, `columnsExpanded` at ≥840. Each\n * falls back downward (expanded → medium → columns). Absent ⇒ the Grid keeps\n * `columns` at every width (back-compat). */\n columnsMedium?: number;\n columnsExpanded?: number;\n spacing?: number;\n /** `$service:`/`$item.` binding → a live array to render as grid cells (overrides `items`). */\n itemsPath?: string;\n /** Per-cell entrance delay (`index * staggerMs`), so a Grid whose cells carry\n * `transition`/`appear` cascades in instead of appearing all at once. Honored on every\n * renderer, on BOTH the static and `itemsPath` paths. The index is FLAT across the grid\n * (reading order), so the cascade runs down the diagonal rather than restarting on each\n * row. Reduced motion collapses it to 0. Absent/0 ⇒ no cascade, which is the back-compat\n * default. */\n staggerMs?: number;\n /** #4672 — pull-to-refresh, exactly as on `LazyList`: the screen's refresh gesture dispatches\n * this action (the shells find the first `onPullToRefresh` in the payload, list or grid). */\n onPullToRefresh?: Action;\n /** #4672 — infinite scroll, as on `LazyList`: `onLoadMore` fires once per published non-empty\n * `cursor` (usually a `$service:` binding) when the grid's trailing edge comes into view; a cursor\n * the worker publishes again (a refresh back to page 2) pages again. An empty cursor is\n * exhausted, and nothing fires. Works with `items` and `itemsPath`. */\n pagination?: Pagination;\n /** #5977 — `\"uniform\"` (default; rows align) | `\"masonry\"` (staggered: each item keeps its\n * own height and goes, in item order, into the column whose running top is lowest — a\n * column's running top is its offset while empty, else its last item's bottom + `spacing`;\n * ties under 0.5pt go to the leading column). Unknown ⇒ `\"uniform\"`. `spacing` is both the\n * column gap and the vertical gap between items in a column; omitted, it is 12 on every\n * renderer for masonry. Works with `items` and `itemsPath`. */\n layout?: \"uniform\" | \"masonry\";\n /** #5977 — masonry only: a top offset in points per column (index 0 = leading column), e.g.\n * `[0, 24]` starts the second column 24pt lower. Missing entries ⇒ 0. */\n columnOffsets?: number[];\n /** Adaptive columns: as many columns of at least this width (points) as fit the Grid's own width, `spacing` between\n * them, and no more columns than items (CSS `repeat(auto-fit, minmax(<min>px, 1fr))`). Overrides `columns`,\n * `columnsMedium` and `columnsExpanded` on a uniform grid; `0`/absent keeps them. A bound grid is not held to its\n * item count. */\n minColumnWidth?: number;\n /**\n * The gap between rows of aligned cells, in points (`spacing` is then the gap between columns).\n * Unset: `spacing` for both. Masonry keeps `spacing`: its columns have no rows. An older binary\n * uses `spacing`.\n */\n rowSpacing?: number;\n}"
54
+ "propsSource": "export interface GridProps {\n items: Component[];\n /** Base column count — used at compact width (<600) and as the fallback for\n * clients that don't understand the responsive overrides below. */\n columns: number;\n /** Responsive column overrides, resolved against the Grid's OWN\n * available width: `columnsMedium` at ≥600, `columnsExpanded` at ≥840. Each\n * falls back downward (expanded → medium → columns). Absent ⇒ the Grid keeps\n * `columns` at every width (back-compat). */\n columnsMedium?: number;\n columnsExpanded?: number;\n spacing?: number;\n /** `$service:`/`$item.` binding → a live array to render as grid cells (overrides `items`). */\n itemsPath?: string;\n /** Per-cell entrance delay (`index * staggerMs`), so a Grid whose cells carry\n * `transition`/`appear` cascades in instead of appearing all at once. Honored on every\n * renderer, on BOTH the static and `itemsPath` paths. The index is FLAT across the grid\n * (reading order), so the cascade runs down the diagonal rather than restarting on each\n * row. Reduced motion collapses it to 0. Absent/0 ⇒ no cascade, which is the back-compat\n * default. */\n staggerMs?: number;\n /** #4672 — pull-to-refresh, exactly as on `LazyList`: the screen's refresh gesture dispatches\n * this action (the shells find the first `onPullToRefresh` in the payload, list or grid). */\n onPullToRefresh?: Action;\n /** #4672 — infinite scroll, as on `LazyList`: `onLoadMore` fires once per published non-empty\n * `cursor` (usually a `$service:` binding) when the grid's trailing edge comes into view; a cursor\n * the worker publishes again (a refresh back to page 2) pages again. An empty cursor is\n * exhausted, and nothing fires. Works with `items` and `itemsPath`. */\n pagination?: Pagination;\n /** #5977 — `\"uniform\"` (default; rows align) | `\"masonry\"` (staggered: each item keeps its\n * own height and goes, in item order, into the column whose running top is lowest — a\n * column's running top is its offset while empty, else its last item's bottom + `spacing`;\n * ties under 0.5pt go to the leading column). Unknown ⇒ `\"uniform\"`. `spacing` is both the\n * column gap and the vertical gap between items in a column; omitted, it is 12 on every\n * renderer for masonry. Works with `items` and `itemsPath`. `\"stretch\"`: rows align as\n * `\"uniform\"`, and every cell is given its row's height (its tallest cell's): a cell whose content\n * can grow (a column with a Spacer) fills it, so content it packs at its end lines up with its\n * neighbours', as CSS grid's `align-items: stretch` draws it; one that cannot grow keeps its own\n * height. iOS's and web's uniform grids already draw a cell so; on Android only `\"stretch\"` does,\n * since asking every cell its height costs a measure pass. A cell that cannot answer (a lazy list,\n * a carousel) leaves its row uniform. A renderer that predates it draws `\"uniform\"`. */\n layout?: \"uniform\" | \"masonry\" | \"stretch\";\n /** #5977 — masonry only: a top offset in points per column (index 0 = leading column), e.g.\n * `[0, 24]` starts the second column 24pt lower. Missing entries ⇒ 0. */\n columnOffsets?: number[];\n /** Adaptive columns: as many columns of at least this width (points) as fit the Grid's own width, `spacing` between\n * them, and no more columns than items (CSS `repeat(auto-fit, minmax(<min>px, 1fr))`). Overrides `columns`,\n * `columnsMedium` and `columnsExpanded` on a uniform grid; `0`/absent keeps them. A bound grid is not held to its\n * item count. */\n minColumnWidth?: number;\n /**\n * The gap between rows of aligned cells, in points (`spacing` is then the gap between columns).\n * Unset: `spacing` for both. Masonry keeps `spacing`: its columns have no rows. An older binary\n * uses `spacing`.\n */\n rowSpacing?: number;\n}"
55
55
  },
56
56
  {
57
57
  "name": "Card",
@@ -382,8 +382,14 @@ export interface GridProps {
382
382
  * column's running top is its offset while empty, else its last item's bottom + `spacing`;
383
383
  * ties under 0.5pt go to the leading column). Unknown ⇒ `"uniform"`. `spacing` is both the
384
384
  * column gap and the vertical gap between items in a column; omitted, it is 12 on every
385
- * renderer for masonry. Works with `items` and `itemsPath`. */
386
- layout?: "uniform" | "masonry";
385
+ * renderer for masonry. Works with `items` and `itemsPath`. `"stretch"`: rows align as
386
+ * `"uniform"`, and every cell is given its row's height (its tallest cell's): a cell whose content
387
+ * can grow (a column with a Spacer) fills it, so content it packs at its end lines up with its
388
+ * neighbours', as CSS grid's `align-items: stretch` draws it; one that cannot grow keeps its own
389
+ * height. iOS's and web's uniform grids already draw a cell so; on Android only `"stretch"` does,
390
+ * since asking every cell its height costs a measure pass. A cell that cannot answer (a lazy list,
391
+ * a carousel) leaves its row uniform. A renderer that predates it draws `"uniform"`. */
392
+ layout?: "uniform" | "masonry" | "stretch";
387
393
  /** #5977 — masonry only: a top offset in points per column (index 0 = leading column), e.g.
388
394
  * `[0, 24]` starts the second column 24pt lower. Missing entries ⇒ 0. */
389
395
  columnOffsets?: number[];
@@ -832,12 +832,20 @@ unresolved migration finding.
832
832
 
833
833
  ## `himi one-app widgets` codes
834
834
 
835
- `himi one-app widgets plan|inspect|test|check` is the custom-widget stage of a One App migration. Every envelope carries
836
- `stage: "custom-widgets"`; a source with no placed custom widget answers `ok: true` with `status: "not-applicable"`.
837
- Failures print `ok: false` and a top-level `code` on stderr. Neither recovered widget code nor page text is printed.
838
-
839
- - `invalid_usage`: an unknown subcommand, option or widget key, or a missing `--evidence-dir` / `--content` (exit 2).
835
+ `himi one-app widgets plan|preflight|inspect|skip|test|check` is the custom-widget stage of a One App migration: every
836
+ custom widget is rebuilt natively and verified, or skipped. Every envelope carries `stage: "custom-widgets"`,
837
+ `widgetOutcomes: 1` (the outcome contract) and `testIsolation`; a source with no placed custom widget answers `ok: true`
838
+ with `status: "not-applicable"`. Failures print `ok: false` and a top-level `code` on stderr. Neither recovered widget
839
+ code nor page text is printed. A skipped widget is never a failure: it is listed in `skippedWidgets` with a typed
840
+ `reason` (`widget_unidentified`, `widget_page_unavailable`, `source_evidence_unavailable`, `velo_source_unavailable`,
841
+ `backend_code_unavailable`, `rebuild_failed`, `test_runtime_unavailable`, `unsupported_behavior`; new reasons may be
842
+ added, so treat an unknown one generically).
843
+
844
+ - `invalid_usage`: an unknown subcommand, option, widget key, section or skip reason, or a missing `--evidence-dir` /
845
+ `--content` (exit 2).
840
846
  - `evidence_invalid`: the collected evidence cannot be read or does not match its hashes (exit 1).
847
+ - `coverage_stale` (`preflight`, `skip`, `test`): `ONE-APP-COVERAGE.json` holds rows that no longer match the evidence,
848
+ or lacks the custom-widget rows (exit 1).
841
849
  - `site_url_unavailable` (`inspect`): the collection recorded no public https site URL; a widget with no evidence on
842
850
  record is recorded as unavailable, and evidence already on record is kept (`kept`, with `retry.status:
843
851
  "unavailable"`) unless `--refresh` (exit 1).
@@ -846,16 +854,21 @@ Failures print `ok: false` and a top-level `code` on stderr. Neither recovered w
846
854
  - `inspection_incomplete` (`inspect`): some widget pages could not be observed, a retry failed and kept the evidence on
847
855
  record, or the run's deadline cut a direct lookup short (`direct_lookup_deadline`); their evidence says why, and the
848
856
  same command retries only those (exit 1).
857
+ - `test_runtime_unavailable` (`test`): no runtime isolates generated widget code (`testIsolation` is not
858
+ `"sandboxed"`), so no test was run and nothing was recorded (exit 1).
849
859
  - `custom_widget_tests_failed` (`test`): a placement's required tests are missing or did not pass in the run Himi made
850
860
  (each placement lists why); passing placements are still recorded (exit 1). `coverage_missing` (`test`):
851
861
  `ONE-APP-COVERAGE.json` is absent (exit 1).
852
- - `check` fails with the most fundamental of: `custom_widget_unidentified` (a placed widget section names no `pageUri`
853
- and no owner decision is recorded), `custom_widget_invalid` (a component cannot be placed),
854
- `custom_widgets_pending` (a component is not built), `custom_widgets_unplaced` (a placement is not embedded),
855
- `custom_widget_evidence_missing` (no inspection evidence recorded, not even as unavailable),
856
- `custom_widget_decision_required` (a placement waits for the owner's decision) and `custom_widgets_unverified`
857
- (a placement's tests did not pass when `check` ran them, or no `widgets test` run names them). `failures` lists every
858
- one (exit 1). `check` and `himi one-app coverage verify` run the recorded widget tests themselves; `plan` does not.
862
+ - `check` fails with the most fundamental of: `custom_widget_present` (a skipped widget left something in the content,
863
+ or some content could not be read to prove it did not; each failure lists its `paths`), `custom_widget_unverifiable` (a retained widget, and no runtime isolates generated
864
+ code: skip it), `custom_widget_invalid` (a component cannot be placed), `custom_widgets_pending` (a component is not
865
+ built), `custom_widgets_unplaced` (a placement is not embedded), `custom_widget_evidence_missing` (no inspection
866
+ evidence recorded, not even as unavailable), `custom_widget_decision_required` (a placement waits for the owner's
867
+ decision) and `custom_widgets_unverified` (a placement's tests did not pass when `check` ran them, or no `widgets test`
868
+ run names them). `failures` lists every one (exit 1). `check` and `himi one-app coverage verify` run the recorded widget
869
+ tests themselves, only in a runtime that isolates them; `plan` runs nothing.
870
+ - Retired: `custom_widget_unidentified`. A section with no `pageUri` is now always skipped (`widget_unidentified` in
871
+ `skippedWidgets`), so `check` no longer fails on it.
859
872
 
860
873
  `himi one-app generate` refuses a component it cannot place with `custom_widget_invalid` and writes nothing (exit 1).
861
874
 
@@ -286,20 +286,20 @@ section's settings, with no loader of their own:
286
286
  ### Custom widgets
287
287
 
288
288
  A `mobile_app_widgets.viewer` section shows a Mobile App Builder page (a custom widget) inside the app. Its behavior is
289
- that page's Velo code, which collection does not read, so this stage runs inside the migration (no separate command or
289
+ that page's Velo code, which collection does not read. This stage runs inside the migration (no separate command or
290
290
  review) and only when the source places a widget: `migrate` then prints `customWidgets` counts, and `source-graph.json`
291
291
  holds `customWidgets`, the placements grouped by widget identity (`settings.pageUri`, never `pageId`). Each placement
292
292
  keeps its page, position, settings (a credential-like key or value is dropped), access rules (its section, its own
293
- setting, its page and screen: `rules`, `requiresMember`) and authored actions. A section without `pageUri` is
294
- unidentified: never guessed, and `widgets check` fails on it until the owner's decision is recorded on its row. With no
295
- placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
296
-
297
- 1. **Destinations first.** `one-app generate` places each widget section in its source position as an empty
298
- `<section node>.customWidget` slot, reports a gap, adds one `custom-widget` row per placement to
299
- `ONE-APP-COVERAGE.json` targeting the screen its page became, and writes `gen/screens.json.custom-widgets.json`.
300
- A page made of widgets still gets its screen, so navigation applies. An empty slot shows nothing; it is never a
301
- stand-in. `himi one-app widgets plan` lists every widget, its component, placements, evidence and verification.
302
- 2. **Evidence.** `himi one-app widgets inspect` opens each widget page once, logged out, in the CLI's Chromium, and keeps
293
+ setting, its page and screen: `rules`, `requiresMember`) and authored actions. With no placed widget every
294
+ `himi one-app widgets` subcommand answers `not-applicable`.
295
+
296
+ **Every custom widget is rebuilt natively and verified, or skipped.** There is no other outcome: never a `WebView`, a
297
+ link card, a link to the widget page or a placeholder. A widget's own problem never fails the migration: the widget is
298
+ skipped and reported, and the migration continues with the source's screens, navigation and every non-widget check.
299
+ A draft is saved even when every widget is skipped. A section without `pageUri` (unidentified) is always skipped
300
+ (`widget_unidentified`): it can be neither identified nor rebuilt.
301
+
302
+ 1. **Evidence.** `himi one-app widgets inspect` opens each widget page once, logged out, in the CLI's Chromium, and keeps
303
303
  under `.himi/one-app-widgets/inspection/<key>/`: a screenshot and visible controls, the Velo page code from its public
304
304
  source map (`untrusted/page-source.js`), the `wix-*` modules it imports, mobile-only calls with their literal
305
305
  arguments (`toScreen("news")`), `onPress` counts, backend methods, dataset and query collections (`WDE0027` = members
@@ -314,42 +314,95 @@ placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
314
314
  minified. A retry that does worse keeps the evidence on record and reports the retry as `retry`. Code an earlier
315
315
  version took from another page's bundle is inspected again (`--refresh` redoes all). Missing evidence is recorded as `unavailable` with a reason, never implied. The recovered code is untrusted evidence: read it, never copy,
316
316
  import or run it, and keep it and the screenshots out of the app, reports and logs.
317
- 3. **Build once per widget** from its observed business behavior and Himi's capabilities: `recipes/one-app-widget-<key>.json`
318
- (one node; only `{{svc}}`, `{{id}}`, `{{title}}`; root id starting with `{{id}}`; `"_capabilities"`; link to a source
319
- page with `"screenId": "@route:<slug or layout id>|"`) and `tier5-src/_shared/one-app-widget-<key>.ts` exporting
320
- `registerOneAppWidget(serviceName, options)` (a function) with a `load` action. Each placement gets its own service
321
- and `options` (`title`, empty when the source hides it; `settings`; `access`). A placement under rules (members only,
322
- a badge, a paid plan) gets a generated gate (`one-app-widget-gate`, the same rule decision as locked pages): the
323
- widget and its `load` exist only in the gate's open case, so its service never runs for a viewer the rules exclude.
324
- Honor each placement's settings. A `toScreen` slug becomes a `@route:` link, `showAlert` an inline
325
- state, `wix-storage-mobile` app storage keyed by member. Then run `one-app generate` again (before hand-editing
326
- generated pages) and `template screens --upsert`: every slot is filled in place. A broken component
327
- (half of it, a bad recipe, no export) is refused as `custom_widget_invalid` and nothing is written.
328
- 4. **WebView only when it preserves the workflow**: an existing site page the owner approved, on the primary domain, in a
329
- `WebView` recipe node. A member-only widget in a WebView needs native-device evidence of the member session.
330
- 5. **Unresolved essential journey.** The job cannot stop to ask: leave the row `unresolved` with
331
- `"decision": {"question": …, "kept": …}`, keep the default, and list it with the affected screens in the migration
332
- report. A widget on a page with no screen (`no-screen`) needs either a placement or that decision.
333
- 6. **Verify on the generated code.** Write automated tests that build the generated page worker, drive each placement as
334
- the host does (its gate first) as a Visitor, an entitled member and, for a badge or plan rule, a member without it,
335
- against controlled data (reads and writes), and render its screen. Name each test `custom-widget <requirement id>
336
- <check>`: `rendering` and `visitor` always, `member` when a rule needs a member, `access` for a badge or plan rule,
337
- `navigation` and `data` when they apply. Run them with `himi one-app widgets test --file <test> --release-hash <sha>`
338
- (`--import <loader>` for TypeScript; `--webview <key>` and `--device <key>=<artifact>` for a WebView). Himi runs
339
- node's test runner itself, with only `PATH`, locale and time zone from your environment and a private, empty `HOME`
340
- and temp dir (no token, config location or `NODE_OPTIONS`). That is environment isolation, not a sandbox: the tests run
341
- as you, with your file and network access. Himi records each placement whose tests passed, with the run as history. The verdict is never a stored file: `coverage verify` and `widgets check` run those
342
- tests again and decide from that run's exit status and report (`plan` runs nothing and confirms nothing). A built
343
- file, an inspection, a hand-written report or run record, or "passed" is not behavior. `himi one-app widgets check` passes only when every widget is built, embedded, evidenced and verified.
344
- With `--release-hash <sha256>` every widget proof must be bound to exactly that release, and each envelope carries
345
- `releaseHash` and `releaseBinding: "exact"` (plain `check` prints `releaseBinding: "any"`). `check` and `coverage
346
- verify` also print `testIsolation: "environment-only"`: the re-run tests have no OS sandbox. Its
347
- codes are `custom_widget_unidentified`, `custom_widgets_pending`, `custom_widget_invalid`, `custom_widgets_unplaced`,
348
- `custom_widget_evidence_missing`, `custom_widget_decision_required` and `custom_widgets_unverified`.
349
-
350
- Report every widget in the migration report: what it does, approach, unsupported features with affected screens,
351
- native-only interactions and access rules, and open decisions. This stage can run while other screens are authored;
352
- final validation waits for it.
317
+ These public reads are the only approved source reads. There is no verified editor or owner lookup of the site's code:
318
+ the read-only site analyzer's owner reader was tried on a real source site with a fresh site-scoped token and returned
319
+ a Velo error, no files and no revision proof. So code the public page does not give stays missing, and the widget is
320
+ skipped (`velo_source_unavailable`). Never pass a token or a credential to generated code or to the agent to recover it.
321
+ 2. **Preflight, before any rebuild.** `himi one-app widgets preflight --evidence-dir .himi/one-app --content .` reads
322
+ only the inventory and the inspection. It creates or syncs `ONE-APP-COVERAGE.json` itself, so it can run before
323
+ `generate`. For each widget it reports four independent `checks` and skips the widget when any fails:
324
+
325
+ | Check | Skip reason when it fails |
326
+ | --- | --- |
327
+ | `page`: the widget page answered 2xx and rendered | `widget_page_unavailable` (missing or denied), or `source_evidence_unavailable` (never observed: no browser, no public site URL, deadline, no record) |
328
+ | `velo`: its page code was recovered, unambiguous and parsed | `velo_source_unavailable` (`checks.editorLookup` is always `unavailable`) |
329
+ | `backend`: the code imports or calls no backend web module | `backend_code_unavailable` (backend code is never readable from the page) |
330
+ | `runner`: a test runtime isolates generated widget code | `test_runtime_unavailable` |
331
+
332
+ The skip is written on every row of the widget (its `custom-widget` rows and its sections' placement, access and
333
+ interaction rows): `status: "skipped"` and `skip: { reason, reasons, by: "preflight" }`. A skipped row is a known gap,
334
+ not an open row: `coverage verify` does not fail on it, and the native walkthrough does not owe it a check. A
335
+ custom-widget row loses its proof; the widget's other rows keep their status and proof in `skip.prior` and get them
336
+ back if the skip is cleared. The preflight re-decides only its own skips; a later skip (`rebuild_failed`) stays unless
337
+ `--refresh`. Run the preflight (or `generate`) before `check`: with no ledger, `check` fails. A recollection that moves the evidence drops every status, skips included:
338
+ run the preflight again. A widget with no failing check is `eligible`.
339
+ 3. **Destinations.** `one-app generate` places each embedded widget in its source position and adds one `custom-widget`
340
+ row per placement to `ONE-APP-COVERAGE.json`, targeting the screen its page became. A widget that is skipped, not
341
+ built yet or unidentified emits **nothing**: no slot, no stand-in. It is reported as a gap, and its placement is
342
+ recorded in `gen/screens.json.custom-widgets.json` (`status: "skipped" | "pending"`). A page whose only sections were
343
+ such widgets keeps its screen, empty, so its tab and navigation stay. `himi one-app widgets plan` lists every widget,
344
+ its `outcome` (`retained` or `skipped`), component, placements, evidence and verification.
345
+ 4. **Rebuild each eligible widget once, natively,** from its observed business behavior and Himi's capabilities:
346
+ `recipes/one-app-widget-<key>.json` (one node; only `{{svc}}`, `{{id}}`, `{{title}}`; root id starting with `{{id}}`;
347
+ `"_capabilities"`; link to a source page with `"screenId": "@route:<slug or layout id>|"`) and
348
+ `tier5-src/_shared/one-app-widget-<key>.ts` exporting `registerOneAppWidget(serviceName, options)` (a function) with a
349
+ `load` action. Each placement gets its own service and `options` (`title`, empty when the source hides it; `settings`;
350
+ `access`). A placement under rules (members only, a badge, a paid plan) gets a generated gate (`one-app-widget-gate`,
351
+ the same rule decision as locked pages): the widget and its `load` exist only in the gate's open case, so its service
352
+ never runs for a viewer the rules exclude. Honor each placement's settings. A `toScreen` slug becomes a `@route:` link,
353
+ `showAlert` an inline state, `wix-storage-mobile` app storage keyed by member. Then run `one-app generate` again
354
+ (before hand-editing generated pages) and `template screens --upsert`. A broken component (half of it, a bad recipe,
355
+ no export) is refused by `generate` as `custom_widget_invalid` and nothing is written.
356
+ 5. **Verify on the generated code, in an isolated runtime only.** Write automated tests that build the generated page
357
+ worker, drive each placement as the host does (its gate first) as a Visitor, an entitled member and, for a badge or plan
358
+ rule, a member without it, against controlled data (reads and writes), and render its screen. Name each test
359
+ `custom-widget <requirement id> <check>`: `rendering` and `visitor` always, `member` when a rule needs a member,
360
+ `access` for a badge or plan rule, `navigation` and `data` when they apply. Run them with
361
+ `himi one-app widgets test --file <test> --release-hash <sha>` (`--import <loader>` for TypeScript). Generated widget
362
+ code runs only in a runtime that isolates it (no network, no read or write outside the run). Himi has none yet: every
363
+ envelope prints `testIsolation: "environment-only"`, `widgets test` refuses with `test_runtime_unavailable` and runs
364
+ nothing, and `widgets check` and `coverage verify` run no widget test. A local, static or fake run does not establish
365
+ such a runtime. Where one exists, `check` and `coverage verify` run the recorded tests again and decide from that run;
366
+ a built file, an inspection, a hand-written report or run record, a widget count or "passed" is not behavior.
367
+ 6. **Skip after a bounded repair.** When a rebuilt widget still fails to build or to pass its tests after a bounded,
368
+ widget-only repair, skip it:
369
+ `himi one-app widgets skip --evidence-dir .himi/one-app --content . --widget <key> --reason rebuild_failed`
370
+ (`--section <id>` skips the widget that section shows; reasons: `rebuild_failed`, `unsupported_behavior`,
371
+ `test_runtime_unavailable`, `backend_code_unavailable`, `velo_source_unavailable`). It records the skip on the widget's
372
+ rows (`by: "skip"`), removes the row's proof, the component's recipe and module, and every JS or TS file whose
373
+ top-level tests are all `custom-widget` tests of skipped rows, whatever it is called (a file with any other test is left
374
+ whole). It prints what it `removed` and the `leftovers` it could not remove.
375
+ Then run `one-app generate` and `template screens --upsert` again. A widget is skipped whole, never one placement.
376
+ 7. **Check the exact release.** `himi one-app widgets check --evidence-dir .himi/one-app --content . --release-hash <sha256>`
377
+ passes when every widget is retained and verified (its proof bound to exactly that release) or skipped with nothing of
378
+ it left in the content to publish. A widget with no recorded outcome and nothing of it in the content is skipped too
379
+ (`skipBy: "implicit"`, `test_runtime_unavailable`) while no isolated runtime exists. A skip is accounted for only by
380
+ this check of the content itself: no `recipes/one-app-widget-<key>.json`, no `tier5-src/_shared/one-app-widget-<key>.ts`,
381
+ no file named after or naming that module, a slot of its placements, a `custom-widget <requirement id> ` test of its rows or its page's
382
+ address on the site, and no widget-page URL (`rc=MOBILE_APP_BUILDER`) anywhere. It reads every code, JSON and HTML file
383
+ of the content; the ledger, `.himi/` and the evidence directory are not content. A file it cannot read (unreadable, over
384
+ 32 MB, or past 20,000 files) fails it closed (`absence: "unchecked"`, `unscanned`). A widget count or a report is not proof.
385
+
386
+ `widgets check` (and every `widgets` envelope, and `coverage verify`) prints `widgetOutcomes: 1`, `testIsolation`,
387
+ `releaseHash` with `releaseBinding: "exact"` (plain `check`: `"any"`), `widgets` (the retained widgets) and
388
+ `skippedWidgets`: one entry per skipped widget or unidentified section, with `key` (absent when unidentified), `widgetId`
389
+ (only when every placement that names a `settings.pageId` names the same one), `pageUri`, `url`
390
+ (`<site>/<pageUri>?rc=MOBILE_APP_BUILDER`, only for a public https site), `reason`, every `reasons`, `skipBy`
391
+ (`preflight`, `skip` or `implicit`), `absence` (`verified`, `present` with `paths`, or `unchecked` with `unscanned`) and every affected placement
392
+ (`sectionId`, `context`, `requirementId`, `layoutItemId`, `screenName`, `screenId`). `counts.placements` counts identified
393
+ placements (one per section and context): the retained widgets' placements plus the keyed skipped entries'.
394
+ Its failure codes are `custom_widget_present` (a skipped widget left something in the content: remove `paths`),
395
+ `custom_widget_unverifiable` (a retained widget with no isolated runtime: skip it), `custom_widget_invalid`,
396
+ `custom_widgets_pending`, `custom_widgets_unplaced`, `custom_widget_evidence_missing`, `custom_widget_decision_required`
397
+ and `custom_widgets_unverified`.
398
+
399
+ An app released before this rule keeps working: its pushes still only warn on coverage, and the One App `WebView`
400
+ section (`platform_elements_web_view_section`) is unrelated and unchanged. A new migration never accepts a WebView proof
401
+ (`approach: "webview"`) for a custom widget.
402
+
403
+ Report every widget in the migration report: what it does and its outcome; for a skipped one, its reason in plain words
404
+ and every screen it was on; for a rebuilt one, native-only interactions, access rules and open decisions. This stage can
405
+ run while other screens are authored; final validation waits for it.
353
406
 
354
407
  ### Preserve section visibility across authentication
355
408
 
@@ -2202,8 +2255,9 @@ himi validate --strict
2202
2255
  himi test --json
2203
2256
  ```
2204
2257
 
2205
- A source with custom widgets also runs `himi one-app widgets check --evidence-dir .himi/one-app --content .` (see
2206
- "Custom widgets"); final validation waits for it.
2258
+ A source with custom widgets also runs `himi one-app widgets check --evidence-dir .himi/one-app --content .
2259
+ --release-hash <sha256>` (see "Custom widgets"); final validation waits for it. A skipped widget never fails it, only a
2260
+ skipped widget something of which is still in the content.
2207
2261
 
2208
2262
  Add meaningful behavioral fixtures for mixed pages, repeated selectors, hidden
2209
2263
  routes, top tabs, CTA argument context, visitor login/resume, member/plan/badge
@@ -14,6 +14,22 @@ areas, always in the same order, so you can skim for the one you care about.
14
14
 
15
15
  ---
16
16
 
17
+ ## 2026-12-01
18
+
19
+ ### Getting started & the CLI
20
+
21
+ - **A One App custom widget is now rebuilt natively and verified, or skipped. It is never a WebView.** A widget's own
22
+ problem no longer fails the migration: the widget is skipped with a typed reason, and the app keeps its screens and
23
+ navigation. The new `himi one-app widgets preflight` decides before any rebuild. It checks the widget page, its Velo
24
+ code, the backend code it calls and the test runtime, and records each skip in `ONE-APP-COVERAGE.json` as a known gap.
25
+ `himi one-app widgets skip` skips a widget whose rebuild still fails after a bounded repair, and removes its files.
26
+ `generate` emits nothing for a skipped or unbuilt widget: no empty slot and no stand-in. `widgets check --release-hash`
27
+ passes when each widget is verified, or skipped with nothing of it left in the content. It lists every skip in
28
+ `skippedWidgets`, with the widget id and page URL when known and every screen it was on. Generated widget code is
29
+ tested only in a runtime that isolates it. None exists yet, so `widgets test` refuses with `test_runtime_unavailable`
30
+ and widgets are skipped. The `--webview` and `--device` options are gone, and a WebView proof is no longer accepted.
31
+ Every `widgets` envelope and `coverage verify` print `widgetOutcomes: 1`. (#6854)
32
+
17
33
  ## 2026-11-29
18
34
 
19
35
  ### Logic, data & SDKs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1991.0",
3
+ "version": "0.1993.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": "dd0dc04c6bb160c9a8769076224e32368a5f5d08a67f039ceae32174"
85
+ "falconPackageHash": "5016d783bfbc11f0d8a7ddc9e2553c187fa549d6961258919071c1e5"
86
86
  }