export interface SearchResult { path: string; line?: number; content?: string; } export interface FileContent { path: string; content: string; } export interface SymbolResult { name: string; path: string; line?: number; kind?: string; } export interface ReferenceResult { name: string; path: string; line?: number; } export interface DefinitionResult { name: string; path: string; line?: number; content?: string; } export interface DependencyResult { path: string; type?: string; } export interface ImpactResult { target: string; affectedFiles: string[]; affectedSymbols?: SymbolResult[]; } export interface ExploreResult { query: string; files?: string[]; symbols?: SymbolResult[]; references?: ReferenceResult[]; dependencies?: DependencyResult[]; impact?: ImpactResult; context?: string; } export interface Workspace { id: string; path: string; branch?: string; } export interface TestResult { success: boolean; output: string; } export interface BuildResult { success: boolean; output: string; } export interface CommitResult { hash: string; message: string; } export interface CodebaseInterface { search(query: string): Promise; readFile(path: string): Promise; readRange(path: string, startLine: number, endLine: number): Promise; findSymbol(name: string): Promise; findReferences(symbol: string): Promise; getDefinition(symbol: string): Promise; getCallers(symbol: string): Promise; getCallees(symbol: string): Promise; getDependencies(path: string): Promise; getReverseDependencies(path: string): Promise; getImpact(symbol: string): Promise; explore(query: string): Promise; } export interface WorkspaceInterface { createWorkspace(): Promise; /** * Reads a file as the workspace currently has it (its base plus applied patches). * Resolves to null when the file does not exist. Patches are generated against this content. */ readFile(workspace: Workspace, path: string): Promise; applyPatch(workspace: Workspace, patch: string): Promise; gitDiff(workspace: Workspace): Promise; runTests(workspace: Workspace): Promise; runBuild(workspace: Workspace): Promise; commit(workspace: Workspace, message: string): Promise; } //# sourceMappingURL=contracts.d.ts.map