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:
@@ -2576,6 +2576,27 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
}
|
||||
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') {
|
||||
pushState()
|
||||
send({ type: 'bot-json-modal-opened' })
|
||||
|
||||
Reference in New Issue
Block a user