UNPKG

codn_ts

Version:

智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好

26 lines (25 loc) 848 B
import { SymbolKindType } from "./utils/lsp_core"; export interface SearchResult { type: "file" | "function" | "class" | "interface" | "method" | "property" | "content" | "semantic"; name: string; file: string; line: number; column: number; description?: string; kind: SymbolKindType; content?: string; context?: string; relevance?: number; keywords?: string[]; } export interface SearchOptions { type?: "file" | "function" | "class" | "interface" | "method" | "property" | "content" | "semantic" | "all"; limit?: number; caseSensitive?: boolean; regex?: boolean; contextLines?: number; semantic?: boolean; minRelevance?: number; file?: string; } export declare function searchProject(query: string, projectRoot: string, options?: SearchOptions): Promise<SearchResult[]>;