(scope: ServerScope, directory: string | null, sdk: OpencodeClient)
| 179 | } |
| 180 | |
| 181 | export 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 | |
| 187 | export const loadAgentsQuery = (scope: ServerScope, directory: string | null, sdk: OpencodeClient) => |
| 188 | queryOptions({ |
no test coverage detected