@wix/himalaya-cli 0.1429.0 → 0.1430.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
@@ -7538,6 +7538,184 @@ var init_app_assets = __esm({
7538
7538
  }
7539
7539
  });
7540
7540
 
7541
+ // ../../core/ts/src/worker-console.ts
7542
+ function freshNoopWorkerConsole() {
7543
+ return Object.fromEntries(WORKER_CONSOLE_METHODS.map((m2) => [m2, () => {
7544
+ }]));
7545
+ }
7546
+ var WORKER_CONSOLE_SOURCE, WORKER_CONSOLE_METHODS, noopWorkerConsole;
7547
+ var init_worker_console = __esm({
7548
+ "../../core/ts/src/worker-console.ts"() {
7549
+ WORKER_CONSOLE_SOURCE = `// ------------------------------------------------------------ console (#4546)
7550
+ (function () {
7551
+ "use strict";
7552
+ var base = typeof console !== "undefined" ? console : undefined;
7553
+ if (base && base.__himalayaConsole === true) return;
7554
+ var bridge = typeof __himalaya_native_console === "function";
7555
+ if (!base && !bridge) return;
7556
+ var replace = bridge || base.__himalayaSink === true;
7557
+ var NL = String.fromCharCode(10), out = Object.create(null);
7558
+ ["log", "info", "warn", "error", "debug"].forEach(function (l) {
7559
+ var f = base ? base[l] : undefined;
7560
+ out[l] = typeof f === "function" ? f.bind(base) : null;
7561
+ });
7562
+ var only = typeof __himalaya_console_frames === "string" ? __himalaya_console_frames : "";
7563
+ var now = typeof __himalaya_console_now === "function" ? __himalaya_console_now : function () { return Date.now(); };
7564
+ function sink(level, msg) {
7565
+ try {
7566
+ if (typeof __himalaya_native_console === "function") return void __himalaya_native_console(level, msg);
7567
+ var f = out[level] || out.log;
7568
+ if (f) f(msg);
7569
+ } catch (e) {}
7570
+ }
7571
+ var depth = 0, timers = Object.create(null), counts = Object.create(null);
7572
+ var v8 = typeof Error.captureStackTrace === "function";
7573
+ function frames(s, name, message) {
7574
+ if (s.indexOf(" at ") === 0) return s;
7575
+ var head = name + (message ? ": " + message : "");
7576
+ if (s === head) return "";
7577
+ if (s.indexOf(head + NL + " at ") === 0) return s.slice(head.length + 1);
7578
+ var k = s.indexOf(NL + " at ");
7579
+ if (k >= 0) return s.slice(k + 1);
7580
+ if (!v8) return s;
7581
+ var first = s.split(NL)[0], c = first.indexOf(":"), id = c >= 0 ? first.slice(0, c) : first;
7582
+ var m = /^[A-Za-z_][A-Za-z0-9_]*/.exec(id);
7583
+ return m && m[0] === id ? "" : s;
7584
+ }
7585
+ function fnName(l) {
7586
+ var t = l.trim();
7587
+ if (t.indexOf("at ") === 0) t = t.slice(3);
7588
+ t = t.split(/[ @(]/)[0];
7589
+ return t.slice(t.lastIndexOf(".") + 1);
7590
+ }
7591
+ function clean(lines) {
7592
+ if (only) lines = lines.filter(function (l) { return l.indexOf(only) >= 0; });
7593
+ if (lines.length > 10) lines = lines.slice(0, 10).concat([" ... " + (lines.length - 10) + " more"]);
7594
+ return lines.join(NL);
7595
+ }
7596
+ function fmt(a) {
7597
+ try {
7598
+ if (typeof a === "string") return a;
7599
+ var tag = Object.prototype.toString.call(a);
7600
+ if (tag === "[object Error]" || tag === "[object DOMException]") {
7601
+ var s = frames(a.stack ? String(a.stack).trimEnd() : "", String(a.name), String(a.message));
7602
+ s = s ? clean(s.split(NL)) : "";
7603
+ return a.name + ": " + a.message + (s ? NL + s : "");
7604
+ }
7605
+ var j = JSON.stringify(a);
7606
+ return j === undefined ? String(a) : j;
7607
+ } catch (e) {
7608
+ try { return String(a); } catch (e2) { return "[unprintable]"; }
7609
+ }
7610
+ }
7611
+ function text(args) { return Array.prototype.map.call(args, fmt).join(" "); }
7612
+ function send(level, msg) {
7613
+ var pad = " ".repeat(depth);
7614
+ sink(level, pad + msg.split(NL).join(NL + pad));
7615
+ }
7616
+ function emit(level, args) { send(level, text(args)); }
7617
+ function mk(level) { return function () { emit(level, arguments); }; }
7618
+ function first(level) { return function (a) { emit(level, [a]); }; }
7619
+ function rest(args, n) { return Array.prototype.slice.call(args, n); }
7620
+ function label(l) {
7621
+ if (l === undefined) return "default";
7622
+ try { return String(l); } catch (e) { return fmt(l); }
7623
+ }
7624
+ function missing(kind, l) { emit("warn", [kind + " '" + l + "' does not exist"]); }
7625
+ function ms(l) { return l + ": " + (now() - timers[l]) + "ms"; }
7626
+ var c = {
7627
+ log: mk("log"), info: mk("info"), warn: mk("warn"), error: mk("error"), debug: mk("debug"),
7628
+ dir: first("log"), table: first("log"), dirxml: mk("log"),
7629
+ assert: function (cond) {
7630
+ if (cond) return;
7631
+ var a = rest(arguments, 1);
7632
+ if (typeof a[0] === "string") a[0] = "Assertion failed: " + a[0];
7633
+ else a.unshift("Assertion failed");
7634
+ emit("error", a);
7635
+ },
7636
+ trace: function himalayaConsoleTrace() {
7637
+ var s = "";
7638
+ try { s = frames(String(new Error().stack || "").trimEnd(), "Error"); } catch (e) {}
7639
+ var lines = s ? s.split(NL) : [];
7640
+ while (lines.length) {
7641
+ var n = fnName(lines[0]);
7642
+ if (n !== "himalayaConsoleTrace" && n !== "himalayaConsoleGuard" && lines[0].indexOf("(native)") < 0 && lines[0].indexOf("[native code]") < 0) break;
7643
+ lines.shift();
7644
+ }
7645
+ s = clean(lines);
7646
+ send("log", text(["Trace:"].concat(rest(arguments, 0))) + (s ? NL + s : ""));
7647
+ },
7648
+ groupEnd: function () { if (depth > 0) depth--; },
7649
+ time: function (l) {
7650
+ l = label(l);
7651
+ if (l in timers) return emit("warn", ["Timer '" + l + "' already exists"]);
7652
+ timers[l] = now();
7653
+ },
7654
+ timeLog: function (l) {
7655
+ l = label(l);
7656
+ if (!(l in timers)) return missing("Timer", l);
7657
+ emit("log", [ms(l)].concat(rest(arguments, 1)));
7658
+ },
7659
+ timeEnd: function (l) {
7660
+ l = label(l);
7661
+ if (!(l in timers)) return missing("Timer", l);
7662
+ emit("log", [ms(l)]);
7663
+ delete timers[l];
7664
+ },
7665
+ count: function (l) {
7666
+ l = label(l);
7667
+ counts[l] = (counts[l] || 0) + 1;
7668
+ emit("log", [l + ": " + counts[l]]);
7669
+ },
7670
+ countReset: function (l) {
7671
+ l = label(l);
7672
+ if (!(l in counts)) return missing("Count for", l);
7673
+ counts[l] = 0;
7674
+ },
7675
+ };
7676
+ c.group = c.groupCollapsed = function () {
7677
+ if (arguments.length) emit("log", arguments);
7678
+ depth++;
7679
+ };
7680
+ var target = replace ? {} : base;
7681
+ Object.keys(c).forEach(function (k) {
7682
+ if (!replace && typeof base[k] === "function") return;
7683
+ var f = c[k];
7684
+ try { target[k] = function himalayaConsoleGuard() { try { return f.apply(c, arguments); } catch (e) {} }; } catch (e) {}
7685
+ });
7686
+ try { Object.defineProperty(target, "__himalayaConsole", { value: true }); } catch (e) {}
7687
+ if (replace || globalThis.console !== target) {
7688
+ try { globalThis.console = target; } catch (e) {}
7689
+ }
7690
+ })();
7691
+ `;
7692
+ WORKER_CONSOLE_METHODS = [
7693
+ "log",
7694
+ "info",
7695
+ "warn",
7696
+ "error",
7697
+ "debug",
7698
+ "assert",
7699
+ "trace",
7700
+ "table",
7701
+ "dir",
7702
+ "dirxml",
7703
+ "group",
7704
+ "groupCollapsed",
7705
+ "groupEnd",
7706
+ "time",
7707
+ "timeLog",
7708
+ "timeEnd",
7709
+ "count",
7710
+ "countReset"
7711
+ ];
7712
+ noopWorkerConsole = Object.freeze(
7713
+ Object.fromEntries(WORKER_CONSOLE_METHODS.map((m2) => [m2, Object.freeze(() => {
7714
+ })]))
7715
+ );
7716
+ }
7717
+ });
7718
+
7541
7719
  // ../../core/ts/src/tokens.ts
7542
7720
  function tonalElevationAlpha(level) {
7543
7721
  if (typeof level !== "number" || !Number.isFinite(level)) return 0;
@@ -10461,6 +10639,43 @@ function makeInert() {
10461
10639
  });
10462
10640
  return inert;
10463
10641
  }
10642
+ function withWorkerConsole(base, capture, now) {
10643
+ if (!capture) return freshNoopWorkerConsole();
10644
+ const sinkBase = { ...base, __himalayaSink: true };
10645
+ const scope = { console: sinkBase };
10646
+ try {
10647
+ new Function("globalThis", "console", "__himalaya_console_frames", "__himalaya_console_now", WORKER_CONSOLE_SOURCE)(
10648
+ scope,
10649
+ sinkBase,
10650
+ BUNDLE_FILENAME,
10651
+ now
10652
+ );
10653
+ } catch {
10654
+ const fmt = (a2) => {
10655
+ if (typeof a2 === "string") return a2;
10656
+ try {
10657
+ const j2 = safeStringify(a2);
10658
+ return j2 === void 0 ? String(a2) : j2;
10659
+ } catch {
10660
+ try {
10661
+ return String(a2);
10662
+ } catch {
10663
+ return "[unprintable]";
10664
+ }
10665
+ }
10666
+ };
10667
+ return Object.fromEntries(
10668
+ ["log", "info", "warn", "error", "debug"].map((level) => [
10669
+ level,
10670
+ (...args) => base[level](args.map(fmt).join(" "))
10671
+ ])
10672
+ );
10673
+ }
10674
+ return scope.console;
10675
+ }
10676
+ function pinnedNow(clock) {
10677
+ return clock === void 0 ? void 0 : () => Number(clock);
10678
+ }
10464
10679
  function runBundleSandbox(bundleJs, opts) {
10465
10680
  const services = {};
10466
10681
  const actions = {};
@@ -10488,20 +10703,14 @@ function runBundleSandbox(bundleJs, opts) {
10488
10703
  get: (t2, prop) => prop in t2 ? t2[prop] : inert
10489
10704
  });
10490
10705
  const mkConsole = () => {
10491
- if (!opts.captureConsole) return { log() {
10492
- }, warn() {
10493
- }, error() {
10494
- }, info() {
10495
- }, debug() {
10496
- } };
10497
- const sink = (level) => (...args) => {
10498
- consoleLines.push({ level, message: args.map((a2) => typeof a2 === "string" ? a2 : safeStringify(a2)).join(" ") });
10706
+ const sink = (level) => (message) => {
10707
+ consoleLines.push({ level, message: String(message) });
10499
10708
  };
10500
10709
  return { log: sink("log"), warn: sink("warn"), error: sink("error"), info: sink("info"), debug: sink("debug") };
10501
10710
  };
10502
10711
  const sandbox = {
10503
10712
  himalaya,
10504
- console: mkConsole(),
10713
+ console: opts.captureConsole ? withWorkerConsole(mkConsole(), true, pinnedNow(opts.clock)) : freshNoopWorkerConsole(),
10505
10714
  // #447 — a raw `fetch` at boot is a SIGNAL, not a silent hang. It used to return
10506
10715
  // a never-resolving promise, so a real-data worker rendered empty AND validated
10507
10716
  // clean. Throw synchronously so the boot dry-run surfaces an actionable error
@@ -10776,12 +10985,9 @@ async function bootBundleWorker(bundleJs, opts) {
10776
10985
  const sandbox = {
10777
10986
  himalaya,
10778
10987
  globalThis: void 0,
10779
- console: { log() {
10780
- }, warn() {
10781
- }, error() {
10782
- }, info() {
10783
- }, debug() {
10784
- } },
10988
+ // A fresh, writable copy of the shared frozen no-op console (#4546): a bundle may patch its
10989
+ // console, as it can on every device, without touching any other run.
10990
+ console: freshNoopWorkerConsole(),
10785
10991
  // A raw fetch is still a signal, not a silent hang (mirrors runBundleSandbox). Under
10786
10992
  // deviceParity it is ABSENT instead, as on every device (#4499 — DEVICE_NETWORK_WITHHELD).
10787
10993
  ...opts.deviceParity ? {} : {
@@ -12696,7 +12902,7 @@ function validateScreenDescriptor(screenId, descriptor, opts = {}) {
12696
12902
  services: Object.keys(services)
12697
12903
  };
12698
12904
  }
12699
- var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, BUTTON_STYLES, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
12905
+ var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, BUNDLE_FILENAME, DRIFT_PROBES, DEVICE_NETWORK_WITHHELD, DEVICE_STRIPPED_HOST_GLOBALS, DEVICE_WITHHELD, DEVICE_PARITY_CANDIDATES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, UNSAFE_TO_RECURSE_DEPTH, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, BUTTON_STYLES, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
12700
12906
  var init_validate_descriptor_core = __esm({
12701
12907
  "../../core/dev-server/src/validate-descriptor.core.ts"() {
12702
12908
  init_validator();
@@ -12711,6 +12917,7 @@ var init_validate_descriptor_core = __esm({
12711
12917
  init_media_value();
12712
12918
  init_frame_limits();
12713
12919
  init_rich_content();
12920
+ init_worker_console();
12714
12921
  init_depth_budget();
12715
12922
  init_raw_json_depth();
12716
12923
  init_realm_parity();
@@ -12729,6 +12936,7 @@ var init_validate_descriptor_core = __esm({
12729
12936
  "depth-budget"
12730
12937
  ]);
12731
12938
  BOOT_EVAL_TIMEOUT_MS = 2e3;
12939
+ BUNDLE_FILENAME = "himi-bundle.js";
12732
12940
  DRIFT_PROBES = [
12733
12941
  { clock: Date.UTC(2020, 0, 1, 12, 0, 0, 0), seed: 1 },
12734
12942
  // a Wednesday, the 1st/2nd, everywhere in -11h…+14h
@@ -13839,12 +14047,11 @@ async function loadContainedDevModule(name, entry, dir) {
13839
14047
  crossed[service] = def;
13840
14048
  }
13841
14049
  },
13842
- console: { log() {
13843
- }, warn() {
13844
- }, error() {
13845
- }, info() {
13846
- }, debug() {
13847
- } }
14050
+ // #4546 — every method a device worker console has, as no-ops: a bundle calling console.group
14051
+ // or console.time must not fail here when it works on every phone, web host and wrist.
14052
+ // A fresh, writable copy of the shared frozen no-op console (#4546): a bundle may patch its
14053
+ // console, as it can on every device, without touching any other run.
14054
+ console: freshNoopWorkerConsole()
13848
14055
  };
13849
14056
  const hostRefusals = [];
13850
14057
  const refuseHost = (capability, detail) => {
@@ -13991,6 +14198,7 @@ var TIER5_ROOT, CONTAINED_DEV_BOOT_TIMEOUT_MS, CONTAINED_DEV_CALL_TIMEOUT_MS, MA
13991
14198
  var init_contained_dev_module = __esm({
13992
14199
  "../../core/dev-server/src/contained-dev-module.ts"() {
13993
14200
  init_app_assets();
14201
+ init_worker_console();
13994
14202
  init_tier5_dir();
13995
14203
  TIER5_ROOT = resolve13(fileURLToPath6(new URL("../tier5-bundles", import.meta.url)));
13996
14204
  CONTAINED_DEV_BOOT_TIMEOUT_MS = 2e4;
@@ -16474,21 +16682,25 @@ ${opts.liveTransport ? ` var handle = { getState: function () { return def
16474
16682
  get: function (t, p) { return (p in t) ? t[p] : inert; },
16475
16683
  });
16476
16684
 
16477
- ${opts.captureConsole ? `var sink = function (level) { return function () {
16478
- var a = Array.prototype.slice.call(arguments);
16479
- var msg = a.map(function (x) {
16480
- return typeof x === "string" ? x : (function () { try { return stringify(x); } catch (e) { return String(x); } })();
16481
- }).join(" ");
16685
+ ${opts.captureConsole ? `// A capture SINK (#4546): the worker console installed below formats each call to ONE line
16686
+ // and hands it here, so this records a single preformatted message.
16687
+ var sink = function (level) { return function (message) {
16482
16688
  // Appended as finished JSON for the same reason the envelope is: an array handed to
16483
16689
  // \`stringify\` at readback would consult \`Array.prototype.toJSON\`, and captured lines
16484
16690
  // would vanish. \`line\` inherits nothing, so there is no \`toJSON\` to find on it either.
16485
16691
  var line = Object.create(null);
16486
16692
  line.level = level;
16487
- line.message = msg;
16693
+ line.message = String(message);
16488
16694
  consoleJson += (consoleJson ? "," : "") + stringify(line);
16489
16695
  }; };
16490
- globalThis.console = { log: sink("log"), warn: sink("warn"), error: sink("error"), info: sink("info"), debug: sink("debug") };` : `var noop = function () {};
16491
- globalThis.console = { log: noop, warn: noop, error: noop, info: noop, debug: noop };`}
16696
+ globalThis.console = { log: sink("log"), warn: sink("warn"), error: sink("error"), info: sink("info"), debug: sink("debug"), __himalayaSink: true };
16697
+ // Keep only the bundle's own frames in a logged Error (deterministic, no realm internals).
16698
+ var __himalaya_console_frames = ${JSON.stringify(BUNDLE_FILENAME2)};
16699
+ ${WORKER_CONSOLE_SOURCE}` : `// #4546 \u2014 every method a device worker console has, each a no-op that never inspects its
16700
+ // arguments (the guest's twin of the host's noopWorkerConsole, built from the same method
16701
+ // list). Not frozen: each run gets a fresh guest, so there is nothing to share or protect.
16702
+ var noop = function () {};
16703
+ globalThis.console = ${JSON.stringify(WORKER_CONSOLE_METHODS)}.reduce(function (c, m) { c[m] = noop; return c; }, {});`}
16492
16704
 
16493
16705
  globalThis.fetch = function () {
16494
16706
  throw new Error("\`fetch\` is not available in the author-time sandbox \u2014 workers load data via the sanctioned Wix transport (\`@himalaya/wix-*\` or \`globalThis.himalaya.wixApi.call\`), not raw \`fetch\`.");
@@ -16748,14 +16960,16 @@ function copyBack(ctx, sandbox, readback) {
16748
16960
  for (const line of lines) consoleObj?.[line.level]?.(line.message);
16749
16961
  }
16750
16962
  }
16751
- var RECYCLE_AFTER_BLOWUPS, DEFAULT_MEMORY_LIMIT_BYTES, ReadbackFailure, RecyclingModulePool, pool, variantPools, modulesCreated, installPromise;
16963
+ var BUNDLE_FILENAME2, RECYCLE_AFTER_BLOWUPS, DEFAULT_MEMORY_LIMIT_BYTES, ReadbackFailure, RecyclingModulePool, pool, variantPools, modulesCreated, installPromise;
16752
16964
  var init_quickjs_evaluator = __esm({
16753
16965
  "../../core/dev-server/src/quickjs-evaluator.ts"() {
16754
16966
  init_quickjs_intl();
16967
+ init_worker_console();
16755
16968
  init_quickjs_state_codec();
16756
16969
  init_quickjs_web_globals();
16757
16970
  init_realm_parity();
16758
16971
  init_validate_descriptor_core();
16972
+ BUNDLE_FILENAME2 = "himi-bundle.js";
16759
16973
  RECYCLE_AFTER_BLOWUPS = 1;
16760
16974
  DEFAULT_MEMORY_LIMIT_BYTES = 128 * 1024 * 1024;
16761
16975
  ReadbackFailure = class extends Error {
@@ -131817,12 +132031,11 @@ function runProduce(evaluator, bundleJs, timeoutMs, clock) {
131817
132031
  const sandbox = {
131818
132032
  himalaya: new Proxy(himalayaTarget, { get: (t2, prop) => prop in t2 ? t2[prop] : inert }),
131819
132033
  globalThis: void 0,
131820
- console: { log() {
131821
- }, warn() {
131822
- }, error() {
131823
- }, info() {
131824
- }, debug() {
131825
- } },
132034
+ // #4546 — every method a device worker console has, as no-ops: a bundle calling console.group
132035
+ // or console.time must not fail here when it works on every phone, web host and wrist.
132036
+ // A fresh, writable copy of the shared frozen no-op console (#4546): a bundle may patch its
132037
+ // console, as it can on every device, without touching any other run.
132038
+ console: freshNoopWorkerConsole(),
131826
132039
  // #447 — throw (don't hang) so a widget worker that fetches at produce time gets
131827
132040
  // a clear signal instead of silently rendering an empty/frozen snapshot.
131828
132041
  fetch: () => {
@@ -132110,6 +132323,7 @@ var init_widgets = __esm({
132110
132323
  "../../core/dev-server/src/widgets.ts"() {
132111
132324
  init_validator();
132112
132325
  init_preview_surfaces();
132326
+ init_worker_console();
132113
132327
  MAX_TIMELINE_FRAMES = 48;
132114
132328
  WIDGET_BUDGET_MS = 5e3;
132115
132329
  realmPromise = null;
@@ -159970,32 +160184,32 @@ var init_preview_assets_generated = __esm({
159970
160184
  "../../packages/serve/src/preview-assets.generated.ts"() {
159971
160185
  init_preview_assets_format();
159972
160186
  PREVIEW_ASSET_MANIFEST = [
159973
- { key: "assets/DashboardHost-DAO-rMWL.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2916, sha256: "2d1247adf113161d444c1a0e22cb04c9d83e603332fec188b2f642b403d0c7a7" },
159974
- { key: "assets/DevDrawer-D_q_fays.js", contentType: "application/javascript; charset=utf-8", offset: 2924, length: 16744, sha256: "64098416ad161eb06f7d03ce0fef4f1767dea86eddcd96b7b4575f16b0d5f076" },
159975
- { key: "assets/IdiomCompare-Bd-HANgZ.js", contentType: "application/javascript; charset=utf-8", offset: 19668, length: 1892, sha256: "09566d576783834c9fa3d53ed237ee3b0c5190c883af134346a8e2be49a77dcd" },
159976
- { key: "assets/LightboxViewer-CVRTkaYU.js", contentType: "application/javascript; charset=utf-8", offset: 21560, length: 8132, sha256: "b44394f05c22bbfdee01e244569006f4facea828ceb5f8254e237e7fbda75074" },
159977
- { key: "assets/PhonePreviewControl-gd29EplR.js", contentType: "application/javascript; charset=utf-8", offset: 29692, length: 37729, sha256: "6a5242bcde853e44f167fec0152cc31cade7dcc91dcd40bd40454482410f60fb" },
159978
- { key: "assets/SchemeCompare-BJpHRsfB.js", contentType: "application/javascript; charset=utf-8", offset: 67421, length: 1824, sha256: "405b08d3f254b238de808980391ea64f29b373717d2f37c28ffad714e80696c4" },
159979
- { key: "assets/index-DsL8IH-9.js", contentType: "application/javascript; charset=utf-8", offset: 69245, length: 1255677, sha256: "25ae3f3f168c96a6d824cab980d12eeb2f17625e2a5d7a1ff705427bffd72875" },
159980
- { key: "assets/pdf-Di3QVsBe.js", contentType: "application/javascript; charset=utf-8", offset: 1324922, length: 488199, sha256: "61410658efd7db37197efbef29ecf40f3b8a30557b192a94e44cbe3d0d2da213" },
159981
- { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1813121, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
159982
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1813194, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
159983
- { key: "assets/pdfDocument-D71exx6d.js", contentType: "application/javascript; charset=utf-8", offset: 3130228, length: 2868, sha256: "8ed3de628f76f7944f24d20ba875ea40d6308afe2366ddb462eabf36280db26e" },
159984
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3133096, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
159985
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3137706, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
159986
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3626290, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
159987
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3717214, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
159988
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3808198, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
159989
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3899178, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
159990
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3990050, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
159991
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4081030, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
159992
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4189666, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
159993
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4298750, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
159994
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4407798, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
159995
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4515498, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
159996
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4603606, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
159997
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4610354, length: 4947, sha256: "87e59dc14f91a652f71d23ccb219eb080b20cfc7716a1f27accbae3a1f4abfbd" },
159998
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4615301, length: 17768, sha256: "a47dec8623a0f58def7d8785ee74d08483626e75d07c9328bfc9ecb2172c2e0d" }
160187
+ { key: "assets/DashboardHost-XXnY37ab.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2916, sha256: "8abbcd530697cea21a8ce72cdb26559b7cf4bc6fdead91057c14a1a2ef4f5bba" },
160188
+ { key: "assets/DevDrawer-6bh29BNd.js", contentType: "application/javascript; charset=utf-8", offset: 2924, length: 16744, sha256: "3dae59d39dde6ca655b32b089304e353a7e1cf59c243a3ac9b96306a9d3006df" },
160189
+ { key: "assets/IdiomCompare-Cq68VJo-.js", contentType: "application/javascript; charset=utf-8", offset: 19668, length: 1892, sha256: "66e0935e38256e42f0669c04b58e84928ed1ff75036645fe7ae5b65d80a230f8" },
160190
+ { key: "assets/LightboxViewer-JHx-JIo7.js", contentType: "application/javascript; charset=utf-8", offset: 21560, length: 8132, sha256: "e702ea108ab2dc7f25a0e008b6b83d4ee07117a3ae177fb633a9f8243be8a8f3" },
160191
+ { key: "assets/PhonePreviewControl-CSspXm70.js", contentType: "application/javascript; charset=utf-8", offset: 29692, length: 37729, sha256: "fc4778b721de00fda3ea158da7b9ad529edb9c295a20d1c47d593d3f1579a89e" },
160192
+ { key: "assets/SchemeCompare-RZjyRADF.js", contentType: "application/javascript; charset=utf-8", offset: 67421, length: 1824, sha256: "5dc15c784a573bea80ff29196a3d4a6265c9590ffdbc74d76ec7685e6a615764" },
160193
+ { key: "assets/index-CB0iUq-D.js", contentType: "application/javascript; charset=utf-8", offset: 69245, length: 1261732, sha256: "8fdd483b41f5ff821590e055485d98148ffc51bd3813ac0550743cf792a1f1e0" },
160194
+ { key: "assets/pdf-B98BKYWi.js", contentType: "application/javascript; charset=utf-8", offset: 1330977, length: 488199, sha256: "8f23116cbbf2d9ffee4e63a9aa2c65ad278aa8c62ff0b5e2b7365ebba18e7032" },
160195
+ { key: "assets/pdf.worker.min-BQa_JDET.js", contentType: "application/javascript; charset=utf-8", offset: 1819176, length: 73, sha256: "41bcfda4f3c8c0a81c785ea87c69afc8e7d0ed8c333324aee94c273d881bb6aa" },
160196
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 1819249, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
160197
+ { key: "assets/pdfDocument-DnBdoqmp.js", contentType: "application/javascript; charset=utf-8", offset: 3136283, length: 2868, sha256: "84d32b40f910f57cfe1e05759a061702d56df92095f6a1c71132bdc1c96b1bd9" },
160198
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3139151, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
160199
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3143761, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
160200
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3632345, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
160201
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 3723269, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
160202
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 3814253, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
160203
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 3905233, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
160204
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 3996105, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
160205
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4087085, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
160206
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4195721, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
160207
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4304805, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
160208
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4413853, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
160209
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4521553, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
160210
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4609661, length: 6748, sha256: "4a92459977d7cefa1a6a7e020c3a63509737f083b3f2773557c1a5771665811a" },
160211
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 4616409, length: 4947, sha256: "704562cb515957d7e8c37b9c1f2c8b47bf9118e5411acc80106481e8d3271baf" },
160212
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4621356, length: 17786, sha256: "084107ca997628c248f1b0ba3a7494744850df39fad813546ab8bdb82a6058da" }
159999
160213
  ];
160000
160214
  }
160001
160215
  });
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1429.0",
3
+ "version": "0.1430.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": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "b4d2420d483886e1ce73160edcfdc6a91646977229bb741920a0ea2f"
74
+ "falconPackageHash": "7f9838f10c2acf3e1a2aabd52dd46d599859dcea9918ccec616e277b"
75
75
  }