Spaces:
Running
Running
sync: upstream 9194f15 + custom addons (KeyRotator, RotatingChatTransport, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
e99df76 Download src/free_claude_code/harnesses/launch.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/harnesses/launch.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/src/free_claude_code/harnesses/launch.py
-
curl -L -o launch.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/harnesses/launch.py
638 Bytes
| from __future__ import annotations | |
| """Native launch descriptions; execution belongs to each caller.""" | |
| from collections.abc import Callable, Mapping | |
| from dataclasses import dataclass, field | |
| class NativeCheck: | |
| """A fixed native probe; its adapter owns output interpretation.""" | |
| args: tuple[str, ...] | |
| accepts: Callable[[str], bool] | |
| failure_message: str | |
| timeout_seconds: float = 5.0 | |
| class PreparedLaunch: | |
| command: list[str] = field(repr=False) | |
| env: Mapping[str, str] = field(repr=False) | |
| activation_check: NativeCheck | None = None | |