UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

12 lines (11 loc) 659 B
import { u as normalizeAgentId } from "./session-key-B_NoIfpX.js"; //#region src/config/exec-command-highlighting.ts /** Resolves whether exec command highlighting is enabled for the current agent scope. */ function resolveExecCommandHighlighting(params) { const config = params.config ?? {}; const globalValue = config.tools?.exec?.commandHighlighting; const agentId = params.agentId ? normalizeAgentId(params.agentId) : null; return (agentId ? config.agents?.list?.find((entry) => normalizeAgentId(entry.id) === agentId)?.tools?.exec?.commandHighlighting : void 0) ?? globalValue ?? false; } //#endregion export { resolveExecCommandHighlighting as t };