cerebrex 0.3.2 → 0.4.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 +46 -15
  2. package/dist/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -19,17 +19,21 @@ The complete infrastructure layer for AI agents — in one CLI.
19
19
 
20
20
  ---
21
21
 
22
- > **Status: v0.3.2All 6 modules complete and live on npm**
22
+ > **Status: v0.4.0Registry Web UI live, all 6 CLI modules on npm**
23
23
  > `npm install -g cerebrex` — FORGE, TRACE, MEMEX, AUTH, REGISTRY, and HIVE are all working.
24
- > Live registry: `https://cerebrex-registry.therealjosefdmcclammey.workers.dev`
24
+ >
25
+ > **Live:** Registry UI → `https://cerebrex-registry.therealjosefdmcclammey.workers.dev`
26
+ > **Live:** Trace Explorer → `https://cerebrex-registry.therealjosefdmcclammey.workers.dev/ui/trace`
27
+ >
28
+ > **Website: Coming Soon** — `https://therealcool.site`
25
29
 
26
30
  ---
27
31
 
28
32
  ## What is CerebreX?
29
33
 
30
- CerebreX is an open-source **Agent Infrastructure OS** — the tools developers need to build reliable, observable, and secure AI agents.
34
+ CerebreX is an open-source **Agent Infrastructure OS** — the complete toolchain developers need to build reliable, observable, and secure AI agents.
31
35
 
32
- Six modules. One CLI.
36
+ Six modules. One CLI. One registry. One coordination layer.
33
37
 
34
38
  | Module | Command | Status | What It Does |
35
39
  |--------|---------|--------|-------------|
@@ -37,7 +41,7 @@ Six modules. One CLI.
37
41
  | 🔍 **TRACE** | `cerebrex trace` | ✅ Working | Record agent execution + visual web dashboard |
38
42
  | 🧠 **MEMEX** | `cerebrex memex` | ✅ Working | Persistent memory with SHA-256 integrity + TTL |
39
43
  | 🔑 **AUTH** | `cerebrex auth` | ✅ Working | Secure token storage for registry authentication |
40
- | 📦 **REGISTRY** | `cerebrex publish` | ✅ Working | Publish and install MCP servers (live registry) |
44
+ | 📦 **REGISTRY** | `cerebrex publish` | ✅ Working | Publish and install MCP servers (live registry + web UI) |
41
45
  | 🐝 **HIVE** | `cerebrex hive` | ✅ Working | Multi-agent coordination with JWT auth |
42
46
 
43
47
  ---
@@ -53,7 +57,7 @@ Or build from source (requires [Bun](https://bun.sh)):
53
57
 
54
58
  ```bash
55
59
  git clone https://github.com/therealcoolnerd/CerebreX.git
56
- cd CerebreX
60
+ cd CerebreX/cerebrex
57
61
  bun install
58
62
  cd packages/types && bun run build && cd ../..
59
63
  cd packages/core && bun run build && cd ../..
@@ -86,7 +90,7 @@ Output is a Cloudflare Workers project with:
86
90
  ## 🔍 TRACE — Agent Execution Recording
87
91
 
88
92
  ```bash
89
- # Start recording (runs in foreground)
93
+ # Start recording (runs in foreground, default port 7432)
90
94
  cerebrex trace start --session my-agent --port 7432
91
95
 
92
96
  # From your agent, push steps:
@@ -102,6 +106,9 @@ cerebrex trace view --session my-agent
102
106
  # View in visual web dashboard (opens browser)
103
107
  cerebrex trace view --session my-agent --web
104
108
 
109
+ # Or use the hosted Trace Explorer (no CLI required)
110
+ # https://cerebrex-registry.therealjosefdmcclammey.workers.dev/ui/trace
111
+
105
112
  # List all saved sessions
106
113
  cerebrex trace list
107
114
  ```
@@ -124,6 +131,12 @@ cerebrex memex list
124
131
 
125
132
  # With TTL (auto-expires after 3600 seconds)
126
133
  cerebrex memex set "session-ctx" "..." --ttl 3600
134
+
135
+ # Delete a key
136
+ cerebrex memex delete "user-pref" --namespace ui
137
+
138
+ # List all namespaces
139
+ cerebrex memex namespaces
127
140
  ```
128
141
 
129
142
  All writes are SHA-256 checksummed. Reads verify integrity before returning.
@@ -139,18 +152,21 @@ cerebrex auth status # check current auth state
139
152
  cerebrex auth logout # remove stored token
140
153
  ```
141
154
 
155
+ `CEREBREX_TOKEN` env var always takes precedence over stored credentials.
156
+
142
157
  ---
143
158
 
144
159
  ## 📦 REGISTRY — Publish & Install MCP Servers
145
160
 
146
- Registry: `https://cerebrex-registry.therealjosefdmcclammey.workers.dev`
161
+ Registry API: `https://cerebrex-registry.therealjosefdmcclammey.workers.dev`
162
+ Registry UI: `https://cerebrex-registry.therealjosefdmcclammey.workers.dev` (browser)
147
163
 
148
164
  ```bash
149
165
  cerebrex auth login # authenticate first
150
- cerebrex publish --dir ./my-server # publish to registry
151
- cerebrex install my-mcp-server # install from registry
152
166
  cerebrex validate ./my-server # validate before publishing
153
167
  cerebrex validate ./my-server --strict # + OWASP checks
168
+ cerebrex publish --dir ./my-server # publish to registry
169
+ cerebrex install my-mcp-server # install from registry
154
170
  ```
155
171
 
156
172
  ---
@@ -176,6 +192,18 @@ cerebrex hive send --agent agent-1 --type summarize --payload '{"text":"..."}' -
176
192
 
177
193
  HIVE runs a local HTTP coordinator with JWT-signed agent authentication.
178
194
  Agents register, receive tasks, and report results back via the REST API.
195
+ State is persisted to `~/.cerebrex/hive/state.json`.
196
+
197
+ ---
198
+
199
+ ## 🌐 Web UI
200
+
201
+ The CerebreX registry includes a browser-based UI served directly from the Worker — no install required.
202
+
203
+ | URL | What It Does |
204
+ |-----|-------------|
205
+ | `/` | Registry browser — search packages, view details, copy install commands |
206
+ | `/ui/trace` | Hosted Trace Explorer — drag-and-drop JSON trace files, full visual timeline |
179
207
 
180
208
  ---
181
209
 
@@ -189,11 +217,11 @@ CerebreX/
189
217
  │ │ │ ├── commands/ # build, trace, memex, auth, hive, other-commands
190
218
  │ │ │ └── core/ # forge/, trace/, memex/ engines + dashboard
191
219
  │ │ └── dist/ # built output (git-ignored, built by CI)
192
- │ └── dashboard/ # Web trace explorer (embedded in CLI bundle)
220
+ │ └── dashboard/ # Standalone trace explorer HTML
193
221
  │ └── src/index.html
194
222
  ├── workers/
195
- │ └── registry/ # Cloudflare Worker — live registry backend
196
- │ ├── src/index.ts # REST API (D1 + KV)
223
+ │ └── registry/ # Cloudflare Worker — live registry backend + Web UI
224
+ │ ├── src/index.ts # REST API (D1 + KV) + embedded HTML pages
197
225
  │ ├── schema.sql # D1 database schema
198
226
  │ └── wrangler.toml
199
227
  ├── packages/
@@ -230,7 +258,7 @@ Contributions are welcome. CerebreX is a solo-built open-source project — PRs,
230
258
 
231
259
  ```bash
232
260
  git clone https://github.com/therealcoolnerd/CerebreX.git
233
- cd CerebreX
261
+ cd CerebreX/cerebrex
234
262
  bun install
235
263
  cd packages/types && bun run build && cd ../..
236
264
  cd packages/core && bun run build && cd ../..
@@ -253,8 +281,11 @@ cd apps/cli && bun run build
253
281
  - [x] Web dashboard — Visual trace explorer (`cerebrex trace view --web`) *(v0.3)*
254
282
  - [x] Registry backend — Cloudflare Worker + D1 + KV *(v0.3)*
255
283
  - [x] HIVE — Multi-agent JWT coordination (init/start/register/status/send) *(v0.3)*
284
+ - [x] Web UI — Registry browser + hosted trace explorer (Worker-embedded) *(v0.4)*
285
+ - [ ] Website — `therealcool.site` *(coming soon)*
256
286
  - [ ] Custom domain — `registry.cerebrex.dev` *(next)*
257
- - [ ] Web UIBrowser-based registry and trace browser *(v0.4)*
287
+ - [ ] Real registry auth account registration + token validation *(v0.5)*
288
+ - [ ] Agent test runner — `cerebrex test` with replay + assertions *(v0.5)*
258
289
  - [ ] Enterprise tier + on-prem *(v1.0)*
259
290
 
260
291
  ---
package/dist/index.js CHANGED
@@ -740,7 +740,7 @@ Make sure you have wrangler configured: bunx wrangler login
740
740
  `)),process.exit(1);let X=E1(`Sending task '${$.type}' to agent ${$.agent}...`).start();try{let J=await fetch(`${$.hiveUrl}/tasks`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${$.token}`},body:JSON.stringify({agent_id:$.agent,type:$.type,payload:Z})});if(!J.ok){let Y=await J.json();throw Error(Y.error||`HTTP ${J.status}`)}let{task:Q}=await J.json();X.succeed(D.green("Task queued")),console.log(D.dim(`
741
741
  Task ID: ${Q.id}`)),console.log(D.dim(` Status: ${Q.status}
742
742
  `))}catch(J){X.fail(D.red("Failed to send task")),console.error(D.dim(` ${J.message}
743
- `)),process.exit(1)}});var Xk="0.3.2",v1=new V1,jq1=`
743
+ `)),process.exit(1)}});var Xk="0.4.0",v1=new V1,jq1=`
744
744
  ${D.cyan(" ██████╗███████╗██████╗ ███████╗██████╗ ██████╗ ███████╗██╗ ██╗")}
745
745
  ${D.cyan(" ██╔════╝██╔════╝██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝")}
746
746
  ${D.cyan(" ██║ █████╗ ██████╔╝█████╗ ██████╔╝██████╔╝█████╗ ╚███╔╝ ")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cerebrex",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "CerebreX CLI — The open-source Agent Infrastructure OS",
5
5
  "bin": {
6
6
  "cerebrex": "dist/index.js"