brainy/src
David Snelling 0011e169d7 **feat: implement robust error-handling and operation utilities for storage adapters**
- Added `BrainyError` class to classify and handle errors with types like `TIMEOUT`, `NETWORK`, `STORAGE`, `NOT_FOUND`, and `RETRY_EXHAUSTED`. Includes static helper methods for error creation and retry determination.
- Introduced `operationUtils` with utility functions for timeout, retry logic, and exponential backoff. Implements features like `withTimeout`, `withRetry`, and a combined `withTimeoutAndRetry`.
- Updated `S3CompatibleStorage` to leverage new operation utilities for timeout and retry handling, including `StorageOperationExecutors` for clean operation execution.
- Enhanced `storageFactory` to pass `OperationConfig` for configurable timeout and retry behavior.
- Extended `BrainyData` to include timeout and retry policy configuration at initialization.

**Purpose**: Improve storage reliability by introducing configurable and reusable error-handling and operation utilities, reducing code duplication and enhancing maintainability.
2025-07-30 11:35:09 -07:00
..
augmentations feat(types): extend FileSystemHandle and optimize imports for consistency 2025-07-21 12:48:03 -07:00
errors **feat: implement robust error-handling and operation utilities for storage adapters** 2025-07-30 11:35:09 -07:00
examples Initial commit 2025-06-24 11:41:30 -07:00
hnsw **docs: add detailed concurrency analysis and implementation documentation** 2025-07-30 11:01:24 -07:00
mcp **docs: update README to streamline server functionality documentation** 2025-07-15 11:51:27 -07:00
storage **feat: implement robust error-handling and operation utilities for storage adapters** 2025-07-30 11:35:09 -07:00
testing **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
types **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
utils **feat: implement robust error-handling and operation utilities for storage adapters** 2025-07-30 11:35:09 -07:00
augmentationFactory.ts Initial commit 2025-06-24 11:41:30 -07:00
augmentationPipeline.ts fix(src/augmentationPipeline): remove unnecessary whitespace for formatting consistency 2025-06-30 09:39:25 -07:00
augmentationRegistry.ts Initial commit 2025-06-24 11:41:30 -07:00
augmentationRegistryLoader.ts Initial commit 2025-06-24 11:41:30 -07:00
brainyData.ts **feat: implement robust error-handling and operation utilities for storage adapters** 2025-07-30 11:35:09 -07:00
coreTypes.ts **docs: add detailed concurrency analysis and implementation documentation** 2025-07-30 11:01:24 -07:00
index.ts feat(core, tests): add standalone getStatistics function and improve storage configuration 2025-07-23 16:26:59 -07:00
patched-platform-node.ts **feat(core): enhance vector handling, model loading, and compatibility** 2025-07-16 13:51:00 -07:00
pipeline.ts Initial commit 2025-06-24 11:41:30 -07:00
sequentialPipeline.ts Initial commit 2025-06-24 11:41:30 -07:00
setup.ts **feat(core): enhance vector handling, model loading, and compatibility** 2025-07-16 13:51:00 -07:00
unified.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
worker.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
worker.ts **feat(tests): add tests for TextEncoder, TensorFlow.js, and fallback mechanisms** 2025-07-11 11:11:56 -07:00