Files
freemo 9aa73cec03 feat(tui): implement session export/import (JSON + Markdown)
Add Markdown export format to the session export/import system.

- Add Session.as_markdown_export() domain method that renders a
  human-readable Markdown document (metadata table, messages, token
  usage, linked plans)
- Extract render_session_markdown() and build_session_from_export_dict()
  into a dedicated session_markdown module to keep file sizes manageable
- Extend 'agents session export' CLI command with --format/-f option
  accepting 'json' (default, re-importable) or 'markdown' (human-readable)
- Add Behave BDD tests covering: Markdown export to stdout/file, --force
  overwrite, invalid format rejection, domain method structure, and
  JSON round-trip (export then import preserves actor, messages, namespace)

JSON export/import round-trip fidelity is unchanged; Markdown format is
intentionally read-only (not re-importable).

ISSUES CLOSED: #1004
2026-04-02 07:51:09 +00:00
..
2026-02-23 03:11:12 +00:00