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

Function loadPathQuery

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

Source from the content-addressed store, hash-verified

191 })
192
193export const loadPathQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) =>
194 queryOptions<Path>({
195 queryKey: [scope, directory, "path"],
196 queryFn: () => retry(() => sdk.path.get().then((x) => x.data!)),
197 })
198
199export const loadReferencesQuery = (scope: ServerScope, directory: string, sdk: OpencodeClient) =>
200 queryOptions<ReferenceInfo[]>({

Callers 4

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

Calls 2

retryFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected