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

推荐订阅源

L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
量子位
V
V2EX
S
SegmentFault 最新的问题
月光博客
月光博客
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
博客园_首页
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
Y
Y Combinator Blog
The Cloudflare Blog
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
B
Blog
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed

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: align postpublish verification with external plugins...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -2,24 +2,16 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";

22

import { tmpdir } from "node:os";

33

import { dirname, join } from "node:path";

44

import { describe, expect, it } from "vitest";

5-

import { listBundledPluginPackArtifacts } from "../scripts/lib/bundled-plugin-build-entries.mjs";

65

import {

76

buildPublishedInstallCommandArgs,

87

buildPublishedInstallScenarios,

8+

collectInstalledBundledRuntimeSidecarPaths,

99

collectInstalledContextEngineRuntimeErrors,

1010

collectInstalledRootDependencyManifestErrors,

1111

collectInstalledPackageErrors,

1212

normalizeInstalledBinaryVersion,

1313

resolveInstalledBinaryPath,

1414

} from "../scripts/openclaw-npm-postpublish-verify.ts";

15-

import { BUNDLED_RUNTIME_SIDECAR_PATHS } from "../src/plugins/runtime-sidecar-paths.ts";

16-17-

const PUBLISHED_BUNDLED_RUNTIME_SIDECAR_PATHS = BUNDLED_RUNTIME_SIDECAR_PATHS.filter(

18-

(relativePath) => listBundledPluginPackArtifacts().includes(relativePath),

19-

);

20-

const REQUIRED_INSTALLED_RUNTIME_SIDECAR_PATHS = [

21-

...PUBLISHED_BUNDLED_RUNTIME_SIDECAR_PATHS,

22-

] as const;

23152416

describe("buildPublishedInstallScenarios", () => {

2517

it("uses a single fresh scenario for plain stable releases", () => {

@@ -66,7 +58,11 @@ describe("buildPublishedInstallCommandArgs", () => {

6658

});

67596860

describe("collectInstalledPackageErrors", () => {

69-

it("flags version mismatches and missing runtime sidecars", () => {

61+

function makeInstalledPackageRoot(): string {

62+

return mkdtempSync(join(tmpdir(), "openclaw-postpublish-package-"));

63+

}

64+65+

it("flags version mismatches", () => {

7066

const errors = collectInstalledPackageErrors({

7167

expectedVersion: "2026.3.23-2",

7268

installedVersion: "2026.3.23",

@@ -76,17 +72,35 @@ describe("collectInstalledPackageErrors", () => {

7672

expect(errors[0]).toBe(

7773

"installed package version mismatch: expected 2026.3.23-2, found 2026.3.23.",

7874

);

79-

expect(errors).toEqual(

80-

expect.arrayContaining(

81-

REQUIRED_INSTALLED_RUNTIME_SIDECAR_PATHS.map(

82-

(relativePath) =>

83-

`installed package is missing required bundled runtime sidecar: ${relativePath}`,

84-

),

85-

),

86-

);

87-

expect(errors.length).toBeGreaterThanOrEqual(

88-

1 + REQUIRED_INSTALLED_RUNTIME_SIDECAR_PATHS.length,

89-

);

75+

});

76+77+

it("requires runtime sidecars for bundled extensions included in the package", () => {

78+

const packageRoot = makeInstalledPackageRoot();

79+80+

try {

81+

writeFileSync(join(packageRoot, "package.json"), '{"version":"2026.3.23"}\n', "utf8");

82+

mkdirSync(join(packageRoot, "dist", "extensions", "slack"), { recursive: true });

83+

writeFileSync(

84+

join(packageRoot, "dist", "extensions", "slack", "package.json"),

85+

"{}\n",

86+

"utf8",

87+

);

88+89+

expect(collectInstalledBundledRuntimeSidecarPaths(packageRoot)).toContain(

90+

"dist/extensions/slack/runtime-api.js",

91+

);

92+

expect(

93+

collectInstalledPackageErrors({

94+

expectedVersion: "2026.3.23",

95+

installedVersion: "2026.3.23",

96+

packageRoot,

97+

}),

98+

).toContain(

99+

"installed package is missing required bundled runtime sidecar: dist/extensions/slack/runtime-api.js",

100+

);

101+

} finally {

102+

rmSync(packageRoot, { recursive: true, force: true });

103+

}

90104

});

91105

});

92106

@@ -212,6 +226,27 @@ describe("collectInstalledRootDependencyManifestErrors", () => {

212226

}

213227

});

214228229+

it("accepts optional or externalized runtime imports", () => {

230+

const packageRoot = makeInstalledPackageRoot();

231+232+

try {

233+

writePackageFile(packageRoot, "package.json", {

234+

version: "2026.4.22",

235+

dependencies: {},

236+

});

237+

mkdirSync(join(packageRoot, "dist"), { recursive: true });

238+

writeFileSync(

239+

join(packageRoot, "dist", "optional-runtime.js"),

240+

'await import("@lancedb/lancedb");\n',

241+

"utf8",

242+

);

243+244+

expect(collectInstalledRootDependencyManifestErrors(packageRoot)).toEqual([]);

245+

} finally {

246+

rmSync(packageRoot, { recursive: true, force: true });

247+

}

248+

});

249+215250

it("flags undeclared imports from mjs and cjs root dist files", () => {

216251

const packageRoot = makeInstalledPackageRoot();

217252

@@ -318,12 +353,12 @@ describe("collectInstalledRootDependencyManifestErrors", () => {

318353

mkdirSync(join(packageRoot, "dist"), { recursive: true });

319354

writeFileSync(

320355

join(packageRoot, "dist", "oversized.js"),

321-

"x".repeat(2 * 1024 * 1024 + 1),

356+

"x".repeat(4 * 1024 * 1024 + 1),

322357

"utf8",

323358

);

324359325360

expect(collectInstalledRootDependencyManifestErrors(packageRoot)).toEqual([

326-

"installed package root dist file 'oversized.js' is invalid or exceeds 2097152 bytes.",

361+

"installed package root dist file 'oversized.js' is invalid or exceeds 4194304 bytes.",

327362

]);

328363

} finally {

329364

rmSync(packageRoot, { recursive: true, force: true });