@mu-crew/mu 3.10.1 → 3.10.2

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.
@@ -6,7 +6,7 @@ import {
6
6
  planUndo,
7
7
  resolveGroupId,
8
8
  undoGroup
9
- } from "./chunk-XXK7FR37.js";
9
+ } from "./chunk-JEWHQ4GB.js";
10
10
  import {
11
11
  IDLE_GLYPH,
12
12
  TASK_SORT_KEYS,
@@ -28,7 +28,7 @@ import {
28
28
  statusIcon,
29
29
  truncate,
30
30
  truncateFront
31
- } from "./chunk-7OQNJWBY.js";
31
+ } from "./chunk-RXVYBV3P.js";
32
32
  import {
33
33
  AgentAbortNeedsCtlError,
34
34
  AgentAbortTimeoutError,
@@ -206,7 +206,7 @@ import {
206
206
  waitForAgents,
207
207
  waitForTasks,
208
208
  weakDecisionWarning
209
- } from "./chunk-WT7IN2OD.js";
209
+ } from "./chunk-KGGOITI5.js";
210
210
  import {
211
211
  CURRENT_SCHEMA_VERSION,
212
212
  EXPECTED_TABLES,
@@ -236,7 +236,7 @@ import {
236
236
  transportNextSteps,
237
237
  tryResolveWorkstreamId,
238
238
  withOpContext
239
- } from "./chunk-YIF3X32A.js";
239
+ } from "./chunk-WYBOR4FX.js";
240
240
  import {
241
241
  defaultStateDir
242
242
  } from "./chunk-4PACTXAB.js";
@@ -522,6 +522,7 @@ function emitError(err) {
522
522
  }
523
523
  return exitCode;
524
524
  }
525
+ var TUI_HANDLE_OPTS = { flushLockWaitMs: 0 };
525
526
  function handle(fn, command, opts) {
526
527
  return async () => {
527
528
  let db;
@@ -538,7 +539,7 @@ function handle(fn, command, opts) {
538
539
  activeCommand = void 0;
539
540
  if (ambient && db !== void 0) {
540
541
  try {
541
- await ambientFlush(db);
542
+ await ambientFlush(db, { lockWaitMs: opts?.flushLockWaitMs });
542
543
  } catch {
543
544
  }
544
545
  }
@@ -4658,7 +4659,7 @@ async function resolveInitialTab(names, db) {
4658
4659
  }
4659
4660
 
4660
4661
  // src/cli/tui-load.ts
4661
- async function importTui(load = () => import("./tui-X2XICJTN.js")) {
4662
+ async function importTui(load = () => import("./tui-SKZMGHA6.js")) {
4662
4663
  const key = "NODE_ENV";
4663
4664
  if (process.env[key] !== void 0) return load();
4664
4665
  process.env[key] = "production";
@@ -4899,7 +4900,11 @@ function wireStateCommands(program) {
4899
4900
  "interactive TUI (rounded-border dashboard with cards + popups; multi-ws via Tab/Shift-Tab tabs)"
4900
4901
  ).option("--events <n>", "how many recent log entries (ops) to include (default 20)", parseLines).option(...JSON_OPT).action(function() {
4901
4902
  const opts = this.opts();
4902
- return handle((db) => cmdState(db, opts), this)();
4903
+ return handle(
4904
+ (db) => cmdState(db, opts),
4905
+ this,
4906
+ opts.tui === true ? TUI_HANDLE_OPTS : void 0
4907
+ )();
4903
4908
  });
4904
4909
  }
4905
4910
 
@@ -6121,7 +6126,7 @@ function buildProgram() {
6121
6126
  program.outputHelp();
6122
6127
  return;
6123
6128
  }
6124
- return handle((db) => cmdBareTui(db, program, opts.workstream), command)();
6129
+ return handle((db) => cmdBareTui(db, program, opts.workstream), command, TUI_HANDLE_OPTS)();
6125
6130
  });
6126
6131
  wireWorkstreamCommands(program);
6127
6132
  wireAgentCommands(program);
@@ -6263,4 +6268,4 @@ export {
6263
6268
  truncateFront,
6264
6269
  withRoiAll
6265
6270
  };
6266
- //# sourceMappingURL=cli-KJGVEZW5.js.map
6271
+ //# sourceMappingURL=cli-GBIC22X7.js.map