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

推荐订阅源

H
Help Net Security
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
博客园_首页
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
B
Blog
D
DataBreaches.Net
腾讯CDC
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
月光博客
月光博客
V
V2EX
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
The Cloudflare Blog
博客园 - 叶小钗
Y
Y Combinator 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
test(plugins): exercise clawhub clawpack fixtures · openc...
vincentkoc · 2026-05-03 · via Recent Commits to openclaw:main

@@ -11,6 +11,15 @@ const JSZip = requireFromApp("jszip");

1111

const packageName = "@openclaw/kitchen-sink";

1212

const pluginId = "openclaw-kitchen-sink-fixture";

131314+

const buildClawPackSummary = ({ sha256hash, manifestSha256, size }) => ({

15+

available: true,

16+

specVersion: 1,

17+

format: "clawpack.zip",

18+

sha256: sha256hash,

19+

size,

20+

manifestSha256,

21+

});

22+1423

const profiles = {

1524

"kitchen-sink-plugin": {

1625

version: "0.1.3",

@@ -87,7 +96,8 @@ export default definePluginEntry({

8796

properties: {},

8897

},

8998

},

90-

packageDetail(sha256hash) {

99+

packageDetail(artifact) {

100+

const clawpack = buildClawPackSummary(artifact);

91101

const packageDetail = {

92102

package: {

93103

name: packageName,

@@ -121,6 +131,7 @@ export default definePluginEntry({

121131

hasProvenance: false,

122132

scanStatus: "passed",

123133

},

134+

clawpack,

124135

},

125136

};

126137

return {

@@ -136,10 +147,11 @@ export default definePluginEntry({

136147

createdAt: 0,

137148

changelog: "Fixture package for kitchen-sink plugin prerelease CI.",

138149

distTags: ["latest"],

139-

sha256hash,

150+

sha256hash: artifact.sha256hash,

140151

compatibility: packageDetail.package.compatibility,

141152

capabilities: packageDetail.package.capabilities,

142153

verification: packageDetail.package.verification,

154+

clawpack,

143155

},

144156

},

145157

betaStatus: 404,

@@ -191,11 +203,12 @@ export default definePluginEntry({

191203

properties: {},

192204

},

193205

},

194-

packageDetail(sha256hash) {

206+

packageDetail(artifact) {

195207

const compatibility = {

196208

pluginApiRange: ">=2026.4.26",

197209

minGatewayVersion: "2026.4.26",

198210

};

211+

const clawpack = buildClawPackSummary(artifact);

199212

return {

200213

packageDetail: {

201214

package: {

@@ -209,15 +222,17 @@ export default definePluginEntry({

209222

createdAt: 0,

210223

updatedAt: 0,

211224

compatibility,

225+

clawpack,

212226

},

213227

},

214228

versionDetail: {

215229

version: {

216230

version: this.version,

217231

createdAt: 0,

218232

changelog: "Kitchen-sink fixture package for Docker plugin E2E.",

219-

sha256hash,

233+

sha256hash: artifact.sha256hash,

220234

compatibility,

235+

clawpack,

221236

},

222237

},

223238

};

@@ -237,13 +252,17 @@ async function main() {

237252

date: new Date(0),

238253

});

239254

zip.file("package/index.js", fixture.indexJs, { date: new Date(0) });

240-

zip.file("package/openclaw.plugin.json", `${JSON.stringify(fixture.manifest, null, 2)}\n`, {

241-

date: new Date(0),

242-

});

255+

const manifestJson = `${JSON.stringify(fixture.manifest, null, 2)}\n`;

256+

zip.file("package/openclaw.plugin.json", manifestJson, { date: new Date(0) });

243257244258

const archive = await zip.generateAsync({ type: "nodebuffer", compression: "DEFLATE" });

245259

const sha256hash = crypto.createHash("sha256").update(archive).digest("hex");

246-

const { packageDetail, versionDetail, betaStatus } = fixture.packageDetail(sha256hash);

260+

const manifestSha256 = crypto.createHash("sha256").update(manifestJson).digest("hex");

261+

const { packageDetail, versionDetail, betaStatus } = fixture.packageDetail({

262+

sha256hash,

263+

manifestSha256,

264+

size: archive.length,

265+

});

247266248267

const json = (response, value, status = 200) => {

249268

response.writeHead(status, { "content-type": "application/json" });

@@ -283,6 +302,19 @@ async function main() {

283302

response.end(archive);

284303

return;

285304

}

305+

if (

306+

url.pathname ===

307+

`/api/v1/packages/${encodeURIComponent(packageName)}/versions/${fixture.version}/clawpack`

308+

) {

309+

response.writeHead(200, {

310+

"content-type": "application/zip",

311+

"content-length": String(archive.length),

312+

"X-ClawHub-ClawPack-Sha256": sha256hash,

313+

"X-ClawHub-ClawPack-Spec-Version": "1",

314+

});

315+

response.end(archive);

316+

return;

317+

}

286318

response.writeHead(404, { "content-type": "text/plain" });

287319

response.end(`not found: ${url.pathname}`);

288320

});