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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

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: tighten plugin update installer assertions · opencl...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -344,6 +344,20 @@ function clawHubInstallCall(index = 0): Record<string, unknown> | undefined {

344344

return calls[index]?.[0];

345345

}

346346347+

function marketplaceInstallCall(index = 0): Record<string, unknown> | undefined {

348+

const calls = installPluginFromMarketplaceMock.mock.calls as unknown as Array<

349+

[Record<string, unknown>]

350+

>;

351+

return calls[index]?.[0];

352+

}

353+354+

function gitInstallCall(index = 0): Record<string, unknown> | undefined {

355+

const calls = installPluginFromGitSpecMock.mock.calls as unknown as Array<

356+

[Record<string, unknown>]

357+

>;

358+

return calls[index]?.[0];

359+

}

360+347361

function npmViewCall(): [unknown, Record<string, unknown>] | undefined {

348362

const calls = runCommandWithTimeoutMock.mock.calls as unknown as Array<

349363

[unknown, Record<string, unknown>]

@@ -2267,13 +2281,10 @@ describe("updateNpmInstalledPlugins", () => {

2267228122682282

expect(installPluginFromClawHubMock).not.toHaveBeenCalled();

22692283

expect(result.changed).toBe(false);

2270-

expect(result.outcomes).toEqual([

2271-

expect.objectContaining({

2272-

pluginId: "whatsapp",

2273-

status: "skipped",

2274-

message: expect.stringContaining("bundled version 2026.4.20 is newer"),

2275-

}),

2276-

]);

2284+

expect(result.outcomes).toHaveLength(1);

2285+

expect(result.outcomes[0]?.pluginId).toBe("whatsapp");

2286+

expect(result.outcomes[0]?.status).toBe("skipped");

2287+

expect(result.outcomes[0]?.message).toContain("bundled version 2026.4.20 is newer");

22772288

expect(warnMessages).toEqual([expect.stringContaining("bundled version 2026.4.20 is newer")]);

22782289

});

22792290

@@ -2405,12 +2416,8 @@ describe("updateNpmInstalledPlugins", () => {

24052416

pluginIds: ["voice-call"],

24062417

});

240724182408-

expect(installPluginFromNpmSpecMock).toHaveBeenCalledWith(

2409-

expect.objectContaining({

2410-

spec: "@openclaw/voice-call",

2411-

expectedPluginId: "voice-call",

2412-

}),

2413-

);

2419+

expect(npmInstallCall()?.spec).toBe("@openclaw/voice-call");

2420+

expect(npmInstallCall()?.expectedPluginId).toBe("voice-call");

24142421

expect(result.config.plugins?.allow).toEqual(["@openclaw/voice-call"]);

24152422

expect(result.config.plugins?.deny).toEqual(["@openclaw/voice-call"]);

24162423

expect(result.config.plugins?.slots?.memory).toBe("@openclaw/voice-call");

@@ -2419,7 +2426,7 @@ describe("updateNpmInstalledPlugins", () => {

24192426

hooks: { allowPromptInjection: false },

24202427

});

24212428

expect(result.config.plugins?.entries?.["voice-call"]).toBeUndefined();

2422-

expect(result.config.plugins?.installs?.["@openclaw/voice-call"]).toMatchObject({

2429+

expectRecordFields(result.config.plugins?.installs?.["@openclaw/voice-call"], {

24232430

source: "npm",

24242431

spec: "@openclaw/voice-call",

24252432

installPath: "/tmp/openclaw-voice-call",

@@ -2454,7 +2461,7 @@ describe("updateNpmInstalledPlugins", () => {

24542461

});

2455246224562463

expect(result.config.plugins?.slots?.contextEngine).toBe("@openclaw/context-engine");

2457-

expect(result.config.plugins?.installs?.["@openclaw/context-engine"]).toMatchObject({

2464+

expectRecordFields(result.config.plugins?.installs?.["@openclaw/context-engine"], {

24582465

source: "npm",

24592466

spec: "@openclaw/context-engine",

24602467

installPath: "/tmp/openclaw-context-engine",

@@ -2486,15 +2493,11 @@ describe("updateNpmInstalledPlugins", () => {

24862493

dryRun: true,

24872494

});

248824952489-

expect(installPluginFromMarketplaceMock).toHaveBeenCalledWith(

2490-

expect.objectContaining({

2491-

marketplace: "vincentkoc/claude-marketplace",

2492-

plugin: "claude-bundle",

2493-

expectedPluginId: "claude-bundle",

2494-

dryRun: true,

2495-

timeoutMs: 1_800_000,

2496-

}),

2497-

);

2496+

expect(marketplaceInstallCall()?.marketplace).toBe("vincentkoc/claude-marketplace");

2497+

expect(marketplaceInstallCall()?.plugin).toBe("claude-bundle");

2498+

expect(marketplaceInstallCall()?.expectedPluginId).toBe("claude-bundle");

2499+

expect(marketplaceInstallCall()?.dryRun).toBe(true);

2500+

expect(marketplaceInstallCall()?.timeoutMs).toBe(1_800_000);

24982501

expect(result.outcomes).toEqual([

24992502

{

25002503

pluginId: "claude-bundle",

@@ -2530,7 +2533,7 @@ describe("updateNpmInstalledPlugins", () => {

25302533

});

2531253425322535

expect(result.changed).toBe(true);

2533-

expect(result.config.plugins?.installs?.["claude-bundle"]).toMatchObject({

2536+

expectRecordFields(result.config.plugins?.installs?.["claude-bundle"], {

25342537

source: "marketplace",

25352538

installPath: "/tmp/claude-bundle",

25362539

version: "1.3.0",

@@ -2565,15 +2568,11 @@ describe("updateNpmInstalledPlugins", () => {

25652568

pluginIds: ["demo"],

25662569

});

256725702568-

expect(installPluginFromGitSpecMock).toHaveBeenCalledWith(

2569-

expect.objectContaining({

2570-

spec: "git:github.com/acme/demo@main",

2571-

expectedPluginId: "demo",

2572-

mode: "update",

2573-

}),

2574-

);

2571+

expect(gitInstallCall()?.spec).toBe("git:github.com/acme/demo@main");

2572+

expect(gitInstallCall()?.expectedPluginId).toBe("demo");

2573+

expect(gitInstallCall()?.mode).toBe("update");

25752574

expect(result.changed).toBe(true);

2576-

expect(result.config.plugins?.installs?.demo).toMatchObject({

2575+

expectRecordFields(result.config.plugins?.installs?.demo, {

25772576

source: "git",

25782577

spec: "git:github.com/acme/demo@main",

25792578

installPath: "/tmp/demo",

@@ -2601,13 +2600,9 @@ describe("updateNpmInstalledPlugins", () => {

26012600

dangerouslyForceUnsafeInstall: true,

26022601

});

260326022604-

expect(installPluginFromNpmSpecMock).toHaveBeenCalledWith(

2605-

expect.objectContaining({

2606-

spec: "openclaw-codex-app-server@beta",

2607-

dangerouslyForceUnsafeInstall: true,

2608-

expectedPluginId: "openclaw-codex-app-server",

2609-

}),

2610-

);

2603+

expect(npmInstallCall()?.spec).toBe("openclaw-codex-app-server@beta");

2604+

expect(npmInstallCall()?.dangerouslyForceUnsafeInstall).toBe(true);

2605+

expect(npmInstallCall()?.expectedPluginId).toBe("openclaw-codex-app-server");

26112606

});

2612260726132608

it("reuses the recorded managed extensions root when updating external plugins", async () => {

@@ -2696,18 +2691,10 @@ describe("updateNpmInstalledPlugins", () => {

26962691

pluginIds: ["demo"],

26972692

});

269826932699-

expect(installPluginFromNpmSpecMock).toHaveBeenCalledWith(

2700-

expect.objectContaining({ extensionsDir }),

2701-

);

2702-

expect(installPluginFromClawHubMock).toHaveBeenCalledWith(

2703-

expect.objectContaining({ extensionsDir }),

2704-

);

2705-

expect(installPluginFromMarketplaceMock).toHaveBeenCalledWith(

2706-

expect.objectContaining({ extensionsDir }),

2707-

);

2708-

expect(installPluginFromGitSpecMock).toHaveBeenCalledWith(

2709-

expect.objectContaining({ extensionsDir }),

2710-

);

2694+

expect(npmInstallCall()?.extensionsDir).toBe(extensionsDir);

2695+

expect(clawHubInstallCall()?.extensionsDir).toBe(extensionsDir);

2696+

expect(marketplaceInstallCall()?.extensionsDir).toBe(extensionsDir);

2697+

expect(gitInstallCall()?.extensionsDir).toBe(extensionsDir);

27112698

});

27122699

});

27132700