mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
refactor(plugins): remove status dependency barrel
This commit is contained in:
@@ -43,7 +43,7 @@ import { resolvePluginSourceRoots } from "./roots.js";
|
||||
import {
|
||||
normalizePluginDependencySpecs,
|
||||
type PluginDependencySpecMap,
|
||||
} from "./status-dependencies.js";
|
||||
} from "./status-dependencies-core.js";
|
||||
|
||||
const EXTENSION_EXTS = new Set([".ts", ".js", ".mts", ".cts", ".mjs", ".cjs"]);
|
||||
const SCANNED_DIRECTORY_IGNORE_NAMES = new Set([
|
||||
|
||||
@@ -26,7 +26,7 @@ import { registerPluginMetadataProcessMemoLifecycleClear } from "./plugin-metada
|
||||
import {
|
||||
normalizePluginDependencySpecs,
|
||||
type PluginDependencySpecMap,
|
||||
} from "./status-dependencies.js";
|
||||
} from "./status-dependencies-core.js";
|
||||
|
||||
const installedManifestRegistryIndexFingerprintCache = new WeakMap<InstalledPluginIndex, string>();
|
||||
const installedPackageJsonPathCache = new Map<string, string | null>();
|
||||
|
||||
@@ -65,7 +65,7 @@ import { resolvePackagePluginApiRange } from "./package-compat.js";
|
||||
import { isPathInside, safeRealpathSync, safeStatSync } from "./path-safety.js";
|
||||
import type { PluginKind } from "./plugin-kind.types.js";
|
||||
import type { PluginOrigin } from "./plugin-origin.types.js";
|
||||
import type { PluginDependencySpecMap } from "./status-dependencies.js";
|
||||
import type { PluginDependencySpecMap } from "./status-dependencies-core.js";
|
||||
|
||||
function resolvePluginSourcePath(sourcePath: string): string {
|
||||
if (fs.existsSync(sourcePath)) {
|
||||
|
||||
@@ -32,7 +32,7 @@ import type { PluginManifestContracts } from "./manifest.js";
|
||||
import type { MemoryEmbeddingProviderAdapter } from "./memory-embedding-providers.js";
|
||||
import type { PluginKind } from "./plugin-kind.types.js";
|
||||
import type { PluginRuntime } from "./runtime/types.js";
|
||||
import type { PluginDependencyStatus } from "./status-dependencies.js";
|
||||
import type { PluginDependencyStatus } from "./status-dependencies-core.js";
|
||||
type ChannelPlugin = import("../channels/plugins/types.plugin.js").ChannelPlugin;
|
||||
type CliBackendPlugin = import("./types.js").CliBackendPlugin;
|
||||
type ImageGenerationProviderPlugin = import("./types.js").ImageGenerationProviderPlugin;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
/** Public status dependency helpers re-exported from the core implementation. */
|
||||
export {
|
||||
buildPluginDependencyStatus,
|
||||
normalizePluginDependencySpecs,
|
||||
} from "./status-dependencies-core.js";
|
||||
export type {
|
||||
PluginDependencyEntry,
|
||||
PluginDependencySpecMap,
|
||||
PluginDependencyStatus,
|
||||
} from "./status-dependencies-core.js";
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
resolvePluginRuntimeLoadContext,
|
||||
} from "./runtime/load-context.js";
|
||||
import { loadPluginMetadataRegistrySnapshot } from "./runtime/metadata-registry-loader.js";
|
||||
import { buildPluginDependencyStatus } from "./status-dependencies.js";
|
||||
import { buildPluginDependencyStatus } from "./status-dependencies-core.js";
|
||||
import type { PluginHookName, PluginLogger } from "./types.js";
|
||||
|
||||
export type PluginStatusReport = PluginRegistry & {
|
||||
|
||||
Reference in New Issue
Block a user