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