UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 816 B
import{g as resolveGatewaySystemdServiceName}from"./constants-tH5Q8GoI.mjs";import{n as runCommandWithTimeout}from"./exec-runner-BiCq-T1F.mjs";import"./exec-c5tqm8tb.mjs";import"./systemd-BLmKdJhz.mjs";import{n as readSystemdServiceRuntime}from"./systemd-runtime-u-YGi-fW.mjs"; //!src/cli/logs-cli.runtime.ts const DEFAULT_LOG_SUBPROCESS_TIMEOUT_MS=1e4;const STDERR_MAX_BYTES=65536;async function execFileUtf8Tail(e,t,n){try{const r=await runCommandWithTimeout([e,...t],{baseEnv:n.env,maxOutputBytes:{stdout:n.maxBytes,stderr:STDERR_MAX_BYTES},timeoutMs:n.timeoutMs??DEFAULT_LOG_SUBPROCESS_TIMEOUT_MS});return{stdout:r.stdout,code:r.code??1,truncated:Boolean(r.stdoutTruncatedBytes)}}catch{return{stdout:``,code:1,truncated:false}}}export{execFileUtf8Tail,readSystemdServiceRuntime,resolveGatewaySystemdServiceName};