UNPKG

@mastra/core

Version:
14 lines • 713 B
/** * Paths a patch writes, used to take write locks and run read-before-write * checks before the tool executes. Returns `[]` for a malformed patch so the * tool itself can report the parse error. */ export declare function getApplyPatchWritePaths(input: { patch?: unknown; }): string[]; /** False when the tool returned a validation failure and touched no file. */ export declare function applyPatchDidWrite(result: unknown): boolean; export declare const applyPatchTool: import("../../tools").Tool<{ patch: string; }, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_apply_patch", unknown>; //# sourceMappingURL=apply-patch.d.ts.map