MCPcopy Index your code
hub / github.com/anomalyco/opencode / promptValue

Function promptValue

packages/opencode/src/cli/cmd/providers.ts:23–26  ·  view source on GitHub ↗
(value: Option.Option<Value>)

Source from the content-addressed store, hash-verified

21type PluginAuth = NonNullable<Hooks["auth"]>
22
23const promptValue = <Value>(value: Option.Option<Value>) => {
24 if (Option.isNone(value)) return Effect.die(new UI.CancelledError())
25 return Effect.succeed(value.value)
26}
27
28const put = Effect.fn("Cli.providers.put")(function* (key: string, info: Auth.Info) {
29 const auth = yield* Auth.Service

Callers 1

providers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected