@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.
- package/dist/{chunk-B74N2EAS.js → chunk-3ZLI6YTV.js} +8 -4
- package/dist/chunk-3ZLI6YTV.js.map +1 -0
- package/dist/{chunk-DEYBQDTO.js → chunk-RVWNQLFE.js} +2 -2
- package/dist/{chunk-L7I3BLXP.js → chunk-SFV5RPZW.js} +1512 -411
- package/dist/chunk-SFV5RPZW.js.map +1 -0
- package/dist/{chunk-LBBZAG5C.js → chunk-UL2QE43S.js} +20 -20
- package/dist/chunk-UL2QE43S.js.map +1 -0
- package/dist/{cli-H2PWJAJN.js → cli-72EJ3CKW.js} +146 -31
- package/dist/cli-72EJ3CKW.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/{errors-G5IVXSMY.js → errors-LY4OZVQU.js} +8 -2
- package/dist/extension/mu-pi.js +1 -1
- package/dist/index.d.ts +2554 -2277
- package/dist/index.js +58 -4
- package/dist/index.js.map +1 -1
- package/dist/{tui-EN2CDP6G.js → tui-3ZPLSLDW.js} +13 -14
- package/dist/tui-3ZPLSLDW.js.map +1 -0
- package/docs/ARCHITECTURE.md +15 -8
- package/docs/VOCABULARY.md +14 -6
- package/docs/guide/remote.md +113 -4
- package/docs/guide/sql.md +1 -1
- package/docs/reference/env.md +1 -0
- package/package.json +1 -1
- package/skills/mu/recipes/remote-workers.md +7 -6
- package/dist/chunk-B74N2EAS.js.map +0 -1
- package/dist/chunk-L7I3BLXP.js.map +0 -1
- package/dist/chunk-LBBZAG5C.js.map +0 -1
- package/dist/cli-H2PWJAJN.js.map +0 -1
- package/dist/tui-EN2CDP6G.js.map +0 -1
- /package/dist/{chunk-DEYBQDTO.js.map → chunk-RVWNQLFE.js.map} +0 -0
- /package/dist/{errors-G5IVXSMY.js.map → errors-LY4OZVQU.js.map} +0 -0
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
recordHumanNeeded,
|
|
24
24
|
reserveAttempt,
|
|
25
25
|
reserveRetry
|
|
26
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
4486
|
+
//# sourceMappingURL=chunk-3ZLI6YTV.js.map
|