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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user