← Về thư mục
openai4s/storage/skills.py
- _canonical_json · function · L93-L99 — def _canonical_json(value: Any) -> str
- _canonical_name · function · L102-L104 — def _canonical_name(value: str) -> str
- _validated_scope · function · L107-L118 — def _validated_scope(scope: str, scope_id: str | None) -> tuple[str, str]
- _installation_id · function · L121-L125 — def _installation_id(scope: str, scope_id: str, normalized_name: str) -> str
- SkillVersionRepository · class · L128-L565 — class SkillVersionRepository
- init · method · L131-L143 — def init( self, connection: sqlite3.Connection, lock: threading.RLock, *, clock_ms: Callable[[], int], ) -> None
- _version_record · method · L146-L150 — def _version_record(row: sqlite3.Row | Mapping[str, Any]) -> dict
- _installation_record · method · L153-L154 — def _installation_record(row: sqlite3.Row | Mapping[str, Any]) -> dict
- put_version · method · L156-L276 — def put_version(self, manifest: dict, files: Mapping[str, bytes]) -> dict
- get_version · method · L278-L308 — def get_version(self, version_id: str, *, include_files: bool = False) -> dict
- get_installation · method · L310-L326 — def get_installation( self, name: str, *, scope: str = "personal", scope_id: str | None = None, ) -> dict | None
- get_active_by_slug · method · L328-L344 — def get_active_by_slug( self, slug: str, *, scope: str = "personal", scope_id: str | None = None, ) -> dict | None
- activate · method · L346-L431 — def activate( self, name: str, slug: str, version_id: str, *, scope: str = "personal", scope_id: str | None = None, event: str = "installed", expected_active_version_id: str | None = None, metadata: dict | None = None, ) -> dict
- deactivate · method · L433-L476 — def deactivate( self, name: str, *, scope: str = "personal", scope_id: str | None = None, expected_active_version_id: str | None, metadata: dict | None = None, ) -> dict
- history · method · L478-L502 — def history( self, name: str, *, scope: str = "personal", scope_id: str | None = None, limit: int = 200, ) -> dict
- version_belongs_to · method · L504-L521 — def version_belongs_to( self, name: str, version_id: str, *, scope: str = "personal", scope_id: str | None = None, ) -> bool
- activation_metadata_for_version · method · L523-L548 — def activation_metadata_for_version( self, name: str, version_id: str, *, scope: str = "personal", scope_id: str | None = None, ) -> list[dict]
- list_active · method · L550-L565 — def list_active( self, *, scope: str, scope_id: str | None = None, ) -> list[dict]