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

推荐订阅源

D
DataBreaches.Net
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
腾讯CDC
博客园 - Franky
Engineering at Meta
Engineering at Meta
C
Check Point Blog
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学

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): quiet official npm install scan warnings · ...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -22,6 +22,7 @@ import {

2222

resolveMarketplaceInstallShortcut,

2323

} from "../plugins/marketplace.js";

2424

import {

25+

getOfficialExternalPluginCatalogEntryForPackage,

2526

getOfficialExternalPluginCatalogEntry,

2627

resolveOfficialExternalPluginId,

2728

resolveOfficialExternalPluginInstall,

@@ -42,6 +43,7 @@ import {

4243

resolveBundledInstallPlanBeforeNpm,

4344

resolveBundledInstallPlanForNpmFailure,

4445

resolveOfficialExternalInstallPlanBeforeNpm,

46+

resolveOfficialExternalNpmPackageTrust,

4547

} from "./plugin-install-plan.js";

4648

import {

4749

createHookPackInstallLogger,

@@ -62,6 +64,29 @@ function resolveInstallSafetyOverrides(overrides: InstallSafetyOverrides): Insta

6264

};

6365

}

646667+

function findTrustedOfficialExternalPackageInstall(packageName: string):

68+

| {

69+

pluginId: string;

70+

npmSpec?: string;

71+

expectedIntegrity?: string;

72+

}

73+

| undefined {

74+

const entry = getOfficialExternalPluginCatalogEntryForPackage(packageName);

75+

if (entry?.source !== "official") {

76+

return undefined;

77+

}

78+

const pluginId = resolveOfficialExternalPluginId(entry);

79+

if (!pluginId) {

80+

return undefined;

81+

}

82+

const install = resolveOfficialExternalPluginInstall(entry);

83+

return {

84+

pluginId,

85+

...(install?.npmSpec ? { npmSpec: install.npmSpec } : {}),

86+

...(install?.expectedIntegrity ? { expectedIntegrity: install.expectedIntegrity } : {}),

87+

};

88+

}

89+6590

function isRecord(value: unknown): value is Record<string, unknown> {

6691

return Boolean(value && typeof value === "object" && !Array.isArray(value));

6792

}

@@ -693,6 +718,10 @@ export async function runPluginInstallCommand(params: {

693718

runtime.error("unsupported npm: spec: missing package");

694719

return runtime.exit(1);

695720

}

721+

const officialNpmTrust = resolveOfficialExternalNpmPackageTrust({

722+

npmSpec: npmPrefixSpec,

723+

findOfficialExternalPackage: findTrustedOfficialExternalPackageInstall,

724+

});

696725

const npmPrefixResult = await tryInstallPluginOrHookPackFromNpmSpec({

697726

snapshot,

698727

installMode,

@@ -701,6 +730,15 @@ export async function runPluginInstallCommand(params: {

701730

safetyOverrides,

702731

allowBundledFallback: false,

703732

extensionsDir,

733+

...(officialNpmTrust

734+

? {

735+

expectedPluginId: officialNpmTrust.pluginId,

736+

...(officialNpmTrust.expectedIntegrity

737+

? { expectedIntegrity: officialNpmTrust.expectedIntegrity }

738+

: {}),

739+

trustedSourceLinkedOfficialInstall: true,

740+

}

741+

: {}),

704742

runtime,

705743

});

706744

if (!npmPrefixResult.ok) {

@@ -827,6 +865,10 @@ export async function runPluginInstallCommand(params: {

827865

return;

828866

}

829867868+

const officialNpmTrust = resolveOfficialExternalNpmPackageTrust({

869+

npmSpec: raw,

870+

findOfficialExternalPackage: findTrustedOfficialExternalPackageInstall,

871+

});

830872

const npmResult = await tryInstallPluginOrHookPackFromNpmSpec({

831873

snapshot,

832874

installMode,

@@ -835,6 +877,15 @@ export async function runPluginInstallCommand(params: {

835877

safetyOverrides,

836878

allowBundledFallback: true,

837879

extensionsDir,

880+

...(officialNpmTrust

881+

? {

882+

expectedPluginId: officialNpmTrust.pluginId,

883+

...(officialNpmTrust.expectedIntegrity

884+

? { expectedIntegrity: officialNpmTrust.expectedIntegrity }

885+

: {}),

886+

trustedSourceLinkedOfficialInstall: true,

887+

}

888+

: {}),

838889

runtime,

839890

});

840891

if (!npmResult.ok) {