Skip to main content

Module summary

Module summary 

Source
Expand description

Pre-Publish Summary generation for pages export.

Generates a comprehensive summary of all content that will be published, enabling users to review and modify their selection before proceeding.

§Overview

The summary provides:

  • Quantitative metrics: Total conversations, messages, and estimated size
  • Temporal scope: Date range and activity histogram
  • Content categorization: Breakdown by workspace and agent
  • Security status: Encryption configuration and secret scan results

§Example

use crate::pages::summary::{PrePublishSummary, SummaryGenerator};

let generator = SummaryGenerator::new(&db_conn);
let summary = generator.generate(None)?;
println!("{}", summary.render_overview());

Structs§

AgentSummaryItem
Summary of an agent’s content in the export.
DateHistogramEntry
Entry in the date histogram.
DateRange
Date range with optional bounds.
EncryptionSummary
Summary of encryption configuration.
ExclusionSet
Set of exclusions to apply before export.
KeySlotSummary
Summary of a key slot.
PrePublishSummary
Pre-publish summary containing all information about content to be exported.
ScanReportSummary
Summary of secret scan results.
SummaryFilters
Filters for summary generation.
SummaryGenerator
Generator for pre-publish summaries.
WorkspaceSummaryItem
Summary of a workspace’s content in the export.

Enums§

KeySlotType
Type of key slot.

Functions§

estimate_compressed_size
Estimate compressed size from character count. Uses rough heuristic: ~40% of original after compression + encryption overhead.
format_size
Format a byte size for display.