refactor(plugins): remove status dependency barrel

This commit is contained in:
Vincent Koc
2026-06-18 01:26:55 +08:00
parent e54c56962b
commit 34be976c6d
6 changed files with 5 additions and 15 deletions
+1 -1
View File
@@ -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([
+1 -1
View File
@@ -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>();
+1 -1
View File
@@ -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)) {
+1 -1
View File
@@ -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;
-10
View File
@@ -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";
+1 -1
View File
@@ -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 & {