@timmeck/trading-brain 2.10.0 → 2.10.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 CHANGED
@@ -38,6 +38,11 @@ Without Trading Brain, every trading decision starts from zero. With Trading Bra
38
38
  - **Temporal Decay** — Exponential half-life decay keeps recent trades more relevant
39
39
  - **Recalibration** — Auto-recalibrates every 25 trades based on data volume and synapse density
40
40
 
41
+ ### Dream Mode (new in v2.10)
42
+ - **Offline Consolidation** — Memory replay, synapse pruning, memory compression, importance decay during idle periods
43
+ - **Idle Detection** — Automatically triggers when brain is idle for 5+ minutes
44
+ - **Manual Trigger** — Force a dream cycle via MCP tool or IPC
45
+
41
46
  ### Research Engine
42
47
  - **Trend Detection** — Identifies pairs with consistently improving or declining win rates
43
48
  - **Gap Detection** — Finds signal combinations with few data points that need more testing
@@ -225,6 +230,9 @@ These tools are available to Claude Code (and other MCP clients) when Trading Br
225
230
  | `trading_session_end` | End a session with summary and outcome |
226
231
  | `trading_session_history` | List past sessions with summaries |
227
232
  | `trading_error_context` | Query Brain for errors that correlate with trade failures |
233
+ | `trading_dream_status` | Dream engine status and lifetime consolidation stats |
234
+ | `trading_dream_consolidate` | Manually trigger a dream consolidation cycle |
235
+ | `trading_dream_history` | View past dream consolidation cycles |
228
236
 
229
237
  ## REST API
230
238
 
@@ -333,10 +341,10 @@ Trading Brain is part of the **[Brain Ecosystem](https://github.com/timmeck/brai
333
341
 
334
342
  | Brain | Purpose | Ports |
335
343
  |-------|---------|-------|
336
- | [Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain) v3.9.0 | Error memory, code intelligence, persistent context & autonomous research | 7777 / 7778 |
337
- | **Trading Brain** v2.9.0 | Adaptive trading intelligence with memory, sessions & autonomous research | **7779** / 7780 |
338
- | [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain) v1.10.0 | Content strategy, engagement, campaigns & autonomous research | 7781 / 7782 / 7783 |
339
- | [Brain Core](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain-core) v2.8.0 | Shared infrastructure (IPC, MCP, REST, CLI, math, synapses, memory, research) | — |
344
+ | [Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain) v3.10.0 | Error memory, code intelligence, persistent context & autonomous research | 7777 / 7778 |
345
+ | **Trading Brain** v2.10.0 | Adaptive trading intelligence with memory, sessions & autonomous research | **7779** / 7780 |
346
+ | [Marketing Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/marketing-brain) v1.11.0 | Content strategy, engagement, campaigns & autonomous research | 7781 / 7782 / 7783 |
347
+ | [Brain Core](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain-core) v2.9.0 | Shared infrastructure (IPC, MCP, REST, CLI, math, synapses, memory, research) | — |
340
348
  | [Brain Hub](https://timmeck.github.io/brain-hub/) | Ecosystem landing page | — |
341
349
 
342
350
  All packages live in the [brain-ecosystem](https://github.com/timmeck/brain-ecosystem) monorepo with npm workspaces. [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.
@@ -351,7 +351,7 @@ export class IpcRouter {
351
351
  throw new Error('Research journal not available'); return s.journal.search('dream', p(params)?.limit ?? 10); }],
352
352
  ['status', () => ({
353
353
  name: 'trading-brain',
354
- version: '2.10.0',
354
+ version: '2.10.1',
355
355
  uptime: Math.floor(process.uptime()),
356
356
  pid: process.pid,
357
357
  methods: this.listMethods().length,
@@ -6,7 +6,7 @@ import { registerDreamToolsDirect } from './dream-tools.js';
6
6
  export class McpHttpServer {
7
7
  inner;
8
8
  constructor(port, router) {
9
- this.inner = new CoreMcpHttpServer(port, router, { name: 'trading-brain', version: '2.10.0' }, (server, _r) => {
9
+ this.inner = new CoreMcpHttpServer(port, router, { name: 'trading-brain', version: '2.10.1' }, (server, _r) => {
10
10
  registerToolsDirect(server, router);
11
11
  registerResearchToolsDirect(server, router);
12
12
  registerAdvancedResearchToolsDirect(server, router);
@@ -7,7 +7,7 @@ import { registerDreamTools } from './dream-tools.js';
7
7
  export async function startMcpServer() {
8
8
  await coreStartMcpServer({
9
9
  name: 'trading-brain',
10
- version: '2.10.0',
10
+ version: '2.10.1',
11
11
  entryPoint: path.resolve(import.meta.dirname, '../index.ts'),
12
12
  registerTools: (server, ipc) => {
13
13
  registerTools(server, ipc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timmeck/trading-brain",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "Adaptive trading intelligence system with Hebbian synapses, spreading activation, Wilson Score confidence, and adaptive calibration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",