mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 17:24:22 +01:00
ci: new publish method (#1451)
This commit is contained in:
8
packages/sdk/js/src/index.ts
Normal file
8
packages/sdk/js/src/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createClient } from "./gen/client/client"
|
||||
import { type Config } from "./gen/client/types"
|
||||
import { OpencodeClient } from "./gen/sdk.gen"
|
||||
|
||||
export function createOpencodeClient(config?: Config) {
|
||||
const client = createClient(config)
|
||||
return new OpencodeClient({ client })
|
||||
}
|
||||
Reference in New Issue
Block a user