journey.py 948 B

12345678910111213141516171819202122
  1. """``hermes journey`` subcommand parser."""
  2. from __future__ import annotations
  3. import logging
  4. def build_journey_parser(subparsers) -> None:
  5. """Attach the ``journey`` subcommand to ``subparsers``."""
  6. journey_parser = subparsers.add_parser(
  7. "journey", aliases=["learning", "memory-graph"],
  8. help="Timeline of learned skills + memories over time",
  9. description="A terminal rendition of the desktop Star Map / Memory Graph: a "
  10. "timeline bar chart of learned skills and memories over time "
  11. "(oldest at top, newest at bottom) plus a playable constellation "
  12. "scrubber. Mirrors the TUI `/journey` overlay and the desktop panel.")
  13. try:
  14. from hermes_cli.journey import register_cli as _register_journey_cli
  15. _register_journey_cli(journey_parser)
  16. except Exception as _exc:
  17. logging.getLogger("hermes_cli.main").debug("journey CLI wiring failed: %s", _exc)