@wix/himalaya-cli 0.946.0 → 0.947.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +15 -0
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -18546,6 +18546,7 @@ function shouldRevealError(args) {
18546
18546
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
18547
18547
  var init_validation = __esm({
18548
18548
  "../../core/ts/src/validation.ts"() {
18549
+ "use strict";
18549
18550
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
18550
18551
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
18551
18552
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -21969,6 +21970,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
21969
21970
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
21970
21971
  var init_worker_subtree = __esm({
21971
21972
  "../../core/ts/src/worker-subtree.ts"() {
21973
+ "use strict";
21972
21974
  init_worker_subtree_safe_types_generated();
21973
21975
  WORKER_SUBTREE_CEILINGS = Object.freeze({
21974
21976
  maxEncodedBytes: 65536,
@@ -55605,6 +55607,17 @@ var TERMINAL_DIST_STATUSES = /* @__PURE__ */ new Set([
55605
55607
  "BLOCKED",
55606
55608
  "STATUS_UNKNOWN"
55607
55609
  ]);
55610
+ function shellShaDivergenceWarnings(jobs) {
55611
+ const seen = /* @__PURE__ */ new Map();
55612
+ for (const j of jobs) {
55613
+ const release = typeof j.release === "string" ? j.release : void 0;
55614
+ const built = typeof j.gitCommitSha === "string" ? j.gitCommitSha : void 0;
55615
+ if (j.shellShaSource === "release" && release && built && release !== built) seen.set(release, built);
55616
+ }
55617
+ return [...seen].map(
55618
+ ([release, built]) => `\u26A0 this build compiles the native shell at ${built.slice(0, 12)}, not release ${release.slice(0, 12)} \u2014 the release was pushed from a branch whose HEAD is not on the default branch, so the Mac pool checks out the nearest default-branch ancestor. A native-shell or tools/mobile-dist/** change on that branch is NOT in this binary even if the job reports SUCCESS; re-push from a checkout whose HEAD is on origin/master to validate it.`
55619
+ );
55620
+ }
55608
55621
  function materializeForPreview(appDir2, slug, displayName) {
55609
55622
  if (!isTemplateSourceTree(appDir2)) return appDir2;
55610
55623
  const files = readTemplateFiles(appDir2);
@@ -59819,6 +59832,7 @@ ${label2}`);
59819
59832
  return 1;
59820
59833
  }
59821
59834
  const jobs = r.json?.jobs ?? [];
59835
+ for (const line of shellShaDivergenceWarnings(jobs)) (flags.json === true ? io.error : io.log)(line);
59822
59836
  const noWait = flags["no-wait"] === true || flags.wait === false;
59823
59837
  if (noWait) {
59824
59838
  print({ status: r.status, ...r.json ?? {} });
@@ -60758,6 +60772,7 @@ export {
60758
60772
  serveUnreachableError,
60759
60773
  serveUnreachableHint,
60760
60774
  servesAll,
60775
+ shellShaDivergenceWarnings,
60761
60776
  switchFlagErrors,
60762
60777
  templatePreviewAuthError,
60763
60778
  tokenCoversApp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.946.0",
3
+ "version": "0.947.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": [
@@ -64,5 +64,5 @@
64
64
  "artifactId": "himalaya-cli"
65
65
  }
66
66
  },
67
- "falconPackageHash": "3f6060102b6c94b2c8e6ed84fd14f6c0e0091b8c611331ef95f97e2a"
67
+ "falconPackageHash": "e6f6c45f77b9ba2728e1098c0c46b7d7eb3e6fb922394d52a0797dd7"
68
68
  }