@timmeck/brain 3.36.76 → 3.36.78
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/dist/brain.d.ts +3 -0
- package/dist/brain.js +13 -0
- package/dist/brain.js.map +1 -1
- package/dist/cli/commands/bot.d.ts +2 -0
- package/dist/cli/commands/bot.js +44 -0
- package/dist/cli/commands/bot.js.map +1 -0
- package/dist/cli/commands/browser.d.ts +2 -0
- package/dist/cli/commands/browser.js +47 -0
- package/dist/cli/commands/browser.js.map +1 -0
- package/dist/cli/commands/conversation.d.ts +2 -0
- package/dist/cli/commands/conversation.js +89 -0
- package/dist/cli/commands/conversation.js.map +1 -0
- package/dist/cli/commands/report.js +35 -1
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/setup.js +150 -3
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/hooks/prompt-submit.js +9 -0
- package/dist/hooks/prompt-submit.js.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/init/engine-factory.d.ts +4 -1
- package/dist/init/engine-factory.js +26 -1
- package/dist/init/engine-factory.js.map +1 -1
- package/dist/ipc/router.d.ts +3 -0
- package/dist/ipc/router.js +35 -0
- package/dist/ipc/router.js.map +1 -1
- package/dist/mcp/browser-agent-tools.d.ts +5 -0
- package/dist/mcp/browser-agent-tools.js +42 -0
- package/dist/mcp/browser-agent-tools.js.map +1 -0
- package/dist/mcp/conversation-memory-tools.d.ts +5 -0
- package/dist/mcp/conversation-memory-tools.js +76 -0
- package/dist/mcp/conversation-memory-tools.js.map +1 -0
- package/dist/mcp/http-server.js +4 -0
- package/dist/mcp/http-server.js.map +1 -1
- package/dist/mcp/server.js +4 -0
- package/dist/mcp/server.js.map +1 -1
- package/package.json +1 -1
package/dist/ipc/router.js
CHANGED
|
@@ -377,6 +377,8 @@ export class IpcRouter {
|
|
|
377
377
|
throw new Error('Hypothesis engine not available'); return s.hypothesis.getSummary(); }],
|
|
378
378
|
['hypothesis.propose', (params) => { if (!s.hypothesis)
|
|
379
379
|
throw new Error('Hypothesis engine not available'); return s.hypothesis.propose(p(params)); }],
|
|
380
|
+
['hypothesis.survival', () => { if (!s.hypothesis)
|
|
381
|
+
throw new Error('Hypothesis engine not available'); return s.hypothesis.getSurvivalMetrics(); }],
|
|
380
382
|
// ─── Autonomous Research ─────────────────────────────
|
|
381
383
|
['research.status', () => { if (!s.researchScheduler)
|
|
382
384
|
throw new Error('Research scheduler not available'); return s.researchScheduler.getStatus(); }],
|
|
@@ -1544,6 +1546,39 @@ export class IpcRouter {
|
|
|
1544
1546
|
throw new Error('Orchestrator not available');
|
|
1545
1547
|
return s.orchestrator.getDesireFeedbackStats();
|
|
1546
1548
|
}],
|
|
1549
|
+
// ─── Conversation Memory ──────────────────────────────
|
|
1550
|
+
['convo.remember', (params) => { if (!s.conversationMemory)
|
|
1551
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.remember(p(params).content, p(params)); }],
|
|
1552
|
+
['convo.recall', async (params) => { if (!s.conversationMemory)
|
|
1553
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.recall(p(params).query, p(params)); }],
|
|
1554
|
+
['convo.search', (params) => { if (!s.conversationMemory)
|
|
1555
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.searchText(p(params).query); }],
|
|
1556
|
+
['convo.context', (params) => { if (!s.conversationMemory)
|
|
1557
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.buildContext(p(params)); }],
|
|
1558
|
+
['convo.important', (params) => { if (!s.conversationMemory)
|
|
1559
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.getImportant(p(params)?.limit, p(params)?.minImportance); }],
|
|
1560
|
+
['convo.by_category', (params) => { if (!s.conversationMemory)
|
|
1561
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.getByCategory(p(params).category, p(params)?.limit); }],
|
|
1562
|
+
['convo.status', () => { if (!s.conversationMemory)
|
|
1563
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.getStatus(); }],
|
|
1564
|
+
['convo.maintenance', () => { if (!s.conversationMemory)
|
|
1565
|
+
throw new Error('ConversationMemory not available'); return s.conversationMemory.maintenance(); }],
|
|
1566
|
+
// ─── Browser Agent ───────────────────────────────────
|
|
1567
|
+
['browser.execute', async (params) => { if (!s.browserAgent)
|
|
1568
|
+
throw new Error('BrowserAgent not available'); return s.browserAgent.executeTask(p(params).taskId, p(params).actions); }],
|
|
1569
|
+
['browser.run', async (params) => { if (!s.browserAgent)
|
|
1570
|
+
throw new Error('BrowserAgent not available'); return s.browserAgent.runAutonomous(p(params).taskId, p(params).task); }],
|
|
1571
|
+
['browser.status', () => { if (!s.browserAgent)
|
|
1572
|
+
throw new Error('BrowserAgent not available'); return s.browserAgent.getStatus(); }],
|
|
1573
|
+
['browser.shutdown', async () => { if (!s.browserAgent)
|
|
1574
|
+
throw new Error('BrowserAgent not available'); await s.browserAgent.shutdown(); return { shutdown: true }; }],
|
|
1575
|
+
// ─── Brain Bot ──────────────────────────────────────
|
|
1576
|
+
['bot.message', async (params) => { if (!s.brainBot)
|
|
1577
|
+
throw new Error('BrainBot not available'); return s.brainBot.processMessage(p(params)); }],
|
|
1578
|
+
['bot.commands', () => { if (!s.brainBot)
|
|
1579
|
+
throw new Error('BrainBot not available'); return s.brainBot.getCommandDefinitions(); }],
|
|
1580
|
+
['bot.status', () => { if (!s.brainBot)
|
|
1581
|
+
throw new Error('BrainBot not available'); return s.brainBot.getStatus(); }],
|
|
1547
1582
|
// System
|
|
1548
1583
|
['system.memory', () => s.memoryWatchdog?.getStats() ?? { currentMB: Math.round(process.memoryUsage().heapUsed / 1048576), peakMB: 0, trend: 'stable', leakSuspected: false, samples: 0 }],
|
|
1549
1584
|
// Status (cross-brain)
|