@mu-crew/mu 4.1.1 → 4.2.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.
@@ -23,7 +23,7 @@ import {
23
23
  recordHumanNeeded,
24
24
  reserveAttempt,
25
25
  reserveRetry
26
- } from "./chunk-DEYBQDTO.js";
26
+ } from "./chunk-RVWNQLFE.js";
27
27
  import {
28
28
  AgentLockBusyError,
29
29
  AgentNotFoundError,
@@ -71,6 +71,7 @@ import {
71
71
  fenceAgentRef,
72
72
  finishDelegate,
73
73
  getAgent,
74
+ getCarrierJobByAgent,
74
75
  getDelegateCall,
75
76
  getReceipt,
76
77
  getTask,
@@ -129,7 +130,7 @@ import {
129
130
  withFileLock,
130
131
  withHostChannel,
131
132
  withOpContext
132
- } from "./chunk-L7I3BLXP.js";
133
+ } from "./chunk-SFV5RPZW.js";
133
134
 
134
135
  // src/rebuild.ts
135
136
  import { existsSync, mkdirSync, rmSync, statSync } from "fs";
@@ -167,6 +168,8 @@ var UNREBUILDABLE_TABLES = [
167
168
  "wait_action_receipts",
168
169
  // A remote worker's worktree, kept when its row was deleted: no op carries it.
169
170
  "remote_recovery",
171
+ // A lease agent's remote job handle: no op carries it, and losing it loses the only pointer to the job.
172
+ "carrier_jobs",
170
173
  // The human task and its reason rebuild from ops; WHO recorded it does
171
174
  // not. Ownership is never inferred from a note author.
172
175
  "human_needs"
@@ -3003,11 +3006,12 @@ async function scanRecovery(db, workstream, observe, opts = {}) {
3003
3006
  if (f === void 0) continue;
3004
3007
  if (f.status === null) {
3005
3008
  if (w.agent.host !== null) {
3009
+ const job = getCarrierJobByAgent(db, w.agent.incarnation);
3006
3010
  out.push({
3007
3011
  kind: "attention",
3008
3012
  task: w.task,
3009
3013
  agent: w.agent.name,
3010
- reason: `remote worker ${w.agent.name} on ${w.agent.host} has no pane: its tree is kept, not reaped (mu agent collect, then close it)`
3014
+ reason: job !== void 0 ? say("carrier.dead_worker", w.agent.name, job.host, job.job) : `remote worker ${w.agent.name} on ${w.agent.host} has no pane: its tree is kept, not reaped (mu agent collect, then close it)`
3011
3015
  });
3012
3016
  } else {
3013
3017
  out.push({
@@ -4479,4 +4483,4 @@ export {
4479
4483
  saveResume,
4480
4484
  loadResume
4481
4485
  };
4482
- //# sourceMappingURL=chunk-B74N2EAS.js.map
4486
+ //# sourceMappingURL=chunk-3ZLI6YTV.js.map