refactor: remove deprecated BrainyData class completely

Removes all traces of BrainyData to prevent user confusion:
- Renamed brainyDataInterface.ts to brainyInterface.ts for clarity
- Updated all imports and type references across 5 files
- Removed BrainyData compiled artifacts (handled by clean build)
- Added deprecation notice to CHANGELOG with migration guide

BrainyData was never part of official Brainy 3.0 API but existed as
legacy compiled artifacts. Users mistakenly imported it thinking neural
API was missing, when it exists in modern Brainy class.

All users should migrate to: new Brainy() with await brain.init()
Neural API available via: brain.neural().visualize() etc.

Resolves confusion reported by Brain Studio team.
This commit is contained in:
David Snelling 2025-09-30 16:04:00 -07:00
parent e78e88f8d5
commit 791fac54cd
8 changed files with 15 additions and 6 deletions

View file

@ -12,6 +12,15 @@ All notable changes to this project will be documented in this file. See [standa
- Adds mutex-based concurrency control for mkdir operations
- Adds explicit compression tracking for file reads
### BREAKING CHANGES (Deprecated API Removal)
* **removed BrainyData**: The deprecated `BrainyData` class has been completely removed
- `BrainyData` was never part of the official Brainy 3.0 API
- All users should migrate to the `Brainy` class
- Migration is simple: Replace `new BrainyData()` with `new Brainy()` and add `await brain.init()`
- See `.strategy/NEURAL_API_RESPONSE.md` for complete migration guide
- Renamed `brainyDataInterface.ts` to `brainyInterface.ts` for clarity
### [3.19.1](https://github.com/soulcraftlabs/brainy/compare/v3.19.0...v3.19.1) (2025-09-29)
## [3.19.0](https://github.com/soulcraftlabs/brainy/compare/v3.18.0...v3.19.0) (2025-09-29)

View file

@ -49,7 +49,7 @@ import {
BrainyConfig
} from './types/brainy.types.js'
import { NounType, VerbType } from './types/graphTypes.js'
import { BrainyInterface } from './types/brainyDataInterface.js'
import { BrainyInterface } from './types/brainyInterface.js'
/**
* The main Brainy class - Clean, Beautiful, Powerful

View file

@ -7,7 +7,7 @@
*/
import { v4 as uuidv4 } from '../universal/uuid.js'
import { BrainyInterface } from '../types/brainyDataInterface.js'
import { BrainyInterface } from '../types/brainyInterface.js'
import { NounType } from '../types/graphTypes.js'
import {
MCPRequest,

View file

@ -14,7 +14,7 @@
import { WebSocketServer, WebSocket } from 'ws'
import { createServer, IncomingMessage } from 'node:http'
import { BrainyMCPService } from './brainyMCPService.js'
import { BrainyInterface } from '../types/brainyDataInterface.js'
import { BrainyInterface } from '../types/brainyInterface.js'
import { MCPServiceOptions } from '../types/mcpTypes.js'
import { v4 as uuidv4 } from '../universal/uuid.js'

View file

@ -8,7 +8,7 @@
*/
import { v4 as uuidv4 } from '../universal/uuid.js'
import { BrainyInterface } from '../types/brainyDataInterface.js'
import { BrainyInterface } from '../types/brainyInterface.js'
import {
MCPRequest,
MCPResponse,

View file

@ -2,7 +2,7 @@
* 🧠 BRAINY EMBEDDED PATTERNS
*
* AUTO-GENERATED - DO NOT EDIT
* Generated: 2025-09-29T17:05:30.153Z
* Generated: 2025-09-30T23:01:33.167Z
* Patterns: 220
* Coverage: 94-98% of all queries
*

View file

@ -5,7 +5,7 @@
* These are the core "sensory organs" of the atomic age brain-in-jar system
*/
import { BrainyInterface } from '../types/brainyDataInterface.js'
import { BrainyInterface } from '../types/brainyInterface.js'
/**
* Default augmentations that ship with Brainy