benignswarm 0.12.71 → 0.12.73

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 CHANGED
@@ -1,18 +1,35 @@
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", "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", "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"];
3
+ // These options accept comma-separated collections, so repeating them should
4
+ // append another collection instead of discarding earlier values.
5
+ export const LIST_FLAGS = ["tags", "projects", "evidence", "statuses", "depends-on", "units", "waits-on", "needs", "exclude", "remove", "post", "harness", "variant"];
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", "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"];
4
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", "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"];
5
8
  export function parse(argv) {
6
9
  const options = {};
7
10
  for (const f of STRING_FLAGS)
8
- options[f] = { type: "string" };
11
+ options[f] = { type: "string", ...(LIST_FLAGS.includes(f) ? { multiple: true } : {}) };
9
12
  for (const f of BOOL_FLAGS)
10
13
  options[f] = { type: "boolean" };
11
14
  try {
15
+ const seen = new Set();
16
+ for (const arg of argv) {
17
+ if (!arg.startsWith("--"))
18
+ continue;
19
+ const name = arg.slice(2).split("=", 1)[0].replace(/^no-/, "");
20
+ if (!(name in options) || LIST_FLAGS.includes(name))
21
+ continue;
22
+ if (seen.has(name))
23
+ throw new CliError("usage", `--${name} was repeated; it may only be given once`);
24
+ seen.add(name);
25
+ }
12
26
  const { values, positionals } = parseArgs({ args: argv, options, allowPositionals: true, strict: true });
13
- return { positionals, flags: values };
27
+ const flags = values;
28
+ return { positionals, flags: Object.fromEntries(Object.entries(flags).map(([k, v]) => [k, Array.isArray(v) ? v.join(",") : v])) };
14
29
  }
15
30
  catch (e) {
31
+ if (e instanceof CliError)
32
+ throw e;
16
33
  throw new CliError("usage", e.message, "Run: bschat --help");
17
34
  }
18
35
  }
@@ -7,6 +7,7 @@ import { spawnSync } from "node:child_process";
7
7
  import { CliError } from "../errors.js";
8
8
  import { table } from "../output.js";
9
9
  import { milestoneWith, milestonesWith } from "./wu.js";
10
+ import { awayUntil } from "./agent.js";
10
11
  import { agentMove, machineAdmin, poolAdmin, projectCheckoutAdmin, projectRepoAdmin } from "./machine-admin.js";
11
12
  import { accountAdmin, answerAdmin, explainAdmin, keysAdmin, needsAdmin, notifierAdmin, processAdmin, skillAdmin, tagList, worktreeAdmin } from "./operator.js";
12
13
  function adminClient(p) {
@@ -140,7 +141,19 @@ async function agent(action, rest, p, out) {
140
141
  if (bool(p.flags, "account"))
141
142
  return accountAgent(action, rest, p, out, c);
142
143
  const [proj, name, extra] = rest;
143
- if (action === "list" && proj) {
144
+ if ((action === "away" || action === "back") && proj && !name) {
145
+ const slash = proj.indexOf("/");
146
+ if (slash < 1 || slash === proj.length - 1 || proj.indexOf("/", slash + 1) !== -1)
147
+ throw new CliError("usage", `agent ${action} <project>/<agent>${action === "away" ? " --for <duration>|--until <ISO> --reason <why>" : ""}`);
148
+ const projectName = proj.slice(0, slash);
149
+ const agentName = proj.slice(slash + 1);
150
+ const body = action === "back" ? { away: null } : { away: { until: awayUntil(p), reason: need(p.flags, "reason").trim() } };
151
+ if (action === "away" && !body.away.reason)
152
+ throw new CliError("usage", "away needs --reason <why>");
153
+ const r = await c.call("PUT", `/projects/${projectName}/agents/${agentName}/status`, body);
154
+ out.print(action === "back" ? `Cleared away status for ${projectName}/${agentName}` : `${projectName}/${agentName} away until ${r.status.away.until}`, r);
155
+ }
156
+ else if (action === "list" && proj) {
144
157
  const r = await c.call("GET", `/projects/${proj}/agents`);
145
158
  out.print(table(r.agents, ["name", "scope", "vendor", "role_name", "active_keys", "created_at"]), r);
146
159
  }
@@ -134,6 +134,51 @@ export async function status(p, out) {
134
134
  }
135
135
  throw new CliError("usage", "status <set|history>");
136
136
  }
137
+ export function awayUntil(p) {
138
+ const duration = str(p.flags, "for");
139
+ const absolute = str(p.flags, "until");
140
+ const reason = str(p.flags, "reason");
141
+ if ((duration === undefined) === (absolute === undefined))
142
+ throw new CliError("usage", "away needs exactly one of --for <duration> or --until <ISO timestamp>");
143
+ if (!reason?.trim())
144
+ throw new CliError("usage", "away needs --reason <why>");
145
+ let until;
146
+ if (duration !== undefined) {
147
+ const m = /^(\d+)(m|h)$/.exec(duration);
148
+ if (!m)
149
+ throw new CliError("usage", "--for takes a positive whole number of minutes or hours, e.g. 90m or 2h");
150
+ const amount = Number(m[1]) * (m[2] === "h" ? 60 : 1);
151
+ if (!Number.isSafeInteger(amount) || amount < 1 || amount > 1440)
152
+ throw new CliError("usage", "--for must be from 1 minute through 24 hours");
153
+ // Anchor to a whole second so network transit cannot make an exact 24h request exceed
154
+ // the server's strict 24h-from-receipt limit.
155
+ until = new Date(Math.floor(Date.now() / 1000) * 1000 + amount * 60_000);
156
+ }
157
+ else {
158
+ const ms = Date.parse(absolute);
159
+ if (!Number.isFinite(ms))
160
+ throw new CliError("usage", "--until must be an ISO timestamp");
161
+ until = new Date(ms);
162
+ const delta = until.getTime() - Date.now();
163
+ if (delta <= 0 || delta > 24 * 60 * 60_000)
164
+ throw new CliError("usage", "--until must be in the future and no more than 24 hours ahead");
165
+ }
166
+ return until.toISOString();
167
+ }
168
+ export async function away(p, out) {
169
+ const { client, creds } = agentClient(p);
170
+ const until = awayUntil(p);
171
+ const reason = str(p.flags, "reason").trim();
172
+ const path = creds.project ? `/projects/${creds.project}/agents/me/status` : "/agents/me/status";
173
+ const r = await client.call("PUT", path, { away: { until, reason } });
174
+ out.print(`Away until ${r.status.away.until}: ${r.status.away.reason}`, r);
175
+ }
176
+ export async function back(p, out) {
177
+ const { client, creds } = agentClient(p);
178
+ const path = creds.project ? `/projects/${creds.project}/agents/me/status` : "/agents/me/status";
179
+ const r = await client.call("PUT", path, { away: null });
180
+ out.print("Away status cleared", r);
181
+ }
137
182
  export async function send(p, out) {
138
183
  const channel = p.positionals[1];
139
184
  let body = p.positionals.slice(2).join(" ");
@@ -127,7 +127,13 @@ export async function harnessStart(p, out, harness) {
127
127
  // The result goes to a file the watcher reads when the turn ends: Claude Code can exit 0 with is_error set.
128
128
  : `${shq(bin)} -p {text} ${[...settings, "--resume", session, "--output-format", "json"].map(shq).join(" ")} > ${shq(claudeResultFile(ref))}`;
129
129
  const watcherOut = [];
130
- installWatcherService(ref, exec, interval, Number(str(p.flags, "follow-delay") ?? "300"), {}, undefined, { json: false, print: (h) => watcherOut.push(h) }, bool(p.flags, "prune"), { harness, session, timeout: turnTimeout });
130
+ // Scratch space beside the checkout, not the system's /tmp: on a machine the checkout lives on the
131
+ // work volume, the folder is inside what the sandbox may write, and it survives a reboot. Learned
132
+ // from ronald, whose root volume filled with agents' builds under /tmp (46 GB) while the work
133
+ // volume had 750 GB free, and which empties /tmp at every boot.
134
+ const tmp = sessionTmpDir(process.cwd(), creds.agent);
135
+ mkdirSync(tmp, { recursive: true });
136
+ installWatcherService(ref, exec, interval, Number(str(p.flags, "follow-delay") ?? "300"), { TMPDIR: tmp }, undefined, { json: false, print: (h) => watcherOut.push(h) }, bool(p.flags, "prune"), { harness, session, timeout: turnTimeout });
131
137
  const wl = watcherOut.join("\n").split("\n");
132
138
  lines.push(wl[0].replace(/^Wrote /, "Watcher: wrote "), ...wl.filter((l) => l.startsWith("Linger is off")));
133
139
  // 5. Hooks.
@@ -187,6 +193,8 @@ export function codexSettings(sandbox, model, effort, cwd, bschatHome, extraWrit
187
193
  : []),
188
194
  ];
189
195
  }
196
+ /** A session's scratch folder: `<checkout's parent>/.tmp/<agent>`, on the checkout's volume. */
197
+ export const sessionTmpDir = (cwd, agent) => joinPath(dirname(cwd), ".tmp", agent);
190
198
  /**
191
199
  * The agent's own linked-worktree git folder (<clone>/.git/worktrees/<name>), when it runs in one.
192
200
  * Codex's sandbox makes the git folder of the directory it runs in read-only, and for a linked
@@ -125,7 +125,7 @@ export async function gatherUpdates(name, opts) {
125
125
  const proj = creds.project ? "" : "--project <project> ";
126
126
  const footer = [];
127
127
  if (messages.length)
128
- footer.push(`These agents addressed you directly. Answer them in chat: bschat send ${proj}<channel> --reply-to <seq> "...". A one-line acknowledgement is enough when there is nothing to add.`);
128
+ footer.push(`These agents addressed you directly. Answer them in chat: bschat send ${proj}<channel> --reply-to <seq> "...".`);
129
129
  if (followed.length && !messages.length)
130
130
  footer.push(`Nobody addressed you. Reply in chat only if you have something to contribute: bschat send ${proj}<channel> --reply-to <seq> "...".`);
131
131
  if (messages.length || followed.length)
@@ -29,8 +29,9 @@ function writeMachineState(s) {
29
29
  /**
30
30
  * Bumped when `bschat start` builds a session's settings differently, so every session is started
31
31
  * again once with them. 2: the agent's own worktree git folder is writable under workspace-write.
32
+ * 3: turns get TMPDIR beside the checkout instead of the system's /tmp.
32
33
  */
33
- const START_REV = 2;
34
+ const START_REV = 3;
34
35
  export const sessionFingerprint = (s, writable = []) => JSON.stringify([s.harness, s.dir, s.sandbox, s.model, s.effort, s.turn_timeout, ...(writable.length ? [writable] : []), ...(START_REV > 1 ? [`rev${START_REV}`] : [])]);
35
36
  export const watchLabelOf = (ref) => `${WATCH_LABEL_PREFIX}${ref.replace("/", ".")}`;
36
37
  /** The `bschat start` arguments that bring a session up (adopting its thread or session when known). */
@@ -23,10 +23,25 @@ import { table } from "../output.js";
23
23
  * bschat wu done <n> --merged <sha> after approval; the sha is checked against the target branch
24
24
  * bschat wu abandon <n> [--note ...]
25
25
  * bschat wu note <n> --note "..." [--evidence id]
26
+ * bschat wu evidence replace <n> <old> <new> [--note "why"]
26
27
  * bschat wu list [--all] [--status s] [--tag t] [--agent name]
27
28
  * bschat wu show <n>
28
29
  * bschat process vocabulary, who reviews what, requirements, agreements
29
30
  */
31
+ export function parseEvidenceReplacement(positionals) {
32
+ if (positionals[2] !== "replace")
33
+ throw new CliError("usage", "wu evidence replace <n> <old> <new> [--note \"why\"]");
34
+ const unit = Number(positionals[3]);
35
+ const oldId = positionals[4]?.replace(/^evidence:/, "");
36
+ const newId = positionals[5]?.replace(/^evidence:/, "");
37
+ if (!Number.isInteger(unit) || unit < 1 || !oldId || !newId)
38
+ throw new CliError("usage", "wu evidence replace <n> <old> <new> [--note \"why\"]");
39
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(newId))
40
+ throw new CliError("usage", `${JSON.stringify(newId)} is not a replacement evidence id (expected the uuid from bschat evidence post)`);
41
+ if (oldId === newId)
42
+ throw new CliError("usage", "the replacement evidence id must differ from the old id");
43
+ return { unit, oldId, newId };
44
+ }
30
45
  export async function wu(p, out) {
31
46
  const sub = p.positionals[1];
32
47
  const name = resolveAgentName(str(p.flags, "as"));
@@ -294,6 +309,12 @@ export async function wu(p, out) {
294
309
  out.print(fmt(r.unit) + cleanupUnitWorktree(r.unit.worktree, await processDef(), !!p.flags["keep-worktree"]), r);
295
310
  return;
296
311
  }
312
+ case "evidence": {
313
+ const { unit, oldId, newId } = parseEvidenceReplacement(p.positionals);
314
+ const r = await client.call("POST", `${base}/${unit}/evidence/replace`, { old: oldId, new: newId, note: str(p.flags, "note") ?? "" });
315
+ out.print(fmt(r.unit), r);
316
+ return;
317
+ }
297
318
  case "note": {
298
319
  const r = await client.call("POST", `${base}/${num()}/note`, { note: str(p.flags, "note") ?? "", evidence: list("evidence") });
299
320
  out.print(fmt(r.unit), r);
@@ -474,14 +495,18 @@ function prepareWorktree(n, unit, def, p, exclude = []) {
474
495
  const path = resolve(parent, `${name}-wu${n}`);
475
496
  // A replay starts from the target branch as it was when the original was opened: the same ground, none of the original's work.
476
497
  if (unit.replay?.created_at) {
477
- const at = commitAtTime(target, unit.replay.created_at);
498
+ const at = replayBaseRef(baseRef, unit.replay.created_at);
478
499
  if (!at)
479
- throw new CliError("no_base", `cannot find ${target} as of ${unit.replay.created_at} for the replay`, `git fetch origin ${target}:${target} then try again`);
500
+ throw new CliError("no_base", `cannot find ${baseRef} as of ${unit.replay.created_at} for the replay`, `git fetch origin ${target} then try again`);
480
501
  baseRef = at;
481
502
  }
482
503
  ensureWorktree(path, branch, baseRef, process.cwd(), log, exclude);
483
504
  return { mode: "fresh", path, branch };
484
505
  }
506
+ /** Select the replay commit from the same target ref used to create its worktree. */
507
+ export function replayBaseRef(baseRef, createdAt, cwd = process.cwd()) {
508
+ return commitAtTime(baseRef, createdAt, cwd);
509
+ }
485
510
  /** The plan's slices: readiness, dependencies, unit counts. */
486
511
  export async function milestones(p, out) {
487
512
  const name = resolveAgentName(str(p.flags, "as"));
package/dist/config.js CHANGED
@@ -144,8 +144,22 @@ export function resolveAgentName(asFlag, env = process.env, cwd = process.cwd())
144
144
  const vendor = detectVendor(env);
145
145
  if (file && vendor) {
146
146
  const entry = readIdentityFile(file).agents[vendor];
147
- if (entry)
148
- name = entry.project !== undefined ? `${entry.project ?? ACCOUNT_SCOPE}/${entry.name}` : entry.name;
147
+ if (entry) {
148
+ const mapped = entry.project !== undefined ? `${entry.project ?? ACCOUNT_SCOPE}/${entry.name}` : entry.name;
149
+ // Other saved identities of this vendor in the same project are the agents that could be
150
+ // sharing this checkout. The project comes from the identity file, so this works before
151
+ // the mapped agent's own credentials are saved (login, setup).
152
+ const scope = entry.project !== undefined ? (entry.project ?? ACCOUNT_SCOPE) : null;
153
+ const others = listSaved("agents", env).filter((ref) => {
154
+ if (ref === mapped || scope === null || splitRef(ref).scope !== scope)
155
+ return false;
156
+ return loadAgent(ref, env).vendor === vendor;
157
+ });
158
+ if (others.length) {
159
+ throw new CliError("ambiguous_vendor_identity", `this checkout maps ${vendor} to ${mapped}, but other saved ${vendor} identities also exist: ${others.join(", ")}`, `Say which agent you are on every call: --as <project>/<name>, or set BSCHAT_AGENT=<project>/<name> in the harness's persistent environment. An export in one tool call does not reach the next.`);
160
+ }
161
+ name = mapped;
162
+ }
149
163
  }
150
164
  }
151
165
  if (!name) {
package/dist/help.js CHANGED
@@ -23,6 +23,8 @@ Agent commands
23
23
  bschat status set [--state s] [--goal g] [--task t] [--blocked-on b] [--tags a,b] [--custom '{json}']
24
24
  [--checks-every <min>|none] not always on but checking on a schedule: say how often
25
25
  bschat status history <agent> [--limit n]
26
+ bschat away (--for <minutes|hours> | --until <ISO timestamp>) --reason "why" pause assignment for up to 24 hours
27
+ bschat back clear your away status early
26
28
  bschat send <channel> <message...> [--reply-to <seq>] @name, @role:name, @role:* are resolved and validated
27
29
  bschat send <channel> --body-file <f|-> multi-line / markdown message from a file or stdin (use this for anything long)
28
30
  bschat read <channel> [--since <seq>] [--limit n] [--follow]
@@ -30,7 +32,7 @@ Agent commands
30
32
  bschat follow <channel> | unfollow <channel> | following followed channels' new messages are injected by the hook;
31
33
  other channels appear as a one-line unread digest
32
34
  bschat process the project's process: tag vocabulary, who reviews what, requirements, agreements
33
- bschat wu open "<title>" --scope "..." [--tags a,b] [--evidence id] [--target <branch>] [--here] open a work unit in its own
35
+ bschat wu open "<title>" --scope "..." [--tags a,b] [--evidence id[,id...] ...] [--target <branch>] [--here] open a work unit in its own
34
36
  worktree; tags come from the vocabulary; --target is the branch it lands in (default: the
35
37
  process target), e.g. a lane branch; wu target <n> <branch|default> changes it before review
36
38
  bschat wu assign "<title>" --to <agent|auto|queue> --scope ".." [--tags a,b] [--replay-of n] hand out a unit (assigner roles);
@@ -64,7 +66,7 @@ Agent commands
64
66
  bschat unlock <name> | bschat locks release it (also released when your unit closes); see holders and queues
65
67
  (refused while it has units not done); milestone reopen <key> undoes it
66
68
  Global: --effort <high|medium|low|...> reasoning effort to report (else BSCHAT_EFFORT, CLAUDE_EFFORT, codex model_reasoning_effort)
67
- bschat wu submit <n> [--evidence id] [--pr url] ask for review; routed to whoever is qualified for the tags (in review: refreshes the head, approvals cleared)
69
+ 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)
68
70
  bschat wu review <n> reviewer's checkout: fetch the submitted branch from origin and open
69
71
  ../<repo>-review-wu<n> detached at the submitted head (refused if origin differs)
70
72
  bschat wu approve <n> --note ".." your approval covers the tags your role reviews; classify <n> --tags a,b
@@ -87,6 +89,7 @@ Agent commands
87
89
  bschat wu explain <n> "..." the same for a unit's question waiting on the operator
88
90
  --propose: your recommended answer, phrased so they can approve it as written
89
91
  bschat wu tags <n> --add a --remove b retag (owner before review, a reviewer during it; may add a reviewer)
92
+ bschat wu evidence replace <n> <old> <new> [--note ".."] owner replaces attached evidence; old id is retained in the unit history
90
93
  bschat wu done <n> --merged <sha> [--keep-worktree] after approval; verifies the sha is on the target; removes the unit's clean worktree
91
94
  bschat wu abandon <n> [--note ..] wu list [--all] / wu show <n> for state and timeline
92
95
  bschat worktrees prune [--yes] [--archive] remove clean worktrees whose work landed or whose unit is closed (dry run without --yes);
@@ -173,6 +176,8 @@ bschat-admin login (approve it in your signed-in browser); the session lasts 30
173
176
  bschat-admin agent --account create <name> --vendor <v> --role <r> account-wide agent (role's --projects decides access)
174
177
  bschat-admin agent --account list|role|rotate-key|delete ...
175
178
  bschat-admin agent list <project>
179
+ bschat-admin agent away <project>/<agent> (--for <minutes|hours> | --until <ISO timestamp>) --reason "why"
180
+ bschat-admin agent back <project>/<agent>
176
181
  bschat-admin enroll create <project> [--name n | --prefix p] [--role r] [--uses n] [--expires-hours h] prints the invite text
177
182
  bschat-admin enroll create --account --name n --role r invite an account-wide agent
178
183
  bschat-admin enroll list <project>
package/dist/index.js CHANGED
@@ -32,6 +32,8 @@ const COMMANDS = {
32
32
  me: a.me,
33
33
  who: a.who,
34
34
  status: a.status,
35
+ away: a.away,
36
+ back: a.back,
35
37
  send: a.send,
36
38
  read: a.read,
37
39
  inbox: a.inbox,
package/dist/output.js CHANGED
@@ -16,7 +16,7 @@ export function fmtMessage(m) {
16
16
  }
17
17
  export function fmtStatus(s) {
18
18
  const parts = [
19
- `${s.agent_name}${s.role_name ? `[${s.role_name}]` : ""}${s.liveness === "quiet" ? " (quiet: harness went silent)" : s.liveness === "unknown" ? " (stale, harness unmonitored)" : s.liveness === "scheduled" ? ` (checks every ${s.checks_every} min, next ${(s.next_check_at ?? "").slice(11, 16)} UTC)` : s.liveness === "missed" ? ` (missed its ${s.checks_every}-min check)` : ""}`,
19
+ `${s.agent_name}${s.role_name ? `[${s.role_name}]` : ""}${s.away ? ` (away until ${s.away.until}: ${s.away.reason})` : s.liveness === "quiet" ? " (quiet: harness went silent)" : s.liveness === "unknown" ? " (stale, harness unmonitored)" : s.liveness === "scheduled" ? ` (checks every ${s.checks_every} min, next ${(s.next_check_at ?? "").slice(11, 16)} UTC)` : s.liveness === "missed" ? ` (missed its ${s.checks_every}-min check)` : ""}`,
20
20
  `state=${s.state ?? "-"}`,
21
21
  s.goal ? `goal="${s.goal}"` : null,
22
22
  s.task ? `task="${s.task}"` : null,
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.12.71";
1
+ export const CLI_VERSION = "0.12.73";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.71",
3
+ "version": "0.12.73",
4
4
  "description": "bschat: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {