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

Class Method

packages/opencode/src/provider/auth.ts:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39const Prompt = Schema.Union([TextPrompt, SelectPrompt])
40
41export class Method extends Schema.Class<Method>("ProviderAuthMethod")({
42 type: Schema.Literals(["oauth", "api"]),
43 label: Schema.String,
44 prompts: optional(Schema.Array(Prompt)),
45}) {}
46
47export const Methods = Schema.Record(Schema.String, Schema.Array(Method))
48export type Methods = typeof Methods.Type

Callers

nothing calls this directly

Calls 1

optionalFunction · 0.90

Tested by

no test coverage detected