mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-28 12:35:13 +02:00
feat(profiles): add opt-in Lean/Full and hybrid Auto selection
This commit is contained in:
+9
-2
@@ -31,6 +31,10 @@ const COMMANDS = {
|
||||
script: 'consult.js',
|
||||
description: 'Recommend ECC components and profiles from a natural language query',
|
||||
},
|
||||
profile: {
|
||||
script: 'profile.js',
|
||||
description: 'Inspect Lean/Full profiles, stage managed generations, and resolve task context',
|
||||
},
|
||||
'control-pane': {
|
||||
script: 'control-pane.js',
|
||||
description: 'Run the local ECC2 operator control pane',
|
||||
@@ -112,6 +116,7 @@ const PRIMARY_COMMANDS = [
|
||||
'plan',
|
||||
'catalog',
|
||||
'consult',
|
||||
'profile',
|
||||
'control-pane',
|
||||
'ito',
|
||||
'nasiko',
|
||||
@@ -167,6 +172,7 @@ Examples:
|
||||
ecc catalog components --family language
|
||||
ecc catalog show framework:nextjs
|
||||
ecc consult "security reviews"
|
||||
ecc profile preview lean@1 --target codex --selection auto --json
|
||||
ecc control-pane --port 8765
|
||||
ecc ito login [--no-browser]
|
||||
ecc ito logout
|
||||
@@ -267,6 +273,7 @@ function runCommand(commandName, args) {
|
||||
throw new Error(`Unknown command: ${commandName}`);
|
||||
}
|
||||
const isItoLogin = commandName === 'ito' && getInvocationCommand(args) === 'login';
|
||||
const isProfileStart = commandName === 'profile' && getInvocationCommand(args) === 'start';
|
||||
const result = spawnSync(
|
||||
process.execPath,
|
||||
[path.join(__dirname, command.script), ...args],
|
||||
@@ -279,9 +286,9 @@ function runCommand(commandName, args) {
|
||||
}),
|
||||
}
|
||||
: process.env,
|
||||
stdio: isItoLogin || commandName === 'setup' || commandName === 'install'
|
||||
stdio: isItoLogin || isProfileStart || commandName === 'setup' || commandName === 'install'
|
||||
? 'inherit'
|
||||
: commandName === 'memory'
|
||||
: commandName === 'memory' || commandName === 'profile'
|
||||
? ['inherit', 'pipe', 'pipe']
|
||||
: ['pipe', 'pipe', 'pipe'],
|
||||
encoding: 'utf8',
|
||||
|
||||
Reference in New Issue
Block a user