ctrlshiftleft
Version:
AI-powered toolkit for embedding QA and security testing into development workflows
42 lines (41 loc) • 1.2 kB
TypeScript
import { Checklist } from '../types/checklistTypes';
import { TestScenario } from '../types/testTypes';
/**
* OpenAI Agent for generating tests and checklists from source code
*/
export declare class OpenAIAgent {
private client;
constructor();
/**
* Generate tests and checklists from source code
* @param content Source code or content to analyze
* @returns Generated tests and checklists
*/
generateTestsAndChecklists(content: string): Promise<{
tests: TestScenario[];
checklist: Checklist;
}>;
/**
* Extract test scenarios from response
*/
private extractTestScenarios;
/**
* Extract checklist from response
*/
private extractChecklist;
/**
* Perform a semantic search across code files
* @param query The search query
* @param files Array of file objects with path and content
* @returns Search results with relevance scores
*/
performSemanticSearch(query: string, files: Array<{
filePath: string;
content: string;
}>): Promise<Array<{
filePath: string;
relevance: number;
snippet: string;
reasons: string[];
}>>;
}