Application pages JS, service worker, CSS, and the e2e/unit test tree
were rewritten by the same formatter pass as the vendor files: quotes,
wrapping, trailing commas, and import sort. Viewer behavior is
unchanged.
- src/pages_assets/*.js, styles.css, sw.js, virtual-list.test.html
- tests/e2e, tests/html_export, tests/pages-*.mjs, tests/performance
- tests/accessibility, tests/playwright.config.ts
Co-authored-by: Grok <noreply@x.ai>
Major expansion of the html_export module for self-contained session exports:
Encryption (Web Crypto compatible):
- Add PBKDF2 key derivation for password-based encryption
- Implement AES-GCM encryption matching browser Web Crypto API
- Support optional encryption with graceful degradation
- Add pbkdf2 dependency for key derivation
Template & Rendering:
- Complete HtmlExporter with full template generation
- Add sophisticated CSS with dark/light theme support
- Implement message rendering with syntax highlighting
- Add search, filtering, and navigation JavaScript
- Support tool invocation collapsible sections
Filename Generation:
- Smart cross-platform filename sanitization
- Configurable components (date, agent, project)
- Max length truncation with word boundaries
Test Infrastructure:
- Add Node.js test harness for encryption compatibility
- Create test fixtures with edge cases and real sessions
- Add package.json for JS test dependencies
Enable 'encryption' feature by default in Cargo.toml.
Co-Authored-By: Claude <noreply@anthropic.com>