3 Commits

Author SHA1 Message Date
Cass Agent f85dcbe20b style(js): prettier wrap pages assets, e2e tests, and CSS
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>
2026-09-21 10:07:26 -04:00
Dicklesworthstone 10bb5cb99b fix: Miscellaneous improvements and test updates
src/storage/sqlite.rs:
- Minor query optimization

TESTING.md:
- Update testing documentation

tests/html_export/html_export_encryption.test.js:
- Adjust test expectations for encryption changes

tests/load_archive_size.rs:
- Fix test assertions

.beads/last-touched:
- Sync beads timestamp

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-25 18:37:41 -05:00
Dicklesworthstone a172b1aba8 feat(html): Complete HTML export module with encryption and test infrastructure
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>
2026-01-25 18:04:40 -05:00