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>
This commit is contained in:
parent
3e5d39454e
commit
7b6e969773
4 changed files with 8 additions and 3 deletions
3
bun.lock
3
bun.lock
|
|
@ -463,6 +463,9 @@
|
||||||
"packages/sdk/js": {
|
"packages/sdk/js": {
|
||||||
"name": "@opencode-ai/sdk",
|
"name": "@opencode-ai/sdk",
|
||||||
"version": "1.3.13",
|
"version": "1.3.13",
|
||||||
|
"dependencies": {
|
||||||
|
"cross-spawn": "^7.0.6",
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@hey-api/openapi-ts": "0.90.10",
|
"@hey-api/openapi-ts": "0.90.10",
|
||||||
"@tsconfig/node22": "catalog:",
|
"@tsconfig/node22": "catalog:",
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,7 @@
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"@typescript/native-preview": "catalog:"
|
"@typescript/native-preview": "catalog:"
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {
|
||||||
|
"cross-spawn": "^7.0.6"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { spawn } from "node:child_process"
|
import spawn from "cross-spawn"
|
||||||
import { type Config } from "./gen/types.gen.js"
|
import { type Config } from "./gen/types.gen.js"
|
||||||
|
|
||||||
export type ServerOptions = {
|
export type ServerOptions = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { spawn } from "node:child_process"
|
import spawn from "cross-spawn"
|
||||||
import { type Config } from "./gen/types.gen.js"
|
import { type Config } from "./gen/types.gen.js"
|
||||||
|
|
||||||
export type ServerOptions = {
|
export type ServerOptions = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue