Download packages/sdk/js/src/index.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/sdk/js/src/index.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/sdk/js/src/index.ts
-
curl -L -o index.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/sdk/js/src/index.ts
453 Bytes
| 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, | |
| } | |
| } | |