/** * Plugin loader — dynamically imports plugin packages and extracts tool definitions. * * Plugins are npm packages or local paths that export a ToolPlugin object as their * default export. Each plugin contributes a set of ToolDefinition[] to the engine. */ import type { ToolDefinition } from '../mcp/tools.js'; /** * Load plugins by dynamic import and return a flat array of contributed tools. * * Each plugin module must have a default export conforming to ToolPlugin: * { name: string, tools: ToolDefinition[] } * * Invalid plugins are skipped with a console warning (fail-open for resilience). * Duplicate tool names are detected and skipped with a warning. */ export declare function loadPlugins(pluginPaths: string[], coreToolNames?: Set): Promise; //# sourceMappingURL=loader.d.ts.map