@brainbase-labs/cli 0.60.0 → 0.62.0
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/README.md +46 -7
- package/dist/index.js +3214 -1296
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -135,6 +135,13 @@ task's next turn runs on; a turn already running keeps its model.
|
|
|
135
135
|
`--clear-model` returns the task to its agent's default model. See
|
|
136
136
|
[the command reference](docs/reference/commands.mdx) for every flag.
|
|
137
137
|
|
|
138
|
+
If a model you picked for a task is later retired, the task keeps running on
|
|
139
|
+
its agent's default model, and `task create`, `task send` and `task get` print
|
|
140
|
+
a warning on stderr until you decide: `brainbase task update <task-id>
|
|
141
|
+
--clear-model` to use the agent default, or `brainbase task update <task-id>
|
|
142
|
+
--model <id>` to pick another. Exit codes and stdout are unchanged, and
|
|
143
|
+
`--json` carries the server's `model_notice`.
|
|
144
|
+
|
|
138
145
|
## Benchmark management
|
|
139
146
|
|
|
140
147
|
`benchmark init`, `benchmark validate`, and command help are local and need no
|
|
@@ -281,10 +288,17 @@ output.
|
|
|
281
288
|
|
|
282
289
|
The suite is version-sensitive too, so the pin is enforced at each entry point:
|
|
283
290
|
`bun run verify` and `bun run build` refuse another Bun outright, and `bun test`
|
|
284
|
-
|
|
285
|
-
to get it: `npx bun@<pinned> …`. Use `npx` rather than `bunx` —
|
|
286
|
-
published Bun versions but cannot resolve a bin for 1.3.10
|
|
287
|
-
is the current pin. Set `SKIP_BUN_VERSION_CHECK=1` to
|
|
291
|
+
and `bun run test` print a warning and carry on. Each names the pinned version
|
|
292
|
+
and the command to get it: `npx bun@<pinned> …`. Use `npx` rather than `bunx` —
|
|
293
|
+
bunx runs most published Bun versions but cannot resolve a bin for 1.3.10
|
|
294
|
+
specifically, which is the current pin. Set `SKIP_BUN_VERSION_CHECK=1` to
|
|
295
|
+
override any of them.
|
|
296
|
+
|
|
297
|
+
`bun run test` runs every test file in its own `bun test` process, half the
|
|
298
|
+
cores' worth at a time (`--jobs N` or `BUN_TEST_JOBS` to change that; any other
|
|
299
|
+
option goes to each `bun test`). `--shard i/n` runs every n-th file: CI splits
|
|
300
|
+
the suite over six runners that way, one file at a time on each. A bare
|
|
301
|
+
`bun test` runs the same files serially in one process.
|
|
288
302
|
|
|
289
303
|
### Releasing
|
|
290
304
|
|
|
@@ -328,10 +342,35 @@ older manifests keep their existing behavior.
|
|
|
328
342
|
`runtime_mode` accepts `fixed` or `auto`, separately from the lead harness and
|
|
329
343
|
model. An explicit value is synced by `agent create` or `agent push`; omission
|
|
330
344
|
preserves the remote mode. A mode-aware control plane's pull writes `auto` and
|
|
331
|
-
omits `fixed`.
|
|
345
|
+
omits `fixed`. `brainbase agent runtime --mode fixed|auto` sets it directly.
|
|
332
346
|
Runtime Auto requires the server's `self-delegation` feature flag, and children
|
|
333
|
-
also need a self-edge in an orchestration.
|
|
334
|
-
mode
|
|
347
|
+
also need a self-edge in an orchestration. A control plane that does not report
|
|
348
|
+
a mode runs every agent Fixed, so `runtime_mode: fixed` is always accepted and
|
|
349
|
+
only `auto` is refused there. `agent pull --force` discards local runtime-mode
|
|
350
|
+
edits.
|
|
351
|
+
|
|
352
|
+
## Self-loops
|
|
353
|
+
|
|
354
|
+
A self-loop lets an agent's task spawn copies of itself. Everything the web
|
|
355
|
+
console does with them has a command:
|
|
356
|
+
|
|
357
|
+
```sh
|
|
358
|
+
brainbase orchestration self-loop builder # let the agent spawn copies (--remove to undo)
|
|
359
|
+
brainbase agent runtime --mode auto --children 8 --shared-folder on
|
|
360
|
+
brainbase agent shared put ./brief.md inbox/ # files every copy can read at /workspace/Shared
|
|
361
|
+
brainbase task tree <task-id> # the task, its copies, capacity, "waiting on children"
|
|
362
|
+
brainbase task stop <task-id> --tree # stop the task and everything below it
|
|
363
|
+
brainbase board posts <task-id> --follow # the tree's message board
|
|
364
|
+
brainbase board post <task-id> --update "Schema is final"
|
|
365
|
+
brainbase board post <task-id> --instruct "Rebase onto main" --broadcast
|
|
366
|
+
brainbase task send <task-id> "Use this" --file ./notes.md
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
The shared folder is off on a new agent; without it, copies cannot hand files
|
|
370
|
+
to each other. `board post --instruct` takes `--to <task-id>` (repeatable),
|
|
371
|
+
`--broadcast`, `--children` or `--siblings`, and every post carries an
|
|
372
|
+
idempotency key that a retry reuses, so nothing is delivered twice. See
|
|
373
|
+
`docs/reference/commands.mdx` for each command.
|
|
335
374
|
|
|
336
375
|
When `agent create` claims a manifest with no `default_model`, the control plane
|
|
337
376
|
gives the agent the platform default for its harness, the same model the web
|