GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/plugin/src/effect/provider.ts at dev · yusha/opencode Expand file tree/ Copy pathprovider.tsMore file actions 33 lines (30 loc) · 1.48 KB / Copy pathprovider.tsFile metadata and controls33 lines (30 loc) · 1.48 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import type { ProviderApi } from "@opencode/client/effect/api" import type { Model } from "@opencode/schema/model" import type { Provider } from "@opencode/schema/provider" import type { ConnectionInfo } from "@opencode/client" import type { Effect, Types } from "effect" import type { Transform } from "./registration.js" /** Provider metadata and immutable source definitions, including inactive providers. */ export interface ProviderRecord { readonly provider: Provider.Info readonly models: ReadonlyMap<string, Model.Info> readonly sourceConnection?: ConnectionInfo } export interface ProviderEditor { list(): readonly ProviderRecord[] get(providerID: string): ProviderRecord | undefined /** A discovered account-specific inventory can be bound to the connection that produced it. */ add(input: { info: Provider.Info; models: readonly Model.Info[]; sourceConnection?: ConnectionInfo }): void update(providerID: string, update: (provider: Types.DeepMutable<Provider.Info>) => void): void remove(providerID: string): void readonly models: { set(providerID: string, models: readonly Model.Info[]): void /** Updates an owned copy of a source definition. */ update(providerID: string, modelID: string, update: (model: Types.DeepMutable<Model.Info>) => void): void remove(providerID: string, modelID: string): void } } export interface ProviderDomain extends ProviderApi<unknown> { readonly transform: Transform<ProviderEditor> readonly reload: () => Effect.Effect<void> } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |