feat(gossip): broadcast HOOK_FAILURE_ALERT on hook delivery failure

Adds gossipHookFailureAlert() and mesh handler for RPC 67 so peers
ingest failed automation hook runs into local HookFailureAlertStore.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 03:58:46 -04:00
co-authored by Cursor
parent ac3f370f27
commit d32d50ec9f
+7
View File
@@ -356,6 +356,9 @@ class PearcordGuild extends EventEmitter {
if (method === RPC.APP_EVENT_RECEIPT) {
this.emit('app-event-receipt', payload)
}
if (method === RPC.HOOK_FAILURE_ALERT) {
this.emit('hook-failure', payload)
}
if (method === RPC.BOT_INSTALL_UPSERT) {
this.emit('bot-install', payload)
}
@@ -631,6 +634,10 @@ class PearcordGuild extends EventEmitter {
broadcastGossip(this, RPC.APP_EVENT_RECEIPT, receipt)
}
gossipHookFailureAlert (alert) {
broadcastGossip(this, RPC.HOOK_FAILURE_ALERT, alert)
}
gossipBotInstall (bot) {
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
}