andy-stack_vaultkeeper-ai/AIClasses/FunctionDefinitions
Andrew Beal 065d475d74 Refactor file patching from unified diff to direct string replace
This change simplifies the patch mechanism by replacing the unified diff format with a straightforward find-and-replace approach. The PatchVaultFile function now accepts oldContent and newContent parameters instead of a diff patch string, making it more intuitive and reliable for AI agents to use.

Key changes:
- Update PatchVaultFile function signature and documentation
- Replace diff.applyPatch() with String.replace()
- Simplify error handling for content matching
- Update all tests to reflect new API
- Remove unused applyPatch method from DiffService
- Fix diff container height calculation in CSS
- Fix error notification logic in ChatService
- Fix conversation deletion order in TopBar component
2025-12-05 23:02:55 +00:00
..
Functions Refactor file patching from unified diff to direct string replace 2025-12-05 23:02:55 +00:00
AIFunctionDefinitions.ts Add PatchVaultFile function for incremental file updates 2025-12-05 22:48:54 +00:00
AIFunctionResponse.ts Add Claude API provider support with streaming and tool integration 2025-10-19 14:23:24 +01:00
IAIFunctionDefinition.ts refactor: improve type safety and add Zod validation for function arguments 2025-11-10 19:41:17 +00:00