dheraingoud's picture
sync: upstream 9194f15 + custom addons (KeyRotator, RotatingChatTransport, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
e99df76
Raw History Blame Contribute Delete
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
@dataclass(frozen=True, slots=True)
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
@dataclass(frozen=True, slots=True)
class PreparedLaunch:
command: list[str] = field(repr=False)
env: Mapping[str, str] = field(repr=False)
activation_check: NativeCheck | None = None