Skip to main content

Module payloads

Module payloads 

Source
Expand description

Payload summarization — a faithful port of payloads.ts.

Produces the lightweight JSON the history page ships as data: heavy hunks and rendered blocks are stripped while file-tree and metadata are kept.

Functions§

summarize_file
Clone a file with its heavy hunks cleared and blocks dropped.
summarize_report
Clone a report with both its timeline points and top-level files summarized.
summarize_timeline_point
Clone a timeline point with each file summarized.