UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) 881 B
import { t as resolveGatewayProbeTarget } from "./probe-target-4_-2qIux.js"; import { r as resolveGatewayProbeAuthSafeWithSecretInputs } from "./probe-auth-DoCLHThw.js"; import { t as pickGatewaySelfPresence } from "./gateway-presence-f10JpTvH.js"; //#region src/commands/status.gateway-probe.ts /** Resolves gateway probe auth plus any non-secret warning about credential lookup. */ async function resolveGatewayProbeAuthResolution(cfg) { return resolveGatewayProbeAuthSafeWithSecretInputs({ cfg, mode: resolveGatewayProbeTarget(cfg).mode, env: process.env }); } /** Resolves only gateway probe auth material for callers that do not display warnings. */ async function resolveGatewayProbeAuth(cfg) { return (await resolveGatewayProbeAuthResolution(cfg)).auth; } //#endregion export { pickGatewaySelfPresence, resolveGatewayProbeAuth, resolveGatewayProbeAuthResolution };