mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
Replace 5 duplicated SSH wait implementations (AWS, DO, Hetzner, GCP, Sprite) with a shared two-phase utility in cli/src/shared/ssh.ts: - Phase 1: cheap TCP probe (2s intervals) until port 22 opens - Phase 2: full SSH handshake (3s intervals) with stderr capture - Adds BatchMode=yes to prevent interactive prompt hangs - Removes ~220 lines of duplicated sleep/SSH_OPTS/waitForSsh code Daytona (token auth) and Fly (WireGuard) left unchanged — too different. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
620 B
JSON
25 lines
620 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.7.1",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"lint": "biome lint src/",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1",
|
|
"valibot": "^1.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.3",
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|