mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-26 20:24:21 +01:00
10 lines
328 B
TypeScript
10 lines
328 B
TypeScript
import { createClient } from "./gen/client/client.js"
|
|
import { type Config } from "./gen/client/types.js"
|
|
import { OpencodeClient } from "./gen/sdk.gen.js"
|
|
export * from "./gen/types.gen.js"
|
|
|
|
export function createOpencodeClient(config?: Config) {
|
|
const client = createClient(config)
|
|
return new OpencodeClient({ client })
|
|
}
|