Commit graph

66 commits

Author SHA1 Message Date
3a9c424dc9 0.7.2 2025-06-05 14:05:14 -07:00
430ba65f41 feat: add version generation script and auto-generated version.ts file
Introduced a script to generate a `version.ts` file exporting the package version from `package.json`. This simplifies accessing version data in the CLI, especially for global installations. Included auto-generated `version.ts` in the project structure.
2025-06-05 14:05:05 -07:00
e2f65c8146 feat: add random graph generation and improve metadata vectorization
Introduced `generateRandomGraph` method to create randomized graphs with configurable entity counts and types, supporting automated testing and experimentation. Enhanced metadata vectorization logic to handle various metadata formats reliably, ensuring compatibility and fallback mechanisms during embedding. Updated `README.md` with detailed feature descriptions and usage guides.
2025-06-05 14:04:29 -07:00
93eb73f471 0.7.1 2025-06-05 11:44:31 -07:00
be67c1b753 docs: update README.md and suppress TensorFlow.js warnings
Enhanced the installation section with guidance on resolving TensorFlow.js dependency conflicts using `--legacy-peer-deps`. Added CLI autocomplete setup instructions to improve user experience. Suppressed specific TensorFlow.js Node.js backend warnings in the embedding utils. Updated dependencies to the latest versions.
2025-06-05 11:44:18 -07:00
bdb0b98b74 0.7.0 2025-06-05 11:18:41 -07:00
cdbd2a9db4 feat: introduce CLI for Brainy and enhance type validation
Added a comprehensive command-line interface (CLI) for interacting with the Brainy vector database. The CLI supports various operations, including database initialization, adding/searching nouns, managing relationships, and querying database status. Enhanced type validation logic for nouns and verbs to ensure consistency and enforce default types for invalid inputs. Updated test scripts to verify type validation and edge cases.
2025-06-05 11:18:20 -07:00
a0ce5b0ca9 feat: enhance search functionality with includeVerbs and metadata embedding
Updated search methods to support `includeVerbs` for retrieving associated verbs in results. Enhanced edge creation to allow metadata embedding when no vector is provided. Improved query handling and vectorization logic for consistent processing.
2025-06-05 08:26:40 -07:00
1644304bc8 docs: update README.md with detailed usage examples and refined feature descriptions
Expanded the documentation to include comprehensive usage scenarios, advanced configurations, and clearer explanations of Brainy's capabilities. Improved formatting and structure for better readability and accessibility.
2025-06-05 08:26:12 -07:00
f674d75002 0.6.0 2025-06-04 10:04:34 -07:00
55d2ab60ff chore: update material theme configuration to include overrideColor option 2025-06-04 10:04:31 -07:00
811bbbdbfd feat: enhance storage options and introduce read-only mode
Added extensive configuration support for storage adapters, including S3-compatible storage (R2, Amazon S3, Google Cloud Storage). Introduced environment variable fallback for seamless cloud integration. Updated createStorage logic for improved compatibility. Implemented read-only mode to restrict write operations and provide a safer database configuration.
2025-06-04 10:01:59 -07:00
a774bb0f82 feat: implement SequentialPipeline with threading and WebSocket support
Added the `SequentialPipeline` class for structured augmentation execution. Integrated threading capabilities via the `THREADED` execution mode in `augmentationPipeline`. Enhanced WebSocket support for real-time data processing through pipelines.
2025-06-04 10:01:46 -07:00
9ffc9d965e feat: add environment detection and threading utility functions
Introduced new utilities for detecting execution environments (browser, Node.js, Web Worker) and checking threading availability. Added `workerUtils` for executing functions in Web Workers or Worker Threads seamlessly based on the environment.
2025-06-04 10:01:23 -07:00
9e10caf604 feat: add examples for read-only mode, sequential pipeline, and configuration tests
Added illustrative example scripts to demonstrate read-only mode functionality, sequential pipeline processing, and automatic configuration detection.
2025-06-04 10:01:03 -07:00
7dcba549a1 feat: add file system and sequential pipeline support
Added `FileSystemStorage` and exports for sequential pipelines, including `SequentialPipeline` and related types (`PipelineResult`, `SequentialPipelineOptions`).
2025-06-04 10:00:38 -07:00
100d4c7839 feat: add read-only database mode and S3-compatible storage options
Introduced configurable read-only mode for databases to restrict write operations. Added support for S3-compatible storage services, including Cloudflare R2, Amazon S3, and Google Cloud Storage. Updated `README.md` with usage examples and configuration details.
2025-06-04 10:00:00 -07:00
6bd3570baf 0.5.3 2025-06-02 17:04:10 -07:00
18bbe6d428 chore: remove Firestore-related implementations and example files
Deleted all Firestore augmentation, storage, sync implementations, and related type definitions. Removed the FirestoreSync example file as part of the cleanup for disabled Firestore functionality.
2025-06-02 17:03:53 -07:00
40dd046884 0.5.2 2025-06-02 12:44:17 -07:00
3659b0069b chore: temporarily disable Firestore functionality and remove Firebase dependencies
Commented out all Firestore-related code across the project, including sync, storage, and vector search features. Removed Firebase dependencies (`firebase`, `firebase-admin`) from `package.json`. Updated `README.md` to reflect the temporary unavailability of Firestore features.
2025-06-02 12:43:44 -07:00
7e31719b2a 0.5.1 2025-06-02 12:29:45 -07:00
9a4f1ab1f6 chore: update README.md with Firestore vector search fallback note, remove unused dependency from package.json 2025-06-02 12:29:39 -07:00
c62f714ec5 0.5.0 2025-06-02 12:24:02 -07:00
725610fbe4 feat: add Firestore vector search integration and noun type-based search enhancements
Introduced Firestore vector search integration using `@firebase/firestore-vector-search`. Added support for restricting searches by specific noun types to optimize performance and relevance. Updated `README.md` to document the new functionality and usage examples.
2025-06-02 12:23:11 -07:00
b10a32e8de feat: convert AugmentationResponse methods to use Promises, add search API
Refactored memory augmentation methods to return `Promise<AugmentationResponse>` for async handling. Introduced a new `search` method for vector similarity searches within the memory system.
2025-06-02 09:25:26 -07:00
9bdc9af8b0 0.4.1 2025-05-29 10:29:59 -07:00
95a72f4181 chore: reformat code in README.md for improved readability
Applied consistent indentation and line-breaking rules to code and text sections in `README.md`, ensuring better formatting and alignment for readability. No functional changes made.
2025-05-29 10:29:52 -07:00
f311b120c1 0.4.0 2025-05-29 09:52:43 -07:00
203b669203 chore: remove examples/externalPlugins.js and pluginLoader.ts, update imports to .js
Deleted `examples/externalPlugins.js` and `pluginLoader.ts` as they are no longer used. Updated all `.ts` imports to `.js` across the codebase. Added `MemberOf` to `VerbType` and filtered disabled augmentations in `executeAugmentationPipeline`. Updated documentation to reflect new augmentation registration process. Removed deprecated `allowImportingTsExtensions` from `tsconfig.json`.
2025-05-29 09:52:30 -07:00
7d2b695ea0 feat: update import statements to use TypeScript file extensions 2025-05-29 08:27:59 -07:00
61d86c98a7 0.3.6 2025-05-28 16:19:03 -07:00
c7987822e9 feat: enhance fallback logic for storage initialization in opfsStorage
Improved the fallback sequence for storage initialization by adding a secondary attempt to use FileSystemStorage in browser environments before defaulting to in-memory storage. Enhanced error handling and logging for unavailable storage options.
2025-05-28 16:18:59 -07:00
0a3b0c09b1 0.3.5 2025-05-28 16:02:25 -07:00
e42c6b7302 feat: improve error handling and storage status reporting in BrainyData
Updated error messages for initialization failures to use "BrainyData" for clarity. Enhanced `getStorageStatus` to handle storage adapters without the `getStorageStatus` method, ensuring proper reporting of storage type, usage, and adapter details.
2025-05-28 16:02:20 -07:00
426f01cea0 0.3.4 2025-05-28 15:39:34 -07:00
b031a40b1c feat: add external plugin loader and examples for Brainy
Introduced `pluginLoader.ts` to enable loading and configuring augmentation plugins from external packages. Added `examples/externalPlugins.js` to demonstrate usage. Enhanced storage status reporting in `opfsStorage` and `BrainyData` with detailed storage capacity and usage methods. Updated README with an external plugin usage guide.
2025-05-28 15:39:14 -07:00
767c349f63 0.3.3 2025-05-28 11:48:27 -07:00
aa4a76352f feat: refactor augmentation interface exports for improved structure
Replaced type aliases with interface extensions to enhance type compatibility and readability. Reorganized exports in `index.ts` to streamline imports.
2025-05-28 11:48:24 -07:00
6b88b53056 0.3.2 2025-05-28 11:37:32 -07:00
ac5955a922 feat: add persistent storage support for OPFS
Introduced an optional `requestPersistentStorage` flag to enable persistent storage permission requests in the browser. Updated `OPFSStorage` to include methods for requesting and checking persistent storage status, and modified `createStorage` to handle the new flag.
2025-05-28 11:37:28 -07:00
5f4e6ccc70 0.3.1 2025-05-28 11:31:38 -07:00
fc9b8b7571 feat: add direct exports for graph types
Introduced direct exports for `GraphNoun`, `GraphVerb`, `EmbeddedGraphVerb`, and related graph types (`Person`, `Place`, `Thing`, etc.) to streamline imports and improve type accessibility.
2025-05-28 11:31:10 -07:00
110e771b58 0.3.0 2025-05-28 11:03:53 -07:00
0d5060aee2 feat: add direct exports for augmentation interfaces
Introduced direct exports for several augmentation interfaces (e.g., ISenseAugmentation, ICognitionAugmentation) to simplify imports and enhance type accessibility. Updated type imports and exports in relevant files.
2025-05-28 11:03:32 -07:00
cf4673f259 0.2.6 2025-05-28 10:37:59 -07:00
25986720d3 docs: add augmentation types import section to README and update type definitions
Added a new README section detailing how to import and use augmentation interfaces without pulling the entire library. Updated `package.json` exports to enable direct imports for augmentation types. Included example demonstrating custom augmentation implementation and usage.
2025-05-28 10:37:55 -07:00
fce4be4333 0.2.5 2025-05-28 10:19:57 -07:00
be0cd47f21 docs: add import-graphTypes.js example file to demonstrate selective graphTypes imports
Added a new example file `import-graphTypes.js` to showcase how to selectively import the `graphTypes` module, highlighting usage of `GraphNoun`, `GraphVerb`, `NounType`, and `VerbType`.
2025-05-28 10:19:26 -07:00
ce9c5e2522 docs: add separate graph type import section to README and update type definitions
Introduced a new README section explaining how to import graph types individually to enable tree shaking. Updated `package.json` exports to support direct graph type imports. Enhanced `GraphNoun` structure by adding optional `label` and `embeddedVerbs` properties while simplifying the `CreatorMetadata` interface.
2025-05-28 09:56:24 -07:00