codn_ts
Version:
智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好
28 lines (27 loc) • 768 B
TypeScript
import { SymbolKindType } from "./utils/lsp_core";
export interface SemanticSearchResult {
type: "semantic";
name: string;
file: string;
line: number;
column: number;
description?: string;
kind: SymbolKindType;
relevance: number;
context: string;
keywords: string[];
parameters?: string[];
returnType?: string;
callers?: string[];
callees?: string[];
complexity?: number;
callCount?: number;
}
export interface SemanticSearchOptions {
limit?: number;
minRelevance?: number;
includeComments?: boolean;
includeTests?: boolean;
file?: string;
}
export declare function semanticSearch(query: string, projectRoot: string, options?: SemanticSearchOptions): Promise<SemanticSearchResult[]>;