{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"if TYPE_CHECKING:\n"},"line_number":18,"absolute_offset":572,"submatches":[{"match":{"text":"if TYPE_CHECKING:"},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"        if not callable(self.fetch_latest):\n"},"line_number":43,"absolute_offset":1227,"submatches":[{"match":{"text":"if not callable(self.fetch_latest):"},"start":8,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"            if not str(getattr(self, field_name)).strip():\n"},"line_number":64,"absolute_offset":2011,"submatches":[{"match":{"text":"if not str(getattr(self, field_name)).strip():"},"start":12,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"        if self.provider_presets is None:\n"},"line_number":67,"absolute_offset":2159,"submatches":[{"match":{"text":"if self.provider_presets is None:"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"        if not self.provider_presets:\n"},"line_number":72,"absolute_offset":2305,"submatches":[{"match":{"text":"if not self.provider_presets:"},"start":8,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"lines":{"text":"            if missing:\n"},"line_number":77,"absolute_offset":2588,"submatches":[{"match":{"text":"if missing:"},"start":12,"end":23}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/distribution.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":36393,"human":"0.000036s"},"searches":1,"searches_with_match":1,"bytes_searched":2803,"bytes_printed":1939,"matched_lines":6,"matches":6}}}
{"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":"    if scope == \"local\":\n"},"line_number":154,"absolute_offset":5124,"submatches":[{"match":{"text":"if scope == \"local\":"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if scope == \"project\":\n"},"line_number":156,"absolute_offset":5212,"submatches":[{"match":{"text":"if scope == \"project\":"},"start":4,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if \":\" not in raw:\n"},"line_number":168,"absolute_offset":5550,"submatches":[{"match":{"text":"if \":\" not in raw:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if not normalized_key:\n"},"line_number":175,"absolute_offset":5819,"submatches":[{"match":{"text":"if not normalized_key:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if \"=\" not in raw:\n"},"line_number":184,"absolute_offset":6101,"submatches":[{"match":{"text":"if \"=\" not in raw:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if not normalized_key:\n"},"line_number":190,"absolute_offset":6325,"submatches":[{"match":{"text":"if not normalized_key:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if \"--\" not in argv:\n"},"line_number":197,"absolute_offset":6552,"submatches":[{"match":{"text":"if \"--\" not in argv:"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if unknown and unknown[0] == \"--\":\n"},"line_number":204,"absolute_offset":6789,"submatches":[{"match":{"text":"if unknown and unknown[0] == \"--\":"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if not argv or argv[0] != \"add\":\n"},"line_number":210,"absolute_offset":6951,"submatches":[{"match":{"text":"if not argv or argv[0] != \"add\":"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if \"--\" in tokens:\n"},"line_number":214,"absolute_offset":7047,"submatches":[{"match":{"text":"if \"--\" in tokens:"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if positional_count >= 2:\n"},"line_number":246,"absolute_offset":7940,"submatches":[{"match":{"text":"if positional_count >= 2:"},"start":8,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if transport in {\"http\", \"sse\"} and token in remote_tail_value_options:\n"},"line_number":247,"absolute_offset":7974,"submatches":[{"match":{"text":"if transport in {\"http\", \"sse\"} and token in remote_tail_value_options:"},"start":12,"end":83}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"                if index + 1 < len(before_separator):\n"},"line_number":249,"absolute_offset":8100,"submatches":[{"match":{"text":"if index + 1 < len(before_separator):"},"start":16,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if transport in {\"http\", \"sse\"} and token in remote_tail_flag_options:\n"},"line_number":253,"absolute_offset":8274,"submatches":[{"match":{"text":"if transport in {\"http\", \"sse\"} and token in remote_tail_flag_options:"},"start":12,"end":82}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if positional_count < 2:\n"},"line_number":268,"absolute_offset":8834,"submatches":[{"match":{"text":"if positional_count < 2:"},"start":8,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if token in value_options:\n"},"line_number":269,"absolute_offset":8867,"submatches":[{"match":{"text":"if token in value_options:"},"start":12,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"                if index + 1 < len(before_separator):\n"},"line_number":271,"absolute_offset":8948,"submatches":[{"match":{"text":"if index + 1 < len(before_separator):"},"start":16,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"                    if token in {\"-t\", \"--transport\"}:\n"},"line_number":273,"absolute_offset":9070,"submatches":[{"match":{"text":"if token in {\"-t\", \"--transport\"}:"},"start":20,"end":54}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if any(token.startswith(f\"{option}=\") for option in value_options if option.startswith(\"--\")):\n"},"line_number":277,"absolute_offset":9257,"submatches":[{"match":{"text":"if any(token.startswith(f\"{option}=\") for option in value_options if option.startswith(\"--\")):"},"start":12,"end":106}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"                if token.startswith(\"--transport=\"):\n"},"line_number":279,"absolute_offset":9406,"submatches":[{"match":{"text":"if token.startswith(\"--transport=\"):"},"start":16,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if token in flag_options:\n"},"line_number":283,"absolute_offset":9582,"submatches":[{"match":{"text":"if token in flag_options:"},"start":12,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"            if token.startswith(\"-\"):\n"},"line_number":287,"absolute_offset":9714,"submatches":[{"match":{"text":"if token.startswith(\"-\"):"},"start":12,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if transport in {\"http\", \"sse\"}:\n"},"line_number":320,"absolute_offset":10948,"submatches":[{"match":{"text":"if transport in {\"http\", \"sse\"}:"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if env_entries:\n"},"line_number":321,"absolute_offset":10985,"submatches":[{"match":{"text":"if env_entries:"},"start":8,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if not command_or_url:\n"},"line_number":323,"absolute_offset":11086,"submatches":[{"match":{"text":"if not command_or_url:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if remainder:\n"},"line_number":325,"absolute_offset":11212,"submatches":[{"match":{"text":"if remainder:"},"start":8,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"        if headers:\n"},"line_number":332,"absolute_offset":11500,"submatches":[{"match":{"text":"if headers:"},"start":8,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if header_entries:\n"},"line_number":336,"absolute_offset":11607,"submatches":[{"match":{"text":"if header_entries:"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if not command_or_url and stdio_args:\n"},"line_number":339,"absolute_offset":11742,"submatches":[{"match":{"text":"if not command_or_url and stdio_args:"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if not command_or_url:\n"},"line_number":341,"absolute_offset":11827,"submatches":[{"match":{"text":"if not command_or_url:"},"start":4,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/mcp_cli.py"},"lines":{"text":"    if stdio_args:\n"},"line_number":349,"absolute_offset":12050,"submatches":[{"match":{"text":"if stdio_args:"},"start":4,"end":18}]}}
{"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":66322,"human":"0.000066s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":9561,"matched_lines":31,"matches":31}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if termios is None:\n"},"line_number":47,"absolute_offset":1252,"submatches":[{"match":{"text":"if termios is None:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if stdin is None:\n"},"line_number":50,"absolute_offset":1329,"submatches":[{"match":{"text":"if stdin is None:"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if not stdin.isatty():\n"},"line_number":52,"absolute_offset":1374,"submatches":[{"match":{"text":"if not stdin.isatty():"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if not self._enabled or self._fd is None or self._attrs is None:\n"},"line_number":62,"absolute_offset":1733,"submatches":[{"match":{"text":"if not self._enabled or self._fd is None or self._attrs is None:"},"start":8,"end":72}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if self._installed:\n"},"line_number":95,"absolute_offset":2858,"submatches":[{"match":{"text":"if self._installed:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if os.environ.get(\"COMATE_DEBUG_NOISE\", \"\").strip().lower() in (\"1\", \"true\", \"yes\"):\n"},"line_number":97,"absolute_offset":2905,"submatches":[{"match":{"text":"if os.environ.get(\"COMATE_DEBUG_NOISE\", \"\").strip().lower() in (\"1\", \"true\", \"yes\"):"},"start":8,"end":92}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if self._shutdown_armed:\n"},"line_number":105,"absolute_offset":3228,"submatches":[{"match":{"text":"if self._shutdown_armed:"},"start":8,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if threading.current_thread() is not threading.main_thread():\n"},"line_number":111,"absolute_offset":3407,"submatches":[{"match":{"text":"if threading.current_thread() is not threading.main_thread():"},"start":8,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if exc is not None:\n"},"line_number":128,"absolute_offset":3937,"submatches":[{"match":{"text":"if exc is not None:"},"start":12,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if self._shutdown_armed and isinstance(exc_value, KeyboardInterrupt):\n"},"line_number":149,"absolute_offset":4679,"submatches":[{"match":{"text":"if self._shutdown_armed and isinstance(exc_value, KeyboardInterrupt):"},"start":8,"end":77}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if log.handlers:\n"},"line_number":183,"absolute_offset":5698,"submatches":[{"match":{"text":"if log.handlers:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if arg == \"--rpc-stdio\":\n"},"line_number":234,"absolute_offset":7363,"submatches":[{"match":{"text":"if arg == \"--rpc-stdio\":"},"start":8,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if arg in (\"-p\", \"--print\"):\n"},"line_number":238,"absolute_offset":7469,"submatches":[{"match":{"text":"if arg in (\"-p\", \"--print\"):"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if arg == \"--output-format\" or arg.startswith(\"--output-format=\"):\n"},"line_number":242,"absolute_offset":7580,"submatches":[{"match":{"text":"if arg == \"--output-format\" or arg.startswith(\"--output-format=\"):"},"start":8,"end":74}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if arg == \"--output-format\":\n"},"line_number":244,"absolute_offset":7697,"submatches":[{"match":{"text":"if arg == \"--output-format\":"},"start":12,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"                if index >= len(argv):\n"},"line_number":246,"absolute_offset":7765,"submatches":[{"match":{"text":"if index >= len(argv):"},"start":16,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"                if not value:\n"},"line_number":251,"absolute_offset":7992,"submatches":[{"match":{"text":"if not value:"},"start":16,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if value in PRINT_OUTPUT_FORMAT_UNSUPPORTED:\n"},"line_number":253,"absolute_offset":8110,"submatches":[{"match":{"text":"if value in PRINT_OUTPUT_FORMAT_UNSUPPORTED:"},"start":12,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if value not in PRINT_OUTPUT_FORMATS:\n"},"line_number":257,"absolute_offset":8306,"submatches":[{"match":{"text":"if value not in PRINT_OUTPUT_FORMATS:"},"start":12,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if arg == \"--add-dir\" or arg.startswith(\"--add-dir=\"):\n"},"line_number":262,"absolute_offset":8512,"submatches":[{"match":{"text":"if arg == \"--add-dir\" or arg.startswith(\"--add-dir=\"):"},"start":8,"end":62}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if arg == \"--add-dir\":\n"},"line_number":263,"absolute_offset":8575,"submatches":[{"match":{"text":"if arg == \"--add-dir\":"},"start":12,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"                if index >= len(argv):\n"},"line_number":265,"absolute_offset":8637,"submatches":[{"match":{"text":"if index >= len(argv):"},"start":16,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"            if not value:\n"},"line_number":270,"absolute_offset":8846,"submatches":[{"match":{"text":"if not value:"},"start":12,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if arg.startswith(\"-\"):\n"},"line_number":275,"absolute_offset":9017,"submatches":[{"match":{"text":"if arg.startswith(\"-\"):"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"    if output_format_explicit and not print_mode:\n"},"line_number":280,"absolute_offset":9160,"submatches":[{"match":{"text":"if output_format_explicit and not print_mode:"},"start":4,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"    if print_mode:\n"},"line_number":284,"absolute_offset":9341,"submatches":[{"match":{"text":"if print_mode:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if rpc_stdio:\n"},"line_number":285,"absolute_offset":9360,"submatches":[{"match":{"text":"if rpc_stdio:"},"start":8,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"    if not positionals:\n"},"line_number":291,"absolute_offset":9655,"submatches":[{"match":{"text":"if not positionals:"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"    if command != \"resume\":\n"},"line_number":295,"absolute_offset":9785,"submatches":[{"match":{"text":"if command != \"resume\":"},"start":4,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"    if len(positionals) == 1:\n"},"line_number":298,"absolute_offset":9874,"submatches":[{"match":{"text":"if len(positionals) == 1:"},"start":4,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"lines":{"text":"        if rpc_stdio:\n"},"line_number":299,"absolute_offset":9904,"submatches":[{"match":{"text":"if rpc_stdio:"},"start":8,"end":21}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/main.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":88537,"human":"0.000089s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":9540,"matched_lines":31,"matches":31}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/fragment_utils.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/fragment_utils.py"},"lines":{"text":"    if max_len <= 0:\n"},"line_number":10,"absolute_offset":170,"submatches":[{"match":{"text":"if max_len <= 0:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/fragment_utils.py"},"lines":{"text":"        if remaining <= 0:\n"},"line_number":16,"absolute_offset":308,"submatches":[{"match":{"text":"if remaining <= 0:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/fragment_utils.py"},"lines":{"text":"        if len(text) <= remaining:\n"},"line_number":18,"absolute_offset":353,"submatches":[{"match":{"text":"if len(text) <= remaining:"},"start":8,"end":34}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/fragment_utils.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":9787,"human":"0.000010s"},"searches":1,"searches_with_match":1,"bytes_searched":570,"bytes_printed":1039,"matched_lines":3,"matches":3}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._mode != \"selection\":\n"},"line_number":148,"absolute_offset":4953,"submatches":[{"match":{"text":"if self._mode != \"selection\":"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._mode != \"selection\":\n"},"line_number":157,"absolute_offset":5224,"submatches":[{"match":{"text":"if self._mode != \"selection\":"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._mode == \"selection\":\n"},"line_number":166,"absolute_offset":5496,"submatches":[{"match":{"text":"if self._mode == \"selection\":"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"                if selected is None:\n"},"line_number":168,"absolute_offset":5599,"submatches":[{"match":{"text":"if selected is None:"},"start":16,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"                if self._selection_submit_handler is None:\n"},"line_number":170,"absolute_offset":5663,"submatches":[{"match":{"text":"if self._selection_submit_handler is None:"},"start":16,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._active_input_area is None:\n"},"line_number":174,"absolute_offset":5835,"submatches":[{"match":{"text":"if self._active_input_area is None:"},"start":12,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if not self._active_input_allow_empty and not text.strip():\n"},"line_number":177,"absolute_offset":5954,"submatches":[{"match":{"text":"if not self._active_input_allow_empty and not text.strip():"},"start":12,"end":71}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._input_submit_handler is None:\n"},"line_number":179,"absolute_offset":6049,"submatches":[{"match":{"text":"if self._input_submit_handler is None:"},"start":12,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._back_fn is not None:\n"},"line_number":186,"absolute_offset":6256,"submatches":[{"match":{"text":"if self._back_fn is not None:"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._mode == \"selection\":\n"},"line_number":189,"absolute_offset":6353,"submatches":[{"match":{"text":"if self._mode == \"selection\":"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if self._mode == \"selection\":\n"},"line_number":197,"absolute_offset":6639,"submatches":[{"match":{"text":"if self._mode == \"selection\":"},"start":12,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._app is None:\n"},"line_number":206,"absolute_offset":6947,"submatches":[{"match":{"text":"if self._app is None:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._app is None:\n"},"line_number":213,"absolute_offset":7289,"submatches":[{"match":{"text":"if self._app is None:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._app is None:\n"},"line_number":218,"absolute_offset":7410,"submatches":[{"match":{"text":"if self._app is None:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._app is None or self._active_input_area is None:\n"},"line_number":223,"absolute_offset":7562,"submatches":[{"match":{"text":"if self._app is None or self._active_input_area is None:"},"start":8,"end":64}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if not ok:\n"},"line_number":249,"absolute_offset":8383,"submatches":[{"match":{"text":"if not ok:"},"start":8,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if initial_value is not None:\n"},"line_number":252,"absolute_offset":8473,"submatches":[{"match":{"text":"if initial_value is not None:"},"start":8,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"                if str(item.get(\"value\")) != initial_value:\n"},"line_number":254,"absolute_offset":8560,"submatches":[{"match":{"text":"if str(item.get(\"value\")) != initial_value:"},"start":16,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if value == \"continue\":\n"},"line_number":318,"absolute_offset":10644,"submatches":[{"match":{"text":"if value == \"continue\":"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if selected is None:\n"},"line_number":350,"absolute_offset":11784,"submatches":[{"match":{"text":"if selected is None:"},"start":8,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._selected_preset is None:\n"},"line_number":358,"absolute_offset":12054,"submatches":[{"match":{"text":"if self._selected_preset is None:"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._selected_preset is None:\n"},"line_number":363,"absolute_offset":12243,"submatches":[{"match":{"text":"if self._selected_preset is None:"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"            if entry is None:\n"},"line_number":370,"absolute_offset":12510,"submatches":[{"match":{"text":"if entry is None:"},"start":12,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._selected_preset is None:\n"},"line_number":388,"absolute_offset":13135,"submatches":[{"match":{"text":"if self._selected_preset is None:"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if use_shared_endpoint and not endpoint_locked:\n"},"line_number":409,"absolute_offset":14070,"submatches":[{"match":{"text":"if use_shared_endpoint and not endpoint_locked:"},"start":8,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if value == \"done\":\n"},"line_number":437,"absolute_offset":15049,"submatches":[{"match":{"text":"if value == \"done\":"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if value == \"cancel\":\n"},"line_number":440,"absolute_offset":15139,"submatches":[{"match":{"text":"if value == \"cancel\":"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if value == \"edit:endpoint\":\n"},"line_number":443,"absolute_offset":15244,"submatches":[{"match":{"text":"if value == \"edit:endpoint\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if not value.startswith(\"edit:\"):\n"},"line_number":455,"absolute_offset":15724,"submatches":[{"match":{"text":"if not value.startswith(\"edit:\"):"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if current is None:\n"},"line_number":460,"absolute_offset":15921,"submatches":[{"match":{"text":"if current is None:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"lines":{"text":"        if self._uses_shared_endpoint() or self._is_endpoint_locked():\n"},"line_number":478,"absolute_offset":16600,"submatches":[{"match":{"text":"if self._uses_shared_endpoint() or self._is_endpoint_locked():"},"start":8,"end":70}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/preflight_wizard.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":65245,"human":"0.000065s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":10433,"matched_lines":31,"matches":31}}}
{"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":"        if self.namespace:\n"},"line_number":48,"absolute_offset":1217,"submatches":[{"match":{"text":"if self.namespace:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if not root.is_dir():\n"},"line_number":82,"absolute_offset":2315,"submatches":[{"match":{"text":"if not root.is_dir():"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if isinstance(parsed, str):\n"},"line_number":88,"absolute_offset":2559,"submatches":[{"match":{"text":"if isinstance(parsed, str):"},"start":12,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if name in builtin_names:\n"},"line_number":93,"absolute_offset":2696,"submatches":[{"match":{"text":"if name in builtin_names:"},"start":12,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if name in per_scope_names:\n"},"line_number":99,"absolute_offset":2922,"submatches":[{"match":{"text":"if name in per_scope_names:"},"start":12,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if name in loaded_by_name:\n"},"line_number":106,"absolute_offset":3184,"submatches":[{"match":{"text":"if name in loaded_by_name:"},"start":12,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not root.is_dir():\n"},"line_number":132,"absolute_offset":4395,"submatches":[{"match":{"text":"if not root.is_dir():"},"start":4,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if not entry.name.endswith(\".md\"):\n"},"line_number":137,"absolute_offset":4598,"submatches":[{"match":{"text":"if not entry.name.endswith(\".md\"):"},"start":8,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if isinstance(parsed, str):\n"},"line_number":145,"absolute_offset":4865,"submatches":[{"match":{"text":"if isinstance(parsed, str):"},"start":8,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not command_name or _COMMAND_NAME_PATTERN.fullmatch(command_name) is None:\n"},"line_number":162,"absolute_offset":5402,"submatches":[{"match":{"text":"if not command_name or _COMMAND_NAME_PATTERN.fullmatch(command_name) is None:"},"start":4,"end":81}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not content.startswith(\"---\"):\n"},"line_number":173,"absolute_offset":5842,"submatches":[{"match":{"text":"if not content.startswith(\"---\"):"},"start":4,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if len(parts) < 3:\n"},"line_number":179,"absolute_offset":6044,"submatches":[{"match":{"text":"if len(parts) < 3:"},"start":4,"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":"    if not isinstance(frontmatter, dict):\n"},"line_number":191,"absolute_offset":6424,"submatches":[{"match":{"text":"if not isinstance(frontmatter, dict):"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not description:\n"},"line_number":198,"absolute_offset":6739,"submatches":[{"match":{"text":"if not description:"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not argument_hint:\n"},"line_number":205,"absolute_offset":7085,"submatches":[{"match":{"text":"if not argument_hint:"},"start":4,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not argument_hint:\n"},"line_number":207,"absolute_offset":7174,"submatches":[{"match":{"text":"if not argument_hint:"},"start":4,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not template:\n"},"line_number":211,"absolute_offset":7262,"submatches":[{"match":{"text":"if not template:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if normalized_args and not used_arg_placeholder:\n"},"line_number":251,"absolute_offset":8629,"submatches":[{"match":{"text":"if normalized_args and not used_arg_placeholder:"},"start":4,"end":52}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if indexed_argument is not None:\n"},"line_number":308,"absolute_offset":10407,"submatches":[{"match":{"text":"if indexed_argument is not None:"},"start":8,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if index >= len(arg_tokens):\n"},"line_number":310,"absolute_offset":10490,"submatches":[{"match":{"text":"if index >= len(arg_tokens):"},"start":12,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if shorthand_argument is not None:\n"},"line_number":317,"absolute_offset":10767,"submatches":[{"match":{"text":"if shorthand_argument is not None:"},"start":8,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"            if index < 0 or index >= len(arg_tokens):\n"},"line_number":319,"absolute_offset":10858,"submatches":[{"match":{"text":"if index < 0 or index >= len(arg_tokens):"},"start":12,"end":53}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not text:\n"},"line_number":355,"absolute_offset":11950,"submatches":[{"match":{"text":"if not text:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if _index_in_arg_spans(match.start(), arg_spans):\n"},"line_number":378,"absolute_offset":12574,"submatches":[{"match":{"text":"if _index_in_arg_spans(match.start(), arg_spans):"},"start":8,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if not command:\n"},"line_number":383,"absolute_offset":12741,"submatches":[{"match":{"text":"if not command:"},"start":8,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if output_bytes > item_max_bytes:\n"},"line_number":392,"absolute_offset":13058,"submatches":[{"match":{"text":"if output_bytes > item_max_bytes:"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if total_inserted_bytes > total_max_bytes:\n"},"line_number":400,"absolute_offset":13409,"submatches":[{"match":{"text":"if total_inserted_bytes > total_max_bytes:"},"start":8,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"    if not text:\n"},"line_number":426,"absolute_offset":14203,"submatches":[{"match":{"text":"if not text:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if _index_in_arg_spans(match.start(), arg_spans):\n"},"line_number":450,"absolute_offset":14894,"submatches":[{"match":{"text":"if _index_in_arg_spans(match.start(), arg_spans):"},"start":8,"end":57}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if not raw_path:\n"},"line_number":455,"absolute_offset":15062,"submatches":[{"match":{"text":"if not raw_path:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/custom_slash_commands.py"},"lines":{"text":"        if raw_path.startswith(\"~\"):\n"},"line_number":457,"absolute_offset":15163,"submatches":[{"match":{"text":"if raw_path.startswith(\"~\"):"},"start":8,"end":36}]}}
{"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":87969,"human":"0.000088s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":10361,"matched_lines":31,"matches":31}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/__main__.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/__main__.py"},"lines":{"text":"if __name__ == \"__main__\":\n"},"line_number":4,"absolute_offset":35,"submatches":[{"match":{"text":"if __name__ == \"__main__\":"},"start":0,"end":26}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/__main__.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":5619,"human":"0.000006s"},"searches":1,"searches_with_match":1,"bytes_searched":73,"bytes_printed":403,"matched_lines":1,"matches":1}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if max_cols <= 0:\n"},"line_number":11,"absolute_offset":307,"submatches":[{"match":{"text":"if max_cols <= 0:"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch == \"\\n\":\n"},"line_number":18,"absolute_offset":452,"submatches":[{"match":{"text":"if ch == \"\\n\":"},"start":8,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width <= 0:\n"},"line_number":25,"absolute_offset":619,"submatches":[{"match":{"text":"if ch_width <= 0:"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width > max_cols:\n"},"line_number":27,"absolute_offset":670,"submatches":[{"match":{"text":"if ch_width > max_cols:"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if col + ch_width > max_cols:\n"},"line_number":30,"absolute_offset":735,"submatches":[{"match":{"text":"if col + ch_width > max_cols:"},"start":8,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if max_cols <= 0:\n"},"line_number":48,"absolute_offset":1057,"submatches":[{"match":{"text":"if max_cols <= 0:"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if index < start:\n"},"line_number":50,"absolute_offset":1100,"submatches":[{"match":{"text":"if index < start:"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if index > end:\n"},"line_number":52,"absolute_offset":1139,"submatches":[{"match":{"text":"if index > end:"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width <= 0:\n"},"line_number":57,"absolute_offset":1258,"submatches":[{"match":{"text":"if ch_width <= 0:"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width > max_cols:\n"},"line_number":59,"absolute_offset":1309,"submatches":[{"match":{"text":"if ch_width > max_cols:"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if col + ch_width > max_cols:\n"},"line_number":61,"absolute_offset":1373,"submatches":[{"match":{"text":"if col + ch_width > max_cols:"},"start":8,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if max_cols <= 0:\n"},"line_number":74,"absolute_offset":1591,"submatches":[{"match":{"text":"if max_cols <= 0:"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if target_col <= 0:\n"},"line_number":76,"absolute_offset":1634,"submatches":[{"match":{"text":"if target_col <= 0:"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"    if target_col > max_cols:\n"},"line_number":78,"absolute_offset":1679,"submatches":[{"match":{"text":"if target_col > max_cols:"},"start":4,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width <= 0:\n"},"line_number":84,"absolute_offset":1842,"submatches":[{"match":{"text":"if ch_width <= 0:"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if ch_width > max_cols:\n"},"line_number":86,"absolute_offset":1893,"submatches":[{"match":{"text":"if ch_width > max_cols:"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"lines":{"text":"        if col + ch_width > target_col:\n"},"line_number":88,"absolute_offset":1957,"submatches":[{"match":{"text":"if col + ch_width > target_col:"},"start":8,"end":39}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/input_geometry.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":55192,"human":"0.000055s"},"searches":1,"searches_with_match":1,"bytes_searched":2060,"bytes_printed":5281,"matched_lines":17,"matches":17}}}
{"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":"    if kind == \"read\":\n"},"line_number":65,"absolute_offset":1527,"submatches":[{"match":{"text":"if kind == \"read\":"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if kind == \"search\":\n"},"line_number":67,"absolute_offset":1626,"submatches":[{"match":{"text":"if kind == \"search\":"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if kind == \"list\":\n"},"line_number":70,"absolute_offset":1778,"submatches":[{"match":{"text":"if kind == \"list\":"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if active:\n"},"line_number":83,"absolute_offset":2044,"submatches":[{"match":{"text":"if active:"},"start":4,"end":14}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if search_count:\n"},"line_number":84,"absolute_offset":2059,"submatches":[{"match":{"text":"if search_count:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if read_count:\n"},"line_number":86,"absolute_offset":2173,"submatches":[{"match":{"text":"if read_count:"},"start":8,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if list_count:\n"},"line_number":88,"absolute_offset":2276,"submatches":[{"match":{"text":"if list_count:"},"start":8,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if search_count:\n"},"line_number":92,"absolute_offset":2447,"submatches":[{"match":{"text":"if search_count:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if read_count:\n"},"line_number":94,"absolute_offset":2556,"submatches":[{"match":{"text":"if read_count:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if list_count:\n"},"line_number":96,"absolute_offset":2648,"submatches":[{"match":{"text":"if list_count:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"    if not text:\n"},"line_number":106,"absolute_offset":2934,"submatches":[{"match":{"text":"if not text:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if kind is None:\n"},"line_number":124,"absolute_offset":3328,"submatches":[{"match":{"text":"if kind is None:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if not normalized_id:\n"},"line_number":127,"absolute_offset":3434,"submatches":[{"match":{"text":"if not normalized_id:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if any(item.tool_call_id == normalized_id for item in self._items):\n"},"line_number":129,"absolute_offset":3489,"submatches":[{"match":{"text":"if any(item.tool_call_id == normalized_id for item in self._items):"},"start":8,"end":75}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"            if item.tool_call_id != normalized_id:\n"},"line_number":153,"absolute_offset":4223,"submatches":[{"match":{"text":"if item.tool_call_id != normalized_id:"},"start":12,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"        if not self._items:\n"},"line_number":174,"absolute_offset":5059,"submatches":[{"match":{"text":"if not self._items:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_fold.py"},"lines":{"text":"            if item.hint:\n"},"line_number":179,"absolute_offset":5180,"submatches":[{"match":{"text":"if item.hint:"},"start":12,"end":25}]}}
{"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":40305,"human":"0.000040s"},"searches":1,"searches_with_match":1,"bytes_searched":6234,"bytes_printed":5195,"matched_lines":17,"matches":17}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if exc_type == \"ModelRateLimitError\":\n"},"line_number":19,"absolute_offset":527,"submatches":[{"match":{"text":"if exc_type == \"ModelRateLimitError\":"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if exc_type == \"ProviderStreamProtocolError\":\n"},"line_number":22,"absolute_offset":634,"submatches":[{"match":{"text":"if exc_type == \"ProviderStreamProtocolError\":"},"start":4,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if exc_type == \"ProviderStreamFallbackError\":\n"},"line_number":31,"absolute_offset":980,"submatches":[{"match":{"text":"if exc_type == \"ProviderStreamFallbackError\":"},"start":4,"end":49}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"        if isinstance(fallback_error, Exception) and fallback_error is not exc:\n"},"line_number":35,"absolute_offset":1196,"submatches":[{"match":{"text":"if isinstance(fallback_error, Exception) and fallback_error is not exc:"},"start":8,"end":79}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if exc_type == \"ModelProviderError\":\n"},"line_number":44,"absolute_offset":1564,"submatches":[{"match":{"text":"if exc_type == \"ModelProviderError\":"},"start":4,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"        if detail:\n"},"line_number":49,"absolute_offset":1810,"submatches":[{"match":{"text":"if detail:"},"start":8,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if exc_type == \"ChatSessionClosedError\":\n"},"line_number":56,"absolute_offset":2105,"submatches":[{"match":{"text":"if exc_type == \"ChatSessionClosedError\":"},"start":4,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if \"timeout\" in lower_msg or \"timed out\" in lower_msg:\n"},"line_number":61,"absolute_offset":2275,"submatches":[{"match":{"text":"if \"timeout\" in lower_msg or \"timed out\" in lower_msg:"},"start":4,"end":58}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if \"connection\" in lower_msg:\n"},"line_number":63,"absolute_offset":2393,"submatches":[{"match":{"text":"if \"connection\" in lower_msg:"},"start":4,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if not text:\n"},"line_number":73,"absolute_offset":2735,"submatches":[{"match":{"text":"if not text:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"    if \" - \" in text:\n"},"line_number":77,"absolute_offset":2795,"submatches":[{"match":{"text":"if \" - \" in text:"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"        if detail:\n"},"line_number":82,"absolute_offset":2971,"submatches":[{"match":{"text":"if detail:"},"start":8,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"        if not isinstance(value, dict):\n"},"line_number":93,"absolute_offset":3267,"submatches":[{"match":{"text":"if not isinstance(value, dict):"},"start":8,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"        if isinstance(error, dict):\n"},"line_number":96,"absolute_offset":3363,"submatches":[{"match":{"text":"if isinstance(error, dict):"},"start":8,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"lines":{"text":"            if isinstance(message, str) and message.strip():\n"},"line_number":98,"absolute_offset":3442,"submatches":[{"match":{"text":"if isinstance(message, str) and message.strip():"},"start":12,"end":60}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/error_display.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":41803,"human":"0.000042s"},"searches":1,"searches_with_match":1,"bytes_searched":3558,"bytes_printed":5092,"matched_lines":15,"matches":15}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if isinstance(message_obj, str):\n"},"line_number":40,"absolute_offset":746,"submatches":[{"match":{"text":"if isinstance(message_obj, str):"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if isinstance(message_obj, list):\n"},"line_number":42,"absolute_offset":818,"submatches":[{"match":{"text":"if isinstance(message_obj, list):"},"start":4,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"            if isinstance(part, dict) and part.get(\"type\") == \"text\":\n"},"line_number":45,"absolute_offset":919,"submatches":[{"match":{"text":"if isinstance(part, dict) and part.get(\"type\") == \"text\":"},"start":12,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if len(first_line) > max_len:\n"},"line_number":53,"absolute_offset":1217,"submatches":[{"match":{"text":"if len(first_line) > max_len:"},"start":4,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if role is None:\n"},"line_number":61,"absolute_offset":1461,"submatches":[{"match":{"text":"if role is None:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if isinstance(message, dict):\n"},"line_number":65,"absolute_offset":1536,"submatches":[{"match":{"text":"if isinstance(message, dict):"},"start":4,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"        if bool(message.get(\"is_meta\", False)):\n"},"line_number":66,"absolute_offset":1570,"submatches":[{"match":{"text":"if bool(message.get(\"is_meta\", False)):"},"start":8,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if not text:\n"},"line_number":71,"absolute_offset":1761,"submatches":[{"match":{"text":"if not text:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if not jsonl_path.exists():\n"},"line_number":78,"absolute_offset":2031,"submatches":[{"match":{"text":"if not jsonl_path.exists():"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"                if not line:\n"},"line_number":86,"absolute_offset":2378,"submatches":[{"match":{"text":"if not line:"},"start":16,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"                if not isinstance(row, dict):\n"},"line_number":93,"absolute_offset":2767,"submatches":[{"match":{"text":"if not isinstance(row, dict):"},"start":16,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"                if msg is not None:\n"},"line_number":96,"absolute_offset":2884,"submatches":[{"match":{"text":"if msg is not None:"},"start":16,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if total == 0:\n"},"line_number":103,"absolute_offset":3184,"submatches":[{"match":{"text":"if total == 0:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if total <= HEAD_N + TAIL_N:\n"},"line_number":105,"absolute_offset":3288,"submatches":[{"match":{"text":"if total <= HEAD_N + TAIL_N:"},"start":4,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if payload.load_error:\n"},"line_number":128,"absolute_offset":3992,"submatches":[{"match":{"text":"if payload.load_error:"},"start":4,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"lines":{"text":"    if payload.omitted_count:\n"},"line_number":134,"absolute_offset":4195,"submatches":[{"match":{"text":"if payload.omitted_count:"},"start":4,"end":29}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_preview.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":34754,"human":"0.000035s"},"searches":1,"searches_with_match":1,"bytes_searched":4498,"bytes_printed":5192,"matched_lines":16,"matches":16}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if not self._enabled:\n"},"line_number":50,"absolute_offset":1579,"submatches":[{"match":{"text":"if not self._enabled:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if self._prefix:\n"},"line_number":53,"absolute_offset":1672,"submatches":[{"match":{"text":"if self._prefix:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if not self._enabled:\n"},"line_number":65,"absolute_offset":2147,"submatches":[{"match":{"text":"if not self._enabled:"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if not self._pending_messages:\n"},"line_number":73,"absolute_offset":2394,"submatches":[{"match":{"text":"if not self._pending_messages:"},"start":8,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if not self._logger.isEnabledFor(logging.INFO):\n"},"line_number":75,"absolute_offset":2455,"submatches":[{"match":{"text":"if not self._logger.isEnabledFor(logging.INFO):"},"start":8,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        if self._prefix and normalized_prefix:\n"},"line_number":83,"absolute_offset":2744,"submatches":[{"match":{"text":"if self._prefix and normalized_prefix:"},"start":8,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"lines":{"text":"        elif self._prefix:\n"},"line_number":85,"absolute_offset":2861,"submatches":[{"match":{"text":"if self._prefix:"},"start":10,"end":26}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/startup_profile.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":33635,"human":"0.000034s"},"searches":1,"searches_with_match":1,"bytes_searched":3204,"bytes_printed":2367,"matched_lines":7,"matches":7}}}
{"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":"    if isinstance(rich_style, str):\n"},"line_number":65,"absolute_offset":1981,"submatches":[{"match":{"text":"if isinstance(rich_style, str):"},"start":4,"end":35}]}}
{"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":73,"absolute_offset":2278,"submatches":[{"match":{"text":"if not isinstance(segment, Segment):"},"start":8,"end":44}]}}
{"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":75,"absolute_offset":2344,"submatches":[{"match":{"text":"if not segment.text:"},"start":8,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"            if idx:\n"},"line_number":87,"absolute_offset":2790,"submatches":[{"match":{"text":"if idx:"},"start":12,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"            if part:\n"},"line_number":89,"absolute_offset":2843,"submatches":[{"match":{"text":"if part:"},"start":12,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if idx == 0:\n"},"line_number":98,"absolute_offset":3171,"submatches":[{"match":{"text":"if idx == 0:"},"start":8,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if not lines:\n"},"line_number":107,"absolute_offset":3484,"submatches":[{"match":{"text":"if not lines:"},"start":4,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if idx:\n"},"line_number":118,"absolute_offset":3804,"submatches":[{"match":{"text":"if idx:"},"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 count == 1:\n"},"line_number":139,"absolute_offset":4327,"submatches":[{"match":{"text":"if count == 1:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if unit == \"entry\":\n"},"line_number":141,"absolute_offset":4379,"submatches":[{"match":{"text":"if unit == \"entry\":"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if not records:\n"},"line_number":170,"absolute_offset":5290,"submatches":[{"match":{"text":"if not records:"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if not tool_indices:\n"},"line_number":175,"absolute_offset":5441,"submatches":[{"match":{"text":"if not tool_indices:"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"user\":\n"},"line_number":188,"absolute_offset":5882,"submatches":[{"match":{"text":"if entry.entry_type == \"user\":"},"start":4,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"assistant\":\n"},"line_number":191,"absolute_offset":5990,"submatches":[{"match":{"text":"if entry.entry_type == \"assistant\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"thinking\":\n"},"line_number":199,"absolute_offset":6341,"submatches":[{"match":{"text":"if entry.entry_type == \"thinking\":"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"system\":\n"},"line_number":202,"absolute_offset":6464,"submatches":[{"match":{"text":"if entry.entry_type == \"system\":"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"file_ref\":\n"},"line_number":206,"absolute_offset":6623,"submatches":[{"match":{"text":"if entry.entry_type == \"file_ref\":"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"log\":\n"},"line_number":213,"absolute_offset":6868,"submatches":[{"match":{"text":"if entry.entry_type == \"log\":"},"start":4,"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 entry.log_subtype == \"notice\":\n"},"line_number":214,"absolute_offset":6902,"submatches":[{"match":{"text":"if entry.log_subtype == \"notice\":"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"elapsed\":\n"},"line_number":219,"absolute_offset":7180,"submatches":[{"match":{"text":"if entry.entry_type == \"elapsed\":"},"start":4,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"tool_result\":\n"},"line_number":222,"absolute_offset":7297,"submatches":[{"match":{"text":"if entry.entry_type == \"tool_result\":"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if isinstance(entry.text, Text):\n"},"line_number":224,"absolute_offset":7429,"submatches":[{"match":{"text":"if isinstance(entry.text, Text):"},"start":8,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"            if lines:\n"},"line_number":226,"absolute_offset":7545,"submatches":[{"match":{"text":"if lines:"},"start":12,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if entry.subtitle:\n"},"line_number":232,"absolute_offset":7832,"submatches":[{"match":{"text":"if entry.subtitle:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"    if entry.entry_type == \"tool_fold\":\n"},"line_number":242,"absolute_offset":8154,"submatches":[{"match":{"text":"if entry.entry_type == \"tool_fold\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if entry.subtitle:\n"},"line_number":245,"absolute_offset":8358,"submatches":[{"match":{"text":"if entry.subtitle:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"            if line:\n"},"line_number":262,"absolute_offset":8978,"submatches":[{"match":{"text":"if line:"},"start":12,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if entry.entry_type not in _VIEWER_ENTRY_TYPES:\n"},"line_number":275,"absolute_offset":9426,"submatches":[{"match":{"text":"if entry.entry_type not in _VIEWER_ENTRY_TYPES:"},"start":8,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if rec is not None:\n"},"line_number":280,"absolute_offset":9619,"submatches":[{"match":{"text":"if rec is not None:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"        if entry.entry_type == \"tool_fold\":\n"},"line_number":282,"absolute_offset":9697,"submatches":[{"match":{"text":"if entry.entry_type == \"tool_fold\":"},"start":8,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/transcript_viewer.py"},"lines":{"text":"                if fold_rec is not None:\n"},"line_number":285,"absolute_offset":9853,"submatches":[{"match":{"text":"if fold_rec is not None:"},"start":16,"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":59907,"human":"0.000060s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":9916,"matched_lines":31,"matches":31}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"lines":{"text":"    if not info.cwd:\n"},"line_number":26,"absolute_offset":721,"submatches":[{"match":{"text":"if not info.cwd:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"lines":{"text":"    if not transcript_path.exists():\n"},"line_number":33,"absolute_offset":996,"submatches":[{"match":{"text":"if not transcript_path.exists():"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"lines":{"text":"    if not items:\n"},"line_number":54,"absolute_offset":1805,"submatches":[{"match":{"text":"if not items:"},"start":4,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"lines":{"text":"        if session_cwd is None:\n"},"line_number":67,"absolute_offset":2324,"submatches":[{"match":{"text":"if session_cwd is None:"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"lines":{"text":"    if not isinstance(result, str) or not result.strip():\n"},"line_number":84,"absolute_offset":2975,"submatches":[{"match":{"text":"if not isinstance(result, str) or not result.strip():"},"start":4,"end":57}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/resume_selector.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":14095,"human":"0.000014s"},"searches":1,"searches_with_match":1,"bytes_searched":3122,"bytes_printed":1714,"matched_lines":5,"matches":5}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    if len(slug) > 200:\n"},"line_number":117,"absolute_offset":4128,"submatches":[{"match":{"text":"if len(slug) > 200:"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    if not path.exists():\n"},"line_number":138,"absolute_offset":4879,"submatches":[{"match":{"text":"if not path.exists():"},"start":4,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    if not raw.strip():\n"},"line_number":141,"absolute_offset":4948,"submatches":[{"match":{"text":"if not raw.strip():"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    if not blocks:\n"},"line_number":149,"absolute_offset":5287,"submatches":[{"match":{"text":"if not blocks:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"    if rewritten_bytes == raw:\n"},"line_number":154,"absolute_offset":5445,"submatches":[{"match":{"text":"if rewritten_bytes == raw:"},"start":4,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if callable(set_tool_result_registry):\n"},"line_number":206,"absolute_offset":7161,"submatches":[{"match":{"text":"if callable(set_tool_result_registry):"},"start":8,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            if wrap_count <= 0:\n"},"line_number":367,"absolute_offset":14170,"submatches":[{"match":{"text":"if wrap_count <= 0:"},"start":12,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                if hint_text:\n"},"line_number":372,"absolute_offset":14400,"submatches":[{"match":{"text":"if hint_text:"},"start":16,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if callable(set_stream_staging_budget_provider):\n"},"line_number":522,"absolute_offset":20714,"submatches":[{"match":{"text":"if callable(set_stream_staging_budget_provider):"},"start":8,"end":56}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if not callable(setter):\n"},"line_number":786,"absolute_offset":33344,"submatches":[{"match":{"text":"if not callable(setter):"},"start":8,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if previous is UIMode.NORMAL and mode is not UIMode.NORMAL:\n"},"line_number":795,"absolute_offset":33757,"submatches":[{"match":{"text":"if previous is UIMode.NORMAL and mode is not UIMode.NORMAL:"},"start":8,"end":67}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            if controller is not None:\n"},"line_number":797,"absolute_offset":33896,"submatches":[{"match":{"text":"if controller is not None:"},"start":12,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._busy:\n"},"line_number":803,"absolute_offset":34111,"submatches":[{"match":{"text":"if self._busy:"},"start":8,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._ui_mode is not UIMode.NORMAL:\n"},"line_number":805,"absolute_offset":34159,"submatches":[{"match":{"text":"if self._ui_mode is not UIMode.NORMAL:"},"start":8,"end":46}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._waiting_for_input:\n"},"line_number":807,"absolute_offset":34231,"submatches":[{"match":{"text":"if self._waiting_for_input:"},"start":8,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._pending_questions:\n"},"line_number":809,"absolute_offset":34292,"submatches":[{"match":{"text":"if self._pending_questions:"},"start":8,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._pending_plan_approval is not None:\n"},"line_number":811,"absolute_offset":34353,"submatches":[{"match":{"text":"if self._pending_plan_approval is not None:"},"start":8,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if getattr(self, \"_suppress_input_change_hook\", False):\n"},"line_number":816,"absolute_offset":34512,"submatches":[{"match":{"text":"if getattr(self, \"_suppress_input_change_hook\", False):"},"start":8,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if controller is not None:\n"},"line_number":819,"absolute_offset":34662,"submatches":[{"match":{"text":"if controller is not None:"},"start":8,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if stop_reason != \"completed\":\n"},"line_number":823,"absolute_offset":34830,"submatches":[{"match":{"text":"if stop_reason != \"completed\":"},"start":8,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if controller is None:\n"},"line_number":826,"absolute_offset":34955,"submatches":[{"match":{"text":"if controller is None:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if not self._is_idle_recap_ready():\n"},"line_number":828,"absolute_offset":35005,"submatches":[{"match":{"text":"if not self._is_idle_recap_ready():"},"start":8,"end":43}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._input_area.buffer.text.strip():\n"},"line_number":830,"absolute_offset":35068,"submatches":[{"match":{"text":"if self._input_area.buffer.text.strip():"},"start":8,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._handle_large_paste(_buffer):\n"},"line_number":841,"absolute_offset":35511,"submatches":[{"match":{"text":"if self._handle_large_paste(_buffer):"},"start":8,"end":45}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if self._busy:\n"},"line_number":849,"absolute_offset":35812,"submatches":[{"match":{"text":"if self._busy:"},"start":8,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if mention_context is not None:\n"},"line_number":855,"absolute_offset":36013,"submatches":[{"match":{"text":"if mention_context is not None:"},"start":8,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if not callable(consume):\n"},"line_number":865,"absolute_offset":36438,"submatches":[{"match":{"text":"if not callable(consume):"},"start":8,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if prompt is None:\n"},"line_number":868,"absolute_offset":36524,"submatches":[{"match":{"text":"if prompt is None:"},"start":8,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"        if bool(getattr(self, \"_goal_resume_action_pending\", False)):\n"},"line_number":878,"absolute_offset":36874,"submatches":[{"match":{"text":"if bool(getattr(self, \"_goal_resume_action_pending\", False)):"},"start":8,"end":69}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"            if action.kind is GoalResumeActionKind.LEAVE_PAUSED:\n"},"line_number":889,"absolute_offset":37325,"submatches":[{"match":{"text":"if action.kind is GoalResumeActionKind.LEAVE_PAUSED:"},"start":12,"end":64}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"lines":{"text":"                if isinstance(app, DummyApplication):\n"},"line_number":956,"absolute_offset":39998,"submatches":[{"match":{"text":"if isinstance(app, DummyApplication):"},"start":16,"end":53}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tui.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":73021,"human":"0.000073s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":9935,"matched_lines":31,"matches":31}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"if TYPE_CHECKING:\n"},"line_number":23,"absolute_offset":759,"submatches":[{"match":{"text":"if TYPE_CHECKING:"},"start":0,"end":17}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"CONFIRM\":\n"},"line_number":118,"absolute_offset":3615,"submatches":[{"match":{"text":"if self._state == \"CONFIRM\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"DONE\":\n"},"line_number":121,"absolute_offset":3711,"submatches":[{"match":{"text":"if self._state == \"DONE\":"},"start":8,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"CONFIRM\":\n"},"line_number":127,"absolute_offset":3905,"submatches":[{"match":{"text":"if self._state == \"CONFIRM\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"LOADING\":\n"},"line_number":129,"absolute_offset":3966,"submatches":[{"match":{"text":"if self._state == \"LOADING\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state in (\"DONE\", \"ERROR\"):\n"},"line_number":132,"absolute_offset":4062,"submatches":[{"match":{"text":"if self._state in (\"DONE\", \"ERROR\"):"},"start":8,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._task and not self._task.done():\n"},"line_number":152,"absolute_offset":4771,"submatches":[{"match":{"text":"if self._task and not self._task.done():"},"start":8,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"DONE\" and self._on_done is not None:\n"},"line_number":177,"absolute_offset":5739,"submatches":[{"match":{"text":"if self._state == \"DONE\" and self._on_done is not None:"},"start":8,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if app is not None:\n"},"line_number":180,"absolute_offset":5863,"submatches":[{"match":{"text":"if app is not None:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if app is not None:\n"},"line_number":192,"absolute_offset":6269,"submatches":[{"match":{"text":"if app is not None:"},"start":8,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if inner_w < 20:\n"},"line_number":199,"absolute_offset":6535,"submatches":[{"match":{"text":"if inner_w < 20:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"            if pad > 0:\n"},"line_number":222,"absolute_offset":7358,"submatches":[{"match":{"text":"if pad > 0:"},"start":12,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"CONFIRM\":\n"},"line_number":232,"absolute_offset":7706,"submatches":[{"match":{"text":"if self._state == \"CONFIRM\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        elif self._state == \"LOADING\":\n"},"line_number":234,"absolute_offset":7827,"submatches":[{"match":{"text":"if self._state == \"LOADING\":"},"start":10,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        elif self._state == \"ERROR\":\n"},"line_number":236,"absolute_offset":7930,"submatches":[{"match":{"text":"if self._state == \"ERROR\":"},"start":10,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        if self._state == \"CONFIRM\":\n"},"line_number":249,"absolute_offset":8349,"submatches":[{"match":{"text":"if self._state == \"CONFIRM\":"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        elif self._state == \"LOADING\":\n"},"line_number":258,"absolute_offset":8844,"submatches":[{"match":{"text":"if self._state == \"LOADING\":"},"start":10,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        elif self._state == \"DONE\":\n"},"line_number":272,"absolute_offset":9546,"submatches":[{"match":{"text":"if self._state == \"DONE\":"},"start":10,"end":35}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"lines":{"text":"        elif self._state == \"ERROR\":\n"},"line_number":275,"absolute_offset":9676,"submatches":[{"match":{"text":"if self._state == \"ERROR\":"},"start":10,"end":36}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/plugins/marketplace_install_view.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":41642,"human":"0.000042s"},"searches":1,"searches_with_match":1,"bytes_searched":10055,"bytes_printed":6601,"matched_lines":19,"matches":19}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if not self._options.enabled:\n"},"line_number":51,"absolute_offset":1227,"submatches":[{"match":{"text":"if not self._options.enabled:"},"start":8,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if stop_reason != \"completed\":\n"},"line_number":53,"absolute_offset":1284,"submatches":[{"match":{"text":"if stop_reason != \"completed\":"},"start":8,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if stop_seq in self._emitted_stop_seqs:\n"},"line_number":55,"absolute_offset":1342,"submatches":[{"match":{"text":"if stop_seq in self._emitted_stop_seqs:"},"start":8,"end":47}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if not self._ready_to_generate():\n"},"line_number":57,"absolute_offset":1409,"submatches":[{"match":{"text":"if not self._ready_to_generate():"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if task is None:\n"},"line_number":75,"absolute_offset":1947,"submatches":[{"match":{"text":"if task is None:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if task is None:\n"},"line_number":84,"absolute_offset":2158,"submatches":[{"match":{"text":"if task is None:"},"start":8,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if task is not None and not task.done():\n"},"line_number":95,"absolute_offset":2426,"submatches":[{"match":{"text":"if task is not None and not task.done():"},"start":8,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"        if not self._is_idle():\n"},"line_number":99,"absolute_offset":2544,"submatches":[{"match":{"text":"if not self._is_idle():"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if self._current_stop_seq != stop_seq or not self._ready_to_generate():\n"},"line_number":106,"absolute_offset":2815,"submatches":[{"match":{"text":"if self._current_stop_seq != stop_seq or not self._ready_to_generate():"},"start":12,"end":83}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if self._current_stop_seq != stop_seq or not self._ready_to_generate():\n"},"line_number":109,"absolute_offset":2980,"submatches":[{"match":{"text":"if self._current_stop_seq != stop_seq or not self._ready_to_generate():"},"start":12,"end":83}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if str(result.stop_reason or \"\") != \"completed\":\n"},"line_number":111,"absolute_offset":3087,"submatches":[{"match":{"text":"if str(result.stop_reason or \"\") != \"completed\":"},"start":12,"end":60}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if not text:\n"},"line_number":114,"absolute_offset":3221,"submatches":[{"match":{"text":"if not text:"},"start":12,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if stop_seq in self._emitted_stop_seqs:\n"},"line_number":116,"absolute_offset":3269,"submatches":[{"match":{"text":"if stop_seq in self._emitted_stop_seqs:"},"start":12,"end":51}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if inspect.isawaitable(append_result):\n"},"line_number":119,"absolute_offset":3391,"submatches":[{"match":{"text":"if inspect.isawaitable(append_result):"},"start":12,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if self._current_stop_seq == stop_seq:\n"},"line_number":127,"absolute_offset":3702,"submatches":[{"match":{"text":"if self._current_stop_seq == stop_seq:"},"start":12,"end":50}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"lines":{"text":"            if self._task is current:\n"},"line_number":130,"absolute_offset":3844,"submatches":[{"match":{"text":"if self._task is current:"},"start":12,"end":37}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/recap/controller.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":62752,"human":"0.000063s"},"searches":1,"searches_with_match":1,"bytes_searched":3916,"bytes_printed":5575,"matched_lines":16,"matches":16}}}
{"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":"    if resolved_root == home:\n"},"line_number":136,"absolute_offset":4554,"submatches":[{"match":{"text":"if resolved_root == home:"},"start":4,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \" \":\n"},"line_number":170,"absolute_offset":5366,"submatches":[{"match":{"text":"if char == \" \":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \"_\":\n"},"line_number":173,"absolute_offset":5426,"submatches":[{"match":{"text":"if char == \"_\":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \"^\":\n"},"line_number":176,"absolute_offset":5515,"submatches":[{"match":{"text":"if char == \"^\":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \"~\":\n"},"line_number":179,"absolute_offset":5618,"submatches":[{"match":{"text":"if char == \"~\":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \",\":\n"},"line_number":182,"absolute_offset":5722,"submatches":[{"match":{"text":"if char == \",\":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \";\":\n"},"line_number":185,"absolute_offset":5826,"submatches":[{"match":{"text":"if char == \";\":"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if char == \"█\":\n"},"line_number":188,"absolute_offset":5929,"submatches":[{"match":{"text":"if char == \"█\":"},"start":4,"end":21}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if scale_2x:\n"},"line_number":212,"absolute_offset":6438,"submatches":[{"match":{"text":"if scale_2x:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if codename:\n"},"line_number":254,"absolute_offset":7821,"submatches":[{"match":{"text":"if codename:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if not encoding:\n"},"line_number":268,"absolute_offset":8262,"submatches":[{"match":{"text":"if not encoding:"},"start":4,"end":20}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if profile is not None and profile.render_logo is not None:\n"},"line_number":288,"absolute_offset":8773,"submatches":[{"match":{"text":"if profile is not None and profile.render_logo is not None:"},"start":4,"end":63}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/logo.py"},"lines":{"text":"    if _can_encode_logo_glyphs(console):\n"},"line_number":304,"absolute_offset":9298,"submatches":[{"match":{"text":"if _can_encode_logo_glyphs(console):"},"start":4,"end":40}]}}
{"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":28380,"human":"0.000028s"},"searches":1,"searches_with_match":1,"bytes_searched":9722,"bytes_printed":3939,"matched_lines":13,"matches":13}}}
{"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":"    if error:\n"},"line_number":51,"absolute_offset":1560,"submatches":[{"match":{"text":"if error:"},"start":4,"end":13}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if warning:\n"},"line_number":53,"absolute_offset":1604,"submatches":[{"match":{"text":"if warning:"},"start":4,"end":15}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if text_style == \"dim\":\n"},"line_number":68,"absolute_offset":2092,"submatches":[{"match":{"text":"if text_style == \"dim\":"},"start":4,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if match.start() > pos:\n"},"line_number":73,"absolute_offset":2255,"submatches":[{"match":{"text":"if match.start() > pos:"},"start":8,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if pos < len(content):\n"},"line_number":77,"absolute_offset":2436,"submatches":[{"match":{"text":"if pos < len(content):"},"start":4,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if idx > 0:\n"},"line_number":94,"absolute_offset":2941,"submatches":[{"match":{"text":"if idx > 0:"},"start":8,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if span.start >= text_len:\n"},"line_number":126,"absolute_offset":4324,"submatches":[{"match":{"text":"if span.start >= text_len:"},"start":8,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if style.bgcolor == _DIFF_ADDED_BG and plain[span.start] == \"+\":\n"},"line_number":129,"absolute_offset":4474,"submatches":[{"match":{"text":"if style.bgcolor == _DIFF_ADDED_BG and plain[span.start] == \"+\":"},"start":8,"end":72}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if style.bgcolor == _DIFF_REMOVED_BG and plain[span.start] == \"-\":\n"},"line_number":131,"absolute_offset":4570,"submatches":[{"match":{"text":"if style.bgcolor == _DIFF_REMOVED_BG and plain[span.start] == \"-\":"},"start":8,"end":74}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if marker is None:\n"},"line_number":149,"absolute_offset":5063,"submatches":[{"match":{"text":"if marker is None:"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if missing_cells <= 0:\n"},"line_number":156,"absolute_offset":5227,"submatches":[{"match":{"text":"if missing_cells <= 0:"},"start":4,"end":26}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type != \"assistant\":\n"},"line_number":166,"absolute_offset":5502,"submatches":[{"match":{"text":"if entry.entry_type != \"assistant\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if not isinstance(text, str):\n"},"line_number":169,"absolute_offset":5585,"submatches":[{"match":{"text":"if not isinstance(text, str):"},"start":4,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type != \"assistant\":\n"},"line_number":176,"absolute_offset":5801,"submatches":[{"match":{"text":"if entry.entry_type != \"assistant\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type == \"user\":\n"},"line_number":183,"absolute_offset":5989,"submatches":[{"match":{"text":"if entry.entry_type == \"user\":"},"start":4,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type == \"assistant\":\n"},"line_number":185,"absolute_offset":6043,"submatches":[{"match":{"text":"if entry.entry_type == \"assistant\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type == \"tool_call\":\n"},"line_number":187,"absolute_offset":6115,"submatches":[{"match":{"text":"if entry.entry_type == \"tool_call\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type == \"tool_result\":\n"},"line_number":189,"absolute_offset":6185,"submatches":[{"match":{"text":"if entry.entry_type == \"tool_result\":"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type == \"thinking\":\n"},"line_number":191,"absolute_offset":6249,"submatches":[{"match":{"text":"if entry.entry_type == \"thinking\":"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if entry.entry_type != \"assistant\":\n"},"line_number":202,"absolute_offset":6490,"submatches":[{"match":{"text":"if entry.entry_type != \"assistant\":"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if in_run_continuation:\n"},"line_number":216,"absolute_offset":6863,"submatches":[{"match":{"text":"if in_run_continuation:"},"start":4,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if not plain.strip():\n"},"line_number":231,"absolute_offset":7320,"submatches":[{"match":{"text":"if not plain.strip():"},"start":8,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if match is None:\n"},"line_number":234,"absolute_offset":7442,"submatches":[{"match":{"text":"if match is None:"},"start":8,"end":25}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"    if not entries:\n"},"line_number":250,"absolute_offset":7859,"submatches":[{"match":{"text":"if not entries:"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if is_assistant and _is_blank_assistant(entry):\n"},"line_number":269,"absolute_offset":9013,"submatches":[{"match":{"text":"if is_assistant and _is_blank_assistant(entry):"},"start":8,"end":55}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if entry.entry_type == \"thinking\":\n"},"line_number":282,"absolute_offset":9619,"submatches":[{"match":{"text":"if entry.entry_type == \"thinking\":"},"start":8,"end":42}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"            if not content_lines:\n"},"line_number":285,"absolute_offset":9784,"submatches":[{"match":{"text":"if not content_lines:"},"start":12,"end":33}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"            if not next_is_thinking and not suppress_trailing_gap:\n"},"line_number":303,"absolute_offset":10530,"submatches":[{"match":{"text":"if not next_is_thinking and not suppress_trailing_gap:"},"start":12,"end":66}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if needs_leading_gap_after_thinking:\n"},"line_number":309,"absolute_offset":10745,"submatches":[{"match":{"text":"if needs_leading_gap_after_thinking:"},"start":8,"end":44}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if entry.entry_type == \"elapsed\":\n"},"line_number":314,"absolute_offset":10937,"submatches":[{"match":{"text":"if entry.entry_type == \"elapsed\":"},"start":8,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/history_printer.py"},"lines":{"text":"        if entry.entry_type == \"recap\":\n"},"line_number":324,"absolute_offset":11336,"submatches":[{"match":{"text":"if entry.entry_type == \"recap\":"},"start":8,"end":39}]}}
{"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":93800,"human":"0.000094s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":10213,"matched_lines":31,"matches":31}}}
{"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":"    if not isinstance(parsed, dict):\n"},"line_number":46,"absolute_offset":1124,"submatches":[{"match":{"text":"if not isinstance(parsed, dict):"},"start":4,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if parsed.get(\"jsonrpc\") != \"2.0\":\n"},"line_number":52,"absolute_offset":1311,"submatches":[{"match":{"text":"if parsed.get(\"jsonrpc\") != \"2.0\":"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if data is not None:\n"},"line_number":78,"absolute_offset":2042,"submatches":[{"match":{"text":"if data is not None:"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if isinstance(params, dict):\n"},"line_number":85,"absolute_offset":2235,"submatches":[{"match":{"text":"if isinstance(params, dict):"},"start":4,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if is_jsonrpc_request_id(raw_value):\n"},"line_number":93,"absolute_offset":2549,"submatches":[{"match":{"text":"if is_jsonrpc_request_id(raw_value):"},"start":4,"end":40}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if value is None or isinstance(value, bool | int | float | str):\n"},"line_number":99,"absolute_offset":2670,"submatches":[{"match":{"text":"if value is None or isinstance(value, bool | int | float | str):"},"start":4,"end":68}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if is_dataclass(value):\n"},"line_number":101,"absolute_offset":2760,"submatches":[{"match":{"text":"if is_dataclass(value):"},"start":4,"end":27}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if isinstance(value, dict):\n"},"line_number":103,"absolute_offset":2868,"submatches":[{"match":{"text":"if isinstance(value, dict):"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/rpc_protocol.py"},"lines":{"text":"    if isinstance(value, list | tuple | set):\n"},"line_number":108,"absolute_offset":3060,"submatches":[{"match":{"text":"if isinstance(value, list | tuple | set):"},"start":4,"end":45}]}}
{"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":30881,"human":"0.000031s"},"searches":1,"searches_with_match":1,"bytes_searched":3182,"bytes_printed":3069,"matched_lines":9,"matches":9}}}
{"type":"begin","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"}}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"},"lines":{"text":"    if raw is None or not raw.strip():\n"},"line_number":11,"absolute_offset":177,"submatches":[{"match":{"text":"if raw is None or not raw.strip():"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"},"lines":{"text":"    if value <= 0:\n"},"line_number":18,"absolute_offset":411,"submatches":[{"match":{"text":"if value <= 0:"},"start":4,"end":18}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"},"lines":{"text":"    if raw is None or not raw.strip():\n"},"line_number":26,"absolute_offset":638,"submatches":[{"match":{"text":"if raw is None or not raw.strip():"},"start":4,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"},"lines":{"text":"    if value <= 0:\n"},"line_number":33,"absolute_offset":874,"submatches":[{"match":{"text":"if value <= 0:"},"start":4,"end":18}]}}
{"type":"end","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/env_utils.py"},"binary_offset":null,"stats":{"elapsed":{"secs":0,"nanos":11824,"human":"0.000012s"},"searches":1,"searches_with_match":1,"bytes_searched":1018,"bytes_printed":1336,"matched_lines":4,"matches":4}}}
{"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":"    if path_str is None:\n"},"line_number":36,"absolute_offset":942,"submatches":[{"match":{"text":"if path_str is None:"},"start":4,"end":24}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if project_root is not None and path.is_absolute():\n"},"line_number":41,"absolute_offset":1052,"submatches":[{"match":{"text":"if project_root is not None and path.is_absolute():"},"start":8,"end":59}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if m:\n"},"line_number":47,"absolute_offset":1291,"submatches":[{"match":{"text":"if m:"},"start":8,"end":13}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if lowered in _ALWAYS_HIDDEN_TOOLS:\n"},"line_number":101,"absolute_offset":3037,"submatches":[{"match":{"text":"if lowered in _ALWAYS_HIDDEN_TOOLS:"},"start":4,"end":39}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if lowered == \"taskcreate\":\n"},"line_number":104,"absolute_offset":3116,"submatches":[{"match":{"text":"if lowered == \"taskcreate\":"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if lowered == \"taskupdate\":\n"},"line_number":107,"absolute_offset":3187,"submatches":[{"match":{"text":"if lowered == \"taskupdate\":"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if lowered == \"update_goal\":\n"},"line_number":110,"absolute_offset":3258,"submatches":[{"match":{"text":"if lowered == \"update_goal\":"},"start":4,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if lowered in _SILENT_TASK_TOOLS:\n"},"line_number":114,"absolute_offset":3376,"submatches":[{"match":{"text":"if lowered in _SILENT_TASK_TOOLS:"},"start":4,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if isinstance(value, list):\n"},"line_number":122,"absolute_offset":3577,"submatches":[{"match":{"text":"if isinstance(value, list):"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if isinstance(value, str):\n"},"line_number":124,"absolute_offset":3630,"submatches":[{"match":{"text":"if isinstance(value, str):"},"start":4,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if isinstance(parsed, list):\n"},"line_number":129,"absolute_offset":3787,"submatches":[{"match":{"text":"if isinstance(parsed, list):"},"start":8,"end":36}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if \"todos\" in args:\n"},"line_number":135,"absolute_offset":3936,"submatches":[{"match":{"text":"if \"todos\" in args:"},"start":4,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if parsed is not None:\n"},"line_number":137,"absolute_offset":4011,"submatches":[{"match":{"text":"if parsed is not None:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if isinstance(params, dict):\n"},"line_number":140,"absolute_offset":4100,"submatches":[{"match":{"text":"if isinstance(params, dict):"},"start":4,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if parsed is not None:\n"},"line_number":142,"absolute_offset":4190,"submatches":[{"match":{"text":"if parsed is not None:"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if not content:\n"},"line_number":149,"absolute_offset":4383,"submatches":[{"match":{"text":"if not content:"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if status not in _ALLOWED_STATUS:\n"},"line_number":152,"absolute_offset":4487,"submatches":[{"match":{"text":"if status not in _ALLOWED_STATUS:"},"start":4,"end":37}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if priority not in _ALLOWED_PRIORITY:\n"},"line_number":155,"absolute_offset":4619,"submatches":[{"match":{"text":"if priority not in _ALLOWED_PRIORITY:"},"start":4,"end":41}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if raw is None:\n"},"line_number":163,"absolute_offset":4917,"submatches":[{"match":{"text":"if raw is None:"},"start":4,"end":19}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if not isinstance(item, dict):\n"},"line_number":167,"absolute_offset":5014,"submatches":[{"match":{"text":"if not isinstance(item, dict):"},"start":8,"end":38}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if normalized is not None:\n"},"line_number":170,"absolute_offset":5117,"submatches":[{"match":{"text":"if normalized is not None:"},"start":8,"end":34}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if len(content) <= max_len:\n"},"line_number":176,"absolute_offset":5264,"submatches":[{"match":{"text":"if len(content) <= max_len:"},"start":4,"end":31}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if not path:\n"},"line_number":189,"absolute_offset":5589,"submatches":[{"match":{"text":"if not path:"},"start":4,"end":16}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if len(path) <= max_len:\n"},"line_number":191,"absolute_offset":5624,"submatches":[{"match":{"text":"if len(path) <= max_len:"},"start":4,"end":28}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if result == path:\n"},"line_number":203,"absolute_offset":6041,"submatches":[{"match":{"text":"if result == path:"},"start":4,"end":22}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if key in args:\n"},"line_number":214,"absolute_offset":6282,"submatches":[{"match":{"text":"if key in args:"},"start":8,"end":23}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if isinstance(params, dict):\n"},"line_number":217,"absolute_offset":6371,"submatches":[{"match":{"text":"if isinstance(params, dict):"},"start":4,"end":32}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"            if key in params:\n"},"line_number":219,"absolute_offset":6429,"submatches":[{"match":{"text":"if key in params:"},"start":12,"end":29}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if not isinstance(value, dict) or not value:\n"},"line_number":233,"absolute_offset":6826,"submatches":[{"match":{"text":"if not isinstance(value, dict) or not value:"},"start":4,"end":48}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"        if isinstance(v, str):\n"},"line_number":246,"absolute_offset":7291,"submatches":[{"match":{"text":"if isinstance(v, str):"},"start":8,"end":30}]}}
{"type":"match","data":{"path":{"text":"/home/hyc/projects/agent-sdk/packages/comate_cli/comate_cli/terminal_agent/tool_view.py"},"lines":{"text":"    if not subagent_name:\n"},"line_number":261,"absolute_offset":7809,"submatches":[{"match":{"text":"if not subagent_name:"},"start":4,"end":25}]}}
{"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":73614,"human":"0.000074s"},"searches":1,"searches_with_match":1,"bytes_searched":0,"bytes_printed":9658,"matched_lines":31,"matches":31}}}
