Expand description
Diagnostic bundle collection and ZIP export.
collect_bundle gathers relevant files, applies redaction to every text
file, compresses them into a ZIP, and returns a BundleRef that the
caller can pass to export_bundle to move the ZIP to a user-chosen path.
§OCP
BundleConfigis open for new fields (e.g.include_perf_traces).- Bundle composition is one function — extending content sources is one
new branch in
collect_bundle. - Redaction is applied once per file before zipping — no leak path.
Structs§
- AppPaths
- Resolved file-system paths used by the bundle collector.
- Bundle
Config - Which files / data categories to include in the bundle.
- Bundle
Ref - Reference to a collected (but not yet exported) bundle.
Functions§
- add_
text_ 🔒file_ to_ zip - Read a file as UTF-8 text, apply redaction, and write it into the ZIP.
- collect_
bundle - Collect diagnostic files, redact them, zip them, and return a
BundleRef. - export_
bundle - Copy (and then clean up) the collected ZIP to a user-chosen destination.