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