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
This commit is contained in:
parent
ced639cab1
commit
bc5aa37dd0
7 changed files with 126 additions and 2345 deletions
|
|
@ -14,7 +14,13 @@ import { neuralCommands } from './commands/neural.js'
|
|||
import { coreCommands } from './commands/core.js'
|
||||
import { utilityCommands } from './commands/utility.js'
|
||||
import conversationCommand from './commands/conversation.js'
|
||||
import { version } from '../package.json'
|
||||
import { readFileSync } from 'fs'
|
||||
import { fileURLToPath } from 'url'
|
||||
import { dirname, join } from 'path'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const packageJson = JSON.parse(readFileSync(join(__dirname, '..', '..', 'package.json'), 'utf8'))
|
||||
const version = packageJson.version
|
||||
|
||||
// CLI Configuration
|
||||
const program = new Command()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue