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

推荐订阅源

G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
F
Fortinet All Blogs
H
Help Net Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
MyScale Blog
MyScale Blog
B
Blog
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
IT之家
IT之家
The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
博客园_首页
L
LangChain Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky

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): trust official externalized npm installs · ...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -2079,6 +2079,53 @@ describe("syncPluginsForUpdateChannel", () => {

20792079

});

20802080

});

208120812082+

it("marks official externalized bundled npm installs as trusted", async () => {

2083+

resolveBundledPluginSourcesMock.mockReturnValue(new Map());

2084+

installPluginFromNpmSpecMock.mockResolvedValue(

2085+

createSuccessfulNpmUpdateResult({

2086+

pluginId: "voice-call",

2087+

targetDir: "/tmp/openclaw-plugins/voice-call",

2088+

version: "0.0.2-beta.1",

2089+

}),

2090+

);

2091+2092+

await syncPluginsForUpdateChannel({

2093+

channel: "stable",

2094+

externalizedBundledPluginBridges: [

2095+

{

2096+

bundledPluginId: "voice-call",

2097+

npmSpec: "@openclaw/voice-call",

2098+

channelIds: ["voice-call"],

2099+

},

2100+

],

2101+

config: {

2102+

channels: {

2103+

"voice-call": {

2104+

enabled: true,

2105+

},

2106+

},

2107+

plugins: {

2108+

load: { paths: [appBundledPluginRoot("voice-call")] },

2109+

installs: {

2110+

"voice-call": {

2111+

source: "path",

2112+

sourcePath: appBundledPluginRoot("voice-call"),

2113+

installPath: appBundledPluginRoot("voice-call"),

2114+

},

2115+

},

2116+

},

2117+

},

2118+

});

2119+2120+

expect(installPluginFromNpmSpecMock).toHaveBeenCalledWith(

2121+

expect.objectContaining({

2122+

spec: "@openclaw/voice-call",

2123+

expectedPluginId: "voice-call",

2124+

trustedSourceLinkedOfficialInstall: true,

2125+

}),

2126+

);

2127+

});

2128+20822129

it("installs a ClawHub-preferred externalized bundled plugin", async () => {

20832130

resolveBundledPluginSourcesMock.mockReturnValue(new Map());

20842131

installPluginFromClawHubMock.mockResolvedValue(

@@ -2229,6 +2276,60 @@ describe("syncPluginsForUpdateChannel", () => {

22292276

});

22302277

});

223122782279+

it("marks official externalized ClawHub-to-npm fallbacks as trusted", async () => {

2280+

resolveBundledPluginSourcesMock.mockReturnValue(new Map());

2281+

installPluginFromClawHubMock.mockResolvedValue({

2282+

ok: false,

2283+

code: "package_not_found",

2284+

error: "Package not found on ClawHub.",

2285+

});

2286+

installPluginFromNpmSpecMock.mockResolvedValue(

2287+

createSuccessfulNpmUpdateResult({

2288+

pluginId: "voice-call",

2289+

targetDir: "/tmp/openclaw-plugins/voice-call",

2290+

version: "0.0.2-beta.1",

2291+

}),

2292+

);

2293+2294+

await syncPluginsForUpdateChannel({

2295+

channel: "stable",

2296+

externalizedBundledPluginBridges: [

2297+

{

2298+

bundledPluginId: "voice-call",

2299+

preferredSource: "clawhub",

2300+

clawhubSpec: "clawhub:@openclaw/voice-call",

2301+

npmSpec: "@openclaw/voice-call",

2302+

channelIds: ["voice-call"],

2303+

},

2304+

],

2305+

config: {

2306+

channels: {

2307+

"voice-call": {

2308+

enabled: true,

2309+

},

2310+

},

2311+

plugins: {

2312+

load: { paths: [appBundledPluginRoot("voice-call")] },

2313+

installs: {

2314+

"voice-call": {

2315+

source: "path",

2316+

sourcePath: appBundledPluginRoot("voice-call"),

2317+

installPath: appBundledPluginRoot("voice-call"),

2318+

},

2319+

},

2320+

},

2321+

},

2322+

});

2323+2324+

expect(installPluginFromNpmSpecMock).toHaveBeenCalledWith(

2325+

expect.objectContaining({

2326+

spec: "@openclaw/voice-call",

2327+

expectedPluginId: "voice-call",

2328+

trustedSourceLinkedOfficialInstall: true,

2329+

}),

2330+

);

2331+

});

2332+22322333

it("fails closed without npm fallback when ClawHub returns integrity drift", async () => {

22332334

resolveBundledPluginSourcesMock.mockReturnValue(new Map());

22342335

installPluginFromClawHubMock.mockResolvedValue({