+
    jHàjË  ã                  ó6   € R t ^ RIHt ]! 0 Rm4      tR R ltR# )uŸ  Resolve gateway ``terminal.cwd`` placeholder values to ``TERMINAL_CWD``.

When ``terminal.cwd`` is unset or a placeholder (``.``, ``auto``, ``cwd``),
the gateway must not blindly map host ``Path.home()`` into container backends.
Docker with workspace mounting still needs an explicit host path signal
(``MESSAGING_CWD`` or an absolute config path) for ``terminal_tool`` to map
``/host/project`` â†’ ``/workspace``.
)Úannotationsc               ó0   € V ^8„  d   QhRRRRRRRRRRR	R/# )
é   Úconfigured_cwdÚstrÚterminal_backendÚmessaging_cwdz
str | NoneÚdocker_mount_cwd_to_workspaceÚboolÚhome_fallbackÚreturn© )Úformats   "Ú</home/ubuntu/.hermes/hermes-agent/gateway/cwd_placeholder.pyÚ__annotate__r      sF   € ÷ ñ àðð ðð ð	ð
 $(ðð ðð ñó    c                ó"  € V '       d   V \         9  d   V # T;'       g    RP                  4       P                  4       pT;'       g    RP                  4       pVR8X  d   T;'       g    T# VR8X  d   V'       d   V'       d   V\         9  d   V# R# )u4  Return the ``TERMINAL_CWD`` value to set, or ``None`` to leave it unset.

local + placeholder â†’ ``MESSAGING_CWD`` or ``home_fallback``; docker +
placeholder + mount on + host ``MESSAGING_CWD`` â†’ that host path (for the
``/workspace`` mapping); any other non-local backend â†’ ``None`` (sandbox default).
ÚlocalÚ ÚdockerN)ÚCWD_PLACEHOLDERSÚstripÚlower)r   r   r   r	   r   ÚbackendÚ	messagings   $$$$$  r   Ú resolve_placeholder_terminal_cwdr      s~   € ÷ ˜.Ô0@Ô@ØÐØ×*Ð* 7×1Ñ1Ó3×9Ñ9Ó;€GØ×$Ð$ "×+Ñ+Ó-€IØ�'ÔØ×)Ð)˜MÐ)Ø�(Ô×<ÇÈyÔ`pÔOpØÐÙr   N>   Ú.ÚcwdÚauto)Ú__doc__Ú
__future__r   Ú	frozensetr   r   r   r   r   Ú<module>r"      s    ðñõ #áÒ1Ó2Ð ÷r   