feat: Brainy 3.0 - Triple Intelligence Release

BREAKING CHANGE: New unified API for vector, graph, and document search

Major Changes:
- NEW: brain.add() replaces brain.addNoun()
- NEW: brain.find() replaces brain.search()
- NEW: brain.relate() replaces brain.addVerb()
- NEW: brain.update() replaces brain.updateNoun()
- NEW: brain.delete() replaces brain.deleteNoun()

Features:
- Triple Intelligence™ engine (vector + graph + document)
- 31 NounTypes × 40 VerbTypes for universal knowledge modeling
- Zero-config parameter validation
- Enhanced augmentation system (cache, display, metrics)
- <10ms search performance with HNSW indexing
- Full TypeScript type safety

Infrastructure:
- Comprehensive test suites for find() and neural APIs
- Fixed neural API internal calls (getNoun → get)
- Updated README with accurate 3.0 examples
- ESLint v9 configuration
- Structured logging framework

🧠 Generated with Brainy 3.0

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
David Snelling 2025-09-15 11:06:16 -07:00
parent 7eaf5a9252
commit ce2bc76648
19 changed files with 4927 additions and 163 deletions

View file

@ -9,11 +9,11 @@ import { describe, it, expect, beforeAll, afterAll, beforeEach, afterEach, vi }
import { Brainy } from '../../src/brainy.js'
import { GraphAdjacencyIndex } from '../../src/graph/graphAdjacencyIndex.js'
import { NounType, VerbType } from '../../src/types/graphTypes.js'
import { MemoryStorageAdapter } from '../../src/storage/adapters/memoryStorage.js'
import { MemoryStorage } from '../../src/storage/adapters/memoryStorage.js'
import { GraphVerb } from '../../src/coreTypes.js'
// Mock storage adapter for controlled testing
class MockStorageAdapter extends MemoryStorageAdapter {
class MockStorageAdapter extends MemoryStorage {
private shouldFail = false
private failOperation: string | null = null