brainy/tests
David Snelling 718a963447 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5)
* feat: Complete Brainy 1.0 Great Cleanup

🎯 THE GREAT CLEANUP - Making Brainy Beautiful

BREAKING CHANGES:
- Removed addSmart() method (use add() - it's smart by default)
- Removed duplicate Pipeline classes (consolidated into ONE Cortex)
- Removed 40+ CLI commands (now just 5 clean commands)

 WHAT'S DONE:
- Delete duplicate files: sequentialPipeline.ts, cortex-legacy.ts, serviceIntegration.ts
- Consolidated into ONE Cortex class (the orchestrator)
- Pipeline class now delegates to Cortex (backward compatibility)
- Clean CLI: add, import, search, status, help (ONE way to do everything)
- Interactive mode for beginners

📈 RESULTS:
- 5 CLI commands (was 40+)
- 1 Pipeline system (was 3+)
- Clean, obvious naming
- Beautiful user experience

This achieves the vision: ONE way to do everything, elegant and powerful.

* fix: Restore essential CLI commands and remove backward compatibility

 IMPROVEMENTS:
- Remove Pipeline delegation complexity - Pipeline IS Cortex now
- Restore essential commands: config, cloud, migrate
- Keep core clean: add, import, search, status, help
- Interactive help updated with all options

🎯 FINAL CLI (8 commands):
- Core: add, import, search, status, help
- Essential: config, cloud, migrate

 NO FUNCTIONALITY LOST:
- Zero-config and dynamic adaptations intact
- All storage adapters working
- Premium Brain Cloud integration restored
- Migration tools available

Result: Perfect balance of simplicity and functionality

* feat: Enhance status command with comprehensive statistics display

 ENHANCED STATUS COMMAND:
- Full integration with brainyData.getStatistics()
- Beautiful, organized display of all statistics
- Three modes: default (comprehensive), --simple (quick), --verbose (raw JSON)

📊 STATISTICS DISPLAYED:
- Core Database: items, nouns, verbs, documents
- Storage Information: type, size, location
- Performance Metrics: query times, cache hit rates
- Vector Index: dimensions, vector count, index size
- Memory Usage: heap, RSS breakdown
- Active Augmentations: with descriptions
- Configuration: with sensitive data hidden
- Raw JSON option for developers

🎯 USAGE:
- brainy status (comprehensive view)
- brainy status --simple (quick overview)
- brainy status --verbose (everything + raw JSON)

Perfect for monitoring brain health and performance!

* feat: Add per-service statistics and field discovery to CLI

🎯 ENHANCED STATISTICS DISPLAY:
- Show per-service breakdown of nouns, verbs, metadata
- Display serviceBreakdown from getStatistics() properly
- Beautiful formatting for multi-service environments

🔍 FIELD DISCOVERY FOR ADVANCED SEARCH:
- New section in 'brainy status' shows available filter fields
- Added --fields option to search command
- Usage examples provided for complex filtering
- Integrates with getFilterFields() method

📊 USAGE EXAMPLES:
- brainy status (shows per-service stats + available fields)
- brainy search 'query' --fields (field discovery)
- brainy search 'query' --filter '{"type":"person"}' (advanced filtering)

Perfect for developers doing complex queries and multi-service deployments!

* feat: Restore and enhance brainy chat with multi-model AI support

🎯 RESTORED CHAT FUNCTIONALITY:
- Complete brainy chat command with rich options
- Interactive mode with session management
- Chat history search and session switching
- Auto-discovery of previous sessions

🤖 MULTI-MODEL AI INTEGRATION:
- Local models: Ollama/LLaMA (default)
- OpenAI: GPT-3.5/GPT-4 support
- Claude: Anthropic integration
- Custom models: configurable base URLs

💬 RICH CHAT FEATURES:
- Session management: list, switch, resume
- History: view previous conversations
- Search: find messages across all sessions
- Context-aware: uses your brain data for responses

🔧 USAGE EXAMPLES:
- brainy chat (interactive mode)
- brainy chat 'question' (single message)
- brainy chat --list (show sessions)
- brainy chat --model openai --api-key sk-... (OpenAI)
- brainy chat --model claude --api-key sk-ant-... (Claude)

Perfect for talking to your data with any AI model!

* 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.
2025-08-14 11:27:22 -07:00
..
mocks fix: improve NoSuchKey error handling in S3 mock 2025-08-09 14:36:54 -07:00
api-integration.test.ts fix: optimize package size and improve test reliability 2025-08-10 13:52:01 -07:00
auto-configuration.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
base-hnsw-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
brainy-chat.test.ts feat: add Cortex CLI, augmentation system, and enterprise features 2025-08-07 19:33:03 -07:00
cli.test.ts 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5) 2025-08-14 11:27:22 -07:00
core.test.ts 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5) 2025-08-14 11:27:22 -07:00
database-operations.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
dimension-standardization.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
distributed-caching.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
distributed-config-migration.test.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
distributed.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
edge-cases.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
emergency-high-volume-test.js fix(emergency): drastically lower high-volume mode activation thresholds 2025-08-07 09:51:22 -07:00
environment.browser.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
environment.node.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
error-handling.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
filter-discovery.test.ts feat: v0.49 - Filter discovery API, remove deprecated methods, improve performance 2025-08-06 14:39:33 -07:00
filter-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
frozen-flag.test.ts feat: add frozen flag for complete immutability and simplify README examples 2025-08-06 09:52:45 -07:00
high-volume-test.ts feat: add automatic adaptive performance optimization for high-volume scenarios 2025-08-07 08:37:15 -07:00
intelligent-verb-scoring.test.ts feat: Remove dangerous getAllNouns/getAllVerbs methods, add safe pagination 2025-08-10 16:25:12 -07:00
json-search-test.js **feat(search): enhance JSON document search with field-level filtering and prioritization** 2025-08-01 08:27:39 -07:00
metadata-filter-debug.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
metadata-filter-environments.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
metadata-filter.test.ts feat: v0.49 - Filter discovery API, remove deprecated methods, improve performance 2025-08-06 14:39:33 -07:00
metadata-performance.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
multi-environment.test.ts **feat(scripts): add automated release workflow script** 2025-07-31 13:40:28 -07:00
opfs-storage.test.ts feat: Remove dangerous getAllNouns/getAllVerbs methods, add safe pagination 2025-08-10 16:25:12 -07:00
package-install.test.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
package-size-breakdown.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
package-size-limit.test.ts fix: include all JavaScript modules in npm package 2025-08-05 16:20:36 -07:00
pagination.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
performance-improvements.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
performance.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
regression.test.ts 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5) 2025-08-14 11:27:22 -07:00
release-validation.test.ts 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5) 2025-08-14 11:27:22 -07:00
s3-storage.test.ts feat: Remove dangerous getAllNouns/getAllVerbs methods, add safe pagination 2025-08-10 16:25:12 -07:00
service-statistics.test.ts feat: add comprehensive per-service statistics tracking 2025-08-06 10:17:28 -07:00
setup.ts fix: optimize package size and improve test reliability 2025-08-10 13:52:01 -07:00
simple-metadata-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
specialized-scenarios.test.ts **fix(storage): improve restoration and deletion logic in storage adapter** 2025-07-31 14:03:51 -07:00
statistics-storage.test.ts **feat(tests, docs, storage): add statistics storage tests and enhance documentation** 2025-07-24 16:24:02 -07:00
statistics.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
storage-adapter-coverage.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00
storage-adapters.test.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
test-matrix.md **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
throttling-metrics.test.ts feat: add comprehensive throttling detection and metrics collection 2025-08-08 07:14:10 -07:00
type-utils.test.ts **feat(utils): add type utility functions and examples for runtime type management** 2025-07-31 14:24:16 -07:00
unified-api.test.ts 🚀 Brainy 1.0.0-rc.1 - Complete Unified API Implementation (#5) 2025-08-14 11:27:22 -07:00
vector-operations.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
verify-custom-models.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
verify-model-loading.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
verify-model-priority-simple.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
write-only-direct-reads.test.ts feat: add direct storage access in write-only mode for efficient deduplication 2025-08-07 07:57:41 -07:00