UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 730 B
import { n as normalizeAgentId } from "./agent-id-D1-Q6vR4.mjs"; import { r as resolveAgentConfig } from "./agent-scope-config-CDYpzA0r.mjs"; import "./session-key-C09ow4h0.mjs"; //#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 };