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

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
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
refactor: accept supplied plugin manifest registry · open...
shakkernerd · 2026-04-28 · via Recent Commits to openclaw:main

@@ -68,7 +68,7 @@ import {

6868

type NormalizedPluginsConfig,

6969

type PluginActivationState,

7070

} from "./config-state.js";

71-

import { discoverOpenClawPlugins } from "./discovery.js";

71+

import { discoverOpenClawPlugins, type PluginCandidate } from "./discovery.js";

7272

import { getGlobalHookRunner, initializeGlobalHookRunner } from "./hook-runner-global.js";

7373

import { toSafeImportPath } from "./import-specifier.js";

7474

import { loadInstalledPluginIndexInstallRecordsSync } from "./installed-plugin-index-records.js";

@@ -79,7 +79,11 @@ import {

7979

} from "./interactive-registry.js";

8080

import { getCachedPluginJitiLoader, type PluginJitiLoaderCache } from "./jiti-loader-cache.js";

8181

import { PluginLoaderCacheState } from "./loader-cache-state.js";

82-

import { loadPluginManifestRegistry, type PluginManifestRecord } from "./manifest-registry.js";

82+

import {

83+

loadPluginManifestRegistry,

84+

type PluginManifestRecord,

85+

type PluginManifestRegistry,

86+

} from "./manifest-registry.js";

8387

import type { PluginBundleFormat, PluginDiagnostic, PluginFormat } from "./manifest-types.js";

8488

import type { PluginManifestContracts } from "./manifest.js";

8589

import {

@@ -173,6 +177,7 @@ export type PluginLoadOptions = {

173177

installBundledRuntimeDeps?: boolean;

174178

throwOnLoadError?: boolean;

175179

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

180+

manifestRegistry?: PluginManifestRegistry;

176181

};

177182178183

const CLI_METADATA_ENTRY_BASENAMES = [

@@ -253,6 +258,20 @@ const LAZY_RUNTIME_REFLECTION_KEYS = [

253258

"modelAuth",

254259

] as const satisfies readonly (keyof PluginRuntime)[];

255260261+

function createPluginCandidatesFromManifestRegistry(

262+

manifestRegistry: PluginManifestRegistry,

263+

): PluginCandidate[] {

264+

return manifestRegistry.plugins.map((record) => ({

265+

idHint: record.id,

266+

rootDir: record.rootDir,

267+

source: record.source,

268+

origin: record.origin,

269+

...(record.workspaceDir !== undefined ? { workspaceDir: record.workspaceDir } : {}),

270+

...(record.format !== undefined ? { format: record.format } : {}),

271+

...(record.bundleFormat !== undefined ? { bundleFormat: record.bundleFormat } : {}),

272+

}));

273+

}

274+256275

export function clearPluginLoaderCache(): void {

257276

pluginLoaderCacheState.clear();

258277

clearBundledRuntimeDependencyNodePaths();

@@ -2311,21 +2330,29 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi

23112330

activateGlobalSideEffects: shouldActivate,

23122331

});

231323322314-

const discovery = discoverOpenClawPlugins({

2315-

workspaceDir: options.workspaceDir,

2316-

extraPaths: normalized.loadPaths,

2317-

cache: options.cache,

2318-

env,

2319-

});

2320-

const manifestRegistry = loadPluginManifestRegistry({

2321-

config: cfg,

2322-

workspaceDir: options.workspaceDir,

2323-

cache: options.cache,

2324-

env,

2325-

candidates: discovery.candidates,

2326-

diagnostics: discovery.diagnostics,

2327-

installRecords: Object.keys(installRecords).length > 0 ? installRecords : undefined,

2328-

});

2333+

const suppliedManifestRegistry = options.manifestRegistry;

2334+

const discovery = suppliedManifestRegistry

2335+

? {

2336+

candidates: createPluginCandidatesFromManifestRegistry(suppliedManifestRegistry),

2337+

diagnostics: [] as PluginDiagnostic[],

2338+

}

2339+

: discoverOpenClawPlugins({

2340+

workspaceDir: options.workspaceDir,

2341+

extraPaths: normalized.loadPaths,

2342+

cache: options.cache,

2343+

env,

2344+

});

2345+

const manifestRegistry =

2346+

suppliedManifestRegistry ??

2347+

loadPluginManifestRegistry({

2348+

config: cfg,

2349+

workspaceDir: options.workspaceDir,

2350+

cache: options.cache,

2351+

env,

2352+

candidates: discovery.candidates,

2353+

diagnostics: discovery.diagnostics,

2354+

installRecords: Object.keys(installRecords).length > 0 ? installRecords : undefined,

2355+

});

23292356

pushDiagnostics(registry.diagnostics, manifestRegistry.diagnostics);

23302357

warnWhenAllowlistIsOpen({

23312358

emitWarning: shouldActivate,