@brainbase-labs/cli 0.1.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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -0
  3. package/dist/index.js +7357 -0
  4. package/package.json +60 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brainbase
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # brainbase
2
+
3
+ Pack, share, and install agent templates across harnesses (Claude Code, Codex).
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install -g @brainbase-labs-hq/cli
9
+ ```
10
+
11
+ The package installs a `brainbase` command on your PATH. Requires Node.js 18+.
12
+
13
+ ## Quick start
14
+
15
+ ```sh
16
+ brainbase login # connect this device to brainbase
17
+ brainbase template pack # bundle the current agent into a template
18
+ brainbase template publish # upload to the registry
19
+ brainbase template search # find templates published by your team
20
+ brainbase template onboard <creator/slug> # install or refresh a template
21
+ ```
22
+
23
+ Run `brainbase help` to see every command.
24
+
25
+ ## What it manages
26
+
27
+ The CLI auto-detects per-harness state and lets you bundle it into a single shareable template:
28
+
29
+ - **Claude Code** — `.claude/skills/`, `.claude/commands/`, `.claude/agents/`, `CLAUDE.md`, MCP servers (read from every location: `.mcp.json`, `~/.claude.json`, `settings.json`)
30
+ - **Codex** — `.codex/` and `AGENTS.md`
31
+ - **Project root** — auto-detected `ONBOARDING.md`, plus any extra files/folders you pick
32
+
33
+ ## Configuration
34
+
35
+ | Variable | Purpose |
36
+ |---|---|
37
+ | `BRAINBASE_REGISTRY_URL` | Override the registry API host (default: `https://kafka-llm-service.onrender.com`) |
38
+ | `BRAINBASE_API_URL` | Same as above; checked second |
39
+ | `BRAINBASE_TOKEN` | Use a PAT instead of the stored login session |
40
+ | `BRAINBASE_HOME` | Where local state lives (default: `~/.brainbase`) |
41
+
42
+ ## Auth
43
+
44
+ Two ways to authenticate, in priority order:
45
+
46
+ 1. `brainbase login` — interactive Supabase OAuth, stored in `~/.brainbase/auth.json`. Carries full scopes.
47
+ 2. `brainbase token create --scope publish` — long-lived PAT (`bbpat_…`) for CI / unattended use.
48
+
49
+ `BRAINBASE_TOKEN` env var overrides both.
50
+
51
+ ## License
52
+
53
+ MIT — see [LICENSE](./LICENSE).