feat(ui-flow): dry-run-automation-hook IPC for hook editor preview

Return automation-hook-dry-run payload to UI after simulating sample
APP_EVENT match against hook filters (Phase 91).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 03:48:33 -04:00
co-authored by Cursor
parent 1d505be532
commit 9068ef8b5c
+5
View File
@@ -114,6 +114,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'dry-run-automation-hook') {
const out = await platform.dryRunAutomationHook(msg.hookId, msg.eventType)
send({ type: 'automation-hook-dry-run', ...out })
return true
}
if (t === 'set-announcement-crosspost') {
await platform.setAnnouncementCrosspostTargets(
msg.channelId,