Files
vibn-frontend/vibn-agent-runner/dist/tools/file-api.d.ts

7 lines
648 B
TypeScript

export declare function readFile(workspaceRoot: string, relPath: string): Promise<unknown>;
export declare function writeFile(workspaceRoot: string, relPath: string, content: string): Promise<unknown>;
export declare function replaceInFile(workspaceRoot: string, relPath: string, oldContent: string, newContent: string): Promise<unknown>;
export declare function listDirectory(workspaceRoot: string, relPath: string): Promise<unknown>;
export declare function findFiles(workspaceRoot: string, pattern: string): Promise<unknown>;
export declare function searchCode(workspaceRoot: string, query: string, fileExtensions?: string[]): Promise<unknown>;