andy-stack_vaultkeeper-ai/AIClasses/FunctionDefinitions/Functions
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
..
DeleteVaultFiles.ts Update delete functionality to support folders and use trash 2025-11-03 21:37:47 +00:00
ListVaultFiles.ts feat: add ListVaultFiles function and improve search behavior 2025-11-01 11:43:32 +00:00
MoveVaultFiles.ts feat: add batch file operations and move functionality 2025-10-16 22:58:30 +01:00
PatchVaultFile.ts Refactor file patching from unified diff to direct string replace 2025-12-05 23:02:55 +00:00
ReadVaultFiles.ts refactor: enhance file operations to support batch reads and deletion 2025-10-15 21:06:23 +01:00
SearchVaultFiles.ts refactor: consolidate string utilities into StringTools class 2025-11-12 21:12:36 +00:00
WriteVaultFile.ts Add PatchVaultFile function for incremental file updates 2025-12-05 22:48:54 +00:00