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

推荐订阅源

雷峰网
雷峰网
G
Google Developers Blog
D
Docker
The GitHub Blog
The GitHub Blog
H
Help Net Security
WordPress大学
WordPress大学
博客园_首页
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
罗磊的独立博客
I
InfoQ
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
Jina AI
Jina AI
J
Java Code Geeks
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News

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(plugins): require npm package compatibility metadata ...
vincentkoc · 2026-05-16 · via Recent Commits to openclaw:main

@@ -85,6 +85,17 @@ describe("parsePluginReleaseArgs", () => {

8585

});

8686

});

878788+

function externalPluginContract(version: string) {

89+

return {

90+

compat: {

91+

pluginApi: `>=${version}`,

92+

},

93+

build: {

94+

openclawVersion: version,

95+

},

96+

};

97+

}

98+8899

describe("collectPublishablePluginPackageErrors", () => {

89100

it("accepts a valid publishable plugin package candidate", () => {

90101

expect(

@@ -100,6 +111,7 @@ describe("collectPublishablePluginPackageErrors", () => {

100111

},

101112

openclaw: {

102113

extensions: ["./index.ts"],

114+

...externalPluginContract("2026.3.15"),

103115

install: {

104116

npmSpec: "@openclaw/zalo",

105117

},

@@ -123,6 +135,7 @@ describe("collectPublishablePluginPackageErrors", () => {

123135

private: true,

124136

openclaw: {

125137

extensions: [""],

138+

...externalPluginContract("2026.3.15"),

126139

install: {

127140

npmSpec: " ",

128141

},

@@ -152,6 +165,7 @@ describe("collectPublishablePluginPackageErrors", () => {

152165

version: "2026.5.1-beta.1",

153166

openclaw: {

154167

extensions: ["./index.ts"],

168+

...externalPluginContract("2026.5.1-beta.1"),

155169

install: {

156170

npmSpec: "@openclaw/twitch",

157171

},

@@ -180,6 +194,7 @@ describe("collectPublishablePluginPackageErrors", () => {

180194

},

181195

openclaw: {

182196

extensions: ["./index.ts"],

197+

...externalPluginContract("2026.5.1-beta.1"),

183198

release: {

184199

publishToNpm: true,

185200

},

@@ -188,6 +203,35 @@ describe("collectPublishablePluginPackageErrors", () => {

188203

}),

189204

).toEqual(["openclaw.install.npmSpec must be a non-empty string for publishable plugins."]);

190205

});

206+207+

it("requires the external plugin package compatibility contract for npm publish", () => {

208+

expect(

209+

collectPublishablePluginPackageErrors({

210+

extensionId: "voice-call",

211+

packageDir: bundledPluginRoot("voice-call"),

212+

packageJson: {

213+

name: "@openclaw/voice-call",

214+

version: "2026.5.1-beta.1",

215+

repository: {

216+

type: "git",

217+

url: OPENCLAW_PLUGIN_NPM_REPOSITORY_URL,

218+

},

219+

openclaw: {

220+

extensions: ["./index.ts"],

221+

install: {

222+

npmSpec: "@openclaw/voice-call",

223+

},

224+

release: {

225+

publishToNpm: true,

226+

},

227+

},

228+

},

229+

}),

230+

).toEqual([

231+

"openclaw.compat.pluginApi is required for external code plugin packages.",

232+

"openclaw.build.openclawVersion is required for external code plugin packages.",

233+

]);

234+

});

191235

});

192236193237

describe("collectPublishablePluginPackages", () => {

@@ -224,6 +268,7 @@ describe("collectPublishablePluginPackages", () => {

224268

},

225269

openclaw: {

226270

extensions: ["./index.ts"],

271+

...externalPluginContract("2026.4.10"),

227272

install: {

228273

npmSpec: "@openclaw/demo-plugin",

229274

},

@@ -258,6 +303,7 @@ describe("collectPublishablePluginPackages", () => {

258303

},

259304

openclaw: {

260305

extensions: ["./index.ts"],

306+

...externalPluginContract("2026.4.10-beta.1"),

261307

install: {

262308

npmSpec: "@openclaw/demo-plugin",

263309

},

@@ -273,6 +319,7 @@ describe("collectPublishablePluginPackages", () => {

273319

private: true,

274320

openclaw: {

275321

extensions: ["./index.ts"],

322+

...externalPluginContract("2026.4.10-beta.1"),

276323

install: {

277324

npmSpec: "@openclaw/private-plugin",

278325

},

@@ -308,6 +355,7 @@ describe("collectPublishablePluginPackages", () => {

308355

private: true,

309356

openclaw: {

310357

extensions: ["./index.ts"],

358+

...externalPluginContract("2026.4.10-beta.1"),

311359

release: {

312360

publishToNpm: true,

313361

},

@@ -333,6 +381,7 @@ describe("collectPublishablePluginPackages", () => {

333381

},

334382

openclaw: {

335383

extensions: ["./index.ts"],

384+

...externalPluginContract("2026.4.10-alpha.1"),

336385

install: {

337386

npmSpec: "@openclaw/demo-plugin",

338387

},