summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src/index.ts
blob: eeb837903a8ba24a48d3efe01d423a285439b432 (plain)
1
2
3
4
5
6
7
8
9
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 })
}