fix(sdk): use cross-spawn for server and tui process launch

Agent-Logs-Url: https://github.com/anomalyco/opencode/sessions/7a3580be-b419-4f58-a2c4-729416b0945f

Co-authored-by: Hona <10430890+Hona@users.noreply.github.com>
pull/20764/head
copilot-swe-agent[bot] 2026-04-03 00:22:07 +00:00 committed by GitHub
parent 3e5d39454e
commit 7b6e969773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -463,6 +463,9 @@
"packages/sdk/js": {
"name": "@opencode-ai/sdk",
"version": "1.3.13",
"dependencies": {
"cross-spawn": "^7.0.6",
},
"devDependencies": {
"@hey-api/openapi-ts": "0.90.10",
"@tsconfig/node22": "catalog:",

View File

@ -27,5 +27,7 @@
"typescript": "catalog:",
"@typescript/native-preview": "catalog:"
},
"dependencies": {}
"dependencies": {
"cross-spawn": "^7.0.6"
}
}

View File

@ -1,4 +1,4 @@
import { spawn } from "node:child_process"
import spawn from "cross-spawn"
import { type Config } from "./gen/types.gen.js"
export type ServerOptions = {

View File

@ -1,4 +1,4 @@
import { spawn } from "node:child_process"
import spawn from "cross-spawn"
import { type Config } from "./gen/types.gen.js"
export type ServerOptions = {