@soulcraft/brainy 3.14.0 → 3.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@
2
2
  * Shared Configuration Manager
3
3
  * Ensures configuration consistency across multiple instances using shared storage
4
4
  */
5
+ import { getBrainyVersion } from '../utils/version.js';
5
6
  /**
6
7
  * Manages configuration consistency for shared storage
7
8
  */
@@ -91,7 +92,7 @@ export class SharedConfigManager {
91
92
  */
92
93
  static createSharedConfig(localConfig) {
93
94
  return {
94
- version: '2.10.0', // Brainy version
95
+ version: getBrainyVersion(), // Brainy version
95
96
  precision: localConfig.embeddingOptions?.precision || 'fp32',
96
97
  dimensions: 384, // Fixed for all-MiniLM-L6-v2
97
98
  hnswM: localConfig.hnsw?.M || 16,
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { isNode } from './environment.js';
5
5
  // Default version - this should be replaced at build time
6
- const DEFAULT_VERSION = '3.5.1';
6
+ const DEFAULT_VERSION = '3.14.0';
7
7
  let cachedVersion = null;
8
8
  let versionPromise = null;
9
9
  /**
@@ -716,7 +716,11 @@ export class VirtualFileSystem {
716
716
  // ============= Helper Methods =============
717
717
  async ensureInitialized() {
718
718
  if (!this.initialized) {
719
- throw new Error('VFS not initialized. Call init() first.');
719
+ throw new Error('VFS not initialized. You must call await vfs.init() after getting the VFS instance.\n' +
720
+ 'Example:\n' +
721
+ ' const vfs = brain.vfs() // Note: vfs() is a method, not a property\n' +
722
+ ' await vfs.init() // This creates the root directory\n' +
723
+ 'See docs: https://github.com/Brainy-Technologies/brainy/blob/main/docs/vfs/QUICK_START.md');
720
724
  }
721
725
  }
722
726
  async ensureDirectory(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/brainy",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns × 40 verbs for infinite expressiveness.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",