@mu-crew/mu 3.10.2 → 3.11.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/{chunk-RXVYBV3P.js → chunk-2FJK6OOZ.js} +2 -2
- package/dist/{chunk-JEWHQ4GB.js → chunk-DXKJY3NT.js} +2 -2
- package/dist/{chunk-KGGOITI5.js → chunk-JYZUNPPO.js} +43 -2
- package/dist/chunk-JYZUNPPO.js.map +1 -0
- package/dist/{cli-GBIC22X7.js → cli-GRAPF5VC.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/extension/mu-pi.js +37 -7
- package/dist/extension/mu-pi.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +4 -2
- package/dist/{tui-SKZMGHA6.js → tui-DGDEH4JX.js} +3 -3
- package/docs/VISION.md +3 -0
- package/docs/guide/delegate.md +4 -2
- package/package.json +1 -1
- package/skills/mu/SKILL.md +29 -37
- package/skills/mu/recipes/adversarial-review.md +26 -21
- package/skills/mu/recipes/brief.md +3 -2
- package/skills/mu/recipes/codemode-driver.md +9 -6
- package/skills/mu/recipes/deep-research.md +2 -1
- package/skills/mu/recipes/drift-audit.md +5 -4
- package/skills/mu/recipes/fan-out.md +5 -3
- package/skills/mu/recipes/findings.md +7 -3
- package/skills/mu/recipes/hypothesis-panel.md +2 -1
- package/skills/mu/recipes/models.md +102 -0
- package/skills/mu/recipes/orchestrator-loop.md +6 -8
- package/skills/mu/recipes/plan.md +5 -5
- package/skills/mu/recipes/recovery.md +9 -8
- package/skills/mu/recipes/refute.md +7 -4
- package/skills/mu/recipes/remote-workers.md +22 -14
- package/skills/mu/recipes/review-panel.md +4 -3
- package/skills/mu/recipes/rules-audit.md +7 -6
- package/skills/mu/recipes/tasks-or-calls.md +6 -5
- package/skills/mu/recipes/tournament.md +5 -2
- package/skills/mu/recipes/ultrathink.md +6 -4
- package/skills/mu/recipes/watcher.md +4 -0
- package/skills/mu/recipes/waves.md +5 -4
- package/skills/mu/recipes/worker.md +2 -2
- package/dist/chunk-KGGOITI5.js.map +0 -1
- /package/dist/{chunk-RXVYBV3P.js.map → chunk-2FJK6OOZ.js.map} +0 -0
- /package/dist/{chunk-JEWHQ4GB.js.map → chunk-DXKJY3NT.js.map} +0 -0
- /package/dist/{cli-GBIC22X7.js.map → cli-GRAPF5VC.js.map} +0 -0
- /package/dist/{tui-SKZMGHA6.js.map → tui-DGDEH4JX.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
pc,
|
|
8
8
|
renderBoxTable,
|
|
9
9
|
renderOp
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JYZUNPPO.js";
|
|
11
11
|
import {
|
|
12
12
|
formatPair
|
|
13
13
|
} from "./chunk-WYBOR4FX.js";
|
|
@@ -388,4 +388,4 @@ export {
|
|
|
388
388
|
sortTasks,
|
|
389
389
|
relTimeBasisForSort
|
|
390
390
|
};
|
|
391
|
-
//# sourceMappingURL=chunk-
|
|
391
|
+
//# sourceMappingURL=chunk-2FJK6OOZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
groupIdFromPrefix
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JYZUNPPO.js";
|
|
4
4
|
import {
|
|
5
5
|
LEGACY_LOG_ONLY_SQL_EXCLUSION,
|
|
6
6
|
localMachineId,
|
|
@@ -637,4 +637,4 @@ export {
|
|
|
637
637
|
planUndo,
|
|
638
638
|
undoGroup
|
|
639
639
|
};
|
|
640
|
-
//# sourceMappingURL=chunk-
|
|
640
|
+
//# sourceMappingURL=chunk-DXKJY3NT.js.map
|
|
@@ -3532,6 +3532,7 @@ async function listCommitsForWorkspace(db, agent, opts) {
|
|
|
3532
3532
|
return { vcs: row.backend, baseRef, commits, workspacePath: row.path };
|
|
3533
3533
|
}
|
|
3534
3534
|
async function isWorkspaceClean(row) {
|
|
3535
|
+
if (row.backend === "none") return false;
|
|
3535
3536
|
const backend = backendByName(row.backend);
|
|
3536
3537
|
let clean;
|
|
3537
3538
|
try {
|
|
@@ -3540,7 +3541,6 @@ async function isWorkspaceClean(row) {
|
|
|
3540
3541
|
return false;
|
|
3541
3542
|
}
|
|
3542
3543
|
if (!clean) return false;
|
|
3543
|
-
if (row.backend === "none") return true;
|
|
3544
3544
|
if (row.parentRef === null || row.parentRef.length === 0) return false;
|
|
3545
3545
|
try {
|
|
3546
3546
|
const commits = await backend.commitsSinceBase(row.path, row.parentRef);
|
|
@@ -4744,6 +4744,36 @@ var AgentCtlUnreachableError = class extends Error {
|
|
|
4744
4744
|
];
|
|
4745
4745
|
}
|
|
4746
4746
|
};
|
|
4747
|
+
var AgentPaneDeadError = class extends Error {
|
|
4748
|
+
constructor(agentName, workstream, paneId) {
|
|
4749
|
+
super(
|
|
4750
|
+
`agent ${agentName} is dead: its pane ${paneId} no longer exists, so its control socket is gone`
|
|
4751
|
+
);
|
|
4752
|
+
this.agentName = agentName;
|
|
4753
|
+
this.workstream = workstream;
|
|
4754
|
+
this.paneId = paneId;
|
|
4755
|
+
}
|
|
4756
|
+
agentName;
|
|
4757
|
+
workstream;
|
|
4758
|
+
paneId;
|
|
4759
|
+
name = "AgentPaneDeadError";
|
|
4760
|
+
errorNextSteps() {
|
|
4761
|
+
return [
|
|
4762
|
+
{
|
|
4763
|
+
intent: "Read the log for why it exited (a bad model or missing API key is common)",
|
|
4764
|
+
command: `mu log -w ${this.workstream}`
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
intent: "Drop the dead registry row, then respawn",
|
|
4768
|
+
command: `mu agent close ${this.agentName} -w ${this.workstream}`
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
intent: "Respawn it",
|
|
4772
|
+
command: `mu agent spawn ${this.agentName} -w ${this.workstream}`
|
|
4773
|
+
}
|
|
4774
|
+
];
|
|
4775
|
+
}
|
|
4776
|
+
};
|
|
4747
4777
|
var AgentAbortNeedsCtlError = class extends Error {
|
|
4748
4778
|
constructor(agentName, workstream, cli) {
|
|
4749
4779
|
super(
|
|
@@ -4933,6 +4963,9 @@ async function ctlRequestFor(agent, sock, req) {
|
|
|
4933
4963
|
async function ctlFailure(agent, sock, e) {
|
|
4934
4964
|
if (e instanceof CtlVersionError) return e;
|
|
4935
4965
|
if (e instanceof CtlUnknownOpError) return extensionOutdated(agent, sock, e);
|
|
4966
|
+
if (await paneGone(agent.paneId)) {
|
|
4967
|
+
return new AgentPaneDeadError(agent.name, agent.workstreamName, agent.paneId);
|
|
4968
|
+
}
|
|
4936
4969
|
return new AgentCtlUnreachableError(
|
|
4937
4970
|
agent.name,
|
|
4938
4971
|
agent.workstreamName,
|
|
@@ -4940,6 +4973,13 @@ async function ctlFailure(agent, sock, e) {
|
|
|
4940
4973
|
errCode(e) === "ENOENT" ? "missing" : "refused"
|
|
4941
4974
|
);
|
|
4942
4975
|
}
|
|
4976
|
+
async function paneGone(paneId) {
|
|
4977
|
+
try {
|
|
4978
|
+
return !await (await activeMux()).paneExists(paneId);
|
|
4979
|
+
} catch {
|
|
4980
|
+
return false;
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4943
4983
|
function recordSend(db, agent, mode, bytes, fields2) {
|
|
4944
4984
|
const detail = Object.entries({ mode, ...fields2 }).filter(([, v]) => v !== void 0).map(([k, v]) => `${k}=${k === "since" ? new Date(Number(v)).toISOString() : v}`).join(" ");
|
|
4945
4985
|
emitEvent(
|
|
@@ -9816,6 +9856,7 @@ export {
|
|
|
9816
9856
|
AgentSpawnStartupError,
|
|
9817
9857
|
WorkspacePreservedError,
|
|
9818
9858
|
AgentCtlUnreachableError,
|
|
9859
|
+
AgentPaneDeadError,
|
|
9819
9860
|
AgentAbortNeedsCtlError,
|
|
9820
9861
|
AgentAbortTimeoutError,
|
|
9821
9862
|
AgentFreshNeedsCtlError,
|
|
@@ -9884,4 +9925,4 @@ export {
|
|
|
9884
9925
|
agentStateHistogram,
|
|
9885
9926
|
summarizeOwnedTasks
|
|
9886
9927
|
};
|
|
9887
|
-
//# sourceMappingURL=chunk-
|
|
9928
|
+
//# sourceMappingURL=chunk-JYZUNPPO.js.map
|