惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
ci: add node download fallback · openclaw/openclaw@50c7d78
steipete · 2026-05-26 · via Recent Commits to openclaw:main

@@ -69,6 +69,58 @@ openclaw_find_toolcache_node() {

6969

return 1

7070

}

717172+

openclaw_resolve_node_download_version() {

73+

local requested_node="$1"

74+

case "$requested_node" in

75+

*x | *X)

76+

local major="${requested_node%%.*}"

77+

curl -fsSL https://nodejs.org/dist/index.json |

78+

OPENCLAW_NODE_MAJOR="$major" python3 -c 'import json, os, sys

79+

major = int(os.environ["OPENCLAW_NODE_MAJOR"])

80+

for item in json.load(sys.stdin):

81+

version = item.get("version", "")

82+

if version.startswith(f"v{major}."):

83+

print(version)

84+

break

85+

' OPENCLAW_NODE_MAJOR="$major"

86+

;;

87+

v*)

88+

printf '%s\n' "$requested_node"

89+

;;

90+

*)

91+

printf 'v%s\n' "$requested_node"

92+

;;

93+

esac

94+

}

95+96+

openclaw_node_download_platform() {

97+

local os_name arch_name

98+

os_name="$(uname -s)"

99+

arch_name="$(uname -m)"

100+

case "$os_name:$arch_name" in

101+

Linux:x86_64) printf 'linux-x64\n' ;;

102+

Linux:aarch64 | Linux:arm64) printf 'linux-arm64\n' ;;

103+

Darwin:x86_64) printf 'darwin-x64\n' ;;

104+

Darwin:arm64) printf 'darwin-arm64\n' ;;

105+

*)

106+

return 1

107+

;;

108+

esac

109+

}

110+111+

openclaw_download_node() {

112+

local requested_node="$1"

113+

local version platform archive_url install_root

114+

version="$(openclaw_resolve_node_download_version "$requested_node")"

115+

platform="$(openclaw_node_download_platform)" || return 1

116+

install_root="${RUNNER_TEMP:-/tmp}/openclaw-node-${version}-${platform}"

117+

archive_url="https://nodejs.org/dist/${version}/node-${version}-${platform}.tar.xz"

118+

mkdir -p "$install_root"

119+

echo "Downloading Node ${version} from ${archive_url}"

120+

curl -fsSL "$archive_url" | tar -xJ -C "$install_root" --strip-components=1

121+

openclaw_prepend_node_bin "$install_root/bin"

122+

}

123+72124

openclaw_ensure_node() {

73125

local requested_node="${1:-}"

74126

requested_node="${requested_node#v}"

@@ -87,6 +139,8 @@ openclaw_ensure_node() {

87139

if [[ -n "$node_bin" ]]; then

88140

echo "Using Node $("$node_bin" -p 'process.versions.node') from $node_bin"

89141

openclaw_prepend_node_bin "$(dirname "$node_bin")"

142+

else

143+

openclaw_download_node "$requested_node" || true

90144

fi

9114592146

active_node_version="$(openclaw_active_node_version)"