UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 844 B
import{a as isStandaloneRuntimeExecutable}from"./cli-invocation-Covx3kvQ.mjs";import{t as isBunRuntime}from"./runtime-binary-DNstBs1K.mjs"; //!src/commands/daemon-runtime.ts const DEFAULT_GATEWAY_DAEMON_RUNTIME=`node`;const GATEWAY_DAEMON_RUNTIME_OPTIONS=[{value:`node`,label:`Node`,hint:`Primary and recommended runtime for managed services.`},{value:`bun`,label:`Bun 1.4.4+`,hint:`Requires Bun 1.4.4 or newer with WAL-reset-safe node:sqlite.`}];function isGatewayDaemonRuntime(e){return e===`bun`||e===`node`||e===`standalone`}function resolveGatewayDaemonRuntime(e){const t=e?.[0]??``;if(isStandaloneRuntimeExecutable(t))return`standalone`;return isBunRuntime(t)?`bun`:DEFAULT_GATEWAY_DAEMON_RUNTIME}export{resolveGatewayDaemonRuntime as i,GATEWAY_DAEMON_RUNTIME_OPTIONS as n,isGatewayDaemonRuntime as r,DEFAULT_GATEWAY_DAEMON_RUNTIME as t};