MCPcopy Create free account
hub / github.com/MigoXLab/coderio / promptUserChoice

Function promptUserChoice

src/cli/prompts.ts:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13type UserChoice = 'resume' | 'fresh';
14
15export async function promptUserChoice(): Promise<UserChoice> {
16 const response = await typedPrompt<UserChoice>({
17 type: 'select',
18 name: 'choice',
19 message: 'What would you like to do?',
20 choices: [
21 { title: 'Resume from cache', value: 'resume' },
22 { title: 'Start fresh (will clear existing cache)', value: 'fresh' },
23 ],
24 initial: 0,
25 });
26 return response.choice || 'resume';
27}

Callers 1

promptCheckpointChoiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected