@wix/himalaya-cli 0.1605.0 → 0.1607.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/cli.mjs +51 -39
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +6 -0
- package/guides/himi-test.md +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -183404,12 +183404,23 @@ function previewCredentialsJs(creds) {
|
|
|
183404
183404
|
function stripHandoverParamJs() {
|
|
183405
183405
|
return '(function(){window.__himalayaHandoverFailed__=true;try{var u=new URL(location.href);if(u.searchParams.has("h")){u.searchParams.delete("h");history.replaceState(null,"",u.pathname+u.search+u.hash)}}catch(e){}})();';
|
|
183406
183406
|
}
|
|
183407
|
+
function parserAssetRefs(html, nonce) {
|
|
183408
|
+
const js2 = (s2) => JSON.stringify(s2).replace(/</g, "\\u003c");
|
|
183409
|
+
return html.replace(/<script\b[^>]*>\s*<\/script>|<link\b[^>]*>/gi, (tag) => {
|
|
183410
|
+
const attr3 = /\b(?:src|href)=(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(tag);
|
|
183411
|
+
if (!attr3) return tag;
|
|
183412
|
+
const ref = attr3[1] ?? attr3[2] ?? attr3[3];
|
|
183413
|
+
if (!/^(?:\.\/)?assets\//.test(ref)) return tag;
|
|
183414
|
+
const start = attr3.index + attr3[0].indexOf(ref);
|
|
183415
|
+
return `<script nonce="${nonce}">document.write(${js2(tag.slice(0, start))}+new URL(${js2(ref)},document.baseURI).href+${js2(tag.slice(start + ref.length))})</script>`;
|
|
183416
|
+
});
|
|
183417
|
+
}
|
|
183407
183418
|
function indexHtml(asset, pathname, creds, handoverAttempted = false, allowWasm = false) {
|
|
183408
183419
|
void pathname;
|
|
183409
183420
|
const nonce = scriptNonce();
|
|
183410
183421
|
const raw = new TextDecoder().decode(assetBytes(asset));
|
|
183411
183422
|
const head3 = `<script nonce="${nonce}">${PREVIEW_BASE_JS}</script><script nonce="${nonce}">${PREVIEW_ENTRY_RECOVERY_JS}</script>` + (creds ? `<script nonce="${nonce}">${previewCredentialsJs(creds)}</script>` : handoverAttempted ? `<script nonce="${nonce}">${stripHandoverParamJs()}</script>` : "");
|
|
183412
|
-
const html = raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2").replace(/<head(\s[^>]*)?>/i, (tag) => `${tag}${head3}`);
|
|
183423
|
+
const html = parserAssetRefs(raw.replace(/(=|url\()(["']?)\/preview\//g, "$1$2"), nonce).replace(/<head(\s[^>]*)?>/i, (tag) => `${tag}${head3}`);
|
|
183413
183424
|
return new Response(html, {
|
|
183414
183425
|
status: 200,
|
|
183415
183426
|
// The shell only changes on an artifact deploy, and everything it loads is
|
|
@@ -183800,44 +183811,44 @@ var init_preview_assets_generated = __esm({
|
|
|
183800
183811
|
init_define_HHP_CATALOG();
|
|
183801
183812
|
init_preview_assets_format();
|
|
183802
183813
|
PREVIEW_ASSET_MANIFEST = [
|
|
183803
|
-
{ key: "assets/DashboardHost-
|
|
183804
|
-
{ key: "assets/DevDrawer-
|
|
183805
|
-
{ key: "assets/IdiomCompare-
|
|
183806
|
-
{ key: "assets/LightboxViewer-
|
|
183807
|
-
{ key: "assets/OfflineReadingBar-
|
|
183808
|
-
{ key: "assets/PhonePreviewControl-
|
|
183809
|
-
{ key: "assets/SchemeCompare-
|
|
183810
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
183814
|
+
{ key: "assets/DashboardHost-CJ5nUJvd.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2971, sha256: "2c79a4e0eebd2818290eddc68977b66f8b9c002ef5394da129b0c39c2241b146" },
|
|
183815
|
+
{ key: "assets/DevDrawer-D5vDBKOO.js", contentType: "application/javascript; charset=utf-8", offset: 2979, length: 16783, sha256: "cc7bea1bba3b1ca0b289ad2ba1f6cf707c9cb8b7b3793cd688d4f13b438161b0" },
|
|
183816
|
+
{ key: "assets/IdiomCompare-B_JqFhqI.js", contentType: "application/javascript; charset=utf-8", offset: 19762, length: 1926, sha256: "9a67e56e8be14212317c37ddbad01f45abc8d067035d36a7ac09ea9b18ed66a8" },
|
|
183817
|
+
{ key: "assets/LightboxViewer-DMmNCE-4.js", contentType: "application/javascript; charset=utf-8", offset: 21688, length: 8171, sha256: "741d887005f4ca57fb4eaf6d888928ac88e55c6c75822511e91d27696d697905" },
|
|
183818
|
+
{ key: "assets/OfflineReadingBar-B9oxjdFO.js", contentType: "application/javascript; charset=utf-8", offset: 29859, length: 1707, sha256: "29f6dcfe9ce5ca8895179480704a0c179f4bbdbe3450965acb7cda2c0fbb82e6" },
|
|
183819
|
+
{ key: "assets/PhonePreviewControl-C9x15i_a.js", contentType: "application/javascript; charset=utf-8", offset: 31566, length: 37768, sha256: "e4b919af05e8d6af965680b1bde5d22742075eef94b099a0c3cf7442fda1cb0d" },
|
|
183820
|
+
{ key: "assets/SchemeCompare-BF1gYB8o.js", contentType: "application/javascript; charset=utf-8", offset: 69334, length: 1858, sha256: "4338755b3c59a46715e28829f95bfa14d9c5c0671c98fc993777d78de97fdd8a" },
|
|
183821
|
+
{ key: "assets/WixFrogTelemetrySink-LsIa2qSg.js", contentType: "application/javascript; charset=utf-8", offset: 71192, length: 3165, sha256: "f20c33c7d781b52b677758aa9eab6b928a9c97265ddba5fcbd126116f792f5ed" },
|
|
183811
183822
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 74357, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
183812
|
-
{ key: "assets/files-transfer-
|
|
183823
|
+
{ key: "assets/files-transfer-DdfDiTU7.js", contentType: "application/javascript; charset=utf-8", offset: 76549, length: 6446, sha256: "71bc00e35b4e995994e4cb611cb8dd9736b78596f6fa3f6f2bf0dcd0b851ec0b" },
|
|
183813
183824
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 82995, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
183814
183825
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 89573, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
183815
|
-
{ key: "assets/index-
|
|
183816
|
-
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
183817
|
-
{ key: "assets/pdf-
|
|
183818
|
-
{ key: "assets/pdf.worker.min-
|
|
183819
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
183820
|
-
{ key: "assets/pdfDocument-
|
|
183821
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
183822
|
-
{ key: "assets/webviewBridgeHost-
|
|
183823
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
183824
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
183825
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
183826
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
183827
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
183828
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
183829
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
183830
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
183831
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
183832
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
183833
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
183834
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
183835
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
183836
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
183837
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
183838
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
183839
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
183840
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
183826
|
+
{ key: "assets/index-O9hDihry.js", contentType: "application/javascript; charset=utf-8", offset: 92277, length: 1495275, sha256: "65d5fb61d736220dffb2e31aa4eabbef963d5799fc346b8eeb11a53343071ea0" },
|
|
183827
|
+
{ key: "assets/jsx-runtime-CY_jTiqj.js", contentType: "application/javascript; charset=utf-8", offset: 1587552, length: 7624, sha256: "29dfba5b56f79a0b84d6b04d84d87617454baeba03c225f682ab2ab7ae2d5016" },
|
|
183828
|
+
{ key: "assets/pdf-VfhzBa6N.js", contentType: "application/javascript; charset=utf-8", offset: 1595176, length: 488215, sha256: "cef689a3d399e3c071f78bd48d66724f0564ea2614683378d74c2f6a6477e0d3" },
|
|
183829
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2083391, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
183830
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2083481, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
183831
|
+
{ key: "assets/pdfDocument-DNqUWMY0.js", contentType: "application/javascript; charset=utf-8", offset: 3400515, length: 3470, sha256: "285ae36db1d3af09cae93108278a83e2388d104aeb1317717ab0b223bac6e737" },
|
|
183832
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3403985, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
183833
|
+
{ key: "assets/webviewBridgeHost-DBpkiSiL.js", contentType: "application/javascript; charset=utf-8", offset: 3406251, length: 9888, sha256: "08c093827a52bdfc381ba0a73dc7a5d5ac6681637db4a8b57ab00aa0e4ab3f1f" },
|
|
183834
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3416139, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
183835
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3420749, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
183836
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3909333, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
183837
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4000257, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
183838
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4091241, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
183839
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4182221, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
183840
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4273093, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
183841
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4364073, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
183842
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4472709, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
183843
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4581793, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
183844
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4690841, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
183845
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4798541, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
183846
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4886649, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
183847
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4893467, length: 4924, sha256: "b314df7501aac4f7ef691f44e29e5bfa323924474d3e0d1fc566f7a2003a9e76" },
|
|
183848
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4898391, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
183849
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4909848, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
183850
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4911019, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
183851
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 4934066, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
|
|
183841
183852
|
];
|
|
183842
183853
|
}
|
|
183843
183854
|
});
|
|
@@ -206580,7 +206591,8 @@ function parseFlags(argv) {
|
|
|
206580
206591
|
} else {
|
|
206581
206592
|
const next = argv[i2 + 1];
|
|
206582
206593
|
const optionalNativeWithoutValue = a2 === "--native" && next !== "ios" && next !== "android";
|
|
206583
|
-
const
|
|
206594
|
+
const numericDepth = a2 === "--deep" && next !== void 0 && /^(?:[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|[+-]?Infinity|NaN)$/i.test(next);
|
|
206595
|
+
const booleanOnly = BOOLEAN_FLAGS.has(a2.slice(2)) && !numericDepth;
|
|
206584
206596
|
if (!optionalNativeWithoutValue && !booleanOnly && next !== void 0 && !next.startsWith("--")) {
|
|
206585
206597
|
assign(flags, a2.slice(2), next);
|
|
206586
206598
|
i2++;
|
|
@@ -209281,8 +209293,8 @@ async function testCommand(ctx) {
|
|
|
209281
209293
|
let deep;
|
|
209282
209294
|
if (flags.deep !== void 0) {
|
|
209283
209295
|
deep = flags.deep === true ? 3 : Number(str3(flags.deep));
|
|
209284
|
-
if (!Number.
|
|
209285
|
-
io2.error(JSON.stringify({ error: `--deep takes
|
|
209296
|
+
if (!Number.isInteger(deep) || deep < 2 || deep > 6) {
|
|
209297
|
+
io2.error(JSON.stringify({ code: "invalid_usage", error: `--deep takes an integer chain depth between 2 and 6 (got "${String(flags.deep)}") \u2014 bare --deep means 3` }));
|
|
209286
209298
|
return 2;
|
|
209287
209299
|
}
|
|
209288
209300
|
}
|
|
Binary file
|
|
@@ -87,6 +87,12 @@ The check reads built descriptors, not every possible runtime string. A passing
|
|
|
87
87
|
result does not verify dynamic live data, translations, branding images or device
|
|
88
88
|
appearance. It does not change publication or coverage policy.
|
|
89
89
|
|
|
90
|
+
## `himi test` depth codes
|
|
91
|
+
|
|
92
|
+
Invalid `--deep` values emit `code: "invalid_usage"` on stderr and exit 2.
|
|
93
|
+
Depth must be an integer from 2 through 6. A nonnumeric word after bare `--deep`
|
|
94
|
+
is a positional screen ID; use `--deep=<value>` to diagnose a nonnumeric depth.
|
|
95
|
+
|
|
90
96
|
## Push codes
|
|
91
97
|
|
|
92
98
|
| Code | Meaning |
|
package/guides/himi-test.md
CHANGED
|
@@ -478,7 +478,7 @@ behavior. This instruction does not add an automatic suppression or retry gate t
|
|
|
478
478
|
| `himi test` | The whole loop. Hermetic data + hostile passes. Exit 1 on any error. |
|
|
479
479
|
| `--json` | Machine envelope — the surface an agent reads. |
|
|
480
480
|
| `--content <dir>` | The content package to crawl (default: cwd). |
|
|
481
|
-
| `--deep [n]` | BFS over action chains (depth 3; range 2–6). Sequence-only bugs. |
|
|
481
|
+
| `--deep [n]` | BFS over action chains (default depth 3; integer range 2–6). Both `--deep 4` and `--deep=4` select depth 4; bare `--deep home` keeps `home` as a screen ID. To target a numeric screen ID, disambiguate with `--deep=3 4`. Sequence-only bugs. |
|
|
482
482
|
| `--record` | Refresh `dev/net-mocks.json` from live reads. QA site, read-path-only. |
|
|
483
483
|
| `--offline` | Strip every data layer — see the failure UI head-on. (Excludes `--net`.) |
|
|
484
484
|
| `--no-hostile` | Skip the empty-list / all-500 passes. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1607.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "b230bc30e5426a7d940322427945933c5d9d96b1e040600baa890de1"
|
|
76
76
|
}
|