mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-09 02:09:12 +00: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 })
|
|
}
|