@hoox-sh/hoox-cli 0.14.0 → 0.15.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/index.js +29 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9557,7 +9557,7 @@ var init_schemas4 = __esm(() => {
9557
9557
  init_validators();
9558
9558
  });
9559
9559
 
9560
- // ../../node_modules/.bun/zustand@5.0.15+dc71e22b319e42d9/node_modules/zustand/esm/vanilla.mjs
9560
+ // ../../node_modules/.bun/zustand@5.0.16+efb21c635b69fae1/node_modules/zustand/esm/vanilla.mjs
9561
9561
  var createStoreImpl = (createState) => {
9562
9562
  let state;
9563
9563
  const listeners = /* @__PURE__ */ new Set;
@@ -9581,7 +9581,7 @@ var createStoreImpl = (createState) => {
9581
9581
  }, createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
9582
9582
  var init_vanilla = () => {};
9583
9583
 
9584
- // ../../node_modules/.bun/react@19.3.0/node_modules/react/cjs/react.development.js
9584
+ // ../../node_modules/.bun/react@19.3.1/node_modules/react/cjs/react.development.js
9585
9585
  var require_react_development = __commonJS(function(exports, module) {
9586
9586
  (function() {
9587
9587
  function defineDeprecationWarning(methodName, info) {
@@ -10422,12 +10422,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
10422
10422
  exports.useTransition = function() {
10423
10423
  return resolveDispatcher().useTransition();
10424
10424
  };
10425
- exports.version = "19.3.0";
10425
+ exports.version = "19.3.1";
10426
10426
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
10427
10427
  })();
10428
10428
  });
10429
10429
 
10430
- // ../../node_modules/.bun/react@19.3.0/node_modules/react/index.js
10430
+ // ../../node_modules/.bun/react@19.3.1/node_modules/react/index.js
10431
10431
  var require_react = __commonJS(function(exports, module) {
10432
10432
  var react_development = __toESM(require_react_development());
10433
10433
  if (false) {} else {
@@ -10435,9 +10435,9 @@ var require_react = __commonJS(function(exports, module) {
10435
10435
  }
10436
10436
  });
10437
10437
 
10438
- // ../../node_modules/.bun/zustand@5.0.15+dc71e22b319e42d9/node_modules/zustand/esm/react.mjs
10438
+ // ../../node_modules/.bun/zustand@5.0.16+efb21c635b69fae1/node_modules/zustand/esm/react.mjs
10439
10439
  function useStore(api, selector = identity) {
10440
- const slice = import_react.default.useSyncExternalStore(api.subscribe, import_react.default.useCallback(() => selector(api.getState()), [api, selector]), import_react.default.useCallback(() => selector(api.getInitialState()), [api, selector]));
10440
+ const slice = import_react.default.useSyncExternalStore(api.subscribe, import_react.default.useCallback(() => selector(api.getState()), [api, selector]), () => selector(api.getInitialState()));
10441
10441
  import_react.default.useDebugValue(slice);
10442
10442
  return slice;
10443
10443
  }
@@ -10452,13 +10452,13 @@ var init_react = __esm(() => {
10452
10452
  import_react = __toESM(require_react(), 1);
10453
10453
  });
10454
10454
 
10455
- // ../../node_modules/.bun/zustand@5.0.15+dc71e22b319e42d9/node_modules/zustand/esm/index.mjs
10455
+ // ../../node_modules/.bun/zustand@5.0.16+efb21c635b69fae1/node_modules/zustand/esm/index.mjs
10456
10456
  var init_esm = __esm(() => {
10457
10457
  init_vanilla();
10458
10458
  init_react();
10459
10459
  });
10460
10460
 
10461
- // ../../node_modules/.bun/immer@11.1.21/node_modules/immer/dist/immer.mjs
10461
+ // ../../node_modules/.bun/immer@11.2.9/node_modules/immer/dist/immer.mjs
10462
10462
  function die(error, ...args) {
10463
10463
  if (true) {
10464
10464
  const e = errors3[error];
@@ -10806,7 +10806,7 @@ function peek(draft, prop) {
10806
10806
  return source[prop];
10807
10807
  }
10808
10808
  function isRelocatedBaseRef(state, prop, value) {
10809
- if (state.type_ !== 1 || !state.allIndicesReassigned_ || state.assigned_?.get(prop) || !isDraftable(value) || value[DRAFT_STATE]) {
10809
+ if (state.type_ !== 1 || !state.allIndicesReassigned_ || !isDraftable(value) || value[DRAFT_STATE]) {
10810
10810
  return false;
10811
10811
  }
10812
10812
  return state.baseRefs_.has(value);
@@ -10880,7 +10880,10 @@ function currentImpl(value) {
10880
10880
  } else {
10881
10881
  copy = shallowCopy(value, true);
10882
10882
  }
10883
- each(copy, (key, childValue) => {
10883
+ const source = copy;
10884
+ if (isSet(copy))
10885
+ copy = /* @__PURE__ */ new Set;
10886
+ each(source, (key, childValue) => {
10884
10887
  set(copy, key, currentImpl(childValue));
10885
10888
  }, strict);
10886
10889
  if (state) {
@@ -11192,7 +11195,7 @@ var init_immer = __esm(() => {
11192
11195
  produce = immer.produce;
11193
11196
  });
11194
11197
 
11195
- // ../../node_modules/.bun/zustand@5.0.15+dc71e22b319e42d9/node_modules/zustand/esm/middleware/immer.mjs
11198
+ // ../../node_modules/.bun/zustand@5.0.16+efb21c635b69fae1/node_modules/zustand/esm/middleware/immer.mjs
11196
11199
  var immerImpl = (initializer) => (set, get, store) => {
11197
11200
  store.setState = (updater, replace, ...args) => {
11198
11201
  const nextState = typeof updater === "function" ? produce(updater) : updater;
@@ -11570,7 +11573,7 @@ var init_service_store = __esm(() => {
11570
11573
  };
11571
11574
  });
11572
11575
 
11573
- // ../../node_modules/.bun/zustand@5.0.15+dc71e22b319e42d9/node_modules/zustand/esm/middleware.mjs
11576
+ // ../../node_modules/.bun/zustand@5.0.16+efb21c635b69fae1/node_modules/zustand/esm/middleware.mjs
11574
11577
  function createJSONStorage(getStorage, options) {
11575
11578
  let storage;
11576
11579
  try {
@@ -11652,8 +11655,8 @@ var toThenable = (fn) => (input) => {
11652
11655
  });
11653
11656
  };
11654
11657
  const savedSetState = api.setState;
11655
- api.setState = (state, replace) => {
11656
- savedSetState(state, replace);
11658
+ api.setState = (...args) => {
11659
+ savedSetState(...args);
11657
11660
  return setItem();
11658
11661
  };
11659
11662
  const configResult = config((...args) => {
@@ -21346,7 +21349,10 @@ async function runRichTasks(tasks, options = {}) {
21346
21349
  }
21347
21350
  if (options.onSummary) {
21348
21351
  options.onSummary(results);
21349
- } else if (!options.format?.json && !options.format?.quiet) {
21352
+ } else if (options.format?.json) {
21353
+ process.stdout.write(`${JSON.stringify(results)}
21354
+ `);
21355
+ } else if (!options.format?.quiet) {
21350
21356
  renderDefaultSummary(results);
21351
21357
  }
21352
21358
  return results;
@@ -22039,7 +22045,12 @@ async function deployAll(configService, cf, env, forceRebuildDashboard = false,
22039
22045
  });
22040
22046
  }
22041
22047
  function renderDeploySummary(results, format) {
22042
- if (format.json || format.quiet)
22048
+ if (format.json) {
22049
+ process.stdout.write(`${JSON.stringify(results)}
22050
+ `);
22051
+ return;
22052
+ }
22053
+ if (format.quiet)
22043
22054
  return;
22044
22055
  const rows = results.map((r) => {
22045
22056
  const d = r.value;
@@ -25182,7 +25193,8 @@ async function handleHealth(opts, autoFix) {
25182
25193
  }));
25183
25194
  const taskResults = await runRichTasks(tasks, {
25184
25195
  title: `Health-checking ${enabledWorkers.length} worker(s)`,
25185
- format: opts
25196
+ format: opts,
25197
+ ...opts.json ? { onSummary: () => {} } : {}
25186
25198
  });
25187
25199
  for (const r of taskResults) {
25188
25200
  if (r.value)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoox-sh/hoox-cli",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Hoox CLI — manage Cloudflare Workers, infrastructure, secrets, and deployments (@hoox-sh/hoox-cli)",
5
5
  "type": "module",
6
6
  "bin": {