@timmeck/brain 2.0.0 → 2.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.
- package/README.md +16 -2
- package/brain.log +2712 -0
- package/dashboard.html +7 -1
- package/dist/brain.d.ts +1 -0
- package/dist/brain.js +11 -5
- package/dist/brain.js.map +1 -1
- package/dist/cli/commands/dashboard.js +21 -2
- package/dist/cli/commands/dashboard.js.map +1 -1
- package/dist/cli/commands/status.js +0 -1
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/config.js +2 -29
- package/dist/config.js.map +1 -1
- package/dist/ipc/__tests__/protocol.test.js +1 -1
- package/dist/ipc/__tests__/protocol.test.js.map +1 -1
- package/dist/ipc/router.d.ts +2 -0
- package/dist/ipc/router.js +22 -0
- package/dist/ipc/router.js.map +1 -1
- package/dist/learning/confidence-scorer.d.ts +2 -5
- package/dist/learning/confidence-scorer.js +4 -19
- package/dist/learning/confidence-scorer.js.map +1 -1
- package/dist/learning/decay.js +2 -3
- package/dist/learning/decay.js.map +1 -1
- package/dist/learning/learning-engine.d.ts +2 -5
- package/dist/learning/learning-engine.js +3 -15
- package/dist/learning/learning-engine.js.map +1 -1
- package/dist/mcp/tools.js +36 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/parsing/parsers/compiler.js +1 -1
- package/dist/parsing/parsers/compiler.js.map +1 -1
- package/dist/research/research-engine.d.ts +2 -6
- package/dist/research/research-engine.js +3 -23
- package/dist/research/research-engine.js.map +1 -1
- package/dist/services/synapse.service.d.ts +3 -3
- package/dist/synapses/activation.d.ts +3 -13
- package/dist/synapses/activation.js +2 -49
- package/dist/synapses/activation.js.map +1 -1
- package/dist/synapses/decay.d.ts +2 -11
- package/dist/synapses/decay.js +2 -26
- package/dist/synapses/decay.js.map +1 -1
- package/dist/synapses/hebbian.d.ts +2 -13
- package/dist/synapses/hebbian.js +2 -35
- package/dist/synapses/hebbian.js.map +1 -1
- package/dist/synapses/pathfinder.d.ts +2 -14
- package/dist/synapses/pathfinder.js +2 -49
- package/dist/synapses/pathfinder.js.map +1 -1
- package/dist/synapses/synapse-manager.d.ts +7 -23
- package/dist/synapses/synapse-manager.js +6 -63
- package/dist/synapses/synapse-manager.js.map +1 -1
- package/eslint.config.js +14 -0
- package/package.json +56 -50
package/README.md
CHANGED
|
@@ -190,6 +190,8 @@ Brain scans for source files (TypeScript, JavaScript, Python, Rust, Go, Shell, H
|
|
|
190
190
|
| SQLite (DB) |
|
|
191
191
|
| better-sqlite3 |
|
|
192
192
|
+----------------------+
|
|
193
|
+
|
|
194
|
+
Cross-brain peering via IPC named pipes (\\.\pipe\brain-*, /tmp/brain-*)
|
|
193
195
|
```
|
|
194
196
|
|
|
195
197
|
### Core Components
|
|
@@ -225,6 +227,7 @@ brain config View and manage Brain configuration
|
|
|
225
227
|
brain export Export Brain data as JSON
|
|
226
228
|
brain import <dir> Import a project directory into Brain
|
|
227
229
|
brain dashboard Generate interactive HTML dashboard (--live for SSE)
|
|
230
|
+
brain peers Show status of peer brains in the ecosystem
|
|
228
231
|
```
|
|
229
232
|
|
|
230
233
|
## MCP Tools
|
|
@@ -247,6 +250,9 @@ These tools are available to Claude Code (and other MCP clients) when Brain is c
|
|
|
247
250
|
| `brain_suggest` | Get suggestions on what to build or improve |
|
|
248
251
|
| `brain_status` | Current Brain stats |
|
|
249
252
|
| `brain_notifications` | Get pending notifications |
|
|
253
|
+
| `brain_ecosystem_status` | Get status of all brains in the ecosystem |
|
|
254
|
+
| `brain_query_peer` | Query another brain in the ecosystem (method + params) |
|
|
255
|
+
| `brain_error_trading_context` | Correlate an error with trading outcomes from Trading Brain |
|
|
250
256
|
|
|
251
257
|
## REST API
|
|
252
258
|
|
|
@@ -380,10 +386,18 @@ Brain is part of the **Brain Ecosystem** — a family of standalone MCP servers
|
|
|
380
386
|
| **Brain** | Error memory & code intelligence | **7777** / 7778 |
|
|
381
387
|
| [Trading Brain](https://github.com/timmeck/trading-brain) | Adaptive trading intelligence | 7779 / 7780 |
|
|
382
388
|
| [Marketing Brain](https://github.com/timmeck/marketing-brain) | Content strategy & engagement | 7781 / 7782 |
|
|
383
|
-
| [Brain Core](https://github.com/timmeck/brain-core) | Shared infrastructure (
|
|
389
|
+
| [Brain Core](https://github.com/timmeck/brain-core) v1.6.0 | Shared infrastructure (IPC, MCP, REST, CLI, math, synapses) | — |
|
|
384
390
|
| [Brain Hub](https://timmeck.github.io/brain-hub/) | Ecosystem landing page | — |
|
|
385
391
|
|
|
386
|
-
Each brain is **fully standalone** — [Brain Core](https://www.npmjs.com/package/@timmeck/brain-core)
|
|
392
|
+
Each brain is **fully standalone** — [Brain Core](https://www.npmjs.com/package/@timmeck/brain-core) provides shared infrastructure (IPC, MCP, REST API, CLI, math, synapse algorithms) used by all brains, eliminating ~2,800 lines of duplicated code.
|
|
393
|
+
|
|
394
|
+
### Cross-Brain Communication
|
|
395
|
+
|
|
396
|
+
Brains discover and query each other at runtime via IPC named pipes. Use `brain peers` to see online peers, or the `brain_query_peer` / `brain_ecosystem_status` MCP tools to access peer data from Claude Code. Brains also push event notifications to each other — when Brain reports an error, Trading Brain and Marketing Brain are notified automatically.
|
|
397
|
+
|
|
398
|
+
### Ecosystem Dashboard
|
|
399
|
+
|
|
400
|
+
The interactive HTML dashboard (`brain dashboard`) includes an Ecosystem Peers section showing the live status of all connected brains.
|
|
387
401
|
|
|
388
402
|
## License
|
|
389
403
|
|