fix(plugins): avoid registry barrel topology cycle

This commit is contained in:
Peter Steinberger
2026-04-27 09:09:10 +01:00
parent 5b616e2bec
commit d76f924be3
5 changed files with 7 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import type { PluginManifestRecord } from "./manifest-registry.js";
import type { PluginDiagnostic } from "./manifest-types.js";
import type { PluginManifestActivationCapability } from "./manifest.js";
import type { PluginOrigin } from "./plugin-origin.types.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js";
import { createPluginIdScopeSet, normalizePluginIdScope } from "./plugin-scope.js";
export type PluginActivationPlannerTrigger =

View File

@@ -18,7 +18,7 @@ import {
normalizePluginsConfig,
resolveEffectivePluginActivationState,
} from "./config-state.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js";
export type ClaudeBundleCommandSpec = {
pluginId: string;

View File

@@ -20,7 +20,7 @@ import {
passesManifestOwnerBasePolicy,
} from "./manifest-owner-policy.js";
import type { PluginManifestRecord } from "./manifest-registry.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js";
import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js";
const IGNORED_CHANNEL_CONFIG_KEYS = new Set(["defaults", "modelByChannel"]);

View File

@@ -15,9 +15,9 @@ import { loadPluginManifestRegistryForInstalledIndex } from "./manifest-registry
import type { PluginManifestRegistry } from "./manifest-registry.js";
import {
createPluginRegistryIdNormalizer,
loadPluginRegistrySnapshot,
normalizePluginsConfigWithRegistry,
} from "./plugin-registry.js";
} from "./plugin-registry-contributions.js";
import { loadPluginRegistrySnapshot } from "./plugin-registry-snapshot.js";
function listDisabledChannelIds(config: OpenClawConfig): Set<string> {
const channels = config.channels;

View File

@@ -8,12 +8,12 @@ import { hashJson } from "./installed-plugin-index-hash.js";
import { loadPluginManifestRegistryForInstalledIndex } from "./manifest-registry-installed.js";
import type { PluginManifestRecord, PluginManifestRegistry } from "./manifest-registry.js";
import type { PluginDiagnostic } from "./manifest-types.js";
import { createPluginRegistryIdNormalizer } from "./plugin-registry-contributions.js";
import {
createPluginRegistryIdNormalizer,
loadPluginRegistrySnapshotWithMetadata,
type PluginRegistrySnapshot,
type PluginRegistrySnapshotDiagnostic,
} from "./plugin-registry.js";
} from "./plugin-registry-snapshot.js";
export type PluginLookUpTableOwnerMaps = {
channels: ReadonlyMap<string, readonly string[]>;