UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 766 B
//!src/agents/agent-runtime-id.ts const OPENCLAW_AGENT_RUNTIME_ID=`openclaw`;const AUTO_AGENT_RUNTIME_ID=`auto`;function normalizeEmbeddedAgentRuntime(e){const t=e?.trim();if(!t)return OPENCLAW_AGENT_RUNTIME_ID;if(t===`openclaw`||t===`pi`)return OPENCLAW_AGENT_RUNTIME_ID;if(t===`auto`)return AUTO_AGENT_RUNTIME_ID;if(t===`codex-app-server`)return`codex`;return t}function normalizeOptionalAgentRuntimeId(e){if(typeof e!==`string`)return;const t=e.trim().toLowerCase();return t?normalizeEmbeddedAgentRuntime(t):void 0}function isDefaultAgentRuntimeId(e){return e===void 0||e===`auto`||e==="default"}export{normalizeOptionalAgentRuntimeId as a,normalizeEmbeddedAgentRuntime as i,OPENCLAW_AGENT_RUNTIME_ID as n,isDefaultAgentRuntimeId as r,AUTO_AGENT_RUNTIME_ID as t};