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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog RSS Feed
D
Docker
GbyAI
GbyAI
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
F
Fortinet All Blogs
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
M
MIT News - Artificial intelligence
C
Check Point Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
博客园 - Franky
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Last Week in AI
Last Week in AI
L
LangChain 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
fix(installer): extract portable Node with ZipFile · open...
steipete · 2026-05-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -63,7 +63,7 @@ Docs: https://docs.openclaw.ai

6363

- Plugins/discovery: strip `-plugin` package suffixes when deriving plugin id hints so package names line up with manifest ids. (#85170) Thanks @JulyanXu.

6464

- Telegram: preserve fenced code block languages through Markdown rendering so Telegram receives `language-*` code classes. (#85209) Thanks @leno23.

6565

- Windows installer: bootstrap a user-local portable Node.js when native Windows has no Node and no winget, Chocolatey, or Scoop, so first-run installs can continue on raw hosts.

66-

- Windows installer: copy the downloaded portable Node.js directory into place so PowerShell 5.1 first-run bootstraps do not fail while moving zip contents.

66+

- Windows installer: extract and copy the downloaded portable Node.js directory without PowerShell 5.1 `Expand-Archive`/move failures.

6767

- fix(integrations): enforce channel read target allowlists [AI]. (#84982) Thanks @pgondhi987.

6868

- Agents/heartbeat: route single-owner `session.dmScope=main` direct-message exec and cron event wakes back to the agent main session so async completions no longer strand context in orphan direct-DM queues. Fixes #71581. (#83743) Thanks @Kaspre.

6969

- Agents/code-mode: expose outer code-mode `exec` source through the `command` hook alias with `toolKind`/`toolInputKind` discriminators so exec-shaped policies can distinguish code-mode cells. (#83483) Thanks @Kaspre.

Original file line numberDiff line numberDiff line change

@@ -183,6 +183,18 @@ function Resolve-PortableNodeDownload {

183183

}

184184

}

185185
186+

function Expand-PortableNodeArchive {

187+

param(

188+

[Parameter(Mandatory = $true)]

189+

[string]$ZipPath,

190+

[Parameter(Mandatory = $true)]

191+

[string]$DestinationPath

192+

)

193+
194+

Add-Type -AssemblyName System.IO.Compression.FileSystem

195+

[System.IO.Compression.ZipFile]::ExtractToDirectory($ZipPath, $DestinationPath)

196+

}

197+
186198

function Install-PortableNode {

187199

if (Use-PortableNodeIfPresent) {

188200

Ensure-PortableNodeOnUserPath

@@ -208,12 +220,11 @@ function Install-PortableNode {

208220

if (Test-Path $tmpExtract) {

209221

Remove-Item -Recurse -Force $tmpExtract

210222

}

211-

New-Item -ItemType Directory -Force -Path $tmpExtract | Out-Null

212223
213224

try {

214225

Write-Host " Downloading Node.js $($download.Version)..." -ForegroundColor Gray

215226

Invoke-WebRequest -UseBasicParsing -Uri $download.Url -OutFile $tmpZip

216-

Expand-Archive -Path $tmpZip -DestinationPath $tmpExtract -Force

227+

Expand-PortableNodeArchive -ZipPath $tmpZip -DestinationPath $tmpExtract

217228
218229

$nodeDir = Get-ChildItem -Path $tmpExtract -Directory |

219230

Where-Object { Test-Path (Join-Path $_.FullName "node.exe") } |

Original file line numberDiff line numberDiff line change

@@ -121,6 +121,7 @@ describe("install.ps1 failure handling", () => {

121121

const userPathBody = extractFunctionBody(source, "Add-ToUserPath");

122122

const depsRootBody = extractFunctionBody(source, "Get-OpenClawDepsRoot");

123123

const resolveNodeBody = extractFunctionBody(source, "Resolve-PortableNodeDownload");

124+

const expandNodeBody = extractFunctionBody(source, "Expand-PortableNodeArchive");

124125
125126

expect(installNodeBody).toContain("Install-PortableNode");

126127

expect(installNodeBody).toContain("Portable Node.js bootstrap failed");

@@ -137,6 +138,10 @@ describe("install.ps1 failure handling", () => {

137138

'[Environment]::SetEnvironmentVariable("Path", $newUserPath, "User")',

138139

);

139140

expect(portableNodeBody).toContain("Invoke-WebRequest -UseBasicParsing");

141+

expect(portableNodeBody).toContain("Expand-PortableNodeArchive");

142+

expect(portableNodeBody).not.toContain("Expand-Archive");

143+

expect(portableNodeBody).not.toContain("New-Item -ItemType Directory -Force -Path $tmpExtract");

144+

expect(expandNodeBody).toContain("System.IO.Compression.ZipFile");

140145

expect(resolveNodeBody).toContain("https://nodejs.org/dist/index.json");

141146

expect(resolveNodeBody).toContain("win-$architecture-zip");

142147

expect(resolveNodeBody).toContain("node-$($release.version)-win-$architecture.zip");