@wix/himalaya-cli 0.1749.0 → 0.1750.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 (164) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +2 -1
  2. package/dist/cli.mjs +13347 -8151
  3. package/guides/getting-started.md +3 -1
  4. package/guides/himi-json-output.md +54 -1
  5. package/guides/himi-skill.md +3 -1
  6. package/guides/one-app-to-himi-app.md +31 -8
  7. package/guides/skill.md +3 -1
  8. package/guides/store-submission.md +149 -34
  9. package/guides/wix-business-context.md +14 -0
  10. package/package.json +10 -10
  11. package/template-icons/personal-fitness-trainer.png +0 -0
  12. package/templates/beauty-salon/config.ts +12 -0
  13. package/templates/beauty-salon/tier5-src/_shared/booking-session.ts +3 -1
  14. package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +148 -0
  15. package/templates/beauty-salon/tier5-src/_shared/header-badges.ts +113 -0
  16. package/templates/beauty-salon/tier5-src/_shared/location-pin.ts +97 -0
  17. package/templates/beauty-salon/tier5-src/_shared/member-access.ts +17 -6
  18. package/templates/beauty-salon/tier5-src/_shared/source-badges.ts +72 -0
  19. package/templates/beauty-salon/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  20. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +13 -4
  21. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  22. package/templates/branded-lite/config.ts +12 -0
  23. package/templates/branded-lite/l10n/fr.json +5 -0
  24. package/templates/branded-lite/l10n/he.json +4 -0
  25. package/templates/branded-lite/tier5-src/_shared/booking-session.ts +3 -1
  26. package/templates/branded-lite/tier5-src/_shared/location-pin.ts +97 -0
  27. package/templates/branded-lite/tier5-src/_shared/member-access.ts +17 -6
  28. package/templates/branded-lite/tier5-src/himi-branded-lite-access-nav/index.ts +10 -5
  29. package/templates/branded-lite/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  30. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +12 -1
  31. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +13 -4
  32. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  33. package/templates/community-club/tier5-src/_shared/member-access.ts +17 -6
  34. package/templates/community-club/tier5-src/himi-store-account/index.ts +13 -4
  35. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  36. package/templates/conference/tier5-src/_shared/member-access.ts +17 -6
  37. package/templates/conference/tier5-src/himi-store-account/index.ts +13 -4
  38. package/templates/events-meetups/tier5-src/_shared/member-access.ts +17 -6
  39. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +13 -4
  40. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  41. package/templates/gym-fitness/config.ts +12 -0
  42. package/templates/gym-fitness/tier5-src/_shared/booking-session.ts +3 -1
  43. package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +148 -0
  44. package/templates/gym-fitness/tier5-src/_shared/header-badges.ts +113 -0
  45. package/templates/gym-fitness/tier5-src/_shared/location-pin.ts +97 -0
  46. package/templates/gym-fitness/tier5-src/_shared/member-access.ts +17 -6
  47. package/templates/gym-fitness/tier5-src/_shared/source-badges.ts +72 -0
  48. package/templates/gym-fitness/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  49. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +13 -4
  50. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  51. package/templates/medical-services/tier5-src/_shared/booking-session.ts +3 -1
  52. package/templates/medical-services/tier5-src/_shared/member-access.ts +17 -6
  53. package/templates/medical-services/tier5-src/himi-store-account/index.ts +13 -4
  54. package/templates/nonprofit-cause/tier5-src/_shared/member-access.ts +17 -6
  55. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +13 -4
  56. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  57. package/templates/personal-fitness-trainer/README.md +51 -0
  58. package/templates/personal-fitness-trainer/config.ts +343 -0
  59. package/templates/personal-fitness-trainer/dev/index.ts +24813 -0
  60. package/templates/personal-fitness-trainer/himalaya.content.json +79 -0
  61. package/templates/personal-fitness-trainer/himalaya.template.json +14 -0
  62. package/templates/personal-fitness-trainer/icon.png +0 -0
  63. package/templates/personal-fitness-trainer/platforms.json +3 -0
  64. package/templates/personal-fitness-trainer/splash.json +3 -0
  65. package/templates/personal-fitness-trainer/tier5-src/_shared/app-locale.ts +61 -0
  66. package/templates/personal-fitness-trainer/tier5-src/_shared/booking-location.ts +147 -0
  67. package/templates/personal-fitness-trainer/tier5-src/_shared/booking-session.ts +224 -0
  68. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +280 -0
  69. package/templates/personal-fitness-trainer/tier5-src/_shared/branded-load-state.ts +109 -0
  70. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-copy.ts +40 -0
  71. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-history.ts +51 -0
  72. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-message-model.ts +177 -0
  73. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-model.ts +56 -0
  74. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +576 -0
  75. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +148 -0
  76. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-contract.ts +228 -0
  77. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-query.ts +193 -0
  78. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-service.ts +400 -0
  79. package/templates/personal-fitness-trainer/tier5-src/_shared/detail-presence.ts +51 -0
  80. package/templates/personal-fitness-trainer/tier5-src/_shared/empty-flags.ts +33 -0
  81. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +523 -0
  82. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +194 -0
  83. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-booking-saved.ts +88 -0
  84. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-bookings.ts +318 -0
  85. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-copy.ts +116 -0
  86. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-layouts.ts +142 -0
  87. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-store.ts +7 -0
  88. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-text.ts +24 -0
  89. package/templates/personal-fitness-trainer/tier5-src/_shared/host-events.ts +66 -0
  90. package/templates/personal-fitness-trainer/tier5-src/_shared/hosted-checkout.ts +70 -0
  91. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-form.ts +106 -0
  92. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
  93. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance.ts +38 -0
  94. package/templates/personal-fitness-trainer/tier5-src/_shared/iap-worker.ts +127 -0
  95. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +68 -0
  96. package/templates/personal-fitness-trainer/tier5-src/_shared/local-preferences.ts +38 -0
  97. package/templates/personal-fitness-trainer/tier5-src/_shared/member-access.ts +63 -0
  98. package/templates/personal-fitness-trainer/tier5-src/_shared/member-account-routes.ts +52 -0
  99. package/templates/personal-fitness-trainer/tier5-src/_shared/member-bookings.ts +107 -0
  100. package/templates/personal-fitness-trainer/tier5-src/_shared/member-screen.ts +99 -0
  101. package/templates/personal-fitness-trainer/tier5-src/_shared/offset-page.ts +10 -0
  102. package/templates/personal-fitness-trainer/tier5-src/_shared/online-actions.ts +76 -0
  103. package/templates/personal-fitness-trainer/tier5-src/_shared/owner-load-error.ts +348 -0
  104. package/templates/personal-fitness-trainer/tier5-src/_shared/payment-setup.ts +6 -0
  105. package/templates/personal-fitness-trainer/tier5-src/_shared/pricing-plan-display.ts +64 -0
  106. package/templates/personal-fitness-trainer/tier5-src/_shared/rich-body.ts +78 -0
  107. package/templates/personal-fitness-trainer/tier5-src/_shared/rich-content-link.ts +34 -0
  108. package/templates/personal-fitness-trainer/tier5-src/_shared/sign-in-sheet.ts +18 -0
  109. package/templates/personal-fitness-trainer/tier5-src/_shared/staff-name.ts +18 -0
  110. package/templates/personal-fitness-trainer/tier5-src/_shared/video-caption.ts +21 -0
  111. package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +107 -0
  112. package/templates/personal-fitness-trainer/tier5-src/_shared/wix-bi.ts +85 -0
  113. package/templates/personal-fitness-trainer/tier5-src/_shared/wix-service-price.ts +146 -0
  114. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +732 -0
  115. package/templates/personal-fitness-trainer/tier5-src/business-contact/index.ts +6 -0
  116. package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +468 -0
  117. package/templates/personal-fitness-trainer/tier5-src/himi-booking-service/index.ts +1190 -0
  118. package/templates/personal-fitness-trainer/tier5-src/himi-booking-services/index.ts +791 -0
  119. package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +1729 -0
  120. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  121. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/index.ts +1094 -0
  122. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-agenda/index.ts +955 -0
  123. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-appearance/index.ts +94 -0
  124. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
  125. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-plans/index.ts +495 -0
  126. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-splash/index.ts +35 -0
  127. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +226 -0
  128. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-videos/index.ts +145 -0
  129. package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-home/index.ts +70 -0
  130. package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-profile/index.ts +53 -0
  131. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +1007 -0
  132. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-app-language/index.ts +73 -0
  133. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-delete-account/index.ts +59 -0
  134. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
  135. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
  136. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-view-profile/index.ts +119 -0
  137. package/templates/personal-fitness-trainer/tokens.json +381 -0
  138. package/templates/podcast-creator/tier5-src/_shared/member-access.ts +17 -6
  139. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +13 -4
  140. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  141. package/templates/portfolio-creative/tier5-src/_shared/member-access.ts +17 -6
  142. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +13 -4
  143. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  144. package/templates/restaurant/tier5-src/_shared/member-access.ts +17 -6
  145. package/templates/restaurant/tier5-src/himi-store-account/index.ts +13 -4
  146. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  147. package/templates/retail-store/tier5-src/_shared/member-access.ts +17 -6
  148. package/templates/retail-store/tier5-src/himi-store-account/index.ts +13 -4
  149. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +68 -55
  150. package/templates/salon-spa/tier5-src/_shared/booking-session.ts +3 -1
  151. package/templates/salon-spa/tier5-src/_shared/member-access.ts +17 -6
  152. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +13 -4
  153. package/templates/wholesale-store/tier5-src/_shared/member-access.ts +17 -6
  154. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +13 -4
  155. package/templates/yoga-studio/config.ts +12 -0
  156. package/templates/yoga-studio/tier5-src/_shared/booking-session.ts +3 -1
  157. package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +148 -0
  158. package/templates/yoga-studio/tier5-src/_shared/header-badges.ts +113 -0
  159. package/templates/yoga-studio/tier5-src/_shared/location-pin.ts +97 -0
  160. package/templates/yoga-studio/tier5-src/_shared/member-access.ts +17 -6
  161. package/templates/yoga-studio/tier5-src/_shared/source-badges.ts +72 -0
  162. package/templates/yoga-studio/tier5-src/himi-branded-lite-nav/index.ts +152 -0
  163. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +13 -4
  164. package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +68 -55
@@ -29,7 +29,9 @@ This page names Himalaya guides by id (`designing-himi-screens`, `himi-test`, `r
29
29
  ## One App migration route — before generic discovery
30
30
 
31
31
  When the user invokes `himi one-app migrate`, or you are continuing that user's
32
- recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`, read
32
+ recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`,
33
+ `migration/one-app/source/manifest.json` or a flat `migration/one-app/manifest.json`
34
+ that declares that workflow, read
33
35
  the `one-app-to-himi-app` guide (its installed skill, or `himi docs one-app-to-himi-app`), also at https://apps.wix.com/_api/himi-serve/docs/one-app-to-himi-app.md, and follow
34
36
  it now in this same agent session. The collector's `stage: "collected"` is evidence
35
37
  collection, not a generated app; a terminal without an agent honestly stops there.
@@ -976,6 +976,59 @@ policy reply. An Android refusal's `error` leads with its own code (`signing_pat
976
976
  | `confirmation_required` | `approve-reply` ran with no terminal: the owner's yes on a policy reply is typed, never passed. Exit `2`. Nothing was recorded. |
977
977
  | `consent_declined` | `approve-reply`: the owner did not type `yes`. Nothing was recorded. |
978
978
 
979
+ ## `himi store record` codes
980
+
981
+ `himi store record show|sync|pull` print one JSON envelope: the result on stdout (`ok: true` for `show`; for `sync`
982
+ and `pull`, `ok` is false when any file or image failed, listed under `errors` with the rest synced, and the command
983
+ exits `1`), or a failure on stderr with one of these codes. `record refresh` runs the `store_refresh` tool and answers
984
+ with the `himi store submission` codes above. A verified `submission apply` (and on Google Play `relops request`,
985
+ `relops end` and `google create-app`) adds `recordSync: { synced, warning? }` to its result when it pushed, or tried to
986
+ push, the app's store record to Wix; a failed push is never a failed command. In `himi mcp`, a verified Google Play
987
+ `store_apply` answers before its push runs, so its result says only `recordSync: { queued: true }`, or `{ queued: false,
988
+ skipped }` with why nothing will be pushed (no app or two for the package, or a `wix` block with no site); how the push went is on stderr and in `record show`'s `lastPush`.
989
+
990
+ A Wix RelOps login syncs with the same envelope. With the owner's acting consent (`submit`, `android-build` or
991
+ `play-console`) its pushes land like the owner's. With a `read`-only consent, each file or image it would push is
992
+ listed under `errors` with `status: 403` and serve's `relops_consent_required`, and the rest of the sync still runs.
993
+
994
+ | Code | Meaning |
995
+ |---|---|
996
+ | `invalid_usage` | A missing or malformed op or flag (`--app` without `--site`, an unknown `--part`), no Himi app in the folder, `--app`/`--site` that disagree with the folder's `wix` block, or a package that belongs to another Himi app (or an app that already holds another package). Nothing was linked or sent. |
997
+ | `node_too_old` | The store record needs Node 24 or newer. Nothing ran. |
998
+ | `store_facts_missing` | `sync` or `pull` needs the Himi app and its Wix site: a `wix` block in `store/google-play.json` or `store/app-store.json`, or `--app` and `--site`; `show` found no Himi app id, package or bundle id to find the record by. |
999
+ | `owner_session_unavailable` | `sync` or `pull` needs your `himi login` (and `wix login`); `hint` says which. Nothing was read or sent. |
1000
+ | `record_unreadable` | The record on this computer could not be read (a file of a newer schema, a permission problem); `error` says which. |
1001
+ | `sync_failed` | The sync stopped before it compared anything (serve could not be reached, or refused the manifest read); `error` carries serve's status and code. |
1002
+
1003
+ ## `himi store wix-submit` codes
1004
+
1005
+ `start`, `stop` and `status` each print one JSON envelope: the result on stdout (`ok: true`, `op`, `app`, `site`,
1006
+ `platform`, and `consent`; `start` adds `handoff` (`handoffId`, or `skipped` with the reason, or `failed` with a code:
1007
+ the hand-off is best effort and never undoes the consent) and `next`; on Android, `assignee` (`{ name, email }` or
1008
+ `null`) and `seat` (the Google Play job's result, or `skipped` with the reason; with `--read-only` while someone added
1009
+ earlier still has access, `seat.live` lists them and `seat.next` is the removal command); `stop` adds `assignee` and
1010
+ `seats`, one entry per person removed from your Google Play account (`email`, `from`: `record` when the app's store
1011
+ record listed them, `assignee` when it listed no one and the person Wix names now was removed, plus the Google Play
1012
+ job's result); `status` gives `consent.state`
1013
+ (`none`, `active`, `expired` or `withdrawn`) with `scope`, `recordedAt` and `expires`, and on Android `seat.state`
1014
+ (`invited`, `active`, `expired`, `absent`, or `unknown` with a `reason`)). A failure is one line on stderr with one of
1015
+ these codes. None of them prints a token.
1016
+
1017
+ | Code | Meaning |
1018
+ |---|---|
1019
+ | `invalid_usage` | A missing or malformed op or flag: no app and site (neither `--app --site` nor a `wix` block), `--app` without `--site`, a `--platform` other than `ios` or `android`, `--android-package` (or, for `start` and `status`, `--developer`) without `--platform android`, or a flag of another command (`--seat-email`, `--scope`). Nothing ran. |
1020
+ | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
1021
+ | `owner_session_unavailable` | Needs your `himi login`. Checked before anything is read or asked. |
1022
+ | `confirmation_required` | No terminal to answer at, and no `--yes`. Nothing was sent. |
1023
+ | `consent_declined` | You did not confirm. Nothing was recorded, saved, withdrawn or removed. |
1024
+ | `consent_failed` | Wix did not record your consent; `planeCode` and `status` say why. Nothing else ran. |
1025
+ | `withdraw_failed` | Wix did not record the withdrawal; nothing was removed from Google Play. |
1026
+ | `status_failed` | Wix did not answer with your consent. |
1027
+ | `seat_remains` | `stop` withdrew your consent (`consent`), but someone may still be on your Google Play account for the app: `remaining` lists each one (`email`, when known, and `reason`: no terminal for the typed yes, the Google sign-in or the removal failed, or who was added could not be read), `removed` those it did remove, and `next` the command that finishes it (`himi store wix-submit stop --app <id> --site <msid>` in your own terminal). Exits 1: never success while someone may remain. |
1028
+ | `seat_in_use` | `start --platform android` found someone added to your Google Play account for this app earlier (`live`) who is not the person Wix names now. Wix adds one person at a time: run `himi store wix-submit stop` first (`next`). Nothing was recorded or sent. |
1029
+ | `seat_unknown` | `start --platform android` could not read the app's store record (Wix's copy or this computer's), so it cannot tell whether someone added from another computer is still on your Google Play account. Nothing was recorded or sent; `next` says how to retry. `--read-only` adds no one and goes ahead with a warning. |
1030
+ | `package_failed`, `google_signin_failed`, `developer_unknown`, `plan_unexpected`, `job_failed` | The Google Play step (adding or removing the Wix person) stopped, as in the Google Play table below. Your consent was already recorded (`start`: its id is in `error` and `consentId`) or withdrawn (`stop`: the line before the failure names it); running the command again goes on from there. |
1031
+
979
1032
  ## `himi store handoff` and `himi store relops request` codes
980
1033
 
981
1034
  Both print one JSON envelope: the result on stdout (`ok: true`, with `handoffId` or `consentId`), or a failure on
@@ -987,7 +1040,7 @@ stderr with one of these codes. A refusal from the publishing service keeps its
987
1040
  | `invalid_usage` | A missing or malformed op or flag. Nothing ran. |
988
1041
  | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
989
1042
  | `owner_session_unavailable` | Sending to Wix needs your `himi login`. Checked before anything is read or asked. |
990
- | `store_facts_missing` | The app's `store/app-store.json` or its Wix app and site are missing; pass `--app` and `--site`. |
1043
+ | `store_facts_missing` | The app's `store/app-store.json` or its Wix app and site are missing; pass `--app` and `--site`. Also (`reason: store_facts_invalid`) when `--app`/`--site` disagree with the folder's wix block, or `store/google-play.json` and `store/app-store.json` name different apps. |
991
1044
  | `store_state_unreadable` | The App Store state on this computer could not be read. Nothing was sent. |
992
1045
  | `nothing_to_hand_off` | This computer holds no App Store jobs or history for this app. Nothing was sent. |
993
1046
  | `bundle_too_large` | The handoff is over the size cap even after keeping only the newest entries. Nothing was sent. |
@@ -52,7 +52,9 @@ This page names Himalaya guides by id (`designing-himi-screens`, `himi-test`, `r
52
52
  ## One App migration route — before generic discovery
53
53
 
54
54
  When the user invokes `himi one-app migrate`, or you are continuing that user's
55
- recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`, read
55
+ recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`,
56
+ `migration/one-app/source/manifest.json` or a flat `migration/one-app/manifest.json`
57
+ that declares that workflow, read
56
58
  the `one-app-to-himi-app` guide (its installed skill, or `himi docs one-app-to-himi-app`), also at https://apps.wix.com/_api/himi-serve/docs/one-app-to-himi-app.md, and follow
57
59
  it now in this same agent session. The collector's `stage: "collected"` is evidence
58
60
  collection, not a generated app; a terminal without an agent honestly stops there.
@@ -729,11 +729,13 @@ Apply these interpretation rules:
729
729
  It adds `navigation.topBarDefault` with one literal action per counter (ids `chat`, `notifications` and
730
730
  `cart`, opening `himi_business_chat`, `himi_notifications` and `himi_cart`, each with
731
731
  `badge: { kind: "count", valuePath: "$service:brandedLiteNav.<chatBadge|notificationsBadge|cartBadge>" }`)
732
- and `navigation.navLogicBundle` for the badges-only worker the template already ships under
733
- `tier5-src/himi-branded-lite-header-badges`, and it records each bound button's `target` in the coverage
734
- ledger. A source with no badges changes nothing. It never overwrites: a config that already has a
735
- `topBarDefault` or `navLogicBundle` (and a ledger target you set) is left alone and reported, with the
736
- literal to merge (`config_needs_manual_merge`). Run it again after mapping routes if you ran it first:
732
+ and it records each bound button's `target` in the coverage ledger. The counts come from the app-level worker
733
+ (`navigation.navLogicBundle`). A Branded Lite scaffold already names the template's nav worker,
734
+ `tier5-src/himi-branded-lite-nav`, which holds them, so it is kept. A config with no `navLogicBundle` gets the
735
+ badges-only worker the template also ships, `tier5-src/himi-branded-lite-header-badges`. A source with no badges
736
+ changes nothing. It never overwrites: a config that already has a `topBarDefault`, or a `navLogicBundle` that names
737
+ another worker (and a ledger target you set), is left alone and reported, with the literal to merge
738
+ (`config_needs_manual_merge`). Run it again after mapping routes if you ran it first:
737
739
  the rows it wrote move to the mapped screen. Then run `validate-topbar`, which checks that each badge's
738
740
  `valuePath` is a count the worker holds and sits on the right button. A screen with its own `topBar`
739
741
  replaces `topBarDefault`, so `validate-topbar` still asks that screen to carry the action.
@@ -1330,11 +1332,30 @@ CI=1 himi init <name> --dir <parent> --template branded-lite --no-first-look
1330
1332
  ```
1331
1333
 
1332
1334
  `CI=1` prevents automatic preview startup; `--no-first-look` prevents the template
1333
- screenshot. For this migration route, **do not execute init's generic `doNow`,
1334
- `doNowAgain` or template-preview `next` steps**. Continue this guide instead.
1335
+ screenshot. In a workspace whose manifest declares this workflow, init's `doNow`,
1336
+ `doNowAgain` and `next` carry migration continuation steps instead of the generic
1337
+ template journey, and the envelope reports `migration` (workflow, evidence root,
1338
+ whether collection is complete). They say collection and the scaffold are done:
1339
+ read the evidence and the plan, then continue this guide. When the manifest does not
1340
+ record a complete collection, they say so and route to recovery only, never on to
1341
+ the plan or the build. An older CLI may still
1342
+ print the generic steps: **do not execute init's generic `doNow`, `doNowAgain` or
1343
+ template-preview `next` steps**.
1335
1344
  Do not show an unadapted template as the migrated app. Keep the migration evidence,
1336
1345
  plan and scoped continuation when init installs the app's agent instructions.
1337
1346
 
1347
+ When the working or archived migration manifest declares `one-app-to-himi-app`,
1348
+ `himi init` and `himi agent-init` write a migration-specific `AGENTS.md` managed block.
1349
+ `CLAUDE.md` imports it, so both entry points direct the agent to this guide, the collected
1350
+ evidence and the installed authoring references. Ordinary apps keep their generic instructions.
1351
+ For an existing migration, run `himi agent-init` inside the app to refresh that routing;
1352
+ user-written instructions outside the managed block are preserved. The installed `himalaya`
1353
+ skill and `HIMALAYA.md` then open with the same routing, and `himi progress --brief` (the
1354
+ session-start hook, also after a compaction) reports the migration: evidence root, the recorded
1355
+ journal, which plan and report files exist, and the manifest's recognised authorization — the
1356
+ steps the request authorizes, the OAuth client that still needs the owner's agreement, and what
1357
+ is out of scope. A missing journal is not a fresh app and asks for no generic plan approval.
1358
+
1338
1359
  `himi init` also reads the language recorded at collection (`requested.locale` in
1339
1360
  `manifest.json`) and writes `locale: { default: "<tag>", pin: true }` into `config.ts`, so the
1340
1361
  app runs and lays out in that language. English adds nothing, and a `locale` already in
@@ -1540,7 +1561,9 @@ The route decision (which Himi screen a locked page became) is yours; no file re
1540
1561
  until then the command refuses it, and that is by design;
1541
1562
  - points the app-level bundle (`navigation.navLogicBundle`, or `app.logicBundle` when the app already uses that
1542
1563
  spelling; declaring both is refused) at `himi-branded-lite-access-nav`, the badges worker that also answers the
1543
- gates. Ids that normalize to one gate key (`page-a`, `page_a`) get a short hash suffix, so no two pages share a decision; a key an earlier run wrote stays with its page, so a later run never renames it. Mapping a locked page to a different screen than before is refused (`needs_manual_merge`, `moved`): the old screen is still wrapped in its lock. An app whose source locks no page keeps the badges-only worker, byte for byte, and pays nothing;
1564
+ gates and hides the Services location pin. It replaces the template's nav worker (`himi-branded-lite-nav`) only when
1565
+ `config.ts` and the screens read nothing that only that worker serves, such as a `push.observerAction` or the unread
1566
+ count; otherwise it is refused (`needs_manual_merge`) and the gates are yours to merge into that worker. Ids that normalize to one gate key (`page-a`, `page_a`) get a short hash suffix, so no two pages share a decision; a key an earlier run wrote stays with its page, so a later run never renames it. Mapping a locked page to a different screen than before is refused (`needs_manual_merge`, `moved`): the old screen is still wrapped in its lock. An app whose source locks no page keeps its nav worker, byte for byte, and pays nothing;
1544
1567
  - ties each `access` row of the coverage ledger to the screen and gate (`target`), and never overwrites a target you
1545
1568
  set. The status stays `unresolved`: it moves only on recorded `access-state` evidence from a device.
1546
1569
 
package/guides/skill.md CHANGED
@@ -41,7 +41,9 @@ these public guides.
41
41
  ## One App migration route — before generic discovery
42
42
 
43
43
  When the user invokes `himi one-app migrate`, or you are continuing that user's
44
- recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`, read
44
+ recorded `one-app-to-himi-app` workflow in `.himi/one-app/manifest.json`,
45
+ `migration/one-app/source/manifest.json` or a flat `migration/one-app/manifest.json`
46
+ that declares that workflow, read
45
47
  the `one-app-to-himi-app` guide (its installed skill, or `himi docs one-app-to-himi-app`), also at https://apps.wix.com/_api/himi-serve/docs/one-app-to-himi-app.md, and follow
46
48
  it now in this same agent session. The collector's `stage: "collected"` is evidence
47
49
  collection, not a generated app; a terminal without an agent honestly stops there.
@@ -148,24 +148,31 @@ himi store submission reply --dir <app> --text "<your reply>" [--attach demo.mp4
148
148
 
149
149
  `reply` sends your reply and resubmits, after you approve the reply's exact words. A reply cannot be unsent.
150
150
 
151
- ## 5. Getting help from Wix
151
+ ## 5. Let Wix submit it for you
152
152
 
153
- If you want Wix to look at where your submission stands, two commands send what Wix needs, and nothing else:
153
+ If you would rather Wix did the submission, one command hands the app over, and another takes it back:
154
154
 
155
155
  ```
156
- himi store handoff --dir <app> # send this app's App Store steps and their history to Wix
157
- himi store relops request --dir <app> # let Wix's release team see this app's store state
156
+ himi store wix-submit start --dir <app> # let Wix submit this app for you
157
+ himi store wix-submit status --dir <app> # what Wix may do, until when, and who is helping
158
+ himi store wix-submit stop --dir <app> # take it back
158
159
  ```
159
160
 
160
- - `handoff` collects the App Store jobs and their history for this app from this computer, keeps only ids, statuses,
161
- dates and step names (no file contents, free text, Apple's raw replies, passwords, codes, keys or cookies), and
162
- sends them to Wix for the app's site. Wix refuses a bundle with any other field. `--out <file>` or `--dry-run` writes or prints the bundle instead of sending
163
- it, so you can see exactly what would go. If the app's App Store record was created on another computer, name it
164
- with `--apple-app-id <id>`.
165
- - `relops request` records your consent for the app on its site, by default to **read** its store state
166
- (`--scope read,submit` also lets Wix submit for you). At a terminal you confirm by typing the app ID or `yes`;
167
- without one, pass `--yes`.
168
- - Both need your `himi login`, and only the owner of the app's Wix site can send them.
161
+ - `start` shows what you are agreeing to and asks you to type the app ID or `yes` (without a terminal, pass `--yes`).
162
+ Then it records your consent for the app on its site, for **90 days**: the Wix person helping with your app may read
163
+ its store state, plan and apply its App Store submission steps, and answer App Review. `--read-only` lets Wix look but
164
+ not act. It also sends Wix this app's App Store history from this computer: ids, statuses, dates and step names (no
165
+ file contents, free text, Apple's raw replies, passwords, codes, keys or cookies). Wix refuses a bundle with any other
166
+ field.
167
+ - `stop` withdraws your consent at once, and removes anyone Wix added to your Google Play account for the app (below).
168
+ `status` shows the consent (what it allows, when you gave it, when it expires), the Wix person helping with your
169
+ app, and everyone Wix added to your Google Play account for it.
170
+ - All three need your `himi login`, and only the owner of the app's Wix site can run them. From the app's folder, the
171
+ app and site come from the `wix` block of `store/app-store.json`; elsewhere, pass `--app <id> --site <msid>`.
172
+
173
+ To send only the App Store history, without a consent: `himi store handoff --dir <app>`. `--out <file>` or `--dry-run`
174
+ writes or prints the bundle instead of sending it, so you can see exactly what would go. If the app's App Store record
175
+ was created on another computer, name it with `--apple-app-id <id>`.
169
176
 
170
177
  ## Google Play (Android)
171
178
 
@@ -283,38 +290,56 @@ It shows the words and asks for a typed `yes`. That yes is kept for 7 days and w
283
290
  kind (spaces at the start or end of the text don't count). Then `submission reply` can plan it, and `apply` sends
284
291
  it.
285
292
 
286
- ### RelOps: Wix does it for you
293
+ ### Let Wix submit it for you
287
294
 
288
- If you would rather not run the Play Console steps yourself, Wix's release team can do them as a named person you
289
- invite to your account. You still own the account and still give every yes that matters.
295
+ If you would rather not run the Play Console steps yourself, Wix can do them, as a named Wix person you add to your
296
+ account. You still own the account and still give every yes that matters.
290
297
 
291
298
  ```
292
- himi store relops request --platform android --app <app id> --site <msid> --seat-email <name@wix.com> [--android-package himi.<name>] [--developer <id>]
299
+ himi store wix-submit start --platform android --dir <app> [--developer <id>] [--android-package himi.<name>]
293
300
  ```
294
301
 
295
- Run it from a terminal. From the app's folder you can leave out `--app` and `--site`: the `wix` block of
296
- `store/google-play.json` (or `store/app-store.json`) names them. Add `--android-package` when the site has no Google
297
- Play package saved yet, and `--developer` (the number in your Play Console URL) when this computer doesn't know your
298
- developer account yet; the command asks for whichever is missing before your yes. It shows one summary and asks you to type `yes`. After your yes it:
299
-
300
- - **records your consent** for the app on its site, and saves the app's package name if it was not saved yet;
301
- - signs you in to Google if you are not signed in;
302
- - **invites that one Wix person** to your Play account, with only the rights a release needs: release, store
303
- presence, App content and policy. While the Play app does not exist yet, it also gives the right to create apps.
304
- - **sets the invite to expire after 90 days**, the longest invitation these tools give.
302
+ Run it from a terminal, in the app's folder (or pass `--app <app id> --site <msid>`). It records your consent for 90
303
+ days: Wix may read the app's store state, submit it, start its Wix-signed Google Play builds, and work in your Play
304
+ Console, asking you for a yes on each agreement there. Then:
305
+
306
+ - **When Wix has named the person helping with your app**, `start` shows their name and email before you agree: "Wix
307
+ will add Dana (dana@wix.com) to your Google Play account for 90 days", with the rights they get (release, store
308
+ presence, App content and policy; while the Play app does not exist yet, also the right to create apps). One typed
309
+ `yes` covers the consent and the invite. It saves the app's package name if it was not saved yet, signs you in to
310
+ Google if you are not signed in, and sends the invite. The invite expires after 90 days, the longest these tools
311
+ give. Adding someone to your Google Play account always takes a typed yes at a terminal: `--yes` answers the consent
312
+ only, and then `start` tells you to run it again in your own terminal.
313
+ - **When nobody is named yet**, your consent is recorded and Wix contacts you. Run `himi store wix-submit start
314
+ --platform android` again when asked.
315
+ - **Wix adds one person at a time.** If someone added earlier is still on your Play account and Wix now names someone
316
+ else, `start` stops and asks you to run `himi store wix-submit stop` first.
317
+
318
+ Add `--android-package himi.<name>` when the site has no Google Play package saved yet, and `--developer` (the number in
319
+ your Play Console URL) when this computer doesn't know your developer account yet; the command asks for whichever is
320
+ missing before your yes. `--read-only` records a read-only consent and adds no one; if someone added earlier still has
321
+ access, it says so and prints the command that removes them (`himi store wix-submit stop`).
305
322
 
306
323
  The person has to accept Google's email invitation. You may be sent approval links for individual steps (creating the
307
324
  app, releasing to production). Each one shows what will happen. Read it before you press yes: Wix cannot press it for
308
325
  you.
309
326
 
310
- To remove the person:
327
+ To take it back:
311
328
 
312
329
  ```
313
- himi store relops end --platform android --app <app id> --site <msid> --seat-email <name@wix.com> [--developer <id>]
330
+ himi store wix-submit stop --dir <app> [--developer <id>]
314
331
  ```
315
332
 
316
- It asks for a typed yes and removes that person from your Play account, with every right they had, including the right
317
- to create apps. Nothing changes on Wix's side. The consent you gave stays on record.
333
+ It asks for a typed yes, withdraws your consent, and removes everyone Wix added to your Play account for this app, with
334
+ every right they had, including the right to create apps, whichever `--platform` you name. Who was added comes from the
335
+ app's store record, including people added from another computer. If the record has no one and the app has a Google Play
336
+ side (`--platform android`, or a `store/google-play.json` in the app's folder), the person Wix names now is removed, and
337
+ `stop` says so; an app with no Google Play side only has its consent withdrawn, and Google is never touched. Removing someone takes a typed yes at a terminal. If anyone may still be there (no
338
+ terminal, the Google sign-in failed, or who was added could not be read), your consent is still withdrawn, but `stop`
339
+ says who may remain, prints the command to finish it, and exits with an error. `himi store wix-submit status` shows your consent, who
340
+ is helping, and every person added to your Play account (when they were invited, when it expires, active or expired);
341
+ with `--platform android` and when this computer is signed in to Google, whether they are on your Play account (invited, active or
342
+ expired).
318
343
 
319
344
  If the Wix person cannot create the app, you can create it yourself in one step:
320
345
 
@@ -322,7 +347,7 @@ If the Wix person cannot create the app, you can create it yourself in one step:
322
347
  himi store google create-app --name <name> --app <app id> --site <msid> [--android-package himi.<name>] [--developer <id>]
323
348
  ```
324
349
 
325
- As with `relops request`, `--app` and `--site` can come from the app folder's `wix` block.
350
+ As with `wix-submit`, `--app` and `--site` can come from the app folder's `wix` block.
326
351
 
327
352
  It shows the app name, the package name (a package name can never be reused or changed once an app exists), and each
328
353
  declaration Google asks you to accept when creating an app, then asks for a typed `yes`.
@@ -334,12 +359,102 @@ declaration Google asks you to accept when creating an app, then asks for a type
334
359
  the yes as a strong habit, not a lock.
335
360
  - **Closed testing on a personal account.** Google requires a personal account to run a closed test with **12
336
361
  testers for 14 days** before it will allow production. An organization account is exempt. The plan says this up
337
- front. You find your own testers; Wix's tester pool is used only for RelOps apps.
362
+ front. You find your own testers; Wix's tester pool is used only for apps Wix submits for you.
338
363
  - **Nothing has run live yet.** The Google steps are tested against fakes, not a real Play account. The first real
339
364
  run may find problems.
340
365
  - A reply to a policy issue cannot be unsent, and a package name cannot be changed.
341
366
 
367
+ ## The store record
368
+
369
+ himi keeps a **store record** for each app on your computer: what each store showed the last time it was read, what was
370
+ last sent, and what the next submission will send, with the images. The store tools answer from it, so an agent can say
371
+ where the app stands without asking Google again. Every answer says how old it is.
372
+
373
+ **Where it lives.** In `~/.himi/store`, one folder per app. Set `HIMI_STORE_HOME` (or pass `--record-dir <dir>`) to use
374
+ another folder. Folders are private to you (`0700`), files too (`0600`). The record never holds a password, token, key
375
+ or cookie: a value that looks like one is refused before anything is written. An app is filed under its Himi app id, from
376
+ the `wix` block of `store/google-play.json` or `store/app-store.json` (when both have one, they must name the same app,
377
+ or himi refuses). An app with no `wix` block is filed under its package name (`pkg:<package>`) or bundle id instead,
378
+ unless you name its app with `--app` (or `--app-key`); the environment never names it. The first time a package's
379
+ record meets the Himi app id, it is merged in, and the package name keeps working as another name for it. One Himi app
380
+ has one package: `--app`, `--app-key` or `--site` that disagree with the folder's `wix` block are refused, and so is
381
+ filing a package under an app other than the one it is already filed under. Nothing is linked or sent when that
382
+ happens.
383
+
384
+ **What fills it.**
385
+
386
+ - A job that finishes as `verified` (`apply`, and on Google Play `wix-submit start` and `stop` when they add or remove
387
+ the Wix person, and `google create-app`) records what it sent.
388
+ - `himi store record refresh` reads Google again and records what Play shows now.
389
+ - `himi store record pull` fetches the copy Wix keeps (below).
390
+
391
+ Only Google Play has a record so far. On the App Store, `status` and `plan` still read App Store Connect each time, and
392
+ say so.
393
+
394
+ **What reads it.** `submission status` and `submission plan --platform android` (and `store_status` / `store_plan` in
395
+ `himi mcp`) answer from the record when it holds the parts they need: `source: "record"`, each part's age under
396
+ `record.parts`, and `drift`. Drift means Play shows something other than what was last sent: someone changed it in
397
+ Play Console. Ask the owner before overwriting a drifted part. A part older than 7 days is stale: the answer says to
398
+ refresh, and never says the app is done. When a part is missing they read Google live (`source: "live"`), and
399
+ `record.missing` says what a refresh would fill. A job's own plan always reads Google before it writes anything.
400
+
401
+ ```
402
+ himi store record show [--dir <app>] [--platform android|ios] [--part <part>]
403
+ himi store record refresh [--dir <app>] [--part status|tracks|listing|app-content|account|policy|all]
404
+ himi store record sync [--dir <app>]
405
+ himi store record pull [--dir <app> | --app <app id> --site <msid>]
406
+ ```
407
+
408
+ - `show` reads the record and nothing else: each file's slots and how old they are, drift, the last 10 jobs and
409
+ decisions, and `lastPush`: how the last push to Wix went (or why `himi mcp` could not push). It prints JSON.
410
+ - `refresh` reads Google Play (default `--part status`, the release state of each track) and fills the record. In `himi
411
+ mcp` it is the `store_refresh` tool. The `tracks` and `listing` parts open a throwaway edit, so don't run them while a
412
+ job is writing. The `app-content`, `account` and `policy` parts read Play Console on a read-only page.
413
+ - `sync` exchanges the record with the copy Wix keeps for the app. `pull` only fetches it. Use `pull` on a new computer,
414
+ or on Wix's side when Wix takes the app over. The Wix person helping with your app runs `sync` too, so what they did
415
+ shows in your record.
416
+
417
+ **The copy Wix keeps.** himi serve keeps a copy of each app's record, the files and the images, under the app's Himi app
418
+ id and its Wix site. It is how the record follows the app to a new computer, and how Wix sees what you see:
419
+
420
+ - **Which jobs push the record on their own.** When one of these finishes as `verified`, himi pushes the app's record:
421
+ - `himi store submission apply`, on either store. On the App Store the record isn't built yet, so the push carries
422
+ only what earlier Google Play jobs left in it.
423
+ - `store_apply` in `himi mcp`, for a Google Play job only. An App Store `store_apply` in `himi mcp` pushes nothing
424
+ until the Apple record exists. The tool answers first and the push runs after it: the answer says
425
+ `recordSync: { queued: true }`, or `{ queued: false, skipped }` when no app in the workspace (or one folder down)
426
+ declares the job's package, or two do, or the app's `wix` block names no site (it says so). When the host closes
427
+ `himi mcp`, a push still running gets 3 seconds. After that `himi mcp` aborts it and exits, whatever the push is
428
+ doing; that is safe, and `record show` says `lastPush` was `interrupted`. The next push or `sync` carries on.
429
+ - `wix-submit start` and `stop` (when they add or remove the Wix person) and `google create-app` on Google Play.
430
+
431
+ `refresh` and `pull` never push; run `himi store record sync` for that. If a push fails (no `himi login`, no network,
432
+ a file Wix refused), you get one warning line, the job still stands, and `record show` says it under `lastPush`. Run
433
+ `himi store record sync` later. Set `HIMI_STORE_RECORD_SYNC=off` to turn the push off. An app with no `wix` block has
434
+ no copy at Wix, so nothing is pushed. himi runs one push or sync per app at a time; pushes asked for while one runs
435
+ are folded into one more. The moment a push is queued, `lastPush` says `state: "queued"` until its outcome replaces
436
+ it, so a push whose process was killed shows as queued or interrupted, never as nothing.
437
+ - **Who can read and write it.** You, as the owner of the app and of its Wix site, read and write it. The Wix person
438
+ helping with your app uses their own `himi login`, and what they may do follows your latest consent (`himi store
439
+ wix-submit start`), if you gave it in the last 90 days and have not withdrawn it:
440
+ - Any consent lets them read the record.
441
+ - A consent that lets Wix act for the app (`wix-submit start` without `--read-only`) also lets them write: their
442
+ `sync`, and the push after a job they ran, land in the same record you read, under the same merge rules and limits
443
+ as yours.
444
+ - With a `--read-only` consent, Wix refuses their writes (`relops_consent_required`), file by file.
445
+
446
+ To stop them writing, run `himi store wix-submit start --read-only`; to stop everything, `himi store wix-submit
447
+ stop`. Both sides use their `himi login` (the himi control token, plus the Wix account from `wix login`), like the
448
+ other `himi store` commands that talk to Wix.
449
+ - **What syncing does.** Each file is merged slot by slot, and the newer copy of a slot wins. Logs (jobs, decisions) only
450
+ grow: a line is added once. When both copies wrote the same slot at the same moment with different data, neither
451
+ wins: the sync lists it under `conflicts` until one side writes it again. A file Wix refuses is listed under `errors`
452
+ and the rest still syncs (the command then exits 1).
453
+ - **Limits.** A record file can be up to 1 MB. An image can be up to 4 MB and must be a PNG, JPEG or WebP. An app keeps
454
+ at most 500 files, 100 images and 32 MB of images. A slot dated more than 10 minutes in the future is refused (check
455
+ your computer's clock).
456
+
342
457
  ## Errors
343
458
 
344
459
  Every failure prints one JSON envelope on stderr with a `code` (see "`himi store connect` and `himi store
345
- submission` codes" in `himi-json-output.md`).
460
+ submission` codes" and "`himi store record` codes" in `himi-json-output.md`).
@@ -251,6 +251,20 @@ himi site analyze --url https://owner.wixsite.com/site --shell brandy --apply
251
251
 
252
252
  No `--client-id` is needed here: a site shell is visitor-only, its pages are the site itself, and its contract binds no Headless client. Run the `--apply` inside a brandy app folder (`himi init --template brandy`): it writes the derived `site` block into the package's own `provisioning.json`, which the template's `config.ts` builds every tab and screen from. Inside the Himi repository there is no Brandy tree to bake (a Brandy binary is a branded-lite build, `himi dist --shell brandy`), so `--apply --shell brandy` run there is refused before the analysis runs.
253
253
 
254
+ #### A Wix site on a custom domain, with member sign-in
255
+
256
+ A site shell whose release also binds a Wix member client can carry the signed-in member into the website's pages: after a native sign-in, the app opens the site's own session endpoint with a fresh member session. On a Wix free host (`*.wixsite.com`, `*.wixstudio.com`, `*.wixstudio.io`, `*.editorx.io`) that endpoint is Wix's, under the site's own path, so nothing more is checked. On a custom domain it is whatever server the domain points at, so before a `himi dist` build bakes the binding, Himi asks Wix which site the release's client belongs to and requires the domain to be that site: the same host, or its apex / `www.` twin. Both the `site` block's `origin` and the binding's `siteUrl` are checked, and the `siteUrl` is checked even for a build that gets no `site` block. Wix's own answer is the authority here, never the site's HTML or a caller-supplied msid. A visitor-only release (no client) is not checked, because it carries no session.
257
+
258
+ How a build is refused: the build's contract fetch (`GET /v1/dist/contract`) answers one of these, and the build fails on it. The build log shows only the HTTP status; the `error` code is in the response body:
259
+
260
+ | `error` | Meaning | Fix |
261
+ |---|---|---|
262
+ | `release_wix_site_mismatch` (422) | Wix serves the client's site on another domain than the release names. | Point `site.origin` and `wix.siteUrl` at the site's primary domain, or bind that site's own client. |
263
+ | `release_wix_site_unverified` (422) | Wix answered but named no site for the client (an unknown client, or an unpublished site). | Publish the site, or check the client id. |
264
+ | `wix_site_unreachable` (503) | Wix could not be asked. | Start the build again. |
265
+
266
+ The shell's bake checks that proof again (`wix.siteVerified`) and stops with `wix_site_unverified` when a custom-domain site arrives without a matching one.
267
+
254
268
  What makes a target a site shell is its contract, not the shell's name: the analysis derives the page map whenever the contract `--apply` writes has a `site` block. In the repo that is the shell's committed `apps/<shell>/provisioning.json` (the Brandy content's has one, Branded Lite's does not); off-repo it is the content package's own `provisioning.json`, so a website template on the Branded Lite shell is a site shell with no `--shell` at all. A Branded Lite target without a `site` block stays a native app, `--site-pages` included. The drawer-only block `--site-pages` writes does not make a target a site shell.
255
269
 
256
270
  The map comes from what the analysis already reads without owner credentials, because Wix has no public menu API: the published page list (`look.sitePages`), the header menu the crawl saw (`look.navLinks`, label and href), and each page's role.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1749.0",
3
+ "version": "0.1750.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": [
@@ -62,14 +62,14 @@
62
62
  "@anthropic-ai/mcpb": "2.1.2",
63
63
  "@himalaya/data-resources": "0.0.0",
64
64
  "@types/wawoff2": "^1.0.2",
65
- "@wix/asc": "0.4.5",
66
- "@wix/asc-api": "0.4.5",
67
- "@wix/asc-core": "0.4.5",
68
- "@wix/asc-jobs": "0.4.5",
69
- "@wix/asc-mcp": "0.4.5",
70
- "@wix/asc-web": "0.4.5",
71
- "@wix/gplay-api": "0.4.5",
72
- "@wix/gplay-jobs": "0.4.5",
65
+ "@wix/asc": "0.4.14",
66
+ "@wix/asc-api": "0.4.14",
67
+ "@wix/asc-core": "0.4.14",
68
+ "@wix/asc-jobs": "0.4.14",
69
+ "@wix/asc-mcp": "0.4.14",
70
+ "@wix/asc-web": "0.4.14",
71
+ "@wix/gplay-api": "0.4.14",
72
+ "@wix/gplay-jobs": "0.4.14",
73
73
  "@wix/himalaya": "0.1.0"
74
74
  },
75
75
  "publishConfig": {
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "b6a7aba62cd2009ced58224973a46dd0c6460664b8d65b0bffa5522f"
85
+ "falconPackageHash": "937360c400b7b452f72da763e3889ea0e056e4a16fd58b49442d4ee1"
86
86
  }
@@ -63,6 +63,18 @@ export default defineApp({
63
63
  "maxHoldMs": 5000
64
64
  },
65
65
  navigation: {
66
+ "navLogicBundle": {
67
+ "url": "/v1/bundles/himi-branded-lite-nav",
68
+ "integrity": "",
69
+ "contentType": "application/javascript+ts-bundle",
70
+ "declaredCapabilities": [
71
+ "push",
72
+ "theme",
73
+ "wix_api"
74
+ ],
75
+ "minBinaryVersion": "0.1.0",
76
+ "bundleVersion": "0.0.1"
77
+ },
66
78
  "navKind": "responsive",
67
79
  "scheme": "himalaya-__HIMI_APP_SLUG__",
68
80
  "deepLinkPatterns": [],
@@ -190,7 +190,9 @@ export async function placesIn(start: string, end: string, inWindow: Session[],
190
190
  // Every page, not the first 100: a booking past it would read Book again. Bounded.
191
191
  const bookings: WixBooking[] = [];
192
192
  for (let page = 0; page < 5; page++) {
193
- const res = await queryBookings({ query: { filter: { "contactDetails.email": { $eq: who.email }, startDate: { $gte: from, $lt: to } }, paging: { limit: 100, offset: page * 100 } } } as never);
193
+ // Bookings v2 rejects two comparisons in one field expression (INVALID_FILTER).
194
+ // Keep the half-open window as independent AND clauses, with the same member scope.
195
+ const res = await queryBookings({ query: { filter: { "contactDetails.email": { $eq: who.email }, $and: [{ startDate: { $gte: from } }, { startDate: { $lt: to } }] }, paging: { limit: 100, offset: page * 100 } } } as never);
194
196
  const batch = res.bookings ?? [];
195
197
  bookings.push(...batch);
196
198
  if (batch.length < 100) break;