@wix/himalaya-cli 0.1632.0 → 0.1634.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 (95) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +4 -14
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-wire.d.ts +2 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments.d.ts +1 -2
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +26 -13
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-core.d.ts +0 -2
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +3 -10
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-core.d.ts +0 -2
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -3
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/stores.d.ts +2 -2
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +2 -2
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/loyalty/src/index.d.ts +64 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-feed-viewer/src/index.d.ts +10 -6
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +36 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +13 -45
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +2 -4
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +7 -11
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-loyalty.mjs +39 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members-feed-viewer.mjs +8 -7
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +29 -0
  20. package/dist/browser-plane/assets.json +166 -0
  21. package/dist/browser-plane/host.html +156 -0
  22. package/dist/browser-plane/package-reader.js +4 -0
  23. package/dist/browser-plane/preview-deferred/368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5.bin +0 -0
  24. package/dist/browser-plane/preview-deferred/37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29.bin +0 -0
  25. package/dist/browser-plane/preview-deferred/4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02.bin +0 -0
  26. package/dist/browser-plane/preview-deferred/521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35.bin +1 -0
  27. package/dist/browser-plane/preview-deferred/62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9.bin +0 -0
  28. package/dist/browser-plane/preview-deferred/642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e.bin +0 -0
  29. package/dist/browser-plane/preview-deferred/97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1.bin +0 -0
  30. package/dist/browser-plane/preview-deferred/a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e.bin +28 -0
  31. package/dist/browser-plane/preview-deferred/bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa.bin +0 -0
  32. package/dist/browser-plane/preview-deferred/c3457ce58c96b65f303fec0ddf5f06733004eaf9e21e62302b155ec63a7765f7.bin +56 -0
  33. package/dist/browser-plane/preview-deferred/d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134.bin +0 -0
  34. package/dist/browser-plane/preview-deferred/dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b.bin +0 -0
  35. package/dist/browser-plane/preview-deferred/dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5.bin +0 -0
  36. package/dist/browser-plane/preview-deferred/ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf.bin +0 -0
  37. package/dist/browser-plane/sw.js +13 -0
  38. package/dist/browser-plane/t5-frame.html +350 -0
  39. package/dist/browser-plane/t5-worker-frame.html +350 -0
  40. package/dist/cli.mjs +6499 -5089
  41. package/dist/preview-assets.generated.bin +0 -0
  42. package/fixtures/wix-canned.json +34 -1
  43. package/guides/getting-started.md +2 -1
  44. package/guides/himi-json-output.md +8 -0
  45. package/guides/himi-skill.md +2 -1
  46. package/guides/iap-screen-adoption.md +4 -4
  47. package/guides/importable-sdks.md +1 -1
  48. package/guides/one-app-section-mappings.md +3 -3
  49. package/guides/one-app-to-himi-app.md +81 -5
  50. package/guides/sdk-reference.json +8862 -4388
  51. package/guides/skill.md +11 -1
  52. package/package.json +3 -3
  53. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  54. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +1 -1
  55. package/templates/branded-lite/config.ts +7 -0
  56. package/templates/branded-lite/dev/index.ts +3340 -1890
  57. package/templates/branded-lite/himalaya.content.json +3 -0
  58. package/templates/branded-lite/l10n/en.json +8 -4
  59. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  60. package/templates/branded-lite/tier5-src/_shared/business-chat-history.ts +4 -1
  61. package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +2 -7
  62. package/templates/branded-lite/tier5-src/_shared/header-badges.ts +1 -1
  63. package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +68 -0
  64. package/templates/branded-lite/tier5-src/_shared/loyalty-offerings.ts +73 -0
  65. package/templates/branded-lite/tier5-src/_shared/member-activity.ts +34 -0
  66. package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +167 -0
  67. package/templates/branded-lite/tier5-src/_shared/notification-target.ts +141 -0
  68. package/templates/branded-lite/tier5-src/_shared/source-badges.ts +6 -4
  69. package/templates/branded-lite/tier5-src/_shared/wix-member-links.ts +114 -0
  70. package/templates/branded-lite/tier5-src/business-chat/index.ts +114 -59
  71. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +83 -0
  72. package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/earning.ts +148 -0
  73. package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +57 -31
  74. package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty-rewards/index.ts +208 -0
  75. package/templates/branded-lite/tier5-src/himi-branded-lite-notifications/index.ts +62 -7
  76. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +1 -1
  77. package/templates/branded-lite/tier5-src/wix-spaces-members/index.ts +60 -12
  78. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  79. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  80. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  81. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +1 -1
  82. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  83. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  84. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  85. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +1 -1
  86. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  87. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  88. package/templates/retail-store/tier5-src/himi-store-product/index.ts +1 -1
  89. package/templates/salon-spa/dev/index.ts +112 -70
  90. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  91. package/templates/salon-spa/tier5-src/_shared/business-chat-history.ts +4 -1
  92. package/templates/salon-spa/tier5-src/_shared/business-chat-presenter.ts +2 -7
  93. package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +68 -0
  94. package/templates/salon-spa/tier5-src/business-chat/index.ts +114 -59
  95. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
package/guides/skill.md CHANGED
@@ -178,12 +178,22 @@ Read `himi docs push-cli-onboarding` (also https://apps.wix.com/_api/himi-serve/
178
178
  setup for the required logins, credential fields and failure handling. The guide is bundled with the public npm package
179
179
  and is also served at the public URL above. No repository access is required.
180
180
 
181
+ ## Signing in when the owner's browser is not on this machine
182
+
183
+ `himi login --browser` posts the sign-in back to a port on the machine that runs `himi`, so it only works when the owner's browser runs there too. In a sandbox, a cloud session or an agent platform it cannot finish — do not send the owner a link to it, and do not ask them to install the CLI and run the steps themselves.
184
+
185
+ - **Your platform already holds the owner's Wix session or token** (they connected their Wix account to it): that token **is** the owner. Any valid Wix token can manage that account's apps, publishing included. Pipe it in — `printf '%s' "$TOKEN" | himi login --wix --wix-token-stdin --target wix` — or set `WIX_TOKEN` and run `himi login --wix --target wix`. Never put a token on the command line (argv shows in `ps` and transcripts) or in a file you commit, and never print it.
186
+ - **A server or CI job** with an account API key: `WIX_API_KEY` + `himi login --wix --target wix`.
187
+ - **None of these:** stop and say exactly what is missing. Do not improvise another route to a himi token.
188
+
189
+ This replaces only the sign-in. The approval gates above still apply to every side effect.
190
+
181
191
  ## Headless / non-interactive agents
182
192
 
183
193
  When there is no human in the loop (QA runner, cron, dispatched agent), do not invent a turn-by-turn approval chat. Map each gate to what the invocation already supplied:
184
194
 
185
195
  - The issue / brief / `SPEC.md` + `MOBILE-UX.md` in the workspace **is** plan approval. Draft or complete those files without waiting for a spoken "yes".
186
- - Credentials already in the environment (`WIX_CLIENT_ID` / `WIX_SITE_URL`, a dpx session, `HIMI_CONTROL_TOKEN`) **are** consent to use that identity against the named target. Do not prompt for them again; do not mint a different site or account.
196
+ - Credentials already in the environment (`WIX_CLIENT_ID` / `WIX_SITE_URL`, a dpx session, `HIMI_CONTROL_TOKEN`, `WIX_TOKEN`) **are** consent to use that identity against the named target. Do not prompt for them again; do not mint a different site or account.
187
197
  - An explicit `--draft` / publish-draft instruction in the brief **is** owner-private preview approval. Do **not** promote live unless the brief says to.
188
198
  - QA binary / store submission still needs the brief to name that step; absence means skip it.
189
199
  - **Progress still goes somewhere.** With nobody reading the chat, the pictures and postcards go to the journal (`himi progress`) and the build board instead — the steps below, in this session, while you build.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1632.0",
3
+ "version": "0.1634.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": [
@@ -30,7 +30,7 @@
30
30
  "himi": "node --import tsx src/cli.ts",
31
31
  "gen:guides": "npm --prefix ../.. run authoring:gen",
32
32
  "build": "node --import tsx ../authoring-kit/gen-templates.mts && node ../authoring-kit/bundle.mjs && npm run build:dist",
33
- "build:dist": "node --import tsx ../html-to-t5/vocab-gen/gen-v2.ts && node scripts/bundle.mjs && node scripts/stage-authoring-runtime.mjs",
33
+ "build:dist": "node --import tsx ../html-to-t5/vocab-gen/gen-v2.ts && node scripts/bundle.mjs && node scripts/stage-authoring-runtime.mjs && node scripts/stage-browser-plane.mjs",
34
34
  "test": "node ../../tools/ci/run-tests.mjs --package tools/himi-cli --"
35
35
  },
36
36
  "dependencies": {
@@ -72,5 +72,5 @@
72
72
  "artifactId": "himalaya-cli"
73
73
  }
74
74
  },
75
- "falconPackageHash": "1c969f8119c5dbbac0710e70c4bac2f5cc71b9e2d65a7261868e6255"
75
+ "falconPackageHash": "7e33d424d99d05998b91ee4390198d50459ab4ce4a5aec4d4c999ae1"
76
76
  }
@@ -97,6 +97,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
97
97
  himi_gift_card: ["giftCards"],
98
98
  himi_gift_cards: ["giftCards"],
99
99
  himi_groups: ["groups"],
100
+ himi_inbox: ["inbox"],
100
101
  himi_group_about: ["groups"],
101
102
  himi_my_groups: ["groups"],
102
103
  himi_invoice: ["invoices"],
@@ -467,7 +467,7 @@ function derive(s: S): S {
467
467
  let cartBadgeEpoch = 0;
468
468
 
469
469
  // A digital product with no options sells through the App Store once the platform sells Wix Stores
470
- // items there (`storesAppleSalesEnabled`), through StartItemPayment or the app's own eCom order.
470
+ // items there (`storesAppleSalesEnabled`): wix-iap StartItemPayment places and charges its order.
471
471
  // Until then, and for any other product, an App Store route only blocks the regular checkout.
472
472
  const SELLS_THROUGH_APPLE = storesAppleSalesEnabled();
473
473
  const WIX_STORES_APP = "215238eb-22a5-4c36-9e7b-e7c08025e04e";
@@ -371,6 +371,13 @@ export default defineApp({
371
371
  "parentScreenId": "himi_account",
372
372
  "tabId": "profile"
373
373
  },
374
+ {
375
+ "screenId": "himi_inbox",
376
+ "isPublic": true,
377
+ "paramKeys": [],
378
+ "parentScreenId": "",
379
+ "tabId": ""
380
+ },
374
381
  {
375
382
  "screenId": "himi_business_chat",
376
383
  "isPublic": true,