pets.py 829 B

123456789101112131415161718192021
  1. """``hermes pets`` subcommand parser."""
  2. from __future__ import annotations
  3. import logging
  4. def build_pets_parser(subparsers) -> None:
  5. """Attach the ``pets`` subcommand to ``subparsers``."""
  6. pets_parser = subparsers.add_parser(
  7. "pets", help="Browse, install, and select petdex animated pets",
  8. description="Petdex (https://github.com/crafter-station/petdex) is a public "
  9. "gallery of animated sprite pets for coding agents. Install one "
  10. "and Hermes shows it reacting to agent activity across the CLI, "
  11. "TUI, and desktop app.")
  12. try:
  13. from hermes_cli.pets import register_cli as _register_pets_cli
  14. _register_pets_cli(pets_parser)
  15. except Exception as _exc:
  16. logging.getLogger("hermes_cli.main").debug("pets CLI wiring failed: %s", _exc)