(result: dict, *, logger: logging.Logger | None = None)
| 34 | return override |
| 35 | |
| 36 | |
| 37 | class ClashDockerEnvironment(DockerEnvironment): |
| 38 | """DockerEnvironment that also accepts a plain command string. |
| 39 | |
| 40 | mini-swe-agent v2's `execute` takes an action dict (`{"command": ...}`), but CodeClash's |
| 41 | arena code calls `execute("some shell command")` directly. Normalize so both work. |
| 42 | """ |
| 43 | |
| 44 | def execute(self, action: str | dict, cwd: str = "", *, timeout: int | None = None) -> dict: |
| 45 | if isinstance(action, str): |
no test coverage detected