{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/file_ref_hint.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/file_ref_hint.py"},"lines":{"text":"def build_file_ref_hints(text: str, project_root: Path | None) -> list[str]:\n"},"line_number":18,"absolute_offset":615,"submatches":[{"match":{"text":"def build_file_ref_hints(text: str, project_root: Path | None) -> list[str]:"},"start":0,"end":76}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/file_ref_hint.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":93425,"human":"0.000093s"},"searches":1,"searches_with_match":1,"bytes_searched":1853,"bytes_printed":541,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"},"lines":{"text":"    def tool_call(cls, text: str, **metadata) -> LoadingState:\n"},"line_number":52,"absolute_offset":1282,"submatches":[{"match":{"text":"    def tool_call(cls, text: str, **metadata) -> LoadingState:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"},"lines":{"text":"    def thinking(cls, text: str, **metadata) -> LoadingState:\n"},"line_number":57,"absolute_offset":1502,"submatches":[{"match":{"text":"    def thinking(cls, text: str, **metadata) -> LoadingState:"},"start":0,"end":61}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"},"lines":{"text":"    def animation(cls, text: str, **metadata) -> LoadingState:\n"},"line_number":62,"absolute_offset":1714,"submatches":[{"match":{"text":"    def animation(cls, text: str, **metadata) -> LoadingState:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"},"lines":{"text":"    def idle(cls) -> LoadingState:\n"},"line_number":67,"absolute_offset":1928,"submatches":[{"match":{"text":"    def idle(cls) -> LoadingState:"},"start":0,"end":34}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/models.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":20890,"human":"0.000021s"},"searches":1,"searches_with_match":1,"bytes_searched":3062,"bytes_printed":1555,"matched_lines":4,"matches":4}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def __init__(self) -> None:\n"},"line_number":76,"absolute_offset":1775,"submatches":[{"match":{"text":"    def __init__(self) -> None:"},"start":0,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"        def _sync_custom_input(buffer) -> None:\n"},"line_number":96,"absolute_offset":2784,"submatches":[{"match":{"text":"        def _sync_custom_input(buffer) -> None:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def container(self) -> HSplit:\n"},"line_number":211,"absolute_offset":7207,"submatches":[{"match":{"text":"    def container(self) -> HSplit:"},"start":0,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def has_questions(self) -> bool:\n"},"line_number":214,"absolute_offset":7269,"submatches":[{"match":{"text":"    def has_questions(self) -> bool:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def set_questions(self, questions: list[dict[str, Any]] | None) -> bool:\n"},"line_number":217,"absolute_offset":7350,"submatches":[{"match":{"text":"    def set_questions(self, questions: list[dict[str, Any]] | None) -> bool:"},"start":0,"end":76}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def clear(self) -> None:\n"},"line_number":257,"absolute_offset":9180,"submatches":[{"match":{"text":"    def clear(self) -> None:"},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def focus_target(self) -> Any:\n"},"line_number":262,"absolute_offset":9328,"submatches":[{"match":{"text":"    def focus_target(self) -> Any:"},"start":0,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def custom_input_window(self) -> Window:\n"},"line_number":268,"absolute_offset":9511,"submatches":[{"match":{"text":"    def custom_input_window(self) -> Window:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def move_option(self, delta: int) -> None:\n"},"line_number":271,"absolute_offset":9603,"submatches":[{"match":{"text":"    def move_option(self, delta: int) -> None:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def prev_question(self) -> None:\n"},"line_number":288,"absolute_offset":10254,"submatches":[{"match":{"text":"    def prev_question(self) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def next_question(self) -> None:\n"},"line_number":291,"absolute_offset":10326,"submatches":[{"match":{"text":"    def next_question(self) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def focus_submit(self) -> None:\n"},"line_number":294,"absolute_offset":10397,"submatches":[{"match":{"text":"    def focus_submit(self) -> None:"},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def scroll_preview_page(self, direction: int) -> None:\n"},"line_number":302,"absolute_offset":10656,"submatches":[{"match":{"text":"    def scroll_preview_page(self, direction: int) -> None:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def scroll_preview_half_page(self, direction: int) -> None:\n"},"line_number":308,"absolute_offset":10888,"submatches":[{"match":{"text":"    def scroll_preview_half_page(self, direction: int) -> None:"},"start":0,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def toggle_current_selection(self) -> None:\n"},"line_number":314,"absolute_offset":11138,"submatches":[{"match":{"text":"    def toggle_current_selection(self) -> None:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def set_custom_input(self, text: str) -> None:\n"},"line_number":340,"absolute_offset":12046,"submatches":[{"match":{"text":"    def set_custom_input(self, text: str) -> None:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def handle_enter(self) -> QuestionAction | None:\n"},"line_number":352,"absolute_offset":12602,"submatches":[{"match":{"text":"    def handle_enter(self) -> QuestionAction | None:"},"start":0,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def handle_escape(self) -> QuestionAction:\n"},"line_number":417,"absolute_offset":15039,"submatches":[{"match":{"text":"    def handle_escape(self) -> QuestionAction:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def build_answers_message(self) -> str:\n"},"line_number":420,"absolute_offset":15157,"submatches":[{"match":{"text":"    def build_answers_message(self) -> str:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def build_answers_display(self) -> tuple[str, str] | None:\n"},"line_number":437,"absolute_offset":15868,"submatches":[{"match":{"text":"    def build_answers_display(self) -> tuple[str, str] | None:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _switch_question(self, delta: int) -> None:\n"},"line_number":461,"absolute_offset":16966,"submatches":[{"match":{"text":"    def _switch_question(self, delta: int) -> None:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _advance_question_or_preview(self) -> None:\n"},"line_number":476,"absolute_offset":17506,"submatches":[{"match":{"text":"    def _advance_question_or_preview(self) -> None:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _active_question(self) -> QuestionState | None:\n"},"line_number":485,"absolute_offset":17876,"submatches":[{"match":{"text":"    def _active_question(self) -> QuestionState | None:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _question_is_answered(self, question: QuestionState) -> bool:\n"},"line_number":493,"absolute_offset":18175,"submatches":[{"match":{"text":"    def _question_is_answered(self, question: QuestionState) -> bool:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _truncate_preview_text(content: str, *, max_chars: int = _PREVIEW_CUSTOM_INPUT_MAX_CHARS) -> str:\n"},"line_number":501,"absolute_offset":18438,"submatches":[{"match":{"text":"    def _truncate_preview_text(content: str, *, max_chars: int = _PREVIEW_CUSTOM_INPUT_MAX_CHARS) -> str:"},"start":0,"end":105}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _question_answer_summary(self, question: QuestionState, *, for_preview: bool) -> str:\n"},"line_number":507,"absolute_offset":18675,"submatches":[{"match":{"text":"    def _question_answer_summary(self, question: QuestionState, *, for_preview: bool) -> str:"},"start":0,"end":93}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _show_custom_input(self) -> bool:\n"},"line_number":526,"absolute_offset":19470,"submatches":[{"match":{"text":"    def _show_custom_input(self) -> bool:"},"start":0,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _deactivate_custom_input(self) -> None:\n"},"line_number":529,"absolute_offset":19599,"submatches":[{"match":{"text":"    def _deactivate_custom_input(self) -> None:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _sync_custom_input_buffer(self) -> None:\n"},"line_number":532,"absolute_offset":19699,"submatches":[{"match":{"text":"    def _sync_custom_input_buffer(self) -> None:"},"start":0,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _tabs_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":543,"absolute_offset":20182,"submatches":[{"match":{"text":"    def _tabs_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _question_content_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":562,"absolute_offset":21389,"submatches":[{"match":{"text":"    def _question_content_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _options_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":582,"absolute_offset":22286,"submatches":[{"match":{"text":"    def _options_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _special_options_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":606,"absolute_offset":23333,"submatches":[{"match":{"text":"    def _special_options_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":66}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _preview_body_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":640,"absolute_offset":25043,"submatches":[{"match":{"text":"    def _preview_body_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _preview_actions_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":650,"absolute_offset":25593,"submatches":[{"match":{"text":"    def _preview_actions_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":66}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _preview_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":676,"absolute_offset":26632,"submatches":[{"match":{"text":"    def _preview_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _reset_preview_scroll(self) -> None:\n"},"line_number":679,"absolute_offset":26774,"submatches":[{"match":{"text":"    def _reset_preview_scroll(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _scroll_preview_by(self, delta_lines: int) -> None:\n"},"line_number":683,"absolute_offset":26913,"submatches":[{"match":{"text":"    def _scroll_preview_by(self, delta_lines: int) -> None:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"lines":{"text":"    def _preview_page_step(self) -> int:\n"},"line_number":690,"absolute_offset":27206,"submatches":[{"match":{"text":"    def _preview_page_step(self) -> int:"},"start":0,"end":40}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/question_view.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":185549,"human":"0.000186s"},"searches":1,"searches_with_match":1,"bytes_searched":27456,"bytes_printed":14190,"matched_lines":39,"matches":39}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def __init__(self, session: ChatSession):\n"},"line_number":48,"absolute_offset":1109,"submatches":[{"match":{"text":"    def __init__(self, session: ChatSession):"},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def apply_config(self, config: StatuslineConfig) -> None:\n"},"line_number":71,"absolute_offset":2190,"submatches":[{"match":{"text":"    def apply_config(self, config: StatuslineConfig) -> None:"},"start":0,"end":61}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def config(self) -> StatuslineConfig:\n"},"line_number":75,"absolute_offset":2297,"submatches":[{"match":{"text":"    def config(self) -> StatuslineConfig:"},"start":0,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def live_preview_data(self) -> list[tuple[str, str]]:\n"},"line_number":78,"absolute_offset":2368,"submatches":[{"match":{"text":"    def live_preview_data(self) -> list[tuple[str, str]]:"},"start":0,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_model_name(session: ChatSession) -> str:\n"},"line_number":113,"absolute_offset":4117,"submatches":[{"match":{"text":"    def _resolve_model_name(session: ChatSession) -> str:"},"start":0,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_cost_enabled(self) -> bool:\n"},"line_number":120,"absolute_offset":4394,"submatches":[{"match":{"text":"    def _resolve_cost_enabled(self) -> bool:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def set_model_name(self, model_name: str) -> None:\n"},"line_number":125,"absolute_offset":4616,"submatches":[{"match":{"text":"    def set_model_name(self, model_name: str) -> None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def set_session(self, session: ChatSession) -> None:\n"},"line_number":129,"absolute_offset":4774,"submatches":[{"match":{"text":"    def set_session(self, session: ChatSession) -> None:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def set_mode(self, mode: str) -> None:\n"},"line_number":137,"absolute_offset":5069,"submatches":[{"match":{"text":"    def set_mode(self, mode: str) -> None:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _git_backoff_active(self) -> bool:\n"},"line_number":141,"absolute_offset":5201,"submatches":[{"match":{"text":"    def _git_backoff_active(self) -> bool:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _record_git_failure_backoff(self, *, reason: str, args: tuple[str, ...]) -> None:\n"},"line_number":144,"absolute_offset":5311,"submatches":[{"match":{"text":"    def _record_git_failure_backoff(self, *, reason: str, args: tuple[str, ...]) -> None:"},"start":0,"end":89}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    async def _run_git_command(self, *args: str) -> _GitCommandResult | None:\n"},"line_number":154,"absolute_offset":5679,"submatches":[{"match":{"text":"    async def _run_git_command(self, *args: str) -> _GitCommandResult | None:"},"start":0,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    async def _resolve_git_branch(self) -> str:\n"},"line_number":198,"absolute_offset":7475,"submatches":[{"match":{"text":"    async def _resolve_git_branch(self) -> str:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    async def _resolve_git_diff_stats(self) -> GitDiffStats | None:\n"},"line_number":207,"absolute_offset":7791,"submatches":[{"match":{"text":"    async def _resolve_git_diff_stats(self) -> GitDiffStats | None:"},"start":0,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_llm_level(self) -> str:\n"},"line_number":230,"absolute_offset":8577,"submatches":[{"match":{"text":"    def _resolve_llm_level(self) -> str:"},"start":0,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_turn_number(self) -> str:\n"},"line_number":235,"absolute_offset":8764,"submatches":[{"match":{"text":"    def _resolve_turn_number(self) -> str:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _context_percent_refresh_started(self) -> bool:\n"},"line_number":240,"absolute_offset":8970,"submatches":[{"match":{"text":"    def _context_percent_refresh_started(self) -> bool:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_project_cwd(self) -> str:\n"},"line_number":259,"absolute_offset":9615,"submatches":[{"match":{"text":"    def _resolve_project_cwd(self) -> str:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _current_goal_snapshot(self) -> GoalSnapshot | None:\n"},"line_number":271,"absolute_offset":9970,"submatches":[{"match":{"text":"    def _current_goal_snapshot(self) -> GoalSnapshot | None:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _goal_status_text(self) -> str:\n"},"line_number":281,"absolute_offset":10315,"submatches":[{"match":{"text":"    def _goal_status_text(self) -> str:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _git_diff_preview(self) -> str:\n"},"line_number":301,"absolute_offset":11097,"submatches":[{"match":{"text":"    def _git_diff_preview(self) -> str:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    async def refresh(self) -> None:\n"},"line_number":314,"absolute_offset":11474,"submatches":[{"match":{"text":"    async def refresh(self) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _resolve_terminal_width(cls) -> int:\n"},"line_number":382,"absolute_offset":14251,"submatches":[{"match":{"text":"    def _resolve_terminal_width(cls) -> int:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _truncate_text(text: str, max_len: int) -> str:\n"},"line_number":394,"absolute_offset":14611,"submatches":[{"match":{"text":"    def _truncate_text(text: str, max_len: int) -> str:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _right_prompt_budget(self) -> int:\n"},"line_number":403,"absolute_offset":14874,"submatches":[{"match":{"text":"    def _right_prompt_budget(self) -> int:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def context_left_text(self) -> str:\n"},"line_number":407,"absolute_offset":15008,"submatches":[{"match":{"text":"    def context_left_text(self) -> str:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _status_text_for_width(self, width: int) -> str:\n"},"line_number":410,"absolute_offset":15110,"submatches":[{"match":{"text":"    def _status_text_for_width(self, width: int) -> str:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def get_mode(self) -> str:\n"},"line_number":424,"absolute_offset":15746,"submatches":[{"match":{"text":"    def get_mode(self) -> str:"},"start":0,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _format_token_count(n: int) -> str:\n"},"line_number":429,"absolute_offset":15898,"submatches":[{"match":{"text":"    def _format_token_count(n: int) -> str:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _format_goal_token_count(n: int) -> str:\n"},"line_number":437,"absolute_offset":16115,"submatches":[{"match":{"text":"    def _format_goal_token_count(n: int) -> str:"},"start":0,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _format_goal_elapsed(seconds: int) -> str:\n"},"line_number":445,"absolute_offset":16395,"submatches":[{"match":{"text":"    def _format_goal_elapsed(seconds: int) -> str:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _build_info_item_groups(self) -> tuple[list[tuple[str, str]], tuple[str, str] | None]:\n"},"line_number":453,"absolute_offset":16656,"submatches":[{"match":{"text":"    def _build_info_item_groups(self) -> tuple[list[tuple[str, str]], tuple[str, str] | None]:"},"start":0,"end":94}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _build_info_items(self) -> list[tuple[str, str]]:\n"},"line_number":495,"absolute_offset":18925,"submatches":[{"match":{"text":"    def _build_info_items(self) -> list[tuple[str, str]]:"},"start":0,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _join_info_fragments(self, items: list[tuple[str, str]]) -> list[tuple[str, str]]:\n"},"line_number":501,"absolute_offset":19133,"submatches":[{"match":{"text":"    def _join_info_fragments(self, items: list[tuple[str, str]]) -> list[tuple[str, str]]:"},"start":0,"end":90}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def info_status_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":511,"absolute_offset":19553,"submatches":[{"match":{"text":"    def info_status_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":61}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def info_status_text(self) -> str:\n"},"line_number":543,"absolute_offset":20731,"submatches":[{"match":{"text":"    def info_status_text(self) -> str:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def right_prompt_text(self) -> str:\n"},"line_number":556,"absolute_offset":21269,"submatches":[{"match":{"text":"    def right_prompt_text(self) -> str:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def right_prompt_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":559,"absolute_offset":21382,"submatches":[{"match":{"text":"    def right_prompt_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def footer_status_text(self) -> str:\n"},"line_number":562,"absolute_offset":21514,"submatches":[{"match":{"text":"    def footer_status_text(self) -> str:"},"start":0,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def _git_diff_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":567,"absolute_offset":21706,"submatches":[{"match":{"text":"    def _git_diff_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def git_diff_fragments(self) -> list[tuple[str, str]]:\n"},"line_number":582,"absolute_offset":22318,"submatches":[{"match":{"text":"    def git_diff_fragments(self) -> list[tuple[str, str]]:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def footer_toolbar(self) -> list[tuple[str, str]]:\n"},"line_number":586,"absolute_offset":22479,"submatches":[{"match":{"text":"    def footer_toolbar(self) -> list[tuple[str, str]]:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def show_transient(self, message: str, duration_s: float = 5.0,\n"},"line_number":607,"absolute_offset":23176,"submatches":[{"match":{"text":"    def show_transient(self, message: str, duration_s: float = 5.0,"},"start":0,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def clear_transient_if_expired(self) -> bool:\n"},"line_number":614,"absolute_offset":23532,"submatches":[{"match":{"text":"    def clear_transient_if_expired(self) -> bool:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def transient_message(self) -> str | None:\n"},"line_number":624,"absolute_offset":23921,"submatches":[{"match":{"text":"    def transient_message(self) -> str | None:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def has_transient(self) -> bool:\n"},"line_number":628,"absolute_offset":24022,"submatches":[{"match":{"text":"    def has_transient(self) -> bool:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def transient_severity(self) -> str:\n"},"line_number":632,"absolute_offset":24125,"submatches":[{"match":{"text":"    def transient_severity(self) -> str:"},"start":0,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"lines":{"text":"    def helper_toolbar(self) -> list[tuple[str, str]]:\n"},"line_number":635,"absolute_offset":24246,"submatches":[{"match":{"text":"    def helper_toolbar(self) -> list[tuple[str, str]]:"},"start":0,"end":54}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/status_bar.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":138593,"human":"0.000139s"},"searches":1,"searches_with_match":1,"bytes_searched":24319,"bytes_printed":17220,"matched_lines":48,"matches":48}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"def _get_input_history_path(cwd: str) -> Path:\n"},"line_number":111,"absolute_offset":3906,"submatches":[{"match":{"text":"def _get_input_history_path(cwd: str) -> Path:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"def _merge_input_completers(\n"},"line_number":124,"absolute_offset":4368,"submatches":[{"match":{"text":"def _merge_input_completers("},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"def _truncate_file_history(path: Path, max_entries: int = 200) -> None:\n"},"line_number":136,"absolute_offset":4730,"submatches":[{"match":{"text":"def _truncate_file_history(path: Path, max_entries: int = 200) -> None:"},"start":0,"end":71}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"def _load_plugins_blocking(project_path: Path) -> tuple[list[Any], list[Any]]:\n"},"line_number":171,"absolute_offset":6018,"submatches":[{"match":{"text":"def _load_plugins_blocking(project_path: Path) -> tuple[list[Any], list[Any]]:"},"start":0,"end":78}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def __init__(\n"},"line_number":191,"absolute_offset":6645,"submatches":[{"match":{"text":"    def __init__("},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        def _input_line_prefix(\n"},"line_number":363,"absolute_offset":14042,"submatches":[{"match":{"text":"        def _input_line_prefix("},"start":0,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        def _trigger_completion(_buffer) -> None:\n"},"line_number":396,"absolute_offset":15462,"submatches":[{"match":{"text":"        def _trigger_completion(_buffer) -> None:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        def _has_stream_staging_entries() -> bool:\n"},"line_number":509,"absolute_offset":20176,"submatches":[{"match":{"text":"        def _has_stream_staging_entries() -> bool:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _sync_local_interactive_ui_barrier(self) -> None:\n"},"line_number":783,"absolute_offset":33160,"submatches":[{"match":{"text":"    def _sync_local_interactive_ui_barrier(self) -> None:"},"start":0,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _set_ui_mode(self, mode: UIMode) -> None:\n"},"line_number":793,"absolute_offset":33647,"submatches":[{"match":{"text":"    def _set_ui_mode(self, mode: UIMode) -> None:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _is_idle_recap_ready(self) -> bool:\n"},"line_number":802,"absolute_offset":34067,"submatches":[{"match":{"text":"    def _is_idle_recap_ready(self) -> bool:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _cancel_idle_recap_for_input_activity(self) -> None:\n"},"line_number":815,"absolute_offset":34451,"submatches":[{"match":{"text":"    def _cancel_idle_recap_for_input_activity(self) -> None:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _maybe_arm_idle_recap_after_stop(self, stop_reason: str | None) -> None:\n"},"line_number":822,"absolute_offset":34749,"submatches":[{"match":{"text":"    def _maybe_arm_idle_recap_after_stop(self, stop_reason: str | None) -> None:"},"start":0,"end":80}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _on_input_text_changed(self, _buffer) -> None:\n"},"line_number":839,"absolute_offset":35403,"submatches":[{"match":{"text":"    def _on_input_text_changed(self, _buffer) -> None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _open_goal_resume_prompt_if_available(self) -> bool:\n"},"line_number":863,"absolute_offset":36300,"submatches":[{"match":{"text":"    def _open_goal_resume_prompt_if_available(self) -> bool:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _handle_goal_resume_action(self, action: GoalResumeAction) -> None:\n"},"line_number":877,"absolute_offset":36798,"submatches":[{"match":{"text":"    def _handle_goal_resume_action(self, action: GoalResumeAction) -> None:"},"start":0,"end":75}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _apply_goal_resume_action(self, action: GoalResumeAction) -> None:\n"},"line_number":887,"absolute_offset":37231,"submatches":[{"match":{"text":"    async def _apply_goal_resume_action(self, action: GoalResumeAction) -> None:"},"start":0,"end":80}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _bind_team_message_callback(self, session: ChatSession) -> None:\n"},"line_number":922,"absolute_offset":38560,"submatches":[{"match":{"text":"    def _bind_team_message_callback(self, session: ChatSession) -> None:"},"start":0,"end":72}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        def _on_team_message(event: TeamMessageEvent) -> None:\n"},"line_number":926,"absolute_offset":38766,"submatches":[{"match":{"text":"        def _on_team_message(event: TeamMessageEvent) -> None:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            def _write() -> None:\n"},"line_number":941,"absolute_offset":39345,"submatches":[{"match":{"text":"            def _write() -> None:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _unbind_team_message_callback(session: ChatSession) -> None:\n"},"line_number":968,"absolute_offset":40357,"submatches":[{"match":{"text":"    def _unbind_team_message_callback(session: ChatSession) -> None:"},"start":0,"end":68}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _should_show_queue_panel(self) -> bool:\n"},"line_number":971,"absolute_offset":40491,"submatches":[{"match":{"text":"    def _should_show_queue_panel(self) -> bool:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _should_show_staging_panel(self) -> bool:\n"},"line_number":974,"absolute_offset":40626,"submatches":[{"match":{"text":"    def _should_show_staging_panel(self) -> bool:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _build_slash_registry(self) -> None:\n"},"line_number":983,"absolute_offset":40888,"submatches":[{"match":{"text":"    def _build_slash_registry(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _load_custom_slash_commands(self) -> None:\n"},"line_number":1035,"absolute_offset":42772,"submatches":[{"match":{"text":"    def _load_custom_slash_commands(self) -> None:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            async def _handler(args: str, *, command_name: str = command.name) -> None:\n"},"line_number":1070,"absolute_offset":44330,"submatches":[{"match":{"text":"            async def _handler(args: str, *, command_name: str = command.name) -> None:"},"start":0,"end":87}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _sync_skill_slash_commands(self) -> None:\n"},"line_number":1081,"absolute_offset":44742,"submatches":[{"match":{"text":"    def _sync_skill_slash_commands(self) -> None:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            async def _handler(args: str, *, skill_name: str = name) -> None:\n"},"line_number":1115,"absolute_offset":46069,"submatches":[{"match":{"text":"            async def _handler(args: str, *, skill_name: str = name) -> None:"},"start":0,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _resolve_slash_spec(self, name: str) -> SlashCommandSpec | None:\n"},"line_number":1131,"absolute_offset":46705,"submatches":[{"match":{"text":"    def _resolve_slash_spec(self, name: str) -> SlashCommandSpec | None:"},"start":0,"end":72}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _create_input_history(self) -> FileHistory | InMemoryHistory:\n"},"line_number":1137,"absolute_offset":46906,"submatches":[{"match":{"text":"    def _create_input_history(self) -> FileHistory | InMemoryHistory:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _input_placeholder_hint(self) -> str | None:\n"},"line_number":1156,"absolute_offset":47834,"submatches":[{"match":{"text":"    def _input_placeholder_hint(self) -> str | None:"},"start":0,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _format_run_elapsed(seconds: float) -> str:\n"},"line_number":1198,"absolute_offset":49110,"submatches":[{"match":{"text":"    def _format_run_elapsed(seconds: float) -> str:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _format_scheduled_fire_time() -> str:\n"},"line_number":1209,"absolute_offset":49484,"submatches":[{"match":{"text":"    def _format_scheduled_fire_time() -> str:"},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _append_run_elapsed_to_history(self, *, stop_reason: str | None = None) -> None:\n"},"line_number":1218,"absolute_offset":49932,"submatches":[{"match":{"text":"    def _append_run_elapsed_to_history(self, *, stop_reason: str | None = None) -> None:"},"start":0,"end":88}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _should_external_turn_start_busy(\n"},"line_number":1232,"absolute_offset":50603,"submatches":[{"match":{"text":"    def _should_external_turn_start_busy("},"start":0,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _set_busy(self, value: bool) -> None:\n"},"line_number":1239,"absolute_offset":50897,"submatches":[{"match":{"text":"    def _set_busy(self, value: bool) -> None:"},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _start_materialized_work_busy(\n"},"line_number":1256,"absolute_offset":51588,"submatches":[{"match":{"text":"    async def _start_materialized_work_busy("},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _begin_queued_admission_busy(self) -> bool:\n"},"line_number":1279,"absolute_offset":52559,"submatches":[{"match":{"text":"    def _begin_queued_admission_busy(self) -> bool:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _clear_queued_admission_busy_if_stale(self) -> bool:\n"},"line_number":1299,"absolute_offset":53353,"submatches":[{"match":{"text":"    def _clear_queued_admission_busy_if_stale(self) -> bool:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _enter_staging(\n"},"line_number":1314,"absolute_offset":53964,"submatches":[{"match":{"text":"    def _enter_staging("},"start":0,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _recall_latest_turn_after_interrupt(self) -> bool:\n"},"line_number":1349,"absolute_offset":55294,"submatches":[{"match":{"text":"    def _recall_latest_turn_after_interrupt(self) -> bool:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _flush_staging_to_scrollback(self) -> bool:\n"},"line_number":1386,"absolute_offset":56678,"submatches":[{"match":{"text":"    def _flush_staging_to_scrollback(self) -> bool:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _maybe_flush_staging_to_scrollback_for_event(self, event: object) -> bool:\n"},"line_number":1399,"absolute_offset":57142,"submatches":[{"match":{"text":"    def _maybe_flush_staging_to_scrollback_for_event(self, event: object) -> bool:"},"start":0,"end":82}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _commit_staging(self) -> bool:\n"},"line_number":1425,"absolute_offset":57871,"submatches":[{"match":{"text":"    def _commit_staging(self) -> bool:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _queue_staged_busy_message(self, payload: _StagedMessagePayload) -> None:\n"},"line_number":1456,"absolute_offset":59126,"submatches":[{"match":{"text":"    async def _queue_staged_busy_message(self, payload: _StagedMessagePayload) -> None:"},"start":0,"end":87}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _commit_expired_staging(self, *, now: float | None = None) -> bool:\n"},"line_number":1467,"absolute_offset":59632,"submatches":[{"match":{"text":"    def _commit_expired_staging(self, *, now: float | None = None) -> bool:"},"start":0,"end":75}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    def _recall_staging(self) -> bool:\n"},"line_number":1475,"absolute_offset":59977,"submatches":[{"match":{"text":"    def _recall_staging(self) -> bool:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _handle_error(self, exc: Exception) -> None:\n"},"line_number":1506,"absolute_offset":61147,"submatches":[{"match":{"text":"    async def _handle_error(self, exc: Exception) -> None:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _refresh_status_bar_safely(self, *, reason: str) -> None:\n"},"line_number":1526,"absolute_offset":62104,"submatches":[{"match":{"text":"    async def _refresh_status_bar_safely(self, *, reason: str) -> None:"},"start":0,"end":71}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _submit_user_message(\n"},"line_number":1548,"absolute_offset":62847,"submatches":[{"match":{"text":"    async def _submit_user_message("},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    async def _consume_event_stream(self) -> None:\n"},"line_number":1610,"absolute_offset":65125,"submatches":[{"match":{"text":"    async def _consume_event_stream(self) -> None:"},"start":0,"end":50}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":257963,"human":"0.000258s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":18394,"matched_lines":51,"matches":51}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _is_mcp_no_tools_message(msg: str) -> bool:\n"},"line_number":62,"absolute_offset":2321,"submatches":[{"match":{"text":"def _is_mcp_no_tools_message(msg: str) -> bool:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _is_mcp_lifecycle_cleanup_noise(record: logging.LogRecord, msg: str) -> bool:\n"},"line_number":66,"absolute_offset":2451,"submatches":[{"match":{"text":"def _is_mcp_lifecycle_cleanup_noise(record: logging.LogRecord, msg: str) -> bool:"},"start":0,"end":81}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _is_mcp_raw_status_noise(record: logging.LogRecord, msg: str) -> bool:\n"},"line_number":74,"absolute_offset":2778,"submatches":[{"match":{"text":"def _is_mcp_raw_status_noise(record: logging.LogRecord, msg: str) -> bool:"},"start":0,"end":74}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _is_stream_tool_argument_recovery_noise(record: logging.LogRecord, msg: str) -> bool:\n"},"line_number":82,"absolute_offset":3060,"submatches":[{"match":{"text":"def _is_stream_tool_argument_recovery_noise(record: logging.LogRecord, msg: str) -> bool:"},"start":0,"end":89}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _is_llm_retry_policy_warning(record: logging.LogRecord, msg: str) -> bool:\n"},"line_number":88,"absolute_offset":3303,"submatches":[{"match":{"text":"def _is_llm_retry_policy_warning(record: logging.LogRecord, msg: str) -> bool:"},"start":0,"end":78}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def classify_tui_log(record: logging.LogRecord) -> TuiLogDisposition:\n"},"line_number":98,"absolute_offset":3682,"submatches":[{"match":{"text":"def classify_tui_log(record: logging.LogRecord) -> TuiLogDisposition:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _should_drop_recent_duplicate_log(msg_key: str) -> bool:\n"},"line_number":115,"absolute_offset":4237,"submatches":[{"match":{"text":"def _should_drop_recent_duplicate_log(msg_key: str) -> bool:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _should_suppress_tui_log(record: logging.LogRecord) -> bool:\n"},"line_number":131,"absolute_offset":4767,"submatches":[{"match":{"text":"def _should_suppress_tui_log(record: logging.LogRecord) -> bool:"},"start":0,"end":64}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def __init__(self, renderer: EventRenderer) -> None:\n"},"line_number":168,"absolute_offset":5902,"submatches":[{"match":{"text":"    def __init__(self, renderer: EventRenderer) -> None:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def emit(self, record: logging.LogRecord) -> None:\n"},"line_number":173,"absolute_offset":6114,"submatches":[{"match":{"text":"    def emit(self, record: logging.LogRecord) -> None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def _format_message(self, record: logging.LogRecord) -> str:\n"},"line_number":211,"absolute_offset":7450,"submatches":[{"match":{"text":"    def _format_message(self, record: logging.LogRecord) -> str:"},"start":0,"end":64}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def _simplify_message(self, msg: str) -> str:\n"},"line_number":221,"absolute_offset":7902,"submatches":[{"match":{"text":"    def _simplify_message(self, msg: str) -> str:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def _get_message_key(self, record: logging.LogRecord) -> str:\n"},"line_number":235,"absolute_offset":8330,"submatches":[{"match":{"text":"    def _get_message_key(self, record: logging.LogRecord) -> str:"},"start":0,"end":65}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def filter(self, record: logging.LogRecord) -> bool:\n"},"line_number":246,"absolute_offset":8843,"submatches":[{"match":{"text":"    def filter(self, record: logging.LogRecord) -> bool:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def __init__(\n"},"line_number":252,"absolute_offset":8967,"submatches":[{"match":{"text":"    def __init__("},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def close(self) -> None:\n"},"line_number":266,"absolute_offset":9428,"submatches":[{"match":{"text":"    def close(self) -> None:"},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _read_level_from_settings_env(project_root: Path | None) -> str:\n"},"line_number":294,"absolute_offset":10244,"submatches":[{"match":{"text":"def _read_level_from_settings_env(project_root: Path | None) -> str:"},"start":0,"end":68}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"    def _lookup(path: Path) -> str:\n"},"line_number":306,"absolute_offset":10786,"submatches":[{"match":{"text":"    def _lookup(path: Path) -> str:"},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _resolve_log_level(project_root: Path | None = None) -> int:\n"},"line_number":324,"absolute_offset":11292,"submatches":[{"match":{"text":"def _resolve_log_level(project_root: Path | None = None) -> int:"},"start":0,"end":64}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _build_file_handler(level: int) -> logging.Handler:\n"},"line_number":355,"absolute_offset":12310,"submatches":[{"match":{"text":"def _build_file_handler(level: int) -> logging.Handler:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def _should_mute_terminal_stream(handler: logging.Handler) -> bool:\n"},"line_number":374,"absolute_offset":12928,"submatches":[{"match":{"text":"def _should_mute_terminal_stream(handler: logging.Handler) -> bool:"},"start":0,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"lines":{"text":"def setup_tui_logging(\n"},"line_number":381,"absolute_offset":13198,"submatches":[{"match":{"text":"def setup_tui_logging("},"start":0,"end":22}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logging_adapter.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":145850,"human":"0.000146s"},"searches":1,"searches_with_match":1,"bytes_searched":16492,"bytes_printed":8316,"matched_lines":22,"matches":22}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"lines":{"text":"    def __init__(self, max_records: int = DEFAULT_MAX_RECORDS) -> None:\n"},"line_number":37,"absolute_offset":790,"submatches":[{"match":{"text":"    def __init__(self, max_records: int = DEFAULT_MAX_RECORDS) -> None:"},"start":0,"end":71}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"lines":{"text":"    def record(self, rec_kwargs: dict[str, Any]) -> ToolResultRecord:\n"},"line_number":42,"absolute_offset":998,"submatches":[{"match":{"text":"    def record(self, rec_kwargs: dict[str, Any]) -> ToolResultRecord:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"lines":{"text":"    def snapshot(self) -> tuple[ToolResultRecord, ...]:\n"},"line_number":66,"absolute_offset":1997,"submatches":[{"match":{"text":"    def snapshot(self) -> tuple[ToolResultRecord, ...]:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"lines":{"text":"    def clear(self) -> None:\n"},"line_number":70,"absolute_offset":2119,"submatches":[{"match":{"text":"    def clear(self) -> None:"},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"lines":{"text":"    def __len__(self) -> int:\n"},"line_number":75,"absolute_offset":2244,"submatches":[{"match":{"text":"    def __len__(self) -> int:"},"start":0,"end":29}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_store.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":13894,"human":"0.000014s"},"searches":1,"searches_with_match":1,"bytes_searched":2337,"bytes_printed":1932,"matched_lines":5,"matches":5}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"def _is_empty_text(renderable: RenderableType | None) -> bool:\n"},"line_number":11,"absolute_offset":212,"submatches":[{"match":{"text":"def _is_empty_text(renderable: RenderableType | None) -> bool:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"def _renderable_to_lines(console: Console, renderable: RenderableType | None) -> list[list[Segment]]:\n"},"line_number":15,"absolute_offset":342,"submatches":[{"match":{"text":"def _renderable_to_lines(console: Console, renderable: RenderableType | None) -> list[list[Segment]]:"},"start":0,"end":101}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"def _lines_to_renderable(lines: list[list[Segment]]) -> RenderableType | None:\n"},"line_number":23,"absolute_offset":633,"submatches":[{"match":{"text":"def _lines_to_renderable(lines: list[list[Segment]]) -> RenderableType | None:"},"start":0,"end":78}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"def _total_height(*layers: list[list[Segment]]) -> int:\n"},"line_number":35,"absolute_offset":1007,"submatches":[{"match":{"text":"def _total_height(*layers: list[list[Segment]]) -> int:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def __init__(\n"},"line_number":45,"absolute_offset":1331,"submatches":[{"match":{"text":"    def __init__("},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def start_turn(self) -> None:\n"},"line_number":61,"absolute_offset":1854,"submatches":[{"match":{"text":"    def start_turn(self) -> None:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def stop_turn(self) -> None:\n"},"line_number":67,"absolute_offset":2010,"submatches":[{"match":{"text":"    def stop_turn(self) -> None:"},"start":0,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def close(self) -> None:\n"},"line_number":74,"absolute_offset":2190,"submatches":[{"match":{"text":"    def close(self) -> None:"},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def update_layers(\n"},"line_number":78,"absolute_offset":2280,"submatches":[{"match":{"text":"    def update_layers("},"start":0,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def refresh(self, *, force: bool = False) -> None:\n"},"line_number":90,"absolute_offset":2596,"submatches":[{"match":{"text":"    def refresh(self, *, force: bool = False) -> None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def _ensure_live(self) -> None:\n"},"line_number":102,"absolute_offset":2930,"submatches":[{"match":{"text":"    def _ensure_live(self) -> None:"},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def _stop_live(self) -> None:\n"},"line_number":116,"absolute_offset":3328,"submatches":[{"match":{"text":"    def _stop_live(self) -> None:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    def _compose(self) -> RenderableType:\n"},"line_number":122,"absolute_offset":3465,"submatches":[{"match":{"text":"    def _compose(self) -> RenderableType:"},"start":0,"end":41}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":29668,"human":"0.000030s"},"searches":1,"searches_with_match":1,"bytes_searched":6180,"bytes_printed":4691,"matched_lines":13,"matches":13}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    def __init__(\n"},"line_number":18,"absolute_offset":355,"submatches":[{"match":{"text":"    def __init__("},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def is_jsonrpc_request_id(raw_value: Any) -> TypeGuard[JSONRPCRequestId]:\n"},"line_number":36,"absolute_offset":710,"submatches":[{"match":{"text":"def is_jsonrpc_request_id(raw_value: Any) -> TypeGuard[JSONRPCRequestId]:"},"start":0,"end":73}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def parse_jsonrpc_message(raw_line: str) -> dict[str, Any]:\n"},"line_number":40,"absolute_offset":867,"submatches":[{"match":{"text":"def parse_jsonrpc_message(raw_line: str) -> dict[str, Any]:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def build_success_response(request_id: JSONRPCRequestId, result: Any) -> dict[str, Any]:\n"},"line_number":62,"absolute_offset":1568,"submatches":[{"match":{"text":"def build_success_response(request_id: JSONRPCRequestId, result: Any) -> dict[str, Any]:"},"start":0,"end":88}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def build_error_response(\n"},"line_number":66,"absolute_offset":1739,"submatches":[{"match":{"text":"def build_error_response("},"start":0,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def build_event_notification(event: Any) -> dict[str, Any]:\n"},"line_number":83,"absolute_offset":2142,"submatches":[{"match":{"text":"def build_event_notification(event: Any) -> dict[str, Any]:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def _coerce_request_id(raw_value: Any) -> JSONRPCRequestId | None:\n"},"line_number":92,"absolute_offset":2482,"submatches":[{"match":{"text":"def _coerce_request_id(raw_value: Any) -> JSONRPCRequestId | None:"},"start":0,"end":66}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"def _to_jsonable(value: Any) -> Any:\n"},"line_number":98,"absolute_offset":2633,"submatches":[{"match":{"text":"def _to_jsonable(value: Any) -> Any:"},"start":0,"end":36}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":113701,"human":"0.000114s"},"searches":1,"searches_with_match":1,"bytes_searched":3182,"bytes_printed":3002,"matched_lines":8,"matches":8}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _is_noise_char(ch: str) -> bool:\n"},"line_number":37,"absolute_offset":924,"submatches":[{"match":{"text":"def _is_noise_char(ch: str) -> bool:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _strip_leading_noise(text: str) -> str:\n"},"line_number":49,"absolute_offset":1292,"submatches":[{"match":{"text":"def _strip_leading_noise(text: str) -> str:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _first_visible_line(content: str) -> str:\n"},"line_number":62,"absolute_offset":1594,"submatches":[{"match":{"text":"def _first_visible_line(content: str) -> str:"},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _split_first_line(content: str) -> tuple[str, str]:\n"},"line_number":73,"absolute_offset":1846,"submatches":[{"match":{"text":"def _split_first_line(content: str) -> tuple[str, str]:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _is_block_markdown_start(first_line: str) -> bool:\n"},"line_number":82,"absolute_offset":2098,"submatches":[{"match":{"text":"def _is_block_markdown_start(first_line: str) -> bool:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"def _is_ambiguous_block_start(first_line: str) -> bool:\n"},"line_number":88,"absolute_offset":2266,"submatches":[{"match":{"text":"def _is_ambiguous_block_start(first_line: str) -> bool:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def __init__(self) -> None:\n"},"line_number":97,"absolute_offset":2560,"submatches":[{"match":{"text":"    def __init__(self) -> None:"},"start":0,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _reset_segment_state(self) -> None:\n"},"line_number":105,"absolute_offset":2885,"submatches":[{"match":{"text":"    def _reset_segment_state(self) -> None:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def start_turn(self) -> None:\n"},"line_number":110,"absolute_offset":3054,"submatches":[{"match":{"text":"    def start_turn(self) -> None:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _resolve_segment_mode(self, content: str) -> _SegmentMode | None:\n"},"line_number":116,"absolute_offset":3247,"submatches":[{"match":{"text":"    def _resolve_segment_mode(self, content: str) -> _SegmentMode | None:"},"start":0,"end":73}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _build_segment_renderable(mode: _SegmentMode, content: str) -> RenderableType:\n"},"line_number":127,"absolute_offset":3642,"submatches":[{"match":{"text":"    def _build_segment_renderable(mode: _SegmentMode, content: str) -> RenderableType:"},"start":0,"end":86}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _is_gap_block(renderable: RenderableType) -> bool:\n"},"line_number":144,"absolute_offset":4241,"submatches":[{"match":{"text":"    def _is_gap_block(renderable: RenderableType) -> bool:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _materialize_block(block: _Block) -> RenderableType:\n"},"line_number":148,"absolute_offset":4388,"submatches":[{"match":{"text":"    def _materialize_block(block: _Block) -> RenderableType:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _append_gap_if_needed(self) -> None:\n"},"line_number":153,"absolute_offset":4583,"submatches":[{"match":{"text":"    def _append_gap_if_needed(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _render_unresolved_segment_if_needed(self) -> None:\n"},"line_number":157,"absolute_offset":4741,"submatches":[{"match":{"text":"    def _render_unresolved_segment_if_needed(self) -> None:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def _flush_active_segment(self, *, inter_block_gap: bool) -> bool:\n"},"line_number":164,"absolute_offset":5109,"submatches":[{"match":{"text":"    def _flush_active_segment(self, *, inter_block_gap: bool) -> bool:"},"start":0,"end":70}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def append_external_lines(self, lines: list[tuple[str, str]]) -> None:\n"},"line_number":178,"absolute_offset":5623,"submatches":[{"match":{"text":"    def append_external_lines(self, lines: list[tuple[str, str]]) -> None:"},"start":0,"end":74}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def append_tool_line(self, text_ref: Text) -> None:\n"},"line_number":188,"absolute_offset":6018,"submatches":[{"match":{"text":"    def append_tool_line(self, text_ref: Text) -> None:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def append_user_message(self, content: str) -> None:\n"},"line_number":195,"absolute_offset":6308,"submatches":[{"match":{"text":"    def append_user_message(self, content: str) -> None:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def append_text(self, text: str) -> None:\n"},"line_number":203,"absolute_offset":6593,"submatches":[{"match":{"text":"    def append_text(self, text: str) -> None:"},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def insert_gap_before_next_segment(self) -> None:\n"},"line_number":222,"absolute_offset":7308,"submatches":[{"match":{"text":"    def insert_gap_before_next_segment(self) -> None:"},"start":0,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def flush_line_for_external_event(self) -> None:\n"},"line_number":229,"absolute_offset":7516,"submatches":[{"match":{"text":"    def flush_line_for_external_event(self) -> None:"},"start":0,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def finalize_turn(self) -> None:\n"},"line_number":232,"absolute_offset":7627,"submatches":[{"match":{"text":"    def finalize_turn(self) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"    def renderable(self) -> RenderableType:\n"},"line_number":236,"absolute_offset":7777,"submatches":[{"match":{"text":"    def renderable(self) -> RenderableType:"},"start":0,"end":43}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":51497,"human":"0.000051s"},"searches":1,"searches_with_match":1,"bytes_searched":8168,"bytes_printed":8841,"matched_lines":24,"matches":24}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _truncate(content: str, max_len: int = 120) -> str:\n"},"line_number":91,"absolute_offset":2467,"submatches":[{"match":{"text":"def _truncate(content: str, max_len: int = 120) -> str:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _scheduled_scope(durable: bool) -> str:\n"},"line_number":97,"absolute_offset":2617,"submatches":[{"match":{"text":"def _scheduled_scope(durable: bool) -> str:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _scheduled_failure_reason(reason: str) -> str:\n"},"line_number":101,"absolute_offset":2715,"submatches":[{"match":{"text":"def _scheduled_failure_reason(reason: str) -> str:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _format_duration(seconds: float) -> str:\n"},"line_number":116,"absolute_offset":3209,"submatches":[{"match":{"text":"def _format_duration(seconds: float) -> str:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _format_tokens(token_count: int) -> str:\n"},"line_number":129,"absolute_offset":3603,"submatches":[{"match":{"text":"def _format_tokens(token_count: int) -> str:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _format_tool_args_tokens(token_count: int) -> str:\n"},"line_number":137,"absolute_offset":3833,"submatches":[{"match":{"text":"def _format_tool_args_tokens(token_count: int) -> str:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _split_fragments_by_newline(\n"},"line_number":144,"absolute_offset":4028,"submatches":[{"match":{"text":"def _split_fragments_by_newline("},"start":0,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _extract_task_title(args: dict[str, Any]) -> str:\n"},"line_number":159,"absolute_offset":4525,"submatches":[{"match":{"text":"def _extract_task_title(args: dict[str, Any]) -> str:"},"start":0,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _one_line(text: str) -> str:\n"},"line_number":168,"absolute_offset":4787,"submatches":[{"match":{"text":"def _one_line(text: str) -> str:"},"start":0,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _tool_signature(tool_name: str, args_summary: str) -> str:\n"},"line_number":172,"absolute_offset":4861,"submatches":[{"match":{"text":"def _tool_signature(tool_name: str, args_summary: str) -> str:"},"start":0,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _task_sort_key(task: dict[str, Any]) -> tuple[int, int]:\n"},"line_number":179,"absolute_offset":5055,"submatches":[{"match":{"text":"def _task_sort_key(task: dict[str, Any]) -> tuple[int, int]:"},"start":0,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _task_stats_header(tasks: list[dict[str, Any]]) -> str:\n"},"line_number":199,"absolute_offset":5646,"submatches":[{"match":{"text":"def _task_stats_header(tasks: list[dict[str, Any]]) -> str:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _format_task_row(task: dict[str, Any]) -> str:\n"},"line_number":211,"absolute_offset":6053,"submatches":[{"match":{"text":"def _format_task_row(task: dict[str, Any]) -> str:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"def _entry_line_count(entry: HistoryEntry) -> int:\n"},"line_number":322,"absolute_offset":9592,"submatches":[{"match":{"text":"def _entry_line_count(entry: HistoryEntry) -> int:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def __init__(\n"},"line_number":339,"absolute_offset":10060,"submatches":[{"match":{"text":"    def __init__("},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def set_tool_result_registry(self, tool_results: ToolResultRegistry) -> None:\n"},"line_number":399,"absolute_offset":12966,"submatches":[{"match":{"text":"    def set_tool_result_registry(self, tool_results: ToolResultRegistry) -> None:"},"start":0,"end":81}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def is_auto_compacting(self) -> bool:\n"},"line_number":402,"absolute_offset":13091,"submatches":[{"match":{"text":"    def is_auto_compacting(self) -> bool:"},"start":0,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def clear_auto_compacting(self) -> None:\n"},"line_number":405,"absolute_offset":13174,"submatches":[{"match":{"text":"    def clear_auto_compacting(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _make_tool_result_record(\n"},"line_number":408,"absolute_offset":13261,"submatches":[{"match":{"text":"    def _make_tool_result_record("},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _append_history_entry(self, entry: HistoryEntry) -> None:\n"},"line_number":451,"absolute_offset":14837,"submatches":[{"match":{"text":"    def _append_history_entry(self, entry: HistoryEntry) -> None:"},"start":0,"end":65}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _commit_active_tool_fold(self) -> None:\n"},"line_number":457,"absolute_offset":15080,"submatches":[{"match":{"text":"    def _commit_active_tool_fold(self) -> None:"},"start":0,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def set_stream_staging_budget_provider(self, provider: Callable[[], int]) -> None:\n"},"line_number":472,"absolute_offset":15641,"submatches":[{"match":{"text":"    def set_stream_staging_budget_provider(self, provider: Callable[[], int]) -> None:"},"start":0,"end":86}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def stream_staging_entries(self) -> list[HistoryEntry]:\n"},"line_number":475,"absolute_offset":15779,"submatches":[{"match":{"text":"    def stream_staging_entries(self) -> list[HistoryEntry]:"},"start":0,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def stream_staging_version(self) -> int:\n"},"line_number":478,"absolute_offset":15910,"submatches":[{"match":{"text":"    def stream_staging_version(self) -> int:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def clear_flushed_stream_staging(self) -> bool:\n"},"line_number":481,"absolute_offset":16000,"submatches":[{"match":{"text":"    def clear_flushed_stream_staging(self) -> bool:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _stream_staging_budget(self) -> int:\n"},"line_number":488,"absolute_offset":16227,"submatches":[{"match":{"text":"    def _stream_staging_budget(self) -> int:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _stream_staging_line_total(self) -> int:\n"},"line_number":494,"absolute_offset":16399,"submatches":[{"match":{"text":"    def _stream_staging_line_total(self) -> int:"},"start":0,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _stage_stream_entry(self, entry: HistoryEntry) -> None:\n"},"line_number":497,"absolute_offset":16528,"submatches":[{"match":{"text":"    def _stage_stream_entry(self, entry: HistoryEntry) -> None:"},"start":0,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _flush_stream_staging(self) -> None:\n"},"line_number":513,"absolute_offset":17226,"submatches":[{"match":{"text":"    def _flush_stream_staging(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _discard_stream_staging(self) -> None:\n"},"line_number":524,"absolute_offset":17623,"submatches":[{"match":{"text":"    def _discard_stream_staging(self) -> None:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _detect_fence_open(self, line: str) -> FenceMatch | None:\n"},"line_number":544,"absolute_offset":18736,"submatches":[{"match":{"text":"    def _detect_fence_open(self, line: str) -> FenceMatch | None:"},"start":0,"end":65}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _is_fence_close(self, line: str) -> bool:\n"},"line_number":553,"absolute_offset":19187,"submatches":[{"match":{"text":"    def _is_fence_close(self, line: str) -> bool:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _is_table_separator(self, line: str) -> bool:\n"},"line_number":567,"absolute_offset":19792,"submatches":[{"match":{"text":"    def _is_table_separator(self, line: str) -> bool:"},"start":0,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _looks_like_table_row(self, line: str) -> bool:\n"},"line_number":572,"absolute_offset":20058,"submatches":[{"match":{"text":"    def _looks_like_table_row(self, line: str) -> bool:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _emit_text_line(self, line: str) -> None:\n"},"line_number":594,"absolute_offset":21022,"submatches":[{"match":{"text":"    def _emit_text_line(self, line: str) -> None:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _flush_container(self) -> None:\n"},"line_number":600,"absolute_offset":21264,"submatches":[{"match":{"text":"    def _flush_container(self) -> None:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _flush_thinking_batch(self) -> None:\n"},"line_number":612,"absolute_offset":21821,"submatches":[{"match":{"text":"    def _flush_thinking_batch(self) -> None:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _consume_thinking_delta(self, delta: str) -> None:\n"},"line_number":625,"absolute_offset":22297,"submatches":[{"match":{"text":"    def _consume_thinking_delta(self, delta: str) -> None:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _handle_complete_line(self, line: str) -> None:\n"},"line_number":649,"absolute_offset":23392,"submatches":[{"match":{"text":"    def _handle_complete_line(self, line: str) -> None:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _refresh_loading_aux(self) -> None:\n"},"line_number":707,"absolute_offset":25999,"submatches":[{"match":{"text":"    def _refresh_loading_aux(self) -> None:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _consume_text_delta(self, delta: str) -> None:\n"},"line_number":720,"absolute_offset":26600,"submatches":[{"match":{"text":"    def _consume_text_delta(self, delta: str) -> None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _force_flush_all(self) -> None:\n"},"line_number":745,"absolute_offset":27625,"submatches":[{"match":{"text":"    def _force_flush_all(self) -> None:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _drop_all_pending(self) -> None:\n"},"line_number":775,"absolute_offset":28963,"submatches":[{"match":{"text":"    def _drop_all_pending(self) -> None:"},"start":0,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _clear_tool_args_progress(self, tool_call_id: str | None = None) -> None:\n"},"line_number":788,"absolute_offset":29524,"submatches":[{"match":{"text":"    def _clear_tool_args_progress(self, tool_call_id: str | None = None) -> None:"},"start":0,"end":81}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _start_tool_args_progress(self, tool_call_id: str, tool_name: str) -> None:\n"},"line_number":796,"absolute_offset":29848,"submatches":[{"match":{"text":"    def _start_tool_args_progress(self, tool_call_id: str, tool_name: str) -> None:"},"start":0,"end":83}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _handle_tool_args_progress(self, event: ToolCallArgsProgressEvent) -> None:\n"},"line_number":813,"absolute_offset":30530,"submatches":[{"match":{"text":"    def _handle_tool_args_progress(self, event: ToolCallArgsProgressEvent) -> None:"},"start":0,"end":83}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _should_drop_duplicate_system_message(\n"},"line_number":837,"absolute_offset":31469,"submatches":[{"match":{"text":"    def _should_drop_duplicate_system_message("},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def start_turn(self) -> None:\n"},"line_number":863,"absolute_offset":32322,"submatches":[{"match":{"text":"    def start_turn(self) -> None:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def seed_user_message(\n"},"line_number":883,"absolute_offset":33108,"submatches":[{"match":{"text":"    def seed_user_message("},"start":0,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def compute_file_ref_hints(self, text: str) -> list[str]:\n"},"line_number":910,"absolute_offset":34120,"submatches":[{"match":{"text":"    def compute_file_ref_hints(self, text: str) -> list[str]:"},"start":0,"end":61}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _maybe_append_file_ref_hint(self, text: str) -> None:\n"},"line_number":914,"absolute_offset":34359,"submatches":[{"match":{"text":"    def _maybe_append_file_ref_hint(self, text: str) -> None:"},"start":0,"end":61}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":113116,"human":"0.000113s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":18464,"matched_lines":51,"matches":51}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"def print_status(console: Console, icon: str, style: str, message: str) -> None:\n"},"line_number":29,"absolute_offset":782,"submatches":[{"match":{"text":"def print_status(console: Console, icon: str, style: str, message: str) -> None:"},"start":0,"end":80}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"def print_warning(console: Console, message: str) -> None:\n"},"line_number":34,"absolute_offset":969,"submatches":[{"match":{"text":"def print_warning(console: Console, message: str) -> None:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"def print_success(console: Console, message: str) -> None:\n"},"line_number":39,"absolute_offset":1134,"submatches":[{"match":{"text":"def print_success(console: Console, message: str) -> None:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"def print_error(console: Console, message: str) -> None:\n"},"line_number":44,"absolute_offset":1291,"submatches":[{"match":{"text":"def print_error(console: Console, message: str) -> None:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"async def _run_mcp_animation(console: Console, server_names: list[str]) -> None:\n"},"line_number":49,"absolute_offset":1444,"submatches":[{"match":{"text":"async def _run_mcp_animation(console: Console, server_names: list[str]) -> None:"},"start":0,"end":80}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"lines":{"text":"async def mcp_connecting_animation(\n"},"line_number":68,"absolute_offset":2128,"submatches":[{"match":{"text":"async def mcp_connecting_animation("},"start":0,"end":35}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":120011,"human":"0.000120s"},"searches":1,"searches_with_match":1,"bytes_searched":2631,"bytes_printed":2350,"matched_lines":6,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/text_effects.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/text_effects.py"},"lines":{"text":"def fit_single_line(content: str, width: int) -> str:\n"},"line_number":9,"absolute_offset":218,"submatches":[{"match":{"text":"def fit_single_line(content: str, width: int) -> str:"},"start":0,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/text_effects.py"},"lines":{"text":"def wrap_user_text(\n"},"line_number":32,"absolute_offset":867,"submatches":[{"match":{"text":"def wrap_user_text("},"start":0,"end":19}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/text_effects.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":9610,"human":"0.000010s"},"searches":1,"searches_with_match":1,"bytes_searched":1498,"bytes_printed":782,"matched_lines":2,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_messages.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_messages.py"},"lines":{"text":"def detect_update_locale() -> str:\n"},"line_number":211,"absolute_offset":10308,"submatches":[{"match":{"text":"def detect_update_locale() -> str:"},"start":0,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_messages.py"},"lines":{"text":"def get_update_messages(locale_key: str | None = None) -> UpdateMessages:\n"},"line_number":223,"absolute_offset":10667,"submatches":[{"match":{"text":"def get_update_messages(locale_key: str | None = None) -> UpdateMessages:"},"start":0,"end":73}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_messages.py"},"lines":{"text":"def _normalize_locale(raw_locale: object) -> str | None:\n"},"line_number":228,"absolute_offset":10837,"submatches":[{"match":{"text":"def _normalize_locale(raw_locale: object) -> str | None:"},"start":0,"end":56}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_messages.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":14087,"human":"0.000014s"},"searches":1,"searches_with_match":1,"bytes_searched":11323,"bytes_printed":1238,"matched_lines":3,"matches":3}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _import_print_mode_components() -> tuple[type, type, type, type]:\n"},"line_number":23,"absolute_offset":461,"submatches":[{"match":{"text":"def _import_print_mode_components() -> tuple[type, type, type, type]:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _empty_usage_summary() -> UsageSummary:\n"},"line_number":38,"absolute_offset":939,"submatches":[{"match":{"text":"def _empty_usage_summary() -> UsageSummary:"},"start":0,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"async def _get_usage_or_empty(session: object | None) -> UsageSummary:\n"},"line_number":56,"absolute_offset":1393,"submatches":[{"match":{"text":"async def _get_usage_or_empty(session: object | None) -> UsageSummary:"},"start":0,"end":70}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _dump_usage(usage: UsageSummary) -> dict[str, Any]:\n"},"line_number":72,"absolute_offset":1981,"submatches":[{"match":{"text":"def _dump_usage(usage: UsageSummary) -> dict[str, Any]:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _is_error_stop(stop_reason: str | None) -> bool:\n"},"line_number":76,"absolute_offset":2080,"submatches":[{"match":{"text":"def _is_error_stop(stop_reason: str | None) -> bool:"},"start":0,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _subtype_for_stop(stop_reason: str | None) -> str:\n"},"line_number":80,"absolute_offset":2201,"submatches":[{"match":{"text":"def _subtype_for_stop(stop_reason: str | None) -> str:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _build_result_payload(\n"},"line_number":88,"absolute_offset":2424,"submatches":[{"match":{"text":"def _build_result_payload("},"start":0,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _write_text_result(text: str) -> None:\n"},"line_number":121,"absolute_offset":3498,"submatches":[{"match":{"text":"def _write_text_result(text: str) -> None:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def _write_json_result(payload: dict[str, Any]) -> None:\n"},"line_number":130,"absolute_offset":3688,"submatches":[{"match":{"text":"def _write_json_result(payload: dict[str, Any]) -> None:"},"start":0,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"def write_json_error_result(\n"},"line_number":136,"absolute_offset":3882,"submatches":[{"match":{"text":"def write_json_error_result("},"start":0,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"async def _consume_query_stream(session: object, message: str) -> _PrintRunFacts:\n"},"line_number":152,"absolute_offset":4292,"submatches":[{"match":{"text":"async def _consume_query_stream(session: object, message: str) -> _PrintRunFacts:"},"start":0,"end":81}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"lines":{"text":"async def run_print_mode(\n"},"line_number":174,"absolute_offset":5333,"submatches":[{"match":{"text":"async def run_print_mode("},"start":0,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/print_mode.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":27895,"human":"0.000028s"},"searches":1,"searches_with_match":1,"bytes_searched":7231,"bytes_printed":4350,"matched_lines":12,"matches":12}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def default_updates_dir() -> Path:\n"},"line_number":92,"absolute_offset":2735,"submatches":[{"match":{"text":"def default_updates_dir() -> Path:"},"start":0,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def _package_key(package: str) -> str:\n"},"line_number":96,"absolute_offset":2821,"submatches":[{"match":{"text":"def _package_key(package: str) -> str:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def result_path(package: str, *, updates_dir: Path | None = None) -> Path:\n"},"line_number":100,"absolute_offset":2899,"submatches":[{"match":{"text":"def result_path(package: str, *, updates_dir: Path | None = None) -> Path:"},"start":0,"end":74}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def _script_path(package: str, updates_dir: Path) -> Path:\n"},"line_number":105,"absolute_offset":3081,"submatches":[{"match":{"text":"def _script_path(package: str, updates_dir: Path) -> Path:"},"start":0,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def _log_path(package: str, updates_dir: Path) -> Path:\n"},"line_number":109,"absolute_offset":3206,"submatches":[{"match":{"text":"def _log_path(package: str, updates_dir: Path) -> Path:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def _ps_quote(value: str) -> str:\n"},"line_number":113,"absolute_offset":3320,"submatches":[{"match":{"text":"def _ps_quote(value: str) -> str:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def build_updater_script(\n"},"line_number":117,"absolute_offset":3404,"submatches":[{"match":{"text":"def build_updater_script("},"start":0,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def spawn_detached_updater(\n"},"line_number":150,"absolute_offset":4598,"submatches":[{"match":{"text":"def spawn_detached_updater("},"start":0,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def consume_update_result(\n"},"line_number":197,"absolute_offset":6070,"submatches":[{"match":{"text":"def consume_update_result("},"start":0,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"lines":{"text":"def format_update_result_message(\n"},"line_number":234,"absolute_offset":7298,"submatches":[{"match":{"text":"def format_update_result_message("},"start":0,"end":33}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/windows_updater.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":25754,"human":"0.000026s"},"searches":1,"searches_with_match":1,"bytes_searched":8100,"bytes_printed":3512,"matched_lines":10,"matches":10}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"def compute_visual_line_ranges(text: str, max_cols: int) -> list[tuple[int, int]]:\n"},"line_number":6,"absolute_offset":82,"submatches":[{"match":{"text":"def compute_visual_line_ranges(text: str, max_cols: int) -> list[tuple[int, int]]:"},"start":0,"end":82}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"def visual_col_for_index(\n"},"line_number":41,"absolute_offset":941,"submatches":[{"match":{"text":"def visual_col_for_index("},"start":0,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"def index_for_visual_col(\n"},"line_number":67,"absolute_offset":1470,"submatches":[{"match":{"text":"def index_for_visual_col("},"start":0,"end":25}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":9735,"human":"0.000010s"},"searches":1,"searches_with_match":1,"bytes_searched":2060,"bytes_printed":1162,"matched_lines":3,"matches":3}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _get_update_check_ssl_context() -> ssl.SSLContext | None:\n"},"line_number":46,"absolute_offset":1243,"submatches":[{"match":{"text":"def _get_update_check_ssl_context() -> ssl.SSLContext | None:"},"start":0,"end":61}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def update_command(self) -> tuple[str, ...]:\n"},"line_number":90,"absolute_offset":2597,"submatches":[{"match":{"text":"    def update_command(self) -> tuple[str, ...]:"},"start":0,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def default_update_target() -> UpdateTarget:\n"},"line_number":111,"absolute_offset":3037,"submatches":[{"match":{"text":"def default_update_target() -> UpdateTarget:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def update_target_from_profile(profile: DistributionProfile) -> UpdateTarget:\n"},"line_number":119,"absolute_offset":3222,"submatches":[{"match":{"text":"def update_target_from_profile(profile: DistributionProfile) -> UpdateTarget:"},"start":0,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _coerce_update_target(\n"},"line_number":133,"absolute_offset":3859,"submatches":[{"match":{"text":"def _coerce_update_target("},"start":0,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _is_chinese_locale() -> bool:\n"},"line_number":151,"absolute_offset":4361,"submatches":[{"match":{"text":"def _is_chinese_locale() -> bool:"},"start":0,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _update_check_trust_env() -> bool:\n"},"line_number":170,"absolute_offset":5045,"submatches":[{"match":{"text":"def _update_check_trust_env() -> bool:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def pypi_json_source(package: str, *, profiler: Any | None = None) -> LatestVersionFetcher:\n"},"line_number":175,"absolute_offset":5193,"submatches":[{"match":{"text":"def pypi_json_source(package: str, *, profiler: Any | None = None) -> LatestVersionFetcher:"},"start":0,"end":91}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    async def fetch() -> LatestRelease | None:\n"},"line_number":176,"absolute_offset":5285,"submatches":[{"match":{"text":"    async def fetch() -> LatestRelease | None:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"async def check_update(\n"},"line_number":195,"absolute_offset":5888,"submatches":[{"match":{"text":"async def check_update("},"start":0,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"async def _fetch_profile_latest_with_timeout(\n"},"line_number":282,"absolute_offset":8930,"submatches":[{"match":{"text":"async def _fetch_profile_latest_with_timeout("},"start":0,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"async def _fetch_latest_version_async(\n"},"line_number":288,"absolute_offset":9129,"submatches":[{"match":{"text":"async def _fetch_latest_version_async("},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _target_for_info(info: UpdateInfo, target: UpdateTarget | None = None) -> UpdateTarget:\n"},"line_number":329,"absolute_offset":10407,"submatches":[{"match":{"text":"def _target_for_info(info: UpdateInfo, target: UpdateTarget | None = None) -> UpdateTarget:"},"start":0,"end":91}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _render_update_prompt_rows(\n"},"line_number":350,"absolute_offset":11296,"submatches":[{"match":{"text":"def _render_update_prompt_rows("},"start":0,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def format_update_hint(info: UpdateInfo, target: UpdateTarget | None = None) -> str:\n"},"line_number":399,"absolute_offset":12765,"submatches":[{"match":{"text":"def format_update_hint(info: UpdateInfo, target: UpdateTarget | None = None) -> str:"},"start":0,"end":84}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def get_pending_update_prompt_info(\n"},"line_number":416,"absolute_offset":13507,"submatches":[{"match":{"text":"def get_pending_update_prompt_info("},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def decide_update_prompt(\n"},"line_number":454,"absolute_offset":14827,"submatches":[{"match":{"text":"def decide_update_prompt("},"start":0,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def mark_update_seen(info: UpdateInfo, *, settings_path: Path | None = None) -> None:\n"},"line_number":467,"absolute_offset":15288,"submatches":[{"match":{"text":"def mark_update_seen(info: UpdateInfo, *, settings_path: Path | None = None) -> None:"},"start":0,"end":85}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def record_skip_until_next_version(\n"},"line_number":475,"absolute_offset":15526,"submatches":[{"match":{"text":"def record_skip_until_next_version("},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"async def show_update_prompt(\n"},"line_number":490,"absolute_offset":15871,"submatches":[{"match":{"text":"async def show_update_prompt("},"start":0,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def render() -> list[tuple[str, str]]:\n"},"line_number":509,"absolute_offset":16561,"submatches":[{"match":{"text":"    def render() -> list[tuple[str, str]]:"},"start":0,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def exit_with(index: int, event: Any) -> None:\n"},"line_number":518,"absolute_offset":16777,"submatches":[{"match":{"text":"    def exit_with(index: int, event: Any) -> None:"},"start":0,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_up(event: Any) -> None:\n"},"line_number":522,"absolute_offset":16893,"submatches":[{"match":{"text":"    def _on_up(event: Any) -> None:"},"start":0,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_down(event: Any) -> None:\n"},"line_number":528,"absolute_offset":17052,"submatches":[{"match":{"text":"    def _on_down(event: Any) -> None:"},"start":0,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_one(event: Any) -> None:\n"},"line_number":534,"absolute_offset":17225,"submatches":[{"match":{"text":"    def _on_one(event: Any) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_two(event: Any) -> None:\n"},"line_number":538,"absolute_offset":17308,"submatches":[{"match":{"text":"    def _on_two(event: Any) -> None:"},"start":0,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_three(event: Any) -> None:\n"},"line_number":542,"absolute_offset":17391,"submatches":[{"match":{"text":"    def _on_three(event: Any) -> None:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_enter(event: Any) -> None:\n"},"line_number":546,"absolute_offset":17480,"submatches":[{"match":{"text":"    def _on_enter(event: Any) -> None:"},"start":0,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"    def _on_cancel(event: Any) -> None:\n"},"line_number":551,"absolute_offset":17602,"submatches":[{"match":{"text":"    def _on_cancel(event: Any) -> None:"},"start":0,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"async def run_update_command(\n"},"line_number":581,"absolute_offset":18404,"submatches":[{"match":{"text":"async def run_update_command("},"start":0,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _load_package_update_state(\n"},"line_number":652,"absolute_offset":20749,"submatches":[{"match":{"text":"def _load_package_update_state("},"start":0,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _write_package_update_state(\n"},"line_number":667,"absolute_offset":21163,"submatches":[{"match":{"text":"def _write_package_update_state("},"start":0,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _package_state_key(package: str) -> str:\n"},"line_number":687,"absolute_offset":21758,"submatches":[{"match":{"text":"def _package_state_key(package: str) -> str:"},"start":0,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"lines":{"text":"def _format_update_command(target: UpdateTarget | None = None) -> str:\n"},"line_number":691,"absolute_offset":21842,"submatches":[{"match":{"text":"def _format_update_command(target: UpdateTarget | None = None) -> str:"},"start":0,"end":70}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/update_check.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":182665,"human":"0.000183s"},"searches":1,"searches_with_match":1,"bytes_searched":21987,"bytes_printed":11875,"matched_lines":34,"matches":34}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def _extract_text(message_obj: object) -> str:\n"},"line_number":39,"absolute_offset":699,"submatches":[{"match":{"text":"def _extract_text(message_obj: object) -> str:"},"start":0,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def _truncate(text: str, max_len: int = _TEXT_FIRST_LINE_MAX) -> str:\n"},"line_number":51,"absolute_offset":1099,"submatches":[{"match":{"text":"def _truncate(text: str, max_len: int = _TEXT_FIRST_LINE_MAX) -> str:"},"start":0,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def _parse_message(row: dict) -> PreviewMsg | None:\n"},"line_number":58,"absolute_offset":1319,"submatches":[{"match":{"text":"def _parse_message(row: dict) -> PreviewMsg | None:"},"start":0,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def load_head_tail(jsonl_path: Path) -> PreviewPayload:\n"},"line_number":76,"absolute_offset":1866,"submatches":[{"match":{"text":"def load_head_tail(jsonl_path: Path) -> PreviewPayload:"},"start":0,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def format_role_label(role: str) -> str:\n"},"line_number":121,"absolute_offset":3677,"submatches":[{"match":{"text":"def format_role_label(role: str) -> str:"},"start":0,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"def format_preview_body(payload: PreviewPayload) -> str:\n"},"line_number":126,"absolute_offset":3850,"submatches":[{"match":{"text":"def format_preview_body(payload: PreviewPayload) -> str:"},"start":0,"end":56}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":15502,"human":"0.000016s"},"searches":1,"searches_with_match":1,"bytes_searched":4498,"bytes_printed":2302,"matched_lines":6,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    def summary(self) -> str:\n"},"line_number":42,"absolute_offset":864,"submatches":[{"match":{"text":"    def summary(self) -> str:"},"start":0,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"def _normalized_tool_name(tool_name: str) -> str:\n"},"line_number":51,"absolute_offset":1097,"submatches":[{"match":{"text":"def _normalized_tool_name(tool_name: str) -> str:"},"start":0,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"def tool_fold_kind(tool_name: str) -> FoldKind | None:\n"},"line_number":55,"absolute_offset":1197,"submatches":[{"match":{"text":"def tool_fold_kind(tool_name: str) -> FoldKind | None:"},"start":0,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"def is_foldable_tool(tool_name: str) -