benignswarm 0.12.79 → 0.12.80
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/args.js +2 -2
- package/dist/commands/agent.js +4 -0
- package/dist/commands/join.js +7 -1
- package/dist/commands/wu.js +59 -23
- package/dist/git.js +25 -0
- package/dist/harness.js +4 -0
- package/dist/help.js +20 -17
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/args.js
CHANGED
|
@@ -3,8 +3,8 @@ import { CliError } from "./errors.js";
|
|
|
3
3
|
// These options accept comma-separated collections, so repeating them should
|
|
4
4
|
// append another collection instead of discarding earlier values.
|
|
5
5
|
export const LIST_FLAGS = ["tags", "projects", "evidence", "statuses", "depends-on", "default-tags", "units", "waits-on", "needs", "exclude", "remove", "post", "harness", "variant", "requires"];
|
|
6
|
-
export const STRING_FLAGS = ["as", "admin", "key", "url", "label", "model", "since", "limit", "after", "topic", "goal", "task", "state", "blocked-on", "tags", "custom", "vendor", "role", "description", "permissions", "cardinality", "machine", "dir", "confirm", "type", "name", "out", "token", "prefix", "uses", "expires-hours", "skill-dir", "harness", "reply-to", "event", "project", "projects", "post", "title", "body", "body-file", "handoff-to", "evidence", "agent", "parent", "parent-item", "channel", "statuses", "assign", "if-status", "status", "exec", "interval", "requeue-after", "unacked-after", "category", "command", "follow-delay", "env", "scope", "pr", "note", "add", "remove", "merged", "tag", "activity", "max-unanswered", "to", "replay-of", "branch", "effort", "by", "target", "milestone", "file", "exit", "depends-on", "default-tags", "source", "by", "on", "question", "ruling", "gaps", "unit", "units", "blocks", "sla", "takeover", "max-open", "max-in-progress", "require-scope", "require-evidence", "default-approver", "merged-by", "integrator-role", "require-rebased", "require-merge-commit", "require-pushed", "quiet", "summary", "meaning", "expert-role", "reviews", "works", "trials", "email", "repeat", "summary-minutes", "churn", "unmet", "require-cited-changes", "checks-every", "propose", "waits-on", "sandbox", "thread", "turn-timeout", "session", "plain", "if-yes", "if-no", "ssh", "variant", "count", "needs", "min-ram", "exclude", "carry", "from", "to-ssh", "wait", "writable", "for", "until", "reason", "at", "requires", "priority", "informs", "amend", "waive-informs", "text", "kind", "claim", "decision"];
|
|
7
|
-
export const BOOL_FLAGS = ["latest", "no-restart", "json", "follow", "account", "help", "version", "broadcast", "create-channels", "read-account-status", "replace-key", "mentions-me", "no-skill", "replace", "unread", "pending", "force", "no-hooks", "yes", "open", "bind-here", "peek", "once", "launchd", "full", "no-bind", "all", "here", "keep-worktree", "prune", "abandon", "defer", "hold", "clear", "met", "shared", "archive", "approve", "turn", "service", "print-hooks", "create", "rotate", "codex-userns", "bwrap-userns", "print-apparmor", "cancel"];
|
|
6
|
+
export const STRING_FLAGS = ["as", "admin", "key", "url", "label", "model", "since", "limit", "after", "topic", "goal", "task", "state", "blocked-on", "tags", "custom", "vendor", "role", "description", "permissions", "cardinality", "machine", "dir", "confirm", "type", "name", "out", "token", "prefix", "uses", "expires-hours", "skill-dir", "harness", "reply-to", "event", "project", "projects", "post", "title", "body", "body-file", "handoff-to", "evidence", "agent", "parent", "parent-item", "channel", "statuses", "assign", "if-status", "status", "exec", "interval", "requeue-after", "unacked-after", "category", "command", "follow-delay", "env", "scope", "append", "pr", "note", "add", "remove", "merged", "tag", "activity", "max-unanswered", "to", "replay-of", "branch", "effort", "by", "target", "milestone", "file", "exit", "depends-on", "default-tags", "source", "by", "on", "question", "ruling", "gaps", "unit", "units", "blocks", "sla", "takeover", "max-open", "max-in-progress", "require-scope", "require-evidence", "default-approver", "merged-by", "integrator-role", "require-rebased", "require-merge-commit", "require-pushed", "quiet", "summary", "meaning", "expert-role", "reviews", "works", "trials", "email", "repeat", "summary-minutes", "churn", "unmet", "require-cited-changes", "checks-every", "propose", "waits-on", "sandbox", "thread", "turn-timeout", "session", "plain", "if-yes", "if-no", "ssh", "variant", "count", "needs", "min-ram", "exclude", "carry", "from", "to-ssh", "wait", "writable", "for", "until", "reason", "at", "requires", "priority", "informs", "amend", "waive-informs", "text", "kind", "claim", "decision"];
|
|
7
|
+
export const BOOL_FLAGS = ["latest", "no-restart", "json", "follow", "account", "help", "version", "broadcast", "create-channels", "read-account-status", "replace-key", "mentions-me", "no-skill", "replace", "scope-only", "unread", "pending", "force", "no-hooks", "yes", "open", "bind-here", "peek", "once", "launchd", "full", "no-bind", "all", "here", "keep-worktree", "prune", "abandon", "defer", "hold", "clear", "met", "shared", "archive", "approve", "turn", "service", "print-hooks", "create", "rotate", "codex-userns", "bwrap-userns", "print-apparmor", "cancel"];
|
|
8
8
|
export function parse(argv) {
|
|
9
9
|
const options = {};
|
|
10
10
|
for (const f of STRING_FLAGS)
|
package/dist/commands/agent.js
CHANGED
|
@@ -359,10 +359,14 @@ export async function skill(p, out) {
|
|
|
359
359
|
const main = await fetchText("/skill/SKILL.md");
|
|
360
360
|
const api = await fetchText("/skill/references/api.md");
|
|
361
361
|
const watchers = await fetchText("/skill/references/watchers.md");
|
|
362
|
+
const processGuide = await fetchText("/skill/references/process.md");
|
|
363
|
+
const continuity = await fetchText("/skill/references/continuity.md");
|
|
362
364
|
mkdirSync(join(dir, "references"), { recursive: true });
|
|
363
365
|
writeFileSync(join(dir, "SKILL.md"), main);
|
|
364
366
|
writeFileSync(join(dir, "references", "api.md"), api);
|
|
365
367
|
writeFileSync(join(dir, "references", "watchers.md"), watchers);
|
|
368
|
+
writeFileSync(join(dir, "references", "process.md"), processGuide);
|
|
369
|
+
writeFileSync(join(dir, "references", "continuity.md"), continuity);
|
|
366
370
|
out.print(`Installed skill to ${dir}`, { dir });
|
|
367
371
|
return;
|
|
368
372
|
}
|
package/dist/commands/join.js
CHANGED
|
@@ -21,7 +21,13 @@ async function fetchSkill(url) {
|
|
|
21
21
|
throw new CliError("fetch_failed", `${url}${p} returned ${res.status}`);
|
|
22
22
|
return res.text();
|
|
23
23
|
};
|
|
24
|
-
return {
|
|
24
|
+
return {
|
|
25
|
+
skill: await get("/skill/SKILL.md"),
|
|
26
|
+
api: await get("/skill/references/api.md"),
|
|
27
|
+
watchers: await get("/skill/references/watchers.md"),
|
|
28
|
+
process: await get("/skill/references/process.md"),
|
|
29
|
+
continuity: await get("/skill/references/continuity.md"),
|
|
30
|
+
};
|
|
25
31
|
}
|
|
26
32
|
function harnessList(p, vendor) {
|
|
27
33
|
const flag = str(p.flags, "harness");
|
package/dist/commands/wu.js
CHANGED
|
@@ -7,9 +7,34 @@ import { readState } from "../state.js";
|
|
|
7
7
|
import { codexRollout, sessionsOf } from "../sessions.js";
|
|
8
8
|
import { sessionUsage } from "../usage.js";
|
|
9
9
|
import { CliError } from "../errors.js";
|
|
10
|
-
import { branchAndHead, commitAtTime, ensureReviewWorktree, ensureWorktree, fetchRef, fullSha, isAncestor,
|
|
10
|
+
import { branchAndHead, commitAtTime, ensureReviewWorktree, ensureWorktree, fetchRef, findRemoteCommitBranch, formatRemoteCommitFailure, formatRemoteCommitSuccess, fullSha, isAncestor, removeWorktreeIfClean, repoName, repoParent, verifyMergedCommit, worktreeForBranch } from "../git.js";
|
|
11
11
|
import { resolve } from "node:path";
|
|
12
12
|
import { table } from "../output.js";
|
|
13
|
+
export function scopeEditFromArgs(p) {
|
|
14
|
+
const replacement = bool(p.flags, "replace");
|
|
15
|
+
const append = str(p.flags, "append");
|
|
16
|
+
const scope = str(p.flags, "scope");
|
|
17
|
+
const note = str(p.flags, "note");
|
|
18
|
+
if (Number(replacement) + Number(append !== undefined) + Number(scope !== undefined) !== 1)
|
|
19
|
+
throw new CliError("usage", "choose exactly one of --replace, --append, or --scope");
|
|
20
|
+
if (!note)
|
|
21
|
+
throw new CliError("usage", "wu scope needs --note explaining the amendment");
|
|
22
|
+
if (replacement) {
|
|
23
|
+
const pieces = p.positionals.slice(3);
|
|
24
|
+
if (pieces.length !== 2 || !pieces[0] || !pieces[1])
|
|
25
|
+
throw new CliError("usage", "--replace needs two positional strings: '<old>' '<new>'");
|
|
26
|
+
return { replace: { old: pieces[0], new: pieces[1] }, note };
|
|
27
|
+
}
|
|
28
|
+
if (append !== undefined) {
|
|
29
|
+
if (!append.trim())
|
|
30
|
+
throw new CliError("usage", "--append needs non-empty text");
|
|
31
|
+
return { append, note };
|
|
32
|
+
}
|
|
33
|
+
return { scope: scope, note };
|
|
34
|
+
}
|
|
35
|
+
export function scopeOnlyOutput(unit, only) {
|
|
36
|
+
return only ? unit.scope : null;
|
|
37
|
+
}
|
|
13
38
|
export function assignmentDisposition(unit, to) {
|
|
14
39
|
if (unit.status !== "queued")
|
|
15
40
|
return `Assigned to ${unit.owner_name}; they start it with bschat wu start ${unit.number}.`;
|
|
@@ -209,21 +234,27 @@ export async function wu(p, out) {
|
|
|
209
234
|
// The rebase requirement may come from the project or from a tag; the server tells us which
|
|
210
235
|
// when it refuses. Check locally whenever we are in a repo so the claim is always a finding.
|
|
211
236
|
let pushed = null;
|
|
237
|
+
let remoteCommitBranch = null;
|
|
212
238
|
if (where.head) {
|
|
213
239
|
rebased = isAncestor(unitTarget, "HEAD");
|
|
214
|
-
if (rebased === null)
|
|
215
|
-
rebased = null;
|
|
216
|
-
// Pushed means the remote branch is at this exact head: what a reviewer elsewhere can fetch.
|
|
217
240
|
if (where.branch) {
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
pushed =
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
if (
|
|
226
|
-
|
|
241
|
+
const localBranch = where.branch;
|
|
242
|
+
const check = findRemoteCommitBranch(where.head, localBranch);
|
|
243
|
+
pushed = check.remoteBranch ? true : check.checked ? false : null;
|
|
244
|
+
if (check.remoteBranch) {
|
|
245
|
+
remoteCommitBranch = check.remoteBranch;
|
|
246
|
+
where.branch = check.remoteBranch.replace(/^origin\//, "");
|
|
247
|
+
}
|
|
248
|
+
else if (def.merge.require_pushed) {
|
|
249
|
+
const message = formatRemoteCommitFailure(localBranch, check.checkedRef, check.reason ?? "no containing origin branch was found");
|
|
250
|
+
throw new CliError(check.checked ? "not_pushed" : "remote_unavailable", message, check.checked ? `git push -u origin ${localBranch}, then submit again` : "Check that origin is reachable, then rerun bschat wu submit");
|
|
251
|
+
}
|
|
252
|
+
else if (pushed !== true) {
|
|
253
|
+
process.stderr.write(`bschat: ${formatRemoteCommitFailure(localBranch, check.checkedRef, check.reason ?? "no containing origin branch was found")}\n`);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
else if (def.merge.require_pushed) {
|
|
257
|
+
throw new CliError("remote_unavailable", formatRemoteCommitFailure("(detached HEAD)", "origin/<branch>", "the current checkout has no local branch name"), "Check out the unit branch and rerun bschat wu submit");
|
|
227
258
|
}
|
|
228
259
|
}
|
|
229
260
|
const pr = str(p.flags, "pr") ?? null;
|
|
@@ -231,7 +262,7 @@ export async function wu(p, out) {
|
|
|
231
262
|
const payload = submitPayload({ evidence: evidenceIds, ...where, pr_url: pr, rebased, pushed, usage }, !!def.review_rules?.length, unitTarget);
|
|
232
263
|
const r = await client.call("POST", `${base}/${num()}/submit`, payload);
|
|
233
264
|
const u = r.unit;
|
|
234
|
-
out.print(`${fmt(u)}\n${u.status === "classifying" ? `Waiting for ${u.reviewers[0]?.name} to classify it.` : `Routed to ${u.reviewers.map((x) => `@${x.name}`).join(", ")}; you will be told in chat when it is reviewed.`}`, r);
|
|
265
|
+
out.print(`${fmt(u)}\n${u.status === "classifying" ? `Waiting for ${u.reviewers[0]?.name} to classify it.` : `Routed to ${u.reviewers.map((x) => `@${x.name}`).join(", ")}; you will be told in chat when it is reviewed.`}${remoteCommitBranch ? `\n${formatRemoteCommitSuccess(remoteCommitBranch)}` : ""}`, r);
|
|
235
266
|
return;
|
|
236
267
|
}
|
|
237
268
|
case "reopen": {
|
|
@@ -298,11 +329,8 @@ export async function wu(p, out) {
|
|
|
298
329
|
return;
|
|
299
330
|
}
|
|
300
331
|
case "scope": {
|
|
301
|
-
const
|
|
302
|
-
const
|
|
303
|
-
if (!scope || !note)
|
|
304
|
-
throw new CliError("usage", 'wu scope <n> --scope "what it now covers" --note "why" (assigner or operator; the owner opens a second unit instead)');
|
|
305
|
-
const r = await client.call("POST", `${base}/${num()}/scope`, { scope, note });
|
|
332
|
+
const edit = scopeEditFromArgs(p);
|
|
333
|
+
const r = await client.call("POST", `${base}/${num()}/scope`, edit);
|
|
306
334
|
out.print(`${fmt(r.unit)}\nScope amended; the owner and reviewers were told.`, r);
|
|
307
335
|
return;
|
|
308
336
|
}
|
|
@@ -443,11 +471,14 @@ export async function wu(p, out) {
|
|
|
443
471
|
if (!remote) {
|
|
444
472
|
if (!fetchRef(unit.branch))
|
|
445
473
|
throw new CliError("fetch_failed", `cannot fetch ${unit.branch} from origin`, `Is it pushed? Ask ${unit.owner_name}: git push -u origin ${unit.branch}`);
|
|
446
|
-
|
|
474
|
+
const fetchedTip = fullSha("FETCH_HEAD");
|
|
475
|
+
if (!fetchedTip)
|
|
476
|
+
throw new CliError("fetch_failed", `fetched origin/${unit.branch} but found no commit`);
|
|
477
|
+
if (isAncestor(unit.head, "FETCH_HEAD") !== true)
|
|
478
|
+
throw new CliError("head_mismatch", `origin/${unit.branch} does not contain WU #${n}'s submitted commit ${unit.head}`, `Ask ${unit.owner_name} to push the submitted commit or resubmit a commit that is on origin/${unit.branch}.`);
|
|
479
|
+
remote = fullSha(unit.head);
|
|
447
480
|
if (!remote)
|
|
448
|
-
throw new CliError("
|
|
449
|
-
if (!remote.startsWith(unit.head))
|
|
450
|
-
throw new CliError("head_mismatch", `origin/${unit.branch} is at ${remote.slice(0, 9)} but WU #${n} was submitted at ${unit.head}`, `Either the owner pushed more since submitting (ask for a resubmit) or has not pushed the submitted commit.`);
|
|
481
|
+
throw new CliError("head_mismatch", `origin/${unit.branch} contains no readable submitted commit ${unit.head}`);
|
|
451
482
|
}
|
|
452
483
|
const path = resolve(parent, `${name}-review-wu${n}`);
|
|
453
484
|
const made = ensureReviewWorktree(path, remote);
|
|
@@ -457,6 +488,11 @@ export async function wu(p, out) {
|
|
|
457
488
|
}
|
|
458
489
|
case "show": {
|
|
459
490
|
const r = await client.call("GET", `${base}/${num()}`);
|
|
491
|
+
const onlyScope = scopeOnlyOutput(r.unit, bool(p.flags, "scope-only"));
|
|
492
|
+
if (onlyScope !== null) {
|
|
493
|
+
out.print(onlyScope, { scope: onlyScope });
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
460
496
|
const events = r.events.map((e) => ` ${e.at.slice(0, 16).replace("T", " ")} ${e.type.padEnd(18)} ${e.actor_name}${e.note ? `: ${e.note}` : ""}${e.data?.to && Array.isArray(e.data.to) ? ` -> ${e.data.to.join(", ")}` : ""}`).join("\n");
|
|
461
497
|
out.print(`${fmt(r.unit)}\n${events}`, r);
|
|
462
498
|
return;
|
package/dist/git.js
CHANGED
|
@@ -313,6 +313,31 @@ export function remoteHead(branch, remote = "origin", cwd = process.cwd()) {
|
|
|
313
313
|
const line = r.stdout.split("\n").find((l) => l.trim().endsWith(`refs/heads/${branch}`));
|
|
314
314
|
return line ? line.split(/\s+/)[0] : null;
|
|
315
315
|
}
|
|
316
|
+
/** Fetch origin, then report a remote branch containing the submitted commit. */
|
|
317
|
+
export function findRemoteCommitBranch(sha, localBranch, cwd = process.cwd(), remote = "origin") {
|
|
318
|
+
const checkedRef = `${remote}/${localBranch}`;
|
|
319
|
+
const fetched = spawnSync("git", ["fetch", "--prune", remote], { cwd, encoding: "utf8", timeout: 120_000 });
|
|
320
|
+
if (fetched.status !== 0) {
|
|
321
|
+
const detail = (fetched.stderr || fetched.stdout || `git fetch ${remote} exited with status ${fetched.status ?? "unknown"}`).trim();
|
|
322
|
+
return { remoteBranch: null, checkedRef, checked: false, reason: `git fetch ${remote} failed: ${detail}` };
|
|
323
|
+
}
|
|
324
|
+
const listed = spawnSync("git", ["branch", "-r", "--contains", sha, "--format=%(refname:short)"], { cwd, encoding: "utf8" });
|
|
325
|
+
if (listed.status !== 0) {
|
|
326
|
+
const detail = (listed.stderr || listed.stdout || `git branch -r --contains ${sha} exited with status ${listed.status ?? "unknown"}`).trim();
|
|
327
|
+
return { remoteBranch: null, checkedRef, checked: true, reason: `git branch -r --contains ${sha} failed: ${detail}` };
|
|
328
|
+
}
|
|
329
|
+
const branches = listed.stdout.split("\n").map((line) => line.trim()).filter((line) => line.startsWith(`${remote}/`) && line !== `${remote}/HEAD`).sort();
|
|
330
|
+
const remoteBranch = branches.includes(checkedRef) ? checkedRef : branches[0] ?? null;
|
|
331
|
+
return remoteBranch
|
|
332
|
+
? { remoteBranch, checkedRef, checked: true, reason: null }
|
|
333
|
+
: { remoteBranch: null, checkedRef, checked: true, reason: `git branch -r --contains ${sha} found no ${remote} branch containing the submitted commit` };
|
|
334
|
+
}
|
|
335
|
+
export function formatRemoteCommitFailure(localBranch, checkedRef, reason) {
|
|
336
|
+
return `Could not verify the submitted commit for local branch ${localBranch}: checked ${checkedRef} and other origin branches; ${reason}`;
|
|
337
|
+
}
|
|
338
|
+
export function formatRemoteCommitSuccess(remoteBranch) {
|
|
339
|
+
return `Submitted commit is available on ${remoteBranch}.`;
|
|
340
|
+
}
|
|
316
341
|
/** Full sha of a local ref, or null. */
|
|
317
342
|
export function fullSha(ref, cwd = process.cwd()) {
|
|
318
343
|
return git(["rev-parse", "--verify", "-q", `${ref}^{commit}`], cwd);
|
package/dist/harness.js
CHANGED
|
@@ -114,6 +114,8 @@ export function installForHarness(root, harness, files, agentName, apiUrl, bin)
|
|
|
114
114
|
writeFileSync(join(neutral, "SKILL.md"), files.skill);
|
|
115
115
|
writeFileSync(join(neutral, "references", "api.md"), files.api);
|
|
116
116
|
writeFileSync(join(neutral, "references", "watchers.md"), files.watchers);
|
|
117
|
+
writeFileSync(join(neutral, "references", "process.md"), files.process);
|
|
118
|
+
writeFileSync(join(neutral, "references", "continuity.md"), files.continuity);
|
|
117
119
|
written.push(join(neutral, "SKILL.md"));
|
|
118
120
|
switch (harness) {
|
|
119
121
|
case "claude-code": {
|
|
@@ -122,6 +124,8 @@ export function installForHarness(root, harness, files, agentName, apiUrl, bin)
|
|
|
122
124
|
writeFileSync(join(dir, "SKILL.md"), files.skill);
|
|
123
125
|
writeFileSync(join(dir, "references", "api.md"), files.api);
|
|
124
126
|
writeFileSync(join(dir, "references", "watchers.md"), files.watchers);
|
|
127
|
+
writeFileSync(join(dir, "references", "process.md"), files.process);
|
|
128
|
+
writeFileSync(join(dir, "references", "continuity.md"), files.continuity);
|
|
125
129
|
written.push(join(dir, "SKILL.md"));
|
|
126
130
|
const sp = join(root, ".claude", "settings.local.json");
|
|
127
131
|
let settings = {};
|
package/dist/help.js
CHANGED
|
@@ -24,8 +24,9 @@ Agent commands
|
|
|
24
24
|
bschat status set [--state s] [--goal g] [--task t] [--blocked-on b] [--tags a,b] [--custom '{json}']
|
|
25
25
|
[--checks-every <min>|none] not always on but checking on a schedule: say how often
|
|
26
26
|
bschat status history <agent> [--limit n]
|
|
27
|
-
bschat away (--for <minutes|hours> | --until <ISO timestamp>) --reason "why"
|
|
28
|
-
|
|
27
|
+
bschat away (--for <minutes|hours> | --until <ISO timestamp>) --reason "why" mark yourself away for at most 24 h; the steward stops assigning
|
|
28
|
+
you work and reassigns reviews; use back when you return
|
|
29
|
+
bschat back clear your away status early
|
|
29
30
|
bschat send <channel> <message...> [--reply-to <seq>] @name, @role:name, @role:* are resolved and validated
|
|
30
31
|
bschat send <channel> --body-file <f|-> multi-line / markdown message from a file or stdin (use this for anything long)
|
|
31
32
|
bschat read <channel> [--since <seq>] [--limit n] [--follow] | bschat read --pending
|
|
@@ -37,39 +38,40 @@ Agent commands
|
|
|
37
38
|
worktree; tags come from the vocabulary; --target is the branch it lands in (default: the
|
|
38
39
|
process target), e.g. a lane branch; wu target <n> <branch|default> changes it before review
|
|
39
40
|
bschat wu assign "<title>" --to <agent|auto|queue> --scope ".." [--tags a,b] [--requires cap,cap] [--force] [--replay-of n] hand out a unit (assigner roles);
|
|
40
|
-
auto
|
|
41
|
-
|
|
41
|
+
--to auto picks the active qualified worker with the lightest load; if nobody fits it
|
|
42
|
+
queues, reports why candidates were passed over, and the sweep chases it;
|
|
43
|
+
--to queue waits deliberately and says so; naming a
|
|
42
44
|
busy worker reserves it for them (theirs when free, anyone's after the takeover
|
|
43
45
|
window); --hold keeps it assigned to them however long it takes
|
|
44
46
|
bschat wu take <n> [--to <agent>] pull a queued unit for yourself (qualified by works or trial), or hand it to someone
|
|
45
47
|
bschat wu next take the oldest queued unit you qualify for
|
|
46
48
|
bschat wu decline <n> --note "why" [--waits-on <milestone,...> | --defer] decline an assignment; a steward planning unit
|
|
47
49
|
("Advance milestone X") needs the plan decision: what X waits on, or defer X
|
|
48
|
-
--to auto picks the active worker qualified for the tags with the lightest load;
|
|
49
|
-
it exists on the board as assigned and the sweep chases it; wu decline <n> --note
|
|
50
50
|
bschat wu start <n> [--branch b | --here] take it up: makes ../<repo>-wu<n> on branch wu/<n>-<slug> (replays: from the
|
|
51
51
|
target as of the original); a worktree left half-written by an interrupted
|
|
52
|
-
checkout is removed and made again; wu open does the same for your own units
|
|
53
|
-
|
|
52
|
+
checkout is removed and made again; wu open does the same for your own units;
|
|
53
|
+
--branch continues existing work; --here uses this checkout
|
|
54
54
|
bschat record per agent per tag: first-round approvals, changes, replays, reviews overturned
|
|
55
55
|
bschat record --by model the same, keyed by model and effort setting (stamped on start and on each verdict)
|
|
56
56
|
bschat milestones the plan's slices: ready or waiting on which, units done/total; wu open|assign --milestone <key>
|
|
57
57
|
bschat milestones set --file plan.json define or replace the plan (assigner roles or the operator): a JSON list of
|
|
58
58
|
{key, title, exit, depends_on, default_tags}; existing keys keep their status; cycles are refused
|
|
59
|
-
bschat milestone add <key> --title ".." [--exit ".."] [--source "docs/plan.md#b0"] [--depends-on a,b] [--informs c,d] [--default-tags a,b] [--priority n] add one slice (assigner
|
|
59
|
+
bschat milestone add <key> --title ".." [--exit ".."] [--source "docs/plan.md#b0"] [--depends-on a,b] [--informs c,d] [--default-tags a,b] [--priority n|none] add one slice (assigner
|
|
60
60
|
roles or the operator); --source is where the full brief lives, read only when planning the slice;
|
|
61
|
-
no exit and no dependencies makes a container for ongoing work; milestone edit (or set) <key> amends
|
|
61
|
+
no exit and no dependencies makes a container for ongoing work; milestone edit (or set) <key> amends;
|
|
62
|
+
--priority <n|none> (higher first): the steward asks for units only on the top ready slices
|
|
62
63
|
bschat milestone show <key> exit criterion, dependencies, counts; wu milestone <n> <key|none> moves a unit
|
|
63
64
|
bschat milestone decide <key> "ruling" --unit <n> record a one-line lead decision for a unit on this slice
|
|
64
65
|
bschat milestone close <key> --note ".." [--evidence a,b] [--abandon | --defer] [--waive-informs ".."] the lead closes a slice against its exit criterion
|
|
66
|
+
(done/defer refused while it has units not done); milestone reopen <key> undoes it
|
|
65
67
|
bschat milestone verdict <key> --met --note ".." [--evidence a,b] | --gaps ".." [--units n,m] [--waive-informs ".."] the closure reviewer judges the exit against the evidence; gap units re-trigger the review when they close
|
|
66
68
|
bschat milestone gap-units <key> --units n,m name the units (on any slice) that address its last gaps verdict: stops the chase, re-reviews when they close
|
|
67
69
|
bschat milestone review <key> assigner or operator: request a closure review now (the steward does it when the last unit closes)
|
|
68
70
|
bschat lock <name> [--unit n] [--note ..] [--shared] take this machine's <name> (build slot, scratch) or queue; --shared for a project-wide resource (a test board)
|
|
71
|
+
acquisition queues through a machine maintenance drain/window and resumes after it
|
|
69
72
|
bschat unlock <name> | bschat locks release it (also released when your unit closes); see holders and queues
|
|
70
|
-
(refused while it has units not done); milestone reopen <key> undoes it
|
|
71
73
|
Global: --effort <high|medium|low|...> reasoning effort to report (else BSCHAT_EFFORT, CLAUDE_EFFORT, codex model_reasoning_effort)
|
|
72
|
-
bschat wu submit <n> [--evidence id[,id...] ...] [--pr url] ask for review; repeat --evidence or pass comma-separated ids; routed to whoever is qualified for the tags (in review: refreshes the head, approvals cleared)
|
|
74
|
+
bschat wu submit <n> [--evidence id[,id...] ...] [--pr url] ask for review; repeat --evidence or pass comma-separated ids; routed to whoever is qualified for the tags (in review: refreshes the head, approvals cleared); verifies the commit on origin branches
|
|
73
75
|
bschat wu review <n> reviewer's checkout: fetch the submitted branch from origin and open
|
|
74
76
|
../<repo>-review-wu<n> detached at the submitted head (refused if origin differs)
|
|
75
77
|
bschat wu approve <n> --note ".." approval covers tags your role reviews
|
|
@@ -85,22 +87,23 @@ Agent commands
|
|
|
85
87
|
bschat wu propose <n> "answer" owner, reviewer, assigner or expert: recommend an answer to the unit's open question, approvable as written
|
|
86
88
|
bschat wu escalate <n> [--note ..] the tag's expert: pass the question to the operator
|
|
87
89
|
bschat wu wait <n> --on <m> | --clear owner or assigner: this unit cannot move until #m closes; reminders pause meanwhile
|
|
88
|
-
bschat wu scope <n> --scope ".." --note ".." assigner or operator:
|
|
90
|
+
bschat wu scope <n> --scope ".." --note ".." assigner or operator: replace the full scope; recorded and announced
|
|
91
|
+
bschat wu scope <n> --replace "<old>" "<new>" --note ".." replace one exact, unique substring of the scope
|
|
92
|
+
bschat wu scope <n> --append ".." --note ".." append a scope clause; changes are recorded and announced as a short before/after
|
|
89
93
|
bschat ask-operator "what you need from them" --plain ".." --blocks ".." --if-yes ".." --if-no ".." [--propose ".."]
|
|
90
94
|
bschat ask-operator --amend <id> ["new question"] [--plain ".."] [--blocks ".."] [--if-yes ".."] [--if-no ".."] [--propose ".."] amend your own open ask
|
|
91
95
|
bschat ask-operator refuses a second ask naming the same WU; use --amend <id>. Account needs group asks/questions by unit and can answer several together.
|
|
92
96
|
a decision only the operator can make, on their console banner and reported to them; never
|
|
93
|
-
ask in chat. --plain: one or two sentences for someone who has not read the thread;
|
|
94
|
-
--blocks: what's stuck; --if-yes/--if-no: what happens on each answer
|
|
97
|
+
ask in chat. --plain: one or two sentences for someone who has not read the thread; --propose: your recommended answer, phrased so they can approve it as written; --blocks: what's stuck; --if-yes/--if-no: what happens on each answer
|
|
95
98
|
bschat explain <ask-id> "..." the operator asked you (Explain) to put your request in plain words
|
|
96
99
|
bschat wu explain <n> "..." the same for a unit's question waiting on the operator
|
|
97
|
-
--propose: your recommended answer, phrased so they can approve it as written
|
|
98
100
|
bschat wu tags <n> --add a --remove b retag (owner before review, a reviewer during it; may add a reviewer)
|
|
99
101
|
bschat wu hold <n> --note ".." operator or assigner: no verdict and no merge until the owner resubmits;
|
|
100
102
|
wu release <n> [--note ..] lifts it earlier
|
|
101
103
|
bschat wu evidence replace <n> <old> <new> [--note ".."] owner replaces attached evidence; old id is retained in the unit history
|
|
102
104
|
bschat wu done <n> --merged <sha> [--keep-worktree] after approval; verifies locally, then on origin if needed; removes the unit's clean worktree
|
|
103
|
-
bschat wu
|
|
105
|
+
bschat wu show <n> [--scope-only] show the full unit or only its scope for scripts
|
|
106
|
+
bschat wu abandon <n> [--note ..] wu list [--all] for state and timeline
|
|
104
107
|
bschat worktrees prune [--yes] [--archive] remove clean worktrees whose work landed or whose unit is closed (dry run without --yes);
|
|
105
108
|
--archive also saves a closed unit's uncommitted files to archive/wu<n>-leftovers and removes it
|
|
106
109
|
bschat worktrees [scan] the project's worktree registry (machine, path, branch, dirty, merged, who);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.12.
|
|
1
|
+
export const CLI_VERSION = "0.12.80";
|