(input)
| 503 | }; |
| 504 | |
| 505 | const createOpenCodeSdkClient: OpenCodeRuntimeShape["createOpenCodeSdkClient"] = (input) => |
| 506 | createOpencodeClient({ |
| 507 | baseUrl: input.baseUrl, |
| 508 | directory: input.directory, |
| 509 | ...(input.serverPassword |
| 510 | ? { |
| 511 | headers: { |
| 512 | Authorization: `Basic ${Buffer.from(`opencode:${input.serverPassword}`, "utf8").toString("base64")}`, |
| 513 | }, |
| 514 | } |
| 515 | : {}), |
| 516 | throwOnError: true, |
| 517 | }); |
| 518 | |
| 519 | const loadProviders = (client: OpencodeClient) => |
| 520 | runOpenCodeSdk("provider.list", () => client.provider.list()).pipe( |
nothing calls this directly
no outgoing calls
no test coverage detected