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

推荐订阅源

U
Unit 42
罗磊的独立博客
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
A
About on SuperTechFans
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
IT之家
IT之家
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
T
Tailwind CSS Blog
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - 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
fix: respect plugin allowlist for bundled deps · openclaw...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -286,6 +286,72 @@ describe("doctor bundled plugin runtime deps", () => {

286286

expect(result.conflicts).toEqual([]);

287287

});

288288289+

it("does not report allowlist-excluded default-enabled bundled plugin deps", () => {

290+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

291+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

292+

writeJson(path.join(root, "dist", "extensions", "openai", "package.json"), {

293+

dependencies: {

294+

"openai-only": "1.0.0",

295+

},

296+

});

297+

writeJson(path.join(root, "dist", "extensions", "openai", "openclaw.plugin.json"), {

298+

id: "openai",

299+

enabledByDefault: true,

300+

configSchema: { type: "object" },

301+

});

302+303+

const result = scanBundledPluginRuntimeDeps({

304+

packageRoot: root,

305+

config: {

306+

plugins: { enabled: true, allow: ["browser"] },

307+

},

308+

});

309+310+

expect(result.missing).toEqual([]);

311+

expect(result.conflicts).toEqual([]);

312+

});

313+314+

it("lets explicit bundled channel enablement bypass runtime-deps allowlist gating", () => {

315+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

316+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

317+

writeBundledChannelPlugin(root, "telegram", { "telegram-only": "1.0.0" });

318+319+

const result = scanBundledPluginRuntimeDeps({

320+

packageRoot: root,

321+

config: {

322+

plugins: { enabled: true, allow: ["browser"] },

323+

channels: {

324+

telegram: { enabled: true },

325+

},

326+

},

327+

});

328+329+

expect(result.missing.map((dep) => `${dep.name}@${dep.version}`)).toEqual([

330+

"telegram-only@1.0.0",

331+

]);

332+

expect(result.conflicts).toEqual([]);

333+

});

334+335+

it("does not let doctor channel recovery bypass restrictive plugin allowlists", () => {

336+

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

337+

writeJson(path.join(root, "package.json"), { name: "openclaw" });

338+

writeBundledChannelPlugin(root, "telegram", { "telegram-only": "1.0.0" });

339+340+

const result = scanBundledPluginRuntimeDeps({

341+

packageRoot: root,

342+

includeConfiguredChannels: true,

343+

config: {

344+

plugins: { enabled: true, allow: ["browser"] },

345+

channels: {

346+

telegram: { botToken: "123:abc" },

347+

},

348+

},

349+

});

350+351+

expect(result.missing).toEqual([]);

352+

expect(result.conflicts).toEqual([]);

353+

});

354+289355

it("repairs missing deps during non-interactive doctor", async () => {

290356

const root = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-doctor-bundled-"));

291357

writeJson(path.join(root, "package.json"), { name: "openclaw" });