benignswarm 0.12.24 → 0.12.26
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/admin-index.js +7 -0
- package/dist/args.js +1 -1
- package/dist/commands/admin.js +3 -1
- package/dist/commands/hook.js +1 -0
- package/dist/commands/operator.js +87 -8
- package/dist/commands/wu.js +4 -2
- package/dist/config.js +3 -0
- package/dist/help.js +10 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/admin-index.js
CHANGED
|
@@ -3,10 +3,17 @@ import { bool, parse } from "./args.js";
|
|
|
3
3
|
import { admin } from "./commands/admin.js";
|
|
4
4
|
import { CliError } from "./errors.js";
|
|
5
5
|
import { ADMIN_HELP } from "./help.js";
|
|
6
|
+
import { AGENT_ORIENTATION } from "./commands/operator.js";
|
|
6
7
|
import { makeOut } from "./output.js";
|
|
7
8
|
import { CLI_VERSION } from "./version.js";
|
|
8
9
|
/** bschat-admin: the operator binary. Agents use bschat, whose help never lists these. */
|
|
9
10
|
async function main(argv) {
|
|
11
|
+
// For an AI agent driving this tool: what it is, and how to load the operator skill. Checked
|
|
12
|
+
// before parsing because --agent also takes a value elsewhere (notifier --agent <name>).
|
|
13
|
+
if (argv[0] === "--agent") {
|
|
14
|
+
process.stdout.write(AGENT_ORIENTATION);
|
|
15
|
+
return 0;
|
|
16
|
+
}
|
|
10
17
|
const p = parse(argv);
|
|
11
18
|
const out = makeOut(bool(p.flags, "json"));
|
|
12
19
|
if (bool(p.flags, "version")) {
|
package/dist/args.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseArgs } from "node:util";
|
|
2
2
|
import { CliError } from "./errors.js";
|
|
3
|
-
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", "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", "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"];
|
|
3
|
+
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", "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", "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"];
|
|
4
4
|
export const BOOL_FLAGS = ["json", "follow", "account", "help", "version", "broadcast", "create-channels", "read-account-status", "replace-key", "mentions-me", "no-skill", "replace", "unread", "force", "no-hooks", "yes", "open", "bind-here", "peek", "once", "launchd", "full", "no-bind", "all", "here", "keep-worktree", "prune", "abandon", "hold", "clear", "met", "shared"];
|
|
5
5
|
export function parse(argv) {
|
|
6
6
|
const options = {};
|
package/dist/commands/admin.js
CHANGED
|
@@ -6,7 +6,7 @@ import { hostname } from "node:os";
|
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
import { CliError } from "../errors.js";
|
|
8
8
|
import { table } from "../output.js";
|
|
9
|
-
import { accountAdmin, answerAdmin, keysAdmin, needsAdmin, notifierAdmin, processAdmin, tagList, worktreeAdmin } from "./operator.js";
|
|
9
|
+
import { accountAdmin, answerAdmin, keysAdmin, needsAdmin, notifierAdmin, processAdmin, skillAdmin, tagList, worktreeAdmin } from "./operator.js";
|
|
10
10
|
function adminClient(p) {
|
|
11
11
|
return Client.forAdmin(loadAdmin(resolveAdminName(str(p.flags, "admin"))));
|
|
12
12
|
}
|
|
@@ -76,6 +76,8 @@ export async function admin(p, out) {
|
|
|
76
76
|
return accountAdmin(p, out);
|
|
77
77
|
case "worktree":
|
|
78
78
|
return worktreeAdmin(action, rest, p, out);
|
|
79
|
+
case "skill":
|
|
80
|
+
return skillAdmin(action, p, out);
|
|
79
81
|
case "delete-account": {
|
|
80
82
|
const confirm = str(p.flags, "confirm");
|
|
81
83
|
if (confirm !== "delete everything")
|
package/dist/commands/hook.js
CHANGED
|
@@ -187,6 +187,7 @@ export async function hook(p) {
|
|
|
187
187
|
me.role ? `Your role: ${me.role.name}. ${me.role.description}` : `You hold no role in ${me.project?.name ?? "this project"}.`,
|
|
188
188
|
`Process v${proc.version}: work goes through bschat wu open --tags <from the vocabulary> / submit; reviewers are whoever is qualified for the tags; evidence ${proc.definition.require_evidence_to_submit ? "required" : "optional"} before review; max ${proc.definition.max_open_per_agent} open units; nothing is done until every tag is approved. Details: bschat process.`,
|
|
189
189
|
proc.agreements ? `Working agreements:\n${proc.agreements}` : null,
|
|
190
|
+
proc.charter ? `Charter (how this project weighs its trade-offs):\n${proc.charter}` : null,
|
|
190
191
|
].filter(Boolean);
|
|
191
192
|
standing = lines.join("\n");
|
|
192
193
|
if (creds.project && proc.version > 0)
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { readFileSync, writeFileSync } from "node:fs";
|
|
1
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { DEFAULT_URL, listSaved } from "../config.js";
|
|
2
5
|
import { str } from "../args.js";
|
|
3
6
|
import { Client } from "../client.js";
|
|
4
7
|
import { loadAdmin, resolveAdminName } from "../config.js";
|
|
@@ -77,6 +80,9 @@ export function definitionPatch(p, cur) {
|
|
|
77
80
|
const ev = yesNo(str(p.flags, "require-evidence"), "require-evidence");
|
|
78
81
|
if (ev !== undefined)
|
|
79
82
|
d.require_evidence_to_submit = ev;
|
|
83
|
+
const cite = yesNo(str(p.flags, "require-cited-changes"), "require-cited-changes");
|
|
84
|
+
if (cite !== undefined)
|
|
85
|
+
d.require_cited_changes = cite;
|
|
80
86
|
const appr = str(p.flags, "default-approver");
|
|
81
87
|
if (appr !== undefined)
|
|
82
88
|
d.default_approver_role = appr === "none" || appr === "" ? null : appr;
|
|
@@ -104,6 +110,9 @@ export function definitionPatch(p, cur) {
|
|
|
104
110
|
const summ = intFlag(str(p.flags, "summary"), "summary");
|
|
105
111
|
if (summ !== undefined)
|
|
106
112
|
steward.summary_minutes = summ;
|
|
113
|
+
const churn = intFlag(str(p.flags, "churn"), "churn");
|
|
114
|
+
if (churn !== undefined)
|
|
115
|
+
steward.churn_rounds = churn;
|
|
107
116
|
if (Object.keys(steward).length)
|
|
108
117
|
d.steward = { ...cur.steward, ...steward };
|
|
109
118
|
return d;
|
|
@@ -117,8 +126,8 @@ function describeProcess(r) {
|
|
|
117
126
|
` timing: review SLA ${d.review_sla_minutes} min, takeover ${d.escalate_after_minutes} min, ${d.max_open_per_agent} open / ${d.max_in_progress_per_agent} in progress per agent`,
|
|
118
127
|
` requires: scope ${d.require_scope ? "yes" : "no"}, evidence to submit ${d.require_evidence_to_submit ? "yes" : "no"}; default approver ${d.default_approver_role ?? "none"}; assigners ${d.assigners.join(", ") || "none"}`,
|
|
119
128
|
` merging: into ${m.target_branch} by ${m.merged_by === "integrator" ? `a ${m.integrator_role}` : `the ${m.merged_by}`}; merge commit ${m.require_merge_commit ? "yes" : "no"}, rebased ${m.require_rebased ? "yes" : "no"}, pushed ${m.require_pushed ? "yes" : "no"}`,
|
|
120
|
-
` steward: ${d.steward.enabled ? "on" : "off"}, quiet ${d.steward.quiet_minutes} min, summary every ${d.steward.summary_minutes} min`,
|
|
121
|
-
` agreements: ${r.process.agreements.length} of 8000 characters`,
|
|
129
|
+
` steward: ${d.steward.enabled ? "on" : "off"}, quiet ${d.steward.quiet_minutes} min, summary every ${d.steward.summary_minutes} min, ask the operator after ${d.steward.churn_rounds ? `${d.steward.churn_rounds} rounds on one goal` : "(never)"}`,
|
|
130
|
+
` agreements: ${r.process.agreements.length} of 8000 characters; charter: ${(r.process.charter ?? "").length ? `${r.process.charter.length} of 4000 characters` : "none (bschat-admin process charter <project> --file charter.md)"}; send-backs ${d.require_cited_changes === false ? "free-form" : "must cite the clause they fail"}`,
|
|
122
131
|
v.length ? `Tags:` : `No tag vocabulary: every unit goes to the default approver.`,
|
|
123
132
|
...v.map((t) => ` #${t.name}: ${t.meaning || "(NO MEANING: workers cannot decide by it)"}${t.require_evidence ? " · evidence" : ""}${t.require_rebased ? " · rebased" : ""}${t.expert_role ? ` · expert ${t.expert_role}` : ""}`),
|
|
124
133
|
].join("\n");
|
|
@@ -127,7 +136,7 @@ export async function processAdmin(action, rest, p, out) {
|
|
|
127
136
|
const c = adminClient(p);
|
|
128
137
|
const proj = rest[0];
|
|
129
138
|
if (!proj && action !== undefined)
|
|
130
|
-
throw new CliError("usage", "admin process <show|export|set|tag|timing|merge|assigners|agreements|steward> <project> ...");
|
|
139
|
+
throw new CliError("usage", "admin process <show|export|set|tag|timing|merge|assigners|agreements|charter|steward> <project> ...");
|
|
131
140
|
const base = `/projects/${proj}/process`;
|
|
132
141
|
const get = () => c.call("GET", base);
|
|
133
142
|
const publish = async (body, what) => {
|
|
@@ -142,7 +151,7 @@ export async function processAdmin(action, rest, p, out) {
|
|
|
142
151
|
}
|
|
143
152
|
case "export": {
|
|
144
153
|
const r = await get();
|
|
145
|
-
const doc = { definition: r.process.definition, vocabulary: r.vocabulary, agreements: r.process.agreements };
|
|
154
|
+
const doc = { definition: r.process.definition, vocabulary: r.vocabulary, agreements: r.process.agreements, charter: r.process.charter ?? "" };
|
|
146
155
|
const file = str(p.flags, "out");
|
|
147
156
|
const text = JSON.stringify(doc, null, 2) + "\n";
|
|
148
157
|
if (file) {
|
|
@@ -166,9 +175,9 @@ export async function processAdmin(action, rest, p, out) {
|
|
|
166
175
|
}
|
|
167
176
|
if (!doc || typeof doc !== "object" || Array.isArray(doc))
|
|
168
177
|
throw new CliError("bad_file", `${file} must hold an object with definition, vocabulary and/or agreements`);
|
|
169
|
-
const unknown = Object.keys(doc).filter((k) => !["definition", "vocabulary", "agreements"].includes(k));
|
|
178
|
+
const unknown = Object.keys(doc).filter((k) => !["definition", "vocabulary", "agreements", "charter"].includes(k));
|
|
170
179
|
if (unknown.length)
|
|
171
|
-
throw new CliError("bad_file", `${file}: unknown keys ${unknown.join(", ")}; expected definition, vocabulary, agreements`);
|
|
180
|
+
throw new CliError("bad_file", `${file}: unknown keys ${unknown.join(", ")}; expected definition, vocabulary, agreements, charter`);
|
|
172
181
|
return publish(doc, `from ${file}`);
|
|
173
182
|
}
|
|
174
183
|
case "tag": {
|
|
@@ -201,12 +210,18 @@ export async function processAdmin(action, rest, p, out) {
|
|
|
201
210
|
throw new CliError("usage", "admin process agreements <project> --file agreements.md (at most 8000 characters; agents re-read it after every compaction)");
|
|
202
211
|
return publish({ agreements: readFileSync(file, "utf8") }, "working agreements");
|
|
203
212
|
}
|
|
213
|
+
case "charter": {
|
|
214
|
+
const file = str(p.flags, "file");
|
|
215
|
+
if (!file)
|
|
216
|
+
throw new CliError("usage", "admin process charter <project> --file charter.md (at most 4000 characters: how the project weighs its trade-offs; sent with every expert question)");
|
|
217
|
+
return publish({ charter: readFileSync(file, "utf8") }, "charter");
|
|
218
|
+
}
|
|
204
219
|
case "steward": {
|
|
205
220
|
const sw = rest[1];
|
|
206
221
|
const cur = await get();
|
|
207
222
|
const patch = definitionPatch(p, cur.process.definition);
|
|
208
223
|
if (sw !== "on" && sw !== "off" && !Object.keys(patch).length)
|
|
209
|
-
throw new CliError("usage", "admin process steward <project> on|off [--quiet m] [--summary m]");
|
|
224
|
+
throw new CliError("usage", "admin process steward <project> on|off [--quiet m] [--summary m] [--churn n]");
|
|
210
225
|
if (sw === "on" || sw === "off") {
|
|
211
226
|
const r = await c.call("POST", `/projects/${proj}/steward`, { enabled: sw === "on" });
|
|
212
227
|
out.print(`Steward ${sw} for ${proj} (process v${r.process.version}).`, r);
|
|
@@ -295,3 +310,67 @@ export async function worktreeAdmin(action, rest, p, out) {
|
|
|
295
310
|
throw new CliError("usage", "admin worktree forget <project> <record id from bschat worktrees --json> (deletes the record only, never the directory)");
|
|
296
311
|
out.print(`forgot worktree record ${id}`, await adminClient(p).call("DELETE", `/projects/${proj}/worktrees/${id}`));
|
|
297
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* For an AI agent asked to drive bschat-admin: what this is and how to load the full operator
|
|
315
|
+
* skill. Printed offline, so it works before sign-in.
|
|
316
|
+
*/
|
|
317
|
+
export const AGENT_ORIENTATION = `bschat-admin, for an AI agent helping a person run BenignSwarm
|
|
318
|
+
|
|
319
|
+
You are acting for the account's operator (a person), not as an agent in a project. BenignSwarm
|
|
320
|
+
coordinates their AI coding agents (Claude Code, Codex, Antigravity, DeepSeek, Gemini; any
|
|
321
|
+
machine) through work units, reviews by qualified roles, milestones and evidence. The agents use
|
|
322
|
+
\`bschat\`; you use \`bschat-admin\` to set projects up and keep them running.
|
|
323
|
+
|
|
324
|
+
Before acting, load the operator skill. It explains the philosophy, the setup interview, how to
|
|
325
|
+
design the process (tags, roles, merge policy, milestones), how each harness joins and is woken,
|
|
326
|
+
several machines, and how to recognise and fix stalls:
|
|
327
|
+
|
|
328
|
+
bschat-admin skill install # writes ~/.claude/skills/benignswarm-operator (Claude Code)
|
|
329
|
+
bschat-admin skill install --dir <path> # any other harness: a directory you will read from
|
|
330
|
+
bschat-admin skill print # or print SKILL.md and read it now
|
|
331
|
+
|
|
332
|
+
Then read references/setup.md and interview the operator before running anything. Rules that
|
|
333
|
+
matter from the start:
|
|
334
|
+
- Sign in with \`bschat-admin login\` (the operator approves it in their browser). Never ask for,
|
|
335
|
+
print or store admin or agent keys in chat or in committed files.
|
|
336
|
+
- Propose a process and get a yes before publishing it: a publish wakes every agent to re-read it.
|
|
337
|
+
- Ask before anything destructive (deleting a project, agent, key or account).
|
|
338
|
+
- You are not an agent in the project: never post as one, take units or approve work.
|
|
339
|
+
|
|
340
|
+
Commands: bschat-admin --help
|
|
341
|
+
`;
|
|
342
|
+
export async function skillAdmin(action, p, out) {
|
|
343
|
+
const saved = listSaved("admins");
|
|
344
|
+
const url = (process.env.BSCHAT_URL ?? (saved.length ? loadAdmin(resolveAdminName(str(p.flags, "admin"))).url : DEFAULT_URL)).replace(/\/$/, "");
|
|
345
|
+
const fetchText = async (path) => {
|
|
346
|
+
let res;
|
|
347
|
+
try {
|
|
348
|
+
res = await fetch(url + path);
|
|
349
|
+
}
|
|
350
|
+
catch (e) {
|
|
351
|
+
throw new CliError("network", `could not reach ${url}: ${e.message}`);
|
|
352
|
+
}
|
|
353
|
+
if (!res.ok)
|
|
354
|
+
throw new CliError("fetch_failed", `${url}${path} returned ${res.status}`);
|
|
355
|
+
return res.text();
|
|
356
|
+
};
|
|
357
|
+
if (action === "print") {
|
|
358
|
+
process.stdout.write(await fetchText("/skill/admin/SKILL.md"));
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
if (action === "install") {
|
|
362
|
+
const dir = str(p.flags, "dir") ?? join(homedir(), ".claude", "skills", "benignswarm-operator");
|
|
363
|
+
const main = await fetchText("/skill/admin/SKILL.md");
|
|
364
|
+
const refs = JSON.parse(await fetchText("/skill/admin/references")).references;
|
|
365
|
+
mkdirSync(join(dir, "references"), { recursive: true });
|
|
366
|
+
writeFileSync(join(dir, "SKILL.md"), main);
|
|
367
|
+
for (const f of refs) {
|
|
368
|
+
if (!/^[a-z0-9-]+\.md$/.test(f))
|
|
369
|
+
throw new CliError("bad_reference", `the server listed an unexpected reference name ${JSON.stringify(f)}`);
|
|
370
|
+
writeFileSync(join(dir, "references", f), await fetchText(`/skill/admin/references/${f}`));
|
|
371
|
+
}
|
|
372
|
+
out.print(`Installed the operator skill to ${dir} (SKILL.md and ${refs.length} references). Claude Code loads ~/.claude/skills automatically; for another harness, point it at that directory or paste SKILL.md into its instructions.`, { dir, references: refs });
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
throw new CliError("usage", "bschat-admin skill install [--dir <path>] | skill print");
|
|
376
|
+
}
|
package/dist/commands/wu.js
CHANGED
|
@@ -210,9 +210,10 @@ export async function wu(p, out) {
|
|
|
210
210
|
case "proceed":
|
|
211
211
|
case "changes": {
|
|
212
212
|
const note = str(p.flags, "note");
|
|
213
|
+
const unmet = str(p.flags, "unmet");
|
|
213
214
|
if (!note)
|
|
214
|
-
throw new CliError("usage",
|
|
215
|
-
const r = await client.call("POST", `${base}/${num()}/${sub}`, { note });
|
|
215
|
+
throw new CliError("usage", sub === "changes" ? 'wu changes <n> --unmet "<the clause of its scope, exit criterion or agreements it fails, quoted>" --note "what must change"' : `wu ${sub} <n> --note "what you checked"`);
|
|
216
|
+
const r = await client.call("POST", `${base}/${num()}/${sub}`, { note, ...(unmet ? { unmet } : {}) });
|
|
216
217
|
out.print(fmt(r.unit), r);
|
|
217
218
|
return;
|
|
218
219
|
}
|
|
@@ -351,6 +352,7 @@ export async function processCmd(p, out) {
|
|
|
351
352
|
`Review SLA ${d.review_sla_minutes} min; after ${d.escalate_after_minutes} min another qualified reviewer takes over. Max ${d.max_open_per_agent} open units per agent. Announcements in #${d.channel}.`,
|
|
352
353
|
`Merging: ${d.merge.merged_by === "owner" ? "the owner" : d.merge.merged_by === "approver" ? "an approver" : `a ${d.merge.integrator_role}`} merges approved work into ${d.merge.target_branch}${d.merge.require_rebased ? "; the branch must contain " + d.merge.target_branch + " before review" : ""}${d.merge.require_merge_commit ? "; done carries the merge commit (bschat wu done <n> --merged <sha>)" : ""}.`,
|
|
353
354
|
r.process.agreements ? `\nWorking agreements:\n${r.process.agreements}` : null,
|
|
355
|
+
r.process.charter ? `\nCharter (how this project weighs its trade-offs; judge reviews and questions by it):\n${r.process.charter}` : null,
|
|
354
356
|
].filter(Boolean);
|
|
355
357
|
out.print(lines.join("\n"), { ...r, roles });
|
|
356
358
|
if (creds.project && r.process.version > 0)
|
package/dist/config.js
CHANGED
|
@@ -171,6 +171,9 @@ export function resolveAdminName(flag, env = process.env) {
|
|
|
171
171
|
const saved = listSaved("admins", env);
|
|
172
172
|
if (saved.length === 1)
|
|
173
173
|
return saved[0];
|
|
174
|
+
// bschat-admin login without --as saves under "default": that is the one meant when none is named.
|
|
175
|
+
if (saved.includes("default"))
|
|
176
|
+
return "default";
|
|
174
177
|
throw new CliError("no_admin", "BSCHAT_ADMIN is not set and --admin was not given", saved.length ? `Saved admin logins: ${saved.join(", ")}` : "Run: bschat-admin login --email <you@example.com>");
|
|
175
178
|
}
|
|
176
179
|
export function loadAdmin(name, env = process.env) {
|
package/dist/help.js
CHANGED
|
@@ -63,7 +63,9 @@ Agent commands
|
|
|
63
63
|
bschat wu submit <n> [--evidence id] [--pr url] ask for review; routed to whoever is qualified for the tags
|
|
64
64
|
bschat wu review <n> reviewer's checkout: fetch the submitted branch from origin and open
|
|
65
65
|
../<repo>-review-wu<n> detached at the submitted head (refused if origin differs)
|
|
66
|
-
bschat wu approve
|
|
66
|
+
bschat wu approve <n> --note ".." your approval covers the tags your role reviews; classify <n> --tags a,b
|
|
67
|
+
bschat wu changes <n> --unmet ".." --note ".." send back, quoting the clause of its scope, exit criterion or agreements it fails;
|
|
68
|
+
a concern outside those is a note (wu note) or a question (wu ask)
|
|
67
69
|
bschat wu proceed <n> --note ".." reviewer: this step is good, carry on; back to the owner, NOT an approval
|
|
68
70
|
bschat wu reopen <n> --note ".." owner or reviewer: withdraw an unmerged approval (verification failed); resubmit the same unit
|
|
69
71
|
bschat wu supersede <n> --by <m> owner or assigner: this unit continues as #m; anyone blocked on #n now waits on #m
|
|
@@ -127,7 +129,8 @@ Agent commands
|
|
|
127
129
|
export const ADMIN_HELP = `bschat-admin: the operator's tools for BenignSwarm (benignswarm.org)
|
|
128
130
|
|
|
129
131
|
These act for the account's owner: projects, agents, invites, roles, the process, decisions
|
|
130
|
-
waiting on you. Agents use bschat and never need this.
|
|
132
|
+
waiting on you. Agents in projects use bschat and never need this. An AI agent driving this
|
|
133
|
+
tool should run bschat-admin --agent first, then install the operator skill. Sign in once per machine with
|
|
131
134
|
bschat-admin login (approve it in your signed-in browser); the session lasts 30 days, like the console's.
|
|
132
135
|
|
|
133
136
|
bschat-admin login [--as <nickname>] [--url <api>]
|
|
@@ -135,6 +138,8 @@ bschat-admin login (approve it in your signed-in browser); the session lasts 30
|
|
|
135
138
|
bschat-admin login --email <you@example.com> no signed-in browser at hand: approve by an emailed link instead
|
|
136
139
|
bschat-admin login --as <nickname> --key <bs_admin_...> for scripts and CI only (an admin key in a secret store)
|
|
137
140
|
bschat-admin logout [--as <nickname>] end the terminal session and forget it here
|
|
141
|
+
bschat-admin --agent for an AI agent driving this tool: what it is and how to load the operator skill
|
|
142
|
+
bschat-admin skill install [--dir <path>] | skill print the operator skill (default ~/.claude/skills/benignswarm-operator)
|
|
138
143
|
bschat-admin signup --url <api> --key <signup-code> <account-name> <email>
|
|
139
144
|
bschat-admin project create|list|delete <name>
|
|
140
145
|
bschat-admin agent create <project> <name> --vendor <v> [--role r] [--machine m]
|
|
@@ -157,10 +162,11 @@ bschat-admin login (approve it in your signed-in browser); the session lasts 30
|
|
|
157
162
|
bschat-admin process show|export <project> [--out f] the process as agents are told it, or as an editable file
|
|
158
163
|
bschat-admin process set <project> --file process.json publish definition, vocabulary and agreements in one version
|
|
159
164
|
bschat-admin process tag add|edit|remove <project> <tag> [--meaning ..] [--require-evidence yes|no] [--require-rebased yes|no] [--expert-role r|none]
|
|
160
|
-
bschat-admin process timing <project> [--sla m] [--takeover m] [--max-open n] [--max-in-progress n] [--require-scope yes|no] [--require-evidence yes|no] [--default-approver r|none]
|
|
165
|
+
bschat-admin process timing <project> [--sla m] [--takeover m] [--max-open n] [--max-in-progress n] [--require-scope yes|no] [--require-evidence yes|no] [--require-cited-changes yes|no] [--default-approver r|none]
|
|
161
166
|
bschat-admin process merge <project> [--target b] [--merged-by owner|approver|integrator] [--integrator-role r] [--require-rebased|--require-merge-commit|--require-pushed yes|no]
|
|
162
167
|
bschat-admin process assigners <project> role1,role2 | agreements <project> --file agreements.md
|
|
163
|
-
bschat-admin process
|
|
168
|
+
bschat-admin process charter <project> --file charter.md how the project weighs trade-offs; sent with every expert question
|
|
169
|
+
bschat-admin process steward <project> on|off [--quiet m] [--summary m] [--churn n] (--churn: ask the operator when a goal is sent back or handed over n times; 0 off)
|
|
164
170
|
bschat-admin role edit <name> [--project p] --reviews a,b --works c --trials d which tags a role reviews, works and trials ("*" all, "" none)
|
|
165
171
|
bschat-admin needs decisions waiting on you (asks, unit questions, broken wake paths, alert failures)
|
|
166
172
|
bschat-admin answer <key> "decision" answer one; the asker is @mentioned
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.12.
|
|
1
|
+
export const CLI_VERSION = "0.12.26";
|