xerg audit --jsonreturns the local audit summary plus recommendationsxerg audit --push --dry-runandxerg push --dry-runreturn the push payload that would be sent to the Xerg API
@xerg/schemas.
Audit summary JSON
recommendationsare added by the CLI on top of the audit summarysourceFilesanddbPathare present here because this is the local summary formatcomparisonisnullunless a compatible baseline was foundspendByDayandwasteByDayuse UTCYYYY-MM-DDbuckets- Cursor CSV audits also add local-only
pricingCoverageandcursorUsagefields
Multi-source JSON
sources wrapper.
Push payload JSON
Preview the push payload without sending it:- the push payload does not include
sourceFiles,dbPath, orrecommendations - the push payload now includes daily spend and confirmed waste rollups for charting
audit --push --dry-runprints only the payload, not the normal audit reportmeta.environmentislocal,remote, orrailwaydepending on how the audit was run
Wire schema notes
The push payload is a mapped wire contract, not a raw dump of the internal local summary.AuditPushPayloadis the top-level type sent by the CLIWireFindingintentionally excludes internaldetailsWireComparisonincludes the top-line delta fields only- per-workflow deltas, per-model deltas, and recommendation arrays are not part of the push payload
When to use which JSON
- use
audit --jsonfor local automation that needs recommendations or source metadata - use
--push --dry-runwhen you want the exact wire payload that would be sent to the API