mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-16 02:51:10 +00:00
After showing post-session messages, the local process now exits cleanly instead of requiring an extra Ctrl+C. The root cause was that after main() resolved, lingering event loop handles (from @clack/prompts stdin listeners, fetch connections, etc.) prevented Node/Bun from exiting naturally. The fix adds process.exit(0) on successful main() completion, which covers all session paths (bash script execution via execScript, SSH reconnection via cmdConnect, and agent re-entry via cmdEnterAgent). Fixes #2145 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
616 B
JSON
25 lines
616 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.12.9",
|
|
"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"
|
|
}
|
|
}
|