feat(ui-flow): IPC for receipt retention and worker script export

Handle set-automation-receipt-retention and export-integration-worker-script
messages from server settings automation panel (Phase 90).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 03:44:53 -04:00
co-authored by Cursor
parent 0d1ff0564e
commit 1d505be532
+14
View File
@@ -100,6 +100,20 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'set-automation-receipt-retention') {
await platform.setAutomationReceiptRetention(msg.retention || {})
pushState()
return true
}
if (t === 'export-integration-worker-script') {
const script = platform.buildIntegrationWorkerScript(msg.templateId || 'message-logger')
send({
type: 'integration-worker-script',
templateId: msg.templateId,
script
})
return true
}
if (t === 'set-announcement-crosspost') {
await platform.setAnnouncementCrosspostTargets(
msg.channelId,