feat(tui): implement session export/import (JSON + Markdown) #1392

Merged
freemo merged 1 commits from feature/m8-tui-session-export-json-md into master 2026-04-02 17:30:37 +00:00

1 Commits

Author SHA1 Message Date
freemo 2e24483947 feat(tui): implement session export/import (JSON + Markdown)
CI / benchmark-publish (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 54m45s
CI / status-check (pull_request) Failing after 1s
CI / typecheck (pull_request) Successful in 3m54s
CI / lint (pull_request) Successful in 3m16s
CI / integration_tests (pull_request) Successful in 24m40s
CI / build (pull_request) Successful in 31s
CI / helm (pull_request) Successful in 22s
CI / security (pull_request) Successful in 57s
CI / quality (pull_request) Successful in 3m45s
CI / unit_tests (pull_request) Failing after 6m4s
CI / e2e_tests (pull_request) Failing after 15m11s
CI / coverage (pull_request) Successful in 13m19s
Add Markdown export format for sessions alongside the existing JSON export.
Implement TUI slash command routing for /session:export and /session:import.

- Add Session.as_export_markdown() domain method producing a human-readable
  Markdown transcript (lossy, not importable — for sharing/documentation)
- Extend CLI 'agents session export' with --format flag (json|md)
- Extend TuiCommandRouter._session_command() to handle 'export' and 'import'
  subcommands, delegating to the session service via the DI container
- Add 16 Behave scenarios covering domain model, CLI, and TUI command paths

Closes #1004
2026-04-02 17:16:59 +00:00