zed icon indicating copy to clipboard operation
zed copied to clipboard

feat: add --html flag for interactive permission trace visualization

Open ivanauth opened this issue 4 months ago • 1 comments

Summary

This PR adds --html and --html-output flags to the zed permission check and zed permission check-bulk commands. These options generate interactive HTML visualizations of permission traces, making it easier to explore and share trace results.

Key Updates

TracePresentation helper – Shared logic between the HTML and console renderers to keep icons and styling consistent.

Self-contained output – Includes embedded CSS using the VS Code Dark+ theme (with auto light mode), no external assets required.

Memory pooling – Uses a sync.Pool for efficient memory reuse during bulk operations.

Examples

Added example outputs in docs/html-examples/ covering simple, nested, caveated, and bulk trace cases.

ivanauth avatar Oct 22 '25 04:10 ivanauth