refactor(plugins): remove status dependency barrel · openclaw/openclaw@34be976
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,7 @@ import { resolvePluginSourceRoots } from "./roots.js";
|
43 | 43 | import { |
44 | 44 | normalizePluginDependencySpecs, |
45 | 45 | type PluginDependencySpecMap, |
46 | | -} from "./status-dependencies.js"; |
| 46 | +} from "./status-dependencies-core.js"; |
47 | 47 | |
48 | 48 | const EXTENSION_EXTS = new Set([".ts", ".js", ".mts", ".cts", ".mjs", ".cjs"]); |
49 | 49 | const SCANNED_DIRECTORY_IGNORE_NAMES = new Set([ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ import { registerPluginMetadataProcessMemoLifecycleClear } from "./plugin-metada
|
26 | 26 | import { |
27 | 27 | normalizePluginDependencySpecs, |
28 | 28 | type PluginDependencySpecMap, |
29 | | -} from "./status-dependencies.js"; |
| 29 | +} from "./status-dependencies-core.js"; |
30 | 30 | |
31 | 31 | const installedManifestRegistryIndexFingerprintCache = new WeakMap<InstalledPluginIndex, string>(); |
32 | 32 | const installedPackageJsonPathCache = new Map<string, string | null>(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,7 @@ import { resolvePackagePluginApiRange } from "./package-compat.js";
|
65 | 65 | import { isPathInside, safeRealpathSync, safeStatSync } from "./path-safety.js"; |
66 | 66 | import type { PluginKind } from "./plugin-kind.types.js"; |
67 | 67 | import type { PluginOrigin } from "./plugin-origin.types.js"; |
68 | | -import type { PluginDependencySpecMap } from "./status-dependencies.js"; |
| 68 | +import type { PluginDependencySpecMap } from "./status-dependencies-core.js"; |
69 | 69 | |
70 | 70 | function resolvePluginSourcePath(sourcePath: string): string { |
71 | 71 | if (fs.existsSync(sourcePath)) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,7 @@ import type { PluginManifestContracts } from "./manifest.js";
|
32 | 32 | import type { MemoryEmbeddingProviderAdapter } from "./memory-embedding-providers.js"; |
33 | 33 | import type { PluginKind } from "./plugin-kind.types.js"; |
34 | 34 | import type { PluginRuntime } from "./runtime/types.js"; |
35 | | -import type { PluginDependencyStatus } from "./status-dependencies.js"; |
| 35 | +import type { PluginDependencyStatus } from "./status-dependencies-core.js"; |
36 | 36 | type ChannelPlugin = import("../channels/plugins/types.plugin.js").ChannelPlugin; |
37 | 37 | type CliBackendPlugin = import("./types.js").CliBackendPlugin; |
38 | 38 | type ImageGenerationProviderPlugin = import("./types.js").ImageGenerationProviderPlugin; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,7 @@ import {
|
29 | 29 | resolvePluginRuntimeLoadContext, |
30 | 30 | } from "./runtime/load-context.js"; |
31 | 31 | import { loadPluginMetadataRegistrySnapshot } from "./runtime/metadata-registry-loader.js"; |
32 | | -import { buildPluginDependencyStatus } from "./status-dependencies.js"; |
| 32 | +import { buildPluginDependencyStatus } from "./status-dependencies-core.js"; |
33 | 33 | import type { PluginHookName, PluginLogger } from "./types.js"; |
34 | 34 | |
35 | 35 | export type PluginStatusReport = PluginRegistry & { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。