ctrlshiftleft
Version:
AI-powered toolkit for embedding QA and security testing into development workflows
21 lines (20 loc) • 564 B
TypeScript
import { Command } from 'commander';
/**
* Perform a semantic code search
* @param query Search query
* @param files Optional array of file paths to search within
* @returns Search results with file paths and relevance scores
*/
export declare function semantic_search({ query, files }: {
query: string;
files?: string[];
}): Promise<{
filePath: string;
relevance: number;
snippet: string;
reasons: string[];
}[]>;
/**
* Register the semantic-search command
*/
export declare const semanticSearchCommand: (program: Command) => void;