mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
* fix: remove docker from --fast and fix docker cp into container Two fixes for --beta docker: 1. Remove "docker" from --fast beta features — --fast was auto-enabling --beta docker, pulling ghcr images that hang the session. Users must now opt in explicitly with --beta docker. 2. Fix uploadFile in docker mode — .spawnrc was uploaded to the host but never copied into the container. Add docker cp after SCP upload so env vars and configs reach the agent inside the container. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: keep docker in --fast beta features The docker cp fix resolves the hang — no need to remove docker from --fast. The issue was missing file copy into the container, not the docker mode itself. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: extract makeDockerRunner helper, fix uploadFile into container Add makeDockerRunner() that wraps a CloudRunner so all commands and file uploads target the Docker container. Replaces inline lambdas in hetzner/main.ts and gcp/main.ts with a clean one-liner. The key fix: uploadFile now docker cp's files into the container after SCP — previously .spawnrc (API keys, env vars) only landed on the host, so the agent inside the container had no config and hung. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(security): shellQuote remotePath in docker cp command Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
664 B
JSON
26 lines
664 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.25.31",
|
|
"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",
|
|
"@openrouter/spawn-shared": "workspace:*",
|
|
"picocolors": "1.1.1",
|
|
"valibot": "1.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.4.3",
|
|
"@types/bun": "1.3.8"
|
|
}
|
|
}
|