benignswarm 0.12.65 → 0.12.68
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/admin.js +3 -1
- package/dist/commands/codex-start.js +110 -48
- package/dist/commands/codex.js +11 -8
- package/dist/commands/machine-admin.js +5 -3
- package/dist/commands/machine.js +57 -21
- package/dist/commands/operator.js +27 -1
- package/dist/commands/watch.js +73 -57
- package/dist/commands/wu.js +41 -6
- package/dist/harness.js +21 -0
- package/dist/harnesses.js +268 -0
- package/dist/help.js +16 -8
- package/dist/index.js +13 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/help.js
CHANGED
|
@@ -79,7 +79,12 @@ Agent commands
|
|
|
79
79
|
bschat wu escalate <n> [--note ..] the tag's expert: pass the question to the operator
|
|
80
80
|
bschat wu wait <n> --on <m> | --clear owner or assigner: this unit cannot move until #m closes; reminders pause meanwhile
|
|
81
81
|
bschat wu scope <n> --scope ".." --note ".." assigner or operator: amend what a unit covers; recorded and announced
|
|
82
|
-
bschat ask-operator "
|
|
82
|
+
bschat ask-operator "what you need from them" --plain ".." --blocks ".." --if-yes ".." --if-no ".." [--propose ".."]
|
|
83
|
+
a decision only the operator can make, on their console banner and reported to them; never
|
|
84
|
+
ask in chat. --plain: one or two sentences for someone who has not read the thread;
|
|
85
|
+
--blocks: what's stuck; --if-yes/--if-no: what happens on each answer
|
|
86
|
+
bschat explain <ask-id> "..." the operator asked you (Explain) to put your request in plain words
|
|
87
|
+
bschat wu explain <n> "..." the same for a unit's question waiting on the operator
|
|
83
88
|
--propose: your recommended answer, phrased so they can approve it as written
|
|
84
89
|
bschat wu tags <n> --add a --remove b retag (owner before review, a reviewer during it; may add a reviewer)
|
|
85
90
|
bschat wu done <n> --merged <sha> [--keep-worktree] after approval; verifies the sha is on the target; removes the unit's clean worktree
|
|
@@ -99,8 +104,8 @@ Agent commands
|
|
|
99
104
|
followed-channel chatter waits --follow-delay 300 s and collapses; digest never wakes.
|
|
100
105
|
--env A,B copies those variables from this shell into the LaunchAgent (Antigravity needs
|
|
101
106
|
ANTIGRAVITY_LS_ADDRESS,ANTIGRAVITY_CSRF_TOKEN). --full queues the text itself. --once /
|
|
102
|
-
--service (launchd on macOS, systemd on Linux; --launchd is the same). --turn runs
|
|
103
|
-
|
|
107
|
+
--service (launchd on macOS, systemd on Linux; --launchd is the same). --turn runs each turn
|
|
108
|
+
itself (--harness codex|claude-code --session <id>); set up by bschat start.
|
|
104
109
|
Codex: bschat watch --exec "codex queue --thread <id> --message {summary}" --service
|
|
105
110
|
bschat update the same as install --latest: upgrade this machine's bschat and restart its watchers
|
|
106
111
|
bschat install [<version> | --latest] make or upgrade this machine's one bschat (join does it once) and restart
|
|
@@ -108,9 +113,10 @@ Agent commands
|
|
|
108
113
|
bschat doctor every bschat on this machine and who runs which (PATH, npx caches, this repo's
|
|
109
114
|
hook and instructions, each watcher's plist versus what launchd runs), with fixes
|
|
110
115
|
bschat codex hooks | bind <thread-id> | sync install bschat's Codex hooks (~/.codex/hooks.json) and say which thread is you
|
|
111
|
-
bschat
|
|
112
|
-
run
|
|
113
|
-
|
|
116
|
+
bschat start --harness codex|claude-code --as <a> --sandbox <mode> [--token t] [--thread id] [--model m] [--effort e]
|
|
117
|
+
run an agent headless: enroll, start or adopt its session, turn-mode watcher
|
|
118
|
+
(bschat codex start is the same with --harness codex)
|
|
119
|
+
bschat unpause [--as <a>] lift a usage-limit pause now (the harness was switched to an account with quota)
|
|
114
120
|
bschat machine run | once | status | prepare | service the machine daemon (set up by bschat-admin machine add)
|
|
115
121
|
bschat checkpoint "<title>" --body "..." a resume note without retiring: what you are doing, open threads, next steps;
|
|
116
122
|
your next session (after a move to another machine) reads it first
|
|
@@ -196,15 +202,17 @@ bschat-admin login (approve it in your signed-in browser); the session lasts 30
|
|
|
196
202
|
bschat-admin needs decisions waiting on you (asks, unit questions, broken wake paths, alert failures)
|
|
197
203
|
bschat-admin answer <key> "decision" answer one; the asker is @mentioned
|
|
198
204
|
bschat-admin answer <key> --approve [--note ".."] accept the proposal on an ask or a unit question as written
|
|
205
|
+
bschat-admin explain <key> ask the agent to explain a decision in plain words (the console's Explain)
|
|
199
206
|
bschat-admin notifier [--agent name|none] [--email yes|no] [--repeat m] how you are reached away from the console, and the last report
|
|
200
207
|
bschat-admin account [--summary-minutes m] plan, usage and the account summary period
|
|
201
208
|
bschat-admin worktree forget <project> <id> delete a stale worktree record (never the directory)
|
|
202
209
|
|
|
203
210
|
Machines (provisioned over your own ssh; a daemon on each runs the agent sessions you declare)
|
|
204
|
-
bschat-admin machine add <name> --ssh <host> [--rotate] [--codex-userns] install Node and bschat (no sudo), linger, Codex check,
|
|
211
|
+
bschat-admin machine add <name> --ssh <host> [--rotate] [--codex-userns] [--bwrap-userns] install Node and bschat (no sudo), linger, Codex check,
|
|
205
212
|
bschat's Codex hooks in /etc/codex (passwordless sudo only), register, start the daemon;
|
|
206
213
|
--codex-userns: where Linux restricts user namespaces (Ubuntu 24.04+), install a
|
|
207
|
-
Codex-only AppArmor profile so sandboxed agents can run
|
|
214
|
+
Codex-only AppArmor profile so sandboxed agents can run; --bwrap-userns: the same
|
|
215
|
+
for /usr/bin/bwrap (Claude Code's sandbox; broader: any local user may use it)
|
|
208
216
|
bschat-admin machine list | show <name> | remove <name>
|
|
209
217
|
bschat-admin machine session add <machine> <project>/<agent> --dir <checkout> --sandbox <read-only|workspace-write|danger-full-access>
|
|
210
218
|
[--create --role <role>] [--model m] [--effort e] [--thread <id>] [--turn-timeout min]
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { bool, parse } from "./args.js";
|
|
2
|
+
import { bool, parse, str } from "./args.js";
|
|
3
3
|
import * as a from "./commands/agent.js";
|
|
4
4
|
import { evidence } from "./commands/evidence.js";
|
|
5
5
|
import { join, setup } from "./commands/join.js";
|
|
@@ -11,11 +11,13 @@ import { feedback } from "./commands/feedback.js";
|
|
|
11
11
|
import { goal } from "./commands/goal.js";
|
|
12
12
|
import { wake } from "./commands/wake.js";
|
|
13
13
|
import { antigravity } from "./commands/antigravity.js";
|
|
14
|
-
import { codex } from "./commands/codex.js";
|
|
14
|
+
import { codex, unpause } from "./commands/codex.js";
|
|
15
|
+
import { harnessStart } from "./commands/codex-start.js";
|
|
16
|
+
import { turnHarness } from "./harnesses.js";
|
|
15
17
|
import { machine } from "./commands/machine.js";
|
|
16
18
|
import { doctor, install } from "./commands/install.js";
|
|
17
19
|
import { warnIfForeignCopy } from "./install.js";
|
|
18
|
-
import { processCmd, record, wu, milestones, milestone, lock, askOperator } from "./commands/wu.js";
|
|
20
|
+
import { processCmd, record, wu, milestones, milestone, lock, askOperator, explainAsk } from "./commands/wu.js";
|
|
19
21
|
import { worktrees } from "./commands/worktrees.js";
|
|
20
22
|
import { CliError } from "./errors.js";
|
|
21
23
|
import { HELP } from "./help.js";
|
|
@@ -54,6 +56,13 @@ const COMMANDS = {
|
|
|
54
56
|
wake,
|
|
55
57
|
antigravity,
|
|
56
58
|
codex,
|
|
59
|
+
start: async (p, out) => {
|
|
60
|
+
const h = str(p.flags, "harness");
|
|
61
|
+
if (!h)
|
|
62
|
+
throw new CliError("usage", "start needs --harness <codex|claude-code>");
|
|
63
|
+
return harnessStart(p, out, turnHarness(h));
|
|
64
|
+
},
|
|
65
|
+
unpause: async (p, out) => unpause(p, out),
|
|
57
66
|
machine,
|
|
58
67
|
checkpoint,
|
|
59
68
|
install,
|
|
@@ -69,6 +78,7 @@ const COMMANDS = {
|
|
|
69
78
|
unlock: lock,
|
|
70
79
|
locks: lock,
|
|
71
80
|
"ask-operator": askOperator,
|
|
81
|
+
explain: explainAsk,
|
|
72
82
|
worktrees,
|
|
73
83
|
follow: a.followCmd,
|
|
74
84
|
unfollow: a.followCmd,
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.12.
|
|
1
|
+
export const CLI_VERSION = "0.12.68";
|