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

Function loadAgentsQuery

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

Source from the content-addressed store, hash-verified

185 })
186
187export const loadAgentsQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) =>
188 queryOptions({
189 queryKey: [scope, directory, "agents"],
190 queryFn: () => retry(() => sdk.app.agents().then((x) => normalizeAgentList(x.data))),
191 })
192
193export const loadPathQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) =>
194 queryOptions<Path>({

Callers 2

makeQueryOptionsApiFunction · 0.90
bootstrapDirectoryFunction · 0.85

Calls 3

retryFunction · 0.90
normalizeAgentListFunction · 0.90
agentsMethod · 0.45

Tested by

no test coverage detected