agent-dealer 1.2.7 → 1.2.9
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/bundle/server/dist/adapters/agent-deck-bind.js +16 -6
- package/bundle/server/dist/adapters/agent-deck-bind.test.js +74 -0
- package/bundle/server/dist/adapters/agent-health.js +14 -3
- package/bundle/server/dist/adapters/github.js +84 -5
- package/bundle/server/dist/adapters/github.test.js +83 -1
- package/bundle/server/dist/adapters/muse-capability.js +443 -24
- package/bundle/server/dist/adapters/muse-capability.test.js +469 -25
- package/bundle/server/dist/adapters/muse-visual-qa.js +114 -0
- package/bundle/server/dist/adapters/muse-visual-qa.test.js +68 -0
- package/bundle/server/dist/adapters/worktree-deps.js +96 -0
- package/bundle/server/dist/adapters/worktree-deps.test.js +144 -0
- package/bundle/server/dist/capacity/muse-probe.js +56 -9
- package/bundle/server/dist/capacity/muse-probe.test.js +188 -1
- package/bundle/server/dist/coordinator/admission.js +14 -1
- package/bundle/server/dist/coordinator/admission.test.js +197 -4
- package/bundle/server/dist/coordinator/auto-merge.integration.test.js +276 -0
- package/bundle/server/dist/coordinator/auto-merge.js +244 -4
- package/bundle/server/dist/coordinator/checks-wait-config.js +19 -0
- package/bundle/server/dist/coordinator/commands.js +284 -23
- package/bundle/server/dist/coordinator/commands.test.js +47 -0
- package/bundle/server/dist/coordinator/deck-outage.integration.test.js +4 -2
- package/bundle/server/dist/coordinator/developer-effect.js +224 -4
- package/bundle/server/dist/coordinator/developer-effect.test.js +288 -3
- package/bundle/server/dist/coordinator/execution-report.js +6 -0
- package/bundle/server/dist/coordinator/execution-report.test.js +7 -0
- package/bundle/server/dist/coordinator/failure-cause.js +64 -1
- package/bundle/server/dist/coordinator/failure-cause.test.js +92 -1
- package/bundle/server/dist/coordinator/failure-reason.js +7 -0
- package/bundle/server/dist/coordinator/failure-reason.test.js +14 -0
- package/bundle/server/dist/coordinator/human-resolution.js +36 -1
- package/bundle/server/dist/coordinator/human-resolution.test.js +33 -0
- package/bundle/server/dist/coordinator/merge-conflict-sync.js +647 -0
- package/bundle/server/dist/coordinator/merge-conflict-sync.test.js +121 -0
- package/bundle/server/dist/coordinator/muse-developer.integration.test.js +9 -4
- package/bundle/server/dist/coordinator/muse-spawn.js +122 -29
- package/bundle/server/dist/coordinator/muse-spawn.test.js +210 -0
- package/bundle/server/dist/coordinator/operator-criteria.js +168 -0
- package/bundle/server/dist/coordinator/operator-criteria.test.js +78 -0
- package/bundle/server/dist/coordinator/operator-verification.integration.test.js +347 -0
- package/bundle/server/dist/coordinator/playbook-feedback.js +693 -0
- package/bundle/server/dist/coordinator/playbook-feedback.test.js +702 -0
- package/bundle/server/dist/coordinator/projection.js +10 -4
- package/bundle/server/dist/coordinator/projection.test.js +13 -0
- package/bundle/server/dist/coordinator/prompts-execution-contract.test.js +107 -0
- package/bundle/server/dist/coordinator/prompts.js +211 -2
- package/bundle/server/dist/coordinator/prompts.test.js +231 -0
- package/bundle/server/dist/coordinator/recovery.js +57 -3
- package/bundle/server/dist/coordinator/recovery.test.js +67 -8
- package/bundle/server/dist/coordinator/reflect-trigger.js +33 -169
- package/bundle/server/dist/coordinator/reflect-trigger.test.js +149 -200
- package/bundle/server/dist/coordinator/repair-cycle.integration.test.js +1 -0
- package/bundle/server/dist/coordinator/reviewer-effect.js +16 -1
- package/bundle/server/dist/coordinator/reviewer-result.js +6 -0
- package/bundle/server/dist/coordinator/routing.js +45 -6
- package/bundle/server/dist/coordinator/routing.test.js +76 -15
- package/bundle/server/dist/coordinator/session-timeouts.js +30 -0
- package/bundle/server/dist/coordinator/usage-cap-defer.js +61 -0
- package/bundle/server/dist/coordinator/usage-cap.integration.test.js +1 -1
- package/bundle/server/dist/coordinator/worker-loop.js +18 -4
- package/bundle/server/dist/db/ci-attempts-migration.test.js +70 -0
- package/bundle/server/dist/db/index.js +18 -0
- package/bundle/server/dist/db/schema.sql +5 -0
- package/bundle/server/dist/docs-execution-analysis.test.js +1 -0
- package/bundle/server/dist/repository/artifacts-for-issue.js +3 -3
- package/bundle/server/dist/repository/human-actions.js +14 -0
- package/bundle/server/dist/repository/issues.js +67 -6
- package/bundle/server/dist/repository/work-items.js +7 -0
- package/bundle/server/dist/repository/worker-sessions.js +51 -2
- package/bundle/server/dist/routes/human-actions.js +10 -8
- package/bundle/server/dist/routes/issues-execution-contract.test.js +321 -0
- package/bundle/server/dist/routes/issues.js +19 -2
- package/bundle/server/dist/runners/muse-code-args.js +25 -0
- package/bundle/server/dist/runners/muse-code-args.test.js +30 -0
- package/bundle/server/dist/runners/muse-code-jsonl.js +106 -11
- package/bundle/server/dist/runners/muse-config-core.js +18 -1
- package/bundle/server/dist/runners/muse-config.test.js +37 -0
- package/bundle/server/dist/runners/muse-serve-session.js +5 -0
- package/bundle/server/dist/runners/spawn-cli.js +116 -0
- package/bundle/server/dist/runners/spawn-cli.test.js +124 -0
- package/bundle/server/package.json +2 -2
- package/bundle/server/static-ui/assets/index-CU6fNntg.js +64 -0
- package/bundle/server/static-ui/assets/{index-DyAJNyfV.css → index-K_YcYkQU.css} +1 -1
- package/bundle/server/static-ui/index.html +2 -2
- package/bundle/shared/dist/execution-analysis.d.ts +22 -22
- package/bundle/shared/dist/execution-contract.d.ts +117 -0
- package/bundle/shared/dist/execution-contract.js +307 -0
- package/bundle/shared/dist/execution-contract.test.d.ts +2 -0
- package/bundle/shared/dist/execution-contract.test.js +499 -0
- package/bundle/shared/dist/execution-report.d.ts +9 -9
- package/bundle/shared/dist/execution-report.js +2 -0
- package/bundle/shared/dist/failure-cause.d.ts +4 -4
- package/bundle/shared/dist/failure-cause.js +2 -0
- package/bundle/shared/dist/human-actions.d.ts +4 -4
- package/bundle/shared/dist/human-actions.js +17 -0
- package/bundle/shared/dist/index.d.ts +85 -84
- package/bundle/shared/dist/index.js +3 -0
- package/bundle/shared/dist/issues.d.ts +176 -16
- package/bundle/shared/dist/issues.js +22 -0
- package/bundle/shared/dist/issues.test.js +3 -0
- package/bundle/shared/dist/outbound-draft.d.ts +12 -12
- package/bundle/shared/dist/worker-sessions.d.ts +10 -0
- package/bundle/shared/dist/worker-sessions.js +8 -0
- package/bundle/shared/dist/worker-sessions.test.js +1 -0
- package/bundle/shared/dist/workflow.d.ts +4 -4
- package/bundle/shared/dist/workflow.js +16 -0
- package/bundle/shared/dist/workflow.test.js +3 -0
- package/bundle/shared/package.json +1 -1
- package/dist/action.js +4 -1
- package/dist/action.test.js +42 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/bundle/server/static-ui/assets/index-yLyxRd-7.js +0 -64
package/dist/action.js
CHANGED
|
@@ -29,13 +29,16 @@ export async function runActionCommand(args) {
|
|
|
29
29
|
const id = rest[0];
|
|
30
30
|
const choice = flag(rest, "--choice");
|
|
31
31
|
const resolvedBy = flag(rest, "--by");
|
|
32
|
+
// NOT-314: operator_verification requires a non-empty note (the result,
|
|
33
|
+
// waiver reason, or repair note) — the server 400s without one.
|
|
34
|
+
const note = flag(rest, "--note");
|
|
32
35
|
if (!id || !choice || !resolvedBy) {
|
|
33
36
|
console.error("resolve requires an action id, --choice, and --by");
|
|
34
37
|
return 1;
|
|
35
38
|
}
|
|
36
39
|
const result = await apiFetch(`/api/human-actions/${id}/resolve`, {
|
|
37
40
|
method: "POST",
|
|
38
|
-
body: { choice, resolvedBy },
|
|
41
|
+
body: note?.trim() ? { choice, resolvedBy, note: note.trim() } : { choice, resolvedBy },
|
|
39
42
|
});
|
|
40
43
|
console.log(JSON.stringify(result, null, 2));
|
|
41
44
|
return 0;
|
package/dist/action.test.js
CHANGED
|
@@ -54,6 +54,48 @@ test("action resolve calls POST /api/human-actions/:id/resolve with resolvedBy a
|
|
|
54
54
|
stub.restore();
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
+
test("action resolve forwards --note when given (required for operator_verification)", async () => {
|
|
58
|
+
const stub = stubFetch("/api/human-actions/a1/resolve", "POST", { issueStatus: "needs_human" });
|
|
59
|
+
try {
|
|
60
|
+
const code = await runActionCommand([
|
|
61
|
+
"resolve",
|
|
62
|
+
"a1",
|
|
63
|
+
"--choice",
|
|
64
|
+
"verified",
|
|
65
|
+
"--by",
|
|
66
|
+
"alice",
|
|
67
|
+
"--note",
|
|
68
|
+
"probe output here",
|
|
69
|
+
]);
|
|
70
|
+
assert.equal(code, 0);
|
|
71
|
+
const body = stub.assertCalled();
|
|
72
|
+
assert.deepEqual(body, { choice: "verified", resolvedBy: "alice", note: "probe output here" });
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
stub.restore();
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
test("action resolve omits a blank --note so noteless resolves send the historical body", async () => {
|
|
79
|
+
const stub = stubFetch("/api/human-actions/a1/resolve", "POST", { issueStatus: "closed" });
|
|
80
|
+
try {
|
|
81
|
+
const code = await runActionCommand([
|
|
82
|
+
"resolve",
|
|
83
|
+
"a1",
|
|
84
|
+
"--choice",
|
|
85
|
+
"complete",
|
|
86
|
+
"--by",
|
|
87
|
+
"alice",
|
|
88
|
+
"--note",
|
|
89
|
+
" ",
|
|
90
|
+
]);
|
|
91
|
+
assert.equal(code, 0);
|
|
92
|
+
const body = stub.assertCalled();
|
|
93
|
+
assert.deepEqual(body, { choice: "complete", resolvedBy: "alice" });
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
stub.restore();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
57
99
|
test("action resolve returns nonzero on API failure", async () => {
|
|
58
100
|
const stub = stubFetch("/api/human-actions/a1/resolve", "POST", { error: "bad choice" }, 400);
|
|
59
101
|
try {
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ function printUsage() {
|
|
|
29
29
|
agent-dealer queue list
|
|
30
30
|
agent-dealer queue move <issueId> --top|--bottom|--before <id>|--after <id>
|
|
31
31
|
agent-dealer action list
|
|
32
|
-
agent-dealer action resolve <id> --choice C --by NAME
|
|
32
|
+
agent-dealer action resolve <id> --choice C --by NAME [--note TEXT]
|
|
33
33
|
agent-dealer --version
|
|
34
34
|
|
|
35
35
|
Human control plane for agent execution.`);
|