{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/CONTEXT.md"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/CONTEXT.md"},"lines":{"text":"_Avoid_: session transcript, telemetry event\n"},"line_number":45,"absolute_offset":3255,"submatches":[{"match":{"text":"telemetry"},"start":29,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/CONTEXT.md"},"lines":{"text":"cleanup telemetry and cannot depend on session shutdown succeeding.\n"},"line_number":70,"absolute_offset":4656,"submatches":[{"match":{"text":"telemetry"},"start":8,"end":17}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/CONTEXT.md"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":26399,"human":"0.000026s"},"searches":1,"searches_with_match":1,"bytes_searched":9276,"bytes_printed":678,"matched_lines":2,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/README.md"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/README.md"},"lines":{"text":"comate mcp add -t http sentry https://mcp.sentry.dev/mcp -H \"Authorization: Bearer ...\"\n"},"line_number":24,"absolute_offset":324,"submatches":[{"match":{"text":"sentry"},"start":23,"end":29},{"match":{"text":"sentry"},"start":42,"end":48}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/README.md"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":16277,"human":"0.000016s"},"searches":1,"searches_with_match":1,"bytes_searched":1587,"bytes_printed":467,"matched_lines":1,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/uv.lock"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/uv.lock"},"lines":{"text":"    { name = \"opentelemetry-instrumentation-anthropic\", specifier = \">=0.52.3\" },\n"},"line_number":368,"absolute_offset":57488,"submatches":[{"match":{"text":"telemetry"},"start":18,"end":27}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/uv.lock"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":180958,"human":"0.000181s"},"searches":1,"searches_with_match":1,"bytes_searched":347454,"bytes_printed":417,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            f\"  {command_name} mcp add --transport http sentry https://mcp.sentry.dev/mcp\\n\\n\"\n"},"line_number":52,"absolute_offset":1404,"submatches":[{"match":{"text":"sentry"},"start":56,"end":62},{"match":{"text":"sentry"},"start":75,"end":81}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":21125,"human":"0.000021s"},"searches":1,"searches_with_match":1,"bytes_searched":24900,"bytes_printed":501,"matched_lines":1,"matches":2}}}
{"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":"        segment = f\"{count} {server} {_plural('tool', count)}\"\n"},"line_number":139,"absolute_offset":4208,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"            segment = f\"{verb} {segment}\"\n"},"line_number":141,"absolute_offset":4294,"submatches":[{"match":{"text":"segment"},"start":12,"end":19},{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        parts.append(segment)\n"},"line_number":142,"absolute_offset":4336,"submatches":[{"match":{"text":"segment"},"start":21,"end":28}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":16264,"human":"0.000016s"},"searches":1,"searches_with_match":1,"bytes_searched":8187,"bytes_printed":1093,"matched_lines":3,"matches":4}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_paste_placeholder.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_paste_placeholder.py"},"lines":{"text":"    def test_submit_from_input_with_prefix_expands_placeholder_segment(self) -> None:\n"},"line_number":249,"absolute_offset":8484,"submatches":[{"match":{"text":"segment"},"start":63,"end":70}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tui_paste_placeholder.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":15203,"human":"0.000015s"},"searches":1,"searches_with_match":1,"bytes_searched":12135,"bytes_printed":470,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    def append_segment(start: int, end: int) -> None:\n"},"line_number":364,"absolute_offset":12141,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        segment = text[start:end]\n"},"line_number":366,"absolute_offset":12223,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        parts.append(segment)\n"},"line_number":367,"absolute_offset":12257,"submatches":[{"match":{"text":"segment"},"start":21,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            segment_start=start,\n"},"line_number":371,"absolute_offset":12382,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            segment_end=end,\n"},"line_number":372,"absolute_offset":12415,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        output_len += len(segment)\n"},"line_number":375,"absolute_offset":12491,"submatches":[{"match":{"text":"segment"},"start":26,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        append_segment(cursor, match.start())\n"},"line_number":381,"absolute_offset":12654,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    append_segment(cursor, len(text))\n"},"line_number":412,"absolute_offset":13828,"submatches":[{"match":{"text":"segment"},"start":11,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    def append_segment(start: int, end: int) -> None:\n"},"line_number":436,"absolute_offset":14458,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        segment = text[start:end]\n"},"line_number":438,"absolute_offset":14540,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        parts.append(segment)\n"},"line_number":439,"absolute_offset":14574,"submatches":[{"match":{"text":"segment"},"start":21,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            segment_start=start,\n"},"line_number":443,"absolute_offset":14699,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            segment_end=end,\n"},"line_number":444,"absolute_offset":14732,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        output_len += len(segment)\n"},"line_number":447,"absolute_offset":14808,"submatches":[{"match":{"text":"segment"},"start":26,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        append_segment(cursor, match.start())\n"},"line_number":453,"absolute_offset":14974,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    append_segment(cursor, len(text))\n"},"line_number":504,"absolute_offset":17151,"submatches":[{"match":{"text":"segment"},"start":11,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    segment_start: int,\n"},"line_number":584,"absolute_offset":19252,"submatches":[{"match":{"text":"segment"},"start":4,"end":11}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    segment_end: int,\n"},"line_number":585,"absolute_offset":19276,"submatches":[{"match":{"text":"segment"},"start":4,"end":11}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        overlap_start = max(span_start, segment_start)\n"},"line_number":589,"absolute_offset":19375,"submatches":[{"match":{"text":"segment"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        overlap_end = min(span_end, segment_end)\n"},"line_number":590,"absolute_offset":19430,"submatches":[{"match":{"text":"segment"},"start":36,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        shifted_start = output_start + (overlap_start - segment_start)\n"},"line_number":593,"absolute_offset":19541,"submatches":[{"match":{"text":"segment"},"start":56,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        shifted_end = output_start + (overlap_end - segment_start)\n"},"line_number":594,"absolute_offset":19612,"submatches":[{"match":{"text":"segment"},"start":52,"end":59}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":44581,"human":"0.000045s"},"searches":1,"searches_with_match":1,"bytes_searched":20256,"bytes_printed":6988,"matched_lines":22,"matches":22}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_app_print_mode.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_app_print_mode.py"},"lines":{"text":"        services=BackendServices(base_url=\"https://telemetry.example.com\")\n"},"line_number":895,"absolute_offset":35051,"submatches":[{"match":{"text":"telemetry"},"start":51,"end":60}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_app_print_mode.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":24358,"human":"0.000024s"},"searches":1,"searches_with_match":1,"bytes_searched":38799,"bytes_printed":450,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_view.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_view.py"},"lines":{"text":"            segment = rendered.plain[span.start : span.end]\n"},"line_number":182,"absolute_offset":6266,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_view.py"},"lines":{"text":"            if not segment.startswith((CELL_USED, CELL_PARTIAL)):\n"},"line_number":183,"absolute_offset":6326,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_context_view.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":22056,"human":"0.000022s"},"searches":1,"searches_with_match":1,"bytes_searched":22276,"bytes_printed":738,"matched_lines":2,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"from rich.segment import Segment\n"},"line_number":14,"absolute_offset":484,"submatches":[{"match":{"text":"segment"},"start":10,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    for segment in _console.render(renderable):\n"},"line_number":58,"absolute_offset":1932,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if not isinstance(segment, Segment):\n"},"line_number":59,"absolute_offset":1980,"submatches":[{"match":{"text":"segment"},"start":26,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if not segment.text:\n"},"line_number":61,"absolute_offset":2046,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        style = _rich_style_to_pt(segment.style) if segment.style else \"\"\n"},"line_number":63,"absolute_offset":2096,"submatches":[{"match":{"text":"segment"},"start":34,"end":41},{"match":{"text":"segment"},"start":52,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        fragments.append((style, segment.text))\n"},"line_number":64,"absolute_offset":2170,"submatches":[{"match":{"text":"segment"},"start":33,"end":40}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":26371,"human":"0.000026s"},"searches":1,"searches_with_match":1,"bytes_searched":12933,"bytes_printed":2056,"matched_lines":6,"matches":7}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"lines":{"text":"from rich.segment import Segment\n"},"line_number":13,"absolute_offset":474,"submatches":[{"match":{"text":"segment"},"start":10,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"lines":{"text":"    for segment in console.render(renderable):\n"},"line_number":65,"absolute_offset":2139,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"lines":{"text":"        if not isinstance(segment, Segment):\n"},"line_number":66,"absolute_offset":2186,"submatches":[{"match":{"text":"segment"},"start":26,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"lines":{"text":"        text = segment.text\n"},"line_number":68,"absolute_offset":2252,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"lines":{"text":"        style = _rich_style_to_pt(segment.style) if segment.style else \"\"\n"},"line_number":71,"absolute_offset":2322,"submatches":[{"match":{"text":"segment"},"start":34,"end":41},{"match":{"text":"segment"},"start":52,"end":59}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_viewer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":21879,"human":"0.000022s"},"searches":1,"searches_with_match":1,"bytes_searched":6775,"bytes_printed":1747,"matched_lines":5,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    len(nico_segment)\n"},"line_number":67,"absolute_offset":2275,"submatches":[{"match":{"text":"segment"},"start":13,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    + len(co_segment)\n"},"line_number":69,"absolute_offset":2323,"submatches":[{"match":{"text":"segment"},"start":13,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    + len(mate_segment)\n"},"line_number":71,"absolute_offset":2366,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    for nico_segment, co_segment, mate_segment in zip(\n"},"line_number":72,"absolute_offset":2390,"submatches":[{"match":{"text":"segment"},"start":13,"end":20},{"match":{"text":"segment"},"start":25,"end":32},{"match":{"text":"segment"},"start":39,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    len(nico_segment)\n"},"line_number":114,"absolute_offset":3985,"submatches":[{"match":{"text":"segment"},"start":13,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    + len(co_segment)\n"},"line_number":116,"absolute_offset":4036,"submatches":[{"match":{"text":"segment"},"start":13,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    + len(mate_segment)\n"},"line_number":118,"absolute_offset":4082,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    for nico_segment, co_segment, mate_segment in zip(\n"},"line_number":119,"absolute_offset":4106,"submatches":[{"match":{"text":"segment"},"start":13,"end":20},{"match":{"text":"segment"},"start":25,"end":32},{"match":{"text":"segment"},"start":39,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    for nico_segment, co_segment, mate_segment in zip(\n"},"line_number":235,"absolute_offset":7257,"submatches":[{"match":{"text":"segment"},"start":13,"end":20},{"match":{"text":"segment"},"start":25,"end":32},{"match":{"text":"segment"},"start":39,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"            nico_segment,\n"},"line_number":241,"absolute_offset":7462,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"            co_segment,\n"},"line_number":248,"absolute_offset":7651,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"            mate_segment,\n"},"line_number":255,"absolute_offset":7838,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":25620,"human":"0.000026s"},"searches":1,"searches_with_match":1,"bytes_searched":10098,"bytes_printed":3830,"matched_lines":12,"matches":18}}}
{"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":"from rich.segment import Segment, Segments\n"},"line_number":5,"absolute_offset":119,"submatches":[{"match":{"text":"segment"},"start":10,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    segments: list[Segment] = []\n"},"line_number":26,"absolute_offset":750,"submatches":[{"match":{"text":"segment"},"start":4,"end":11}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"        segments.extend(line)\n"},"line_number":29,"absolute_offset":854,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"            segments.append(Segment.line())\n"},"line_number":31,"absolute_offset":914,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/layout_coordinator.py"},"lines":{"text":"    return Segments(segments, new_lines=False)\n"},"line_number":32,"absolute_offset":958,"submatches":[{"match":{"text":"segment"},"start":20,"end":27}]}}
{"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":24981,"human":"0.000025s"},"searches":1,"searches_with_match":1,"bytes_searched":6180,"bytes_printed":1660,"matched_lines":5,"matches":5}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"                segments = [\n"},"line_number":686,"absolute_offset":25329,"submatches":[{"match":{"text":"segment"},"start":16,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"                segments = [\n"},"line_number":694,"absolute_offset":25763,"submatches":[{"match":{"text":"segment"},"start":16,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"                segments,\n"},"line_number":702,"absolute_offset":26085,"submatches":[{"match":{"text":"segment"},"start":16,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        segments: list[tuple[str, str]],\n"},"line_number":712,"absolute_offset":26315,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        for content, style in segments:\n"},"line_number":717,"absolute_offset":26480,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"            segments = [\n"},"line_number":760,"absolute_offset":28193,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"            segments = [(f\" {tool_name}\", TOOL_NAME_STYLE)]\n"},"line_number":765,"absolute_offset":28383,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"                segments.append((suffix, TOOL_SUMMARY_STYLE))\n"},"line_number":768,"absolute_offset":28528,"submatches":[{"match":{"text":"segment"},"start":16,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"            text_ref, TOOL_RUNNING_PREFIX, TOOL_GLYPH_RUNNING_STYLE, segments\n"},"line_number":770,"absolute_offset":28625,"submatches":[{"match":{"text":"segment"},"start":69,"end":76}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":31618,"human":"0.000032s"},"searches":1,"searches_with_match":1,"bytes_searched":31986,"bytes_printed":2854,"matched_lines":9,"matches":9}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"def _highlight_code_segment(\n"},"line_number":535,"absolute_offset":17861,"submatches":[{"match":{"text":"segment"},"start":20,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"    segment = Text(code, style=base_style)\n"},"line_number":541,"absolute_offset":17971,"submatches":[{"match":{"text":"segment"},"start":4,"end":11}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"        return segment\n"},"line_number":543,"absolute_offset":18049,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"        return segment\n"},"line_number":548,"absolute_offset":18217,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"            segment.stylize(stripped_style, span.start, span.end)\n"},"line_number":552,"absolute_offset":18376,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"    return segment\n"},"line_number":553,"absolute_offset":18442,"submatches":[{"match":{"text":"segment"},"start":11,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"                _highlight_code_segment(\n"},"line_number":610,"absolute_offset":20342,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"lines":{"text":"                _highlight_code_segment(code, syntax=syntax, base_style=\"dim\")\n"},"line_number":623,"absolute_offset":20734,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_result_formatters.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":35924,"human":"0.000036s"},"searches":1,"searches_with_match":1,"bytes_searched":38454,"bytes_printed":2645,"matched_lines":8,"matches":8}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"from rich.segment import Segment\n"},"line_number":7,"absolute_offset":124,"submatches":[{"match":{"text":"segment"},"start":10,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"def _segments_to_text(segments: list[Segment]) -> Text:\n"},"line_number":84,"absolute_offset":2082,"submatches":[{"match":{"text":"segment"},"start":5,"end":12},{"match":{"text":"segment"},"start":22,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"    for segment in segments:\n"},"line_number":86,"absolute_offset":2156,"submatches":[{"match":{"text":"segment"},"start":8,"end":15},{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        if segment.control or not segment.text:\n"},"line_number":87,"absolute_offset":2185,"submatches":[{"match":{"text":"segment"},"start":11,"end":18},{"match":{"text":"segment"},"start":34,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        text.append(segment.text, style=segment.style)\n"},"line_number":89,"absolute_offset":2254,"submatches":[{"match":{"text":"segment"},"start":20,"end":27},{"match":{"text":"segment"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        segments = list(console.render(_markdown(content), console.options))\n"},"line_number":134,"absolute_offset":3717,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        rendered = _segments_to_text(segments)\n"},"line_number":135,"absolute_offset":3794,"submatches":[{"match":{"text":"segment"},"start":20,"end":27},{"match":{"text":"segment"},"start":37,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"    for segment in text.render(Console(color_system=\"truecolor\")):\n"},"line_number":187,"absolute_offset":5637,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        if not segment.text:\n"},"line_number":188,"absolute_offset":5704,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"            rich_style_to_prompt_toolkit_style(segment.style)\n"},"line_number":191,"absolute_offset":5772,"submatches":[{"match":{"text":"segment"},"start":47,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"            if segment.style\n"},"line_number":192,"absolute_offset":5834,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        fragments.append((style, segment.text))\n"},"line_number":195,"absolute_offset":5893,"submatches":[{"match":{"text":"segment"},"start":33,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        segments = list(console.render(markdown, console.options))\n"},"line_number":262,"absolute_offset":8231,"submatches":[{"match":{"text":"segment"},"start":8,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"lines":{"text":"        rendered = _segments_to_text(segments)\n"},"line_number":263,"absolute_offset":8298,"submatches":[{"match":{"text":"segment"},"start":20,"end":27},{"match":{"text":"segment"},"start":37,"end":44}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/markdown_render.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":28334,"human":"0.000028s"},"searches":1,"searches_with_match":1,"bytes_searched":8491,"bytes_printed":4812,"matched_lines":14,"matches":20}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"},"lines":{"text":"        # _append_assistant_text → _flush_assistant_segment 入 history\n"},"line_number":187,"absolute_offset":7050,"submatches":[{"match":{"text":"segment"},"start":54,"end":61}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_e2e.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":13101,"human":"0.000013s"},"searches":1,"searches_with_match":1,"bytes_searched":7517,"bytes_printed":452,"matched_lines":1,"matches":1}}}
{"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":"        self._flush_assistant_segment()\n"},"line_number":926,"absolute_offset":34538,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":953,"absolute_offset":35493,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":989,"absolute_offset":37137,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1013,"absolute_offset":37955,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1215,"absolute_offset":45648,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1224,"absolute_offset":45958,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1231,"absolute_offset":46286,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1240,"absolute_offset":46547,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1432,"absolute_offset":53470,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1449,"absolute_offset":54186,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"        self._flush_assistant_segment()\n"},"line_number":1456,"absolute_offset":54460,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"    def _flush_assistant_segment(self) -> None:\n"},"line_number":1586,"absolute_offset":60493,"submatches":[{"match":{"text":"segment"},"start":25,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"            self._flush_assistant_segment()\n"},"line_number":1892,"absolute_offset":72650,"submatches":[{"match":{"text":"segment"},"start":34,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/event_renderer.py"},"lines":{"text":"                self._flush_assistant_segment()\n"},"line_number":2207,"absolute_offset":88291,"submatches":[{"match":{"text":"segment"},"start":38,"end":45}]}}
{"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":64313,"human":"0.000064s"},"searches":1,"searches_with_match":1,"bytes_searched":89870,"bytes_printed":4424,"matched_lines":14,"matches":14}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"},"lines":{"text":"        from comate_cli.terminal_agent.history_printer import _styled_subtitle_segment\n"},"line_number":110,"absolute_offset":4517,"submatches":[{"match":{"text":"segment"},"start":79,"end":86}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"},"lines":{"text":"            seg = _styled_subtitle_segment(content, error_style)\n"},"line_number":118,"absolute_offset":4804,"submatches":[{"match":{"text":"segment"},"start":35,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"},"lines":{"text":"        from comate_cli.terminal_agent.history_printer import _styled_subtitle_segment\n"},"line_number":135,"absolute_offset":5555,"submatches":[{"match":{"text":"segment"},"start":79,"end":86}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"},"lines":{"text":"        seg = _styled_subtitle_segment(\"File not found\", error_style)\n"},"line_number":138,"absolute_offset":5687,"submatches":[{"match":{"text":"segment"},"start":31,"end":38}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_history_printer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":33894,"human":"0.000034s"},"searches":1,"searches_with_match":1,"bytes_searched":40617,"bytes_printed":1430,"matched_lines":4,"matches":4}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"  1. _flush_assistant_segment() 提交 assistant entry 之后\n"},"line_number":4,"absolute_offset":87,"submatches":[{"match":{"text":"segment"},"start":22,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"  4. finalize_turn() 中 _force_flush_all / _flush_assistant_segment 之后\n"},"line_number":7,"absolute_offset":246,"submatches":[{"match":{"text":"segment"},"start":61,"end":68}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"def test_flush_assistant_segment_flushes_pending_logs() -> None:\n"},"line_number":72,"absolute_offset":2940,"submatches":[{"match":{"text":"segment"},"start":25,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"lines":{"text":"    renderer._flush_assistant_segment()\n"},"line_number":77,"absolute_offset":3239,"submatches":[{"match":{"text":"segment"},"start":30,"end":37}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_event_renderer_log_boundary.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":18197,"human":"0.000018s"},"searches":1,"searches_with_match":1,"bytes_searched":8015,"bytes_printed":1413,"matched_lines":4,"matches":4}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"            \"sentry\",\n"},"line_number":130,"absolute_offset":3385,"submatches":[{"match":{"text":"sentry"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"            \"https://mcp.sentry.dev/mcp\",\n"},"line_number":131,"absolute_offset":3407,"submatches":[{"match":{"text":"sentry"},"start":25,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    sentry = payload[\"mcpServers\"][\"sentry\"]\n"},"line_number":139,"absolute_offset":3614,"submatches":[{"match":{"text":"sentry"},"start":4,"end":10},{"match":{"text":"sentry"},"start":36,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    assert sentry[\"type\"] == \"http\"\n"},"line_number":140,"absolute_offset":3659,"submatches":[{"match":{"text":"sentry"},"start":11,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    assert sentry[\"headers\"][\"Authorization\"] == \"Bearer token\"\n"},"line_number":141,"absolute_offset":3695,"submatches":[{"match":{"text":"sentry"},"start":11,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"        [\"add\", \"sentry\", \"--transport\", \"http\", \"https://mcp.sentry.dev/mcp\"],\n"},"line_number":193,"absolute_offset":5362,"submatches":[{"match":{"text":"sentry"},"start":17,"end":23},{"match":{"text":"sentry"},"start":62,"end":68}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    sentry = payload[\"mcpServers\"][\"sentry\"]\n"},"line_number":198,"absolute_offset":5544,"submatches":[{"match":{"text":"sentry"},"start":4,"end":10},{"match":{"text":"sentry"},"start":36,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    assert sentry[\"type\"] == \"http\"\n"},"line_number":199,"absolute_offset":5589,"submatches":[{"match":{"text":"sentry"},"start":11,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"lines":{"text":"    assert sentry[\"url\"] == \"https://mcp.sentry.dev/mcp\"\n"},"line_number":200,"absolute_offset":5625,"submatches":[{"match":{"text":"sentry"},"start":11,"end":17},{"match":{"text":"sentry"},"start":41,"end":47}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_mcp_cli.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":38422,"human":"0.000038s"},"searches":1,"searches_with_match":1,"bytes_searched":32019,"bytes_printed":2932,"matched_lines":9,"matches":13}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[\"prefix\", \"x\" * 5000],\n"},"line_number":348,"absolute_offset":12257,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[],\n"},"line_number":370,"absolute_offset":13080,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[\"must not be used\"],\n"},"line_number":403,"absolute_offset":14120,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[],\n"},"line_number":512,"absolute_offset":17634,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[],\n"},"line_number":575,"absolute_offset":19814,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"lines":{"text":"            output_segments=[],\n"},"line_number":619,"absolute_offset":21317,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_jobs_picker.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":28817,"human":"0.000029s"},"searches":1,"searches_with_match":1,"bytes_searched":22058,"bytes_printed":1831,"matched_lines":6,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"lines":{"text":"            long_cwd = \"/\" + \"/\".join(f\"segment{i}\" for i in range(60))\n"},"line_number":23,"absolute_offset":918,"submatches":[{"match":{"text":"segment"},"start":40,"end":47}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_input_history.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":8839,"human":"0.000009s"},"searches":1,"searches_with_match":1,"bytes_searched":8154,"bytes_printed":444,"matched_lines":1,"matches":1}}}
{"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":"        self._trim_segment_leading_noise_pending = True\n"},"line_number":100,"absolute_offset":2679,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_chunks: list[str] = []\n"},"line_number":101,"absolute_offset":2735,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_mode: _SegmentMode | None = None\n"},"line_number":102,"absolute_offset":2780,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._pending_gap_before_next_segment = False\n"},"line_number":105,"absolute_offset":2917,"submatches":[{"match":{"text":"segment"},"start":38,"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 _reset_segment_state(self) -> None:\n"},"line_number":107,"absolute_offset":2972,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._trim_segment_leading_noise_pending = True\n"},"line_number":108,"absolute_offset":3016,"submatches":[{"match":{"text":"segment"},"start":19,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_chunks = []\n"},"line_number":109,"absolute_offset":3072,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_mode = None\n"},"line_number":110,"absolute_offset":3106,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._pending_gap_before_next_segment = False\n"},"line_number":115,"absolute_offset":3243,"submatches":[{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._reset_segment_state()\n"},"line_number":116,"absolute_offset":3297,"submatches":[{"match":{"text":"segment"},"start":20,"end":27}]}}
{"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":118,"absolute_offset":3334,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"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":129,"absolute_offset":3729,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"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":159,"absolute_offset":4832,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if not self._segment_chunks or self._segment_mode is not None:\n"},"line_number":160,"absolute_offset":4892,"submatches":[{"match":{"text":"segment"},"start":21,"end":28},{"match":{"text":"segment"},"start":45,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_mode = \"prefixed_plain_first_line\"\n"},"line_number":164,"absolute_offset":5142,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"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":166,"absolute_offset":5200,"submatches":[{"match":{"text":"segment"},"start":22,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._render_unresolved_segment_if_needed()\n"},"line_number":167,"absolute_offset":5271,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        content = \"\".join(self._segment_chunks)\n"},"line_number":168,"absolute_offset":5323,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        mode = self._segment_mode\n"},"line_number":169,"absolute_offset":5371,"submatches":[{"match":{"text":"segment"},"start":21,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._reset_segment_state()\n"},"line_number":170,"absolute_offset":5405,"submatches":[{"match":{"text":"segment"},"start":20,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._blocks.append(self._build_segment_renderable(mode, content))\n"},"line_number":174,"absolute_offset":5507,"submatches":[{"match":{"text":"segment"},"start":40,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._flush_active_segment(inter_block_gap=True)\n"},"line_number":183,"absolute_offset":5830,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._flush_active_segment(inter_block_gap=True)\n"},"line_number":191,"absolute_offset":6165,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if self._trim_segment_leading_noise_pending:\n"},"line_number":206,"absolute_offset":6753,"submatches":[{"match":{"text":"segment"},"start":22,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"            self._trim_segment_leading_noise_pending = False\n"},"line_number":210,"absolute_offset":6900,"submatches":[{"match":{"text":"segment"},"start":23,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if not self._segment_chunks and self._pending_gap_before_next_segment:\n"},"line_number":214,"absolute_offset":7002,"submatches":[{"match":{"text":"segment"},"start":21,"end":28},{"match":{"text":"segment"},"start":70,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"            self._pending_gap_before_next_segment = False\n"},"line_number":216,"absolute_offset":7122,"submatches":[{"match":{"text":"segment"},"start":42,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._segment_chunks.append(text)\n"},"line_number":218,"absolute_offset":7181,"submatches":[{"match":{"text":"segment"},"start":14,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        content = \"\".join(self._segment_chunks)\n"},"line_number":219,"absolute_offset":7223,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if self._segment_mode is None:\n"},"line_number":220,"absolute_offset":7271,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"            self._segment_mode = self._resolve_segment_mode(content)\n"},"line_number":221,"absolute_offset":7310,"submatches":[{"match":{"text":"segment"},"start":18,"end":25},{"match":{"text":"segment"},"start":47,"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 insert_gap_before_next_segment(self) -> None:\n"},"line_number":224,"absolute_offset":7422,"submatches":[{"match":{"text":"segment"},"start":31,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if self._segment_chunks:\n"},"line_number":225,"absolute_offset":7476,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._pending_gap_before_next_segment = True\n"},"line_number":229,"absolute_offset":7576,"submatches":[{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._flush_active_segment(inter_block_gap=True)\n"},"line_number":232,"absolute_offset":7683,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._flush_active_segment(inter_block_gap=False)\n"},"line_number":235,"absolute_offset":7778,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        self._pending_gap_before_next_segment = False\n"},"line_number":236,"absolute_offset":7836,"submatches":[{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        content = \"\".join(self._segment_chunks)\n"},"line_number":240,"absolute_offset":8011,"submatches":[{"match":{"text":"segment"},"start":32,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"        if content and self._segment_mode is not None:\n"},"line_number":241,"absolute_offset":8059,"submatches":[{"match":{"text":"segment"},"start":29,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/assistant_render.py"},"lines":{"text":"            blocks.append(self._build_segment_renderable(self._segment_mode, content))\n"},"line_number":242,"absolute_offset":8114,"submatches":[{"match":{"text":"segment"},"start":38,"end":45},{"match":{"text":"segment"},"start":63,"end":70}]}}
{"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":78935,"human":"0.000079s"},"searches":1,"searches_with_match":1,"bytes_searched":8282,"bytes_printed":13138,"matched_lines":40,"matches":44}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"    def _find_inserted_segment(\n"},"line_number":365,"absolute_offset":13161,"submatches":[{"match":{"text":"segment"},"start":23,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"        segment = self._find_inserted_segment(previous_text, text)\n"},"line_number":425,"absolute_offset":15440,"submatches":[{"match":{"text":"segment"},"start":8,"end":15},{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"        inserted_text = segment[2] if segment is not None else \"\"\n"},"line_number":426,"absolute_offset":15507,"submatches":[{"match":{"text":"segment"},"start":24,"end":31},{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"        if segment is None:\n"},"line_number":445,"absolute_offset":16191,"submatches":[{"match":{"text":"segment"},"start":11,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"lines":{"text":"        start, end, inserted_text = segment\n"},"line_number":447,"absolute_offset":16244,"submatches":[{"match":{"text":"segment"},"start":36,"end":43}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/input_behavior.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":22787,"human":"0.000023s"},"searches":1,"searches_with_match":1,"bytes_searched":24528,"bytes_printed":1853,"matched_lines":5,"matches":7}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tool_view.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tool_view.py"},"lines":{"text":"    def test_preserves_multiple_trailing_segments(self) -> None:\n"},"line_number":211,"absolute_offset":8996,"submatches":[{"match":{"text":"segment"},"start":41,"end":48}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_tool_view.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":12885,"human":"0.000013s"},"searches":1,"searches_with_match":1,"bytes_searched":15662,"bytes_printed":425,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"        # Rich __rich_console__ 末尾会输出一个 \"\\n\" segment，需要先剥掉再追加，\n"},"line_number":1173,"absolute_offset":47703,"submatches":[{"match":{"text":"segment"},"start":59,"end":66}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"        from rich.segment import Segment\n"},"line_number":1395,"absolute_offset":57516,"submatches":[{"match":{"text":"segment"},"start":18,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"        for segment in renderable.__rich_console__(console, console.options):\n"},"line_number":1398,"absolute_offset":57604,"submatches":[{"match":{"text":"segment"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"            if isinstance(segment, Segment):\n"},"line_number":1399,"absolute_offset":57682,"submatches":[{"match":{"text":"segment"},"start":26,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"                text = segment.text\n"},"line_number":1400,"absolute_offset":57727,"submatches":[{"match":{"text":"segment"},"start":23,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"lines":{"text":"                style = segment.style\n"},"line_number":1401,"absolute_offset":57763,"submatches":[{"match":{"text":"segment"},"start":24,"end":31}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui_parts/render_panels.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":40658,"human":"0.000041s"},"searches":1,"searches_with_match":1,"bytes_searched":59604,"bytes_printed":2128,"matched_lines":6,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    line.append_text(_styled_subtitle_segment(content_lines[0], text_style))\n"},"line_number":51,"absolute_offset":1519,"submatches":[{"match":{"text":"segment"},"start":38,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        line.append_text(_styled_subtitle_segment(continuation, text_style))\n"},"line_number":55,"absolute_offset":1707,"submatches":[{"match":{"text":"segment"},"start":42,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"def _styled_subtitle_segment(content: str, text_style: str) -> Text:\n"},"line_number":75,"absolute_offset":2278,"submatches":[{"match":{"text":"segment"},"start":21,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        line.append_text(_styled_subtitle_segment(content, text_style))\n"},"line_number":106,"absolute_offset":3388,"submatches":[{"match":{"text":"segment"},"start":42,"end":49}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":21455,"human":"0.000021s"},"searches":1,"searches_with_match":1,"bytes_searched":28333,"bytes_printed":1486,"matched_lines":4,"matches":4}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/jobs_picker.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/jobs_picker.py"},"lines":{"text":"    display window. Reading output segments never advances JobRecord.read_cursor.\n"},"line_number":100,"absolute_offset":3126,"submatches":[{"match":{"text":"segment"},"start":35,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/jobs_picker.py"},"lines":{"text":"            segments = getattr(record, \"output_segments\", ()) or ()\n"},"line_number":126,"absolute_offset":3966,"submatches":[{"match":{"text":"segment"},"start":12,"end":19},{"match":{"text":"segment"},"start":47,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/jobs_picker.py"},"lines":{"text":"            output_tail = \"\".join(str(segment) for segment in segments)[\n"},"line_number":127,"absolute_offset":4034,"submatches":[{"match":{"text":"segment"},"start":38,"end":45},{"match":{"text":"segment"},"start":51,"end":58},{"match":{"text":"segment"},"start":62,"end":69}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/jobs_picker.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":17564,"human":"0.000018s"},"searches":1,"searches_with_match":1,"bytes_searched":17184,"bytes_printed":1288,"matched_lines":3,"matches":6}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_layout_coordinator.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_layout_coordinator.py"},"lines":{"text":"        plain_lines.append(\"\".join(segment.text for segment in line).rstrip(\"\\n\"))\n"},"line_number":19,"absolute_offset":515,"submatches":[{"match":{"text":"segment"},"start":35,"end":42},{"match":{"text":"segment"},"start":52,"end":59}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_layout_coordinator.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":9187,"human":"0.000009s"},"searches":1,"searches_with_match":1,"bytes_searched":2842,"bytes_printed":513,"matched_lines":1,"matches":2}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        co_segments = self._span_texts_for_style(text, \"bold rgb(103,213,255)\")\n"},"line_number":126,"absolute_offset":4467,"submatches":[{"match":{"text":"segment"},"start":11,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        mate_segments = self._span_texts_for_style(text, \"bold rgb(216,221,227)\")\n"},"line_number":127,"absolute_offset":4547,"submatches":[{"match":{"text":"segment"},"start":13,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertTrue(all(segment.strip() for segment in co_segments))\n"},"line_number":129,"absolute_offset":4630,"submatches":[{"match":{"text":"segment"},"start":28,"end":35},{"match":{"text":"segment"},"start":48,"end":55},{"match":{"text":"segment"},"start":62,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertTrue(all(segment.strip() for segment in mate_segments))\n"},"line_number":130,"absolute_offset":4703,"submatches":[{"match":{"text":"segment"},"start":28,"end":35},{"match":{"text":"segment"},"start":48,"end":55},{"match":{"text":"segment"},"start":64,"end":71}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertTrue(co_segments)\n"},"line_number":131,"absolute_offset":4778,"submatches":[{"match":{"text":"segment"},"start":27,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertTrue(mate_segments)\n"},"line_number":132,"absolute_offset":4815,"submatches":[{"match":{"text":"segment"},"start":29,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        codename_segments = self._span_texts_for_style(\n"},"line_number":150,"absolute_offset":5489,"submatches":[{"match":{"text":"segment"},"start":17,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertEqual([\"Update for My Brothers\"], codename_segments)\n"},"line_number":154,"absolute_offset":5612,"submatches":[{"match":{"text":"segment"},"start":62,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        accent_segments = self._span_texts_for_style(\n"},"line_number":166,"absolute_offset":6236,"submatches":[{"match":{"text":"segment"},"start":15,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"lines":{"text":"        self.assertEqual([\"Fable 5\"], accent_segments)\n"},"line_number":170,"absolute_offset":6354,"submatches":[{"match":{"text":"segment"},"start":45,"end":52}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_logo.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":26919,"human":"0.000027s"},"searches":1,"searches_with_match":1,"bytes_searched":14821,"bytes_printed":3319,"matched_lines":10,"matches":14}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_status_bar.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_status_bar.py"},"lines":{"text":"    async def test_waiting_approval_segment_appears_and_clears(self) -> None:\n"},"line_number":391,"absolute_offset":14784,"submatches":[{"match":{"text":"segment"},"start":36,"end":43}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/tests/test_status_bar.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":15652,"human":"0.000016s"},"searches":1,"searches_with_match":1,"bytes_searched":24102,"bytes_printed":441,"matched_lines":1,"matches":1}}}
{"data":{"elapsed_total":{"human":"0.012474s","nanos":12474258,"secs":0},"stats":{"bytes_printed":68923,"bytes_searched":1003395,"elapsed":{"human":"0.001014s","nanos":1013573,"secs":0},"matched_lines":203,"matches":238,"searches":32,"searches_with_match":32}},"type":"summary"}
