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

推荐订阅源

L
LINUX DO - 热门话题
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
博客园 - 叶小钗
李成银的技术随笔
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
A
About on SuperTechFans
罗磊的独立博客
W
WeLiveSecurity
L
LINUX DO - 最新话题
M
MIT News - Artificial intelligence
Hacker News: Ask HN
Hacker News: Ask HN
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
Martin Fowler
Martin Fowler
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Register - Security
The Register - Security
M
Microsoft Research Blog - Microsoft Research
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - Franky
The Cloudflare Blog
C
Cisco Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google Online Security Blog
Google Online Security Blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
C
Cybersecurity and Infrastructure Security Agency CISA
小众软件
小众软件
I
Intezer
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic

Recent Commits to openclaw:main

ci: share Crabbox hydrate pnpm store · openclaw/openclaw@7552634 chore(release): refresh plugin SDK baseline · openclaw/openclaw@736e7de ci(release): pass node pin to pnpm setup ci: use stable pnpm wrapper for Crabbox hydrate · openclaw/openclaw@b00d306 docs: refine maintainer docs sweep docs(memory): add guidance for action-sensitive memories (#82788) · openclaw/openclaw@bd04b1e docs(feishu): add dynamicAgentCreation and per-user isolation docs (#… docs(secrets): clarify agent-readable plaintext boundary (#84574) · openclaw/openclaw@ce5dcb0 docs(channels): document ackReactionScope for Slack & Telegram (DM go… · openclaw/openclaw@bbbed26 build(pnpm): use packageManager as pnpm source · openclaw/openclaw@a0702e1 ci: export Crabbox hydrate pnpm layout · openclaw/openclaw@f6840ac fix(gateway): preserve fresh agent session state · openclaw/openclaw@6f41653 fix(gateway): attribute agent wait timeouts ci: keep Crabbox hydrate runs reusable · openclaw/openclaw@489ea84 Speed up /models browse replies (#84735) · openclaw/openclaw@936dfaa docs: update changelog for plugin binding command escape (#85188) · openclaw/openclaw@9fc5346 Let binding commands escape plugin routes · openclaw/openclaw@af12082 ci: fix Crabbox hydrate pnpm modules dir · openclaw/openclaw@c9b17c5 Restore Control UI gateway token pairing [AI] (#85459) · openclaw/openclaw@10cb0a5 fix(docker): accept single-object pnpm list output · openclaw/openclaw@5e97045 fix: apply docs sweep updates · openclaw/openclaw@59aef2f fix(update): roll back failed git updates · openclaw/openclaw@769fd0b test(docker): expect prod store seed command fix(agents): bound embedded compaction write locks · openclaw/openclaw@46de078 fix(update): repair managed npm plugin peers · openclaw/openclaw@571f364 fix(update): repair managed npm plugin peers (#83794) (thanks @fuller… · openclaw/openclaw@de8a82a fix(telegram): honor table mode in outbound chunks (#85455) · openclaw/openclaw@7fc691a fix(docker): precreate owned named volume targets (#85454) · openclaw/openclaw@d8b9736 fix(ui): strip ANSI from displayed gateway logs (#85453) · openclaw/openclaw@664611c fix(skills): accept macos os requirement on darwin (#85451) fix(gateway): preserve message-tool replies in chat history test: track Docker prod store seed command · openclaw/openclaw@9a816f4 fix: satisfy prod store package list lint · openclaw/openclaw@d5247d0 test(plugins): clear lookup metadata memo fix(docker): seed prod store before offline prune · openclaw/openclaw@6788aa1 fix(memory): expand home paths in extra memory paths (#85449) · openclaw/openclaw@48bf037 docs: add security FAQ guidance chore(deps): refresh npm shrinkwraps docs: clarify OpenAI HTTP client guidance docs: remove stale showcase intro videos · openclaw/openclaw@00d3dca fix(gateway): point model override error to config docs docs: document secrets provider plan fields docs: clarify media directive formatting · openclaw/openclaw@c876fec docs: align memory search cache default refactor(ios): centralize setup auth parsing test(release): wait for config reload log proof refactor(ios): consolidate manual auth override inputs · openclaw/openclaw@d93c597 fix(ui): hide thinking options for non-reasoning models (#85406) · openclaw/openclaw@bb4d88e fix(ui): attach pasted data image text (#85392) · openclaw/openclaw@a03a8d9 fix(gateway): preserve OpenAI usage aliases in chat history (#85383) · openclaw/openclaw@d9c6c5f feat(ios): add realtime talk relay mode · openclaw/openclaw@e730e9b fix(browser): hint WSL portproxy CDP empty replies (#85379) · openclaw/openclaw@933f01c fix(installer): persist portable Git on Windows · openclaw/openclaw@5b90a48 fix(opencode-go): strip Kimi reasoning replay fields (#85377) · openclaw/openclaw@d22bcfc fix(build): normalize cache paths on Windows (#85437) · openclaw/openclaw@81d22c8 fix(update): detect nested macOS gateway ancestry (#85391) · openclaw/openclaw@adc6adc fix(docker): seed offline prune store in runtime stage · openclaw/openclaw@faf2a6c fix(ci): stabilize npm shrinkwrap metadata · openclaw/openclaw@21bedd3 fix(codex): route node exec through OpenClaw tools · openclaw/openclaw@5cc0dbc test(installer): track portable node root helper · openclaw/openclaw@9364b21 fix(ui): sync talk transcript translations fix(ui): localize talk transcript labels · openclaw/openclaw@8fc48af fix(release): stabilize config restart QA · openclaw/openclaw@cc91ff0 fix(installer): extract portable Node directly test(qa-lab): report scenario pack coverage · openclaw/openclaw@dcd98bf fix(plugins): drop stale tlon tool contract · openclaw/openclaw@d70dc4b fix(installer): prefer tar for portable Node extraction · openclaw/openclaw@a54a881 fix(codex): deliver native subagent completions feat: add context-engine host capability requirements (#84994) · openclaw/openclaw@cff5244 fix(release): keep shrinkwrap pinned to pnpm lock · openclaw/openclaw@9d24fde fix: surface plan updates as status notices · openclaw/openclaw@dc04503 test(google): narrow web search fake timers · openclaw/openclaw@fe7d13c fix(installer): extract portable Node with ZipFile · openclaw/openclaw@ffa6cd8 fix(gateway): defer provider auth prewarm after startup (#85369) · openclaw/openclaw@69255f8 fix(talk): stabilize realtime voice consults · openclaw/openclaw@683ad75 test(qa): tolerate slow gateway rpc startup · openclaw/openclaw@29118a0 chore(diagnostics): refresh plugin sdk baseline · openclaw/openclaw@ab684f5 fix(diagnostics): surface async queue drops fix(diagnostics): bound diagnostic buffers · openclaw/openclaw@bdcaac0 fix(installer): copy portable Node into place · openclaw/openclaw@c21ca88 fix(cli): recover replaced device approvals (#85342) · openclaw/openclaw@6ea907c test(release): align prerelease validation · openclaw/openclaw@0def3e2 fix(installer): install portable Node directory atomically · openclaw/openclaw@2890b1a fix(runtime-llm): avoid duplicate provider prefix in allowlist diagno… · openclaw/openclaw@937a756 fix(gateway): include openclaw bin in service PATH (#84475) · openclaw/openclaw@66d1d13 fix(gateway): handle concurrent launchd bootstrap restart race (#84722) · openclaw/openclaw@ba86716 feat: support pi and opencode autoreview engines · openclaw/openclaw@31a189d ci(package): gate acceptance on package integrity · openclaw/openclaw@5275929 ci(release): bypass pnpm for tsdown package build · openclaw/openclaw@fea89cd test(release): align prerelease validation baselines · openclaw/openclaw@04ebdc6 ci(release): harden docker package build · openclaw/openclaw@7b1fbe1 fix(codex): skip native web search transcript mirroring (#85346) · openclaw/openclaw@c3531fc fix(gateway): harden launchd reload handoff race recovery (#84641) · openclaw/openclaw@fc7a531 fix: honor per-model provider transport overrides (#80488) fix(skills): type watcher mock calls in dedupe regression tests · openclaw/openclaw@bb73f0a fix(skills): dedupe shared-directory watchers across agent workspaces… · openclaw/openclaw@3e94290 fix(skills): document watcher edge cases, add teardown/rebuild tests,… · openclaw/openclaw@19ff77e fix(infra): allow macos browser open over ssh env (#85340) · openclaw/openclaw@47d66fe fix(update): preserve package service state during cutover (#83026) · openclaw/openclaw@a15797a fix(gateway): broadcast agent-run error payloads (#85355) · openclaw/openclaw@07e61fc
ci(release): harden node setup before pnpm cache · openclaw/openclaw@a26aba6
steipete · 2026-05-23 · via Recent Commits to openclaw:main

@@ -0,0 +1,131 @@

1+

import { spawnSync } from "node:child_process";

2+

import { chmodSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";

3+

import { tmpdir } from "node:os";

4+

import { join, resolve } from "node:path";

5+

import { describe, expect, it } from "vitest";

6+7+

const ensureNodeScript = resolve(".github/actions/setup-pnpm-store-cache/ensure-node.sh");

8+9+

function writeFakeNode(binDir: string, version: string) {

10+

mkdirSync(binDir, { recursive: true });

11+

const nodePath = join(binDir, "node");

12+

writeFileSync(

13+

nodePath,

14+

`#!/usr/bin/env bash

15+

if [[ "$1" == "-p" ]]; then

16+

echo "${version}"

17+

exit 0

18+

fi

19+

if [[ "$1" == "-v" ]]; then

20+

echo "v${version}"

21+

exit 0

22+

fi

23+

exit 0

24+

`,

25+

);

26+

chmodSync(nodePath, 0o755);

27+

return nodePath;

28+

}

29+30+

function runEnsureNode(root: string, requested: string, extraEnv: NodeJS.ProcessEnv = {}) {

31+

const githubPath = join(root, "github-path");

32+

const result = spawnSync(

33+

"bash",

34+

[

35+

"-c",

36+

[

37+

"set -e",

38+

`source "${ensureNodeScript}"`,

39+

`openclaw_ensure_node "${requested}"`,

40+

"command -v node",

41+

"node -p 'process.versions.node'",

42+

].join("; "),

43+

],

44+

{

45+

encoding: "utf8",

46+

env: {

47+

...process.env,

48+

GITHUB_PATH: githubPath,

49+

...extraEnv,

50+

},

51+

},

52+

);

53+

return result;

54+

}

55+56+

describe("setup-pnpm-store-cache ensure-node", () => {

57+

it("uses a matching active node", () => {

58+

const root = mkdtempSync(join(tmpdir(), "openclaw-ensure-node-"));

59+

try {

60+

const activeBin = join(root, "active", "bin");

61+

const activeNode = writeFakeNode(activeBin, "24.15.0");

62+

const result = runEnsureNode(root, "24.15.0", {

63+

PATH: `${activeBin}:${process.env.PATH ?? ""}`,

64+

RUNNER_TOOL_CACHE: join(root, "missing-toolcache"),

65+

});

66+67+

expect(result.status).toBe(0);

68+

expect(result.stdout).toContain(`Using active Node 24.15.0 at ${activeNode}`);

69+

expect(result.stdout.trim().endsWith("24.15.0")).toBe(true);

70+

} finally {

71+

rmSync(root, { recursive: true, force: true });

72+

}

73+

});

74+75+

it("repairs PATH from the toolcache when setup-node leaves an old node active", () => {

76+

const root = mkdtempSync(join(tmpdir(), "openclaw-ensure-node-"));

77+

try {

78+

const activeBin = join(root, "active", "bin");

79+

writeFakeNode(activeBin, "20.20.0");

80+

const toolcacheBin = join(root, "toolcache", "node", "24.15.0", "x64", "bin");

81+

const toolcacheNode = writeFakeNode(toolcacheBin, "24.15.0");

82+

const result = runEnsureNode(root, "24.15.0", {

83+

PATH: `${activeBin}:${process.env.PATH ?? ""}`,

84+

RUNNER_TOOL_CACHE: join(root, "toolcache"),

85+

});

86+87+

expect(result.status).toBe(0);

88+

expect(result.stdout).toContain(`Using Node 24.15.0 from ${toolcacheNode}`);

89+

expect(result.stdout).toContain(`${toolcacheNode}\n24.15.0`);

90+

} finally {

91+

rmSync(root, { recursive: true, force: true });

92+

}

93+

});

94+95+

it("accepts major wildcard requests when selecting a toolcache node", () => {

96+

const root = mkdtempSync(join(tmpdir(), "openclaw-ensure-node-"));

97+

try {

98+

const activeBin = join(root, "active", "bin");

99+

writeFakeNode(activeBin, "20.20.0");

100+

const toolcacheBin = join(root, "toolcache", "node", "24.15.0", "x64", "bin");

101+

writeFakeNode(toolcacheBin, "24.15.0");

102+

const result = runEnsureNode(root, "24.x", {

103+

PATH: `${activeBin}:${process.env.PATH ?? ""}`,

104+

RUNNER_TOOL_CACHE: join(root, "toolcache"),

105+

});

106+107+

expect(result.status).toBe(0);

108+

expect(result.stdout.trim().endsWith("24.15.0")).toBe(true);

109+

} finally {

110+

rmSync(root, { recursive: true, force: true });

111+

}

112+

});

113+114+

it("fails clearly when no matching node is available", () => {

115+

const root = mkdtempSync(join(tmpdir(), "openclaw-ensure-node-"));

116+

try {

117+

const activeBin = join(root, "active", "bin");

118+

writeFakeNode(activeBin, "20.20.0");

119+

const result = runEnsureNode(root, "99.99.99", {

120+

PATH: `${activeBin}:${process.env.PATH ?? ""}`,

121+

RUNNER_TOOL_CACHE: join(root, "toolcache"),

122+

});

123+124+

expect(result.status).toBe(1);

125+

expect(result.stdout).toContain("::error::Expected Node '99.99.99'");

126+

expect(result.stdout).toContain("active node is '20.20.0'");

127+

} finally {

128+

rmSync(root, { recursive: true, force: true });

129+

}

130+

});

131+

});