brainy/bin/brainy.js
David Snelling bc5aa37dd0 fix: CLI syntax error and add conversation remove command
- Fixed bin/brainy.js to import compiled TypeScript CLI
- Added conversation remove command to clean up MCP setup
- Fixed tsconfig.json to include CLI in compilation
- Fixed package.json import in CLI using readFileSync
- Fixed storage config structure in conversation setup

Fixes the 'Unexpected identifier as' syntax error when running
brainy conversation setup globally.

Version: 3.19.1
2025-09-29 15:58:25 -07:00

14 lines
No EOL
370 B
JavaScript
Executable file

#!/usr/bin/env node
/**
* Brainy CLI Wrapper
*
* Imports the compiled TypeScript CLI from dist/cli/index.js
* This ensures TypeScript features work correctly
*/
import('../dist/cli/index.js').catch((error) => {
console.error('Failed to load Brainy CLI:', error.message)
console.error('Make sure you have built the project: npm run build')
process.exit(1)
})