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

推荐订阅源

博客园 - 三生石上(FineUI控件)
D
Docker
GbyAI
GbyAI
宝玉的分享
宝玉的分享
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Vercel News
Vercel News
博客园_首页
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
S
SegmentFault 最新的问题
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
V
V2EX
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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(ci): merge nested shrinkwrap override pins · openclaw...
vincentkoc · 2026-05-28 · via Recent Commits to openclaw:main

@@ -4,6 +4,7 @@ import { parse } from "yaml";

44

import {

55

collectCurrentShrinkwrapOverrides,

66

collectPnpmLockViolations,

7+

mergeOverrides,

78

parsePnpmPackageKey,

89

readShrinkwrapOverrides,

910

} from "../scripts/generate-npm-shrinkwrap.mjs";

@@ -132,6 +133,82 @@ describe("package manager build policy", () => {

132133

});

133134

});

134135136+

it("merges exact current shrinkwrap pins with nested lock-derived pins", () => {

137+

expect(

138+

mergeOverrides(

139+

{ "@mistralai/mistralai": "2.2.1" },

140+

{ "@mistralai/mistralai": { ".": "2.2.1", zod: "4.4.3" } },

141+

{},

142+

),

143+

).toEqual({

144+

"@mistralai/mistralai": { ".": "2.2.1", zod: "4.4.3" },

145+

});

146+

});

147+148+

it("preserves npm alias pins when merging nested lock-derived pins", () => {

149+

expect(

150+

mergeOverrides(

151+

{ "node-domexception": "npm:@nolyfill/domexception@1.0.28" },

152+

{ "node-domexception": { ".": "1.0.28", child: "2.0.0" } },

153+

{},

154+

),

155+

).toEqual({

156+

"node-domexception": {

157+

".": "npm:@nolyfill/domexception@1.0.28",

158+

child: "2.0.0",

159+

},

160+

});

161+

});

162+163+

it("preserves later npm alias pins when nested pins are already merged", () => {

164+

expect(

165+

mergeOverrides(

166+

{ "node-domexception": { ".": "1.0.28", child: "2.0.0" } },

167+

{ "node-domexception": "npm:@nolyfill/domexception@1.0.28" },

168+

{},

169+

),

170+

).toEqual({

171+

"node-domexception": {

172+

".": "npm:@nolyfill/domexception@1.0.28",

173+

child: "2.0.0",

174+

},

175+

});

176+

});

177+178+

it("rejects non-exact root pins when merging nested pins", () => {

179+

expect(() =>

180+

mergeOverrides(

181+

{ "floating-package": "^1.0.0" },

182+

{ "floating-package": { ".": "~1.0.0", child: "2.0.0" } },

183+

{},

184+

),

185+

).toThrow(/conflicts with pnpm lock policy/u);

186+

expect(() =>

187+

mergeOverrides(

188+

{ "floating-package": { ".": "^1.0.0", child: "2.0.0" } },

189+

{ "floating-package": "~1.0.0" },

190+

{},

191+

),

192+

).toThrow(/conflicts with pnpm lock policy/u);

193+

});

194+195+

it("rejects distinct npm alias targets with matching versions", () => {

196+

expect(() =>

197+

mergeOverrides(

198+

{ "aliased-package": "npm:@safe/foo@1.0.0" },

199+

{ "aliased-package": { ".": "npm:@other/foo@1.0.0", child: "2.0.0" } },

200+

{},

201+

),

202+

).toThrow(/conflicts with pnpm lock policy/u);

203+

expect(() =>

204+

mergeOverrides(

205+

{ "aliased-package": { ".": "npm:@safe/foo@1.0.0", child: "2.0.0" } },

206+

{ "aliased-package": "npm:@other/foo@1.0.0" },

207+

{},

208+

),

209+

).toThrow(/conflicts with pnpm lock policy/u);

210+

});

211+135212

it("keeps npm shrinkwrap package versions inside the pnpm lock graph", () => {

136213

const pnpmLockPackages = collectPnpmLockPackages();

137214

const shrinkwrapPaths = [