@wix/himalaya-cli 0.1723.0 → 0.1725.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 (84) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +2 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/godot/src/index.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +9 -43
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/location/src/index.d.ts +5 -3
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/on-device-ai/src/index.d.ts +19 -7
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +10 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +2 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/preview-surfaces.d.ts +24 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.d.ts +37 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.generated.d.ts +1 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/wrapped-app-link.d.ts +13 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +5 -3
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -2
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +2 -8
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +4 -13
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/videos.d.ts +31 -1
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +175 -1
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +127 -509
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +5 -26
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  30. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/on-device-ai.mjs +49 -3
  31. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  32. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +150 -644
  33. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  34. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  35. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  36. package/dist/browser-plane/assets.json +7 -7
  37. package/dist/browser-plane/package-reader.js +4 -4
  38. package/dist/browser-plane/preview-deferred/{74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin → 49dfd582c5a8fb38ceabd1c544343d87fd478063c04f90c4e7a4ed5ee774f1eb.bin} +1 -1
  39. package/dist/browser-plane/sw.js +9 -9
  40. package/dist/browser-plane/t5-frame.html +16 -0
  41. package/dist/browser-plane/t5-worker-frame.html +16 -0
  42. package/dist/cli.mjs +3039 -1831
  43. package/dist/preview-assets.generated.bin +0 -0
  44. package/guides/capabilities.md +2 -2
  45. package/guides/headless-loop.md +2 -1
  46. package/guides/himi-json-output.md +6 -2
  47. package/guides/iap-products.md +2 -2
  48. package/guides/iap-screen-adoption.md +5 -5
  49. package/guides/sdk-reference.json +47 -82
  50. package/guides/skill.md +1 -1
  51. package/guides/testing-himi-apps.md +4 -3
  52. package/guides/web-page-sdk-reference.md +1 -1
  53. package/guides/webview-page-sdk.md +14 -0
  54. package/guides/wix-business-context.md +24 -0
  55. package/guides/wix-site-to-himi-app.md +2 -1
  56. package/package.json +2 -2
  57. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +2 -2
  58. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -8
  59. package/templates/branded-lite/dev/index.ts +35 -0
  60. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +82 -12
  61. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +2 -2
  62. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -8
  63. package/templates/brandy/README.md +13 -0
  64. package/templates/brandy/config.ts +15 -1
  65. package/templates/brandy/dev/index.ts +10 -7
  66. package/templates/community-club/tier5-src/himi-store-account/index.ts +2 -2
  67. package/templates/conference/tier5-src/himi-store-account/index.ts +2 -2
  68. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +2 -2
  69. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +2 -2
  70. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -8
  71. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +2 -2
  72. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +2 -2
  73. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +2 -2
  74. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -8
  75. package/templates/restaurant/tier5-src/himi-store-account/index.ts +2 -2
  76. package/templates/retail-store/tier5-src/himi-store-account/index.ts +2 -2
  77. package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -8
  78. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +2 -2
  79. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +2 -2
  80. package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -8
  81. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +2 -2
  82. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance-orders.d.ts +0 -10
  83. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs-orders.d.ts +0 -2
  84. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans-orders.d.ts +0 -2
Binary file
@@ -314,10 +314,10 @@ binary carries neither the code nor the store-review footprint of a framework it
314
314
  | iap | `iap` (and `wix_cashier` on iOS) |
315
315
  | live_activity | `live_activity` |
316
316
  | location | `location`, `location_background` |
317
- | location_background (iOS) | `location_background` |
317
+ | location_background | `location_background` |
318
318
  | media | `media_playback`, `video_playback` (in-app video: no iOS background audio, no Android media foreground service) |
319
319
  | motion | `motion` |
320
- | on_device_ai (iOS) | `on_device_ai` |
320
+ | on_device_ai | `on_device_ai` |
321
321
  | push | `push` |
322
322
  | speech (iOS) | `speech` |
323
323
  | tasks (iOS) | `tasks` |
@@ -159,7 +159,8 @@ changed (the text, the component, the token, "logic changed" for a worker-only e
159
159
  in its `{"watch":"rebuilt"}` line. Check the map before handover: an unreached screen or a broken
160
160
  link is a gap to close or to name. `himi test` writes one PNG per
161
161
  screen to `.himi/shots/` on every run, so take the new screens from there instead of rendering each
162
- one again; a bare `--png` on `himi render` writes `.himi/shots/<id>.png`. `himi progress` copies each image into `.himi/history/`
162
+ one again; a bare `--png` on `himi render` writes that run's own `.himi/renders/<id>/<hash>.png` (the `pngFile` it
163
+ prints, so renders you run in parallel never swap pictures) and refreshes `.himi/shots/<id>.png` as the newest one. `himi progress` copies each image into `.himi/history/`
163
164
  as it was when you journaled it, so a later render cannot change what the record says the owner saw;
164
165
  `--step` takes the journey step's number or name, and `--notify` also raises a desktop
165
166
  notification for an owner who stepped away. Nothing here is sent anywhere, and `.himi/` and a
@@ -163,7 +163,11 @@ configEdited, fields }`.
163
163
  `himi ext list` exits 0 and reports problems in `findings[]` (`code`, `extension`, `file?`,
164
164
  `line?`, `message`): the manifest and interface codes (`extension_manifest_invalid`,
165
165
  `extension_name_invalid`, `extension_feature_unsupported`, `extension_action_invalid`,
166
- `extension_interface_invalid`), `extension_unsafe_file`, `extension_too_large`,
166
+ `extension_interface_invalid`), the dependency and privacy-manifest codes
167
+ (`extension_dependency_not_curated` — an `ios.spm` or `android.gradle` entry that is not on the curated
168
+ dependency list at that version; `extension_dependency_invalid` — a malformed one;
169
+ `extension_privacy_manifest_invalid` — an `ios.privacyManifest` that is missing or is not a valid privacy
170
+ manifest), `extension_unsafe_file`, `extension_too_large`,
167
171
  `extension_sources_missing`, `extension_not_found`, `extension_declared_missing`,
168
172
  `extension_not_declared` and `extension_view_shadows_core`, and coverage gaps in `warnings[]`:
169
173
  `extension_range_unreserved`, `extension_single_platform`, `extension_web_unsupported` and
@@ -270,7 +274,7 @@ worker's bundle. These names are stable.
270
274
  | `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`, `test`, `pack` and `run` (see "`config.ts` failures" below). |
271
275
  | `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. |
272
276
  | `control_token_expired` | The selected control token has expired. |
273
- | `extension_invalid` | A native extension the app declares (config.ts `extensions`) cannot be uploaded: a missing `extensions/<name>/`, an invalid `himi-extension.json` or `interface.ts`, a refused build-time file (an SPM or Gradle script, a binary), or one over the size limit. `findings[]` carries `{ code, extension, file?, line?, message }` per problem. Nothing is published. Extension artifacts are uploaded even with `--no-source`. A publishing service that predates native extensions publishes without them; push then reports the warning `extensions_unenforced` (not a refusal, like `require_ota_unenforced`). |
277
+ | `extension_invalid` | A native extension the app declares (config.ts `extensions`) cannot be uploaded: a missing `extensions/<name>/`, an invalid `himi-extension.json` or `interface.ts`, a refused build-time file (an SPM or Gradle script, a binary), a dependency off the curated list (finding code `extension_dependency_not_curated`), or one over the size limit. `findings[]` carries `{ code, extension, file?, line?, message }` per problem. Nothing is published. Extension artifacts are uploaded even with `--no-source`. A publishing service that predates native extensions publishes without them; push then reports the warning `extensions_unenforced` (not a refusal, like `require_ota_unenforced`). |
274
278
  | `app_source_contains_secrets` | Source archiving detected a possible credential. |
275
279
  | `app_source_too_large` | The encoded source archive exceeds its limit. |
276
280
  | `publish_body_too_large` | The complete publish request exceeds its limit. `bodyBytes` is the plain JSON and `limit` the 8,388,608-byte plain limit, as before. Added: `overageBytes`, `decodedLimit` (33,554,432), `decodedOverageBytes`; when push would gzip the body, `wireBytes`, `wireLimit` and `wireOverageBytes`; and `compressedUpload`, why the gzip upload was not admitted: `decoded_limit_exceeded`, `self_serve_credential`, `credential_unverified` (a static or opaque credential the CLI cannot read as a provisioned token) or `wire_limit_exceeded`. `appSourceBytes` and `breakdown` are unchanged. No credential or payload content is included. |
@@ -557,8 +557,8 @@ In order:
557
557
  4. **One mapping per Wix item → Apple product, through Catalog `listProducts` / `createProduct`.** Online Programs map by program id, Wix Stores
558
558
  digital products by product id, one-time unlimited Pricing Plans by plan id, and Wix videos by
559
559
  video id (the ids the purchase flow looks up), all only as non-consumables. A mapped video gets
560
- its App Store price on the Videos screens; buying it is not available yet (prices only,
561
- [checkout](iap-wix-checkout.md#wix-video-prices-only)). A plan is mapped only when the site reads it
560
+ its App Store price on the Videos screens; buying it stays off until its live gates pass (device order,
561
+ [checkout](iap-wix-checkout.md#wix-video-the-device-opens-videos-order)). A plan is mapped only when the site reads it
562
562
  as one-time unlimited (one payment, valid until cancelled); a recurring, time-limited or archived
563
563
  plan is skipped. When the site's plans cannot be read, each plan is `failed` (`request_failed`,
564
564
  `unverified` in the dry-run diff) and not mapped. Other verticals, price tiers and consumable items
@@ -21,7 +21,7 @@ and generated templates. Historical receipts retain their recorded amounts.
21
21
  | `himi-branded-lite-cart` | Full catalog app/item/options reference and quantity; line `total` | Refreshes the current cart and routes before payment; only verified physical regular carts keep checkout; Apple, mixed, multiple-digital, unknown and unverified digital carts are blocked |
22
22
  | `himi-store-cart` | Full catalog reference; line `total` | Consistent shared prices and suppressed Wix subtotal when routes are unsettled or Apple; remains read-only |
23
23
  | `himi-branded-lite-order` | Original catalog app/item/options and quantity | Preserves references; checks current routing and catalog facts before re-adding physical items; never reprices the paid receipt |
24
- | `himi-branded-lite-videos`, `himi-branded-lite-video` (Videos, channel and Video screens) | Wix video ID (`wixVideo`); carousel and row `priceLine`, Video `priceText` / `priceNote` / `purchaseNote` | Shared pricing for videos with a one-time Sale price, in channels that require no subscription or plan. Prices only: no Buy; `wixVideoOrders` refuses while `VIDEOS_APPLE_SALES_ENABLED` is off. Home's video rail stays unpriced |
24
+ | `himi-branded-lite-videos`, `himi-branded-lite-video` (Videos, channel and Video screens) | Wix video ID (`wixVideo`); carousel and row `priceLine`, Video `priceText` / `priceNote` / `purchaseNote` | Shared pricing for videos with a one-time Sale price, in channels that require no subscription or plan. The Video screen's Buy (`buyHidden` / `buyLabel` / `buyDisabled` / `buyNote`) sells through `wixVideoOrders`, the device's own Video order, only while `VIDEOS_APPLE_SALES_ENABLED` is on; it is off, so no Buy shows. Home's video rail stays unpriced |
25
25
  | `video-courses-preview` / Atlas | `storeProductId`, plus course-specific member access mirror | Deferred: deployment and usable course access are unverified. Existing native digital-checkout guard remains; Atlas courses are Stores products, not Wix Video, so `wixVideoOrders` does not apply |
26
26
  | `wix-spaces-product-detail`, `wix-spaces-shop`, `wix-spaces-saved`, `wix-spaces-cart` | Legacy worker sources | Retired `fixtures/wix-spaces-clone/dev` descriptors still reference these workers; no active app or generated template consumer. Legacy pricing/checkout is not migrated or certified for managed Apple IAP |
27
27
  | `hip-shop-product`, `hip-shop-home`, `hip-shop-explore`, `hip-shop-saved`, `hip-shop-cart` | Legacy worker sources | Retired `fixtures/hip-shop/dev` descriptors reference these workers; no active app or generated template consumer. Legacy pricing/checkout is not migrated or certified for managed Apple IAP |
@@ -43,10 +43,10 @@ withdraw the shared checkout's access state; reading existing access never creat
43
43
 
44
44
  The existing Stores adapter reads `paymentStatus: PAID` as granted. That proves payment,
45
45
  not usable delivery of a download or course. It also lacks a verified member-scoped
46
- existing-ownership read. Only the product screen installs `storesProductOrders` for sales, while
47
- `storesAppleSalesEnabled()` is true. As shipped, `STORES_APPLE_SALES_ENABLED` is on, so mapped digital
48
- products without options are paid through wix-iap StartItemPayment: the device opens no eCom checkout
49
- and makes no cashier charge. Live digital fulfillment remains unverified.
46
+ existing-ownership read. Only the product screen installs `storesProductOrders` for sales. Mapped
47
+ digital products without options are paid through wix-iap StartItemPayment: the device opens no eCom
48
+ checkout and makes no cashier charge. Plans, Programs, Bookings and Events are paid the same way; no
49
+ switch turns any of them off. Live digital fulfillment remains unverified.
50
50
  The cart and list screens do not start Apple sales. A confirmed physical product retains its
51
51
  regular checkout.
52
52
  Unknown product facts, unsupported catalog apps and missing routing fail closed.
@@ -1877,7 +1877,7 @@
1877
1877
  "name": "PackResult",
1878
1878
  "kind": "interface",
1879
1879
  "jsdoc": "",
1880
- "decl": "export interface PackResult {\n status: PackStatus;\n /** Local path the verified pack was written to, when it got that far. */\n path?: string;\n}",
1880
+ "decl": "export interface PackResult {\n status: PackStatus;\n /** Local path the verified pack was written to, when it got that far. */\n path?: string;\n /** Why it failed, when the platform said: e.g. `http 404 host/v1/asset/<sha>`, `network -1009 host/…`,\n * `sri mismatch`. Never a query or a header, so it is safe to show. */\n detail?: string;\n}",
1881
1881
  "verificationChecked": true
1882
1882
  },
1883
1883
  {
@@ -2797,27 +2797,6 @@
2797
2797
  "decl": "export interface AppleSaleRule {\n appProductId(entityId: string): string;\n productType: \"NON_CONSUMABLE\" | \"CONSUMABLE\";\n}",
2798
2798
  "verificationChecked": true
2799
2799
  },
2800
- {
2801
- "name": "BOOKINGS_APPLE_SALES_ENABLED",
2802
- "kind": "const",
2803
- "jsdoc": "",
2804
- "decl": "export const BOOKINGS_APPLE_SALES_ENABLED = true;",
2805
- "verificationChecked": true
2806
- },
2807
- {
2808
- "name": "EVENTS_APPLE_SALES_ENABLED",
2809
- "kind": "const",
2810
- "jsdoc": "",
2811
- "decl": "export const EVENTS_APPLE_SALES_ENABLED = true;",
2812
- "verificationChecked": true
2813
- },
2814
- {
2815
- "name": "STORES_APPLE_SALES_ENABLED",
2816
- "kind": "const",
2817
- "jsdoc": "/**\n * Whether Wix Stores items sell through the App Store: the Stores rule in `APPLE_SALE_RULES` and the\n * product screen's Buy. A sale is wix-iap StartItemPayment (catalyst-server #24496), which places and\n * charges the member's eCom order for one catalog item server-side; the device never opens an eCom\n * checkout or a cashier charge for it. ON for mapped digital products.\n */",
2818
- "decl": "export const STORES_APPLE_SALES_ENABLED = true;",
2819
- "verificationChecked": true
2820
- },
2821
2800
  {
2822
2801
  "name": "STORES_PRODUCT_SALE_RULE",
2823
2802
  "kind": "const",
@@ -2825,60 +2804,18 @@
2825
2804
  "decl": "export const STORES_PRODUCT_SALE_RULE: AppleSaleRule = { appProductId: (id) => id, productType: \"NON_CONSUMABLE\" };",
2826
2805
  "verificationChecked": true
2827
2806
  },
2828
- {
2829
- "name": "PRICING_PLAN_APPLE_SALES_ENABLED",
2830
- "kind": "const",
2831
- "jsdoc": "/** One-time unlimited plans sell through the App Store. Proven live in Sandbox on 2026-10-19: a member's\n * online plan order is charged with one cashier item whose id is the plan id, so StartPayment maps it to the\n * plan's Apple product, and the order reads ACTIVE and PAID. Recurring and time-limited plans stay outside\n * this rule; their Billing lifecycle is unfinished. */",
2832
- "decl": "export const PRICING_PLAN_APPLE_SALES_ENABLED = true;",
2833
- "verificationChecked": true
2834
- },
2835
2807
  {
2836
2808
  "name": "VIDEOS_APPLE_SALES_ENABLED",
2837
2809
  "kind": "const",
2838
- "jsdoc": "/**\n * Whether Wix Video videos sell through the App Store. OFF: prices only. A video with a one-time Sale\n * price above zero is mapped under its video id as a one-time unlock (`wixVideoItem`), and screens show\n * its App Store price, but no purchase path exists yet: Wix Video has no public order API, and the\n * Videos order adapter refuses every sale until this is on.\n */",
2810
+ "jsdoc": "/**\n * Whether Wix Video videos sell through the App Store. OFF until the Wix Video purchase is proven live\n * (gates G1–G4). A video with a one-time Sale price above zero is mapped under\n * its video id as a one-time unlock (`wixVideoItem`), and screens show its App Store price. ON, the Video\n * screen offers Buy: the device opens Video's own SALE order on its GraphQL gateway (`wixVideoOrders`),\n * and the shared checkout charges it with appleIAP and pays it through StartPayment. OFF, the adapter\n * refuses every sale and the screen composes no checkout.\n */",
2839
2811
  "decl": "export const VIDEOS_APPLE_SALES_ENABLED = false;",
2840
2812
  "verificationChecked": true
2841
2813
  },
2842
- {
2843
- "name": "PRICING_PLAN_ITEM_PAYMENT_ENABLED",
2844
- "kind": "const",
2845
- "jsdoc": "/**\n * Which verticals order through wix-iap StartItemPayment (catalyst-server #24878 Plans, #24880 Online\n * Programs, #24881 Bookings, #24882 Events) instead of the device's own checkout and StartPayment. The\n * server places the order as the member, charges it with appleIAP and names the App Store product. Each\n * OFF: that vertical keeps its client checkout. Turn one on only once production wix-iap and Serve's\n * generated client carry its fields; each flips on its own.\n */",
2846
- "decl": "export const PRICING_PLAN_ITEM_PAYMENT_ENABLED = false;",
2847
- "verificationChecked": true
2848
- },
2849
- {
2850
- "name": "ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED",
2851
- "kind": "const",
2852
- "jsdoc": "",
2853
- "decl": "export const ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED = false;",
2854
- "verificationChecked": true
2855
- },
2856
- {
2857
- "name": "BOOKINGS_ITEM_PAYMENT_ENABLED",
2858
- "kind": "const",
2859
- "jsdoc": "",
2860
- "decl": "export const BOOKINGS_ITEM_PAYMENT_ENABLED = false;",
2861
- "verificationChecked": true
2862
- },
2863
- {
2864
- "name": "EVENTS_ITEM_PAYMENT_ENABLED",
2865
- "kind": "const",
2866
- "jsdoc": "",
2867
- "decl": "export const EVENTS_ITEM_PAYMENT_ENABLED = false;",
2868
- "verificationChecked": true
2869
- },
2870
- {
2871
- "name": "CANCEL_PAYMENT_ENABLED",
2872
- "kind": "const",
2873
- "jsdoc": "/**\n * CancelPayment (catalyst-server #24894, not deployed) when the member closes the Apple sheet: it cancels\n * the pending Payment and releases the ticket reservation or booking it held. OFF: nothing is sent, and the\n * Payment expires on its own in about an hour.\n */",
2874
- "decl": "export const CANCEL_PAYMENT_ENABLED = false;",
2875
- "verificationChecked": true
2876
- },
2877
2814
  {
2878
2815
  "name": "AppleSaleOptions",
2879
2816
  "kind": "interface",
2880
- "jsdoc": "/**\n * The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,\n * keyed by catalog kind. wix-iap StartPayment maps the cashier order's single item id, and Online\n * Programs builds that order with the program id as the item id; programs are one-time unlocks.\n * Wix Stores and one-time unlimited Pricing Plans join only with their independent switches.\n */",
2881
- "decl": "export interface AppleSaleOptions {\n storesAppleSalesEnabled?: boolean;\n pricingPlanAppleSalesEnabled?: boolean;\n bookingsAppleSalesEnabled?: boolean;\n eventsAppleSalesEnabled?: boolean;\n videosAppleSalesEnabled?: boolean;\n}",
2817
+ "jsdoc": "/**\n * The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,\n * keyed by catalog kind. Every vertical but Video sells through wix-iap StartItemPayment, which orders\n * the item server-side and names the App Store product by the item's own id.\n */",
2818
+ "decl": "export interface AppleSaleOptions {\n videosAppleSalesEnabled?: boolean;\n}",
2882
2819
  "verificationChecked": true
2883
2820
  },
2884
2821
  {
@@ -2898,8 +2835,8 @@
2898
2835
  {
2899
2836
  "name": "APPLE_PROVISIONING_RULES",
2900
2837
  "kind": "const",
2901
- "jsdoc": "/** Catalog setup may precede activation; purchases still require the independent sales switches. */",
2902
- "decl": "export const APPLE_PROVISIONING_RULES: Readonly<Record<string, AppleSaleRule>> = {\n ...APPLE_SALE_RULES, bookingsService: ATTENDANCE_SALE_RULE, eventsTicket: ATTENDANCE_SALE_RULE, wixVideo: VIDEO_SALE_RULE,\n};",
2838
+ "jsdoc": "/** Catalog setup may precede activation: a video is provisioned while its sales stay off. */",
2839
+ "decl": "export const APPLE_PROVISIONING_RULES: Readonly<Record<string, AppleSaleRule>> = {\n ...APPLE_SALE_RULES, wixVideo: VIDEO_SALE_RULE,\n};",
2903
2840
  "verificationChecked": true
2904
2841
  },
2905
2842
  {
@@ -3153,7 +3090,7 @@
3153
3090
  {
3154
3091
  "name": "attendanceCheckoutRoute",
3155
3092
  "kind": "function",
3156
- "jsdoc": "/** Applies platform support and activation switches without sending uncertain iOS offers to web checkout. */",
3093
+ "jsdoc": "/** Applies platform support without sending uncertain iOS offers to web checkout. */",
3157
3094
  "decl": "export function attendanceCheckoutRoute(item: BookingAttendance | TicketAttendance, currency: string, platform: string): \"regular\" | \"appleIap\" | \"blocked\";",
3158
3095
  "verificationChecked": true
3159
3096
  },
@@ -3406,7 +3343,7 @@
3406
3343
  "name": "\"./checkout-source.js\"",
3407
3344
  "kind": "reexport",
3408
3345
  "jsdoc": "",
3409
- "decl": "export { storesAppleSalesEnabled } from \"./checkout-source.js\";",
3346
+ "decl": "export { storesAppleSalesEnabled, videosAppleSalesEnabled } from \"./checkout-source.js\";",
3410
3347
  "verificationChecked": true
3411
3348
  },
3412
3349
  {
@@ -3448,28 +3385,28 @@
3448
3385
  "name": "onlineProgramOrders",
3449
3386
  "kind": "const",
3450
3387
  "jsdoc": "",
3451
- "decl": "export const onlineProgramOrders: IapOrderAdapter = ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED ? onlineProgramItemPayments : onlineProgramClientOrders;",
3388
+ "decl": "export const onlineProgramOrders = onlineProgramItemPayments;",
3452
3389
  "verificationChecked": true
3453
3390
  },
3454
3391
  {
3455
3392
  "name": "pricingPlanOrders",
3456
3393
  "kind": "const",
3457
3394
  "jsdoc": "",
3458
- "decl": "export const pricingPlanOrders: IapOrderAdapter = PRICING_PLAN_ITEM_PAYMENT_ENABLED ? pricingPlanItemPayments : pricingPlanClientOrders;",
3395
+ "decl": "export const pricingPlanOrders = pricingPlanItemPayments;",
3459
3396
  "verificationChecked": true
3460
3397
  },
3461
3398
  {
3462
3399
  "name": "bookingOrders",
3463
3400
  "kind": "const",
3464
3401
  "jsdoc": "",
3465
- "decl": "export const bookingOrders: IapOrderAdapter = BOOKINGS_ITEM_PAYMENT_ENABLED ? bookingItemPayments : bookingClientOrders;",
3402
+ "decl": "export const bookingOrders = bookingItemPayments;",
3466
3403
  "verificationChecked": true
3467
3404
  },
3468
3405
  {
3469
3406
  "name": "eventTicketOrders",
3470
3407
  "kind": "const",
3471
3408
  "jsdoc": "",
3472
- "decl": "export const eventTicketOrders: IapOrderAdapter = EVENTS_ITEM_PAYMENT_ENABLED ? eventTicketItemPayments : eventTicketClientOrders;",
3409
+ "decl": "export const eventTicketOrders = eventTicketItemPayments;",
3473
3410
  "verificationChecked": true
3474
3411
  },
3475
3412
  {
@@ -3482,10 +3419,17 @@
3482
3419
  {
3483
3420
  "name": "storesAppleSalesEnabled",
3484
3421
  "kind": "function",
3485
- "jsdoc": "/** Whether Wix Stores items sell through the App Store: wix-iap StartItemPayment places and charges\n * the member's eCom order (`STORES_APPLE_SALES_ENABLED` in @himalaya/iap). Turning it off stops only\n * new attempts: stored ones are still held, completed and tracked (). */",
3422
+ "jsdoc": "/** @deprecated Always true: Wix Stores items always sell through the App Store (wix-iap StartItemPayment).\n * Kept because screens generated from earlier `himi init` templates still call it. */",
3486
3423
  "decl": "export function storesAppleSalesEnabled(): boolean;",
3487
3424
  "verificationChecked": true
3488
3425
  },
3426
+ {
3427
+ "name": "videosAppleSalesEnabled",
3428
+ "kind": "function",
3429
+ "jsdoc": "/** Whether a Wix Video sells through the App Store: the device opens Video's SALE order and the\n * shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap, off until its live gates pass). */",
3430
+ "decl": "export function videosAppleSalesEnabled(): boolean;",
3431
+ "verificationChecked": true
3432
+ },
3489
3433
  {
3490
3434
  "name": "WixBridge",
3491
3435
  "kind": "interface",
@@ -4309,7 +4253,7 @@
4309
4253
  "name": "RegionMonitoringSupport",
4310
4254
  "kind": "interface",
4311
4255
  "jsdoc": "",
4312
- "decl": "export interface RegionMonitoringSupport {\n /** False on Android and web. Check it BEFORE relying on a terminated-app trigger. */\n available: boolean;\n /** How many regions the OS will monitor for this app. iOS: 20, process-wide. */\n maxRegions: number;\n /** Radii below this are unreliable on consumer GPS and are clamped up to it. */\n minRadiusM: number;\n /** The largest radius this device will monitor; a larger region is never entered. */\n maxRadiusM: number;\n}",
4256
+ "decl": "export interface RegionMonitoringSupport {\n /** False on the web, and wherever the module is not linked. Check it BEFORE relying on a\n * terminated-app trigger. */\n available: boolean;\n /** How many regions the OS will monitor for this app. iOS: 20, Android: 100, process-wide. */\n maxRegions: number;\n /** Radii below this are unreliable on consumer GPS and are clamped up to it. */\n minRadiusM: number;\n /** The largest radius this device will monitor; a larger region is never entered. */\n maxRadiusM: number;\n}",
4313
4257
  "verificationChecked": true
4314
4258
  },
4315
4259
  {
@@ -4323,7 +4267,7 @@
4323
4267
  "name": "MonitoredRegionResult",
4324
4268
  "kind": "interface",
4325
4269
  "jsdoc": "/** The outcome of registering a region. `radiusM` is what the OS ACTUALLY monitors — a\n * requested radius below `minRadiusM` or above the device maximum is clamped, and an app\n * drawing the circle should draw the one it got. */",
4326
- "decl": "export interface MonitoredRegionResult {\n ok: boolean;\n id?: string;\n radiusM?: number;\n /** Why it was refused: no Always grant, the region cap, or an unusable coordinate. */\n reason?: string;\n}",
4270
+ "decl": "export interface MonitoredRegionResult {\n ok: boolean;\n id?: string;\n radiusM?: number;\n /** Why it was refused: no Always grant (on Android, also only approximate location granted —\n * geofencing needs precise), the region cap, or an unusable coordinate. */\n reason?: string;\n}",
4327
4271
  "verificationChecked": true
4328
4272
  },
4329
4273
  {
@@ -4847,8 +4791,8 @@
4847
4791
  {
4848
4792
  "name": "OnDeviceEngine",
4849
4793
  "kind": "type",
4850
- "jsdoc": "/** The on-device engine backing generation, when one is available. */",
4851
- "decl": "export type OnDeviceEngine = \"foundation_models\" | \"gemini_nano\" | \"prompt_api\";",
4794
+ "jsdoc": "/** The on-device engine backing generation, when one is available. `chrome_built_in` is Chrome's\n * task model (Summarizer / Rewriter / Proofreader), which only the writing tasks report. */",
4795
+ "decl": "export type OnDeviceEngine = \"foundation_models\" | \"gemini_nano\" | \"prompt_api\" | \"chrome_built_in\";",
4852
4796
  "verificationChecked": true
4853
4797
  },
4854
4798
  {
@@ -4904,16 +4848,37 @@
4904
4848
  "name": "SummarizeOptions",
4905
4849
  "kind": "interface",
4906
4850
  "jsdoc": "",
4907
- "decl": "export interface SummarizeOptions {\n /** Extra instruction, e.g. \"in one sentence\" or \"as 3 bullet points\". */\n instruction?: string;\n /** Complexity of the summarization. Defaults to MEDIUM. */\n taskComplexity?: TaskComplexity;\n}",
4851
+ "decl": "export interface SummarizeOptions {\n /** \"paragraph\" (default) or \"bullets\". */\n format?: \"paragraph\" | \"bullets\";\n /** \"short\", \"medium\" (default) or \"long\". */\n length?: \"short\" | \"medium\" | \"long\";\n /** Extra free-form instruction, e.g. \"in one sentence\". When set, the summary is generated\n * through `generateText` with that instruction instead of the platform's summarizer. */\n instruction?: string;\n /** Complexity hint for the `instruction` path. Defaults to MEDIUM. */\n taskComplexity?: TaskComplexity;\n}",
4852
+ "verificationChecked": true
4853
+ },
4854
+ {
4855
+ "name": "RewriteStyle",
4856
+ "kind": "type",
4857
+ "jsdoc": "/** How `rewrite` should change the text. */",
4858
+ "decl": "export type RewriteStyle = \"rephrase\" | \"shorter\" | \"elaborate\" | \"friendly\" | \"professional\" | \"emojify\";",
4908
4859
  "verificationChecked": true
4909
4860
  },
4910
4861
  {
4911
4862
  "name": "summarize",
4912
4863
  "kind": "function",
4913
- "jsdoc": "/**\n * Summarize a block of text on device. Thin sugar over `generateText` with a fixed\n * `{ summary: string }` schema; returns the extracted summary in `text` (or the raw failure\n * result — check `.success`).\n */",
4864
+ "jsdoc": "/**\n * Summarize a block of text on device — the on-device model with summarization instructions (Apple\n * Foundation Models, Gemini Nano), or Chrome's Summarizer on the web. Returns plain text in `text`;\n * check `.success`.\n */",
4914
4865
  "decl": "export async function summarize(text: string, opts: SummarizeOptions = {}): Promise<GenerateTextResult>;",
4915
4866
  "verificationChecked": true
4916
4867
  },
4868
+ {
4869
+ "name": "rewrite",
4870
+ "kind": "function",
4871
+ "jsdoc": "/** Rewrite text on device in a given style (shorter, friendlier, more professional…). */",
4872
+ "decl": "export async function rewrite(text: string, style: RewriteStyle = \"rephrase\"): Promise<GenerateTextResult>;",
4873
+ "verificationChecked": true
4874
+ },
4875
+ {
4876
+ "name": "proofread",
4877
+ "kind": "function",
4878
+ "jsdoc": "/** Fix spelling and grammar on device; `text` is the corrected text. */",
4879
+ "decl": "export async function proofread(text: string): Promise<GenerateTextResult>;",
4880
+ "verificationChecked": true
4881
+ },
4917
4882
  {
4918
4883
  "name": "version",
4919
4884
  "kind": "const",
package/guides/skill.md CHANGED
@@ -210,7 +210,7 @@ If a gate is not implied (no credentials, no draft instruction, no site URL for
210
210
  1. **The board opens at init.** `himi init` creates the build board (`.himi/studio/index.html`) and its `next[]` starts with this session's first steps: run them now, in order: the first picture and its postcard, the consent preflight, then the live preview — for every template. The preflight costs nothing on an app that makes no startup request: if no worker or config can make a Wix or external request at boot, go straight on. When the installed `init` prints no `board`, run `himi studio --no-open` once in the app folder.
211
211
  2. **The first picture comes from init.** A current `himi init` renders the home screen itself — offline, it never calls Wix, so it needs no preflight; when the app has recorded data (`dev/net-mocks.json`, which `himi test --record` writes, or cms seed rows) the automatic pictures load it, and otherwise they are captioned as an offline preview, not as an error — and journals it as the STARTING POINT — the template before any of your changes, never "your app" — so the board holds a picture from the start; your first home render after you change the source is journaled as "First look at your app". It does so only for a template bundled with the CLI: one fetched with `--remote` is its publisher's code, and a render runs it on this machine, so read its `dev/`, `config.ts` and `tier5-src/` first. On an older CLI, or when its `firstLook` says `skipped`, make it yourself right after init: `himi render <homeScreenId> --png --device iphone`. The CLI journals that first look itself.
212
212
  3. **Then the live preview: init started it; if it isn't running (`--remote`, CI), start it.** A current `himi init` starts `himi run --watch` itself (its `watch` field names the url, the board and `.himi/watch.log`; it stops after 30 minutes with no save) — do not start a second one. When its `watch` says `skipped`, only once the consent preflight (journey step 4) clears the app to boot locally, run `himi run --watch --content <dir> &` and leave it up until the handover: it repaints on every save and serves the board at `<url>/__himi/studio/`. Do not wait to be reminded: a `reminder` from `himi render` or `himi test` (the last key of their output) that says to start it means none is running — run it then; one that names a url means it is running.
213
- 4. **A postcard with a picture at every journey step:** `himi progress "<what changed>" --step <n> --image .himi/shots/<screenId>.png`. Leave out `--image` and a current CLI attaches the current home shot for you — or, when that shot shows loading placeholders, an empty or an error state, the newest home picture of the current code that shows content; with none it attaches nothing, and `imageNote` says why. `himi test` and `himi push --draft` journal their own results too (a repeat draft says what changed since the last one), and a home render after ten silent minutes journals "Still building" — your postcards still say what changed and why it matters.
213
+ 4. **A postcard with a picture at every journey step:** `himi progress "<what changed>" --step <n> --image <png>`, with the `pngFile` your `himi render --png` printed (that run's own copy under `.himi/renders/`; `.himi/shots/<screenId>.png` is only the newest render, which a parallel render can replace). Leave out `--image` and a current CLI attaches the current home shot for you — or, when that shot shows loading placeholders, an empty or an error state, the newest home picture of the current code that shows content; with none it attaches nothing, and `imageNote` says why. `himi test` and `himi push --draft` journal their own results too (a repeat draft says what changed since the last one), and a home render after ten silent minutes journals "Still building" — your postcards still say what changed and why it matters.
214
214
  5. **At the handover, the picture and the making-of:** journal `himi progress "<what the owner can review>" --step review` — it carries the current home picture even when the draft's card showed it, and rebuilds and names `.himi/making-of.html` (`makingOf`) — then hand the owner that file beside the preview link (every current `himi push --draft` also writes it, as `reel`; on an older CLI run `himi studio reel`). Name the file in your final report.
215
215
 
216
216
  ## Technical handoff
@@ -38,7 +38,7 @@ answers three questions:
38
38
  > ```bash
39
39
  > himi validate --content . --strict
40
40
  > himi test --content . --json
41
- > himi render home --content . --png # bare --png: .himi/shots/home.png
41
+ > himi render home --content . --png # bare --png: pngFile (.himi/renders/home/<hash>.png) + .himi/shots/home.png
42
42
  > himi render home --content . --scheme dark --png .himi/shots/home-dark.png
43
43
  > himi ux record --content . --platform ios --status unavailable --reason "no simulator off-repo"
44
44
  > himi ux record --content . --platform android --status unavailable --reason "no emulator off-repo"
@@ -270,8 +270,9 @@ Absence is said, never silent: without the browser the report carries
270
270
  the install command `himi render --png` prints. Web fidelity, honestly named: these are the web
271
271
  renderer's pixels; native truth still comes from a device (`himi push` a preview).
272
272
 
273
- Hygiene: a **full** run owns `.himi/shots/` and clears it first, so a deleted screen
274
- leaves no stale artifact; a **targeted** run (`himi test <screenId>`) only adds its own
273
+ Hygiene: a **full** run owns `.himi/shots/`: after writing its PNGs it removes the ones of
274
+ screens it did not shoot, so a deleted screen leaves no stale artifact (it never deletes the
275
+ directory, so a `himi render` running at the same time keeps its picture); a **targeted** run (`himi test <screenId>`) only adds its own
275
276
  PNGs, and `--no-shots` leaves whatever the last shots run wrote — delete the dir if that
276
277
  matters. `--offline` strips every data layer for the crawl AND the shots alike, so the
277
278
  PNGs and the report always describe the same run.
@@ -39,7 +39,7 @@ the SDK sources, so it matches the shipped SDKs.
39
39
  - [`media_playback`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fmedia_playback?format=md) — Background-capable media playback and offline downloads. 21 methods · returns FileHandles.
40
40
  - [`motion`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fmotion?format=md) — Device's motion sensors. 7 methods.
41
41
  - [`network`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fnetwork?format=md) — Network capability. 1 method.
42
- - [`on_device_ai`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fon_device_ai?format=md) — ON-DEVICE text generation. 4 methods.
42
+ - [`on_device_ai`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fon_device_ai?format=md) — ON-DEVICE text generation. 6 methods.
43
43
  - [`open_url`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fopen_url?format=md) — Opening links + external apps. 2 methods.
44
44
  - [`pdf`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fpdf?format=md) — Viewing PDF documents. 2 methods.
45
45
  - [`photos`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fphotos?format=md) — Photo library (picker-first). 4 methods · returns FileHandles.
@@ -247,6 +247,20 @@ every build. (Inside the Himi repository Brandy's customer build does the same:
247
247
  for a local preview.) To expose
248
248
  fewer methods, write your own companion and name it in `bundle` — a named bundle is used as is.
249
249
 
250
+ Each site screen must also carry the companion, so its pages can reach it. In a site-shell
251
+ content package (`himi init --template brandy`) `dev/index.ts` already does this for every page
252
+ with `withSiteWebSdk` from `@wix/himalaya/core`:
253
+
254
+ ```ts
255
+ import { siteScreens, withSiteWebSdk } from "@wix/himalaya/core";
256
+ // provisioning.json's `webSdk` block; absent or empty ⇒ the screen is returned unchanged.
257
+ exact: { site_home: (ctx) => withSiteWebSdk(siteScreens(site).site_home, ctx, provisioning.webSdk) }
258
+ ```
259
+
260
+ It names the bundle the build generates, declares `webview`, the enabled capabilities and anything
261
+ their SDKs call besides them, and returns `null` (the screen does not build) when the companion was
262
+ not built. A screen that carries a companion keeps its WebView form only.
263
+
250
264
  Brandy accepts capabilities `himi dist` can add to an extensible shell. Capabilities requiring
251
265
  app-specific boot wiring remain refused until that shell supplies the wiring — the list is in
252
266
  [the web page guide](https://apps.wix.com/_api/himi-serve/docs/web-page-native-sdk.md#before-you-start-what-the-app-owner-must-enable).
@@ -211,6 +211,30 @@ bottom tabs; more than five → `drawer`), `branding.primaryColor` from its them
211
211
  verticals added to `installedVerticals` unless a probe answered 428. To recreate the whole app rather
212
212
  than seed a template from it, run `himi one-app migrate`.
213
213
 
214
+ ### The retired Wix Forum (`book.legacyForum`)
215
+
216
+ Wix Forum was discontinued on 1 March 2026; Wix Groups replaced it. A site can still list the Forum
217
+ app, a `/forum` page or Forum sections in its mobile app, so analyze never treats `forum` as an
218
+ installed vertical: not from a probe, the published site or `book.mobileApp`. The app never gets
219
+ Forum screens, an empty Groups tab or Blog posts in their place. A stale "Forum" nav link names no
220
+ tab, `--site-pages` never embeds or maps the `/forum` page, and `himi template recommend --book`
221
+ does not count Forum (or Groups read as `none`).
222
+
223
+ When the Forum app is installed, its API answers, or the mobile app has Forum sections, the book
224
+ gets `legacyForum` (also `## Legacy Forum` in `book.md`, and one warning):
225
+
226
+ | `groups` | What the app gets | Owner step (`next`) |
227
+ |---|---|---|
228
+ | `found` | the site's real Wix Groups (`groupsMemberOnly` when the visitor read answered with none) | confirm in the dashboard that these groups hold the Forum's posts before saying it moved |
229
+ | `none` (a 428, or an empty owner read) | no community screen, even when the old app had a Groups section | the owner moves the forum to Wix Groups from the dashboard, if Wix still offers it, then re-runs analyze |
230
+ | `unknown` | no Forum screen; Groups only from another signal (the published site, or the old app's Groups section) | the owner Groups read failed (fix the token or permission), was not made (re-run with `--site`), or nothing was read (re-run with `--client-id`) |
231
+
232
+ `migration` is always `not-verified`. The Forum-to-Groups migration record (status, stage counts,
233
+ old-to-new ids) needs an app identity with Manage Social Groups, which analyze does not hold. So
234
+ analyze never reads it and never starts, retries or completes a migration; it also never invites
235
+ members or publishes the site. Do not tell an owner that their Forum moved, or promise to recover
236
+ posts after the deadline, from this chapter alone.
237
+
214
238
  The plane has no headless browser (`look.unavailable: no_browser_on_plane`). Owner token is a **request field**, never spawned via `wix token` on the guest. Blobs in the book are **URLs** (Media Manager / wixstatic), not S3 and not base64.
215
239
 
216
240
  `--apply` writes `appearance.homeLayout` + `navigation.navKind` plus identity/colors. It never silently overwrites committed Amit1 `apps/himi-branded-lite/provisioning.json`.
@@ -144,7 +144,8 @@ for **behavior** is the website; design authority for **layout** is
144
144
 
145
145
  | Website | Mobile |
146
146
  |---|---|
147
- | Vertical (book, shop, events, forum, members, blog) | Template/overlay screen; bind with `himi sdk` + live `@himalaya/wix-*`. Any screen showing a digital item's price (program, product, plan) also uses the shared IAP pricing layer — `himi docs iap-pricing` — whether it came from a template or you wrote it |
147
+ | Retired Wix Forum (`book.legacyForum`) | No Forum screen. The app shows the site's Wix Groups only when analyze found some; otherwise pass the `next` owner step on. Never a Blog post or an empty Groups tab instead (`himi docs wix-business-context`) |
148
+ | Vertical (book, shop, events, members, blog, groups) | Template/overlay screen; bind with `himi sdk` + live `@himalaya/wix-*`. Any screen showing a digital item's price (program, product, plan) also uses the shared IAP pricing layer — `himi docs iap-pricing` — whether it came from a template or you wrote it |
148
149
  | Custom content / CMS / forms | One T5 screen per *job*; data = adopted CMS (`wixId`) or a form worker (`himi docs recipe-form-submit`) |
149
150
  | Velo page modules | Briefing only: field names, collection ids, submit flow. **Rewrite** as a worker. Never copy Velo JS. Site HTTP functions (`/_functions/`) are a separate API: `himi docs wix-site-http-functions` / `himi site function` — analyze never invokes them |
150
151
  | Lightboxes, popups, multi-column editors | Push screen or sheet — not a ported lightbox |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1723.0",
3
+ "version": "0.1725.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "49b19924fc8375a1f3d5afcc15d5b54963a3ff1666156b4889342b56"
84
+ "falconPackageHash": "8dd7508f5def814e44efed68e6124c0623fb9f7dfd2bb1bf95cd0aec"
85
85
  }
@@ -17,7 +17,7 @@ import { stashCopy, copyParam, copyTemplate } from "../_shared/himi-copy.js";
17
17
  import { signInPageStyle, signInSheetStyle } from "../_shared/sign-in-sheet.js";
18
18
  import { memberAccountRoutes } from "../_shared/member-account-routes.js";
19
19
  import { CONTINUATION_BUDGET_MS, memberScreenTarget, within } from "../_shared/member-screen.js";
20
- import { createIapCommerce, onlineProgramOrders, pricingPlanOrders, storesAppleSalesEnabled, storesProductOrders } from "@himalaya/iap-checkout";
20
+ import { createIapCommerce, onlineProgramOrders, pricingPlanOrders, storesProductOrders } from "@himalaya/iap-checkout";
21
21
  import { IAP_RESTORE_KEYS, NO_IAP_RESTORE, createIapRestore, resetUnhydratedKeysOnOlderRuntime, type IapRestoreFields } from "../_shared/iap-worker.js";
22
22
 
23
23
  interface AuthRouteInput {
@@ -615,7 +615,7 @@ interface S extends IapRestoreFields {
615
615
  // row shows once purchasing is ready on this host (a bound iOS binary with managed StoreKit), to a
616
616
  // guest too: the restore itself asks them to sign in.
617
617
  const commerce = createIapCommerce({
618
- adapters: [onlineProgramOrders, pricingPlanOrders, ...(storesAppleSalesEnabled() ? [storesProductOrders] : [])],
618
+ adapters: [onlineProgramOrders, pricingPlanOrders, storesProductOrders],
619
619
  onChange: () => { void svc.restorePublish(); },
620
620
  });
621
621
  const restore = createIapRestore(commerce, { prefix: "storeAccount", repaint: () => { void svc.restorePublish(); } });
@@ -2,7 +2,7 @@ import { withOnlineWrites, offlineWritesEnabled, offlineWriteMessage } from "../
2
2
  import { defineService as registerState } from "@himalaya/state";
3
3
  // Tier-5 bundle: himi-store — product detail.
4
4
  import { withIapPresentation } from "../_shared/iap-presentation.js";
5
- import { storesAppleSalesEnabled, storesProductOrders, type IapCommerce, type IapPurchaseFields } from "@himalaya/iap-checkout";
5
+ import { storesProductOrders, type IapCommerce, type IapPurchaseFields } from "@himalaya/iap-checkout";
6
6
  import { iapPriceCopy, iapPurchaseCopy } from "../_shared/iap-worker.js";
7
7
  import { share as shareSheet } from "@himalaya/share";
8
8
  import { addToCurrentCart, getCurrentCart } from "@himalaya/wix-ecom";
@@ -466,10 +466,8 @@ function derive(s: S): S {
466
466
  // read answering late — must not replace the badge the add set (#3468 review).
467
467
  let cartBadgeEpoch = 0;
468
468
 
469
- // A digital product with no options sells through the App Store once the platform sells Wix Stores
470
- // items there (`storesAppleSalesEnabled`): wix-iap StartItemPayment places and charges its order.
471
- // Until then, and for any other product, an App Store route only blocks the regular checkout.
472
- const SELLS_THROUGH_APPLE = storesAppleSalesEnabled();
469
+ // A digital product with no options sells through the App Store: wix-iap StartItemPayment places and
470
+ // charges its order. For any other product, an App Store route only blocks the regular checkout.
473
471
  const WIX_STORES_APP = "215238eb-22a5-4c36-9e7b-e7c08025e04e";
474
472
  const NOT_APPLE: IapPurchaseFields = { appleRoute: false, accessReady: false, buyLabel: "", buyDisabled: true, buyBusy: false, buyNote: "" };
475
473
 
@@ -477,7 +475,7 @@ let productPricing: IapCommerce;
477
475
  let checkoutEntered = false;
478
476
  const defineService = withIapPresentation<S>({
479
477
  register: withOnlineWrites(registerState, ["beginAdd", "addToCart", "buy"], { derive, messageFields: action => action === "buy" ? ["buyNote"] : ["cartHint"] }),
480
- adapters: SELLS_THROUGH_APPLE ? [storesProductOrders] : [],
478
+ adapters: [storesProductOrders],
481
479
  onCreate: commerce => { productPricing = commerce; }, prefix: "product",
482
480
  transientKeys: ["optionValidationTarget", "optionValidationRequest", "opt1ScrollRequest", "opt2ScrollRequest", "opt3ScrollRequest", "galleryIndex", "price", "optionsIncomplete", "cartHint", "cartHidden", "buyHidden", "buyLabel", "buyDisabled", "buyNote", "purchasedNote", "addedSheetPresented", "shareHint"], contentActions: ["load", "paintCached"], concurrentPublishActions: ["buy"],
483
481
  items: state => inputId() ? [{ reference: { kind: "storesProduct", id: inputId() }, commerceDisplayPrice: state.price }] : [],
@@ -508,7 +506,7 @@ const defineService = withIapPresentation<S>({
508
506
  function applePurchase(state: S): IapPurchaseFields {
509
507
  const id = inputId();
510
508
  const loaded = !!id && lastLoadedId === id;
511
- const sellable = SELLS_THROUGH_APPLE && loaded && lastProduct?.productType?.toLowerCase() === "digital" && !state.optionsUnknown && state.optionGroups.length === 0;
509
+ const sellable = loaded && lastProduct?.productType?.toLowerCase() === "digital" && !state.optionsUnknown && state.optionGroups.length === 0;
512
510
  const copy = iapPurchaseCopy("product");
513
511
  const fields = sellable ? productPricing.purchaseFields({ kind: "storesProduct", id }, copy) : NOT_APPLE;
514
512
  return fields.appleRoute ? fields : NOT_APPLE;
@@ -516,7 +514,6 @@ function applePurchase(state: S): IapPurchaseFields {
516
514
 
517
515
  /** On every entry: the first starts the checkout (recovering held purchases), later ones reconcile. */
518
516
  function enterCheckout(): void {
519
- if (!SELLS_THROUGH_APPLE) return;
520
517
  void (checkoutEntered ? productPricing.reconcile() : productPricing.start());
521
518
  checkoutEntered = true;
522
519
  }
@@ -81352,6 +81352,41 @@ const SCREENS = runtimeSetting({
81352
81352
  }
81353
81353
  }
81354
81354
  },
81355
+ {
81356
+ "id": "himi_video.buy",
81357
+ "body": {
81358
+ "package": "himalaya",
81359
+ "type": "Button",
81360
+ "props": {
81361
+ "title": "$service:himiBrandedVideo.buyLabel",
81362
+ "style": "primary",
81363
+ "fullWidth": true,
81364
+ "disabledPath": "$service:himiBrandedVideo.buyDisabled",
81365
+ "action": {
81366
+ "actionId": "tier5.himiBrandedVideo.buy"
81367
+ }
81368
+ }
81369
+ },
81370
+ "modifiers": {
81371
+ "hiddenPath": "$service:himiBrandedVideo.buyHidden"
81372
+ }
81373
+ },
81374
+ {
81375
+ "id": "himi_video.buy_note",
81376
+ "body": {
81377
+ "package": "himalaya",
81378
+ "type": "Text",
81379
+ "props": {
81380
+ "text": "$service:himiBrandedVideo.buyNote",
81381
+ "style": "footnote",
81382
+ "color": "textSecondary",
81383
+ "collapseWhenEmpty": true
81384
+ }
81385
+ },
81386
+ "modifiers": {
81387
+ "hiddenPath": "$service:himiBrandedVideo.buyHidden"
81388
+ }
81389
+ },
81355
81390
  {
81356
81391
  "id": "himi_video.price_retry",
81357
81392
  "body": {