feat(profiles): add opt-in Lean/Full and hybrid Auto selection

This commit is contained in:
haelyra
2026-09-27 16:46:07 -04:00
parent e482e57941
commit 0765f7a2ca
342 changed files with 18212 additions and 209 deletions
+9 -2
View File
@@ -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',