← Về thư mục
openai4s/server/attention.py
- AttentionService · class · L113-L463 — class AttentionService
- init · method · L116-L131 — def init( self, store: Any, *, workbench: Any, recovery_status: RecoveryStatus, recovery_actions: RecoveryActions, execution_snapshot: ExecutionSnapshot, workspace_key: WorkspaceKey, ) -> None
- list · method · L133-L163 — def list( self, *, limit: int = DEFAULT_LIMIT, cursor: str | None = None, visible_to_user_id: str | None = None, ) -> dict[str, Any]
- _visible_sessions · method · L165-L189 — def _visible_sessions(self, visible_to_user_id: str | None) -> list[dict]
- _collect · method · L191-L208 — def _collect(self, sessions: list[dict]) -> list[dict[str, Any]]
- _items_for · method · L210-L220 — def _items_for( self, frame: Mapping[str, Any], snapshot: Mapping[str, Any] ) -> list[dict[str, Any]]
- _execution_items · method · L222-L264 — def _execution_items( self, frame: Mapping[str, Any], snapshot: Mapping[str, Any] ) -> list[dict[str, Any]]
- _approval_items · method · L266-L310 — def _approval_items(self, frame: Mapping[str, Any]) -> list[dict[str, Any]]
- _recovery_items · method · L312-L355 — def _recovery_items(self, frame: Mapping[str, Any]) -> list[dict[str, Any]]
- _compute_items · method · L357-L386 — def _compute_items(self, frame: Mapping[str, Any]) -> list[dict[str, Any]]
- _delegation_items · method · L388-L430 — def _delegation_items(self, frame: Mapping[str, Any]) -> list[dict[str, Any]]
- _card · method · L432-L463 — def _card( self, frame: Mapping[str, Any], *, source_kind: str, source_id: str, state: str, updated_at: int, action_hint: str | None = None, severity: str | None = None, ) -> dict[str, Any]
- workspace_key_for · function · L466-L490 — def workspace_key_for(runner: Any, root_frame_id: str) -> str
- service_for · function · L493-L502 — def service_for(runner: Any) -> AttentionService
- _parse_limit · function · L505-L514 — def _parse_limit(value: Any) -> int
- _scope_fingerprint · function · L517-L520 — def _scope_fingerprint(visible_to_user_id: str | None) -> str
- _encode_cursor · function · L523-L528 — def _encode_cursor(updated_at: int, item_id: str, fingerprint: str) -> str
- _decode_cursor · function · L531-L548 — def _decode_cursor(value: str | None, fingerprint: str) -> tuple[int, str] | None
- _title · function · L551-L553 — def _title(frame: Mapping[str, Any]) -> str
- _safe_text · function · L556-L565 — def _safe_text(value: Any, limit: int) -> str | None
- _as_ms · function · L568-L577 — def _as_ms(value: Any) -> int
- _better · function · L580-L585 — def _better(candidate: Mapping[str, Any], current: Mapping[str, Any]) -> bool
- _public_item · function · L588-L604 — def _public_item(item: Mapping[str, Any]) -> dict[str, Any]