@wix/himalaya-cli 0.1788.0 → 0.1790.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 (79) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +18 -0
  2. package/dist/browser-plane/assets.json +5 -5
  3. package/dist/browser-plane/preview-deferred/{bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin → 83e211fe9fba65cca1fac7a0d552fbd3ba2873496f1c6117d5ac561d489ac839.bin} +1 -1
  4. package/dist/browser-plane/sw.js +8 -8
  5. package/dist/cli.mjs +145 -53
  6. package/dist/preview-assets.generated.bin +0 -0
  7. package/guides/himi-json-output.md +8 -1
  8. package/guides/releasing-with-himi-serve.md +5 -5
  9. package/guides/sdk-reference.json +1 -1
  10. package/package.json +2 -2
  11. package/templates/beauty-salon/l10n/en.json +1 -1
  12. package/templates/branded-lite/dev/index.ts +207 -2
  13. package/templates/branded-lite/l10n/ar.json +76 -0
  14. package/templates/branded-lite/l10n/cs.json +76 -0
  15. package/templates/branded-lite/l10n/da.json +76 -0
  16. package/templates/branded-lite/l10n/de.json +76 -0
  17. package/templates/branded-lite/l10n/el.json +76 -0
  18. package/templates/branded-lite/l10n/en.json +43 -1
  19. package/templates/branded-lite/l10n/es.json +76 -0
  20. package/templates/branded-lite/l10n/fi.json +76 -0
  21. package/templates/branded-lite/l10n/fr.json +76 -0
  22. package/templates/branded-lite/l10n/he.json +62 -0
  23. package/templates/branded-lite/l10n/hu.json +76 -0
  24. package/templates/branded-lite/l10n/id.json +76 -0
  25. package/templates/branded-lite/l10n/it.json +76 -0
  26. package/templates/branded-lite/l10n/ja.json +76 -0
  27. package/templates/branded-lite/l10n/ko.json +76 -0
  28. package/templates/branded-lite/l10n/lt.json +76 -0
  29. package/templates/branded-lite/l10n/nl.json +76 -0
  30. package/templates/branded-lite/l10n/no.json +76 -0
  31. package/templates/branded-lite/l10n/pl.json +76 -0
  32. package/templates/branded-lite/l10n/pt.json +76 -0
  33. package/templates/branded-lite/l10n/ru.json +76 -0
  34. package/templates/branded-lite/l10n/sv.json +76 -0
  35. package/templates/branded-lite/l10n/th.json +76 -0
  36. package/templates/branded-lite/l10n/tr.json +76 -0
  37. package/templates/branded-lite/l10n/uk.json +76 -0
  38. package/templates/branded-lite/l10n/vi.json +76 -0
  39. package/templates/branded-lite/l10n/zh.json +76 -0
  40. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +169 -4
  41. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +32 -1
  42. package/templates/community-club/l10n/en.json +1 -1
  43. package/templates/events-meetups/l10n/en.json +1 -1
  44. package/templates/gym-fitness/l10n/en.json +1 -1
  45. package/templates/nonprofit-cause/l10n/en.json +1 -1
  46. package/templates/podcast-creator/l10n/en.json +1 -1
  47. package/templates/portfolio-creative/l10n/en.json +1 -1
  48. package/templates/restaurant/l10n/en.json +1 -1
  49. package/templates/retail-store/l10n/en.json +1 -1
  50. package/templates/yoga-studio/dev/index.ts +203 -1
  51. package/templates/yoga-studio/l10n/ar.json +76 -0
  52. package/templates/yoga-studio/l10n/cs.json +76 -0
  53. package/templates/yoga-studio/l10n/da.json +76 -0
  54. package/templates/yoga-studio/l10n/de.json +76 -0
  55. package/templates/yoga-studio/l10n/el.json +76 -0
  56. package/templates/yoga-studio/l10n/en.json +43 -1
  57. package/templates/yoga-studio/l10n/es.json +76 -0
  58. package/templates/yoga-studio/l10n/fi.json +76 -0
  59. package/templates/yoga-studio/l10n/fr.json +76 -0
  60. package/templates/yoga-studio/l10n/he.json +62 -0
  61. package/templates/yoga-studio/l10n/hu.json +76 -0
  62. package/templates/yoga-studio/l10n/id.json +76 -0
  63. package/templates/yoga-studio/l10n/it.json +76 -0
  64. package/templates/yoga-studio/l10n/ja.json +76 -0
  65. package/templates/yoga-studio/l10n/ko.json +76 -0
  66. package/templates/yoga-studio/l10n/lt.json +76 -0
  67. package/templates/yoga-studio/l10n/nl.json +76 -0
  68. package/templates/yoga-studio/l10n/no.json +76 -0
  69. package/templates/yoga-studio/l10n/pl.json +76 -0
  70. package/templates/yoga-studio/l10n/pt.json +76 -0
  71. package/templates/yoga-studio/l10n/ru.json +76 -0
  72. package/templates/yoga-studio/l10n/sv.json +76 -0
  73. package/templates/yoga-studio/l10n/th.json +76 -0
  74. package/templates/yoga-studio/l10n/tr.json +76 -0
  75. package/templates/yoga-studio/l10n/uk.json +76 -0
  76. package/templates/yoga-studio/l10n/vi.json +76 -0
  77. package/templates/yoga-studio/l10n/zh.json +76 -0
  78. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +169 -4
  79. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +32 -1
package/dist/cli.mjs CHANGED
@@ -8377,6 +8377,7 @@ function assertExternalUrl(site, value2, where) {
8377
8377
  var WIX_FREE_SITE_HOST_SUFFIXES, SITE_KINDS, SITE_LAYOUTS, SITE_PAGE_TITLES, SITE_TOP_BAR_MAX_ACTIONS, SITE_BUILTIN_NATIVE_SCREENS, SITE_PRIVATE_NATIVE_SCREENS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID, BASE44_ORIGINS, PAGE_ID, SITE_PAGE_NODE_ID, SITE_SCREEN_FORMS, SITE_NODE_SCREEN_RENDERER, PLACEMENTS, ICONS;
8378
8378
  var init_site_shell = __esm({
8379
8379
  "../../core/ts/src/site-shell.ts"() {
8380
+ "use strict";
8380
8381
  init_define_HHP_CATALOG();
8381
8382
  init_himi_package();
8382
8383
  init_icon_catalog_generated();
@@ -40424,6 +40425,7 @@ function resolveIdiom(tokens2, ctx = {}) {
40424
40425
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40425
40426
  var init_idiom = __esm({
40426
40427
  "../../core/ts/src/idiom.ts"() {
40428
+ "use strict";
40427
40429
  init_define_HHP_CATALOG();
40428
40430
  IDIOM_CONTEXTS = {
40429
40431
  ios: { native: ["ios"] },
@@ -42159,7 +42161,6 @@ function shouldRevealError(args) {
42159
42161
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
42160
42162
  var init_validation = __esm({
42161
42163
  "../../core/ts/src/validation.ts"() {
42162
- "use strict";
42163
42164
  init_define_HHP_CATALOG();
42164
42165
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
42165
42166
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -50387,6 +50388,18 @@ function classifyEmbedUrl(url, pageOrigin = currentOrigin()) {
50387
50388
  function isWebviewUrlAllowed(url) {
50388
50389
  return webviewFrameSandbox(url, [], null) !== null;
50389
50390
  }
50391
+ function webViewFrameUrl(url, config) {
50392
+ if (!config.wixSite) return url;
50393
+ let parsed;
50394
+ try {
50395
+ parsed = new URL(url);
50396
+ } catch {
50397
+ return url;
50398
+ }
50399
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:" || parsed.searchParams.has(WIX_MOBILE_VIEW_PARAM)) return url;
50400
+ parsed.searchParams.set(WIX_MOBILE_VIEW_PARAM, "true");
50401
+ return parsed.href;
50402
+ }
50390
50403
  function webViewWebConfig(raw) {
50391
50404
  const c2 = asRecord(raw);
50392
50405
  const media = asRecord(c2.media);
@@ -50417,7 +50430,12 @@ function webViewWebConfig(raw) {
50417
50430
  disableContextMenu,
50418
50431
  loadingText: nonEmpty3(c2.loadingText),
50419
50432
  showProgressBar: c2.showProgressBar === true,
50420
- coverBandColor: nonEmpty3(c2.coverBandColor)
50433
+ coverBandColor: nonEmpty3(c2.coverBandColor),
50434
+ // The adapter names the site's kind when there is one: a Base44 page always carries "base44" from its
50435
+ // preset, and a page override that turns a Wix hider on does not make it a Wix site. With no adapter
50436
+ // (a Wix site without the member bridge), the Wix-only hiders are the marker; a "web" site has them
50437
+ // forced off (site-shell enforceSiteKind).
50438
+ wixSite: c2.hostedSiteAdapter === "wix" || (c2.hostedSiteAdapter === void 0 || c2.hostedSiteAdapter === "") && (c2.hideWixAds === true || c2.hideHostedSiteMenu === true)
50421
50439
  };
50422
50440
  }
50423
50441
  function maskInertHtml(html) {
@@ -50441,13 +50459,14 @@ function injectIntoInlineHtml(html, config, scrollEnabled = true) {
50441
50459
  if (tail) out2 += tail;
50442
50460
  return out2;
50443
50461
  }
50444
- var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, asRecord, nonEmpty3, scriptBody;
50462
+ var NETWORK_SCHEMES, SITE_PAGE_FRAME_GRANTS, WIX_MOBILE_VIEW_PARAM, asRecord, nonEmpty3, scriptBody;
50445
50463
  var init_webviewFrame = __esm({
50446
50464
  "../../core/web-renderer/src/webviewFrame.ts"() {
50447
50465
  init_define_HHP_CATALOG();
50448
50466
  init_webview_origin();
50449
50467
  NETWORK_SCHEMES = /* @__PURE__ */ new Set(["http:", "https:"]);
50450
50468
  SITE_PAGE_FRAME_GRANTS = ["allow-popups", "allow-forms"];
50469
+ WIX_MOBILE_VIEW_PARAM = "showMobileView";
50451
50470
  asRecord = (v2) => v2 && typeof v2 === "object" ? v2 : {};
50452
50471
  nonEmpty3 = (v2) => typeof v2 === "string" && v2.length > 0 ? v2 : void 0;
50453
50472
  scriptBody = (js2) => js2.replace(/<\/(script)/gi, "<\\/$1");
@@ -140694,7 +140713,7 @@ var init_renderNode = __esm({
140694
140713
  const scrollEnabled = typeof props2.scrollEnabled === "boolean" ? props2.scrollEnabled : primary;
140695
140714
  const htmlStr = rawHtml != null ? injectIntoInlineHtml(rawHtml, config, scrollEnabled) : void 0;
140696
140715
  const urlAllowed = urlStr != null && (config.allowedOrigins.length === 0 || webViewOriginAllowed(urlStr, config.allowedOrigins));
140697
- const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(urlStr, primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
140716
+ const urlFrame = urlStr && urlAllowed ? webviewFrameSandbox(webViewFrameUrl(urlStr, config), primary ? SITE_PAGE_FRAME_GRANTS : []) : null;
140698
140717
  const boundHeight = useResolvedScalar(props2.heightPath != null && isBinding(props2.heightPath) ? props2.heightPath : void 0, ctx);
140699
140718
  const fill2 = props2.fill === true || primary;
140700
140719
  const h2 = typeof boundHeight === "number" && boundHeight > 0 ? boundHeight : typeof props2.height === "number" && props2.height > 0 ? props2.height : void 0;
@@ -145830,6 +145849,7 @@ __export(src_exports2, {
145830
145849
  useBoundValue: () => useBoundValue,
145831
145850
  useImageSource: () => useImageSource,
145832
145851
  videoObjectFit: () => videoObjectFit,
145852
+ webViewFrameUrl: () => webViewFrameUrl,
145833
145853
  webViewOriginAllowed: () => webViewOriginAllowed,
145834
145854
  webViewWebConfig: () => webViewWebConfig,
145835
145855
  webviewFrameSandbox: () => webviewFrameSandbox,
@@ -249382,6 +249402,7 @@ __export(push_errors_exports, {
249382
249402
  PUSH_FAILURE_CODES: () => PUSH_FAILURE_CODES,
249383
249403
  base44AppIdForClaim: () => base44AppIdForClaim,
249384
249404
  base44ClaimRefusal: () => base44ClaimRefusal,
249405
+ federatedFailureFields: () => federatedFailureFields,
249385
249406
  federatedRefusal: () => federatedRefusal,
249386
249407
  pushFailure: () => pushFailure,
249387
249408
  uxEvidenceCode: () => uxEvidenceCode
@@ -249437,6 +249458,11 @@ async function base44AppIdForClaim(dir, token) {
249437
249458
  return void 0;
249438
249459
  }
249439
249460
  }
249461
+ function federatedFailureFields(status2, body, token) {
249462
+ const err = body && typeof body === "object" ? body.error : void 0;
249463
+ const hit = base44ClaimRefusal(err) ?? federatedRefusal(status2, body, token);
249464
+ return hit ? { code: hit.code, hint: hit.hint } : {};
249465
+ }
249440
249466
  var PUSH_FAILURE_CODES, UX_CODES, BASE44_CLAIM_CODES;
249441
249467
  var init_push_errors = __esm({
249442
249468
  "src/push-errors.ts"() {
@@ -252273,52 +252299,52 @@ var init_preview_assets_generated = __esm({
252273
252299
  init_define_HHP_CATALOG();
252274
252300
  init_preview_assets_format();
252275
252301
  PREVIEW_ASSET_MANIFEST = [
252276
- { key: "assets/DashboardHost-C9UVZmZa.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "029b9ab804e53b19ed904a1ff99dc2f7d72f82e3277e3940433536e447b5e3ac" },
252277
- { key: "assets/DevDrawer-CSyuRE4M.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "aff1bbb0a4754616df18a7b80984df3ffde62701e816be406246b17de3d2fb57" },
252278
- { key: "assets/IdiomCompare-CCwTOkKI.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "c8f869e3d2fdcf50df9051c58c57243bcc4edf42f218d5cd3ed6cb527a0ba3a4" },
252279
- { key: "assets/LightboxViewer-DbAFBsHV.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "ec6ca01718577e5743c15ed0b39a7101afc769a4c9bf42d70ed691715ececaa0" },
252280
- { key: "assets/OfflineReadingBar-CRca0rXY.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "e5b9517311ebefef66544998a044eb6c8ac8391146fdc92b6f415b804afd26b5" },
252281
- { key: "assets/PhonePreviewControl-BYVwEJpU.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "656a7a3159b639260e286f7bf20bf1c843d6a77edf5b93f470b44600e496111f" },
252282
- { key: "assets/SchemeCompare-DIiQCret.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "fc62278ab80b4f753e1751be7e10af5e45d8d731e7af69196fb01afd0c688ecf" },
252283
- { key: "assets/WixFrogTelemetrySink-C1kSW31b.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "a3b0295f9be9c032f5dbfedfcffa700a919ad6f4c0dab6e24521c76c0451e2c5" },
252302
+ { key: "assets/DashboardHost-gbsDp2_X.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "306b50240082bb2d359f820b79fb09007b302879ef729e3f26302e6c254ed211" },
252303
+ { key: "assets/DevDrawer-C8JEsMu2.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "aa5f51e09f2ea4e11b6e0184c7bee70e2488be5c55780a0ca5094fe15880a3fd" },
252304
+ { key: "assets/IdiomCompare-DQYhacXY.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "834d92dc323118e5beb81316afd519976b34cd38c31712ad7aad2038ea4e611f" },
252305
+ { key: "assets/LightboxViewer-VsvfJvNa.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "470dd1a297cef286c982a2f01590de610da91a2f6427ca7715378cfab224afcb" },
252306
+ { key: "assets/OfflineReadingBar-D4sHSaqS.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "bfd99085657c2f14ccb0f7cf576a428c4dbbe5c6cfd08bb8d7308248ba699d74" },
252307
+ { key: "assets/PhonePreviewControl-B6SWkSvi.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "6902f4b9831eaadbb135ad19032c5222617cdda78711673e827f69a40ad17592" },
252308
+ { key: "assets/SchemeCompare-DGynvl70.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "a7ce03c2976688d237f894c0691bbaeb57b36dd2be642d86db33025b0acfbb0f" },
252309
+ { key: "assets/WixFrogTelemetrySink-ktKeAG5R.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "0832e52aca49ec6fa475d2cdd351109de1cab3195075dd6adee736fb39306dd4" },
252284
252310
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
252285
252311
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
252286
- { key: "assets/catalogFontFaces-DVB9f6Pa.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "b5aaa7b833570d42ef1c526fbb9f60c410902b178b54bb22522d69c2f9a4cb17" },
252312
+ { key: "assets/catalogFontFaces-OWyQlCSM.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "a6fe2525c5b6cc9e80042de8a5e8610d06b16dbc66fb38632f573e68d254652b" },
252287
252313
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
252288
- { key: "assets/files-transfer-upqOBkgC.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "8fd44da7076632e938c01fccff8085ffaecf88be7ef5ad47fb0dae074378b76f" },
252314
+ { key: "assets/files-transfer-B0DOdcV4.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "396b8ea7be41f4bb94d7868ed856fec504a5200d260744f5936baeef60e624ec" },
252289
252315
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
252290
- { key: "assets/frogApiRules-x34Lvev1.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "d9f9531dce6742f1004fe81e4330d6a8965b41ef92ab71afc1da649df45e8587" },
252316
+ { key: "assets/frogApiRules-BmEnR5aZ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "4d96d0a35516325b708c62eb1ad670344f8c96d4696952c86e61c0930e3a600c" },
252291
252317
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
252292
252318
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
252293
252319
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
252294
- { key: "assets/index-DpUQMHYv.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1603864, sha256: "07785d6c9eb3fac484b0819aa40673c9d57567616d43614df4b0084cc9c4d41c" },
252295
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1749488, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252296
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1757239, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252297
- { key: "assets/pdf-f0zWjeR_.js", contentType: "application/javascript; charset=utf-8", offset: 1767770, length: 488215, sha256: "bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066" },
252298
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2255985, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252299
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2256075, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252300
- { key: "assets/pdfDocument-CzDgI9s3.js", contentType: "application/javascript; charset=utf-8", offset: 3573109, length: 3470, sha256: "cb55b511e369aaad9e33d27a2780b70f553d0276bd71a8e671a1f172e46b7e47" },
252301
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3576579, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252302
- { key: "assets/scrollLinkedRuntime-CLyMySBm.js", contentType: "application/javascript; charset=utf-8", offset: 3578845, length: 2278, sha256: "bdb5f8deb7599cec3ffc863233f5b2835f35c0bd78c0fba7b43c1a86a2a5fe83" },
252303
- { key: "assets/webviewBridgeHost-fn4zwSfi.js", contentType: "application/javascript; charset=utf-8", offset: 3581123, length: 9889, sha256: "05403234326fc1cc5f9e479df7ed6a7aa4c17af7f660c0bb4b5e870dc3342399" },
252304
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3591012, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252305
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3595622, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252306
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4084206, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252307
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4175130, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252308
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4266114, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252309
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4357094, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252310
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4447966, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252311
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4538946, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252312
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4647582, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252313
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4756666, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252314
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4865714, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252315
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4973414, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252316
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5061522, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252317
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5068340, length: 4924, sha256: "7591928ab6ec216f95469cf49cf76219aca01721d6a068181235fd5db86256a5" },
252318
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5073264, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252319
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5084721, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252320
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5085892, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252321
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5110195, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252320
+ { key: "assets/index-Db2UBDAc.js", contentType: "application/javascript; charset=utf-8", offset: 145624, length: 1604250, sha256: "c6e819a8a24a7bce0ac0d6e254097b9438d96ca9d66768cf52c7d7038995f4bb" },
252321
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1749874, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
252322
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1757625, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
252323
+ { key: "assets/pdf-C3BFq-CJ.js", contentType: "application/javascript; charset=utf-8", offset: 1768156, length: 488215, sha256: "83e211fe9fba65cca1fac7a0d552fbd3ba2873496f1c6117d5ac561d489ac839" },
252324
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2256371, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
252325
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2256461, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
252326
+ { key: "assets/pdfDocument-CNuYg9Fw.js", contentType: "application/javascript; charset=utf-8", offset: 3573495, length: 3470, sha256: "1793fdb0dc7728620b81dee55e6a3ec0a68070571538d0e93aadab59e26042db" },
252327
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3576965, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
252328
+ { key: "assets/scrollLinkedRuntime-a1Xbqnij.js", contentType: "application/javascript; charset=utf-8", offset: 3579231, length: 2278, sha256: "7f6d84306da06aa1a921ba45c181ba17f5526813cef8820f9a41f555e1ade934" },
252329
+ { key: "assets/webviewBridgeHost-ChyJ8ked.js", contentType: "application/javascript; charset=utf-8", offset: 3581509, length: 9889, sha256: "314e5da4ad0f3525b342008fc50cb4ceb270d786fc7da54c6485864b7cda8e10" },
252330
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3591398, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
252331
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3596008, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
252332
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4084592, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
252333
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4175516, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
252334
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4266500, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
252335
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4357480, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
252336
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4448352, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
252337
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4539332, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
252338
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4647968, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
252339
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4757052, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
252340
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4866100, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
252341
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4973800, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
252342
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5061908, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
252343
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5068726, length: 4924, sha256: "0c703da0596f67c571b0ec1a84710204f75df4e571d299038ebf22fb6e8070ab" },
252344
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5073650, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
252345
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5085107, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
252346
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5086278, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
252347
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5110581, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
252322
252348
  ];
252323
252349
  }
252324
252350
  });
@@ -289402,7 +289428,15 @@ async function logsCommand(ctx) {
289402
289428
 
289403
289429
  // src/commands/promote.ts
289404
289430
  init_define_HHP_CATALOG();
289431
+ init_config();
289405
289432
  init_cli_shared();
289433
+ function controlTokenFor(ctx) {
289434
+ try {
289435
+ return resolveTarget({ target: ctx.targetName(), controlToken: typeof ctx.flags["control-token"] === "string" ? ctx.flags["control-token"] : void 0 }).controlToken;
289436
+ } catch {
289437
+ return void 0;
289438
+ }
289439
+ }
289406
289440
  async function promoteCommand2(ctx) {
289407
289441
  const { io: io2, flags, print, targetName: targetName2, client: client4 } = ctx;
289408
289442
  const app2 = str3(flags.app);
@@ -289442,6 +289476,7 @@ async function promoteCommand2(ctx) {
289442
289476
  print({
289443
289477
  status: r3.status,
289444
289478
  ...r3.json ?? {},
289479
+ ...!r3.ok ? (await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r3.status, r3.json, controlTokenFor(ctx)) : {},
289445
289480
  ...r3.ok ? {
289446
289481
  ringPromoted: false,
289447
289482
  note: "activation updates the live release but does not select a rollout ring; ring-based clients remain unresolved until a ring is promoted",
@@ -290204,6 +290239,7 @@ async function testflightCommand(ctx) {
290204
290239
 
290205
290240
  // src/commands/dist.ts
290206
290241
  init_define_HHP_CATALOG();
290242
+ init_config();
290207
290243
  import { existsSync as existsSync133, readFileSync as readFileSync159 } from "node:fs";
290208
290244
  import { join as join172 } from "node:path";
290209
290245
  init_wix_owner();
@@ -290277,6 +290313,15 @@ function distInstallPageUrl(origin, jobs) {
290277
290313
  }
290278
290314
  async function distCommand(ctx) {
290279
290315
  const { io: io2, pos, flags, print, targetName: targetName2, client: client4, serveBase } = ctx;
290316
+ const fedFields = async (status2, body) => {
290317
+ let token;
290318
+ try {
290319
+ token = resolveTarget({ target: targetName2(), controlToken: str3(flags["control-token"]) }).controlToken;
290320
+ } catch {
290321
+ }
290322
+ const f2 = (await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(status2, body, token);
290323
+ return f2;
290324
+ };
290280
290325
  const sub = pos[1];
290281
290326
  const c2 = client4();
290282
290327
  const showDistQr = io2.isTTY === true && flags.json !== true;
@@ -290419,7 +290464,7 @@ ${label4}`);
290419
290464
  }
290420
290465
  }
290421
290466
  }
290422
- const body = { status: r4.status, ...r4.json ?? {} };
290467
+ const body = { status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} };
290423
290468
  if (r4.ok) await rememberLastDist([body]);
290424
290469
  print(flags.json === true ? body : humanDistJob(body));
290425
290470
  if (showDistQr && r4.ok) await printDistQrForJob(body, String(body.app ?? ""));
@@ -290458,7 +290503,7 @@ ${label4}`);
290458
290503
  }
290459
290504
  }
290460
290505
  if (!s5.ok) {
290461
- print({ status: s5.status, ...s5.json ?? {} });
290506
+ print({ status: s5.status, ...s5.json ?? {}, ...await fedFields(s5.status, s5.json) });
290462
290507
  return 1;
290463
290508
  }
290464
290509
  const rec = s5.json ?? {};
@@ -290507,7 +290552,7 @@ ${label4}`);
290507
290552
  } catch (e2) {
290508
290553
  return distUnreachable(e2);
290509
290554
  }
290510
- print({ status: r4.status, ...r4.json ?? {} });
290555
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290511
290556
  return r4.ok ? 0 : 1;
290512
290557
  }
290513
290558
  if (sub === "cancel") {
@@ -290522,7 +290567,7 @@ ${label4}`);
290522
290567
  } catch (e2) {
290523
290568
  return distUnreachable(e2);
290524
290569
  }
290525
- print({ status: r4.status, ...r4.json ?? {} });
290570
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290526
290571
  return r4.ok ? 0 : 1;
290527
290572
  }
290528
290573
  if (sub && sub !== "start") {
@@ -290550,7 +290595,7 @@ ${label4}`);
290550
290595
  return distUnreachable(e2);
290551
290596
  }
290552
290597
  if (flags.json === true || !r4.ok) {
290553
- print({ status: r4.status, ...r4.json ?? {} });
290598
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290554
290599
  return r4.ok ? 0 : 1;
290555
290600
  }
290556
290601
  const { formatDistPlan: formatDistPlan2 } = await Promise.resolve().then(() => (init_capabilities(), capabilities_exports));
@@ -290712,7 +290757,7 @@ ${label4}`);
290712
290757
  return distUnreachable(e2);
290713
290758
  }
290714
290759
  if (!r3.ok) {
290715
- print({ status: r3.status, ...r3.json ?? {} });
290760
+ print({ status: r3.status, ...r3.json ?? {}, ...await fedFields(r3.status, r3.json) });
290716
290761
  return 1;
290717
290762
  }
290718
290763
  const migrationWarnings = r3.json?.warnings ?? [];
@@ -291626,7 +291671,8 @@ async function appsCommand(ctx) {
291626
291671
  status: r4.status,
291627
291672
  ...j3,
291628
291673
  ...ownerPlaneHint(r4.status, err, target),
291629
- ...claimHint(r4.status, err)
291674
+ ...claimHint(r4.status, err),
291675
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r4.status, j3, cookie ? void 0 : ownerToken)
291630
291676
  }));
291631
291677
  return 1;
291632
291678
  }
@@ -291660,7 +291706,8 @@ async function appsCommand(ctx) {
291660
291706
  status: r4.status,
291661
291707
  ...j3,
291662
291708
  ...ownerPlaneHint(r4.status, err, target),
291663
- ...releaseHint(err)
291709
+ ...releaseHint(err),
291710
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r4.status, j3, cookie ? void 0 : ownerToken)
291664
291711
  }));
291665
291712
  return 1;
291666
291713
  }
@@ -291678,7 +291725,8 @@ async function appsCommand(ctx) {
291678
291725
  ok: false,
291679
291726
  status: r3.status,
291680
291727
  ...j2,
291681
- ...ownerPlaneHint(r3.status, j2.error, target)
291728
+ ...ownerPlaneHint(r3.status, j2.error, target),
291729
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r3.status, j2, cookie ? void 0 : ownerToken)
291682
291730
  }));
291683
291731
  return 1;
291684
291732
  }
@@ -294518,6 +294566,48 @@ function tailLast(o2) {
294518
294566
  const { reminder, doNowAgain, ...rest } = o2;
294519
294567
  return { ...rest, ...reminder !== void 0 ? { reminder } : {}, ...doNowAgain !== void 0 ? { doNowAgain } : {} };
294520
294568
  }
294569
+ var NO_REFRESH_COMMANDS = /* @__PURE__ */ new Set([
294570
+ "login",
294571
+ "logout",
294572
+ "validate",
294573
+ "init",
294574
+ "run",
294575
+ "test",
294576
+ "pack",
294577
+ "build",
294578
+ "guide",
294579
+ "app-docs",
294580
+ // The offline guide command and its aliases.
294581
+ "docs",
294582
+ "components",
294583
+ "sdk",
294584
+ "capabilities",
294585
+ "skills",
294586
+ "agent-init",
294587
+ "icons",
294588
+ "icon",
294589
+ "fonts",
294590
+ "tokens",
294591
+ "surfaces",
294592
+ "fidelity",
294593
+ "ux",
294594
+ "studio",
294595
+ "eject",
294596
+ "import",
294597
+ "l10n",
294598
+ "hhp",
294599
+ "progress",
294600
+ "upgrade",
294601
+ "refresh-update-cache",
294602
+ "whoami",
294603
+ "publish-size"
294604
+ ]);
294605
+ function shouldRefreshBeforeCommand(command, flags, env = process.env) {
294606
+ if (!command || NO_REFRESH_COMMANDS.has(command) || flags.help === true) return false;
294607
+ if (command === "render" && flags.remote !== true) return false;
294608
+ if (typeof flags["control-token"] === "string" && flags["control-token"] || env.HIMI_CONTROL_TOKEN) return false;
294609
+ return true;
294610
+ }
294521
294611
  async function runCommand2(argv, io2, deps) {
294522
294612
  const { _: pos, flags } = parseFlags(argv);
294523
294613
  const flagErrors = switchFlagErrors(argv);
@@ -294801,7 +294891,7 @@ himi v${cliVersion()} \u2014 run \`himi --version\`. If authoring commands fail
294801
294891
  runReleasePatch,
294802
294892
  patchBlastRadius
294803
294893
  };
294804
- if (command && command !== "login" && command !== "logout" && flags.help !== true && !str3(flags["control-token"]) && !process.env.HIMI_CONTROL_TOKEN) {
294894
+ if (shouldRefreshBeforeCommand(command, flags)) {
294805
294895
  try {
294806
294896
  const { refreshStoredLogin: refreshStoredLogin2 } = await Promise.resolve().then(() => (init_login_refresh(), login_refresh_exports));
294807
294897
  const renewed = await refreshStoredLogin2(targetName2());
@@ -294980,6 +295070,7 @@ export {
294980
295070
  ConfigLoadError,
294981
295071
  GIT_FLAG_STORE_HALF_WRITE_NOTE,
294982
295072
  GIT_FLAG_STORE_NOTE,
295073
+ NO_REFRESH_COMMANDS,
294983
295074
  PLACEHOLDER_CLIENT_ID,
294984
295075
  PLACEHOLDER_SITE_URL,
294985
295076
  PREVIEW_HANDOVER_NOTE,
@@ -295069,6 +295160,7 @@ export {
295069
295160
  serveUnreachableHint,
295070
295161
  servesAll,
295071
295162
  shellShaDivergenceWarnings,
295163
+ shouldRefreshBeforeCommand,
295072
295164
  spawnUpdateRefresh,
295073
295165
  staleUpdateLockFile,
295074
295166
  switchFlagErrors,
Binary file
@@ -48,7 +48,7 @@ A `429` while polling is not a failure: the CLI backs off by the plane's `retryA
48
48
 
49
49
  **Signing in without a Wix account.** Where the plane offers it, the device page also lets a person sign in another way (Base44 first). The success envelope then carries `credential: "federated"`, `provider` (e.g. `"base44"`), `sub` as `<provider>:<id>`, and `limits` (what such an account cannot do yet); a Wix sign-in carries `provider: "wix"` and its own `credential` (`self-serve`, …). `--provider <id>` adds `provider=<id>` to `verificationUriComplete` so the page can skip its choice (`--provider wix` does today); it goes on the start, never on `--resume`, and `--provider <non-wix> --site` exits 2 with `code: "site_requires_wix_account"`. When a site was requested and the sign-in was not a Wix account, the login still succeeds and `site.error` is `"site_requires_wix_account"`, with a `site.hint` naming the Wix login that connects the site.
50
50
 
51
- **Renewing a login without a Wix account.** `himi login --browser --provider <id>` (and a device login, when the person signs in that way) also receives the plane's refresh token. It is stored beside the control token in `serve-targets.json` (owner-only) and never printed; the success envelope says `refreshable: true`. Before any command other than `login`/`logout`, an expired stored federated token is renewed from it (one request, rotating the refresh token); `himi mcp` tools run through the same path, so they keep reusing the login. A failed renewal is a stderr line `{ warning: "login_refresh_failed", code, error, hint }` (`code` is `login_expired`, `federated_disabled` or `refresh_unavailable`) and the command goes on with what is stored. `himi push` that gets 401 on such a login renews once and retries the publish once; `--control-token` and `HIMI_CONTROL_TOKEN` are never renewed.
51
+ **Renewing a login without a Wix account.** `himi login --browser --provider <id>` (and a device login, when the person signs in that way) also receives the plane's refresh token. It is stored beside the control token in `serve-targets.json` (owner-only) and never printed; the success envelope says `refreshable: true`. Before a command that can present the stored login (every command except `login`/`logout` and the offline ones — `validate`, `init`, `run`, `test`, `pack`, the guide commands and the other local tools listed in `NO_REFRESH_COMMANDS`), an expired stored federated token is renewed from it (one request, rotating the refresh token); `himi mcp` tools run through the same path, so they keep reusing the login. A failed renewal is a stderr line `{ warning: "login_refresh_failed", code, error, hint }` (`code` is `login_expired`, `federated_disabled` or `refresh_unavailable`) and the command goes on with what is stored. `himi push` that gets 401 on such a login renews once and retries the publish once; `--control-token` and `HIMI_CONTROL_TOKEN` are never renewed.
52
52
 
53
53
  ### `himi login --device --site`: `site.error` codes
54
54
 
@@ -343,6 +343,13 @@ worker's bundle. These names are stable.
343
343
  | `authoring_unavailable` | The bundled authoring runtime failed to load. Carries `cause` (the underlying error's message) and `module` (the import specifier that failed) when known, and `sourceCheckout`: when run from a source checkout the advice is `fix: "yarn install"` (stale dependencies), off-repo it is `upgrade` (an out-of-date CLI). |
344
344
  | `push_failed` | An otherwise unclassified exception stopped push (for example unreadable content). The original error is preserved. |
345
345
 
346
+ **Beyond `himi push`.** `himi apps` (`claim`, `release`, list), `himi promote` and `himi dist` add the same
347
+ top-level `code` and `hint` to their failure envelope when the refusal exists only because the credential
348
+ signed in without Wix: `federated_not_allowed`, `federated_disabled`, `federated_quota_exceeded`,
349
+ `insufficient_scope`, `federated_storage_full` and the four `base44_app_*` / `invalid_base44_app_id` claim
350
+ codes. Their other fields (`status`, the plane's body) are unchanged, and any other refusal keeps the
351
+ command's existing envelope.
352
+
346
353
  The `ux_evidence_*` codes map to the existing typed `uxEvidence.state`; a successful
347
354
  `recorded` state has no refusal code. Successful pushes and warnings do not gain
348
355
  failure codes. A forced push still follows the existing override rules.
@@ -235,9 +235,8 @@ RelOps drives it with `himi store relops pool add|status|end [--all-himi]` (see
235
235
 
236
236
  The gate, every call audited (`reason: store_pool_refused`, the code in `storeAppStatus`, with the underlying cause on
237
237
  5xx): a RelOps login on `HIMI_RELOPS_ACCOUNTS` (anyone else, the owner included: 403 `relops_only`; the sweep also takes
238
- the operator static credential). **The toggle `specs.himalaya.ClosedTestPool` gates new adds only** (off or
239
- unconducted: 404 `store_pool_disabled`): the sweep, teardown, status and end run whenever Himi's table has entries, so a
240
- toggle opened per user, or closed again, never strands an entry on the pool. Add and status need the owner's
238
+ the operator static credential). There is no feature toggle: emptying `HIMI_RELOPS_ACCOUNTS` (read live) stops new adds
239
+ with no deploy. Add and status need the owner's
241
240
  `play-console` consent under 90 days (403 `relops_consent_required`); **end and teardown need no consent** (they only
242
241
  cancel Himi's own entries, which reduces exposure, so RelOps can always end). Add holds at most `HIMI_POOL_MAX_ACTIVE`
243
242
  (default 5) open entries (429 `store_pool_full`), reserved atomically on the index row before the service is called.
@@ -267,8 +266,9 @@ so the sweep is an internal route: schedule a daily `POST /v1/admin/store-pool/s
267
266
  Config: `HIMI_POOL_MAX_ACTIVE`, `HIMI_POOL_TESTER_GROUP` (the Google Group owners add to track `alpha`),
268
267
  `HIMI_POOL_ALERT_CHANNEL` (posted by the `MREBOT_SLACK_TOKEN` bot; unset: a log line). The closed-testing client
269
268
  calls with Himalaya's service identity, which needs
270
- `MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE). It is not wired yet: until the spike confirms the
271
- generated ambassador package, the routes answer 503 `store_pool_unconfigured` with the toggle on.
269
+ `MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE). The client is the generated
270
+ `@wix/ambassador-wma-branded-google-closed-testing-v1-tested-app`; with no client or cloudStore wired, the routes answer
271
+ 503 `store_pool_unconfigured`.
272
272
 
273
273
  ## Patching one item of a release
274
274
 
@@ -29486,7 +29486,7 @@
29486
29486
  "name": "WixProgramFull",
29487
29487
  "kind": "interface",
29488
29488
  "jsdoc": "",
29489
- "decl": "export interface WixProgramFull extends WixProgram {\n revision?: number;\n status?: string;\n statusUpdatedDate?: string;\n updatedDate?: string;\n // `description` is INHERITED from WixProgram. Re-declaring it here is what drifted (#2285).\n timeline?: { selfPaced?: boolean; startDate?: string; durationInDays?: number };\n restrictions?: { accessType?: string; hideFutureSteps?: boolean; resolveStepsInOrder?: boolean; shareProgress?: boolean };\n price?: { value?: string; currency?: string };\n contentSummary?: { stepCount?: number; sectionCount?: number };\n}",
29489
+ "decl": "export interface WixProgramFull extends WixProgram {\n revision?: number;\n status?: string;\n statusUpdatedDate?: string;\n updatedDate?: string;\n // `description` is INHERITED from WixProgram. Re-declaring it here is what drifted (#2285).\n timeline?: { selfPaced?: boolean; startDate?: string; durationInDays?: number };\n restrictions?: { accessType?: string; hideFutureSteps?: boolean; resolveStepsInOrder?: boolean; shareProgress?: boolean };\n price?: { value?: string; currency?: string };\n contentSummary?: { stepCount?: number; sectionCount?: number };\n /** What completing the program earns: badge ids and, when connected, a certificate (its `id` is the program's).\n * Verified on amit1 2026-11-18: `[{ trigger: \"ALL_STEPS_COMPLETED\", badgeIds: [], certificate: { id, connectedDate } }]`. */\n rewards?: Array<{ trigger?: string; badgeIds?: string[]; certificate?: { id?: string; connectedDate?: string } }>;\n /** The program's page on the live site: `url.base` + `url.path` (e.g. `https://…/challenge-page/<id>`). */\n seo?: { slug?: string; url?: { base?: string; path?: string } };\n}",
29490
29490
  "verificationChecked": true
29491
29491
  },
29492
29492
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1788.0",
3
+ "version": "0.1790.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "2c7d1ee47976b9c0dc61f5fbc0edf146f2c992b48e336f3b6b100de5"
85
+ "falconPackageHash": "e8a4d3bab63362f012425bda486538eb97562e07690370fa1c1aa1d6"
86
86
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-19T10:08:02.426Z",
3
+ "$generated": "2026-11-19T15:47:24.661Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",