UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 861 B
import { t as formatCliCommand } from "./command-format-CqdwUgPk.mjs"; import { t as quoteCliArg } from "./quote-cli-arg-J7A9UE6m.mjs"; import { t as note } from "./note-CnLgHvug.mjs"; import { n as countFailedChannelIngressQueueEntries } from "./ingress-queue-health-jN3Lguj4.mjs"; //#region src/commands/doctor-channel-ingress.ts async function noteChannelIngressDeadLetters() { const e = await countFailedChannelIngressQueueEntries(); const t = e[0]; if (!t) return; const n = e.map((e) => `- ${e.channelId}/${e.accountId}: ${e.count} dead-lettered ingress event${e.count === 1 ? "" : "s"}.`); n.push(`- Inspect with ${formatCliCommand(`openclaw channels dead-letters list --channel ${quoteCliArg(t.channelId)} --account ${quoteCliArg(t.accountId)}`)}.`); note(n.join("\n"), "Channel ingress"); } //#endregion export { noteChannelIngressDeadLetters };