feat(sessions): export sessions to Markdown/QMD - #59542
Conversation
|
Context / rationale: This PR adds a readable Markdown/QMD export path for Hermes sessions as a safer alternative to going straight from SQLite retention pressure to destructive pruning. Why this matters:
Safety choices in this PR:
This keeps the dangerous operation narrow while making the safe archival path easy. |
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR #59542 by @web3blind.
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR #59542 by @web3blind.
|
Merged via PR #60186 (#60186) — thanks @web3blind! Your commit was cherry-picked onto current main with your authorship preserved in git log. During salvage we restructured the surface per our conventions: instead of a separate |
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR NousResearch#59542 by @web3blind.
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR NousResearch#59542 by @web3blind.
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR NousResearch#59542 by @web3blind.
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR NousResearch#59542 by @web3blind.
…format' Replaces the parallel export-md subcommand from the salvaged commit with a --format jsonl|md|qmd flag on the existing export subcommand, so all session export formats share one surface. Adds AUTHOR_MAP entry. Salvage follow-up for PR NousResearch#59542 by @web3blind.
Summary
hermes sessions export-mdfor Markdown/QMD session exports--delete-after-verified --yesflow that verifies the export before deletionVerification
python3 -m py_compile hermes_cli/session_export_md.py hermes_cli/main.py hermes_state.pyscripts/run_tests.sh tests/hermes_state/test_session_md_export.py tests/hermes_cli/test_session_export_md.py tests/hermes_cli/test_sessions_export_md_cli.py tests/hermes_cli/test_sessions_delete.py tests/test_hermes_state.py— 349 passed, 0 failedgit diff --check