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

推荐订阅源

Google DeepMind News
Google DeepMind News
C
Check Point Blog
J
Java Code Geeks
腾讯CDC
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
罗磊的独立博客
Last Week in AI
Last Week in AI
B
Blog
IT之家
IT之家
S
SegmentFault 最新的问题
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - 聂微东
U
Unit 42
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
MyScale Blog
MyScale 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
refactor: resolve contribution owners from lookup maps · ...
shakkernerd · 2026-04-27 · via Recent Commits to openclaw:main

@@ -221,6 +221,47 @@ function listContributionManifestPlugins(

221221

}).plugins;

222222

}

223223224+

function resolveContributionOwnerMap(

225+

table: PluginLookUpTable,

226+

contribution: PluginRegistryContributionKey,

227+

): ReadonlyMap<string, readonly string[]> | undefined {

228+

switch (contribution) {

229+

case "channels":

230+

return table.owners.channels;

231+

case "channelConfigs":

232+

return table.owners.channelConfigs;

233+

case "providers":

234+

return table.owners.providers;

235+

case "modelCatalogProviders":

236+

return table.owners.modelCatalogProviders;

237+

case "cliBackends":

238+

return table.owners.cliBackends;

239+

case "setupProviders":

240+

return table.owners.setupProviders;

241+

case "commandAliases":

242+

return table.owners.commandAliases;

243+

case "contracts":

244+

return table.owners.contracts;

245+

}

246+

return undefined;

247+

}

248+249+

function filterContributionOwnerIds(params: {

250+

owners: readonly string[];

251+

index: PluginRegistrySnapshot;

252+

includeDisabled?: boolean;

253+

config?: OpenClawConfig;

254+

}): readonly string[] {

255+

const enabledPluginIds = new Set(

256+

resolveContributionPluginIds({

257+

index: params.index,

258+

includeDisabled: params.includeDisabled,

259+

config: params.config,

260+

}),

261+

);

262+

return sortUnique(params.owners.filter((owner) => enabledPluginIds.has(owner)));

263+

}

264+224265

export function loadPluginManifestRegistryForPluginRegistry(

225266

params: LoadPluginRegistryManifestParams = {},

226267

): PluginManifestRegistry {

@@ -310,11 +351,24 @@ export function listPluginContributionIds(

310351

export function resolvePluginContributionOwners(

311352

params: ResolvePluginContributionOwnersParams,

312353

): readonly string[] {

354+

const index = params.lookUpTable?.index ?? loadPluginRegistrySnapshot(params);

355+

if (params.lookUpTable && typeof params.matches === "string") {

356+

const ownerMap = resolveContributionOwnerMap(params.lookUpTable, params.contribution);

357+

const owners = ownerMap?.get(params.matches);

358+

if (owners) {

359+

return filterContributionOwnerIds({

360+

owners,

361+

index,

362+

includeDisabled: params.includeDisabled,

363+

config: params.config,

364+

});

365+

}

366+

return [];

367+

}

313368

const matcher =

314369

typeof params.matches === "string"

315370

? (contributionId: string) => contributionId === params.matches

316371

: params.matches;

317-

const index = params.lookUpTable?.index ?? loadPluginRegistrySnapshot(params);

318372

const plugins = listContributionManifestPlugins({ ...params, index });

319373

return sortUnique(

320374

plugins.flatMap((plugin) =>

@@ -328,6 +382,19 @@ export function resolveProviderOwners(params: ResolveProviderOwnersParams): read

328382

if (!providerId) {

329383

return [];

330384

}

385+

if (params.lookUpTable) {

386+

const index = params.lookUpTable.index;

387+

const owners = [...params.lookUpTable.owners.providers.entries()].flatMap(

388+

([contributionId, ownerIds]) =>

389+

normalizeProviderId(contributionId) === providerId ? [...ownerIds] : [],

390+

);

391+

return filterContributionOwnerIds({

392+

owners,

393+

index,

394+

includeDisabled: params.includeDisabled,

395+

config: params.config,

396+

});

397+

}

331398

return resolvePluginContributionOwners({

332399

...params,

333400

contribution: "providers",