@mu-crew/mu 4.1.1 → 4.2.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.
package/dist/cli.js CHANGED
@@ -47,6 +47,6 @@ function enableCompileCacheIn(dir, enable = nodeEnable ?? null) {
47
47
 
48
48
  // src/main.ts
49
49
  enableCompileCacheIn(join(defaultStateDir(), "compile-cache"));
50
- var { runCli } = await import("./cli-H2PWJAJN.js");
50
+ var { runCli } = await import("./cli-H3VVCP7M.js");
51
51
  await runCli(process.argv);
52
52
  //# sourceMappingURL=cli.js.map
@@ -23,13 +23,16 @@ import {
23
23
  AgentSlashCommandUnsupportedError,
24
24
  AgentSpawnCliNotFoundError,
25
25
  AgentSpawnStartupError,
26
+ CarrierJobKeptError,
27
+ CarrierJobUnresolvedError,
28
+ CarrierJobUnstoppedError,
26
29
  SpawnAttemptBusyError,
27
30
  SpawnAttemptFailedError,
28
31
  SpawnAttemptGuardError,
29
32
  SpawnReceiptConflictError,
30
33
  SpawnTaskStateError,
31
34
  SpawnTrustDialogError
32
- } from "./chunk-L7I3BLXP.js";
35
+ } from "./chunk-4ZWBLTZK.js";
33
36
  import "./chunk-PZ5GOCWH.js";
34
37
  export {
35
38
  AgentAbortNeedsCtlError,
@@ -55,6 +58,9 @@ export {
55
58
  AgentSlashCommandUnsupportedError,
56
59
  AgentSpawnCliNotFoundError,
57
60
  AgentSpawnStartupError,
61
+ CarrierJobKeptError,
62
+ CarrierJobUnresolvedError,
63
+ CarrierJobUnstoppedError,
58
64
  SpawnAttemptBusyError,
59
65
  SpawnAttemptFailedError,
60
66
  SpawnAttemptGuardError,
@@ -62,4 +68,4 @@ export {
62
68
  SpawnTaskStateError,
63
69
  SpawnTrustDialogError
64
70
  };
65
- //# sourceMappingURL=errors-G5IVXSMY.js.map
71
+ //# sourceMappingURL=errors-MDQZHB42.js.map
@@ -2102,7 +2102,7 @@ function registerCloseNudge(pi, run = defaultRunner(), env = process.env, nested
2102
2102
  }
2103
2103
 
2104
2104
  // extension/mu-pi.ts
2105
- var EXT_VERSION = true ? "4.1.1" : void 0;
2105
+ var EXT_VERSION = true ? "4.2.1" : void 0;
2106
2106
  var FRESH_COMMAND = "mu-fresh";
2107
2107
  var FRESH_TIMEOUT_MS = 3e4;
2108
2108
  function commandName(name) {
@@ -2113,6 +2113,14 @@ var LAST_TEXT_MAX_BYTES = 64 * 1024;
2113
2113
  var LAST_TEXT_TRUNCATED = "[truncated, see pane]";
2114
2114
  var LIVE_PROBE_MS = 500;
2115
2115
  var V = CTL_PROTOCOL_VERSION;
2116
+ function toolStatus(t) {
2117
+ if (t === void 0) return null;
2118
+ return {
2119
+ name: t.name,
2120
+ since: t.since,
2121
+ quiet_ms: Math.max(0, Date.now() - (t.output ?? t.since))
2122
+ };
2123
+ }
2116
2124
  function fail(error) {
2117
2125
  return { v: V, ok: false, error };
2118
2126
  }
@@ -2317,7 +2325,7 @@ function serveCtl(pi) {
2317
2325
  since: g.since,
2318
2326
  runs: g.runs,
2319
2327
  pending: g.ctx?.hasPendingMessages() ?? false,
2320
- tool: [...g.tools.values()].at(-1) ?? null,
2328
+ tool: toolStatus([...g.tools.values()].at(-1)),
2321
2329
  ...sessionFileOf(g.ctx),
2322
2330
  ...blockedField()
2323
2331
  });
@@ -2358,7 +2366,16 @@ function serveCtl(pi) {
2358
2366
  pi.on("tool_execution_start", (e) => {
2359
2367
  const { toolCallId, toolName } = e ?? {};
2360
2368
  if (typeof toolCallId === "string" && typeof toolName === "string") {
2361
- g.tools.set(toolCallId, { name: toolName, since: Date.now() });
2369
+ const now = Date.now();
2370
+ g.tools.set(toolCallId, { name: toolName, since: now, output: now });
2371
+ }
2372
+ });
2373
+ pi.on("tool_execution_update", (e) => {
2374
+ const { toolCallId, parentToolCallId } = e ?? {};
2375
+ const now = Date.now();
2376
+ for (const id of [toolCallId, parentToolCallId]) {
2377
+ const t = typeof id === "string" ? g.tools.get(id) : void 0;
2378
+ if (t) t.output = now;
2362
2379
  }
2363
2380
  });
2364
2381
  pi.on("tool_execution_end", (e) => {