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

推荐订阅源

Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
L
LangChain Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
D
DataBreaches.Net
P
Proofpoint News Feed
小众软件
小众软件
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
雷峰网
雷峰网
G
Google Developers 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: clarify plugin registry assertions · openclaw/openc...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

@@ -455,21 +455,17 @@ describe("loadPluginManifestRegistry", () => {

455455

config: { plugins: { entries: { "external-chat": { enabled: false } } } },

456456

candidates: [candidate],

457457

});

458-

expect(

459-

disabledRegistry.diagnostics.some((diagnostic) =>

460-

diagnostic.message.includes("without channelConfigs metadata"),

461-

),

462-

).toBe(false);

458+

expect(disabledRegistry.diagnostics.map((diagnostic) => diagnostic.message)).not.toEqual(

459+

expect.arrayContaining([expect.stringContaining("without channelConfigs metadata")]),

460+

);

463461464462

const allowlistRegistry = loadPluginManifestRegistry({

465463

config: { plugins: { allow: ["other-plugin"] } },

466464

candidates: [candidate],

467465

});

468-

expect(

469-

allowlistRegistry.diagnostics.some((diagnostic) =>

470-

diagnostic.message.includes("without channelConfigs metadata"),

471-

),

472-

).toBe(false);

466+

expect(allowlistRegistry.diagnostics.map((diagnostic) => diagnostic.message)).not.toEqual(

467+

expect.arrayContaining([expect.stringContaining("without channelConfigs metadata")]),

468+

);

473469

});

474470475471

it("suppresses duplicate warnings for explicit installed globals overriding bundled plugins", () => {

@@ -1216,11 +1212,9 @@ describe("loadPluginManifestRegistry", () => {

12161212

type: "object",

12171213

additionalProperties: false,

12181214

});

1219-

expect(

1220-

registry.diagnostics.some((diagnostic) =>

1221-

diagnostic.message.includes("without channelConfigs metadata"),

1222-

),

1223-

).toBe(false);

1215+

expect(registry.diagnostics.map((diagnostic) => diagnostic.message)).not.toEqual(

1216+

expect.arrayContaining([expect.stringContaining("without channelConfigs metadata")]),

1217+

);

12241218

});

1225121912261220

it("hydrates supplemental official external catalog contracts for lagging npm manifests", () => {

@@ -1249,11 +1243,9 @@ describe("loadPluginManifestRegistry", () => {

12491243

}),

12501244

}),

12511245

);

1252-

expect(

1253-

registry.diagnostics.some((diagnostic) =>

1254-

diagnostic.message.includes("without channelConfigs metadata"),

1255-

),

1256-

).toBe(false);

1246+

expect(registry.diagnostics.map((diagnostic) => diagnostic.message)).not.toEqual(

1247+

expect.arrayContaining([expect.stringContaining("without channelConfigs metadata")]),

1248+

);

12571249

});

1258125012591251

it("fills missing official external catalog descriptors for partial npm channel configs", () => {

@@ -1888,7 +1880,7 @@ describe("loadPluginManifestRegistry", () => {

18881880

expect(registry.plugins).toEqual([]);

18891881

expectRegistryDiagnosticContains(registry, expectedMessage);

18901882

if (expectWarn) {

1891-

expect(registry.diagnostics.some((diag) => diag.level === "warn")).toBe(true);

1883+

expect(registry.diagnostics.map((diag) => diag.level)).toContain("warn");

18921884

}

18931885

});

18941886

@@ -1920,11 +1912,9 @@ describe("loadPluginManifestRegistry", () => {

19201912

});

1921191319221914

expect(registry.plugins.map((plugin) => plugin.id)).toEqual(["codex"]);

1923-

expect(

1924-

registry.diagnostics.some((diag) =>

1925-

diag.message.includes("openclaw.install.minHostVersion must use"),

1926-

),

1927-

).toBe(false);

1915+

expect(registry.diagnostics.map((diag) => diag.message)).not.toEqual(

1916+

expect.arrayContaining([expect.stringContaining("openclaw.install.minHostVersion must use")]),

1917+

);

19281918

});

1929191919301920

it("does not runtime-gate bundled source plugins by install minHostVersion", () => {

@@ -1949,7 +1939,7 @@ describe("loadPluginManifestRegistry", () => {

19491939

env: { OPENCLAW_VERSION: "2026.4.30" } as NodeJS.ProcessEnv,

19501940

});

195119411952-

expect(registry.plugins.some((plugin) => plugin.id === "codex")).toBe(true);

1942+

expect(registry.plugins.map((plugin) => plugin.id)).toContain("codex");

19531943

expect(registry.diagnostics.map((diag) => diag.message)).not.toEqual(

19541944

expect.arrayContaining([expect.stringContaining("requires OpenClaw")]),

19551945

);

@@ -2251,7 +2241,7 @@ describe("loadPluginManifestRegistry", () => {

22512241

rootDir: fixture.rootDir,

22522242

origin: "bundled",

22532243

});

2254-

expect(registry.plugins.some((entry) => entry.id === "bundled-hardlink")).toBe(true);

2244+

expect(registry.plugins.map((entry) => entry.id)).toContain("bundled-hardlink");

22552245

expect(hasUnsafeManifestDiagnostic(registry)).toBe(false);

22562246

});

22572247

@@ -2338,12 +2328,12 @@ describe("loadPluginManifestRegistry", () => {

23382328

});

2339232923402330

expect(olderHost.plugins).toEqual([]);

2341-

expect(

2342-

olderHost.diagnostics.some((diag) => diag.message.includes("this host is 2026.3.21")),

2343-

).toBe(true);

2344-

expect(newerHost.plugins.some((plugin) => plugin.id === "synology-chat")).toBe(true);

2345-

expect(

2346-

newerHost.diagnostics.some((diag) => diag.message.includes("this host is 2026.3.21")),

2347-

).toBe(false);

2331+

expect(olderHost.diagnostics.map((diag) => diag.message)).toEqual(

2332+

expect.arrayContaining([expect.stringContaining("this host is 2026.3.21")]),

2333+

);

2334+

expect(newerHost.plugins.map((plugin) => plugin.id)).toContain("synology-chat");

2335+

expect(newerHost.diagnostics.map((diag) => diag.message)).not.toEqual(

2336+

expect.arrayContaining([expect.stringContaining("this host is 2026.3.21")]),

2337+

);

23482338

});

23492339

});