MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / onSelect

Function onSelect

apps/cli/src/lib/utils/onboarding.ts:11–21  ·  view source on GitHub ↗
(choice: OnboardingProviderChoice)

Source from the content-addressed store, hash-verified

9
10 return new Promise<OnboardingResult>((resolve) => {
11 const onSelect = async (choice: OnboardingProviderChoice) => {
12 await saveSettings({ onboardingProviderChoice: choice })
13
14 app.unmount()
15
16 console.log("")
17 console.log("Using the standard login-free provider path.")
18 console.log("Set your API key via --api-key or environment variable.")
19 console.log("")
20 resolve({ choice: OnboardingProviderChoice.Byok, skipped: false })
21 }
22
23 const app = render(createElement(OnboardingScreen, { onSelect }))
24 })

Callers 3

OnboardingScreenFunction · 0.50
PickerSelectFunction · 0.50
AutocompleteInputInnerFunction · 0.50

Calls 2

saveSettingsFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected