@brainbase-labs/cli 0.47.0 → 0.49.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 +30 -16
- package/dist/index.js +15737 -14746
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,24 @@ brainbase benchmark list # list benchmarks for the linked agent
|
|
|
27
27
|
|
|
28
28
|
Run `brainbase help` to see every command.
|
|
29
29
|
|
|
30
|
+
## Agent surfaces
|
|
31
|
+
|
|
32
|
+
Manage Chat, Slack, Meetings, GitHub, Linear and Phone from the terminal:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
brainbase agent connections --agent <id> --json
|
|
36
|
+
brainbase agent surface chat configure --agent <id> --models= --json
|
|
37
|
+
brainbase agent surface meeting configure --agent <id> --vision true
|
|
38
|
+
brainbase agent surface github connect --agent <id> --no-open
|
|
39
|
+
brainbase agent surface --help
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use `status` for effective settings and capabilities, and `configure` to
|
|
43
|
+
change only the supplied fields. GitHub/Linear setup prints portable browser
|
|
44
|
+
links and can resume with `wait --installation <id>`. Provider operations
|
|
45
|
+
require a login session. Phone purchases and all new disconnect commands
|
|
46
|
+
require `--yes`. See the [command reference](docs/reference/commands.mdx#connections).
|
|
47
|
+
|
|
30
48
|
## Link and pull in one step
|
|
31
49
|
|
|
32
50
|
A fresh checkout — a task sandbox, a CI job — can attach to an agent and pull it
|
|
@@ -336,7 +354,7 @@ Playbook files carry a small YAML frontmatter (`title`, `description`) — the C
|
|
|
336
354
|
| `BRAINBASE_API_URL` | Legacy KLS host override. Control requests use `/api/cli`; it is also the fallback for model-proxy and registry traffic. |
|
|
337
355
|
| `BRAINBASE_PROXY_URL` | Override the model-proxy host used when enabling harness tracking. |
|
|
338
356
|
| `BRAINBASE_REGISTRY_URL` | Override the registry API host. |
|
|
339
|
-
| `BRAINBASE_TOKEN` | Use a PAT instead of the stored login session.
|
|
357
|
+
| `BRAINBASE_TOKEN` | Use a PAT instead of the stored login session. Outranks both the session and the PAT saved in `token.json`. See [Auth](#auth). |
|
|
340
358
|
| `BRAINBASE_HOME` | Where local state lives (default: `~/.brainbase`) |
|
|
341
359
|
|
|
342
360
|
Model-proxy and registry traffic fall back through `BRAINBASE_API_URL`,
|
|
@@ -344,30 +362,26 @@ the server captured at login, and finally `https://api.v1.brainbaselabs.com`.
|
|
|
344
362
|
|
|
345
363
|
## Auth
|
|
346
364
|
|
|
347
|
-
|
|
348
|
-
it talks to:
|
|
365
|
+
Every command tries three credentials, in this order:
|
|
349
366
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
| `benchmark` control-plane commands | `BRAINBASE_TOKEN`, then the session |
|
|
367
|
+
1. `BRAINBASE_TOKEN`
|
|
368
|
+
2. the `auth.json` login session, renewed first if it has expired
|
|
369
|
+
3. the PAT that `brainbase token create` saved in `~/.brainbase/token.json`,
|
|
370
|
+
when there is no session or it could not be renewed. A PAT minted by a
|
|
371
|
+
different account than the session is never used in its place.
|
|
356
372
|
|
|
357
|
-
`brainbase whoami` (or `--json`) reports which one is active.
|
|
373
|
+
`brainbase whoami` (or `--json`) reports which one is active. It renews an
|
|
374
|
+
expired session itself, so what it reports is what the next command will use.
|
|
358
375
|
|
|
359
|
-
**For CI:**
|
|
360
|
-
and control-plane commands never read that file — `brainbase agent push` needs
|
|
361
|
-
the token in `BRAINBASE_TOKEN`:
|
|
376
|
+
**For CI:** a runner has no `token.json`, so hand it the PAT as a secret:
|
|
362
377
|
|
|
363
378
|
```bash
|
|
364
379
|
export BRAINBASE_TOKEN=bbpat_…
|
|
365
380
|
brainbase agent push
|
|
366
381
|
```
|
|
367
382
|
|
|
368
|
-
Do not bake a `~/.brainbase` directory into a build image
|
|
369
|
-
`
|
|
370
|
-
failing once its session expires.
|
|
383
|
+
Do not bake a `~/.brainbase` directory into a build image. Ship
|
|
384
|
+
`BRAINBASE_TOKEN` as a secret instead.
|
|
371
385
|
|
|
372
386
|
An explicit PAT does not inherit routing from a stored login. Set
|
|
373
387
|
`BRAINBASE_CONTROL_PLANE_URL` when using a PAT against a non-default MAS host.
|