@mu-crew/mu 4.1.0 → 4.1.1

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
  logItem,
7
7
  openHumanNeeds,
8
8
  parseOpKey
9
- } from "./chunk-SS7NQSSZ.js";
9
+ } from "./chunk-DEYBQDTO.js";
10
10
  import {
11
11
  UNKNOWN_REASON,
12
12
  WorkstreamNotFoundError,
@@ -18,7 +18,7 @@ import {
18
18
  readLiveAgents,
19
19
  tallyCalls,
20
20
  tryResolveLiveWorkstreamId
21
- } from "./chunk-UCZPJX7K.js";
21
+ } from "./chunk-L7I3BLXP.js";
22
22
 
23
23
  // src/dashboard-data.ts
24
24
  var DEFAULT_STATUS = ["OPEN", "IN_PROGRESS"];
@@ -372,4 +372,4 @@ export {
372
372
  matches,
373
373
  loadDashboard
374
374
  };
375
- //# sourceMappingURL=chunk-7M634JMD.js.map
375
+ //# sourceMappingURL=chunk-LBBZAG5C.js.map
@@ -41,7 +41,7 @@ import {
41
41
  steerStallHandler,
42
42
  waitForEvents,
43
43
  waitWithActions
44
- } from "./chunk-4ULY3ZKO.js";
44
+ } from "./chunk-B74N2EAS.js";
45
45
  import {
46
46
  FRONTIER_MAX_DEPTH,
47
47
  HumanNeededInvalidError,
@@ -101,7 +101,7 @@ import {
101
101
  taskRecordCut,
102
102
  taskToOutput,
103
103
  workstreamIdOf
104
- } from "./chunk-SS7NQSSZ.js";
104
+ } from "./chunk-DEYBQDTO.js";
105
105
  import {
106
106
  AgentAbortNeedsCtlError,
107
107
  AgentAbortTimeoutError,
@@ -262,6 +262,7 @@ import {
262
262
  headSha,
263
263
  hostStarter,
264
264
  interruptAgent,
265
+ isAgentListArgv,
265
266
  isCommandGate,
266
267
  isJsonMode,
267
268
  isScratchWorkstream,
@@ -349,7 +350,7 @@ import {
349
350
  workstreamRevision,
350
351
  worktreePath,
351
352
  worktreesRoot
352
- } from "./chunk-UCZPJX7K.js";
353
+ } from "./chunk-L7I3BLXP.js";
353
354
  import {
354
355
  defaultStateDir
355
356
  } from "./chunk-PZ5GOCWH.js";
@@ -4052,7 +4053,7 @@ function emitError(err) {
4052
4053
  agentId: err.agentId
4053
4054
  });
4054
4055
  }
4055
- const humanNoMux = err instanceof NoMultiplexerError && isStateVerbArgv(process.argv) && !process.argv.some((a) => a === "--json" || a.startsWith("--json="));
4056
+ const humanNoMux = err instanceof NoMultiplexerError && (isStateVerbArgv(process.argv) || isAgentListArgv(process.argv)) && !process.argv.some((a) => a === "--json" || a.startsWith("--json="));
4056
4057
  if (isJsonMode() && !humanNoMux) {
4057
4058
  const extra = {};
4058
4059
  if (usageCmd) extra.usage = usageLines(usageCmd);
@@ -4653,7 +4654,7 @@ async function parseWaitRef(db, raw, scope, legacy = {}) {
4653
4654
  return { kind, workstream, id: parsed.name };
4654
4655
  }
4655
4656
  if (getAgent(db, parsed.name, workstream) === void 0) {
4656
- const { AgentNotFoundError: AgentNotFoundError2 } = await import("./errors-GRONKWFS.js");
4657
+ const { AgentNotFoundError: AgentNotFoundError2 } = await import("./errors-G5IVXSMY.js");
4657
4658
  throw new AgentNotFoundError2(parsed.name);
4658
4659
  }
4659
4660
  return {
@@ -7916,8 +7917,11 @@ function wireAgentCommands(program2) {
7916
7917
  const opts = this.opts();
7917
7918
  return handle((db) => cmdRead(db, name, opts), this)();
7918
7919
  });
7919
- agent.command("list").description("List agents in the current workstream (reconciled with the active mux)").option(...WORKSTREAM_OPT).option(...JSON_OPT).action(function() {
7920
+ agent.command("list").description(
7921
+ "List agents in the current workstream (reconciled with the active mux). One JSON document by default; --table for the human table"
7922
+ ).option(...WORKSTREAM_OPT).option(...JSON_OPT).option("--table", "print the human table instead of the JSON document").action(function() {
7920
7923
  const opts = this.opts();
7924
+ opts.json = opts.json === true || opts.table !== true;
7921
7925
  return handle((db) => cmdList(db, opts), this)();
7922
7926
  });
7923
7927
  agent.command("show <name>").description("Show an agent: registry row + recent scrollback (last N lines, default 20)").option("-n, --lines <n>", "how many scrollback lines to show (default 20)", parseLines).option(...WORKSTREAM_OPT).option(...JSON_OPT).action(function(name) {
@@ -8041,7 +8045,7 @@ function openDashboardOrHelp(program2) {
8041
8045
  (syncDb) => withShutdown(syncDb, async (shutdown) => {
8042
8046
  const key = "NODE_ENV";
8043
8047
  process.env[key] ??= "production";
8044
- const { runDashboard } = await import("./tui-FUBQ326D.js");
8048
+ const { runDashboard } = await import("./tui-EN2CDP6G.js");
8045
8049
  const first = program2.opts().workstream?.[0];
8046
8050
  await runDashboard({ dbPath: defaultDbPath(), syncDb, shutdown, initialWorkstream: first });
8047
8051
  }),
@@ -12468,4 +12472,4 @@ export {
12468
12472
  truncate,
12469
12473
  truncateFront
12470
12474
  };
12471
- //# sourceMappingURL=cli-TV3N47AZ.js.map
12475
+ //# sourceMappingURL=cli-H2PWJAJN.js.map