brainy/src/neural
David Snelling 42ae5be455 feat: ID-first storage architecture + remove memory-unsafe APIs (v6.0.0)
BREAKING CHANGES:

**ID-First Storage Paths**
- Direct O(1) entity access without type lookups
- Before: entities/nouns/{TYPE}/metadata/{SHARD}/{ID}.json
- After:  entities/nouns/{SHARD}/{ID}/metadata.json
- Migration handled automatically on first init()

**Removed Memory-Unsafe APIs**
- Removed brain.merge() - loaded all entities into memory
- Removed brain.diff() - loaded all entities into memory
- Removed brain.data().backup() - loaded all entities into memory
- Removed brain.data().restore() - depended on backup()
- Removed CLI commands: backup, restore, cow merge

**Migration Paths**
- merge() → Use checkout() or manually copy entities with pagination
- diff() → Use asOf() with manual paginated comparison
- backup() → Use fork() for instant COW snapshots
- restore() → Use checkout() to switch to snapshot branch

Core Improvements:
-  All 8 storage adapters properly call super.init()
-  GraphAdjacencyIndex integration in BaseStorage.init()
-  Fixed ID-first path bugs (vector.json → vectors.json)
-  Fixed MemoryStorage.initializeCounts() for ID-first paths
-  New VFS APIs: du(), access(), find()
-  Comprehensive documentation with migration guides

Storage Adapters Fixed:
- MemoryStorage, FileSystemStorage, AzureBlobStorage
- GCSStorage, R2Storage, S3CompatibleStorage
- OPFSStorage, HistoricalStorageAdapter

Files Changed: 28 files, +1,075/-1,933 lines (net -858)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 16:46:11 -08:00
..
signals feat: Stage 3 CANONICAL taxonomy with 169 types (v5.5.0) 2025-11-06 09:02:23 -08:00
embeddedKeywordEmbeddings.ts fix: resolve getRelations() empty array bug for ALL storage adapters (v5.5.0) 2025-11-06 10:47:59 -08:00
embeddedPatterns.ts refactor: remove deprecated BrainyData class completely 2025-09-30 16:04:00 -07:00
embeddedTypeEmbeddings.ts feat: ID-first storage architecture + remove memory-unsafe APIs (v6.0.0) 2025-11-19 16:46:11 -08:00
entityExtractionCache.ts feat: add progress tracking, entity caching, and relationship confidence 2025-10-01 15:12:54 -07:00
entityExtractor.ts feat: Stage 3 CANONICAL taxonomy with 169 types (v5.5.0) 2025-11-06 09:02:23 -08:00
improvedNeuralAPI.ts fix: resolve getRelations() empty array bug and add string ID shorthand 2025-10-21 13:10:34 -07:00
naturalLanguageProcessor.ts perf: pre-compute type embeddings at build time (zero runtime cost) 2025-10-09 18:08:57 -07:00
naturalLanguageProcessorStatic.ts feat: add distributed architecture with sharding and coordination 2025-09-22 15:45:35 -07:00
neuralAPI.ts feat: remove legacy ImportManager, standardize getStats() API 2025-10-09 11:40:31 -07:00
patternLibrary.ts feat: implement incremental sorted indices and Triple Intelligence find() 2025-09-12 12:36:11 -07:00
patterns.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
presets.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
relationshipConfidence.ts feat: Stage 3 CANONICAL taxonomy with 169 types (v5.5.0) 2025-11-06 09:02:23 -08:00
SmartExtractor.ts fix: CRITICAL systemic VFS metadata bug across ALL storage adapters (v4.7.4) 2025-10-27 14:23:46 -07:00
SmartRelationshipExtractor.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
staticPatternMatcher.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
types.ts fix: resolve 19 critical test failures for production readiness 2025-10-09 16:58:53 -07:00