mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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
This commit is contained in:
parent
f3c2d1b6c2
commit
116a006ce6
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,8 @@ export * from "./client.js"
|
|||
export * from "./server.js"
|
||||
|
||||
import { createOpencodeClient } from "./client.js"
|
||||
import { createOpencodeServer, ServerOptions } from "./server.js"
|
||||
import { createOpencodeServer } from "./server.js"
|
||||
import type { ServerOptions } from "./server.js"
|
||||
|
||||
export async function createOpencode(options?: ServerOptions) {
|
||||
const server = await createOpencodeServer({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue