/** * generate_ai_bom Tool * * Generates an AI Bill of Materials (AI-BOM) from source code — a structured * inventory of all AI components in a codebase: * * 1. AI model API calls — OpenAI, Anthropic, Gemini, Ollama, HuggingFace, etc. * 2. MCP tool registrations — server.tool(), @Tool decorator, MCP SDK imports * 3. Agent framework imports — LangChain, AutoGen, CrewAI, Mastra, LlamaIndex, etc. * 4. AI API keys in env — OPENAI_API_KEY, ANTHROPIC_API_KEY, etc. * * Architecture: pure in-process regex pattern matching — no CLI shell-out, no network. * Works on single files or multi-file content passed as a map. * * Output: JSON { models, mcp_tools, agent_frameworks, ai_apis } + markdown summary */ export interface AIModel { provider: string; model: string | null; callType: string; line: number; file: string; } export interface MCPTool { name: string | null; registrationPattern: string; line: number; file: string; } export interface AgentFramework { name: string; importPath: string; line: number; file: string; } export interface AIApiKey { keyName: string; provider: string; line: number; file: string; } export interface AIBomResult { models: AIModel[]; mcp_tools: MCPTool[]; agent_frameworks: AgentFramework[]; ai_apis: AIApiKey[]; } export declare const generateAIBomTool: { name: string; description: string; readOnlyHint: boolean; inputSchema: { type: string; properties: { code: { type: string; description: string; }; filename: { type: string; description: string; }; files: { type: string; description: string; additionalProperties: { type: string; }; }; }; }; }; export declare function handleGenerateAIBom(args: any): Promise<{ content: { type: string; text: string; }[]; }>; //# sourceMappingURL=ai-bom.d.ts.map