






















@@ -57,6 +57,7 @@ import {
5757listRegisteredCompactionProviders,
5858restoreRegisteredCompactionProviders,
5959} from "./compaction-provider.js";
60+import type { PluginCompatCode } from "./compat/registry.js";
6061import {
6162applyTestPluginDefaults,
6263createPluginActivationSource,
@@ -71,6 +72,7 @@ import {
7172import { discoverOpenClawPlugins, type PluginCandidate } from "./discovery.js";
7273import { getGlobalHookRunner, initializeGlobalHookRunner } from "./hook-runner-global.js";
7374import { toSafeImportPath } from "./import-specifier.js";
75+import { collectPluginManifestCompatCodes } from "./installed-plugin-index-record-builder.js";
7476import { loadInstalledPluginIndexInstallRecordsSync } from "./installed-plugin-index-records.js";
7577import {
7678clearPluginInteractiveHandlers,
@@ -1755,6 +1757,7 @@ function createPluginRecord(params: {
17551757origin: PluginRecord["origin"];
17561758workspaceDir?: string;
17571759enabled: boolean;
1760+compat?: readonly PluginCompatCode[];
17581761activationState?: PluginActivationState;
17591762syntheticAuthRefs?: string[];
17601763configSchema: boolean;
@@ -1773,6 +1776,7 @@ function createPluginRecord(params: {
17731776origin: params.origin,
17741777workspaceDir: params.workspaceDir,
17751778enabled: params.enabled,
1779+compat: params.compat,
17761780explicitlyEnabled: params.activationState?.explicitlyEnabled,
17771781activated: params.activationState?.activated,
17781782activationSource: params.activationState?.source,
@@ -2435,6 +2439,7 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
24352439origin: candidate.origin,
24362440workspaceDir: candidate.workspaceDir,
24372441enabled: false,
2442+compat: collectPluginManifestCompatCodes(manifestRecord),
24382443 activationState,
24392444syntheticAuthRefs: manifestRecord.syntheticAuthRefs,
24402445configSchema: Boolean(manifestRecord.configSchema),
@@ -2469,6 +2474,7 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
24692474origin: candidate.origin,
24702475workspaceDir: candidate.workspaceDir,
24712476enabled: enableState.enabled,
2477+compat: collectPluginManifestCompatCodes(manifestRecord),
24722478 activationState,
24732479syntheticAuthRefs: manifestRecord.syntheticAuthRefs,
24742480configSchema: Boolean(manifestRecord.configSchema),
@@ -3342,6 +3348,7 @@ export async function loadOpenClawPluginCliRegistry(
33423348origin: candidate.origin,
33433349workspaceDir: candidate.workspaceDir,
33443350enabled: false,
3351+compat: collectPluginManifestCompatCodes(manifestRecord),
33453352 activationState,
33463353syntheticAuthRefs: manifestRecord.syntheticAuthRefs,
33473354configSchema: Boolean(manifestRecord.configSchema),
@@ -3376,6 +3383,7 @@ export async function loadOpenClawPluginCliRegistry(
33763383origin: candidate.origin,
33773384workspaceDir: candidate.workspaceDir,
33783385enabled: enableState.enabled,
3386+compat: collectPluginManifestCompatCodes(manifestRecord),
33793387 activationState,
33803388syntheticAuthRefs: manifestRecord.syntheticAuthRefs,
33813389configSchema: Boolean(manifestRecord.configSchema),
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。