/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/sdk/js/src/index.ts
21 строка
453 B
Dax Raad
sdk: simplify getting started with single createOpencode function
05 окт 2025, 14:01
05 окт 2025, 14:01
116a006
Код
Авторство
О чём код?
export * from "./client.js" export * from "./server.js" import { createOpencodeClient } from "./client.js" import { createOpencodeServer } from "./server.js" import type { ServerOptions } from "./server.js" export async function createOpencode(options?: ServerOptions) { const server = await createOpencodeServer({ ...options, }) const client = createOpencodeClient({ baseUrl: server.url, }) return { client, server, } }