test: trim skills and bundle mcp overhead

This commit is contained in:
Peter Steinberger
2026-04-18 17:41:26 +01:00
parent 53239102f8
commit fa2f53993a
9 changed files with 37 additions and 133 deletions

View File

@@ -13,7 +13,11 @@ import {
mergeBundlePathLists,
normalizeBundlePathList,
} from "./bundle-manifest.js";
import { normalizePluginsConfig, resolveEffectivePluginActivationState } from "./config-state.js";
import {
hasExplicitPluginConfig,
normalizePluginsConfig,
resolveEffectivePluginActivationState,
} from "./config-state.js";
import { loadPluginManifestRegistry } from "./manifest-registry.js";
export type ClaudeBundleCommandSpec = {
@@ -169,6 +173,9 @@ export function loadEnabledClaudeBundleCommands(params: {
workspaceDir: string;
cfg?: OpenClawConfig;
}): ClaudeBundleCommandSpec[] {
if (!hasExplicitPluginConfig(params.cfg?.plugins)) {
return [];
}
const registry = loadPluginManifestRegistry({
workspaceDir: params.workspaceDir,
config: params.cfg,