@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.
@@ -23,7 +23,7 @@ import {
23
23
  recordHumanNeeded,
24
24
  reserveAttempt,
25
25
  reserveRetry
26
- } from "./chunk-SS7NQSSZ.js";
26
+ } from "./chunk-DEYBQDTO.js";
27
27
  import {
28
28
  AgentLockBusyError,
29
29
  AgentNotFoundError,
@@ -129,7 +129,7 @@ import {
129
129
  withFileLock,
130
130
  withHostChannel,
131
131
  withOpContext
132
- } from "./chunk-UCZPJX7K.js";
132
+ } from "./chunk-L7I3BLXP.js";
133
133
 
134
134
  // src/rebuild.ts
135
135
  import { existsSync, mkdirSync, rmSync, statSync } from "fs";
@@ -4479,4 +4479,4 @@ export {
4479
4479
  saveResume,
4480
4480
  loadResume
4481
4481
  };
4482
- //# sourceMappingURL=chunk-4ULY3ZKO.js.map
4482
+ //# sourceMappingURL=chunk-B74N2EAS.js.map
@@ -52,7 +52,7 @@ import {
52
52
  withCaptureSuppressed,
53
53
  withFileLock,
54
54
  withOpContext
55
- } from "./chunk-UCZPJX7K.js";
55
+ } from "./chunk-L7I3BLXP.js";
56
56
 
57
57
  // src/fold.ts
58
58
  function fieldsOf(payload) {
@@ -3657,4 +3657,4 @@ export {
3657
3657
  ingestFromDb,
3658
3658
  currentCallers
3659
3659
  };
3660
- //# sourceMappingURL=chunk-SS7NQSSZ.js.map
3660
+ //# sourceMappingURL=chunk-DEYBQDTO.js.map
@@ -4778,7 +4778,8 @@ function muTable(opts) {
4778
4778
  }
4779
4779
  function isJsonMode() {
4780
4780
  const argv = process.argv;
4781
- return argv.some((a) => a === "--json" || a.startsWith("--json=")) || isSqlVerbArgv(argv) && !argv.includes("--table") || isStateVerbArgv(argv) || isWaitVerbArgv(argv);
4781
+ return argv.some((a) => a === "--json" || a.startsWith("--json=")) || (isSqlVerbArgv(argv) || isAgentListArgv(argv)) && !argv.includes("--table") || isStateVerbArgv(argv) || isWaitVerbArgv(argv) || // `mu next` prints ONE JSON result for every outcome; its failures too.
4782
+ verbWords(argv)[0] === "next";
4782
4783
  }
4783
4784
  function verbWords(argv) {
4784
4785
  const words = [];
@@ -4793,6 +4794,10 @@ function isSqlVerbArgv(argv) {
4793
4794
  const words = verbWords(argv);
4794
4795
  return words[0] === "sql" || words[0] === "db" && words[1] === "query";
4795
4796
  }
4797
+ function isAgentListArgv(argv) {
4798
+ const [first, second] = verbWords(argv);
4799
+ return first === "agent" && second === "list";
4800
+ }
4796
4801
  function isStateVerbArgv(argv) {
4797
4802
  const [first, second] = verbWords(argv);
4798
4803
  return first === "state" || first === "me" && second !== "tasks" && second !== "next";
@@ -13917,6 +13922,7 @@ export {
13917
13922
  pc,
13918
13923
  muTable,
13919
13924
  isJsonMode,
13925
+ isAgentListArgv,
13920
13926
  isStateVerbArgv,
13921
13927
  usageLines,
13922
13928
  printUsageHuman,
@@ -14250,4 +14256,4 @@ export {
14250
14256
  murmurAvailable,
14251
14257
  readAgentStates
14252
14258
  };
14253
- //# sourceMappingURL=chunk-UCZPJX7K.js.map
14259
+ //# sourceMappingURL=chunk-L7I3BLXP.js.map