Skip to content

Commit 116a006

Browse files
committed
sdk: simplify getting started with single createOpencode function
Makes it easier for developers to get started by providing a single function that creates both server and client, removing the need to manually coordinate separate server and client creation
1 parent f3c2d1b commit 116a006

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/sdk/js/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export * from "./client.js"
22
export * from "./server.js"
33

44
import { createOpencodeClient } from "./client.js"
5-
import { createOpencodeServer, ServerOptions } from "./server.js"
5+
import { createOpencodeServer } from "./server.js"
6+
import type { ServerOptions } from "./server.js"
67

78
export async function createOpencode(options?: ServerOptions) {
89
const server = await createOpencodeServer({

0 commit comments

Comments
 (0)