mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-12-03 02:21:29 +08:00
run_code argument checks now throw ToolArgsError (INVALID_ARGS), including timeoutMs or sandbox_permissions passed to a runtime whose schema does not expose them; a missing runtime, workingDirectory, or sandboxPolicy throws ToolContextUnavailableError. CodeRunFailedError gains CODE_RUN_UNAVAILABLE after executor disposal, keeping CODE_RUN_FAILED as the default. A runtime rejection without its own code becomes CODE_RUN_FAILED with the rejection as cause; caller cancellation keeps the signal's reason. The PTC runtime Service Definition adds PtcRuntimeError for contract misuse: PTC_RUNTIME_INVALID_ARGUMENT, PTC_RUNTIME_UNAVAILABLE, and PTC_RUNTIME_CONFLICT. The Node runtime throws it for invalid specs and bindings, use after disposal, incomplete retained cleanup, concurrent runs for one owner, and a retained environment under another sandbox policy. dsh-ptc-runtime now declares @deepseek-ai/dsh-error. Refs #7869