+
    iHàjµ	  ã                  óJ   € R t ^ RIHt ^ RIHtHtHt ^ RIHtH	t	 Rt
R R ltR# )zDClient-facing projection helpers for model-only compaction carriers.)Úannotations)ÚAnyÚDictÚOptional)ÚContextCompressorÚis_compaction_summary_messagec               ó    € V ^8„  d   QhRRRR/# )é   Úmessagezdict[str, Any]ÚreturnzOptional[dict[str, Any]]© )Úformats   "Ú=/home/ubuntu/.hermes/hermes-agent/agent/compaction_display.pyÚ__annotate__r   !   s   € ÷ ñ °Nð ÐG_ñ ó    c                ó2  € \        V \        4      '       g   R# \        V 4      '       g   V P                  4       # \        P
                  ! V 4      pVf   R# VP                  4       p\         F  pVP                  VR4       K  	  VP                  RR4       V# )a6  Return authentic transcript content, or ``None`` for a pure handoff.

Model-facing recovery history retains the complete carrier. Display
projections instead remove the handoff, inherited tool state, and internal
reasoning while preserving any real prior-tail content or live user ask
embedded in the carrier.
NÚdisplay_kind)Ú
isinstanceÚdictr   Úcopyr   Ú&_strip_context_summary_handoff_messageÚ_COMPACTION_INTERNAL_FIELDSÚpop)r
   Ú	projectedÚkeys   &  r   Ú&project_compaction_message_for_displayr   !   s|   € ô �gœt×$Ò$ÙÜ(¨×1Ò1Ø�|‰|‹~Ðä!×HÒHÈÓQ€IØÒÙà—‘Ó €Iß*ˆØ�‰�c˜4Ö ñ +à‡M�M�. $Ô'ØÐr   N)Ú
tool_callsÚfinish_reasonÚ	reasoningÚreasoning_contentÚreasoning_detailsÚcodex_reasoning_itemsÚcodex_message_items)Ú__doc__Ú
__future__r   Útypingr   r   r   Úagent.context_compressorr   r   r   r   r   r   r   Ú<module>r'      s!   ðÙ Jå "ç &Ñ &ç UðÐ ÷.r   