MCPcopy Create free account
hub / github.com/anomalyco/opencode / loadProvidersQuery

Function loadProvidersQuery

packages/app/src/context/global-sync/bootstrap.ts:181–185  ·  view source on GitHub ↗
(scope: ServerScope, directory: string | null, sdk: OpencodeClient)

Source from the content-addressed store, hash-verified

179}
180
181export const loadProvidersQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) =>
182 queryOptions({
183 queryKey: [scope, directory, "providers"],
184 queryFn: () => retry(() => sdk.provider.list().then((x) => normalizeProviderList(x.data!))),
185 })
186
187export const loadAgentsQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) =>
188 queryOptions({

Callers 4

makeQueryOptionsApiFunction · 0.90
bootstrap.test.tsFile · 0.90
bootstrapGlobalFunction · 0.85
bootstrapDirectoryFunction · 0.85

Calls 3

retryFunction · 0.90
normalizeProviderListFunction · 0.90
listMethod · 0.65

Tested by

no test coverage detected