(value: str)
| 292 | |
| 293 | |
| 294 | def parse_agent_arg(value: str) -> tuple[str, str]: |
| 295 | if "=" not in value: |
| 296 | raise argparse.ArgumentTypeError("--agent values must be NAME=/path/to/cyborg_agent.py") |
| 297 | name, path = value.split("=", 1) |
| 298 | if not name: |
| 299 | raise argparse.ArgumentTypeError("agent name cannot be empty") |
| 300 | if not Path(path).exists(): |
| 301 | raise argparse.ArgumentTypeError(f"agent path does not exist: {path}") |
| 302 | return name, path |
| 303 | |
| 304 | |
| 305 | def main() -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected