+
    lHàj  ã                   ó”   € R t ^ RIt^ RIHt ^ RIHtHt R R ltRRRR	R
RRRRRRRR//RR.//t]P                  ! RR]R RR7       R# )aH  Close a read-only agent terminal tab in the Hermes desktop GUI WITHOUT killing
the mirrored ``terminal(background=true)`` process (output keeps buffering; the user
can reopen it). Routes through the process registry's ``on_close`` sink, which the
desktop gateway wires to a ``terminal.close`` event. ``desktop_ui`` toolset only.N)Úprocess_registry)ÚregistryÚ
tool_errorc                ó0   € V ^8„  d   QhR\         R\         /# )é   Ú
process_idÚreturn)Ústr)Úformats   "Ú>/home/ubuntu/.hermes/hermes-agent/tools/close_terminal_tool.pyÚ__annotate__r      s   € ÷ Xñ X¤Cð X¬Cñ Xó    c                ó´   € T ;'       g    RP                  4       pV'       g   \        R4      # \        P                  ! \        P
                  ! V4      RR7      # )zBAsk the desktop GUI to close a background process's read-only tab.Ú zCprocess_id is required (the background process whose tab to close).F)Úensure_ascii)Ústripr   ÚjsonÚdumpsr   Úrequest_close_terminal)r   Úpids   & r   Úclose_terminal_toolr      sE   € à×Ð˜×
"Ñ
"Ó
$€CßÜÐ_Ó`Ð`Ü�:Š:Ô&×=Ò=¸cÓBÐQVÔWÐWr   ÚnameÚclose_terminalÚdescriptionuµ  Hide a background process's terminal tab (process keeps running) in the Hermes desktop GUI (the tabs mirroring terminal(background=true) runs). This does NOT kill the process â€” it only drops the tab/view; the output keeps buffering and the user can reopen it from the status stack. Use it to tidy up when a background process's live terminal is no longer worth showing. To actually stop the process, use process(action='kill') instead.Ú
parametersÚtypeÚobjectÚ
propertiesr   Ústringz�The background process's session id (from terminal(background=true) output or process(action='list')) whose tab should be closed.ÚrequiredÚ
desktop_uic                 ó:   € \        V P                  R R4      R7      # )r   r   )r   )r   Úget)ÚargsÚkws   &,r   Ú<lambda>r%   2   s   € Ô2¸d¿h¹hÀ|ÐUWÓ>XÕYr   u   ðŸ–¥ï¸�)r   ÚtoolsetÚschemaÚhandlerÚemoji)
Ú__doc__r   Útools.process_registryr   Útools.registryr   r   r   ÚCLOSE_TERMINAL_SCHEMAÚregister© r   r   Ú<module>r0      sŠ   ðñUó
 å 3ß /õXð ÐØð	Uð Ø�ØØØ˜ØðTðð
ð 	�\�NððÐ ð4 	× Ò Ø	ØØ ÙYØ
÷r   