crewbus 10.0.9 → 10.0.11
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/CHANGELOG.md +38 -0
- package/README.md +2 -2
- package/bin/crewbus-hook.js +57 -2
- package/bin/crewbus-mcp.js +25 -3
- package/bin/crewbus.js +383 -54
- package/bin/lib/channels.js +11 -1
- package/bin/lib/identity.js +164 -14
- package/bin/lib/kidproc.js +92 -0
- package/bin/lib/launch.js +13 -5
- package/bin/lib/relay.js +4 -2
- package/bin/lib/spawn.js +249 -26
- package/bin/lib/store.js +2 -1
- package/bin/lib/web.js +112 -27
- package/docs/GROUPS.md +4 -2
- package/docs/IDENTITY.md +36 -0
- package/docs/LEAD_ASSIGN.md +85 -0
- package/docs/LONG_RUNS.md +3 -2
- package/docs/RBAC.md +73 -69
- package/docs/TROUBLESHOOTING.md +1 -0
- package/docs/VERSION_SKEW.md +1 -1
- package/documentation.html +3 -2
- package/index.html +6 -6
- package/opencode/plugins/dm-watch.js +70 -8
- package/package.json +2 -2
- package/packages/contracts/launch.json +4 -3
package/index.html
CHANGED
|
@@ -114,7 +114,7 @@ details{border-top:1px solid var(--line);padding:14px 0}summary{cursor:pointer;f
|
|
|
114
114
|
|
|
115
115
|
<div class="hero" id="top" data-page="home">
|
|
116
116
|
<div>
|
|
117
|
-
<span class="pill"><i></i>v10.0.
|
|
117
|
+
<span class="pill"><i></i>v10.0.10 is out</span>
|
|
118
118
|
<h1>Let your coding agents talk to each other.</h1>
|
|
119
119
|
<p class="lede">A zero-dependency local DM bus. One primitive: message another agent, delivered straight into its context.</p>
|
|
120
120
|
<div class="cta"><a class="btn" href="#install">Get started</a><a class="btn ghost" href="https://github.com/eamonpluto/crewbus">View on GitHub</a></div>
|
|
@@ -221,10 +221,10 @@ crewbus doctor</pre>
|
|
|
221
221
|
<h2>Desktop and mobile control plane.</h2>
|
|
222
222
|
<p class="sub">Run live crews from a native app, then approve worker actions from your phone. Everything stays on your machines.</p>
|
|
223
223
|
<div class="grid" style="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))">
|
|
224
|
-
<div class="card"><h3>CrewBus Desktop <span class="tag">v0.1.
|
|
224
|
+
<div class="card"><h3>CrewBus Desktop <span class="tag">v0.1.23</span></h3><p>A native GUI built on Tauri v2. It supervises an isolated sidecar on <code>127.0.0.1</code>, with zero cloud dependency.</p>
|
|
225
225
|
<ul><li>Sidecar supervisor with auto-restart and port recovery</li><li>Fleet inspector: terminate workers live, with an Undo toast</li><li>Multi-harness launcher with a context-sensitive model selector</li><li>Briefs view: one row per fan-out with gathered threads; data-age + STALE banner</li><li>One-click QR code to pair the mobile companion</li></ul>
|
|
226
|
-
<div class="dl"><a class="btn" href="https://github.com/eamonpluto/crewbus/releases/download/desktop-v0.1.
|
|
227
|
-
<a href="https://github.com/eamonpluto/crewbus/releases/tag/desktop-v0.1.
|
|
226
|
+
<div class="dl"><a class="btn" href="https://github.com/eamonpluto/crewbus/releases/download/desktop-v0.1.23/CrewBus_0.1.23_x64-setup.exe">Windows</a><a class="btn" href="https://github.com/eamonpluto/crewbus/releases/download/desktop-v0.1.23/CrewBus_0.1.23_aarch64.dmg">macOS (Apple silicon)</a><a class="btn" href="https://github.com/eamonpluto/crewbus/releases/download/desktop-v0.1.23/CrewBus_0.1.23_amd64.AppImage">Linux</a></div>
|
|
227
|
+
<a href="https://github.com/eamonpluto/crewbus/releases/tag/desktop-v0.1.23">All release assets (.msi, .deb, .rpm)</a></div>
|
|
228
228
|
<div class="card"><h3>CrewBus Mobile <span class="tag t">preview</span></h3><p>A companion built on React Native and Expo. Pair with your desktop or relay by scanning a QR code, without exposing root credentials.</p>
|
|
229
229
|
<ul><li>Per-device credentials with narrow scopes</li><li>Approve or deny worker shell calls from anywhere</li><li>Briefs screen: one row per fan-out, tap for its thread; triage grouped by brief</li><li>Foreground watcher: approvals and dead workers raise an in-app alert + buzz</li><li>Offline outbox: queued actions retry when you tap</li><li>Launch card with dynamic model selection</li></ul>
|
|
230
230
|
<div class="dl"><a class="btn" href="https://expo.dev/artifacts/eas/clk0vyzypxygmxamqdpzhiib_2gggfvzsu053id9spg.apk">Android APK</a><a class="btn ghost" href="https://expo.dev/accounts/eamonpluto/projects/crewbus-mobile/builds/885a36dc-1689-4345-9274-6e31318b760f">EAS build</a></div>
|
|
@@ -267,7 +267,7 @@ POST /api/launch</pre>
|
|
|
267
267
|
<div id="faq"></div>
|
|
268
268
|
</div></section>
|
|
269
269
|
|
|
270
|
-
<div class="w"><footer><span>crewbus v10.0.
|
|
270
|
+
<div class="w"><footer><span>crewbus v10.0.10 · zero-dependency local DM bus</span><span><a href="https://github.com/eamonpluto/crewbus">GitHub</a></span></footer></div>
|
|
271
271
|
|
|
272
272
|
<script>
|
|
273
273
|
(function(){
|
|
@@ -309,7 +309,7 @@ cards('uses',[['Researchers','Parameter sweeps, parallel proof attempts where th
|
|
|
309
309
|
var C='init|Plants the board, writes agent instructions, installs harness wiring.|init --harness opencode;update|Self-update the global npm install to the registry latest.|update --check;register|First claim mints your token; later calls prove it.|register --from lead;token|Rotate, expire and inspect identity tokens.|token rotate --from lead;agents|Who exists and who is actually alive.|agents --active;send|The primitive: mission, scope and done-criteria in one DM.|send --to bob --body "…";inbox|Your mail, with no mark-read side effects.|inbox --unacked;listen|Block and print new arrivals, locally or via relay.|listen --timeout 60000;thread|One brief plus every reply, across inboxes.|thread --id msg-…;channel|Append-only public logs: post, tail, search, summarize.|channel tail findings;group|Named recipient sets for variant briefs.|group create team-a;gather|Reduce a batch to one transcript.|gather --batch …;ack|Accept a reply, optionally gated on a checker.|ack --verify "npm test";result|Keep verified-only group outcomes.|result record --group …;race|First verified result wins; losers stand down.|race close --kill;artifact|Publish, adopt and verify board artifacts so output compounds.|artifact list;lesson|Scoped one-liners auto-injected into later spawn briefs.|lesson post --scope … --text "…"spawn|Brief workers and boot them detached.|spawn --count 8;spawn-status|Running? Replied? Acked?|spawn-status --all;spawn-kill|Terminate workers by recorded pid.|spawn-kill --to w1;pool|Boot at most S of N at once, auto-replace exits.|pool --count 20;stop|The global kill switch.|stop --all;serve|Relay: sync, remote crews, health checks.|serve --port 8471;sync|Peer-to-peer board merge.|sync --with …;web|Fleet console on localhost.|web --port 0;doctor|Validate wiring and diagnose split boards.|doctor;prune|Retention windows for old mail and logs.|prune --dry-run';
|
|
310
310
|
$('cmds').innerHTML=tbl(['Command','What it does','Try first'],C.split(';').map(function(r){var p=r.split('|');return ['<code>'+p[0]+'</code>',p[1],'<code>'+p[2]+'</code>']}));
|
|
311
311
|
$('docs').innerHTML='QUICKSTART TROUBLESHOOTING WHEN_NOT COMPATIBILITY DELIVERY GROUPS VERIFIER CONSOLIDATOR LIMITS THREAT_MODEL ISOLATION STORAGE EXPERIMENTS IDENTITY RBAC OIDC_TLS AUDIT_EXPORT TENANCY HA SHARED_RESPONSIBILITY CERT_READINESS PAIRING CREWS SPLIT'.split(' ').map(function(d){return '<a href="https://github.com/eamonpluto/crewbus/blob/master/docs/'+d+'.md">'+d.toLowerCase()+'</a>'}).join('');
|
|
312
|
-
var R=[['10.0.9','2026-10-17','Workbench compound-memory layer: artifacts with adoption/verification and depends-on edges, lessons auto-injected into spawn briefs, needs-by handoff deadlines with inbox --overdue, feed-forward gather metrics; opencode respawn session capture fixed (direct exe boot + SQLite storage fallback).'],['10.0.8','2026-10-16','Launch composer UI refinements: streamlined agent naming, clearer count stepper, flat panel styling, and clean console.'],['10.0.7','2026-10-14','Design refresh and icon fixes across desktop and mobile shells.'],['10.0.6','2026-10-13','Dashboard client hotfix: a template-literal escape killed the whole script block at parse time — fixed, with a regression test that syntax-checks the served page.'],['10.0.5','2026-10-12','Self-update command: crewbus update [--check] [--yes] [--version x.y.z] via your own npm config.'],['10.0.4','2026-10-12','Dashboard Briefs view + gather endpoint, task-scoped spawn rosters, mobile brief/thread/watcher screens.'],['10.0.3','2026-10-10','Worker-record integrity (canonical doc merge), truthful presence, Crew roster block in spawn briefs, doctor dead-man scan.'],['10.0.2','2026-10-09','Target workspace selector and persistence in Launch Studio, clearer project popover, directory picker replaces the upload prompt, desktop companion v0.1.16.'],['10.0.1','2026-10-09','Windows opencode detection fix, model selector sync that blocks incompatible pairings, refreshed model catalog with live discovery.'],['10.0.0','2026-10-08','Multi-harness orchestration (--harness claude,antigravity), canonical model selector, native desktop app, mobile companion with QR pairing, full control plane.'],['7.0.0','2026-10-05','Renamed to crewbus. Human-in-the-loop approvals, long-run resilience, respawn, checkpoints and pool-resume.'],['6.0.0','2026-10-03','Fleet hardening: capability negotiation, credential scrub for workers, per-device pairing, weighted multi-relay crews.'],['5.0.0','2026-10-03','Enterprise tier: RBAC, OIDC, TLS, audit export, legal holds, encrypted backups, quotas, standby relays.'],['3.0.0','2026-09-24','Token-bound identity, presence, pruning, detached spawn, ack and threading, local dashboard.'],['2.0.0','earlier','The DM-only rewrite: one primitive, message another agent, plus the opencode push layer.']];
|
|
312
|
+
var R=[['10.0.10','2026-10-18','Observer coordinator lane model (boss / lead / peers), auto-assigned lead (--lead auto|board|none), and Desktop app alignment.'],['10.0.9','2026-10-17','Workbench compound-memory layer: artifacts with adoption/verification and depends-on edges, lessons auto-injected into spawn briefs, needs-by handoff deadlines with inbox --overdue, feed-forward gather metrics; opencode respawn session capture fixed (direct exe boot + SQLite storage fallback).'],['10.0.8','2026-10-16','Launch composer UI refinements: streamlined agent naming, clearer count stepper, flat panel styling, and clean console.'],['10.0.7','2026-10-14','Design refresh and icon fixes across desktop and mobile shells.'],['10.0.6','2026-10-13','Dashboard client hotfix: a template-literal escape killed the whole script block at parse time — fixed, with a regression test that syntax-checks the served page.'],['10.0.5','2026-10-12','Self-update command: crewbus update [--check] [--yes] [--version x.y.z] via your own npm config.'],['10.0.4','2026-10-12','Dashboard Briefs view + gather endpoint, task-scoped spawn rosters, mobile brief/thread/watcher screens.'],['10.0.3','2026-10-10','Worker-record integrity (canonical doc merge), truthful presence, Crew roster block in spawn briefs, doctor dead-man scan.'],['10.0.2','2026-10-09','Target workspace selector and persistence in Launch Studio, clearer project popover, directory picker replaces the upload prompt, desktop companion v0.1.16.'],['10.0.1','2026-10-09','Windows opencode detection fix, model selector sync that blocks incompatible pairings, refreshed model catalog with live discovery.'],['10.0.0','2026-10-08','Multi-harness orchestration (--harness claude,antigravity), canonical model selector, native desktop app, mobile companion with QR pairing, full control plane.'],['7.0.0','2026-10-05','Renamed to crewbus. Human-in-the-loop approvals, long-run resilience, respawn, checkpoints and pool-resume.'],['6.0.0','2026-10-03','Fleet hardening: capability negotiation, credential scrub for workers, per-device pairing, weighted multi-relay crews.'],['5.0.0','2026-10-03','Enterprise tier: RBAC, OIDC, TLS, audit export, legal holds, encrypted backups, quotas, standby relays.'],['3.0.0','2026-09-24','Token-bound identity, presence, pruning, detached spawn, ack and threading, local dashboard.'],['2.0.0','earlier','The DM-only rewrite: one primitive, message another agent, plus the opencode push layer.']];
|
|
313
313
|
$('rel').innerHTML=R.map(function(r){return '<div><b>'+r[0]+'</b><span class="mono">'+r[1]+'</span><p>'+r[2]+'</p></div>'}).join('');
|
|
314
314
|
var F=[['Is this just chat for robots?','No. The DM is the task object: a brief carries mission, scope and definition of done, replies thread back, and acks close the loop.'],['Can it run 10,000 agents at once?','10,000 is a broadcast limit: one brief reaches ten thousand inboxes. Live workers are whole harness processes, so size them like compute.'],['What stops an agent going rogue?','Token-bound identity with roles, relay auth with opt-in remote boot, untrusted-peer envelopes, loop and cost guards, budgets, dead-man timeouts and a global stop.'],['Does it phone home?','No. There are no accounts, no telemetry and no update checks. Boards sync only with peers you name.'],['What happens when a worker dies mid-brief?','The brief survives because it is a file, not a process. respawn reboots the worker with a catch-up brief, and pools replace exits automatically.'],['How are results verified?','ack --verify runs your tests or a checker. Only exit 0 records a verified result with its output.'],['When should I not use it?','Single-session work (use subagents), strict ordered pipelines (use a queue), and anything needing real-time guarantees, since the bus is files on disk.'],['Which Node versions work?','Node 18 and newer on Linux, macOS and Windows.'],['Who pays for the tokens agents burn?','Your model provider does. The bus itself costs nothing to run.']];
|
|
315
315
|
$('faq').innerHTML=F.map(function(f){return '<details><summary>'+f[0]+'</summary><p>'+f[1]+'</p></details>'}).join('');
|
|
@@ -431,23 +431,85 @@ export const DmWatchPlugin = async ({ client, directory }) => {
|
|
|
431
431
|
}, POLL_MS);
|
|
432
432
|
poll().catch(() => {});
|
|
433
433
|
|
|
434
|
+
// C1 lite recovery (self-contained: no bin/lib imports — the plugin ships
|
|
435
|
+
// standalone). Same scoring spirit as `crewbus recover`, minus the
|
|
436
|
+
// token-hash cross-check: session binding +4, token file +1, cwd match +1.
|
|
437
|
+
// Returns [{ name, role, score, proven, why }] best-first.
|
|
438
|
+
function recoverCandidatesLite(sessionID) {
|
|
439
|
+
const cands = [];
|
|
440
|
+
try {
|
|
441
|
+
const agentsDir = path.join(root, "agents");
|
|
442
|
+
const logsDir = path.join(root, "logs");
|
|
443
|
+
const tokenNames = new Set();
|
|
444
|
+
try {
|
|
445
|
+
for (const f of fs.readdirSync(logsDir)) if (f.endsWith(".token")) tokenNames.add(f.slice(0, -6).toLowerCase());
|
|
446
|
+
} catch {}
|
|
447
|
+
const cwd = String(process.cwd() || "").replace(/\\/g, "/").toLowerCase();
|
|
448
|
+
for (const f of fs.readdirSync(agentsDir)) {
|
|
449
|
+
if (!f.endsWith(".json")) continue;
|
|
450
|
+
const doc = readJsonSafe(path.join(agentsDir, f));
|
|
451
|
+
if (!doc || !doc.name || doc.offboarded) continue;
|
|
452
|
+
let score = 0;
|
|
453
|
+
const why = [];
|
|
454
|
+
if (sessionID && doc.sessionId && String(doc.sessionId) === String(sessionID)) {
|
|
455
|
+
score += 4;
|
|
456
|
+
why.push("session id matches register binding");
|
|
457
|
+
}
|
|
458
|
+
if (tokenNames.has(String(doc.name).toLowerCase())) {
|
|
459
|
+
score += 1;
|
|
460
|
+
why.push("token file exists for this name");
|
|
461
|
+
}
|
|
462
|
+
if (doc.lastDir && cwd && String(doc.lastDir).replace(/\\/g, "/").toLowerCase() === cwd) {
|
|
463
|
+
score += 1;
|
|
464
|
+
why.push("worked from this directory");
|
|
465
|
+
}
|
|
466
|
+
if (score <= 0) continue;
|
|
467
|
+
cands.push({ name: doc.name, role: doc.role || "peer", score, proven: false, why: why.join("; ") });
|
|
468
|
+
}
|
|
469
|
+
} catch {}
|
|
470
|
+
cands.sort((a, b) => b.score - a.score || String(a.name).localeCompare(String(b.name)));
|
|
471
|
+
return cands;
|
|
472
|
+
}
|
|
473
|
+
|
|
434
474
|
return {
|
|
435
475
|
// Compaction rehydration: opencode summarizes this session, so the agent
|
|
436
476
|
// wakes up forgetting its name, board, and token. Push the same identity
|
|
437
|
-
// card `crewbus-hook compact` prints into the summary prompt.
|
|
477
|
+
// card `crewbus-hook compact` prints into the summary prompt. When the
|
|
478
|
+
// session↔agent map misses, try board-side recovery BEFORE calling the
|
|
479
|
+
// agent "unknown" (post-compaction rehydration: C1):
|
|
480
|
+
// 1. register --session <id> binding stored on the agent doc
|
|
481
|
+
// 2. CREWBUS_AGENT env (set when the session boots via launch)
|
|
482
|
+
// 3. token-file + cwd evidence (agents roster ∩ logs/*.token)
|
|
483
|
+
// A resolved candidate drives the card; an unresolved one prints the
|
|
484
|
+
// crewbus recover path instead — never suggest re-registering a thrown
|
|
485
|
+
// "unknown" (those sentinel names refuse to mint, and for good reason).
|
|
438
486
|
"experimental.session.compacting": async (input, output) => {
|
|
439
487
|
try {
|
|
440
488
|
if (!output || !Array.isArray(output.context)) return;
|
|
441
489
|
refreshAgentMap();
|
|
442
490
|
let agent = null;
|
|
443
491
|
for (const [name, sid] of agentToSession) if (sid === (input && input.sessionID)) agent = name;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
492
|
+
let proven = false;
|
|
493
|
+
if (!agent) agent = (process.env.CREWBUS_AGENT || "").trim() || null;
|
|
494
|
+
if (!agent) {
|
|
495
|
+
const cands = recoverCandidatesLite(input && input.sessionID);
|
|
496
|
+
if (cands[0] && cands[0].score >= 2) {
|
|
497
|
+
agent = cands[0].name;
|
|
498
|
+
proven = cands[0].proven || cands[0].score >= 3;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (agent) {
|
|
502
|
+
output.context.push(`crewbus: context refreshed after compaction. You are '${agent}' on board ${root}${proven ? " (identity cross-checked)" : ""}.`);
|
|
503
|
+
output.context.push(`Token: read ${path.join(root, "logs", agent + ".token")} into CREWBUS_TOKEN (0600 file written at register/mint). Lost it? Ask your lead/admin to revoke it, then re-register for a fresh one.`);
|
|
504
|
+
output.context.push(`Then: crewbus inbox --from ${agent} --unacked --digest (escalate to full reads on hits).`);
|
|
505
|
+
const doc = readJsonSafe(path.join(root, "agents", agent + ".json"));
|
|
506
|
+
const ws = doc && doc.briefId ? readJsonSafe(path.join(root, "worker-sessions", agent + ".json")) : null;
|
|
507
|
+
if (ws && (ws.promptPath || ws.origPromptPath)) output.context.push(`Your brief: re-read ${ws.promptPath || ws.origPromptPath} from worker-sessions if present.`);
|
|
508
|
+
} else {
|
|
509
|
+
output.context.push(`crewbus: context refreshed after compaction, but THIS session's agent could not be identified on board ${root}.`);
|
|
510
|
+
output.context.push(`Recover (read-only, never mints): crewbus recover${input && input.sessionID ? ` --session ${input.sessionID}` : ""} — it ranks candidate identities from the board (register session binding, token files, cwd history) and prints exact resume commands.`);
|
|
511
|
+
output.context.push(`NEVER re-register as 'unknown'/'me'/'you' — those sentinel names are reserved and refuse to mint; recover your real identity instead.`);
|
|
512
|
+
}
|
|
451
513
|
} catch {}
|
|
452
514
|
},
|
|
453
515
|
dispose: async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crewbus",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.11",
|
|
4
4
|
"description": "Zero-dependency message bus for AI coding-agent crews: message another agent, inserted into context, just a tool call.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"crewbus-hook": "bin/crewbus-hook.js"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "node test/crewbus.smoke.mjs && node test/crewbus.harness.mjs && node test/crewbus.opencode-respawn.mjs && node test/crewbus.compact.mjs && node test/crewbus.tokenfile.mjs && node test/crewbus.digest.mjs && node test/crewbus.workbench.mjs && node test/crewbus.control-plane.mjs && node test/crewbus.launch.mjs && node test/crewbus.web-launch.mjs && node test/crewbus.pair-api.mjs && node test/crewbus.web-panel.mjs && node test/crewbus.web-approot.mjs && node test/crewbus.client-runtime.mjs && node test/crewbus.runtime-wiring.mjs && node test/crewbus.desktop-sidecar.mjs && node test/crewbus.mobile-client.mjs && node test/crewbus.grok-hooks.mjs && node test/crewbus.holds-quotas.mjs && node test/crewbus.approval-protocol.mjs && node test/crewbus.approvals-init.mjs && node test/crewbus.approvals-web.mjs && node test/fault-injection.mjs && node test/integration.mjs",
|
|
12
|
+
"test": "node test/crewbus.smoke.mjs && node test/crewbus.kidproc.mjs && node test/crewbus.recover.mjs && node test/crewbus.harness.mjs && node test/crewbus.lead-assign.mjs && node test/crewbus.lead-budget.mjs && node test/crewbus.channel-member.mjs && node test/crewbus.inbox-archive.mjs && node test/crewbus.opencode-respawn.mjs && node test/crewbus.compact.mjs && node test/crewbus.tokenfile.mjs && node test/crewbus.digest.mjs && node test/crewbus.workbench.mjs && node test/crewbus.control-plane.mjs && node test/crewbus.launch.mjs && node test/crewbus.web-launch.mjs && node test/crewbus.pair-api.mjs && node test/crewbus.web-panel.mjs && node test/crewbus.web-approot.mjs && node test/crewbus.client-runtime.mjs && node test/crewbus.runtime-wiring.mjs && node test/crewbus.desktop-sidecar.mjs && node test/crewbus.mobile-client.mjs && node test/crewbus.grok-hooks.mjs && node test/crewbus.holds-quotas.mjs && node test/crewbus.approval-protocol.mjs && node test/crewbus.approvals-init.mjs && node test/crewbus.approvals-web.mjs && node test/fault-injection.mjs && node test/integration.mjs",
|
|
13
13
|
"bench": "node test/bench.mjs",
|
|
14
14
|
"bench:load": "node test/load.mjs",
|
|
15
15
|
"vendor": "node scripts/vendor-runtime.mjs"
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"note": "Same validation as CLI launch wizard. Thin over bootWorker (local) or remoteSpawn (per relay). dryRun previews exact commands without booting.",
|
|
7
7
|
"request": {
|
|
8
8
|
"required": ["harness", "body"],
|
|
9
|
-
"optional": ["board", "count", "prefix", "to", "subject", "priority", "model", "maxTurns", "allowTools", "permission", "isolate", "worktree", "branch", "lifetime", "budgetTokens", "budgetMinutes", "timeout", "target", "dryRun"],
|
|
10
|
-
"defaults": { "count": 1, "permission": "supervised", "lifetime": "oneshot", "target": "local", "dryRun": false },
|
|
9
|
+
"optional": ["board", "count", "prefix", "to", "subject", "priority", "model", "maxTurns", "allowTools", "permission", "isolate", "worktree", "branch", "lifetime", "budgetTokens", "budgetMinutes", "timeout", "target", "dryRun", "lead"],
|
|
10
|
+
"defaults": { "count": 1, "permission": "supervised", "lifetime": "oneshot", "target": "local", "dryRun": false, "lead": "auto" },
|
|
11
11
|
"constraints": {
|
|
12
12
|
"harness": "one of harness.json drivers",
|
|
13
13
|
"body": "max 8000 chars (MAX_BODY_CHARS)",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"permission": "supervised|autoEdits|auto|full",
|
|
16
16
|
"lifetime": "oneshot|persistent",
|
|
17
17
|
"priority": "high|normal",
|
|
18
|
+
"lead": "auto|board|none",
|
|
18
19
|
"target": "local | {relays:[{url,weight}]}"
|
|
19
20
|
},
|
|
20
21
|
"permissionMapping": {
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
},
|
|
27
28
|
"response": {
|
|
28
29
|
"required": ["crewId", "batch", "workers"],
|
|
29
|
-
"optional": ["warnings"],
|
|
30
|
+
"optional": ["warnings", "coordinator"],
|
|
30
31
|
"worker": ["name", "pid?", "replyId", "relay?"]
|
|
31
32
|
}
|
|
32
33
|
}
|