+
    jHàjÊ  ã                  ó.   € R t ^ RIHt ^ RIHt R R ltR# )z%``hermes webhook`` subcommand parser.)Úannotations)ÚCallablec               ó    € V ^8„  d   QhRRRR/# )é   Úcmd_webhookr   ÚreturnÚNone© )Úformats   "ÚC/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/webhook.pyÚ__annotate__r      s   € ÷ ;2ñ ;2°Xð ;2À$ñ ;2ó    c               ó˜  € V P                  RRRR7      pVP                  RR7      pVP                  RR.R	R
7      pVP                  RRR7       VP                  RRRR7       VP                  RRRR7       VP                  RRRR7       VP                  RRRR7       VP                  RRRR7       VP                  RRRR7       VP                  RRRR7       VP                  RR R!R"R#R$7       VP                  R%R&R'R(7       VP                  R)R&R*R(7       VP                  R+RR,R7       VP                  R-RR.R7       VP                  R/R0.R1R
7       VP                  R2R3.R4R
7      pVP                  RR5R7       VP                  R6R7R7      pVP                  RR8R7       VP                  R9RR:R7       VP                  VR;7       R!# )<z4Attach the ``webhook`` subcommand to ``subparsers``.Úwebhookz$Manage dynamic webhook subscriptionszPCreate, list, and remove webhook subscriptions for event-driven agent activation)ÚhelpÚdescriptionÚwebhook_action)ÚdestÚ	subscribeÚaddzCreate a webhook subscription)Úaliasesr   Únamez*Route name (used in URL: /webhooks/<name>))r   z--promptÚ z0Prompt template with {dot.notation} payload refs)Údefaultr   z--eventsz%Comma-separated event types to acceptz--descriptionzWhat this subscription doesz--skillsz#Comma-separated skill names to loadz	--deliverÚlogz4Delivery target: log, telegram, discord, slack, etc.z--deliver-chat-idz*Target chat ID for cross-platform deliveryz--secretz'HMAC secret (auto-generated if omitted)z--route-profileÚroute_profileNÚPROFILEao  Bind the route to a multiplexed profile: only POSTs to /p/PROFILE/webhooks/<name> are accepted and the agent runs as that profile (default: default; kept on update). Changing an existing route's profile rotates its HMAC secret unless a different --secret is supplied. Distinct from the global -p/--profile, which picks the gateway whose subscriptions file is written.)r   r   Úmetavarr   z--deliver-onlyÚ
store_trueuŠ   Skip the agent â€” deliver the rendered prompt directly as the message. Zero LLM cost. Requires --deliver to be a real target (not 'log').)Úactionr   z--mirror-to-sessionz¬Also write each delivered message into the target chat's session, so replying to it in that chat has context. Only for sources whose content you trust in your conversation.z--scriptz£Filter/transform script under ~/.hermes/scripts/. The route payload is passed as JSON on stdin; empty stdout, [SILENT], or a nonzero exit code ignores the webhook.z
--cron-joba(  Fire an existing cron job (by ID or name) when this route receives an event, instead of starting a fresh agent run. The rendered --prompt template is passed to the job as transient per-run context; the job's own prompt, skills, and delivery settings apply. Mutually exclusive with --deliver-only.ÚlistÚlszList all dynamic subscriptionsÚremoveÚrmzRemove a subscriptionzSubscription name to removeÚtestz#Send a test POST to a webhook routezSubscription name to testz	--payloadz,JSON payload to send (default: test payload))Úfunc)Ú
add_parserÚadd_subparsersÚadd_argumentÚset_defaults)Ú
subparsersr   Úwebhook_parserÚwebhook_subparsersÚwh_subÚwh_rmÚwh_tests   &$     r   Úbuild_webhook_parserr0      sW  € à×*Ñ*ØÐ>Øfð +ó €Nð (×6Ñ6Ð<LÐ6ÓMÐà×*Ñ*Ø˜e˜WÐ+Jð +ó L€Fà
×Ñ˜Ð%QÐÔRØ
×ÑØ˜BÐ%Wð ô Yà
×Ñ˜
¨BÐ5\ÐÔ]Ø
×Ñ˜°Ð:WÐÔXØ
×Ñ˜
¨BÐ5ZÐÔ[Ø
×ÑØ˜UÐ)_ð ô aà
×ÑØ RÐ.Zð ô \à
×Ñ˜
¨BÐ5^ÐÔ_Ø
×ÑØ ¸Àyðð ô ð ×ÑØ ðð ô ð
 ×ÑØ lðcð ô dð ×ÑØ˜Bð1ð ô 2ð
 ×ÑØ˜bðð ô  ð ×!Ñ! &°4°&Ð?_Ð!Ô`à×)Ñ)¨(¸T¸FÐI`Ð)Óa€EØ	×Ñ�vÐ$AÐÔBà ×+Ñ+¨FÐ9^Ð+Ó_€GØ×Ñ˜Ð&AÐÔBØ×ÑØ˜RÐ&Tð ô Vð ×Ñ [ÐÖ1r   N)Ú__doc__Ú
__future__r   Útypingr   r0   r	   r   r   Ú<module>r4      s   ðÙ +å "å ÷;2r   