add sse streaming to sdk

This commit is contained in:
Dax Raad
2025-08-22 18:30:25 -04:00
parent 6e626afdcb
commit 0f1697b2ab
18 changed files with 497 additions and 172 deletions

View File

@@ -17,7 +17,7 @@ export async function createOpencodeServer(config?: ServerConfig) {
config ?? {},
)
const proc = spawn(`opencode`, [`servel`, `--hostname=${config.hostname}`, `--port=${config.port}`], {
const proc = spawn(`opencode`, [`serve`, `--hostname=${config.hostname}`, `--port=${config.port}`], {
signal: config.signal,
})