(options?: ServerOptions)
| 6 | import type { ServerOptions } from "./server.js" |
| 7 | |
| 8 | export async function createOpencode(options?: ServerOptions) { |
| 9 | const server = await createOpencodeServer({ |
| 10 | ...options, |
| 11 | }) |
| 12 | |
| 13 | const client = createOpencodeClient({ |
| 14 | baseUrl: server.url, |
| 15 | }) |
| 16 | |
| 17 | return { |
| 18 | client, |
| 19 | server, |
| 20 | } |
| 21 | } |
no test coverage detected