feat: Complete Brainy 1.0.0-rc.1 unified API implementation
- Implement 7 core unified API methods (add, search, import, addNoun, addVerb, update, delete) - Add universal encryption system with encryptData/decryptData methods - Add container deployment support with model preloading - Implement soft delete by default for better performance - Add searchVerbs() and getNounWithVerbs() for graph traversal - Reduce package size by 16% despite major feature additions - Create comprehensive CHANGELOG.md and MIGRATION.md - Consolidate CLI from 40+ to 9 clean commands - All scaling optimizations preserved and enhanced BREAKING CHANGES: - addSmart() method removed (use add() - smart by default) - CLI commands consolidated and renamed - Pipeline classes unified into single Cortex class This is the complete 1.0 release candidate with all planned features implemented and tested.
This commit is contained in:
parent
def37bac64
commit
34b2ed94d0
15 changed files with 2377 additions and 59 deletions
|
|
@ -21,7 +21,7 @@ describe('Brainy Core Functionality', () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
// Load brainy library as a consumer would
|
||||
brainy = await import('../dist/unified.js')
|
||||
brainy = await import('../src/index.js')
|
||||
})
|
||||
|
||||
describe('Library Exports', () => {
|
||||
|
|
@ -42,12 +42,12 @@ describe('Brainy Core Functionality', () => {
|
|||
expect(typeof brainy.createEmbeddingFunction).toBe('function')
|
||||
})
|
||||
|
||||
it('should export environment object', () => {
|
||||
expect(brainy.environment).toBeDefined()
|
||||
expect(typeof brainy.environment).toBe('object')
|
||||
expect(brainy.environment).toHaveProperty('isBrowser')
|
||||
expect(brainy.environment).toHaveProperty('isNode')
|
||||
expect(brainy.environment).toHaveProperty('isServerless')
|
||||
it('should export environment detection functions', () => {
|
||||
expect(typeof brainy.isBrowser).toBe('function')
|
||||
expect(typeof brainy.isNode).toBe('function')
|
||||
expect(typeof brainy.isWebWorker).toBe('function')
|
||||
expect(typeof brainy.areWebWorkersAvailable).toBe('function')
|
||||
expect(typeof brainy.isThreadingAvailable).toBe('function')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue