Commit Graph

7 Commits

Author SHA1 Message Date
Hein
f41c512f36 test(tools): add unit tests for error handling functions
* Implement tests for error functions like errRequiredField, errInvalidField, and errEntityNotFound.
* Ensure proper metadata is returned for various error scenarios.
* Validate error handling in CRM, Files, and other tools.
* Introduce tests for parsing stored file IDs and UUIDs.
* Enhance coverage for helper functions related to project resolution and session management.
2026-03-31 15:10:07 +02:00
acd780ac9c feat(files): introduce upload_file tool for staging files and enhance save_file documentation 2026-03-31 00:30:56 +02:00
3819eb4fee feat(files): update save_file tool description and enforce size limit for base64 payloads 2026-03-31 00:20:36 +02:00
8f734c0556 feat(files): enhance file handling with support for HTTP uploads and direct binary access 2026-03-31 00:04:36 +02:00
e6f00ce636 feat(metadata): enhance metadata handling by sanitizing extracted data and updating documentation for file storage 2026-03-30 23:14:08 +02:00
72b4f7ce3d feat: implement file upload handler and related functionality
- Added file upload handler to process both multipart and raw file uploads.
- Implemented parsing logic for upload requests, including handling file metadata.
- Introduced SaveFileDecodedInput structure for handling decoded file uploads.
- Created unit tests for file upload parsing and validation.

feat: add metadata retry configuration and functionality

- Introduced MetadataRetryConfig to the application configuration.
- Implemented MetadataRetryer to handle retrying metadata extraction for thoughts.
- Added new tool for retrying failed metadata extractions.
- Updated thought metadata structure to include status and timestamps for metadata processing.

fix: enhance metadata normalization and error handling

- Updated metadata normalization functions to track status and errors.
- Improved handling of metadata extraction failures during thought updates and captures.
- Ensured that metadata status is correctly set during various operations.

refactor: streamline file saving logic in FilesTool

- Refactored Save method in FilesTool to utilize new SaveDecoded method.
- Simplified project and thought ID resolution logic during file saving.
2026-03-30 22:57:21 +02:00
7f2b2b9fee feat(files): implement file storage functionality with save, load, and list operations 2026-03-30 22:24:18 +02:00