MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / createInstallPromptChoices

Function createInstallPromptChoices

apps/kimi-code/src/cli/update/prompt.ts:38–43  ·  view source on GitHub ↗
(target: UpdateTarget)

Source from the content-addressed store, hash-verified

36const SKIP_HINT = 'Continue with current version';
37
38export function createInstallPromptChoices(target: UpdateTarget): readonly InstallPromptChoice[] {
39 return [
40 { value: 'install', label: `${INSTALL_HINT} (${target.version})` },
41 { value: 'skip', label: SKIP_HINT },
42 ];
43}
44
45export function getDefaultInstallPromptSelection(choices: readonly InstallPromptChoice[]): number {
46 const installIndex = choices.findIndex((choice) => choice.value === 'install');

Callers 2

prompt.test.tsFile · 0.90
promptForInstallChoiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected