feat(cli): clean up command surface

This commit is contained in:
Andrey Avtomonov 2026-05-12 23:51:46 +02:00
parent 60457e9407
commit e15a4ebaec
61 changed files with 406 additions and 2076 deletions

View file

@ -7,7 +7,6 @@ import type { KtxCliIo } from './cli-runtime.js';
import { formatSetupNextStepLines } from './next-steps.js';
import { isKtxSetupExitError, withSetupInterruptConfirmation } from './setup-interrupt.js';
import {
type KtxAgentInstallMode,
type KtxAgentScope,
type KtxAgentTarget,
type KtxSetupAgentsDeps,
@ -60,7 +59,6 @@ export type KtxSetupArgs =
agents: boolean;
target?: KtxAgentTarget;
agentScope?: KtxAgentScope;
agentInstallMode?: KtxAgentInstallMode;
skipAgents?: boolean;
inputMode: 'auto' | 'disabled';
yes: boolean;
@ -736,7 +734,7 @@ async function runKtxSetupInner(args: KtxSetupArgs, io: KtxCliIo, deps: KtxSetup
agents: true,
...(args.target ? { target: args.target } : {}),
scope: args.agentScope ?? 'project',
mode: args.agentInstallMode ?? 'cli',
mode: 'cli',
skipAgents: false,
},
io,