fix(cycles): narrow plugin auto enable imports

This commit is contained in:
Vincent Koc
2026-04-11 23:33:41 +01:00
parent 10f2e81c04
commit 876fc4e43c
5 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
import type { PluginManifestRegistry } from "../plugins/manifest-registry.js";
import type { OpenClawConfig } from "./config.js";
import { detectPluginAutoEnableCandidates } from "./plugin-auto-enable.detect.js";
import {
materializePluginAutoEnableCandidatesInternal,
@@ -9,6 +8,7 @@ import type {
PluginAutoEnableCandidate,
PluginAutoEnableResult,
} from "./plugin-auto-enable.types.js";
import type { OpenClawConfig } from "./types.openclaw.js";
export function materializePluginAutoEnableCandidates(params: {
config?: OpenClawConfig;

View File

@@ -1,11 +1,11 @@
import type { PluginManifestRegistry } from "../plugins/manifest-registry.js";
import type { OpenClawConfig } from "./config.js";
import {
configMayNeedPluginAutoEnable,
resolveConfiguredPluginAutoEnableCandidates,
resolvePluginAutoEnableManifestRegistry,
} from "./plugin-auto-enable.shared.js";
import type { PluginAutoEnableCandidate } from "./plugin-auto-enable.types.js";
import type { OpenClawConfig } from "./types.openclaw.js";
export function detectPluginAutoEnableCandidates(params: {
config?: OpenClawConfig;

View File

@@ -5,8 +5,8 @@ import type { PluginManifestRegistry } from "../plugins/manifest-registry.js";
import { normalizeOptionalString } from "../shared/string-coerce.js";
import { normalizeStringEntries } from "../shared/string-normalization.js";
import { isRecord, resolveConfigDir, resolveUserPath } from "../utils.js";
import type { OpenClawConfig } from "./config.js";
import type { PluginAutoEnableCandidate } from "./plugin-auto-enable.types.js";
import type { OpenClawConfig } from "./types.openclaw.js";
type ExternalCatalogChannelEntry = {
id: string;

View File

@@ -1,4 +1,4 @@
import { normalizeProviderId } from "../agents/model-selection.js";
import { normalizeProviderId } from "../agents/provider-id.js";
import {
hasPotentialConfiguredChannels,
listPotentialConfiguredChannelIds,
@@ -15,7 +15,6 @@ import { resolvePluginSetupAutoEnableReasons } from "../plugins/setup-registry.j
import { normalizeOptionalLowercaseString } from "../shared/string-coerce.js";
import { isRecord } from "../utils.js";
import { isChannelConfigured } from "./channel-configured.js";
import type { OpenClawConfig } from "./config.js";
import { shouldSkipPreferredPluginAutoEnable } from "./plugin-auto-enable.prefer-over.js";
import type {
PluginAutoEnableCandidate,
@@ -23,6 +22,7 @@ import type {
} from "./plugin-auto-enable.types.js";
import { ensurePluginAllowlisted } from "./plugins-allowlist.js";
import { isBlockedObjectKey } from "./prototype-keys.js";
import type { OpenClawConfig } from "./types.openclaw.js";
export type {
PluginAutoEnableCandidate,
PluginAutoEnableResult,

View File

@@ -1,4 +1,4 @@
import type { OpenClawConfig } from "./config.js";
import type { OpenClawConfig } from "./types.openclaw.js";
export type PluginAutoEnableCandidate =
| {