feat: add Cortex - complete CLI command center for configuration and coordination

- New CLI tool for managing Brainy databases
- Encrypted configuration management (replaces .env files)
- Distributed storage migration coordination
- Advanced MongoDB-style query interface
- Backup/restore, health checks, statistics
- Interactive shell mode
- One-line integration: await brainy.loadEnvironment()
- Full documentation and migration guides
- Node.js only (browser safe with environment detection)

BREAKING CHANGE: Package size increased ~250KB due to CLI dependencies
This commit is contained in:
David Snelling 2025-08-07 13:53:17 -07:00
parent 45f68b7311
commit 89d6d1e8ce
7 changed files with 1879 additions and 0 deletions

View file

@ -6,6 +6,9 @@
"module": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"bin": {
"cortex": "./dist/cortex/cli.js"
},
"sideEffects": [
"./dist/setup.js",
"./dist/utils/textEncoding.js",
@ -158,7 +161,11 @@
"@huggingface/transformers": "^3.1.0",
"@smithy/node-http-handler": "^4.1.1",
"buffer": "^6.0.3",
"chalk": "^5.3.0",
"cli-table3": "^0.6.3",
"commander": "^11.1.0",
"dotenv": "^16.4.5",
"ora": "^7.0.1",
"uuid": "^9.0.1"
},
"prettier": {