UNPKG

@vibe-kit/grok-cli

Version:

An open-source AI agent that brings the power of Grok directly into your terminal.

12 lines (11 loc) 543 B
import { ToolResult, EditorCommand } from '../types'; export declare class TextEditorTool { private editHistory; view(filePath: string, viewRange?: [number, number]): Promise<ToolResult>; strReplace(filePath: string, oldStr: string, newStr: string): Promise<ToolResult>; create(filePath: string, content: string): Promise<ToolResult>; insert(filePath: string, insertLine: number, content: string): Promise<ToolResult>; undoEdit(): Promise<ToolResult>; private generateDiff; getEditHistory(): EditorCommand[]; }