UNPKG

erosolar-cli

Version:

Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning

74 lines 1.98 kB
import type { ToolDefinition } from '../core/toolRuntime.js'; export interface CodeAnalysisResult { file: string; functions: FunctionInfo[]; classes: ClassInfo[]; interfaces: InterfaceInfo[]; imports: ImportInfo[]; exports: ExportInfo[]; } export interface FunctionInfo { name: string; line: number; parameters: string[]; returnType?: string; } export interface ClassInfo { name: string; line: number; methods: MethodInfo[]; properties: PropertyInfo[]; } export interface MethodInfo { name: string; line: number; parameters: string[]; returnType?: string; } export interface PropertyInfo { name: string; line: number; type?: string; } export interface InterfaceInfo { name: string; line: number; properties: PropertyInfo[]; methods: MethodInfo[]; } export interface ImportInfo { source: string; specifiers: string[]; line: number; } export interface ExportInfo { name: string; type: 'default' | 'named' | 'namespace'; line: number; } export type AstSymbolKind = 'function' | 'method' | 'arrow-function' | 'class'; export interface AstSymbolInsight { name: string; kind: AstSymbolKind; startLine: number; endLine: number; parameters: string[]; statementCount: number; cyclomaticComplexity: number; } export interface AstCallEdge { from: string; to: string; count: number; } export interface AdvancedAstAnalysisResult { file: string; symbols: AstSymbolInsight[]; callGraph: AstCallEdge[]; totalCyclomaticComplexity: number; issues: string[]; } export declare function createCodeAnalysisTools(workingDir: string): ToolDefinition[]; export declare function analyzeTypeScriptFile(content: string, filePath: string): CodeAnalysisResult; export declare function performAdvancedAstAnalysis(content: string, filePath: string): AdvancedAstAnalysisResult; //# sourceMappingURL=codeAnalysisTools.d.ts.map