← Về thư mục
openai4s/server/share_projection.py
- ShareCancelled · class · L68-L69 — class ShareCancelled(RuntimeError)
- ShareProjection · class · L73-L93 — class ShareProjection
- ShareProjectionBuilder · class · L96-L1081 — class ShareProjectionBuilder
- init · method · L99-L117 — def init( self, store: Any, *, data_dir: str | Path, workspace: WorkspaceResolver, cas: WorkspaceCAS, extra_secret_values: SecretValueProvider | None = None, ) -> None
- _extra_secret_bytes · method · L120-L125 — def _extra_secret_bytes(self) -> tuple[bytes, ...]
- _contains_secret · method · L127-L134 — def _contains_secret(self, data: bytes) -> bool: # Text/ASCII signature + configured-secret exact bytes (session_package), # plus any programmatically injected extra secrets (e.g. a share token # supplied via Config rather than os.environ). Binary artifacts get only # the best-effort ASCII/known-byte scan — never a content-level guarantee.
- build · method · L137-L336 — def build( self, root_frame_id: str, active_branch: str, *, cancel_event: Any = None, ) -> ShareProjection
- _ck · function · L144-L146 — def _ck() -> None
- _project_messages · method · L339-L391 — def _project_messages( self, root_frame_id: str, active_branch: str ) -> list[dict[str, Any]]
- _project_groups · method · L393-L412 — def _project_groups( self, root_frame_id: str, active_branch: str ) -> list[dict[str, Any]]
- _branch_cells · method · L414-L426 — def _branch_cells(self, root_frame_id: str, branch_id: str) -> list[dict[str, Any]]
- _project_cells · method · L428-L453 — def _project_cells( self, root_frame_id: str, active_branch: str ) -> list[dict[str, Any]]
- _collect_artifacts · method · L456-L648 — def _collect_artifacts( self, root_frame_id: str, *, retained_cell_ids: set[str], referenced_names: set[str], workspace_names: set[str], ) -> tuple[ list[dict[str, Any]], dict[str, bytes], list[dict[str, Any]], list[dict[str, Any]], dict[str, Any], ]
- _lineage_edges · method · L650-L671 — def _lineage_edges( self, version_ids: set[str], retained_cell_ids: set[str] ) -> list[dict[str, Any]]
- _project_plans · method · L674-L688 — def _project_plans( self, root_frame_id: str, safe_artifact_ids: set[str] ) -> list[dict[str, Any]]
- _project_review · method · L690-L716 — def _project_review( self, root_frame_id: str, safe_artifact_ids: set[str], *, auto_mode: Mapping[str, Any], ) -> dict[str, Any]
- serialize_package · method · L719-L867 — def serialize_package(self, projection: ShareProjection) -> dict[str, Any]
- serialize_view · method · L869-L953 — def serialize_view( self, projection: ShareProjection, *, bundle: Mapping[str, Any] | None = None ) -> bytes
- _package_cell · method · L957-L959 — def _package_cell(cell: Mapping[str, Any]) -> dict[str, Any]
- _clip · method · L962-L966 — def _clip(value: Any) -> tuple[str, bool]
- _dedupe_name · method · L969-L982 — def _dedupe_name(filename: str, used: set[str]) -> str
- _referenced_names · method · L985-L992 — def _referenced_names(cells: tuple[Mapping[str, Any], ...]) -> set[str]
- _workspace_basenames · method · L995-L1014 — def _workspace_basenames( workspace: Mapping[str, Any], workspace_files: Mapping[str, bytes] ) -> set[str]
- _filename_index · method · L1017-L1036 — def _filename_index( artifacts: list[dict[str, Any]], ) -> tuple[dict[str, dict[str, str]], dict[str, str]]
- _figure_refs · method · L1039-L1053 — def _figure_refs( cell: Mapping[str, Any], by_name: dict[str, dict[str, str]], latest_sha_by_name: dict[str, str], ) -> list[dict[str, str]]
- _latest_available_sha · method · L1056-L1062 — def _latest_available_sha(artifact: Mapping[str, Any]) -> str | None
- _latest_available_size · method · L1065-L1071 — def _latest_available_size(artifact: Mapping[str, Any]) -> int | None
- _group_excluded · method · L1074-L1081 — def _group_excluded(excluded: list[dict[str, str]]) -> list[dict[str, Any]]