@timmeck/brain-core 1.6.0 → 1.6.1
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 -8
- package/package.json +4 -3
- package/brain.log +0 -6
package/README.md
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@timmeck/brain-core)
|
|
4
4
|
[](https://www.npmjs.com/package/@timmeck/brain-core)
|
|
5
5
|
[](LICENSE)
|
|
6
|
-
[](https://github.com/timmeck/brain-ecosystem)
|
|
7
7
|
|
|
8
8
|
**Shared infrastructure for the Brain ecosystem — IPC, MCP, CLI, DB, math, synapses, and utilities.**
|
|
9
9
|
|
|
10
|
-
Brain Core extracts the common infrastructure used across all Brain MCP servers ([Brain](https://github.com/timmeck/brain), [Trading Brain](https://github.com/timmeck/trading-brain), [Marketing Brain](https://github.com/timmeck/marketing-brain)) into a single, reusable package.
|
|
10
|
+
Brain Core extracts the common infrastructure used across all Brain MCP servers ([Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain), [Trading Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/trading-brain), [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain)) into a single, reusable package. All packages live in the [brain-ecosystem](https://github.com/timmeck/brain-ecosystem) monorepo.
|
|
11
11
|
|
|
12
12
|
## What's Included
|
|
13
13
|
|
|
@@ -151,12 +151,12 @@ class MyRouter implements IpcRouter {
|
|
|
151
151
|
|
|
152
152
|
| Brain | Version | Purpose | Ports |
|
|
153
153
|
|-------|---------|---------|-------|
|
|
154
|
-
| [Brain](https://github.com/timmeck/brain) | v2.2.
|
|
155
|
-
| [Trading Brain](https://github.com/timmeck/trading-brain) | v1.2
|
|
156
|
-
| [Marketing Brain](https://github.com/timmeck/marketing-brain) | v0.
|
|
157
|
-
| [Brain Core](https://github.com/timmeck/brain-core) | v1.6.
|
|
154
|
+
| [Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain) | v2.2.1 | Error memory, code intelligence & persistent context | 7777/7778 |
|
|
155
|
+
| [Trading Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/trading-brain) | v1.3.2 | Adaptive trading intelligence with memory & sessions | 7779/7780 |
|
|
156
|
+
| [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain) | v0.5.2 | Content strategy & engagement with memory & sessions | 7781/7782/7783 |
|
|
157
|
+
| [Brain Core](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain-core) | v1.6.1 | Shared infrastructure (this package) | — |
|
|
158
158
|
|
|
159
|
-
All
|
|
159
|
+
All packages live in the [brain-ecosystem](https://github.com/timmeck/brain-ecosystem) monorepo with npm workspaces. Brain Core provides shared infrastructure that eliminates ~2,800 lines of duplicated code across the ecosystem.
|
|
160
160
|
|
|
161
161
|
## Cross-Brain Communication
|
|
162
162
|
|
|
@@ -168,7 +168,7 @@ import { CrossBrainClient, CrossBrainNotifier } from '@timmeck/brain-core';
|
|
|
168
168
|
// Query peers
|
|
169
169
|
const cross = new CrossBrainClient('brain');
|
|
170
170
|
const peers = await cross.getAvailablePeers();
|
|
171
|
-
// → [{ name: 'trading-brain', version: '1.2
|
|
171
|
+
// → [{ name: 'trading-brain', version: '1.3.2', uptime: 3600, pid: 12345, methods: 22 }, ...]
|
|
172
172
|
|
|
173
173
|
// Push event notifications to peers (v1.5+)
|
|
174
174
|
const notifier = new CrossBrainNotifier(cross, 'brain');
|
|
@@ -198,6 +198,13 @@ class MyMemoryEngine extends BaseMemoryEngine {
|
|
|
198
198
|
|
|
199
199
|
Visit the [Brain Hub](https://timmeck.github.io/brain-hub/) for the full ecosystem overview.
|
|
200
200
|
|
|
201
|
+
## Support
|
|
202
|
+
|
|
203
|
+
If Brain Core helps you, consider giving it a star — it helps others discover the project and keeps development going.
|
|
204
|
+
|
|
205
|
+
[](https://github.com/timmeck/brain-ecosystem)
|
|
206
|
+
[](https://github.com/sponsors/timmeck)
|
|
207
|
+
|
|
201
208
|
## License
|
|
202
209
|
|
|
203
210
|
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmeck/brain-core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Shared core infrastructure for the Brain ecosystem — IPC, MCP, CLI, DB connection, and utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc",
|
|
38
38
|
"dev": "tsx src/index.ts",
|
|
39
|
-
"test": "vitest",
|
|
39
|
+
"test": "vitest run",
|
|
40
40
|
"lint": "eslint src/",
|
|
41
41
|
"lint:fix": "eslint src/ --fix",
|
|
42
42
|
"test:coverage": "vitest --coverage"
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"license": "MIT",
|
|
63
63
|
"repository": {
|
|
64
64
|
"type": "git",
|
|
65
|
-
"url": "https://github.com/timmeck/brain-
|
|
65
|
+
"url": "https://github.com/timmeck/brain-ecosystem",
|
|
66
|
+
"directory": "packages/brain-core"
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
69
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
package/brain.log
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
2026-02-27T15:33:52.574Z [error] {"error":"Error: boom"} Learning cycle error
|
|
2
|
-
2026-02-27T15:33:52.575Z [error] {"error":"Error: boom"} Research cycle error
|
|
3
|
-
2026-02-27T15:36:06.467Z [error] {"error":"Error: boom"} Learning cycle error
|
|
4
|
-
2026-02-27T15:36:06.471Z [error] {"error":"Error: boom"} Research cycle error
|
|
5
|
-
2026-02-27T15:40:43.982Z [error] {"error":"Error: boom"} Research cycle error
|
|
6
|
-
2026-02-27T15:40:43.982Z [error] {"error":"Error: boom"} Learning cycle error
|