import { createEditMemoryNoteTool, createListMemoryNotesTool, createReadMemoryNoteTool, createSearchMemoryNotesTool, } from './memory-notes.js';
import { createMemoryCheckpointTool } from './memory-checkpoint.js';
import { createRecordKnowledgeTool } from './record-knowledge.js';
export const knowledgeToolkit = {
    id: 'knowledge',
    createTools(context) {
        if (context.memoryMode === 'none') {
            return [];
        }
        const readableKnowledgeTools = [
            createListMemoryNotesTool({ memoryRoot: context.memoryDir }),
            createReadMemoryNoteTool({ memoryRoot: context.memoryDir }),
            createSearchMemoryNotesTool({ memoryRoot: context.memoryDir }),
        ];
        if (context.memoryMode === 'read-and-record') {
            return [
                ...readableKnowledgeTools,
                createMemoryCheckpointTool({ memoryRoot: context.memoryDir }),
                createRecordKnowledgeTool({ memoryRoot: context.memoryDir }),
            ];
        }
        if (context.memoryMode === 'maintainer' || context.memoryMode === 'legacy-full') {
            return [...readableKnowledgeTools, createEditMemoryNoteTool({ memoryRoot: context.memoryDir })];
        }
        const exhaustive = context.memoryMode;
        throw new Error(`Unsupported memory mode: ${exhaustive}`);
    },
};
//# sourceMappingURL=toolkit.js.map