brainy/src
David Snelling 3dce27e951 **feat: add global type declarations for environment detection**
### Changes:
- Introduced `global.d.ts` to define global type declarations for the `globalThis` interface.
- Added `__ENV__` object with the following properties:
  - `isBrowser: boolean`
  - `isNode: string | false`
  - `isServerless: boolean`
- Included an export statement to ensure the file is treated as a module.

### Purpose:
Defined global environment properties to standardize and enhance environment detection across browser, Node.js, and serverless environments. This improves type safety and consistency in the codebase.
2025-06-20 10:56:37 -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
mcp **feat: implement Model Control Protocol (MCP) for Brainy with WebSocket and REST interfaces** 2025-06-20 10:56:21 -07:00
storage **refactor: rename directories and variables for semantic clarity in OPFS storage** 2025-06-19 15:03:06 -07:00
types **feat: implement Model Control Protocol (MCP) for Brainy with WebSocket and REST interfaces** 2025-06-20 10:56:21 -07:00
utils **chore: rename npm script for publishing and update version to 0.9.0** 2025-06-19 16:20:33 -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
global.d.ts **feat: add global type declarations for environment detection** 2025-06-20 10:56:37 -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