@wix/himalaya-cli 0.1606.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 CHANGED
@@ -15065,6 +15065,7 @@ function webViewOriginAllowed(url, origins) {
15065
15065
  }
15066
15066
  var init_webview_origin = __esm({
15067
15067
  "../../core/ts/src/webview-origin.ts"() {
15068
+ "use strict";
15068
15069
  init_define_HHP_CATALOG();
15069
15070
  }
15070
15071
  });
@@ -206590,7 +206591,8 @@ function parseFlags(argv) {
206590
206591
  } else {
206591
206592
  const next = argv[i2 + 1];
206592
206593
  const optionalNativeWithoutValue = a2 === "--native" && next !== "ios" && next !== "android";
206593
- const booleanOnly = BOOLEAN_FLAGS.has(a2.slice(2));
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;
206594
206596
  if (!optionalNativeWithoutValue && !booleanOnly && next !== void 0 && !next.startsWith("--")) {
206595
206597
  assign(flags, a2.slice(2), next);
206596
206598
  i2++;
@@ -209291,8 +209293,8 @@ async function testCommand(ctx) {
209291
209293
  let deep;
209292
209294
  if (flags.deep !== void 0) {
209293
209295
  deep = flags.deep === true ? 3 : Number(str3(flags.deep));
209294
- if (!Number.isFinite(deep) || deep < 2 || deep > 6) {
209295
- io2.error(JSON.stringify({ error: `--deep takes a chain depth between 2 and 6 (got "${String(flags.deep)}") \u2014 bare --deep means 3` }));
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` }));
209296
209298
  return 2;
209297
209299
  }
209298
209300
  }
@@ -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 |
@@ -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.1606.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": "d39364e0b5bb8ee230970f6ee80476f872e1b56e4cccfe4d76dbc4c3"
75
+ "falconPackageHash": "b230bc30e5426a7d940322427945933c5d9d96b1e040600baa890de1"
76
76
  }