Update plan: HookCommandContext without sendMessage (use pi closure)

This commit is contained in:
Mario Zechner 2025-12-27 02:16:25 +01:00
parent 60130a4c53
commit 09e7e9196c
5 changed files with 22 additions and 27 deletions

View file

@ -122,6 +122,11 @@ const editSchema = Type.Object({
newText: Type.String({ description: "New text to replace the old text with" }),
});
export interface EditToolDetails {
/** Unified diff of the changes made */
diff: string;
}
export function createEditTool(cwd: string): AgentTool<typeof editSchema> {
return {
name: "edit",