@rizom/brain 0.1.1-alpha.7 → 0.1.1-alpha.9
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 +15 -6
- package/dist/brain.js +4018 -874
- package/dist/seed-content/relay/README.md +4 -4
- package/dist/site.js +108 -108
- package/dist/site.js.map +5 -5
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ echo "AI_API_KEY=your-key-here" > .env
|
|
|
19
19
|
brain start
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
If you plan to deploy behind Kamal with Cloudflare Origin CA TLS, scaffold with `brain init mybrain --deploy`, then run `brain cert:bootstrap` once and store the resulting cert/key as secrets before deploying.
|
|
23
|
+
|
|
24
|
+
`brain init` generates a 1Password-backed varlock schema by default. Pass `--backend` if you need a different secret backend plugin.
|
|
25
|
+
|
|
22
26
|
## Requirements
|
|
23
27
|
|
|
24
28
|
- [Bun](https://bun.sh) 1.3.3 or later
|
|
@@ -32,6 +36,7 @@ A brain is a personal AI agent with persistent memory, tools, and integrations.
|
|
|
32
36
|
| Command | Description |
|
|
33
37
|
| ----------------------- | ---------------------------------------- |
|
|
34
38
|
| `brain init <dir>` | Scaffold a new brain instance |
|
|
39
|
+
| `brain cert:bootstrap` | Issue a Cloudflare Origin CA certificate |
|
|
35
40
|
| `brain start` | Start the brain server |
|
|
36
41
|
| `brain chat` | Start in interactive chat mode |
|
|
37
42
|
| `brain list <type>` | List entities (posts, notes, etc.) |
|
|
@@ -75,12 +80,16 @@ Explicit provider override: `model: openai:gpt-4o-mini`
|
|
|
75
80
|
|
|
76
81
|
### Environment Variables
|
|
77
82
|
|
|
78
|
-
| Variable | Required | Description
|
|
79
|
-
| ---------------- | -------- |
|
|
80
|
-
| `AI_API_KEY` | Yes | API key for your AI provider
|
|
81
|
-
| `AI_IMAGE_KEY` | No | Separate key for image generation
|
|
82
|
-
| `GIT_SYNC_TOKEN` | No | GitHub PAT for content sync
|
|
83
|
-
| `MCP_AUTH_TOKEN` | No | Token for MCP HTTP authentication
|
|
83
|
+
| Variable | Required | Description |
|
|
84
|
+
| ---------------- | -------- | --------------------------------------- |
|
|
85
|
+
| `AI_API_KEY` | Yes | API key for your AI provider |
|
|
86
|
+
| `AI_IMAGE_KEY` | No | Separate key for image generation |
|
|
87
|
+
| `GIT_SYNC_TOKEN` | No | GitHub PAT for content sync |
|
|
88
|
+
| `MCP_AUTH_TOKEN` | No | Token for MCP HTTP authentication |
|
|
89
|
+
| `CF_API_TOKEN` | Yes\* | Cloudflare API token for cert bootstrap |
|
|
90
|
+
| `CF_ZONE_ID` | Yes\* | Cloudflare zone ID for cert bootstrap |
|
|
91
|
+
|
|
92
|
+
- Only required when running `brain cert:bootstrap`.
|
|
84
93
|
|
|
85
94
|
## Brain Models
|
|
86
95
|
|