fix(agents): detect Kiro under its real binary name kiro-cli (#1223)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-04-28 12:37:50 -07:00
committed by GitHub
co-authored by Orca
parent c9391e203f
commit 1559cd290f
2 changed files with 12 additions and 4 deletions
+5 -1
View File
@@ -85,7 +85,11 @@ export const AGENT_CATALOG: AgentCatalogEntry[] = [
{
id: 'kiro',
label: 'Kiro',
cmd: 'kiro',
// Why: the Kiro installer (https://cli.kiro.dev/install) ships a binary
// named `kiro-cli`, not `kiro`. Match TUI_AGENT_CONFIG.kiro.detectCmd so
// the settings pane's "default command" hint aligns with what Orca
// actually looks for on PATH.
cmd: 'kiro-cli',
faviconDomain: 'kiro.dev',
homepageUrl: 'https://kiro.dev/docs/cli/'
},
+7 -3
View File
@@ -76,9 +76,13 @@ export const TUI_AGENT_CONFIG: Record<TuiAgent, TuiAgentConfig> = {
promptInjectionMode: 'stdin-after-start'
},
kiro: {
detectCmd: 'kiro',
launchCmd: 'kiro',
expectedProcess: 'kiro',
// Why: the official Kiro installer (https://cli.kiro.dev/install) places a
// binary named `kiro-cli` on PATH — there is no `kiro` binary. Keep the
// TuiAgent id as 'kiro' for stored preferences, but detect/launch/identify
// the real binary name so the agent is recognized as active.
detectCmd: 'kiro-cli',
launchCmd: 'kiro-cli',
expectedProcess: 'kiro-cli',
promptInjectionMode: 'stdin-after-start'
},
crush: {