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

推荐订阅源

V
V2EX
V
Vulnerabilities – Threatpost
MongoDB | Blog
MongoDB | Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
Know Your Adversary
Know Your Adversary
aimingoo的专栏
aimingoo的专栏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
A
Arctic Wolf
L
LangChain Blog
L
LINUX DO - 热门话题
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
爱范儿
爱范儿
P
Palo Alto Networks Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
G
GRAHAM CLULEY
S
Securelist
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Cisco Talos Blog
Cisco Talos Blog
Security Latest
Security Latest
Martin Fowler
Martin Fowler
AWS News Blog
AWS News Blog
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
酷 壳 – CoolShell
酷 壳 – CoolShell
Recorded Future
Recorded Future
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
V2EX - 技术
V2EX - 技术
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
L
LINUX DO - 最新话题
博客园 - Franky
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
W
WeLiveSecurity
Cyberwarzone
Cyberwarzone
The Hacker News
The Hacker News
A
About on SuperTechFans

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
perf(test): trim bundled runtime deps imports · openclaw/openclaw@c7aaa40
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -29,8 +29,11 @@ import {

2929

type BundledRuntimeDepsPackageManager,

3030

type BundledRuntimeDepsPackageManagerRunner,

3131

} from "./bundled-runtime-deps-package-manager.js";

32-

import { normalizePluginsConfig } from "./config-state.js";

33-

import { passesManifestOwnerBasePolicy } from "./manifest-owner-policy.js";

32+

import {

33+

normalizePluginsConfigWithResolver,

34+

type NormalizedPluginsConfig,

35+

type NormalizePluginId,

36+

} from "./config-normalization-shared.js";

3437

import { satisfies, validSemver } from "./semver.runtime.js";

35383639

export {

@@ -832,6 +835,9 @@ function replaceNodeModulesDir(targetDir: string, sourceDir: string): void {

832835

type BundledPluginRuntimeDepsManifest = {

833836

channels: string[];

834837

enabledByDefault: boolean;

838+

id?: string;

839+

legacyPluginIds: string[];

840+

providers: string[];

835841

};

836842837843

type BundledPluginRuntimeDepsManifestCache = Map<string, BundledPluginRuntimeDepsManifest>;

@@ -846,36 +852,135 @@ function readBundledPluginRuntimeDepsManifest(

846852

}

847853

const manifest = readJsonObject(path.join(pluginDir, "openclaw.plugin.json"));

848854

const channels = manifest?.channels;

855+

const legacyPluginIds = manifest?.legacyPluginIds;

856+

const providers = manifest?.providers;

849857

const runtimeDepsManifest = {

850858

channels: Array.isArray(channels)

851859

? channels.filter((entry): entry is string => typeof entry === "string" && entry !== "")

852860

: [],

853861

enabledByDefault: manifest?.enabledByDefault === true,

862+

...(typeof manifest?.id === "string" && manifest.id.trim() ? { id: manifest.id } : {}),

863+

legacyPluginIds: Array.isArray(legacyPluginIds)

864+

? legacyPluginIds.filter(

865+

(entry): entry is string => typeof entry === "string" && entry !== "",

866+

)

867+

: [],

868+

providers: Array.isArray(providers)

869+

? providers.filter((entry): entry is string => typeof entry === "string" && entry !== "")

870+

: [],

854871

};

855872

cache?.set(pluginDir, runtimeDepsManifest);

856873

return runtimeDepsManifest;

857874

}

858875876+

const BUILT_IN_RUNTIME_DEPS_PLUGIN_ALIAS_FALLBACKS: ReadonlyArray<

877+

readonly [alias: string, pluginId: string]

878+

> = [

879+

["openai-codex", "openai"],

880+

["google-gemini-cli", "google"],

881+

["minimax-portal", "minimax"],

882+

["minimax-portal-auth", "minimax"],

883+

] as const;

884+885+

function addBundledRuntimeDepsPluginAlias(

886+

lookup: Map<string, string>,

887+

alias: string | undefined,

888+

pluginId: string,

889+

): void {

890+

const normalizedAlias = normalizeOptionalLowercaseString(alias);

891+

if (normalizedAlias) {

892+

lookup.set(normalizedAlias, pluginId);

893+

}

894+

}

895+896+

function createBundledRuntimeDepsPluginIdNormalizer(params: {

897+

extensionsDir: string;

898+

manifestCache: BundledPluginRuntimeDepsManifestCache;

899+

}): NormalizePluginId {

900+

const lookup = new Map<string, string>();

901+

for (const [alias, pluginId] of BUILT_IN_RUNTIME_DEPS_PLUGIN_ALIAS_FALLBACKS) {

902+

lookup.set(alias, pluginId);

903+

lookup.set(pluginId, pluginId);

904+

}

905+

if (!fs.existsSync(params.extensionsDir)) {

906+

return (id) => {

907+

const trimmed = id.trim();

908+

const normalized = normalizeOptionalLowercaseString(trimmed);

909+

return (normalized && lookup.get(normalized)) || trimmed;

910+

};

911+

}

912+

for (const entry of fs.readdirSync(params.extensionsDir, { withFileTypes: true })) {

913+

if (!entry.isDirectory()) {

914+

continue;

915+

}

916+

const fallbackPluginId = entry.name;

917+

const pluginDir = path.join(params.extensionsDir, fallbackPluginId);

918+

const manifest = readBundledPluginRuntimeDepsManifest(pluginDir, params.manifestCache);

919+

const pluginId = manifest.id ?? fallbackPluginId;

920+

addBundledRuntimeDepsPluginAlias(lookup, pluginId, pluginId);

921+

addBundledRuntimeDepsPluginAlias(lookup, fallbackPluginId, pluginId);

922+

for (const providerId of manifest.providers) {

923+

addBundledRuntimeDepsPluginAlias(lookup, providerId, pluginId);

924+

}

925+

for (const legacyPluginId of manifest.legacyPluginIds) {

926+

addBundledRuntimeDepsPluginAlias(lookup, legacyPluginId, pluginId);

927+

}

928+

}

929+

return (id) => {

930+

const trimmed = id.trim();

931+

const normalized = normalizeOptionalLowercaseString(trimmed);

932+

return (normalized && lookup.get(normalized)) || trimmed;

933+

};

934+

}

935+936+

function passesRuntimeDepsPluginPolicy(params: {

937+

pluginId: string;

938+

plugins: NormalizedPluginsConfig;

939+

allowExplicitlyDisabled?: boolean;

940+

allowRestrictiveAllowlistBypass?: boolean;

941+

}): boolean {

942+

if (!params.plugins.enabled) {

943+

return false;

944+

}

945+

if (params.plugins.deny.includes(params.pluginId)) {

946+

return false;

947+

}

948+

if (

949+

params.plugins.entries[params.pluginId]?.enabled === false &&

950+

params.allowExplicitlyDisabled !== true

951+

) {

952+

return false;

953+

}

954+

return (

955+

params.allowRestrictiveAllowlistBypass === true ||

956+

params.plugins.allow.length === 0 ||

957+

params.plugins.allow.includes(params.pluginId)

958+

);

959+

}

960+859961

function isBundledPluginConfiguredForRuntimeDeps(params: {

860962

config: OpenClawConfig;

963+

plugins: NormalizedPluginsConfig;

861964

pluginId: string;

862965

pluginDir: string;

863966

includeConfiguredChannels?: boolean;

864967

manifestCache?: BundledPluginRuntimeDepsManifestCache;

865968

}): boolean {

866-

const plugins = normalizePluginsConfig(params.config.plugins);

867969

if (

868-

!passesManifestOwnerBasePolicy({

869-

plugin: { id: params.pluginId },

870-

normalizedConfig: plugins,

970+

!passesRuntimeDepsPluginPolicy({

971+

pluginId: params.pluginId,

972+

plugins: params.plugins,

871973

allowRestrictiveAllowlistBypass: true,

872974

})

873975

) {

874976

return false;

875977

}

876-

const entry = plugins.entries[params.pluginId];

978+

const entry = params.plugins.entries[params.pluginId];

877979

const manifest = readBundledPluginRuntimeDepsManifest(params.pluginDir, params.manifestCache);

878-

if (plugins.slots.memory === params.pluginId || plugins.slots.contextEngine === params.pluginId) {

980+

if (

981+

params.plugins.slots.memory === params.pluginId ||

982+

params.plugins.slots.contextEngine === params.pluginId

983+

) {

879984

return true;

880985

}

881986

let hasExplicitChannelDisable = false;

@@ -917,7 +1022,7 @@ function isBundledPluginConfiguredForRuntimeDeps(params: {

9171022

if (hasExplicitChannelDisable) {

9181023

return false;

9191024

}

920-

if (plugins.allow.length > 0 && !plugins.allow.includes(params.pluginId)) {

1025+

if (params.plugins.allow.length > 0 && !params.plugins.allow.includes(params.pluginId)) {

9211026

return false;

9221027

}

9231028

if (entry?.enabled === true) {

@@ -931,12 +1036,12 @@ function isBundledPluginConfiguredForRuntimeDeps(params: {

93110369321037

function isBundledPluginExplicitlyDisabledForRuntimeDeps(params: {

9331038

config: OpenClawConfig;

1039+

plugins: NormalizedPluginsConfig;

9341040

pluginId: string;

9351041

pluginDir: string;

9361042

manifestCache?: BundledPluginRuntimeDepsManifestCache;

9371043

}): boolean {

938-

const plugins = normalizePluginsConfig(params.config.plugins);

939-

if (plugins.entries[params.pluginId]?.enabled === false) {

1044+

if (params.plugins.entries[params.pluginId]?.enabled === false) {

9401045

return true;

9411046

}

9421047

const manifest = readBundledPluginRuntimeDepsManifest(params.pluginDir, params.manifestCache);

@@ -959,6 +1064,7 @@ function isBundledPluginExplicitlyDisabledForRuntimeDeps(params: {

95910649601065

function shouldIncludeBundledPluginRuntimeDeps(params: {

9611066

config?: OpenClawConfig;

1067+

plugins?: NormalizedPluginsConfig;

9621068

pluginIds?: ReadonlySet<string>;

9631069

selectedPluginIds?: ReadonlySet<string>;

9641070

pluginId: string;

@@ -971,8 +1077,10 @@ function shouldIncludeBundledPluginRuntimeDeps(params: {

9711077

params.selectedPluginIds.has(params.pluginId) &&

9721078

!(

9731079

params.config &&

1080+

params.plugins &&

9741081

isBundledPluginExplicitlyDisabledForRuntimeDeps({

9751082

config: params.config,

1083+

plugins: params.plugins,

9761084

pluginId: params.pluginId,

9771085

pluginDir: params.pluginDir,

9781086

manifestCache: params.manifestCache,

@@ -993,15 +1101,21 @@ function shouldIncludeBundledPluginRuntimeDeps(params: {

9931101

return true;

9941102

}

9951103

if (scopedToPluginIds) {

996-

const plugins = normalizePluginsConfig(params.config.plugins);

997-

return passesManifestOwnerBasePolicy({

998-

plugin: { id: params.pluginId },

999-

normalizedConfig: plugins,

1104+

if (!params.plugins) {

1105+

return true;

1106+

}

1107+

return passesRuntimeDepsPluginPolicy({

1108+

pluginId: params.pluginId,

1109+

plugins: params.plugins,

10001110

allowRestrictiveAllowlistBypass: true,

10011111

});

10021112

}

1113+

if (!params.plugins) {

1114+

return false;

1115+

}

10031116

return isBundledPluginConfiguredForRuntimeDeps({

10041117

config: params.config,

1118+

plugins: params.plugins,

10051119

pluginId: params.pluginId,

10061120

pluginDir: params.pluginDir,

10071121

includeConfiguredChannels: params.includeConfiguredChannels,

@@ -1015,13 +1129,27 @@ function collectBundledPluginRuntimeDeps(params: {

10151129

pluginIds?: ReadonlySet<string>;

10161130

selectedPluginIds?: ReadonlySet<string>;

10171131

includeConfiguredChannels?: boolean;

1132+

manifestCache?: BundledPluginRuntimeDepsManifestCache;

1133+

normalizePluginId?: NormalizePluginId;

10181134

}): {

10191135

deps: RuntimeDepEntry[];

10201136

conflicts: RuntimeDepConflict[];

10211137

pluginIds: string[];

10221138

} {

10231139

const versionMap = new Map<string, Map<string, Set<string>>>();

1024-

const manifestCache: BundledPluginRuntimeDepsManifestCache = new Map();

1140+

const manifestCache: BundledPluginRuntimeDepsManifestCache = params.manifestCache ?? new Map();

1141+

const needsPluginIdNormalizer = Boolean(params.config);

1142+

const normalizePluginId =

1143+

params.normalizePluginId ??

1144+

(needsPluginIdNormalizer

1145+

? createBundledRuntimeDepsPluginIdNormalizer({

1146+

extensionsDir: params.extensionsDir,

1147+

manifestCache,

1148+

})

1149+

: undefined);

1150+

const plugins = params.config

1151+

? normalizePluginsConfigWithResolver(params.config.plugins, normalizePluginId)

1152+

: undefined;

10251153

const includedPluginIds = new Set<string>();

1026115410271155

for (const entry of fs.readdirSync(params.extensionsDir, { withFileTypes: true })) {

@@ -1033,6 +1161,7 @@ function collectBundledPluginRuntimeDeps(params: {

10331161

if (

10341162

!shouldIncludeBundledPluginRuntimeDeps({

10351163

config: params.config,

1164+

plugins,

10361165

pluginIds: params.pluginIds,

10371166

selectedPluginIds: params.selectedPluginIds,

10381167

pluginId,

@@ -1099,12 +1228,13 @@ function collectBundledPluginRuntimeDeps(params: {

1099122811001229

function normalizePluginIdSet(

11011230

pluginIds: readonly string[] | undefined,

1231+

normalizePluginId: NormalizePluginId = (id) => normalizeOptionalLowercaseString(id) ?? "",

11021232

): ReadonlySet<string> | undefined {

11031233

if (!pluginIds) {

11041234

return undefined;

11051235

}

11061236

const normalized = pluginIds

1107-

.map((entry) => normalizeOptionalLowercaseString(entry))

1237+

.map((entry) => normalizePluginId(entry))

11081238

.filter((entry): entry is string => Boolean(entry));

11091239

return new Set(normalized);

11101240

}

@@ -1128,12 +1258,22 @@ export function scanBundledPluginRuntimeDeps(params: {

11281258

if (!fs.existsSync(extensionsDir)) {

11291259

return { deps: [], missing: [], conflicts: [] };

11301260

}

1261+

const manifestCache: BundledPluginRuntimeDepsManifestCache = new Map();

1262+

const normalizePluginId =

1263+

params.config || params.pluginIds || params.selectedPluginIds

1264+

? createBundledRuntimeDepsPluginIdNormalizer({

1265+

extensionsDir,

1266+

manifestCache,

1267+

})

1268+

: undefined;

11311269

const { deps, conflicts, pluginIds } = collectBundledPluginRuntimeDeps({

11321270

extensionsDir,

11331271

config: params.config,

1134-

pluginIds: normalizePluginIdSet(params.pluginIds),

1135-

selectedPluginIds: normalizePluginIdSet(params.selectedPluginIds),

1272+

pluginIds: normalizePluginIdSet(params.pluginIds, normalizePluginId),

1273+

selectedPluginIds: normalizePluginIdSet(params.selectedPluginIds, normalizePluginId),

11361274

includeConfiguredChannels: params.includeConfiguredChannels,

1275+

manifestCache,

1276+

...(normalizePluginId ? { normalizePluginId } : {}),

11371277

});

11381278

const packageRuntimeDeps =

11391279

pluginIds.length > 0 ? collectMirroredPackageRuntimeDeps(params.packageRoot) : [];

@@ -1705,12 +1845,26 @@ export function ensureBundledPluginRuntimeDeps(params: {

17051845

config?: OpenClawConfig;

17061846

installDeps?: (params: BundledRuntimeDepsInstallParams) => void;

17071847

}): BundledRuntimeDepsEnsureResult {

1848+

const extensionsDir = path.dirname(params.pluginRoot);

1849+

const manifestCache: BundledPluginRuntimeDepsManifestCache = new Map();

1850+

const normalizePluginId = params.config

1851+

? createBundledRuntimeDepsPluginIdNormalizer({

1852+

extensionsDir,

1853+

manifestCache,

1854+

})

1855+

: undefined;

1856+

const plugins = params.config

1857+

? normalizePluginsConfigWithResolver(params.config.plugins, normalizePluginId)

1858+

: undefined;

17081859

if (

17091860

params.config &&

1861+

plugins &&

17101862

!isBundledPluginConfiguredForRuntimeDeps({

17111863

config: params.config,

1864+

plugins,

17121865

pluginId: params.pluginId,

17131866

pluginDir: params.pluginRoot,

1867+

manifestCache,

17141868

})

17151869

) {

17161870

return createBundledRuntimeDepsEnsureResult([]);

@@ -1738,8 +1892,10 @@ export function ensureBundledPluginRuntimeDeps(params: {

17381892

let deps = pluginDepEntries;

17391893

if (usePackageLevelPlan && packageRoot) {

17401894

const packagePlan = collectBundledPluginRuntimeDeps({

1741-

extensionsDir: path.dirname(params.pluginRoot),

1895+

extensionsDir,

17421896

...(params.config ? { config: params.config } : {}),

1897+

manifestCache,

1898+

...(normalizePluginId ? { normalizePluginId } : {}),

17431899

});

17441900

if (packagePlan.conflicts.length === 0 && packagePlan.deps.length > 0) {

17451901

deps = mergeRuntimeDepEntries([