feat(platform): Phase 118 scheduled CSV mesh + auditExportCsvMeta view (v0.8.82)
_runScheduledAuditExportIfDue now calls pushAuditExportCsvToMesh when pushSignedCsvToMesh is enabled. View exposes auditExportCsvMeta for the audit modal HMAC signature badge. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -6452,9 +6452,24 @@ class PearcordPlatform extends EventEmitter {
|
||||
limit: 200,
|
||||
gossip: true
|
||||
})
|
||||
let csvMesh = null
|
||||
if (schedule.pushSignedCsvToMesh !== false) {
|
||||
try {
|
||||
csvMesh = await this.pushAuditExportCsvToMesh({
|
||||
filter: schedule.filter,
|
||||
limit: 200
|
||||
})
|
||||
await this.deliveryReceipts.setAuditExportSchedule({
|
||||
lastCsvMeshPushAt: csvMesh.exportedAt || Date.now()
|
||||
})
|
||||
} catch {
|
||||
csvMesh = null
|
||||
}
|
||||
}
|
||||
await this.deliveryReceipts.setAuditExportSchedule({ lastExportAt: out.exportedAt })
|
||||
this.emit('audit-export-scheduled', { ...out, schedule })
|
||||
return out
|
||||
const nextSchedule = await this.deliveryReceipts.getAuditExportSchedule()
|
||||
this.emit('audit-export-scheduled', { ...out, csvMesh, schedule: nextSchedule })
|
||||
return { ...out, csvMesh, schedule: nextSchedule }
|
||||
}
|
||||
|
||||
async _initWorkerReleaseHints () {
|
||||
@@ -8030,6 +8045,7 @@ class PearcordPlatform extends EventEmitter {
|
||||
let automationDigestExportSchedule = null
|
||||
let automationDigestExportSnapshots = []
|
||||
let auditExportArchives = []
|
||||
let auditExportCsvMeta = null
|
||||
let automationScheduleDashboard = null
|
||||
let automationHealthDashboard = null
|
||||
let automationDigestNotifyPrefs = null
|
||||
@@ -8045,6 +8061,7 @@ class PearcordPlatform extends EventEmitter {
|
||||
automationDigestExportSchedule = await this.getAutomationDigestExportSchedule()
|
||||
automationDigestExportSnapshots = await this.listAutomationDigestExportSnapshots(3)
|
||||
auditExportArchives = await this.listAuditExportArchives(6)
|
||||
auditExportCsvMeta = await this.getAuditExportCsvExport().catch(() => null)
|
||||
automationHealthDashboard = await this.getAutomationHealthDashboard()
|
||||
automationScheduleDashboard = automationHealthDashboard
|
||||
automationDigestNotifyPrefs = await this.getAutomationDigestNotifyPrefs()
|
||||
@@ -8225,6 +8242,7 @@ class PearcordPlatform extends EventEmitter {
|
||||
automationDigestExportSchedule,
|
||||
automationDigestExportSnapshots,
|
||||
auditExportArchives,
|
||||
auditExportCsvMeta,
|
||||
automationScheduleDashboard,
|
||||
automationHealthDashboard,
|
||||
automationDigestNotifyPrefs,
|
||||
|
||||
Reference in New Issue
Block a user