← Về thư mục
openai4s/kernel/recovery.py
- _canonical_bytes · function · L130-L136 — def _canonical_bytes(value: Any) -> bytes
- _sha256 · function · L139-L140 — def _sha256(data: bytes) -> str
- SidecarManifest · class · L144-L290 — class SidecarManifest
- post_init · method · L155-L247 — def post_init(self) -> None
- is_local_import · function · L208-L210 — def is_local_import(imported: str) -> bool
- sha256 · method · L250-L251 — def sha256(self) -> str
- record · method · L253-L263 — def record(self) -> dict[str, Any]
- from_record · method · L266-L290 — def from_record(cls, value: Mapping[str, Any]) -> "SidecarManifest"
- BootstrapManifest · class · L294-L525 — class BootstrapManifest
- post_init · method · L311-L334 — def post_init(self) -> None
- record · method · L336-L362 — def record(self) -> dict[str, Any]
- manifest_id · method · L365-L366 — def manifest_id(self) -> str
- from_record · method · L369-L442 — def from_record(cls, value: Mapping[str, Any]) -> "BootstrapManifest"
- with_observed_environment · method · L444-L525 — def with_observed_environment( self, value: Mapping[str, Any] ) -> "BootstrapManifest"
- sidecar_from_load_event · function · L528-L576 — def sidecar_from_load_event(value: Mapping[str, Any]) -> SidecarManifest
- merge_bootstrap_sidecar_loads · function · L579-L627 — def merge_bootstrap_sidecar_loads( bootstrap: Mapping[str, Any], events: Iterable[Mapping[str, Any]], ) -> dict[str, Any]
- frozen_sidecar_bootstrap_code · function · L630-L819 — def frozen_sidecar_bootstrap_code(sidecar: SidecarManifest) -> str
- RecoveryStep · class · L823-L833 — class RecoveryStep
- post_init · method · L829-L833 — def post_init(self) -> None
- RecoveryRecipe · class · L837-L846 — class RecoveryRecipe
- post_init · method · L844-L846 — def post_init(self) -> None
- RecoveryResult · class · L850-L858 — class RecoveryResult
- Candidate · class · L861-L864 — class Candidate(Protocol)
- shutdown · method · L864-L864 — def shutdown(self) -> None
- RecoveryCancelled · class · L870-L871 — class RecoveryCancelled(RuntimeError)
- replay_safety_error · function · L874-L963 — def replay_safety_error( code: str, *, language: str, declared_host_methods: Iterable[str] = (), ) -> str | None
- KernelRecoveryOrchestrator · class · L966-L1288 — class KernelRecoveryOrchestrator
- init · method · L969-L994 — def init( self, *, build_candidate: Callable[[BootstrapManifest], Candidate], bootstrap_candidate: Callable[[Candidate, BootstrapManifest], Any], hydrate_workspace: Callable[[Candidate, Mapping[str, Any]], Any], hydrate_artifact: Callable[[Candidate, Mapping[str, Any]], Any], execute_cell: Callable[[Candidate, str, str], Mapping[str, Any]], inspect_symbols: Callable[[Candidate, str], Iterable[str]], artifact_digest: Callable[[Candidate, str], str | None], inspect_environment: Callable[[Candidate], Mapping[str, Any]], publish: Callable[[Candidate], Any], journal: JournalSink | None = None, cancelled: Callable[[], bool] | None = None, ) -> None
- restore · method · L996-L1193 — def restore( self, *, root_frame_id: str, branch_id: str | None, manifest: BootstrapManifest, recipe: RecoveryRecipe, source_generation_id: str | None, recovery_id: str | None = None, ) -> RecoveryResult
- check_cancelled · function · L1015-L1017 — def check_cancelled() -> None
- record · function · L1019-L1030 — def record(phase: str, status: str, detail: Any = None) -> None
- _validate · method · L1195-L1281 — def _validate( self, candidate: Candidate, manifest: BootstrapManifest, recipe: RecoveryRecipe, ) -> list[dict[str, Any]]
- _shutdown · method · L1284-L1288 — def _shutdown(candidate: Candidate) -> None
- sidecar_from_path · function · L1291-L1307 — def sidecar_from_path( name: str, path: str | Path, *, order: int, exports: Sequence[str] = (), import_mode: str = "module", ) -> SidecarManifest