Ë
    ãß²jG
  ã                   óÈ   — d Z ddlmZ ddlmZmZ dZdedefd„Z ej                  dd	dd
ddd e
e«      ddœidgdœdœd„ d¬«       ddlZdd
ddd e
e«      ddœidgdœdœZy)a  Reveal/focus a pane in the Hermes desktop GUI (``pane.reveal`` via ``desktop_ui``).

The renderer runs each pane's own reveal path and only acts on the active window, so
a background turn never moves the user's focus. URLs/files go through `desktop_preview`.
é    )Ú
desktop_ui)ÚregistryÚ
tool_error)ÚchatÚfilesÚterminalÚreviewÚsessionsÚpaneÚreturnc           	      óÞ   — | xs dj                  «       j                  «       }|t        vr"t        ddj	                  t        «      › d�«      S t        j                  dd|id|› d�d	d
|dœ«      S )z1Ask the desktop GUI to reveal and focus ``pane``.Ú zpane must be one of: z, ú.zpane.revealr   zFailed to focus the z pane: z7Pane focus is only available in the Hermes desktop app.T)Úsuccessr   )ÚstripÚlowerÚPANESr   Újoinr   Úemit_or_error)r   Únames     ú:/home/ubuntu/.hermes/hermes-agent/tools/focus_pane_tool.pyÚfocus_pane_toolr      sy   € àŠJ�B×ÑÓ×%Ñ%Ó'€DØ”5ÑÜÐ1°$·)±)¼EÓ2BÐ1CÀ1ÐEÓFÐFÜ×#Ñ#Ø˜ �~Ð)=¸d¸VÀ7Ð'KØAÈtÐ]aÑCbódð dó    Ú
focus_paner   z°Reveal and focus a Hermes desktop pane when the user asks to see it: chat, files, terminal, review (git diff), or sessions. For URLs/files use the desktop_preview tool instead.ÚobjectÚstringzWhich pane to reveal.)ÚtypeÚenumÚdescription)r   Ú
propertiesÚrequired)r   r   Ú
parametersc                 ó:   — t        | j                  dd«      ¬«      S )Nr   r   )r   )r   Úget)ÚargsÚkws     r   ú<lambda>r'   .   s   € œ°D·H±H¸VÀRÓ4HÔI€ r   u   ðŸªŸ)r   ÚtoolsetÚschemaÚhandlerÚemojiN)Ú__doc__Útoolsr   Útools.registryr   r   r   Ústrr   ÚregisterÚlistÚjsonÚFOCUS_PANE_SCHEMA© r   r   ú<module>r5      sÈ   ðñõ ß /à;€ðd˜#ð d #ó dð €× Ñ Ø	Øàð:ð
 àØ$Ù  ›KØ#:ñðð  ˜ñ

ññ& JØ
õ/ó> ð ð	6ð
 àØ Ù˜U›Ø6ñð
ð �Hñ
ñÑ r   