diff --git a/src/plugins/plugin-metadata-snapshot.types.ts b/src/plugins/plugin-metadata-snapshot.types.ts index 20b64863896..d5526b58894 100644 --- a/src/plugins/plugin-metadata-snapshot.types.ts +++ b/src/plugins/plugin-metadata-snapshot.types.ts @@ -2,7 +2,8 @@ import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { InstalledPluginIndex } from "./installed-plugin-index.js"; import type { PluginManifestRecord, PluginManifestRegistry } from "./manifest-registry.js"; import type { PluginDiagnostic } from "./manifest-types.js"; -import type { PluginRegistrySnapshotSource } from "./plugin-registry-snapshot.js"; + +export type PluginRegistrySnapshotSource = "provided" | "persisted" | "derived"; export type PluginMetadataSnapshotOwnerMaps = { channels: ReadonlyMap; diff --git a/src/plugins/plugin-registry-snapshot.ts b/src/plugins/plugin-registry-snapshot.ts index cd11cf6faa9..91a8c5c01bc 100644 --- a/src/plugins/plugin-registry-snapshot.ts +++ b/src/plugins/plugin-registry-snapshot.ts @@ -26,11 +26,12 @@ import { type LoadInstalledPluginIndexParams, type RefreshInstalledPluginIndexParams, } from "./installed-plugin-index.js"; +import type { PluginRegistrySnapshotSource } from "./plugin-metadata-snapshot.types.js"; export type PluginRegistrySnapshot = InstalledPluginIndex; export type PluginRegistryRecord = InstalledPluginIndexRecord; export type PluginRegistryInspection = InstalledPluginIndexStoreInspection; -export type PluginRegistrySnapshotSource = "provided" | "persisted" | "derived"; +export type { PluginRegistrySnapshotSource }; export type PluginRegistrySnapshotDiagnosticCode = | "persisted-registry-disabled" | "persisted-registry-missing"