vault.py 809 B

123456789101112131415161718192021
  1. """``hermes vault`` subcommand parser."""
  2. from __future__ import annotations
  3. def build_vault_parser(subparsers) -> None:
  4. """Attach the local encrypted autofill vault subcommand."""
  5. vault_parser = subparsers.add_parser(
  6. "vault",
  7. help="Manage the local encrypted autofill vault (add/list/rm credentials)",
  8. description=(
  9. "Store login credentials in a locally encrypted vault. The agent "
  10. "sees handles and login identifiers (metadata); passwords are "
  11. "injected server-side by browser_vault on the exact origin "
  12. "they were saved for and never enter the conversation."
  13. ),
  14. )
  15. from hermes_cli.vault import register_cli, vault_command
  16. register_cli(vault_parser)
  17. vault_parser.set_defaults(func=vault_command)