@wix/himalaya-cli 0.1746.0 → 0.1747.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +5 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +0 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +0 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +0 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{d432d189310d8d819b56251c53dd82a9e166a4a73936749f08c355c11083e8e0.bin → 63821bbb8f637899037252154a5587f0596e4b537173c7f50551f9e44f7c22c0.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +78 -48
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/tier-5-add-a-screen.md +13 -6
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -29443,6 +29443,7 @@ var init_page_worker = __esm({
|
|
|
29443
29443
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
29444
29444
|
var init_icon_catalog_generated = __esm({
|
|
29445
29445
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
29446
|
+
"use strict";
|
|
29446
29447
|
init_define_HHP_CATALOG();
|
|
29447
29448
|
ICON_VIEW_BOX = 24;
|
|
29448
29449
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -38408,8 +38409,8 @@ function expandNavBundle(ref, ctx) {
|
|
|
38408
38409
|
};
|
|
38409
38410
|
}
|
|
38410
38411
|
function requiresAuthLinkableProblems(auth, linkables) {
|
|
38411
|
-
if (auth?.providerId) return [];
|
|
38412
|
-
return (linkables ?? []).filter((s5) => s5.requiresAuth === true).map((s5) => `linkable screen "${s5.screenId}" sets requiresAuth but the app has no auth block \u2014 the flag can never be satisfied, so its links open
|
|
38412
|
+
if (auth?.providerId && auth.providerId !== "none") return [];
|
|
38413
|
+
return (linkables ?? []).filter((s5) => s5.requiresAuth === true).map((s5) => `linkable screen "${s5.screenId}" sets requiresAuth but the app has no usable auth provider (no auth block, or providerId "none") \u2014 the flag can never be satisfied, so its links never open (they land on the tab root)`);
|
|
38413
38414
|
}
|
|
38414
38415
|
function servedLinkableScreens(app2) {
|
|
38415
38416
|
const concrete = app2.screenIds.map((screenId) => ({
|
|
@@ -39037,7 +39038,6 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
39037
39038
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
39038
39039
|
var init_idiom = __esm({
|
|
39039
39040
|
"../../core/ts/src/idiom.ts"() {
|
|
39040
|
-
"use strict";
|
|
39041
39041
|
init_define_HHP_CATALOG();
|
|
39042
39042
|
IDIOM_CONTEXTS = {
|
|
39043
39043
|
ios: { native: ["ios"] },
|
|
@@ -239560,52 +239560,52 @@ var init_preview_assets_generated = __esm({
|
|
|
239560
239560
|
init_define_HHP_CATALOG();
|
|
239561
239561
|
init_preview_assets_format();
|
|
239562
239562
|
PREVIEW_ASSET_MANIFEST = [
|
|
239563
|
-
{ key: "assets/DashboardHost-
|
|
239564
|
-
{ key: "assets/DevDrawer-
|
|
239565
|
-
{ key: "assets/IdiomCompare-
|
|
239566
|
-
{ key: "assets/LightboxViewer-
|
|
239567
|
-
{ key: "assets/OfflineReadingBar-
|
|
239568
|
-
{ key: "assets/PhonePreviewControl-
|
|
239569
|
-
{ key: "assets/SchemeCompare-
|
|
239570
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
239563
|
+
{ key: "assets/DashboardHost-LqUFts06.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "9740028219550df46ca6ddfe182d5ac5bb96e470b4be6d0f1fab15eb2f1cf077" },
|
|
239564
|
+
{ key: "assets/DevDrawer-jjuyeDLq.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "8ee6ea1b58dbb998e797ea91174694360e06b765edef40b7269db5821d961e0a" },
|
|
239565
|
+
{ key: "assets/IdiomCompare-CTXKt8xR.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "06cfe59a07a18c0dbd4702132a8861d7a7c6d7feaef5378b62ac2a1bd89c7f83" },
|
|
239566
|
+
{ key: "assets/LightboxViewer-C9Fxwtfi.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "be3abe77a7d41c254bb731a590b5d4e7954bb4b50abf898d852f244f96301897" },
|
|
239567
|
+
{ key: "assets/OfflineReadingBar-BPXqbkfY.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "b2e0c21fb6e95f961934fb471787210bb77bb2cc31cd35b1db8353b04504709c" },
|
|
239568
|
+
{ key: "assets/PhonePreviewControl-oDjeHH_N.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "f4817cf71bf7475e3416ff96813e295778a6b0c576825fed51fdc7c5c424f969" },
|
|
239569
|
+
{ key: "assets/SchemeCompare-B77v4Bn0.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "570cbf0ef5101952c06e895ba207c120937c799e9f46556e9f2fa40ed9fa518d" },
|
|
239570
|
+
{ key: "assets/WixFrogTelemetrySink-QUQmJXuj.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "17f0be4f8809ec53181af67d86e7116c0345a53f65e6216dfd0ccf4a4574dcfc" },
|
|
239571
239571
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
239572
239572
|
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
239573
|
-
{ key: "assets/catalogFontFaces-
|
|
239573
|
+
{ key: "assets/catalogFontFaces-DYq1OzHd.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "ee1d74e714facb66cc5ea1ed94189915d735712f6f70e02faa4adfcaa00cf8d9" },
|
|
239574
239574
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
239575
|
-
{ key: "assets/files-transfer-
|
|
239575
|
+
{ key: "assets/files-transfer-D5ft41FM.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "5cf95c7419243d3a10e5062bfbabeb2e74fcf496f612e8f1d1d28ca9ab7c5196" },
|
|
239576
239576
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
239577
|
-
{ key: "assets/frogApiRules-
|
|
239577
|
+
{ key: "assets/frogApiRules-KVdx_A63.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "837ecf4a48a604c9c04c9880f9c1eb2e556e41ecf04dce4fb4c3d6377c273c22" },
|
|
239578
239578
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
239579
239579
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
239580
239580
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
239581
|
-
{ key: "assets/index-
|
|
239582
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
239583
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
239584
|
-
{ key: "assets/pdf-
|
|
239585
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
239586
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
239587
|
-
{ key: "assets/pdfDocument-
|
|
239588
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
239589
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
239590
|
-
{ key: "assets/webviewBridgeHost-
|
|
239591
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
239592
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
239593
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
239594
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
239595
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
239596
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
239597
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
239598
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
239599
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
239600
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
239601
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
239602
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
239603
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
239604
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
239605
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
239606
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
239607
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
239608
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
239581
|
+
{ key: "assets/index-cD3Rxu9Y.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1584266, sha256: "80ac1f4af6ebc098d71de07dfe43d679ec4ce7ea0c33273d51839e9b4885df27" },
|
|
239582
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1720310, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
239583
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1728061, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
239584
|
+
{ key: "assets/pdf-BbqWwVme.js", contentType: "application/javascript; charset=utf-8", offset: 1738592, length: 488215, sha256: "63821bbb8f637899037252154a5587f0596e4b537173c7f50551f9e44f7c22c0" },
|
|
239585
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2226807, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
239586
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2226897, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
239587
|
+
{ key: "assets/pdfDocument-DN8b9b1V.js", contentType: "application/javascript; charset=utf-8", offset: 3543931, length: 3470, sha256: "80ecd574bdf888f13786e0af66f2f28167e6beb72d780d8345aa65b503822963" },
|
|
239588
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3547401, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
239589
|
+
{ key: "assets/scrollLinkedRuntime-DKc6KmJq.js", contentType: "application/javascript; charset=utf-8", offset: 3549667, length: 2278, sha256: "a3a7f4113ff811300dbb2db452f4f178dc9ae667ddf001dd5d2ffab2cd0e77f5" },
|
|
239590
|
+
{ key: "assets/webviewBridgeHost-Cs4YndeQ.js", contentType: "application/javascript; charset=utf-8", offset: 3551945, length: 9889, sha256: "49ad0943f37d8198ed06839eaff7b45d68cc202a74efd185e09f35684d6c1fc7" },
|
|
239591
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3561834, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
239592
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3566444, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
239593
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4055028, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
239594
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4145952, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
239595
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4236936, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
239596
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4327916, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
239597
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4418788, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
239598
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4509768, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
239599
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4618404, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
239600
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4727488, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
239601
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4836536, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
239602
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4944236, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
239603
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5032344, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
239604
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5039162, length: 4924, sha256: "23bc9444155c79554653ca47c71ad6f83c10c269eb7b00bcbc78789320a5c9ad" },
|
|
239605
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5044086, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
239606
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5055543, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
239607
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5056714, length: 24239, sha256: "42bd04b28606706389a6b3ab79b74f37259ab43bf66580d2d9c69be5980a53fe" },
|
|
239608
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5080953, length: 24256, sha256: "c14ee20bf56b80e2622177d34824b18f368c66faaffd7ea3aa9b07b60582411c" }
|
|
239609
239609
|
];
|
|
239610
239610
|
}
|
|
239611
239611
|
});
|
|
@@ -274950,6 +274950,19 @@ function playUploadUnsettled(record4, readAfterBuildEnded) {
|
|
|
274950
274950
|
const status = record4?.playInternal?.status;
|
|
274951
274951
|
return status === "UPLOADING" || (status === "READY_FOR_UPLOAD" || status === "WAITING_FOR_AAB") && !readAfterBuildEnded;
|
|
274952
274952
|
}
|
|
274953
|
+
function distJobOutcome(record4, readAfterBuildEnded = true) {
|
|
274954
|
+
const rec = record4 ?? {};
|
|
274955
|
+
const status = String(rec.status);
|
|
274956
|
+
if (!TERMINAL_DIST_STATUSES.has(status)) return "in_flight";
|
|
274957
|
+
if (status !== "SUCCESS") return "failed";
|
|
274958
|
+
if (customerUploadUnsettled(rec, readAfterBuildEnded)) return "in_flight";
|
|
274959
|
+
if (rec.customerAppStore?.status === "FAILED") return "failed";
|
|
274960
|
+
if (rec.playInternal !== void 0 && rec.playInternal?.status !== "UPLOADED") return "failed";
|
|
274961
|
+
return "succeeded";
|
|
274962
|
+
}
|
|
274963
|
+
function distStatusExitCode(readOk, record4) {
|
|
274964
|
+
return readOk && distJobOutcome(record4, false) !== "failed" ? 0 : 1;
|
|
274965
|
+
}
|
|
274953
274966
|
async function distCommand(ctx) {
|
|
274954
274967
|
const { io: io2, pos, flags, print, targetName: targetName2, client: client4, serveBase } = ctx;
|
|
274955
274968
|
const sub = pos[1];
|
|
@@ -275094,7 +275107,7 @@ ${label4}`);
|
|
|
275094
275107
|
if (r4.ok) await rememberLastDist([body]);
|
|
275095
275108
|
print(flags.json === true ? body : humanDistJob(body));
|
|
275096
275109
|
if (showDistQr && r4.ok) await printDistQrForJob(body, String(body.app ?? ""));
|
|
275097
|
-
return r4.ok
|
|
275110
|
+
return distStatusExitCode(r4.ok, r4.json);
|
|
275098
275111
|
}
|
|
275099
275112
|
if (sub === "watch") {
|
|
275100
275113
|
const jobId = pos[2];
|
|
@@ -275105,13 +275118,29 @@ ${label4}`);
|
|
|
275105
275118
|
const intervalMs2 = Number(str3(flags.interval)) || 2e4;
|
|
275106
275119
|
const deadline2 = Date.now() + (Number(str3(flags.timeout)) || 45 * 6e4);
|
|
275107
275120
|
let announced = false;
|
|
275121
|
+
let wixAuthorization2;
|
|
275122
|
+
let readAfterBuildEnded = false;
|
|
275108
275123
|
for (; ; ) {
|
|
275109
275124
|
let s5;
|
|
275110
275125
|
try {
|
|
275111
|
-
s5 = await c2.distStatus(jobId);
|
|
275126
|
+
s5 = await c2.distStatus(jobId, { wixAuthorization: wixAuthorization2 });
|
|
275112
275127
|
} catch (e2) {
|
|
275113
275128
|
return distUnreachable(e2);
|
|
275114
275129
|
}
|
|
275130
|
+
if (s5.ok && !wixAuthorization2 && customerUploadWaiting(s5.json)) {
|
|
275131
|
+
try {
|
|
275132
|
+
c2.assertWixAuthorizationTarget();
|
|
275133
|
+
wixAuthorization2 = await accountToken();
|
|
275134
|
+
} catch {
|
|
275135
|
+
}
|
|
275136
|
+
if (wixAuthorization2) {
|
|
275137
|
+
try {
|
|
275138
|
+
s5 = await c2.distStatus(jobId, { wixAuthorization: wixAuthorization2 });
|
|
275139
|
+
} catch (e2) {
|
|
275140
|
+
return distUnreachable(e2);
|
|
275141
|
+
}
|
|
275142
|
+
}
|
|
275143
|
+
}
|
|
275115
275144
|
if (!s5.ok) {
|
|
275116
275145
|
print({ status: s5.status, ...s5.json ?? {} });
|
|
275117
275146
|
return 1;
|
|
@@ -275133,12 +275162,14 @@ ${label4}`);
|
|
|
275133
275162
|
if (rec.buildUrl) io2.log(` log ${rec.buildUrl}`);
|
|
275134
275163
|
}
|
|
275135
275164
|
}
|
|
275136
|
-
|
|
275165
|
+
const outcome = distJobOutcome(rec, readAfterBuildEnded);
|
|
275166
|
+
if (TERMINAL_DIST_STATUSES.has(status)) readAfterBuildEnded = true;
|
|
275167
|
+
if (outcome !== "in_flight") {
|
|
275137
275168
|
const body = { status: s5.status, ...rec };
|
|
275138
275169
|
await rememberLastDist([body]);
|
|
275139
275170
|
print(flags.json === true ? body : humanDistJob(body));
|
|
275140
275171
|
if (showDistQr && status === "SUCCESS") await printDistQrForJob(body, String(rec.app ?? ""));
|
|
275141
|
-
return
|
|
275172
|
+
return outcome === "succeeded" ? 0 : 1;
|
|
275142
275173
|
}
|
|
275143
275174
|
if (Date.now() >= deadline2) {
|
|
275144
275175
|
print({ ok: false, error: "dist_watch_timeout", jobId, lastStatus: status });
|
|
@@ -275455,8 +275486,7 @@ ${label4}`);
|
|
|
275455
275486
|
}
|
|
275456
275487
|
}
|
|
275457
275488
|
await rememberLastDist(done);
|
|
275458
|
-
const
|
|
275459
|
-
const allOk = failures.length === 0 && done.every((d2) => d2.status === "SUCCESS") && !uploadFailed;
|
|
275489
|
+
const allOk = failures.length === 0 && done.every((d2) => distJobOutcome(d2) === "succeeded");
|
|
275460
275490
|
print({
|
|
275461
275491
|
ok: allOk,
|
|
275462
275492
|
jobs: flags.json === true ? done : done.map(humanDistJob),
|
|
Binary file
|
|
@@ -745,10 +745,14 @@ silent bootstrap (a restored session goes straight through, with no prompt), the
|
|
|
745
745
|
app's sign-in cover (its `gateScreenId` when set). Signing in applies the held link unchanged —
|
|
746
746
|
tab, parent chain, params; cancelling lands on the target's tab root and drops the link
|
|
747
747
|
(`nav_verb_dropped` / `auth_cancelled`). A second link while the sign-in is up replaces the first.
|
|
748
|
-
Signed in, or `requiresAuth` unset: nothing changes. The flag needs an `auth` block
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
748
|
+
Signed in, or `requiresAuth` unset: nothing changes. The flag needs an `auth` block with a real
|
|
749
|
+
provider. Without one — no `auth` block, `providerId: "none"`, or a shell that binds no gate —
|
|
750
|
+
nothing can sign the user in, so the link **fails closed**: it never opens, no sign-in is shown, the
|
|
751
|
+
target's tab (or the default tab) is selected at its root and the link is dropped
|
|
752
|
+
(`nav_verb_dropped` / `auth_unavailable`, plus a `[deep-link] refused requiresAuth screen …` line
|
|
753
|
+
in the device log). Serving the app's config logs a warning for that combination. iOS, Android and
|
|
754
|
+
macOS share this rule; no macOS shell binds a sign-in gate today, so on macOS a `requiresAuth` link
|
|
755
|
+
fails closed until a Mac shell sets `authGate`. The web host does not hold links yet. In-app navigation (`himi.open`,
|
|
752
756
|
`_nav`) is not gated: a screen the app itself opens is the app's own business.
|
|
753
757
|
|
|
754
758
|
A shell gets this through core: the coordinator asks the gate the shell's `AuthGateRoot` /
|
|
@@ -757,8 +761,11 @@ A shell gets this through core: the coordinator asks the gate the shell's `AuthG
|
|
|
757
761
|
- **Read the live config.** Build the coordinator with `configProvider:` (read at every apply),
|
|
758
762
|
not a `config:` snapshot — a snapshot taken before the OTA config is cached (a clean install)
|
|
759
763
|
has no linkables, so no `requiresAuth` either.
|
|
760
|
-
- **Bind the gate early.** A
|
|
761
|
-
|
|
764
|
+
- **Bind the gate early.** A held link waits up to the provider-bind window (10 s) for a gate to be
|
|
765
|
+
bound, then fails closed. A shell that can receive a link before that root has drawn (a cold
|
|
766
|
+
start) sets `coordinator.authGate = <its SessionGate>` where it builds the coordinator. A shell
|
|
767
|
+
that never mounts `AuthGateRoot` / `AuthSignInCover` has no sign-in a link can wait on, so its
|
|
768
|
+
`requiresAuth` links never open — mount one to have them open for a signed-in user.
|
|
762
769
|
- **Mark the bootstrap.** Call `sessionGate.markSilentBootstrapSettled()` once its
|
|
763
770
|
`provider.bootstrap()` returns. Until then a held link waits (a provider not bound yet is
|
|
764
771
|
waited for too, never read as "no auth"); a shell that never marks it waits a short grace
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1747.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": "95ecf8ee71d4db266635db569ee781da361cd946869400588d87291c"
|
|
86
86
|
}
|