MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / assert_zero_exit_code

Function assert_zero_exit_code

codeclash/utils/environment.py:36–42  ·  view source on GitHub ↗
(result: dict, *, logger: logging.Logger | None = None)

Source from the content-addressed store, hash-verified

34 return override
35
36
37class 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):

Callers 15

copy_logs_from_envMethod · 0.90
get_environmentMethod · 0.90
_pre_round_setupMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
execute_roundMethod · 0.90
__init__Method · 0.90
post_run_hookMethod · 0.90
reset_and_apply_patchMethod · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected