@wix/himalaya-cli 0.1789.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.
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin → 83e211fe9fba65cca1fac7a0d552fbd3ba2873496f1c6117d5ac561d489ac839.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +107 -43
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +1 -1
- package/guides/releasing-with-himi-serve.md +5 -5
- package/package.json +2 -2
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();
|
|
@@ -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,
|
|
@@ -252279,52 +252299,52 @@ var init_preview_assets_generated = __esm({
|
|
|
252279
252299
|
init_define_HHP_CATALOG();
|
|
252280
252300
|
init_preview_assets_format();
|
|
252281
252301
|
PREVIEW_ASSET_MANIFEST = [
|
|
252282
|
-
{ key: "assets/DashboardHost-
|
|
252283
|
-
{ key: "assets/DevDrawer-
|
|
252284
|
-
{ key: "assets/IdiomCompare-
|
|
252285
|
-
{ key: "assets/LightboxViewer-
|
|
252286
|
-
{ key: "assets/OfflineReadingBar-
|
|
252287
|
-
{ key: "assets/PhonePreviewControl-
|
|
252288
|
-
{ key: "assets/SchemeCompare-
|
|
252289
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
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" },
|
|
252290
252310
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
252291
252311
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
252292
|
-
{ key: "assets/catalogFontFaces-
|
|
252312
|
+
{ key: "assets/catalogFontFaces-OWyQlCSM.js", contentType: "application/javascript; charset=utf-8", offset: 121772, length: 1111, sha256: "a6fe2525c5b6cc9e80042de8a5e8610d06b16dbc66fb38632f573e68d254652b" },
|
|
252293
252313
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 122883, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
252294
|
-
{ key: "assets/files-transfer-
|
|
252314
|
+
{ key: "assets/files-transfer-B0DOdcV4.js", contentType: "application/javascript; charset=utf-8", offset: 125450, length: 6446, sha256: "396b8ea7be41f4bb94d7868ed856fec504a5200d260744f5936baeef60e624ec" },
|
|
252295
252315
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 131896, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
252296
|
-
{ key: "assets/frogApiRules-
|
|
252316
|
+
{ key: "assets/frogApiRules-BmEnR5aZ.js", contentType: "application/javascript; charset=utf-8", offset: 133068, length: 2207, sha256: "4d96d0a35516325b708c62eb1ad670344f8c96d4696952c86e61c0930e3a600c" },
|
|
252297
252317
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 135275, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
252298
252318
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 136342, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
252299
252319
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 142920, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
252300
|
-
{ key: "assets/index-
|
|
252301
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252302
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252303
|
-
{ key: "assets/pdf-
|
|
252304
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252305
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
252306
|
-
{ key: "assets/pdfDocument-
|
|
252307
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252308
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
252309
|
-
{ key: "assets/webviewBridgeHost-
|
|
252310
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
252311
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
252312
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
252313
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252314
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
252315
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
252316
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252317
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
252318
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
252319
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
252320
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
252321
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
252322
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
252323
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
252324
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
252325
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
252326
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
252327
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
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" }
|
|
252328
252348
|
];
|
|
252329
252349
|
}
|
|
252330
252350
|
});
|
|
@@ -294546,6 +294566,48 @@ function tailLast(o2) {
|
|
|
294546
294566
|
const { reminder, doNowAgain, ...rest } = o2;
|
|
294547
294567
|
return { ...rest, ...reminder !== void 0 ? { reminder } : {}, ...doNowAgain !== void 0 ? { doNowAgain } : {} };
|
|
294548
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
|
+
}
|
|
294549
294611
|
async function runCommand2(argv, io2, deps) {
|
|
294550
294612
|
const { _: pos, flags } = parseFlags(argv);
|
|
294551
294613
|
const flagErrors = switchFlagErrors(argv);
|
|
@@ -294829,7 +294891,7 @@ himi v${cliVersion()} \u2014 run \`himi --version\`. If authoring commands fail
|
|
|
294829
294891
|
runReleasePatch,
|
|
294830
294892
|
patchBlastRadius
|
|
294831
294893
|
};
|
|
294832
|
-
if (command
|
|
294894
|
+
if (shouldRefreshBeforeCommand(command, flags)) {
|
|
294833
294895
|
try {
|
|
294834
294896
|
const { refreshStoredLogin: refreshStoredLogin2 } = await Promise.resolve().then(() => (init_login_refresh(), login_refresh_exports));
|
|
294835
294897
|
const renewed = await refreshStoredLogin2(targetName2());
|
|
@@ -295008,6 +295070,7 @@ export {
|
|
|
295008
295070
|
ConfigLoadError,
|
|
295009
295071
|
GIT_FLAG_STORE_HALF_WRITE_NOTE,
|
|
295010
295072
|
GIT_FLAG_STORE_NOTE,
|
|
295073
|
+
NO_REFRESH_COMMANDS,
|
|
295011
295074
|
PLACEHOLDER_CLIENT_ID,
|
|
295012
295075
|
PLACEHOLDER_SITE_URL,
|
|
295013
295076
|
PREVIEW_HANDOVER_NOTE,
|
|
@@ -295097,6 +295160,7 @@ export {
|
|
|
295097
295160
|
serveUnreachableHint,
|
|
295098
295161
|
servesAll,
|
|
295099
295162
|
shellShaDivergenceWarnings,
|
|
295163
|
+
shouldRefreshBeforeCommand,
|
|
295100
295164
|
spawnUpdateRefresh,
|
|
295101
295165
|
staleUpdateLockFile,
|
|
295102
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
|
|
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
|
|
|
@@ -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).
|
|
239
|
-
|
|
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).
|
|
271
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "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": "
|
|
85
|
+
"falconPackageHash": "e8a4d3bab63362f012425bda486538eb97562e07690370fa1c1aa1d6"
|
|
86
86
|
}
|