mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
11 lines
400 B
TypeScript
11 lines
400 B
TypeScript
export * from "./gen/types.gen.js"
|
|
export { type Config as OpencodeClientConfig, OpencodeClient }
|
|
|
|
import { createClient } from "./gen/client/client.gen.js"
|
|
import { type Config } from "./gen/client/types.gen.js"
|
|
import { OpencodeClient } from "./gen/sdk.gen.js"
|
|
|
|
export function createOpencodeClient(config?: Config) {
|
|
const client = createClient(config)
|
|
return new OpencodeClient({ client })
|
|
}
|