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

推荐订阅源

WordPress大学
WordPress大学
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
G
Google Developers Blog
博客园_首页
有赞技术团队
有赞技术团队
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题

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
Allow pnpm source updates to build OpenClaw (#81294) · op...
fuller-stack · 2026-05-13 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

6969

- Agents: rewrite generic provider internal errors with support request IDs into user-friendly transient error copy. (#49401) Thanks @y471823206.

7070

- WhatsApp: finish handling pending debounced inbound messages before closing the socket. (#81246) Thanks @mcaxtr.

7171

- CLI/commitments: write `--json` output to stdout instead of diagnostic logs so automation can parse commitment list and dismiss results. (#81215) Thanks @giodl73-repo.

72+

- Update: allow pnpm GitHub-source OpenClaw updates to approve the OpenClaw package build, so source installs complete their prepare/prepack lifecycle. (#81294) Thanks @fuller-stack-dev.

7273
7374

### Changes

7475
Original file line numberDiff line numberDiff line change

@@ -570,6 +570,22 @@ describe("update global helpers", () => {

570570

"-g",

571571

"openclaw@latest",

572572

]);

573+

expect(globalInstallArgs("pnpm", "github:openclaw/openclaw#release/2026.5.12")).toEqual([

574+

"pnpm",

575+

"add",

576+

"-g",

577+

"--allow-build=openclaw",

578+

"github:openclaw/openclaw#release/2026.5.12",

579+

]);

580+

expect(

581+

globalInstallArgs("pnpm", "openclaw@git+https://github.com/openclaw/openclaw.git"),

582+

).toEqual([

583+

"pnpm",

584+

"add",

585+

"-g",

586+

"--allow-build=openclaw",

587+

"openclaw@git+https://github.com/openclaw/openclaw.git",

588+

]);

573589

expect(globalInstallArgs("bun", "openclaw@latest")).toEqual([

574590

"bun",

575591

"add",

@@ -599,6 +615,22 @@ describe("update global helpers", () => {

599615

"/opt/pnpm-global",

600616

"openclaw@latest",

601617

]);

618+

expect(

619+

globalInstallArgs(

620+

"pnpm",

621+

"github:openclaw/openclaw#release/2026.5.12",

622+

null,

623+

"/opt/pnpm-global",

624+

),

625+

).toEqual([

626+

"pnpm",

627+

"add",

628+

"-g",

629+

"--global-dir",

630+

"/opt/pnpm-global",

631+

"--allow-build=openclaw",

632+

"github:openclaw/openclaw#release/2026.5.12",

633+

]);

602634

});

603635
604636

it("builds npm staged install argv with an explicit prefix", () => {

Original file line numberDiff line numberDiff line change

@@ -46,6 +46,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = [

4646

"--omit=optional",

4747

...NPM_GLOBAL_INSTALL_QUIET_FLAGS,

4848

] as const;

49+

const PNPM_OPENCLAW_BUILD_ALLOWLIST_FLAG = `--allow-build=${PRIMARY_PACKAGE_NAME}`;

4950

const FIRST_PACKAGED_DIST_INVENTORY_VERSION = { major: 2026, minor: 4, patch: 15 };

5051

const OMITTED_PRIVATE_QA_BUNDLED_PLUGIN_ROOTS = new Set([

5152

"dist/extensions/qa-channel",

@@ -87,6 +88,21 @@ export function isExplicitPackageInstallSpec(value: string): boolean {

8788

);

8889

}

8990
91+

function stripPrimaryPackageAlias(spec: string): string {

92+

const normalized = normalizePackageTarget(spec);

93+

const prefix = `${PRIMARY_PACKAGE_NAME}@`;

94+

return normalized.startsWith(prefix) ? normalized.slice(prefix.length).trim() : normalized;

95+

}

96+
97+

function isPnpmOpenClawSourceInstallSpec(spec: string): boolean {

98+

const target = stripPrimaryPackageAlias(spec);

99+

return (

100+

/^github:/i.test(target) ||

101+

/^git\+(?:ssh|https|http|file):/i.test(target) ||

102+

/^git:/i.test(target)

103+

);

104+

}

105+
90106

export function resolveExpectedInstalledVersionFromSpec(

91107

packageName: string,

92108

spec: string,

@@ -715,6 +731,7 @@ export function globalInstallArgs(

715731

"add",

716732

"-g",

717733

...(installPrefix ? ["--global-dir", installPrefix] : []),

734+

...(isPnpmOpenClawSourceInstallSpec(spec) ? [PNPM_OPENCLAW_BUILD_ALLOWLIST_FLAG] : []),

718735

spec,

719736

];

720737

}