Ë
    ÿ`gj  ã                  ó4   — d Z ddlmZ ddlmZ ddlmZ dd„Zy)uâ   ``hermes cron`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` â€” same arguments, same
``func=cmd_cron`` dispatch. The handler is injected so this module does not
import ``main`` (cycle avoidance).
é    )Úannotations)ÚCallable)Úadd_accept_hooks_flagc               ó   — | j                  ddd¬«      }|j                  d¬«      }|j                  dd¬	«      }|j                  d
dd¬«       |j                  ddgd¬«      }|j                  dd¬	«       |j                  ddd¬«       |j                  dd¬	«       |j                  dd¬	«       |j                  dt        d¬«       |j                  dd d!d"¬#«       |j                  d$d%¬	«       |j                  d&d'dd(d)¬*«       |j                  d+d,¬	«       |j                  d-d.¬	«      }|j                  d/d0¬	«       |j                  d1d2¬	«       |j                  d3d4¬	«       |j                  dd5¬	«       |j                  dd6¬	«       |j                  dt        d7¬«       |j                  dd d!d8¬#«       |j                  d9d:d!d;¬#«       |j                  d<d=d!d>¬#«       |j                  d?dd@¬«       |j                  d$dA¬	«       |j                  d&d'dBdCdDdE¬F«       |j                  dGd'dBd(dH¬I«       |j                  d+dJ¬	«       |j                  dKdL¬	«      }|j                  d/dM¬	«       |j                  dNdO¬	«      }|j                  d/dP¬	«       |j                  dQdR¬	«      }	|	j                  d/dS¬	«       t	        |	«       |j                  dTdUdVgdW¬«      }
|
j                  d/dX¬	«       |j                  dYdZ¬	«       |j                  d[d\gd]¬«      }|j                  d/dd^¬«       |j                  d_t        d`da¬b«       |j                  dcdd¬	«      }t	        |«       t	        |«       |j                  |¬e«       yD)fzGAttach the ``cron`` subcommand (and its sub-actions) to ``subparsers``.ÚcronzCron job managementzManage scheduled tasks)ÚhelpÚdescriptionÚcron_command)ÚdestÚlistzList scheduled jobs)r   z--allÚ
store_truezInclude disabled jobs)Úactionr   ÚcreateÚaddzCreate a scheduled job)Úaliasesr   Úschedulez/Schedule like '30m', 'every 2h', or '0 9 * * *'Úpromptú?z2Optional self-contained prompt or task instruction)Únargsr   z--namez Optional human-friendly job namez	--deliverzNDelivery target: origin, local, telegram, discord, signal, or platform:chat_idz--repeatzOptional repeat count)Útyper   z--skillÚskillsÚappendz.Attach a skill. Repeat to add multiple skills.)r   r   r   z--scriptzûPath to a script under ~/.hermes/scripts/. Default mode: script stdout is injected into the agent's prompt each run. With --no-agent: the script IS the job and its stdout is delivered verbatim. .sh/.bash files run via bash, everything else via Python.z
--no-agentÚno_agentFu«   Skip the LLM entirely â€” run --script on schedule and deliver its stdout directly. Empty stdout = silent. Classic watchdog pattern (memory alerts, disk alerts, CI pings).)r   r   Údefaultr   z	--workdirzÜAbsolute path for the job to run from. Injects AGENTS.md / CLAUDE.md / .cursorrules from that directory and uses it as the cwd for terminal/file/code_exec tools. Omit to preserve old behaviour (no project context files).ÚeditzEdit an existing scheduled jobÚjob_idzJob ID to editz
--schedulezNew schedulez--promptzNew prompt/task instructionzNew job namezNew delivery targetzNew repeat countzIReplace the job's skills with this set. Repeat to attach multiple skills.z--add-skillÚ
add_skillsz?Append a skill without replacing the existing list. Repeatable.z--remove-skillÚremove_skillsz-Remove a specific attached skill. Repeatable.z--clear-skillsz'Remove all attached skills from the jobz°Path to a script under ~/.hermes/scripts/. Pass empty string to clear. With --no-agent the script IS the job; otherwise its stdout is injected into the agent's prompt each run.Ústore_constTNzVEnable no-agent mode on this job (requires --script or an existing script on the job).)r   r   Úconstr   r   z--agentzDDisable no-agent mode on this job (reverts to LLM-driven execution).)r   r   r    r   zqAbsolute path for the job to run from (injects AGENTS.md etc. and sets terminal cwd). Pass empty string to clear.ÚpausezPause a scheduled jobzJob ID to pauseÚresumezResume a paused jobzJob ID to resumeÚrunz$Run a job on the next scheduler tickzJob ID to triggerÚremoveÚrmÚdeletezRemove a scheduled jobzJob ID to removeÚstatusz"Check if cron scheduler is runningÚrunsÚhistoryzShow durable execution attemptszOptional job ID filterz--limité   zRows to show (1-500))r   r   r   ÚtickzRun due jobs once and exit)Úfunc)Ú
add_parserÚadd_subparsersÚadd_argumentÚintr   Úset_defaults)Ú
subparsersÚcmd_cronÚcron_parserÚcron_subparsersÚ	cron_listÚcron_createÚ	cron_editÚ
cron_pauseÚcron_resumeÚcron_runÚcron_removeÚ	cron_runsÚ	cron_ticks                úN/root/.hermes/venv/lib/python3.12/site-packages/hermes_cli/subcommands/cron.pyÚbuild_cron_parserr@      s†  € à×'Ñ'ØÐ*Ð8Pð (ó €Kð "×0Ñ0°nÐ0ÓE€Oð  ×*Ñ*¨6Ð8MÐ*ÓN€IØ×Ñ˜7¨<Ð>UÐÔVð "×,Ñ,Ø˜5˜'Ð(@ð -ó €Kð ×ÑØÐJð ô ð ×ÑØ˜Ð"Vð ô ð ×Ñ˜XÐ,NÐÔOØ×ÑØØ]ð ô ð ×Ñ˜Z¬cÐ8OÐÔPØ×ÑØØØØ=ð	 ô ð ×ÑØðð ô 	ð ×ÑØØØØð>ð ô 
ð ×ÑØð lð ô ð  ×*Ñ*ØÐ5ð +ó €Ið ×Ñ˜8Ð*:ÐÔ;Ø×Ñ˜<¨nÐÔ=Ø×Ñ˜:Ð,IÐÔJØ×Ñ˜8¨.ÐÔ9Ø×Ñ˜;Ð-BÐÔCØ×Ñ˜:¬CÐ6HÐÔIØ×ÑØØØØXð	 ô ð ×ÑØØØØNð	 ô ð ×ÑØØØØ<ð	 ô ð ×ÑØØØ6ð ô ð
 ×ÑØð9ð ô ð ×ÑØØØØØð+ð ô 
ð ×ÑØØØØØSð ô ð ×ÑØð Að ô ð !×+Ñ+¨GÐ:QÐ+ÓR€JØ×Ñ˜HÐ+<ÐÔ=à!×,Ñ,¨XÐ<QÐ,ÓR€KØ×Ñ˜XÐ,>ÐÔ?à×)Ñ)ØÐ:ð *ó €Hð ×Ñ˜(Ð)<ÐÔ=Ü˜(Ô#à!×,Ñ,Ø˜4 Ð*Ð1Ið -ó €Kð ×Ñ˜XÐ,>ÐÔ?ð ×Ñ˜xÐ.RÐÔSà×*Ñ*Ø˜˜Ð*Kð +ó €Ið ×Ñ˜8¨3Ð5MÐÔNØ×Ñ˜9¬3¸ÐAWÐÔXð  ×*Ñ*¨6Ð8TÐ*ÓU€IÜ˜)Ô$Ü˜+Ô&Ø×Ñ (ÐÕ+ó    N)r3   r   ÚreturnÚNone)Ú__doc__Ú
__future__r   Útypingr   Úhermes_cli.subcommands._sharedr   r@   © rA   r?   ú<module>rI      s   ðñõ #å å @ôZ,rA   