SSL commands-registry-list.ts
Interaktion und PortierbarkeitJAVA
import type { SkillCommandSpec } from "../agents/skills/types.js"; import { isCommandFlagEnabled } from "../config/commands.flags.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import { getChatCommands } from "./commands-registry.data.js"; import type { ChatCommandDefinition } from "./commands-registry.types.js";
export function isCommandEnabled(cfg: OpenClawConfig, commandKey: string): boolean { if (commandKey === "config") { return isCommandFlagEnabled(cfg, "config");
} if (commandKey === "mcp") { return isCommandFlagEnabled(cfg, "mcp");
} if (commandKey === "plugins") { return isCommandFlagEnabled(cfg, "plugins");
} if (commandKey === "debug") { return isCommandFlagEnabled(cfg, "debug");
} if (commandKey === "bash") { return isCommandFlagEnabled(cfg, "bash");
} returntrue;
}
export function listChatCommandsForConfig(
cfg: OpenClawConfig,
params?: { skillCommands?: SkillCommandSpec[] },
): ChatCommandDefinition[] { const base = getChatCommands().filter((command) => isCommandEnabled(cfg, command.key)); if (!params?.skillCommands?.length) { return base;
} return [...base, ...buildSkillCommandDefinitions(params.skillCommands)];
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.20Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.