fix(plugins): remove unsupported bundle metadata · openclaw/openclaw@76c327c
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ import { shouldBuildBundledCluster } from "./optional-bundled-clusters.mjs";
|
9 | 9 | |
10 | 10 | const TOP_LEVEL_PUBLIC_SURFACE_EXTENSIONS = new Set([".ts", ".js", ".mts", ".cts", ".mjs", ".cjs"]); |
11 | 11 | export const NON_PACKAGED_BUNDLED_PLUGIN_DIRS = new Set(["qa-channel", "qa-lab", "qa-matrix"]); |
| 12 | +const EXCLUDED_CORE_BUNDLED_PLUGIN_DIRS = new Set(["qqbot"]); |
12 | 13 | const toPosixPath = (value) => value.replaceAll("\\", "/"); |
13 | 14 | |
14 | 15 | function readBundledPluginPackageJson(packageJsonPath) { |
@@ -47,10 +48,6 @@ function collectPluginSourceEntries(packageJson) {
|
47 | 48 | return packageEntries.length > 0 ? packageEntries : ["./index.ts"]; |
48 | 49 | } |
49 | 50 | |
50 | | -function shouldIncludeBundledPluginInCore(packageJson) { |
51 | | -return packageJson?.openclaw?.bundle?.includeInCore !== false; |
52 | | -} |
53 | | - |
54 | 51 | function collectTopLevelPublicSurfaceEntries(pluginDir) { |
55 | 52 | if (!fs.existsSync(pluginDir)) { |
56 | 53 | return []; |
@@ -115,7 +112,7 @@ export function collectBundledPluginBuildEntries(params = {}) {
|
115 | 112 | if (!shouldBuildBundledCluster(dirent.name, env, { packageJson })) { |
116 | 113 | continue; |
117 | 114 | } |
118 | | -if (!shouldIncludeBundledPluginInCore(packageJson)) { |
| 115 | +if (EXCLUDED_CORE_BUNDLED_PLUGIN_DIRS.has(dirent.name)) { |
119 | 116 | continue; |
120 | 117 | } |
121 | 118 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。