UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) 766 B
import { s as loadPublishedGatewayReplyDispatchRuntime } from "./prepared-model-runtime-DgNj94yb.js"; import { m as bindPreparedReplyDispatchRuntime } from "./typing-policy-tkvEtNc0.js"; import { t as getReplyFromConfig } from "./get-reply-DsCSrfQ0.js"; //#region src/infra/heartbeat-runner.runtime.ts async function getHeartbeatReplyFromConfig(...args) { const [ctx, opts, configOverride] = args; const agentId = ctx.AgentId?.trim(); const runtime = agentId ? await loadPublishedGatewayReplyDispatchRuntime({ agentId, abortSignal: opts?.abortSignal }) : void 0; return runtime ? bindPreparedReplyDispatchRuntime(runtime, getReplyFromConfig)(ctx, opts) : getReplyFromConfig(ctx, opts, configOverride); } //#endregion export { getHeartbeatReplyFromConfig };