Expand E2E testing coverage with export functionality tests,
clipboard interaction tests, and improved test utilities.
- Add tests/e2e/exports/ directory for export testing
- Create copy-clipboard.spec.ts for clipboard operations
- Enhance password-flow.spec.ts and basic-render.spec.ts
- Update global-setup.ts and test-utils.ts
- Add .env.test for test environment configuration
- Update playwright.config.ts and package-lock.json
Co-Authored-By: Claude <noreply@anthropic.com>
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>