@wix/himalaya-cli 0.1048.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.
@@ -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. Setting this block ships the fixtures on the production app-config payload
355
- * either way — declare it only for rules you are willing to publish. Pinned by
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
@@ -21498,7 +21498,6 @@ function shouldRevealError(args) {
21498
21498
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
21499
21499
  var init_validation = __esm({
21500
21500
  "../../core/ts/src/validation.ts"() {
21501
- "use strict";
21502
21501
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
21503
21502
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
21504
21503
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -25099,7 +25098,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
25099
25098
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
25100
25099
  var init_worker_subtree = __esm({
25101
25100
  "../../core/ts/src/worker-subtree.ts"() {
25102
- "use strict";
25103
25101
  init_worker_subtree_safe_types_generated();
25104
25102
  WORKER_SUBTREE_CEILINGS = Object.freeze({
25105
25103
  maxEncodedBytes: 65536,
@@ -39516,7 +39514,8 @@ __export(build_exports2, {
39516
39514
  snapshotTokens: () => snapshotTokens,
39517
39515
  tokensSnapshotMessage: () => tokensSnapshotMessage,
39518
39516
  withPinnedRelease: () => withPinnedRelease,
39519
- withStoreNavBundle: () => withStoreNavBundle
39517
+ withStoreNavBundle: () => withStoreNavBundle,
39518
+ withoutDevOnlyAppConfig: () => withoutDevOnlyAppConfig
39520
39519
  });
39521
39520
  import { createHash as createHash19 } from "node:crypto";
39522
39521
  import { readFileSync as readFileSync42, readdirSync as readdirSync21, existsSync as existsSync39 } from "node:fs";
@@ -39805,6 +39804,17 @@ function linkableScreenIdsFrom(text5) {
39805
39804
  }
39806
39805
  return [...ids];
39807
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
+ }
39808
39818
  function withProdServeAppConfig(text5, prod) {
39809
39819
  if (!prod?.serve) return text5;
39810
39820
  let cfg;
@@ -39826,7 +39836,8 @@ async function buildRelease(app, dest, opts = {}) {
39826
39836
  const tier5Dir = hasBuiltBundles(loaded.dir) ? bundleOutDir(loaded.dir) : void 0;
39827
39837
  return (await buildFromLoaded(loaded, dest, {
39828
39838
  ...tier5Dir ? { tier5Dir } : {},
39829
- ...opts.fetchFace ? { fetchFace: opts.fetchFace } : {}
39839
+ ...opts.fetchFace ? { fetchFace: opts.fetchFace } : {},
39840
+ ...opts.keepDevOnlyAppConfig ? { keepDevOnlyAppConfig: true } : {}
39830
39841
  })).manifest;
39831
39842
  }
39832
39843
  function countingWixCall(base) {
@@ -40428,7 +40439,11 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
40428
40439
  ));
40429
40440
  const cfgRes = await devFetch(`${base}/v1/app-config/${encodeURIComponent(app)}`, { headers: { "X-Himalaya-App": app } });
40430
40441
  if (cfgRes.ok) {
40431
- const prodText = withProdServeAppConfig(await cfgRes.text(), preloaded.module.config.environments?.prod);
40442
+ const served = await cfgRes.text();
40443
+ const prodText = withProdServeAppConfig(
40444
+ opts.keepDevOnlyAppConfig ? served : withoutDevOnlyAppConfig(served),
40445
+ preloaded.module.config.environments?.prod
40446
+ );
40432
40447
  const streamPolicyErrors = validateReleaseStreamPolicyConfig(prodText);
40433
40448
  if (streamPolicyErrors.length) {
40434
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.1048.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": "dc270534070a6b5e662ac7738098c1328a07b027779bddf2a5d71a20"
68
+ "falconPackageHash": "c95290b16de4988ae26b00b5567d2d13083ad6c8c6b2f65c52d281a0"
69
69
  }