@mu-crew/mu 3.11.3 → 3.12.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.
package/dist/index.d.ts CHANGED
@@ -2126,6 +2126,8 @@ type SendResult = {
2126
2126
  runs?: number;
2127
2127
  /** ctl only: when pi entered `state` (epoch ms), from the same status. */
2128
2128
  since?: number;
2129
+ /** ctl only: pi's session file, from the same status. */
2130
+ sessionFile?: string;
2129
2131
  /** Set when the text ran as a pi session command over ctl. */
2130
2132
  command?: CtlCommandName;
2131
2133
  };
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  priorFieldValue,
9
9
  resolveGroupId,
10
10
  undoGroup
11
- } from "./chunk-LEORAGKV.js";
11
+ } from "./chunk-XV7J56GD.js";
12
12
  import {
13
13
  AGENT_STATE_GLYPH,
14
14
  AgentAbortNeedsCtlError,
@@ -252,7 +252,7 @@ import {
252
252
  workspacePath,
253
253
  workspacesRoot,
254
254
  yankCommandForCheck
255
- } from "./chunk-F7ZBF6I7.js";
255
+ } from "./chunk-IRPTNVJC.js";
256
256
  import {
257
257
  CAPTURE_TRIGGER_DDL,
258
258
  CURRENT_SCHEMA_VERSION,
@@ -12,7 +12,7 @@ import {
12
12
  relTimeBasisForSort,
13
13
  sortTasks,
14
14
  truncate
15
- } from "./chunk-3L5KO3PX.js";
15
+ } from "./chunk-TEGZOXML.js";
16
16
  import {
17
17
  GLYPH,
18
18
  WORKSPACE_STALE_THRESHOLD,
@@ -41,7 +41,7 @@ import {
41
41
  summarizeOwnedTasks,
42
42
  superscriptDigit,
43
43
  yankCommandForCheck
44
- } from "./chunk-F7ZBF6I7.js";
44
+ } from "./chunk-IRPTNVJC.js";
45
45
  import {
46
46
  TASK_STATUSES,
47
47
  ambientSyncPass,
@@ -6449,4 +6449,4 @@ async function runTui(db, opts) {
6449
6449
  export {
6450
6450
  runTui
6451
6451
  };
6452
- //# sourceMappingURL=tui-WHCLVCYE.js.map
6452
+ //# sourceMappingURL=tui-LO75XA3O.js.map
@@ -28,7 +28,7 @@ reply carries `v: 1`; the client (`src/ctl/client.ts`) throws
28
28
  | op | does |
29
29
  | --- | --- |
30
30
  | `hello` | identity plus `ops` (served ops) and `extVersion` (the mu version the extension was built from) |
31
- | `status` | `state` (`busy` / `idle`), `since`, `runs`, `pending` |
31
+ | `status` | `state` (`busy` / `idle`), `since`, `runs`, `pending`, and pi's `sessionFile` when it has one |
32
32
  | `send` | `pi.sendUserMessage`; when busy, `mode` is `steer` or `followUp` (default). Replies with the `status` fields measured before the dispatch, so `runs` is the baseline for a later `wait` |
33
33
  | `wait` | resolves on pi's `agent_settled` after `afterRuns`, with the run's `lastText` and pi's `sessionFile` |
34
34
  | `abort` | `ctx.abort()` (pi's Esc) |
@@ -48,6 +48,11 @@ Delegates called in one turn run in parallel.
48
48
  keeps its pane. The answer names the error and leaves the choice to
49
49
  the model: re-issue, or record the check as unverified. The footer
50
50
  counts it as `1 failed` until the pane is closed.
51
+ - Every answer without a final text (API error, empty, timeout, died,
52
+ `mu_delegate_cancel`) names the delegate's pi session file and, when
53
+ it wrote anything, a copy of its last message so far under
54
+ `~/.cache/mu/delegate-answers/` (`*.partial.md`). Quitting pi or
55
+ `/reload` lists each running delegate's session file.
51
56
  - Answers arrive as follow-up messages when pi would otherwise stop,
52
57
  never mid-turn. To get several at once, set pi's `followUpMode` to
53
58
  `"all"`.
@@ -100,7 +100,7 @@ it can be deleted at any time.
100
100
 
101
101
  | Path | Contents |
102
102
  | --- | --- |
103
- | `<cache-dir>/delegate-answers/` | Copies of delegate answers an Escape dropped from pi's queue (the delegate's pi session file keeps the original) |
103
+ | `<cache-dir>/delegate-answers/` | Copies of delegate answers an Escape dropped from pi's queue, and `*.partial.md`: a delegate's last message before it timed out, died, failed or was cancelled (the delegate's pi session file keeps the original) |
104
104
 
105
105
  mu reads no agent-template directory (`~/.pi/agent/agents/`,
106
106
  `.pi/agents/`). A role is a name and a brief.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mu-crew/mu",
3
- "version": "3.11.3",
3
+ "version": "3.12.0",
4
4
  "description": "A persistent, observable crew of pi agents running in one tmux or herdr session per workstream, coordinated through a built-in task DAG.",
5
5
  "publishConfig": {
6
6
  "access": "public"