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§
- Agent
Summary Item - Summary of an agent’s content in the export.
- Date
Histogram Entry - Entry in the date histogram.
- Date
Range - Date range with optional bounds.
- Encryption
Summary - Summary of encryption configuration.
- Exclusion
Set - Set of exclusions to apply before export.
- KeySlot
Summary - Summary of a key slot.
- PrePublish
Summary - Pre-publish summary containing all information about content to be exported.
- Scan
Report Summary - Summary of secret scan results.
- Summary
Filters - Filters for summary generation.
- Summary
Generator - Generator for pre-publish summaries.
- Workspace
Summary Item - Summary of a workspace’s content in the export.
Enums§
- KeySlot
Type - 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.