mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 08:01:17 +00:00
fix: use openclaw curl installer to prevent fly ssh hang (#1640)
bun install -g openclaw spawns child processes that keep stdout/stderr FDs open, preventing fly ssh console from detecting EOF. Replace with the official curl installer (--no-onboard) which handles Node detection and cleanup without leaving orphan processes on the pipe. See: https://docs.openclaw.ai/install Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c55483d16d
commit
09d9f597ac
3 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.5.27",
|
||||
"version": "0.5.28",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ export const agents: Record<string, AgentConfig> = {
|
|||
install: () =>
|
||||
installAgent(
|
||||
"openclaw",
|
||||
"source ~/.bashrc && { (bun install -g openclaw >/dev/null 2>&1) || npm install -g openclaw@latest; }",
|
||||
"curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard",
|
||||
),
|
||||
envVars: (apiKey) => [
|
||||
`OPENROUTER_API_KEY=${apiKey}`,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ _parse_args() {
|
|||
_maybe_inject_error() {
|
||||
[ -n "${MOCK_ERROR_SCENARIO:-}" ] || return 1
|
||||
case "$URL" in
|
||||
*openrouter.ai*|*raw.githubusercontent.com*|*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*opencode*|*zeroclaw*|*pip.pypa.io*|*get.docker.com*|*npmjs.org*|*github.com/*/releases*)
|
||||
*openrouter.ai*|*raw.githubusercontent.com*|*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*openclaw.ai*|*opencode*|*zeroclaw*|*pip.pypa.io*|*get.docker.com*|*npmjs.org*|*github.com/*/releases*)
|
||||
return 1 ;;
|
||||
esac
|
||||
case "${MOCK_ERROR_SCENARIO}" in
|
||||
|
|
@ -65,7 +65,7 @@ _maybe_inject_error() {
|
|||
|
||||
_handle_special_urls() {
|
||||
case "$URL" in
|
||||
*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*opencode*install*|*zeroclaw*install*|\
|
||||
*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*openclaw.ai*|*opencode*install*|*zeroclaw*install*|\
|
||||
*pip.pypa.io*|*get.docker.com*|*install.python-poetry.org*|\
|
||||
*npmjs.org*|*deb.nodesource.com*|*github.com/*/releases*|*cli.github.com*)
|
||||
printf '#!/bin/bash\nexit 0\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue