@brainbase-labs/cli 0.16.5 → 0.18.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.
Files changed (3) hide show
  1. package/README.md +11 -5
  2. package/dist/index.js +1086 -533
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -14,10 +14,14 @@ The package installs a `brainbase` command on your PATH. Requires Node.js 18+.
14
14
 
15
15
  ```sh
16
16
  brainbase login # connect this device to brainbase
17
+ brainbase team list # which teams can I put agents in?
18
+ brainbase agent list # which agents are in a team, and what are their ids?
17
19
  brainbase template pack # bundle the current agent into a template
18
20
  brainbase template publish # upload to the registry
19
21
  brainbase template search # find templates published by your team
20
22
  brainbase template onboard <creator/slug> # install or refresh a template
23
+ brainbase agent create # claim a local brainbase.agent.yaml
24
+ brainbase task create --message "Review this project and propose next steps"
21
25
  ```
22
26
 
23
27
  Run `brainbase help` to see every command.
@@ -74,7 +78,7 @@ Playbook files carry a small YAML frontmatter (`title`, `description`) — the C
74
78
 
75
79
  | Variable | Purpose |
76
80
  |-|-|
77
- | `BRAINBASE_CONTROL_PLANE_URL` | Override the MAS control-plane host. Requests use `/v2/cli`; the default is `https://api.brainbaselabs.com`. |
81
+ | `BRAINBASE_CONTROL_PLANE_URL` | Override the MAS host. Agent/orchestration requests use `/v2/cli`; `task create` uses `/v2/tasks`. The default is `https://api.brainbaselabs.com`. |
78
82
  | `BRAINBASE_API_URL` | Legacy KLS host override. Control requests use `/api/cli`; it is also the fallback for model-proxy and registry traffic. |
79
83
  | `BRAINBASE_PROXY_URL` | Override the model-proxy host used when enabling harness tracking. |
80
84
  | `BRAINBASE_REGISTRY_URL` | Override the registry API host. |
@@ -86,12 +90,14 @@ the server captured at login, and finally `https://api.v1.brainbaselabs.com`.
86
90
 
87
91
  ## Auth
88
92
 
89
- Two ways to authenticate, in priority order:
93
+ Managed task creation uses this authentication precedence:
90
94
 
91
- 1. `brainbase login` — interactive Supabase OAuth, stored in `~/.brainbase/auth.json`. Carries full scopes.
92
- 2. `brainbase token create --scope publish` — long-lived PAT (`bbpat_…`) for CI / unattended use.
95
+ 1. `BRAINBASE_TOKEN` — an explicit PAT from the environment.
96
+ 2. `brainbase login` — a Supabase session stored in `~/.brainbase/auth.json`.
97
+ 3. `brainbase token create --scopes read,publish` — a PAT stored in `~/.brainbase/token.json` when no login session is configured.
93
98
 
94
- `BRAINBASE_TOKEN` env var overrides both.
99
+ An explicit PAT does not inherit routing from a stored login. Set
100
+ `BRAINBASE_CONTROL_PLANE_URL` when using a PAT against a non-default MAS host.
95
101
 
96
102
  ## License
97
103