feat(phase725): IPC handlers for dedicated bot registry and webhook JSON modals

Wire bot-registry-json-modal-open, clear-bot-registry-export-json, and
webhook-execute-export-json modal lifecycle handlers for Phase 725 UI.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 09:15:18 -04:00
co-authored by Cursor
parent 6caf916e6c
commit e82c111c53
+21
View File
@@ -2576,6 +2576,27 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
return true return true
} }
if (t === 'bot-registry-json-modal-open') {
const out = await platform.onBotRegistryJsonModalOpen?.() || { ok: true }
send({ type: 'bot-registry-json-modal-opened', ...out })
return
}
if (t === 'clear-bot-registry-export-json') {
const out = await platform.clearBotRegistryJsonExports?.()
send({ type: 'bot-registry-export-json-cleared', ...out })
return
}
if (t === 'webhook-execute-export-json-modal-open') {
const out = await platform.onWebhookExecuteExportJsonModalOpen?.() || { ok: true }
send({ type: 'webhook-execute-export-json-modal-opened', ...out })
return
}
if (t === 'clear-webhook-execute-export-json') {
const out = await platform.clearWebhookExecuteExportJsonExports?.()
send({ type: 'webhook-execute-export-json-cleared', ...out })
return
}
if (t === 'bot-json-modal-open') { if (t === 'bot-json-modal-open') {
pushState() pushState()
send({ type: 'bot-json-modal-opened' }) send({ type: 'bot-json-modal-opened' })