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

推荐订阅源

人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
月光博客
月光博客
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
小众软件
小众软件
量子位
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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
perf: shrink Docker dependency build contexts · openclaw/...
steipete · 2026-04-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -29,9 +29,9 @@ ARG OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST="sha256:e8e2e91b1378f83c5b2dd15f0247f3411

2929

FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS ext-deps

3030

ARG OPENCLAW_EXTENSIONS

3131

ARG OPENCLAW_BUNDLED_PLUGIN_DIR

32-

COPY ${OPENCLAW_BUNDLED_PLUGIN_DIR} /tmp/${OPENCLAW_BUNDLED_PLUGIN_DIR}

3332

# Copy package.json for opted-in extensions so pnpm resolves their deps.

34-

RUN mkdir -p /out && \

33+

RUN --mount=type=bind,source=${OPENCLAW_BUNDLED_PLUGIN_DIR},target=/tmp/${OPENCLAW_BUNDLED_PLUGIN_DIR},readonly \

34+

mkdir -p /out && \

3535

for ext in $OPENCLAW_EXTENSIONS; do \

3636

if [ -f "/tmp/${OPENCLAW_BUNDLED_PLUGIN_DIR}/$ext/package.json" ]; then \

3737

mkdir -p "/out/$ext" && \

Original file line numberDiff line numberDiff line change

@@ -25,9 +25,15 @@ FROM e2e-runner AS deps

2525
2626

COPY --chown=appuser:appuser package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./

2727

COPY --chown=appuser:appuser ui/package.json ./ui/package.json

28-

COPY --chown=appuser:appuser extensions ./extensions

2928

COPY --chown=appuser:appuser patches ./patches

3029

COPY --chown=appuser:appuser scripts/postinstall-bundled-plugins.mjs scripts/preinstall-package-manager-warning.mjs scripts/npm-runner.mjs scripts/windows-cmd-helpers.mjs ./scripts/

30+

RUN --mount=type=bind,source=extensions,target=/tmp/extensions,readonly \

31+

find /tmp/extensions -mindepth 2 -maxdepth 2 -name package.json -print | \

32+

while IFS= read -r manifest; do \

33+

dest="${manifest#/tmp/}"; \

34+

mkdir -p "$(dirname "$dest")"; \

35+

cp "$manifest" "$dest"; \

36+

done

3137
3238

RUN --mount=type=cache,id=openclaw-pnpm-store,target=/home/appuser/.local/share/pnpm/store,sharing=locked \

3339

pnpm install --frozen-lockfile

@@ -42,7 +48,7 @@ COPY --chown=appuser:appuser docs ./docs

4248

COPY --chown=appuser:appuser packages ./packages

4349

COPY --chown=appuser:appuser skills ./skills

4450

COPY --chown=appuser:appuser ui ./ui

45-

COPY --chown=appuser:appuser extensions ./extensions

51+

COPY --link --chown=appuser:appuser extensions ./extensions

4652

COPY --chown=appuser:appuser vendor/a2ui/renderers/lit ./vendor/a2ui/renderers/lit

4753

COPY --chown=appuser:appuser apps/shared/OpenClawKit/Sources/OpenClawKit/Resources ./apps/shared/OpenClawKit/Sources/OpenClawKit/Resources

4854

COPY --chown=appuser:appuser apps/shared/OpenClawKit/Tools/CanvasA2UI ./apps/shared/OpenClawKit/Tools/CanvasA2UI

Original file line numberDiff line numberDiff line change

@@ -77,6 +77,7 @@ vi.mock("./groups.js", () => ({

7777

buildDirectChatContext: vi.fn().mockReturnValue(""),

7878

buildGroupIntro: vi.fn().mockReturnValue(""),

7979

buildGroupChatContext: vi.fn().mockReturnValue(""),

80+

buildDirectChatContext: vi.fn().mockReturnValue(""),

8081

}));

8182
8283

vi.mock("./inbound-meta.js", () => ({

Original file line numberDiff line numberDiff line change

@@ -108,7 +108,9 @@ describe("docker build cache layout", () => {

108108

expectPatternBeforeInstall(

109109

/^COPY(?:\s+--chown=\S+)?\s+ui\/package\.json \.\/ui\/package\.json$/m,

110110

);

111-

expectPatternBeforeInstall(/^COPY(?:\s+--chown=\S+)?\s+extensions \.\/extensions$/m);

111+

expectPatternBeforeInstall(

112+

/^RUN --mount=type=bind,source=extensions,target=\/tmp\/extensions,readonly\s+\\$/m,

113+

);

112114

expectPatternBeforeInstall(/^COPY(?:\s+--chown=\S+)?\s+patches \.\/patches$/m);

113115

expectPatternBeforeInstall(

114116

/^COPY(?:\s+--chown=\S+)?\s+scripts\/postinstall-bundled-plugins\.mjs scripts\/preinstall-package-manager-warning\.mjs scripts\/npm-runner\.mjs scripts\/windows-cmd-helpers\.mjs \.\/scripts\/$/m,

@@ -120,6 +122,9 @@ describe("docker build cache layout", () => {

120122

expectPatternAfterInstall(/^COPY(?:\s+--chown=\S+)?\s+test \.\/test$/m);

121123

expectPatternAfterInstall(/^COPY(?:\s+--chown=\S+)?\s+scripts \.\/scripts$/m);

122124

expectPatternAfterInstall(/^COPY(?:\s+--chown=\S+)?\s+ui \.\/ui$/m);

125+

expectPatternAfterInstall(

126+

/^COPY(?:\s+--link)?(?:\s+--chown=\S+)?\s+extensions \.\/extensions$/m,

127+

);

123128

});

124129
125130

it("copies manifests before install in the qr-import image", async () => {

Original file line numberDiff line numberDiff line change

@@ -155,6 +155,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {

155155

configs: ["test/vitest/vitest.gateway-server.config.ts"],

156156

runner: "blacksmith-4vcpu-ubuntu-2404",

157157

requiresDist: false,

158+

runner: "blacksmith-4vcpu-ubuntu-2404",

158159

});

159160

expect(commandsShard).toEqual({

160161

checkName: "checks-node-agentic-commands",