← Về thư mục
openai4s/server/auto_mode.py
- AutoModeStore · class · L253-L286 — class AutoModeStore(Protocol)
- get_frame · method · L254-L254 — def get_frame(self, frame_id: str) -> dict | None
- active_session_branch · method · L256-L256 — def active_session_branch(self, root_frame_id: str) -> str
- get_setting · method · L258-L258 — def get_setting(self, key: str, default: str | None = None) -> str | None
- get_auto_mode_selection · method · L260-L262 — def get_auto_mode_selection( self, scope_kind: str, scope_id: str ) -> dict | None
- set_auto_mode_selection · method · L264-L270 — def set_auto_mode_selection( self, scope_kind: str, scope_id: str, values: dict, expected_revision: int, ) -> dict | None
- project_auto_mode_run · method · L272-L277 — def project_auto_mode_run( self, root_frame_id: str, branch_id: str, upto_event_cursor: int | None = None, ) -> dict | None
- list_auto_mode_audits · method · L279-L286 — def list_auto_mode_audits( self, root_frame_id: str, branch_id: str, subject_kind: str | None = None, before: str | None = None, limit: int = 100, ) -> list[dict] | dict
- AutoModeError · class · L289-L295 — class AutoModeError(ValueError)
- init · method · L292-L295 — def init(self, status: int, message: str, code: str) -> None
- _revision · function · L298-L300 — def _revision(row: Mapping[str, Any] | None) -> int
- _selection_values · function · L303-L327 — def _selection_values(raw: Mapping[str, Any]) -> dict[str, str]
- _deployment_values · function · L330-L335 — def _deployment_values(config: AutoModeConfig) -> dict[str, str]
- _safe_selection · function · L338-L343 — def _safe_selection() -> dict[str, str]
- _public_value · function · L346-L366 — def _public_value(value: Any, *, list_items: bool = True) -> Any
- _public_mapping · function · L369-L377 — def _public_mapping(raw: Mapping[str, Any], fields: tuple[str, ...]) -> dict
- _identifier · function · L380-L383 — def _identifier(value: Any) -> str | None
- _drop_invalid_identifiers · function · L386-L389 — def _drop_invalid_identifiers(public: dict, fields: tuple[str, ...]) -> None
- _drop_invalid_text · function · L392-L396 — def _drop_invalid_text(public: dict, fields: tuple[str, ...]) -> None
- _drop_invalid_counts · function · L399-L405 — def _drop_invalid_counts(public: dict, fields: tuple[str, ...]) -> None
- _digest · function · L408-L409 — def _digest(value: Any) -> str | None
- _string_list · function · L412-L415 — def _string_list(value: Any) -> list[str] | None
- _public_run · function · L418-L483 — def _public_run(raw: Any) -> dict | None
- _public_finding · function · L486-L521 — def _public_finding(raw: Any) -> dict | None
- _public_audit · function · L524-L620 — def _public_audit(raw: Any) -> dict | None
- _event_kind · function · L623-L628 — def _event_kind(raw: Mapping[str, Any]) -> str
- public_auto_event · function · L631-L763 — def public_auto_event(raw: Any) -> dict | None
- AutoModeService · class · L766-L1102 — class AutoModeService
- init · method · L769-L779 — def init( self, *, store: AutoModeStore, config: Any, emit: Callable[[str, dict], None] | None = None, ) -> None
- feature_enabled · method · L782-L783 — def feature_enabled(self) -> bool
- _scope · method · L785-L797 — def _scope(self, frame_id: str) -> tuple[dict, str, str, str]
- _quarantined · method · L799-L805 — def _quarantined(self, root_frame_id: str) -> bool: # Presence is the durable barrier. An empty or otherwise corrupt row # is not evidence that quarantine ended; only deleting the exact key is.
- _resolve_selection · method · L807-L814 — def _resolve_selection( self, root_frame_id: str, project_id: str, ) -> dict
- get · method · L816-L873 — def get(self, frame_id: str) -> dict
- _public_run_with_budget · method · L875-L900 — def _public_run_with_budget( self, raw_run: Any, *, root_frame_id: str ) -> dict | None
- patch · method · L902-L1013 — def patch(self, frame_id: str, body: Any) -> dict
- list_audits · method · L1015-L1081 — def list_audits( self, frame_id: str, *, subject_kind: str | None = None, before: str | None = None, limit: int = 100, ) -> dict
- publish_committed · method · L1083-L1102 — def publish_committed(self, transition: Any) -> Any
- resolve_effective_selection · function · L1119-L1191 — def resolve_effective_selection( store: Any, config: Any, root_frame_id: str, project_id: str, ) -> dict