
    nSj                    *    d Z ddlmZ ddlmZ d
dZd	S )z``hermes webhook`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callablecmd_webhookr   returnNonec                  |                      ddd          }|                    d          }|                     ddgd	
          }|                    dd           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    ddd           |                    dd d!"           |                    d#dd$           |                     d%d&gd'
           |                     d(d)gd*
          }|                    dd+           |                     d,d-          }|                    dd.           |                    d/dd0           |                    |1           d2S )3z4Attach 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--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--scriptzFilter/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.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))funcN)
add_parseradd_subparsersadd_argumentset_defaults)
subparsersr   webhook_parserwebhook_subparserswh_subwh_rmwh_tests          @/home/ice/.hermes/hermes-agent/hermes_cli/subcommands/webhook.pybuild_webhook_parserr(      s   
  **3f +  N
 (66<L6MM**eW+J +  F %QRRR
B%W     B%L     :WXXX
B%J     C    
 9    
 B%N          1     !!%E "    ))4&'> *  E 
v$ABBB ++: ,  G &ABBBR&T     [11111    N)r   r   r   r   )__doc__
__future__r   typingr   r(    r)   r'   <module>r.      sY     # " " " " "      G2 G2 G2 G2 G2 G2r)   