UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) 848 B
import { a as trimToUndefined } from "./credential-planner-wESmL_7M.js"; import "./credentials-irvgw8Le.js"; //#region src/gateway/explicit-connection-policy.ts function hasExplicitGatewayConnectionAuth(auth) { return Boolean(trimToUndefined(auth?.token) || trimToUndefined(auth?.password)); } /** Returns true when url/auth flags are sufficient and loading OpenClaw config is unnecessary. */ function canSkipGatewayConfigLoad(params) { return !params.config && Boolean(trimToUndefined(params.urlOverride)) && hasExplicitGatewayConnectionAuth(params.explicitAuth); } /** Returns true for command families that intentionally bypass gateway config loading. */ function isGatewayConfigBypassCommandPath(commandPath) { return commandPath[0] === "cron"; } //#endregion export { isGatewayConfigBypassCommandPath as n, canSkipGatewayConfigLoad as t };