@wix/himalaya-cli 0.1724.0 → 0.1726.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 (69) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +6 -4
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/location/src/index.d.ts +5 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/on-device-ai/src/index.d.ts +19 -7
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +3 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/videos.d.ts +31 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +83 -9
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/on-device-ai.mjs +49 -3
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +92 -2
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  20. package/dist/browser-plane/assets.json +7 -7
  21. package/dist/browser-plane/preview-deferred/{a6e25c06d2a17ab2b5e34bf2b5965fa3ddd76ce3da32a036e546a60938130d7b.bin → 2df92277f550d6bf34ff43d15ae4a9082d012643a6bff39bd78724115505b716.bin} +1 -1
  22. package/dist/browser-plane/sw.js +8 -8
  23. package/dist/browser-plane/t5-frame.html +16 -0
  24. package/dist/browser-plane/t5-worker-frame.html +16 -0
  25. package/dist/cli.mjs +1830 -1480
  26. package/dist/preview-assets.generated.bin +0 -0
  27. package/fixtures/wix-canned.json +51 -0
  28. package/guides/capabilities.md +2 -2
  29. package/guides/headless-loop.md +2 -1
  30. package/guides/iap-products.md +2 -2
  31. package/guides/iap-screen-adoption.md +1 -1
  32. package/guides/one-app-section-mappings.md +2 -2
  33. package/guides/sdk-reference.json +36 -8
  34. package/guides/skill.md +1 -1
  35. package/guides/testing-himi-apps.md +4 -3
  36. package/guides/web-page-sdk-reference.md +1 -1
  37. package/package.json +2 -2
  38. package/templates/beauty-salon/l10n/en.json +2 -2
  39. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  40. package/templates/branded-lite/config.ts +14 -1
  41. package/templates/branded-lite/dev/index.ts +729 -2
  42. package/templates/branded-lite/himalaya.content.json +3 -0
  43. package/templates/branded-lite/l10n/en.json +93 -2
  44. package/templates/branded-lite/l10n/he.json +173 -0
  45. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  46. package/templates/branded-lite/tier5-src/_shared/wix-file-share.ts +332 -0
  47. package/templates/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +635 -0
  48. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +82 -12
  49. package/templates/community-club/l10n/en.json +2 -2
  50. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  51. package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  52. package/templates/events-meetups/l10n/en.json +2 -2
  53. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  54. package/templates/gym-fitness/l10n/en.json +2 -2
  55. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  56. package/templates/nonprofit-cause/l10n/en.json +2 -2
  57. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  58. package/templates/podcast-creator/l10n/en.json +2 -2
  59. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  60. package/templates/portfolio-creative/l10n/en.json +2 -2
  61. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  62. package/templates/restaurant/l10n/en.json +2 -2
  63. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  64. package/templates/retail-store/l10n/en.json +2 -2
  65. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  66. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  67. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  68. package/templates/yoga-studio/l10n/en.json +2 -2
  69. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +3 -2
Binary file
@@ -2163,6 +2163,57 @@
2163
2163
  "total": 3
2164
2164
  }
2165
2165
  },
2166
+ "GET /file-sharing/api/v1/file-sharing/settings": {
2167
+ "settings": {
2168
+ "downloadSettings": {
2169
+ "whoCanDownload": "ANYONE"
2170
+ }
2171
+ },
2172
+ "rootFolderId": "11111111-0000-4000-8000-000000000000"
2173
+ },
2174
+ "POST /file-sharing/api/v1/file-sharing/library-folder-items/query": {
2175
+ "libraryItems": [
2176
+ {
2177
+ "id": "22222222-0000-4000-8000-000000000001",
2178
+ "name": "Member handbooks",
2179
+ "parentFolderId": "11111111-0000-4000-8000-000000000000",
2180
+ "folderFields": {
2181
+ "childrenCount": 3,
2182
+ "availability": "MEMBER"
2183
+ }
2184
+ },
2185
+ {
2186
+ "id": "22222222-0000-4000-8000-000000000002",
2187
+ "name": "Class schedule.pdf",
2188
+ "parentFolderId": "11111111-0000-4000-8000-000000000000",
2189
+ "fileFields": {
2190
+ "extension": "pdf",
2191
+ "sizeInBytes": "248832",
2192
+ "category": "DOCS",
2193
+ "previewable": true
2194
+ }
2195
+ }
2196
+ ],
2197
+ "metaData": {}
2198
+ },
2199
+ "POST /file-sharing/api/v1/file-sharing/authorize-actions": {
2200
+ "authorizedActions": [
2201
+ {
2202
+ "itemId": "22222222-0000-4000-8000-000000000002",
2203
+ "action": "DOWNLOAD",
2204
+ "status": "ALLOWED",
2205
+ "reason": "DEFAULT_REASON"
2206
+ }
2207
+ ],
2208
+ "folderAuthorizedActions": [
2209
+ {
2210
+ "itemId": "11111111-0000-4000-8000-000000000000",
2211
+ "action": "UPLOAD_FILE",
2212
+ "status": "FORBIDDEN",
2213
+ "reason": "MISSING_PERMISSION"
2214
+ }
2215
+ ]
2216
+ },
2166
2217
  "POST /categories/v1/categories/query": {
2167
2218
  "categories": [
2168
2219
  {
@@ -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
@@ -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 |
@@ -361,7 +361,7 @@ carousel placement remain separate gaps; the mappings above stay Partial.
361
361
 
362
362
  | Source sectionDefinitionId | Source viewer component | Himalaya implementation | Placement / reuse | Class | Settings, actions and gaps |
363
363
  | --- | --- | --- | --- | --- | --- |
364
- | `file_share_section` | `media.fileShareSection` | | | Empty | No consumer File Share list/download/folder feature was found. Media or Pro Gallery support does not implement file sharing or its access model. |
364
+ | `file_share_section` | `media.fileShareSection` | | | Empty | Not assigned. Branded Lite has a Documents screen (`himi_file_share`) on the Wix File Share API: folders, files, search, open/save and permission-aware upload. This section is not mapped to it: its settings, View All action and inline layout are not verified. Media or Pro Gallery support does not implement file sharing or its access model. |
365
365
 
366
366
  ### 29. byoc-section-definitions.json
367
367
 
@@ -399,7 +399,7 @@ These are the exact definitions whose target cells above remain empty. “Not fo
399
399
  | `orders-section-definition.json` | `woa_member_restaurants_order` | The existing restaurant-orders worker now exposes only a device-local basket and deliberately never calls the owner-capable Orders API. No placed-member-order list/detail implementation was verified; leave the legacy order section unassigned. |
400
400
  | `restaurants-online-ordering-section-definition.json` | `restaurants_online_ordering_section` | Target menu/item/basket code exists, but no equivalent complete restaurant order-submit/checkout section was verified. Leave this target empty rather than treating menu browsing as online ordering. |
401
401
  | `food-section-definition.json` | `food_section` | No verified equivalent for the legacy Wix Food SectionEntryScreen was established. Menu, basket and reservation features are possible building blocks, not a chosen mapping. |
402
- | `file-share-section-definitions.json` | `file_share_section` | No consumer File Share list/download/folder feature was found. Media or Pro Gallery support does not implement file sharing or its access model. |
402
+ | `file-share-section-definitions.json` | `file_share_section` | Not assigned. Branded Lite has a Documents screen (`himi_file_share`) on the Wix File Share API: folders, files, search, open/save and permission-aware upload. This section is not mapped to it: its settings, View All action and inline layout are not verified. Media or Pro Gallery support does not implement file sharing or its access model. |
403
403
  | `byoc-section-definitions.json` | `mobile_apps_byoc_section` | No compatible bring-your-own-code runtime/contract was verified. Keep the target empty until the source code/runtime requirements are reviewed. |
404
404
 
405
405
  ## Material gaps in non-empty mappings
@@ -2807,7 +2807,7 @@
2807
2807
  {
2808
2808
  "name": "VIDEOS_APPLE_SALES_ENABLED",
2809
2809
  "kind": "const",
2810
- "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 */",
2811
2811
  "decl": "export const VIDEOS_APPLE_SALES_ENABLED = false;",
2812
2812
  "verificationChecked": true
2813
2813
  },
@@ -3343,7 +3343,7 @@
3343
3343
  "name": "\"./checkout-source.js\"",
3344
3344
  "kind": "reexport",
3345
3345
  "jsdoc": "",
3346
- "decl": "export { storesAppleSalesEnabled } from \"./checkout-source.js\";",
3346
+ "decl": "export { storesAppleSalesEnabled, videosAppleSalesEnabled } from \"./checkout-source.js\";",
3347
3347
  "verificationChecked": true
3348
3348
  },
3349
3349
  {
@@ -3423,6 +3423,13 @@
3423
3423
  "decl": "export function storesAppleSalesEnabled(): boolean;",
3424
3424
  "verificationChecked": true
3425
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
+ },
3426
3433
  {
3427
3434
  "name": "WixBridge",
3428
3435
  "kind": "interface",
@@ -4246,7 +4253,7 @@
4246
4253
  "name": "RegionMonitoringSupport",
4247
4254
  "kind": "interface",
4248
4255
  "jsdoc": "",
4249
- "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}",
4250
4257
  "verificationChecked": true
4251
4258
  },
4252
4259
  {
@@ -4260,7 +4267,7 @@
4260
4267
  "name": "MonitoredRegionResult",
4261
4268
  "kind": "interface",
4262
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. */",
4263
- "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}",
4264
4271
  "verificationChecked": true
4265
4272
  },
4266
4273
  {
@@ -4784,8 +4791,8 @@
4784
4791
  {
4785
4792
  "name": "OnDeviceEngine",
4786
4793
  "kind": "type",
4787
- "jsdoc": "/** The on-device engine backing generation, when one is available. */",
4788
- "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\";",
4789
4796
  "verificationChecked": true
4790
4797
  },
4791
4798
  {
@@ -4841,16 +4848,37 @@
4841
4848
  "name": "SummarizeOptions",
4842
4849
  "kind": "interface",
4843
4850
  "jsdoc": "",
4844
- "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\";",
4845
4859
  "verificationChecked": true
4846
4860
  },
4847
4861
  {
4848
4862
  "name": "summarize",
4849
4863
  "kind": "function",
4850
- "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 */",
4851
4865
  "decl": "export async function summarize(text: string, opts: SummarizeOptions = {}): Promise<GenerateTextResult>;",
4852
4866
  "verificationChecked": true
4853
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
+ },
4854
4882
  {
4855
4883
  "name": "version",
4856
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1724.0",
3
+ "version": "0.1726.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": "aad0bbdce1ff36542b6167a0e6087ed91f11189e9990ddcce4a37333"
84
+ "falconPackageHash": "71ae8d59e3a8ef13760a1760acd9ee95011ce21df2c747d6d3b9ea13"
85
85
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-12T18:53:33.063Z",
3
+ "$generated": "2026-11-15T09:24:42.792Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",
@@ -2005,7 +2005,7 @@
2005
2005
  },
2006
2006
  "h_efc007a393f6": {
2007
2007
  "source": "Save",
2008
- "kind": "modifier.accessibilityLabel",
2008
+ "kind": "Button.title",
2009
2009
  "translation": "",
2010
2010
  "key": "collection.save",
2011
2011
  "keyOrigin": "string-table"
@@ -56,7 +56,7 @@ export const VERTICAL_ROOT_SCREENS: Readonly<Record<string, readonly string[]>>
56
56
  notifsettings: ["himi_notif_settings"], events: ["himi_events"], blog: ["himi_blog"],
57
57
  groups: ["himi_groups"], cms: ["himi_cms"], donations: ["himi_donations"], giftCards: ["himi_gift_cards"],
58
58
  videos: ["himi_videos"], podcasts: ["himi_podcasts"], forms: ["himi_forms"], galleries: ["himi_galleries"],
59
- inbox: ["himi_business_chat"], faq: ["himi_faq"],
59
+ inbox: ["himi_business_chat"], faq: ["himi_faq"], fileShare: ["himi_file_share"],
60
60
  };
61
61
 
62
62
  /** Every screen a vertical owns, so a route to ANY of them (a child or action screen as much as the
@@ -86,6 +86,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
86
86
  himi_events: ["events"],
87
87
  himi_faq: ["faq"],
88
88
  himi_feed: ["feed"],
89
+ himi_file_share: ["fileShare"],
89
90
  himi_food_order: ["restaurants"],
90
91
  himi_food_orders: ["restaurants"],
91
92
  himi_form: ["forms"],
@@ -169,7 +170,7 @@ export function screenVerticals(screenId: string): readonly BrandedLiteVertical[
169
170
  * A folder header is hidden when none of its verticals shows, so a site never sees an empty one. */
170
171
  export const HOSTED_DRAWER_FOLDERS: Readonly<Record<string, readonly BrandedLiteVertical[]>> = {
171
172
  drawer_sec_community: ["feed", "forum", "groups", "members", "reviews", "badges", "blog"],
172
- drawer_sec_media: ["videos", "podcasts", "portfolio", "cms", "galleries", "faq"],
173
+ drawer_sec_media: ["videos", "podcasts", "portfolio", "cms", "galleries", "faq", "fileShare"],
173
174
  drawer_sec_offers: ["coupons", "giftCards", "donations", "loyalty"],
174
175
  drawer_sec_activity: ["inbox", "reservations", "invoices", "forms", "notifications", "notifsettings"],
175
176
  };
@@ -37,7 +37,7 @@ export default defineApp({
37
37
  actions: "http://localhost:8190/v1/actions",
38
38
  sync: "http://localhost:8190/v1/sync",
39
39
  },
40
- capabilities: ["live_activity","push","share","ui","secure_storage","open_url","calendar","local_database","media_playback","wix_api","wix_platform","app_info","iap","release_control","clipboard","motion","wix_chat","theme","wix_cashier"],
40
+ capabilities: ["live_activity","push","share","ui","secure_storage","open_url","calendar","local_database","media_playback","wix_api","wix_platform","app_info","iap","release_control","clipboard","motion","wix_chat","theme","files","file_picker","presigned_upload","wix_cashier"],
41
41
  cache: {
42
42
  "rules": [
43
43
  {
@@ -752,6 +752,13 @@ export default defineApp({
752
752
  "parentScreenId": "",
753
753
  "tabId": ""
754
754
  },
755
+ {
756
+ "screenId": "himi_file_share",
757
+ "isPublic": true,
758
+ "paramKeys": [],
759
+ "parentScreenId": "",
760
+ "tabId": ""
761
+ },
755
762
  {
756
763
  "screenId": "himi_steps",
757
764
  "isPublic": true,
@@ -1001,6 +1008,12 @@ export default defineApp({
1001
1008
  "label": "FAQ",
1002
1009
  "icon": "help"
1003
1010
  },
1011
+ {
1012
+ "id": "drawer_file_share",
1013
+ "screenId": "himi_file_share",
1014
+ "label": "Documents",
1015
+ "icon": "folder"
1016
+ },
1004
1017
  {
1005
1018
  "id": "drawer_sec_offers",
1006
1019
  "role": "section",