UNPKG

@builder.io/dev-tools

Version:

Builder.io Visual CMS Devtools

27 lines (26 loc) 827 B
import type { CodeGenTools, ContentMessageItemToolResult, ProjectFile } from "$/ai-utils"; import type { DevToolsSys } from "../core"; export interface LLMToolCalls { name: CodeGenTools; input: Record<string, any>; id: string; } export interface ToolResolution { toolResult: string; isError: boolean; title?: string; } export declare function resolveToolCalls(sys: DevToolsSys, toolCalls: LLMToolCalls[]): Promise<{ toolResults: ContentMessageItemToolResult[]; projectFiles: ProjectFile[]; }>; interface RipgrepMatch { path: string; lineNumber: number; lineContent: string; } interface RipgrepResult { matches: RipgrepMatch[]; } export declare function runRipgrep(sys: DevToolsSys, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>; export {};