+
    „WÝjk  ã                  óF   € R t ^ RIHt ^ RIHt ^ RIHt R R ltR R ltR# )	z$``hermes backup`` subcommand parser.)Úannotations)ÚArgumentTypeError)ÚCallablec               ó    € V ^8„  d   QhRRRR/# )é   ÚvalueÚstrÚreturnÚint© )Úformats   "ÚQC:\Users\johnn\AppData\Local\hermes\hermes-agent\hermes_cli\subcommands\backup.pyÚ__annotate__r   	   s   € ÷ ñ ˜cð  cñ ó    c                óZ   € V P                  4       '       g   \        R 4      h\        V 4      # )z3must be a non-negative integer (0 keeps everything))Ú	isdecimalr   r
   )r   s   &r   Ú_non_negative_keepr   	   s%   € à�?‰?×ÒÜÐ UÓVÐVÜˆu‹:Ðr   c               ó    € V ^8„  d   QhRRRR/# )r   Ú
cmd_backupr   r	   ÚNoner   )r   s   "r   r   r      s   € ÷ 0ñ 0°8ð 0Àñ 0r   c          	     ó  € V P                  RRRR7      pVP                  RRRR7       VP                  R	R
RRR7       VP                  RRRR7       VP                  RR\        ^RRR7       VP                  VR7       R# )z3Attach the ``backup`` subcommand to ``subparsers``.Úbackupz+Back up Hermes home directory to a zip filez¸Create a zip archive of your entire Hermes configuration, skills, sessions, and data (excludes the hermes-agent codebase). Use --quick for a fast snapshot of just critical state files.)ÚhelpÚdescriptionz-oz--outputzGOutput path for the zip file (default: ~/hermes-backup-<timestamp>.zip))r   z-qz--quickÚ
store_truezNQuick snapshot: only critical state files (config, state.db, .env, auth, cron))Úactionr   z-lz--labelz/Label for the snapshot (only used with --quick)z-kz--keepÚNz‡After a full backup, delete older hermes-backup-*.zip files in the output directory beyond the newest N (default 3; 0 keeps everything))ÚtypeÚdefaultÚmetavarr   )ÚfuncN)Ú
add_parserÚadd_argumentr   Úset_defaults)Ú
subparsersr   Úbackup_parsers   &$ r   Úbuild_backup_parserr&      sº   € à×)Ñ)ØÐDðHð *ó I€Mð
 ×ÑØØÐbð ô dð ×ÑØˆi Ø]ð ô _ð ×ÑØˆiÐOð ô Qà×ÑØˆhÔ/¸ÀCðMð ô Nð ×Ñ JÐÖ/r   N)	Ú__doc__Ú
__future__r   Úargparser   Útypingr   r   r&   r   r   r   Ú<module>r+      s   ðÙ *å "å &Ý õ÷0r   