{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"},"lines":{"text":"from dataclasses import dataclass\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":17,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"},"lines":{"text":"from pathlib import Path\n"},"line_number":4,"absolute_offset":70,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"},"lines":{"text":"from typing import Any\n"},"line_number":5,"absolute_offset":95,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/options.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":33822,"human":"0.000034s"},"searches":1,"searches_with_match":1,"bytes_searched":2324,"bytes_printed":1446,"matched_lines":4,"matches":8}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"lines":{"text":"import asyncio\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"lines":{"text":"import logging\n"},"line_number":4,"absolute_offset":51,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"lines":{"text":"from typing import Any, Protocol\n"},"line_number":5,"absolute_offset":66,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.protocol import to_jsonable\n"},"line_number":7,"absolute_offset":100,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":44,"end":50}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/approval.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":30816,"human":"0.000031s"},"searches":1,"searches_with_match":1,"bytes_searched":4371,"bytes_printed":1704,"matched_lines":5,"matches":8}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from dataclasses import fields, is_dataclass\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":17,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from typing import Any, Literal\n"},"line_number":4,"absolute_offset":81,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from pydantic import BaseModel\n"},"line_number":6,"absolute_offset":114,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":14,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from comate_agent_sdk.agent.events import (\n"},"line_number":8,"absolute_offset":146,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":35,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.protocol import to_jsonable\n"},"line_number":15,"absolute_offset":320,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":44,"end":50}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/serde.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":16970,"human":"0.000017s"},"searches":1,"searches_with_match":1,"bytes_searched":2079,"bytes_printed":2167,"matched_lines":6,"matches":12}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/__init__.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/__init__.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/__init__.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":15648,"human":"0.000016s"},"searches":1,"searches_with_match":1,"bytes_searched":35,"bytes_printed":469,"matched_lines":1,"matches":2}}}
{"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":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"import json\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"from dataclasses import fields, is_dataclass\n"},"line_number":4,"absolute_offset":48,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":17,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"from enum import Enum\n"},"line_number":5,"absolute_offset":93,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":10,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"from pathlib import Path\n"},"line_number":6,"absolute_offset":115,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"from typing import Any, Literal, TypeGuard\n"},"line_number":7,"absolute_offset":140,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"from pydantic import BaseModel\n"},"line_number":9,"absolute_offset":184,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":14,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/protocol.py"},"lines":{"text":"        ) from exc\n"},"line_number":57,"absolute_offset":1403,"submatches":[{"match":{"text":"from"},"start":10,"end":14}]}}
{"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":23058,"human":"0.000023s"},"searches":1,"searches_with_match":1,"bytes_searched":4379,"bytes_printed":2680,"matched_lines":8,"matches":14}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"import asyncio\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"import logging\n"},"line_number":4,"absolute_offset":51,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"import sys\n"},"line_number":5,"absolute_offset":66,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"import threading\n"},"line_number":6,"absolute_offset":77,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"lines":{"text":"from typing import Any\n"},"line_number":7,"absolute_offset":94,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdin_reader.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":13167,"human":"0.000013s"},"searches":1,"searches_with_match":1,"bytes_searched":2478,"bytes_printed":1894,"matched_lines":6,"matches":8}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"import logging\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from collections.abc import Awaitable, Callable\n"},"line_number":4,"absolute_offset":51,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":21,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from enum import Enum\n"},"line_number":5,"absolute_offset":99,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":10,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from pathlib import Path\n"},"line_number":6,"absolute_offset":121,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from typing import Any\n"},"line_number":7,"absolute_offset":146,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_agent_sdk.agent.chat_session import ChatSessionError\n"},"line_number":9,"absolute_offset":170,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":41,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_agent_sdk.agent.session_query import (\n"},"line_number":10,"absolute_offset":235,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":42,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.options import (\n"},"line_number":16,"absolute_offset":377,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":43,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.protocol import (\n"},"line_number":21,"absolute_offset":505,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":44,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.serde import (\n"},"line_number":31,"absolute_offset":761,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":41,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.session_host import (\n"},"line_number":35,"absolute_offset":862,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":48,"end":54}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/server.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":31301,"human":"0.000031s"},"searches":1,"searches_with_match":1,"bytes_searched":16422,"bytes_printed":4171,"matched_lines":12,"matches":23}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"import asyncio\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"import contextlib\n"},"line_number":4,"absolute_offset":51,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"import logging\n"},"line_number":5,"absolute_offset":69,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from collections.abc import Awaitable, Callable\n"},"line_number":6,"absolute_offset":84,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":21,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from dataclasses import dataclass\n"},"line_number":7,"absolute_offset":132,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":17,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from pathlib import Path\n"},"line_number":8,"absolute_offset":166,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from typing import Any\n"},"line_number":9,"absolute_offset":191,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_agent_sdk.agent.events import StopEvent, TurnStartedEvent\n"},"line_number":11,"absolute_offset":215,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":35,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_cli.terminal_agent.custom_slash_commands import (\n"},"line_number":13,"absolute_offset":286,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":53,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.approval import (\n"},"line_number":20,"absolute_offset":507,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":44,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.options import RpcSessionOpenParams\n"},"line_number":25,"absolute_offset":646,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":43,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.serde import (\n"},"line_number":26,"absolute_offset":717,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":41,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"from comate_cli.terminal_agent.slash_commands import (\n"},"line_number":32,"absolute_offset":887,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":46,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"        raise SlashCommandError(f\"failed to expand /{call.name}: {exc}\") from exc\n"},"line_number":100,"absolute_offset":2910,"submatches":[{"match":{"text":"from"},"start":73,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"    from comate_agent_sdk.agent import ChatSession\n"},"line_number":114,"absolute_offset":3273,"submatches":[{"match":{"text":"from"},"start":4,"end":8},{"match":{"text":"import"},"start":32,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"lines":{"text":"    from comate_agent_sdk.agent import ChatSession\n"},"line_number":120,"absolute_offset":3442,"submatches":[{"match":{"text":"from"},"start":4,"end":8},{"match":{"text":"import"},"start":32,"end":38}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/session_host.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":47324,"human":"0.000047s"},"searches":1,"searches_with_match":1,"bytes_searched":12196,"bytes_printed":5909,"matched_lines":17,"matches":30}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from __future__ import annotations\n"},"line_number":1,"absolute_offset":0,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":16,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"import asyncio\n"},"line_number":3,"absolute_offset":36,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"import contextlib\n"},"line_number":4,"absolute_offset":51,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"import json\n"},"line_number":5,"absolute_offset":69,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"import logging\n"},"line_number":6,"absolute_offset":81,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"import sys\n"},"line_number":7,"absolute_offset":96,"submatches":[{"match":{"text":"import"},"start":0,"end":6}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from pathlib import Path\n"},"line_number":8,"absolute_offset":107,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":13,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from typing import Any\n"},"line_number":9,"absolute_offset":132,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":12,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.protocol import (\n"},"line_number":11,"absolute_offset":156,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":44,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.server import StdioRPCServer\n"},"line_number":18,"absolute_offset":338,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":42,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from comate_cli.terminal_agent.rpc.stdin_reader import ThreadedStdinReader\n"},"line_number":19,"absolute_offset":402,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":48,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"from comate_agent_sdk.utils.daemon_thread import (\n"},"line_number":20,"absolute_offset":477,"submatches":[{"match":{"text":"from"},"start":0,"end":4},{"match":{"text":"import"},"start":42,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"lines":{"text":"                raise RpcTransportClosedError(\"stdout unavailable\") from None\n"},"line_number":208,"absolute_offset":7715,"submatches":[{"match":{"text":"from"},"start":68,"end":72}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc/stdio.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":28854,"human":"0.000029s"},"searches":1,"searches_with_match":1,"bytes_searched":7793,"bytes_printed":4207,"matched_lines":13,"matches":20}}}
{"data":{"elapsed_total":{"human":"0.004763s","nanos":4763293,"secs":0},"stats":{"bytes_printed":24647,"bytes_searched":52077,"elapsed":{"human":"0.000241s","nanos":240960,"secs":0},"matched_lines":72,"matches":125,"searches":9,"searches_with_match":9}},"type":"summary"}
