UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) 727 B
import { n as normalizeAgentId } from "./agent-id-CeT3w4ap.js"; import { c as resolveAgentConfig } from "./agent-scope-config-DcbEhP0R.js"; import "./session-key-BnWWjqNc.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 ? resolveAgentConfig(config, agentId)?.tools?.exec?.commandHighlighting : void 0) ?? globalValue ?? false; } //#endregion export { resolveExecCommandHighlighting as t };