fix(plugins): avoid registry barrel topology cycle · openclaw/openclaw@d76f924
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import type { PluginManifestRecord } from "./manifest-registry.js";
|
5 | 5 | import type { PluginDiagnostic } from "./manifest-types.js"; |
6 | 6 | import type { PluginManifestActivationCapability } from "./manifest.js"; |
7 | 7 | import type { PluginOrigin } from "./plugin-origin.types.js"; |
8 | | -import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js"; |
| 8 | +import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js"; |
9 | 9 | import { createPluginIdScopeSet, normalizePluginIdScope } from "./plugin-scope.js"; |
10 | 10 | |
11 | 11 | export type PluginActivationPlannerTrigger = |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ import {
|
18 | 18 | normalizePluginsConfig, |
19 | 19 | resolveEffectivePluginActivationState, |
20 | 20 | } from "./config-state.js"; |
21 | | -import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js"; |
| 21 | +import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js"; |
22 | 22 | |
23 | 23 | export type ClaudeBundleCommandSpec = { |
24 | 24 | pluginId: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ import {
|
20 | 20 | passesManifestOwnerBasePolicy, |
21 | 21 | } from "./manifest-owner-policy.js"; |
22 | 22 | import type { PluginManifestRecord } from "./manifest-registry.js"; |
23 | | -import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry.js"; |
| 23 | +import { loadPluginManifestRegistryForPluginRegistry } from "./plugin-registry-contributions.js"; |
24 | 24 | |
25 | 25 | const IGNORED_CHANNEL_CONFIG_KEYS = new Set(["defaults", "modelByChannel"]); |
26 | 26 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,9 +15,9 @@ import { loadPluginManifestRegistryForInstalledIndex } from "./manifest-registry
|
15 | 15 | import type { PluginManifestRegistry } from "./manifest-registry.js"; |
16 | 16 | import { |
17 | 17 | createPluginRegistryIdNormalizer, |
18 | | -loadPluginRegistrySnapshot, |
19 | 18 | normalizePluginsConfigWithRegistry, |
20 | | -} from "./plugin-registry.js"; |
| 19 | +} from "./plugin-registry-contributions.js"; |
| 20 | +import { loadPluginRegistrySnapshot } from "./plugin-registry-snapshot.js"; |
21 | 21 | |
22 | 22 | function listDisabledChannelIds(config: OpenClawConfig): Set<string> { |
23 | 23 | const channels = config.channels; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,12 +8,12 @@ import { hashJson } from "./installed-plugin-index-hash.js";
|
8 | 8 | import { loadPluginManifestRegistryForInstalledIndex } from "./manifest-registry-installed.js"; |
9 | 9 | import type { PluginManifestRecord, PluginManifestRegistry } from "./manifest-registry.js"; |
10 | 10 | import type { PluginDiagnostic } from "./manifest-types.js"; |
| 11 | +import { createPluginRegistryIdNormalizer } from "./plugin-registry-contributions.js"; |
11 | 12 | import { |
12 | | -createPluginRegistryIdNormalizer, |
13 | 13 | loadPluginRegistrySnapshotWithMetadata, |
14 | 14 | type PluginRegistrySnapshot, |
15 | 15 | type PluginRegistrySnapshotDiagnostic, |
16 | | -} from "./plugin-registry.js"; |
| 16 | +} from "./plugin-registry-snapshot.js"; |
17 | 17 | |
18 | 18 | export type PluginLookUpTableOwnerMaps = { |
19 | 19 | channels: ReadonlyMap<string, readonly string[]>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。