fix: provide WebSocket impl for process terminal test on Node 20

Node 20 lacks globalThis.WebSocket. Add ws as a devDependency and
pass it to connectProcessTerminalWebSocket in the integration test
so CI no longer fails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nathan Flurry 2026-03-05 18:01:12 -08:00
parent d8d0884d0a
commit cf6622f062
3 changed files with 233 additions and 160 deletions

View file

@ -17,8 +17,8 @@
}
},
"dependencies": {
"acp-http-client": "workspace:*",
"@sandbox-agent/cli-shared": "workspace:*"
"@sandbox-agent/cli-shared": "workspace:*",
"acp-http-client": "workspace:*"
},
"files": [
"dist"
@ -34,10 +34,12 @@
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/ws": "^8.18.1",
"openapi-typescript": "^6.7.0",
"tsup": "^8.0.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
"vitest": "^3.0.0",
"ws": "^8.19.0"
},
"optionalDependencies": {
"@sandbox-agent/cli": "workspace:*"