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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
IT之家
IT之家
Google DeepMind News
Google DeepMind News
罗磊的独立博客
爱范儿
爱范儿
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
U
Unit 42
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
B
Blog
博客园 - 叶小钗
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio 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(release): harden docker package build · openclaw/openc...
steipete · 2026-05-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -117,6 +117,7 @@ runs:

117117

if [ -n "${PNPM_CONFIG_MODULES_DIR:-}" ]; then

118118

rm -rf node_modules

119119

ln -s "$PNPM_CONFIG_MODULES_DIR" node_modules

120+

ln -sfn . "$PNPM_CONFIG_MODULES_DIR/node_modules"

120121

fi

121122
122123

- name: Save pnpm store cache

Original file line numberDiff line numberDiff line change

@@ -56,7 +56,9 @@ jobs:

5656

run: |

5757

set -euo pipefail

5858
59-

git fetch --no-tags --depth=50 origin "+refs/heads/main:refs/remotes/origin/main"

59+

if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then

60+

git fetch --no-tags --depth=50 origin "+refs/heads/main:refs/remotes/origin/main"

61+

fi

6062
6163

node_bin="$(dirname "$(node -p 'process.execPath')")"

6264

pnpm_bin="$(command -v pnpm)"

Original file line numberDiff line numberDiff line change

@@ -10,6 +10,14 @@ import { resolvePnpmRunner } from "./pnpm-runner.mjs";

1010

const nodeBin = process.execPath;

1111

const WINDOWS_BUILD_MAX_OLD_SPACE_MB = 4096;

1212

const BUILD_CACHE_VERSION = 2;

13+

const PNPM_STEP_NODE_FALLBACKS = new Map([

14+

["plugins:assets:build", ["scripts/bundled-plugin-assets.mjs", "--phase", "build"]],

15+

[

16+

"build:plugin-sdk:dts",

17+

["scripts/run-tsgo.mjs", "-p", "tsconfig.plugin-sdk.dts.json", "--declaration", "true"],

18+

],

19+

["plugins:assets:copy", ["scripts/bundled-plugin-assets.mjs", "--phase", "copy"]],

20+

]);

1321

export const BUILD_ALL_STEPS = [

1422

{ label: "plugins:assets:build", kind: "pnpm", pnpmArgs: ["plugins:assets:build"] },

1523

{ label: "tsdown", kind: "node", args: ["scripts/tsdown-build.mjs"] },

@@ -163,6 +171,18 @@ export function resolveBuildAllStep(step, params = {}) {

163171

const platform = params.platform ?? process.platform;

164172

const env = resolveStepEnv(step, params.env ?? process.env, platform);

165173

if (step.kind === "pnpm") {

174+

const nodeFallbackArgs =

175+

env.OPENCLAW_BUILD_ALL_NO_PNPM === "1" ? PNPM_STEP_NODE_FALLBACKS.get(step.label) : undefined;

176+

if (nodeFallbackArgs) {

177+

return {

178+

command: params.nodeExecPath ?? nodeBin,

179+

args: nodeFallbackArgs,

180+

options: {

181+

stdio: "inherit",

182+

env,

183+

},

184+

};

185+

}

166186

const runner = resolvePnpmRunner({

167187

pnpmArgs: step.pnpmArgs,

168188

nodeExecPath: params.nodeExecPath ?? nodeBin,

Original file line numberDiff line numberDiff line change

@@ -44,6 +44,7 @@ function run(command, args, cwd, options = {}) {

4444

const child = spawn(command, args, {

4545

cwd,

4646

stdio: ["ignore", "pipe", "pipe"],

47+

env: options.env ?? process.env,

4748

});

4849

let timedOut = false;

4950

const timeout =

@@ -131,9 +132,11 @@ async function main() {

131132
132133

if (!options.skipBuild) {

133134

console.error("==> Building OpenClaw package artifacts");

134-

await run("pnpm", ["build"], sourceDir);

135+

await run("node", ["scripts/build-all.mjs"], sourceDir, {

136+

env: { ...process.env, OPENCLAW_BUILD_ALL_NO_PNPM: "1" },

137+

});

135138

console.error("==> Building OpenClaw Control UI artifacts");

136-

await run("pnpm", ["ui:build"], sourceDir);

139+

await run("node", ["scripts/ui.js", "build"], sourceDir);

137140

}

138141
139142

console.error("==> Writing OpenClaw package inventory");

Original file line numberDiff line numberDiff line change

@@ -100,6 +100,24 @@ describe("resolveBuildAllStep", () => {

100100

});

101101

});

102102
103+

it("can route pnpm script steps through direct node entrypoints", () => {

104+

const step = getBuildAllStep("plugins:assets:build");

105+
106+

const result = resolveBuildAllStep(step, {

107+

nodeExecPath: "/custom/node",

108+

env: { OPENCLAW_BUILD_ALL_NO_PNPM: "1" },

109+

});

110+
111+

expect(result).toEqual({

112+

command: "/custom/node",

113+

args: ["scripts/bundled-plugin-assets.mjs", "--phase", "build"],

114+

options: {

115+

stdio: "inherit",

116+

env: { OPENCLAW_BUILD_ALL_NO_PNPM: "1" },

117+

},

118+

});

119+

});

120+
103121

it("adds heap headroom for plugin-sdk dts on Windows", () => {

104122

const step = getBuildAllStep("build:plugin-sdk:dts");

105123