fix: update all imports and references from BrainyData to Brainy

- Fixed imports in examples/tests/ to use correct Brainy import
- Fixed imports in tests/benchmarks/ to use correct paths
- Updated bin/brainy-interactive.js to use Brainy instead of BrainyData
- Corrected documentation references throughout codebase
- Removed duplicate imports in benchmark files
- All files now consistently use 'Brainy' class from dist/index.js
This commit is contained in:
David Snelling 2025-09-30 17:09:15 -07:00
parent 791fac54cd
commit 196690863d
77 changed files with 328 additions and 331 deletions

View file

@ -57,7 +57,7 @@ export class MyStorageAugmentation extends StorageAugmentation {
```typescript
// Register before brain.init()
const brain = new BrainyData()
const brain = new Brainy()
brain.augmentations.register(new MyStorageAugmentation({
connectionString: 'redis://localhost:6379'
}))
@ -174,9 +174,9 @@ Common operations in Brainy:
```typescript
interface AugmentationContext {
brain: BrainyData // The brain instance
brain: Brainy // The brain instance
storage: StorageAdapter // Storage backend
config: BrainyDataConfig // Configuration
config: BrainyConfig // Configuration
log: (message: string, level?: 'info' | 'warn' | 'error') => void
}
```
@ -265,14 +265,14 @@ Future capability for premium augmentations:
## Testing Your Augmentation
```typescript
import { BrainyData } from 'brainy'
import { Brainy } from 'brainy'
import { MyAugmentation } from './my-augmentation'
describe('MyAugmentation', () => {
let brain: BrainyData
let brain: Brainy
beforeEach(async () => {
brain = new BrainyData()
brain = new Brainy()
brain.augmentations.register(new MyAugmentation())
await brain.init()
})