
    `gj                    (    d Z ddlmZ ddlmZ ddZy)z``hermes webhook`` subcommand parser.

Extracted verbatim from ``hermes_cli/main.py:main()`` (god-file Phase 2).
Handler injected to avoid importing ``main``.
    )annotations)Callablec                  | j                  ddd      }|j                  d      }|j                  ddgd	
      }|j                  dd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  ddd       |j                  dd d!"       |j                  d#dd$       |j                  d%d&gd'
       |j                  d(d)gd*
      }|j                  dd+       |j                  d,d-      }|j                  dd.       |j                  d/dd0       |j                  |1       y2)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)
subparserscmd_webhookwebhook_parserwebhook_subparserswh_subwh_rmwh_tests          Q/root/.hermes/venv/lib/python3.12/site-packages/hermes_cli/subcommands/webhook.pybuild_webhook_parserr&      s'   
  **3f + N
 (66<L6M**eW+J + F %QR
B%W   B%L   :WX
B%J   C  
 9  
 B%N      1   !!%E "  ))4&'> * E 
v$AB ++: , G &ABR&T   [1    N)r   r   returnNone)__doc__
__future__r   typingr   r&    r'   r%   <module>r.      s    # G2r'   