feat(ui-flow): fetch-audit-export-archive and run-worker-install-trial IPC (Phase 101)

Wire archive download and in-process worker trial sidecar messages.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 04:49:11 -04:00
co-authored by Cursor
parent 8e8691adcf
commit 16b2a4065b
+15
View File
@@ -170,6 +170,21 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
send({ type: 'worker-install-plan', plan })
return true
}
if (t === 'fetch-audit-export-archive') {
const out = await platform.exportAuditExportArchive(msg.archiveId, {
format: msg.format
})
send({ type: 'audit-export-archive-body', ...out })
return true
}
if (t === 'run-worker-install-trial') {
const result = await platform.runIntegrationWorkerTrial({
templateId: msg.templateId,
holdMs: msg.holdMs
})
send({ type: 'worker-install-trial', result })
return true
}
if (t === 'export-integration-worker-script') {
const script = platform.buildIntegrationWorkerScript(msg.templateId || 'message-logger')
send({