← Về thư mục
openai4s/host/bash.py
- redact_shell_text · function · L47-L60 — def redact_shell_text(value: Any, *, limit: int = 4000) -> str
- _looks_secret_name · function · L63-L69 — def _looks_secret_name(name: str) -> bool
- _contains_secret_path · function · L87-L110 — def _contains_secret_path(command: str) -> bool
- _safe_persisted_path · function · L113-L123 — def _safe_persisted_path(value: Any) -> str
- classify_command · function · L126-L158 — def classify_command(command: str, domains: Iterable[str] = ()) -> str
- _within · function · L161-L166 — def _within(path: Path, root: Path) -> bool
- _finite_number · function · L169-L176 — def _finite_number(value: Any, *, name: str) -> float
- _IssuedCapability · class · L180-L214 — class _IssuedCapability
- public_payload · method · L199-L214 — def public_payload(self) -> dict[str, Any]
- BashAuthorizationService · class · L217-L641 — class BashAuthorizationService
- init · method · L220-L248 — def init( self, *, workspace: Callable[[], str | Path], frame_id: Callable[[], str | None], generation: Callable[[], str | int | None] | None = None, allowed_roots: Callable[[], Iterable[str | Path]] | None = None, audit: Callable[..., Any] | None = None, step_sink: Callable[[], Callable[[dict], Any] | None] | None = None, sandbox_status: Callable[[], Mapping[str, Any] | None] | None = None, clock: Callable[[], float] = time.time, token_factory: Callable[[], str] | None = None, ttl_seconds: float = DEFAULT_TTL_SECONDS, ) -> None
- authorize · method · L250-L408 — def authorize(self, spec: dict[str, Any]) -> dict[str, Any]
- attach_step · method · L410-L429 — def attach_step( self, token: str, *, step_id: str | None, view: tuple[str, str, dict] | None, ) -> bool
- consume · method · L431-L459 — def consume(self, spec: dict[str, Any]) -> dict[str, Any]
- record_result · method · L461-L516 — def record_result(self, spec: dict[str, Any]) -> dict[str, Any]
- _binding_mismatch · method · L519-L531 — def _binding_mismatch( capability: _IssuedCapability, spec: dict[str, Any] ) -> str | None
- _safe_result · method · L534-L608 — def _safe_result( capability: _IssuedCapability, spec: dict[str, Any] ) -> dict[str, Any]
- cut · function · L555-L570 — def cut(stream: str, text: str) -> dict[str, Any]
- safe_paths · function · L572-L576 — def safe_paths(key: str) -> list[str]
- _summary · method · L611-L621 — def _summary(safe: dict[str, Any]) -> str
- _purge_locked · method · L623-L641 — def _purge_locked(self, now: float) -> None