@wix/himalaya-cli 0.1047.0 → 0.1049.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/ts/src/define-app.d.ts
CHANGED
|
@@ -351,8 +351,9 @@ export interface AppConfig {
|
|
|
351
351
|
* dropping every rule on a release build, on BOTH native surfaces. Only iOS also
|
|
352
352
|
* DEBUG-gates its arming sites; Kotlin has no conditional compilation, so on Android
|
|
353
353
|
* `NavigationConfigStore` arms these rules from the served config in a release APK
|
|
354
|
-
* too.
|
|
355
|
-
*
|
|
354
|
+
* too. An OTA release (`himi push`, `release:build`) strips the block from its app-config
|
|
355
|
+
* (#3305), but the cold-start seed baked into a native binary still embeds it, so declare
|
|
356
|
+
* it only for rules you are willing to publish in a binary. Pinned by
|
|
356
357
|
* core/dev-server/tests/net-fake-release-guard-parity.test.ts.
|
|
357
358
|
*
|
|
358
359
|
* Shape mirrors `DevGatewayConfig` in
|
package/dist/cli.mjs
CHANGED
|
@@ -39514,7 +39514,8 @@ __export(build_exports2, {
|
|
|
39514
39514
|
snapshotTokens: () => snapshotTokens,
|
|
39515
39515
|
tokensSnapshotMessage: () => tokensSnapshotMessage,
|
|
39516
39516
|
withPinnedRelease: () => withPinnedRelease,
|
|
39517
|
-
withStoreNavBundle: () => withStoreNavBundle
|
|
39517
|
+
withStoreNavBundle: () => withStoreNavBundle,
|
|
39518
|
+
withoutDevOnlyAppConfig: () => withoutDevOnlyAppConfig
|
|
39518
39519
|
});
|
|
39519
39520
|
import { createHash as createHash19 } from "node:crypto";
|
|
39520
39521
|
import { readFileSync as readFileSync42, readdirSync as readdirSync21, existsSync as existsSync39 } from "node:fs";
|
|
@@ -39707,7 +39708,8 @@ function hydrationServices(tier5Dir, bundleName, input = {}) {
|
|
|
39707
39708
|
return js ? servicesFromBundleJs(js, input) : null;
|
|
39708
39709
|
}
|
|
39709
39710
|
function releaseIdFor(sha, content) {
|
|
39710
|
-
|
|
39711
|
+
if (sha === "dev") return contentReleaseId(content);
|
|
39712
|
+
return `${sha}-${contentReleaseId(content).slice(0, 12)}`;
|
|
39711
39713
|
}
|
|
39712
39714
|
function shellSha(root = REPO_ROOT7) {
|
|
39713
39715
|
if (!isMonorepoCheckout(root)) return "";
|
|
@@ -39802,6 +39804,17 @@ function linkableScreenIdsFrom(text5) {
|
|
|
39802
39804
|
}
|
|
39803
39805
|
return [...ids];
|
|
39804
39806
|
}
|
|
39807
|
+
function withoutDevOnlyAppConfig(text5) {
|
|
39808
|
+
let cfg;
|
|
39809
|
+
try {
|
|
39810
|
+
cfg = JSON.parse(text5);
|
|
39811
|
+
} catch {
|
|
39812
|
+
return text5;
|
|
39813
|
+
}
|
|
39814
|
+
if (!cfg || typeof cfg !== "object" || !("devGatewayConfig" in cfg)) return text5;
|
|
39815
|
+
delete cfg.devGatewayConfig;
|
|
39816
|
+
return JSON.stringify(cfg);
|
|
39817
|
+
}
|
|
39805
39818
|
function withProdServeAppConfig(text5, prod) {
|
|
39806
39819
|
if (!prod?.serve) return text5;
|
|
39807
39820
|
let cfg;
|
|
@@ -39823,7 +39836,8 @@ async function buildRelease(app, dest, opts = {}) {
|
|
|
39823
39836
|
const tier5Dir = hasBuiltBundles(loaded.dir) ? bundleOutDir(loaded.dir) : void 0;
|
|
39824
39837
|
return (await buildFromLoaded(loaded, dest, {
|
|
39825
39838
|
...tier5Dir ? { tier5Dir } : {},
|
|
39826
|
-
...opts.fetchFace ? { fetchFace: opts.fetchFace } : {}
|
|
39839
|
+
...opts.fetchFace ? { fetchFace: opts.fetchFace } : {},
|
|
39840
|
+
...opts.keepDevOnlyAppConfig ? { keepDevOnlyAppConfig: true } : {}
|
|
39827
39841
|
})).manifest;
|
|
39828
39842
|
}
|
|
39829
39843
|
function countingWixCall(base) {
|
|
@@ -40425,7 +40439,11 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
40425
40439
|
));
|
|
40426
40440
|
const cfgRes = await devFetch(`${base}/v1/app-config/${encodeURIComponent(app)}`, { headers: { "X-Himalaya-App": app } });
|
|
40427
40441
|
if (cfgRes.ok) {
|
|
40428
|
-
const
|
|
40442
|
+
const served = await cfgRes.text();
|
|
40443
|
+
const prodText = withProdServeAppConfig(
|
|
40444
|
+
opts.keepDevOnlyAppConfig ? served : withoutDevOnlyAppConfig(served),
|
|
40445
|
+
preloaded.module.config.environments?.prod
|
|
40446
|
+
);
|
|
40429
40447
|
const streamPolicyErrors = validateReleaseStreamPolicyConfig(prodText);
|
|
40430
40448
|
if (streamPolicyErrors.length) {
|
|
40431
40449
|
throw new Error(`invalid streamPolicy for release ${app}: ${streamPolicyErrors.join("; ")}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1049.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "c95290b16de4988ae26b00b5567d2d13083ad6c8c6b2f65c52d281a0"
|
|
69
69
|
}
|