feat: wire up all Phase 2-6 features into daemon and config
Integrate all new features into the shared infrastructure: - Config schema: add memory, discord, slack, process, web_search schemas - Daemon wiring: memory store init, tool registration, channel adapters - Orchestrator: memory injection into system prompt, extraction on compaction - Agent: add setSystemPrompt() for dynamic prompt updates - Channel/tool index: export new adapters and tool factories - Add @slack/bolt, discord.js, turndown, linkedom, @mozilla/readability deps - Update state.json with Phase 3b completion (494 tests passing)
This commit is contained in:
@@ -4,15 +4,29 @@ export { fileWriteTool } from './file-write.js';
|
||||
export { fileEditTool } from './file-edit.js';
|
||||
export { fileListTool } from './file-list.js';
|
||||
export { webFetchTool } from './web-fetch.js';
|
||||
export { createMemoryReadTool } from './memory-read.js';
|
||||
export { createMemoryWriteTool } from './memory-write.js';
|
||||
export { createMemorySearchTool } from './memory-search.js';
|
||||
export { createWebSearchTool } from './web-search.js';
|
||||
export type { WebSearchConfig } from './web-search.js';
|
||||
export { createProcessTools, ProcessManager } from './process/index.js';
|
||||
export type { ProcessManagerConfig } from './process/index.js';
|
||||
|
||||
import type { Tool } from '../types.js';
|
||||
import type { MemoryStore } from '../../memory/store.js';
|
||||
import type { WebSearchConfig } from './web-search.js';
|
||||
import { shellExecTool } from './shell.js';
|
||||
import { fileReadTool } from './file-read.js';
|
||||
import { fileWriteTool } from './file-write.js';
|
||||
import { fileEditTool } from './file-edit.js';
|
||||
import { fileListTool } from './file-list.js';
|
||||
import { webFetchTool } from './web-fetch.js';
|
||||
import { createMemoryReadTool } from './memory-read.js';
|
||||
import { createMemoryWriteTool } from './memory-write.js';
|
||||
import { createMemorySearchTool } from './memory-search.js';
|
||||
import { createWebSearchTool } from './web-search.js';
|
||||
|
||||
/** Static builtin tools that don't require runtime dependencies. */
|
||||
export const allBuiltinTools: Tool[] = [
|
||||
shellExecTool,
|
||||
fileReadTool,
|
||||
@@ -21,3 +35,17 @@ export const allBuiltinTools: Tool[] = [
|
||||
fileListTool,
|
||||
webFetchTool,
|
||||
];
|
||||
|
||||
/** Create memory tools that require a MemoryStore instance. */
|
||||
export function createMemoryTools(store: MemoryStore): Tool[] {
|
||||
return [
|
||||
createMemoryReadTool(store),
|
||||
createMemoryWriteTool(store),
|
||||
createMemorySearchTool(store),
|
||||
];
|
||||
}
|
||||
|
||||
/** Create the web search tool with provider config. */
|
||||
export function createWebSearchTools(config: WebSearchConfig): Tool[] {
|
||||
return [createWebSearchTool(config)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user