@wix/himalaya-cli 0.1868.0 → 0.1870.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.
Files changed (86) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/state/src/index.d.ts +7 -1
  2. package/dist/browser-plane/assets.json +5 -5
  3. package/dist/browser-plane/preview-deferred/{606c83075130fbcd609b5aabaa1e6bac0bfb27bd362d1ce8eb5cbcb266e1f682.bin → ab91dfb9c348c8c78f942a5b88ba90df456c5b436e135d97791d5dd95d6a40dc.bin} +1 -1
  4. package/dist/browser-plane/sw.js +8 -8
  5. package/dist/cli.mjs +4867 -3183
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/guides/himi-json-output.md +27 -0
  8. package/guides/one-app-to-himi-app.md +62 -0
  9. package/guides/release-notes.md +40 -0
  10. package/guides/sdk-reference.json +1 -1
  11. package/package.json +2 -2
  12. package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +9 -0
  13. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +9 -0
  14. package/templates/beauty-salon-owner/config.ts +7 -0
  15. package/templates/beauty-salon-owner/dev/index.ts +618 -0
  16. package/templates/beauty-salon-owner/himalaya.content.json +3 -0
  17. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +9 -0
  18. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  19. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +9 -0
  20. package/templates/branded-lite/tier5-src/_shared/one-app-widget-gate.ts +65 -0
  21. package/templates/brandy/tier5-src/_shared/engine-intl.ts +9 -0
  22. package/templates/community-club/tier5-src/_shared/engine-intl.ts +9 -0
  23. package/templates/community-club-owner/config.ts +7 -0
  24. package/templates/community-club-owner/dev/index.ts +618 -0
  25. package/templates/community-club-owner/himalaya.content.json +3 -0
  26. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +9 -0
  27. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  28. package/templates/conference/tier5-src/_shared/engine-intl.ts +9 -0
  29. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +9 -0
  30. package/templates/events-meetups-owner/config.ts +7 -0
  31. package/templates/events-meetups-owner/dev/index.ts +618 -0
  32. package/templates/events-meetups-owner/himalaya.content.json +3 -0
  33. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +9 -0
  34. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  35. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +9 -0
  36. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +9 -0
  37. package/templates/gym-fitness-owner/config.ts +7 -0
  38. package/templates/gym-fitness-owner/dev/index.ts +618 -0
  39. package/templates/gym-fitness-owner/himalaya.content.json +3 -0
  40. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +9 -0
  41. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  42. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +9 -0
  43. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +9 -0
  44. package/templates/nonprofit-cause-owner/config.ts +7 -0
  45. package/templates/nonprofit-cause-owner/dev/index.ts +618 -0
  46. package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
  47. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +9 -0
  48. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  49. package/templates/owner-lite/config.ts +7 -0
  50. package/templates/owner-lite/dev/index.ts +618 -0
  51. package/templates/owner-lite/himalaya.content.json +3 -0
  52. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +9 -0
  53. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  54. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +9 -0
  55. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +9 -0
  56. package/templates/podcast-creator-owner/config.ts +7 -0
  57. package/templates/podcast-creator-owner/dev/index.ts +618 -0
  58. package/templates/podcast-creator-owner/himalaya.content.json +3 -0
  59. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +9 -0
  60. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  61. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +9 -0
  62. package/templates/portfolio-creative-owner/config.ts +7 -0
  63. package/templates/portfolio-creative-owner/dev/index.ts +618 -0
  64. package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
  65. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +9 -0
  66. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  67. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +9 -0
  68. package/templates/restaurant-owner/config.ts +7 -0
  69. package/templates/restaurant-owner/dev/index.ts +618 -0
  70. package/templates/restaurant-owner/himalaya.content.json +3 -0
  71. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +9 -0
  72. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  73. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +9 -0
  74. package/templates/retail-store-owner/config.ts +7 -0
  75. package/templates/retail-store-owner/dev/index.ts +618 -0
  76. package/templates/retail-store-owner/himalaya.content.json +3 -0
  77. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +9 -0
  78. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
  79. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +9 -0
  80. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +9 -0
  81. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +9 -0
  82. package/templates/yoga-studio-owner/config.ts +7 -0
  83. package/templates/yoga-studio-owner/dev/index.ts +618 -0
  84. package/templates/yoga-studio-owner/himalaya.content.json +3 -0
  85. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +9 -0
  86. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +399 -0
Binary file
@@ -759,6 +759,33 @@ unresolved migration finding.
759
759
  (`$service:brandedLiteNav.chatBadge`, `.notificationsBadge`, `.cartBadge`) and sit on
760
760
  the matching button (exit 1).
761
761
 
762
+ ## `himi one-app widgets` codes
763
+
764
+ `himi one-app widgets plan|inspect|test|check` is the custom-widget stage of a One App migration. Every envelope carries
765
+ `stage: "custom-widgets"`; a source with no placed custom widget answers `ok: true` with `status: "not-applicable"`.
766
+ Failures print `ok: false` and a top-level `code` on stderr. Neither recovered widget code nor page text is printed.
767
+
768
+ - `invalid_usage`: an unknown subcommand, option or widget key, or a missing `--evidence-dir` / `--content` (exit 2).
769
+ - `evidence_invalid`: the collected evidence cannot be read or does not match its hashes (exit 1).
770
+ - `site_url_unavailable` (`inspect`): the collection recorded no public https site URL; each widget's evidence is
771
+ recorded as unavailable (exit 1).
772
+ - `browser_unavailable` (`inspect`): no Chromium could be launched; each widget's evidence is recorded as unavailable
773
+ (exit 1).
774
+ - `inspection_incomplete` (`inspect`): some widget pages could not be observed; their evidence says why, and the same
775
+ command retries only those (exit 1).
776
+ - `custom_widget_tests_failed` (`test`): a placement's required tests are missing or did not pass in the run Himi made
777
+ (each placement lists why); passing placements are still recorded (exit 1). `coverage_missing` (`test`):
778
+ `ONE-APP-COVERAGE.json` is absent (exit 1).
779
+ - `check` fails with the most fundamental of: `custom_widget_unidentified` (a placed widget section names no `pageUri`
780
+ and no owner decision is recorded), `custom_widget_invalid` (a component cannot be placed),
781
+ `custom_widgets_pending` (a component is not built), `custom_widgets_unplaced` (a placement is not embedded),
782
+ `custom_widget_evidence_missing` (no inspection evidence recorded, not even as unavailable),
783
+ `custom_widget_decision_required` (a placement waits for the owner's decision) and `custom_widgets_unverified`
784
+ (a placement's tests did not pass when `check` ran them, or no `widgets test` run names them). `failures` lists every
785
+ one (exit 1). `check` and `himi one-app coverage verify` run the recorded widget tests themselves; `plan` does not.
786
+
787
+ `himi one-app generate` refuses a component it cannot place with `custom_widget_invalid` and writes nothing (exit 1).
788
+
762
789
  ## `himi one-app header-badges` codes
763
790
 
764
791
  Binds the source header's bell, chat and cart counts in `config.ts`. Success prints
@@ -275,6 +275,65 @@ section's settings, with no loader of their own:
275
275
  message are not shown, and both are reported. A section with no event chosen (`eventId` empty), or in a scaffold without `himi_event`,
276
276
  keeps the source's title and a **See All** link to `himi_events`.
277
277
 
278
+ ### Custom widgets
279
+
280
+ A `mobile_app_widgets.viewer` section shows a Mobile App Builder page (a custom widget) inside the app. Its behavior is
281
+ that page's Velo code, which collection does not read, so this stage runs inside the migration (no separate command or
282
+ review) and only when the source places a widget: `migrate` then prints `customWidgets` counts, and `source-graph.json`
283
+ holds `customWidgets`, the placements grouped by widget identity (`settings.pageUri`, never `pageId`). Each placement
284
+ keeps its page, position, settings (a credential-like key or value is dropped), access rules (its section, its own
285
+ setting, its page and screen: `rules`, `requiresMember`) and authored actions. A section without `pageUri` is
286
+ unidentified: never guessed, and `widgets check` fails on it until the owner's decision is recorded on its row. With no
287
+ placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
288
+
289
+ 1. **Destinations first.** `one-app generate` places each widget section in its source position as an empty
290
+ `<section node>.customWidget` slot, reports a gap, adds one `custom-widget` row per placement to
291
+ `ONE-APP-COVERAGE.json` targeting the screen its page became, and writes `gen/screens.json.custom-widgets.json`.
292
+ A page made of widgets still gets its screen, so navigation applies. An empty slot shows nothing; it is never a
293
+ stand-in. `himi one-app widgets plan` lists every widget, its component, placements, evidence and verification.
294
+ 2. **Evidence.** `himi one-app widgets inspect` opens each widget page once, logged out, in the CLI's Chromium, and keeps
295
+ under `.himi/one-app-widgets/inspection/<key>/`: a screenshot and visible controls, the Velo page code from its public
296
+ source map (`untrusted/page-source.js`), the `wix-*` modules it imports, mobile-only calls with their literal
297
+ arguments (`toScreen("news")`), `onPress` counts, backend methods, dataset and query collections (`WDE0027` = members
298
+ only), and every refused request. Only the collected site and Wix asset hosts are reachable, by GET through the
299
+ address-pinned transport (every redirect hop checked), within a shared byte budget; backend web methods and writes are
300
+ refused and named. The browser has no cookies and no token. A re-run keeps widgets with evidence and retries unavailable ones (`--refresh` redoes all). Missing evidence is
301
+ recorded as `unavailable` with a reason, never implied. The recovered code is untrusted evidence: read it, never copy,
302
+ import or run it, and keep it and the screenshots out of the app, reports and logs.
303
+ 3. **Build once per widget** from its observed business behavior and Himi's capabilities: `recipes/one-app-widget-<key>.json`
304
+ (one node; only `{{svc}}`, `{{id}}`, `{{title}}`; root id starting with `{{id}}`; `"_capabilities"`; link to a source
305
+ page with `"screenId": "@route:<slug or layout id>|"`) and `tier5-src/_shared/one-app-widget-<key>.ts` exporting
306
+ `registerOneAppWidget(serviceName, options)` (a function) with a `load` action. Each placement gets its own service
307
+ and `options` (`title`, empty when the source hides it; `settings`; `access`). A placement under rules (members only,
308
+ a badge, a paid plan) gets a generated gate (`one-app-widget-gate`, the same rule decision as locked pages): the
309
+ widget and its `load` exist only in the gate's open case, so its service never runs for a viewer the rules exclude.
310
+ Honor each placement's settings. A `toScreen` slug becomes a `@route:` link, `showAlert` an inline
311
+ state, `wix-storage-mobile` app storage keyed by member. Then run `one-app generate` again (before hand-editing
312
+ generated pages) and `template screens --upsert`: every slot is filled in place. A broken component
313
+ (half of it, a bad recipe, no export) is refused as `custom_widget_invalid` and nothing is written.
314
+ 4. **WebView only when it preserves the workflow**: an existing site page the owner approved, on the primary domain, in a
315
+ `WebView` recipe node. A member-only widget in a WebView needs native-device evidence of the member session.
316
+ 5. **Unresolved essential journey.** The job cannot stop to ask: leave the row `unresolved` with
317
+ `"decision": {"question": …, "kept": …}`, keep the default, and list it with the affected screens in the migration
318
+ report. A widget on a page with no screen (`no-screen`) needs either a placement or that decision.
319
+ 6. **Verify on the generated code.** Write automated tests that build the generated page worker, drive each placement as
320
+ the host does (its gate first) as a Visitor, an entitled member and, for a badge or plan rule, a member without it,
321
+ against controlled data (reads and writes), and render its screen. Name each test `custom-widget <requirement id>
322
+ <check>`: `rendering` and `visitor` always, `member` when a rule needs a member, `access` for a badge or plan rule,
323
+ `navigation` and `data` when they apply. Run them with `himi one-app widgets test --file <test> --release-hash <sha>`
324
+ (`--import <loader>` for TypeScript; `--webview <key>` and `--device <key>=<artifact>` for a WebView). Himi runs
325
+ node's test runner itself, with only `PATH`, locale and time zone from your environment and a private, empty `HOME`
326
+ and temp dir (no token, config location or `NODE_OPTIONS`). That is environment isolation, not a sandbox: the tests run
327
+ 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
328
+ tests again and decide from that run's exit status and report (`plan` runs nothing and confirms nothing). A built
329
+ 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; its
330
+ codes are `custom_widget_unidentified`, `custom_widgets_pending`, `custom_widget_invalid`, `custom_widgets_unplaced`,
331
+ `custom_widget_evidence_missing`, `custom_widget_decision_required` and `custom_widgets_unverified`.
332
+
333
+ Report every widget in the migration report: what it does, approach, unsupported features with affected screens,
334
+ native-only interactions and access rules, and open decisions. This stage can run while other screens are authored;
335
+ final validation waits for it.
336
+
278
337
  ### Preserve section visibility across authentication
279
338
 
280
339
  The eight member-only rows above are supported by the shared visibility recipe below;
@@ -2089,6 +2148,9 @@ himi validate --strict
2089
2148
  himi test --json
2090
2149
  ```
2091
2150
 
2151
+ A source with custom widgets also runs `himi one-app widgets check --evidence-dir .himi/one-app --content .` (see
2152
+ "Custom widgets"); final validation waits for it.
2153
+
2092
2154
  Add meaningful behavioral fixtures for mixed pages, repeated selectors, hidden
2093
2155
  routes, top tabs, CTA argument context, visitor login/resume, member/plan/badge
2094
2156
  gates, unsupported settings versions, and failed versus empty live reads. Run
@@ -16,6 +16,46 @@ areas, always in the same order, so you can skim for the one you care about.
16
16
 
17
17
  ## 2026-11-24
18
18
 
19
+ ### Getting started & the CLI
20
+
21
+ - **A One App migration now carries its custom widgets.** When the source places custom widgets, `himi one-app
22
+ migrate` reports how many there are, and `generate` keeps each placement in its source position with its own
23
+ settings and access rules, as an empty slot until you build the widget. `himi one-app widgets plan` lists every
24
+ widget and what is left. `widgets inspect` records what each widget page shows logged out and which Velo modules and
25
+ calls it uses, without changing anything on the site and without your login. You build each widget once (a recipe
26
+ and a worker module), run `generate` again, and every placement is filled; a placement for members only, a badge or a
27
+ paid plan opens only for viewers who meet that rule. `widgets test` runs your widget tests and records their result,
28
+ and `widgets check` passes only when every placement passed them. A source with no custom widget is unchanged.
29
+ See `himi docs one-app-to-himi-app`, "Custom widgets". (#6460)
30
+
31
+ ### Authoring screens
32
+
33
+ - **Long lists scroll smoothly on Android however far down you are.** A bound list or grid nested in a screen's
34
+ scroll (where template lists sit) used to lay out and draw every row it had built, so each scroll frame got
35
+ slower as you scrolled: 300 rows down, a frame took 60–70 ms of main-thread work on an emulator. It now lays out
36
+ and draws only the rows within two screens of the visible ones, about 10 ms a frame at any depth. Rows keep their
37
+ state while off screen. (#6454)
38
+ - **Apps open faster on Android, and the first screen paints sooner on iOS too.** The launch no longer decodes
39
+ every cached screen to check the seed (iOS and Android), the WebView that runs workers starts loading as the app
40
+ starts instead of when the first screen composes, and cached screens are read off the main thread, one file per
41
+ screen. Branded Lite on an emulator shows its splash content in about 520 ms instead of about 810 ms, and has
42
+ every call of its home screen answered about 340 ms sooner. On iOS a `Text` with a template re-renders only when
43
+ one of its values changes. (#6454)
44
+
45
+ ### Logic, data & SDKs
46
+
47
+ - **Identical reads in flight go out once, on iOS, Android and the web.** When several workers, or a worker and
48
+ the runtime, ask for the same thing at the same moment (the current cart on launch, for example), they now share
49
+ one request and each gets its own copy of the answer. Only reads are shared (`GET`/`HEAD`, and Wix queries such
50
+ as `/query`, `/search`, `/list`), and only between callers with the same credentials, cookies included; a write
51
+ is never shared, and a read that starts after any write, sign-in or sign-out waits for its own answer. Nothing is
52
+ cached by this: the next call after the answer goes to the network. Branded Lite's cold launch sends 15 requests
53
+ instead of 17, and a return from the background 1 instead of 2. (#6454)
54
+ - **Workers start their screen's calls sooner on Android.** A screen's first action is sent as soon as its worker's
55
+ scripts are issued instead of after the boot reports back, and a spare worker is prepared between short frames,
56
+ so an animated screen no longer holds it back: Branded Lite's home sends its calls about 30 ms sooner. App-service
57
+ state is written once per burst of changes, as on iOS and the web. (#6454)
58
+
19
59
  ### Preview, push & release
20
60
 
21
61
  - **Your AI tool can work on an app you built elsewhere, and cancel a build.** The hosted connector (the one
@@ -43,7 +43,7 @@
43
43
  "name": "StreamDirective",
44
44
  "kind": "interface",
45
45
  "jsdoc": "/**\n * Streaming directive (RFC 0040). An action may return its new state with a\n * transient `_stream` field; the runtime strips it from the stored state and\n * asks the native host to open the request as a Server-Sent-Events stream. For\n * every parsed `data:` event the host dispatches `onEvent(state, event)` back\n * through the normal reducer→render loop (the worker has no timers), then\n * `onDone(state)` / `onError(state, {message})` when the stream closes. Requires\n * the bundle to declare the `\"stream\"` capability; `request.url` is checked\n * against the same per-capability host allowlist as `wix_api`.\n */",
46
- "decl": "export interface StreamDirective {\n /** Stable id; a new directive with the same id cancels the prior stream. */\n id: string;\n request: {\n method: \"POST\" | \"GET\";\n url: string;\n headers?: Record<string, string>;\n body?: unknown;\n /** Apply the host's Wix authorization to this request before opening the stream. */\n authorize?: boolean;\n };\n /** Reducer action name dispatched once per parsed `data:` event. */\n onEvent: string;\n /** Reducer action name dispatched when the stream closes cleanly. */\n onDone?: string;\n /** Reducer action name dispatched on transport/parse error. */\n onError?: string;\n}",
46
+ "decl": "export interface StreamDirective {\n /** Stable id; a new directive with the same id cancels the prior stream. */\n id: string;\n request: {\n method: \"POST\" | \"GET\";\n url: string;\n headers?: Record<string, string>;\n body?: unknown;\n /** Apply the host's Wix authorization to this request before opening the stream. */\n authorize?: boolean;\n /**\n * How the response body is framed. `\"sse\"` (the default) reads Server-Sent Events `data:`\n * lines; `\"ndjson\"` reads one JSON object per line (`application/x-ndjson`). Either way each\n * object reaches `onEvent`, and an object whose `type` is `\"done\"` or `\"error\"` ends the stream.\n */\n format?: \"sse\" | \"ndjson\";\n };\n /** Reducer action name dispatched once per parsed event (an SSE `data:` line, or an NDJSON line). */\n onEvent: string;\n /** Reducer action name dispatched when the stream closes cleanly. */\n onDone?: string;\n /** Reducer action name dispatched on transport/parse error. */\n onError?: string;\n}",
47
47
  "verificationChecked": true
48
48
  },
49
49
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1868.0",
3
+ "version": "0.1870.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": "8151b87b86acf6eb7fd71f7e58680e4f232f6cc93bff85cfd9988673"
85
+ "falconPackageHash": "f39c2505f3871e168f6f6ae7d955d086914fd9da302fb5dc40af7bb2"
86
86
  }
@@ -27,6 +27,15 @@ export function hasIntl(): boolean {
27
27
  return typeof Intl !== "undefined";
28
28
  }
29
29
 
30
+ /** The device's IANA time zone, or "UTC" where this engine has no ECMA-402 or no zone data. */
31
+ export function deviceTimeZone(): string {
32
+ try {
33
+ const zone = typeof Intl !== "undefined" && Intl.DateTimeFormat().resolvedOptions().timeZone;
34
+ if (typeof zone === "string" && zone) return zone;
35
+ } catch { /* an engine with Intl but no zone data */ }
36
+ return "UTC";
37
+ }
38
+
30
39
  const MONTHS_SHORT = [
31
40
  "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
32
41
  ] as const;
@@ -27,6 +27,15 @@ export function hasIntl(): boolean {
27
27
  return typeof Intl !== "undefined";
28
28
  }
29
29
 
30
+ /** The device's IANA time zone, or "UTC" where this engine has no ECMA-402 or no zone data. */
31
+ export function deviceTimeZone(): string {
32
+ try {
33
+ const zone = typeof Intl !== "undefined" && Intl.DateTimeFormat().resolvedOptions().timeZone;
34
+ if (typeof zone === "string" && zone) return zone;
35
+ } catch { /* an engine with Intl but no zone data */ }
36
+ return "UTC";
37
+ }
38
+
30
39
  const MONTHS_SHORT = [
31
40
  "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
32
41
  ] as const;
@@ -149,6 +149,13 @@ export default defineApp({
149
149
  "parentScreenId": "himi_owner_lite_aria",
150
150
  "tabId": "aria"
151
151
  },
152
+ {
153
+ "screenId": "himi_owner_lite_maestro",
154
+ "isPublic": false,
155
+ "paramKeys": [],
156
+ "parentScreenId": "himi_owner_lite_aria",
157
+ "tabId": "aria"
158
+ },
152
159
  {
153
160
  "screenId": "himi_owner_lite_brief",
154
161
  "isPublic": false,