mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-02 05:40:17 +00:00
When a spawn script fails (e.g., SSH timeout, credentials issue), the retry command shown to the user was `spawn <agent> <cloud>`, dropping the --prompt argument the user originally provided. This was a regression from PR #683 which accidentally removed the buildRetryCommand function and prompt parameter that PR #712 had added. Restores buildRetryCommand (truncates to 60 chars, escapes quotes) and passes prompt through reportScriptFailure so users can copy-paste the full retry command without reconstructing it from memory. Adds 7 tests for buildRetryCommand covering truncation, quote escaping, empty/undefined prompt, and boundary cases. Agent: ux-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
533 B
JSON
22 lines
533 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.2.64",
|
|
"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",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|