← Về thư mục
openai4s/server/review_scratch.py
- ReviewScratchError · class · L68-L69 — class ReviewScratchError(RuntimeError)
- _assert_safe_code · function · L72-L79 — def _assert_safe_code(code: str) -> None
- prepare_scratch · function · L82-L113 — def prepare_scratch( snapshot: Mapping[str, Any], *, artifact_paths: Mapping[str, str] | None = None, workspace: str | Path | None = None, ) -> Path
- run_scratch_python · function · L116-L160 — def run_scratch_python( code: str, *, scratch: Path, workspace: str | Path | None = None, timeout_s: float = 5.0, env_source: Mapping[str, str] | None = None, ) -> dict[str, Any]
- cleanup_scratch · function · L163-L164 — def cleanup_scratch(path: Path) -> None