brainy/src
David Snelling 0cf4a0eee8 **refactor: improve imports, route handling, and environment detection**
### Changes:
- Added explicit `.js` extensions to imports in `cloud-wrapper/src/index.ts` for Node.js compatibility.
- Refactored `setupRoutes` usage by introducing an `apiRouter` variable for clarity and consistency in middleware.
- Simplified environment detection in `src/unified.ts` by delegating it to build-time logic:
  - Removed inline environment detection (`isBrowser`, `isNode`, `isServerless`).
  - Updated `environment` export with build-generated properties.

### Purpose:
Enhanced compatibility with Node.js module resolution, improved code clarity in route handling, and streamlined environment detection by consolidating it into the build process. These changes reduce redundancy, improve maintainability, and align with modern JavaScript practices.
2025-06-19 16:03:31 -07:00
..
augmentations **feat: enhance WebStreams API compatibility and refactor BrainyData integration** 2025-06-19 15:03:17 -07:00
examples chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
hnsw **feat: integrate optimized index functionality into BrainyData** 2025-06-19 15:02:25 -07:00
storage **refactor: rename directories and variables for semantic clarity in OPFS storage** 2025-06-19 15:03:06 -07:00
types **feat: introduce Optimized HNSW Index with product quantization and disk-based storage support** 2025-06-19 15:02:05 -07:00
utils **refactor: remove simple embedding model and enhance UniversalSentenceEncoder implementation** 2025-06-19 15:02:39 -07:00
augmentationPipeline.ts feat: implement SequentialPipeline with threading and WebSocket support 2025-06-04 10:01:46 -07:00
augmentationRegistry.ts chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
augmentationRegistryLoader.ts chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js 2025-05-29 09:52:30 -07:00
brainyData.ts **feat: integrate optimized index functionality into BrainyData** 2025-06-19 15:02:25 -07:00
cli.ts **feat: add backup and restore commands for database operations** 2025-06-19 15:00:58 -07:00
coreTypes.ts **feat: introduce Optimized HNSW Index with product quantization and disk-based storage support** 2025-06-19 15:02:05 -07:00
index.ts **feat: add browser-compatible build configuration and environment detection** 2025-06-19 14:59:42 -07:00
sequentialPipeline.ts **feat: enhance WebStreams API compatibility and refactor BrainyData integration** 2025-06-19 15:03:17 -07:00
unified.ts **refactor: improve imports, route handling, and environment detection** 2025-06-19 16:03:31 -07:00