From 755b58e8ef9e0b773b56caceed1e0ab2342ed4d0 Mon Sep 17 00:00:00 2001 From: Dean Sharon Date: Fri, 20 Mar 2026 01:00:59 +0200 Subject: [PATCH] =?UTF-8?q?fix(init):=20hide=20ambient=20plugin=20from=20m?= =?UTF-8?q?ultiselect=20=E2=80=94=20controlled=20by=20ambient=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The init wizard showed devflow-ambient in the plugin multiselect (pre-selected) AND had a separate "Enable ambient mode?" prompt, which was redundant. Since the /ambient command was removed (ambient is hook-only now), the plugin's only purpose is distributing skills/agents the hook needs. Now follows the devflow-core-skills precedent: filtered from multiselect, auto- included when the ambient prompt answer is yes. --- src/cli/commands/init.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cli/commands/init.ts b/src/cli/commands/init.ts index 6130e17..c8d4746 100644 --- a/src/cli/commands/init.ts +++ b/src/cli/commands/init.ts @@ -168,7 +168,7 @@ export const initCommand = new Command('init') } } else if (process.stdin.isTTY) { const choices = DEVFLOW_PLUGINS - .filter(pl => pl.name !== 'devflow-core-skills') + .filter(pl => pl.name !== 'devflow-core-skills' && pl.name !== 'devflow-ambient') .map(pl => ({ value: pl.name, label: pl.name.replace('devflow-', ''), @@ -176,7 +176,7 @@ export const initCommand = new Command('init') })); const preSelected = DEVFLOW_PLUGINS - .filter(pl => !pl.optional && pl.name !== 'devflow-core-skills') + .filter(pl => !pl.optional && pl.name !== 'devflow-core-skills' && pl.name !== 'devflow-ambient') .map(pl => pl.name); const pluginSelection = await p.multiselect({ @@ -340,6 +340,11 @@ export const initCommand = new Command('init') pluginsToInstall = [coreSkillsPlugin, ...pluginsToInstall]; } + const ambientPlugin = DEVFLOW_PLUGINS.find(p => p.name === 'devflow-ambient'); + if (ambientEnabled && ambientPlugin && !pluginsToInstall.includes(ambientPlugin)) { + pluginsToInstall.push(ambientPlugin); + } + const { skillsMap, agentsMap } = buildAssetMaps(pluginsToInstall); // Install: try native CLI first, fall back to file copy