← Về thư mục
openai4s/skills_loader/versions.py
- _canonical_name · function · L36-L38 — def _canonical_name(value: str) -> str
- _slug · function · L41-L45 — def _slug(value: str) -> str
- personal_skills_root · function · L48-L49 — def personal_skills_root(cfg: Config) -> Path
- project_skills_root · function · L52-L59 — def project_skills_root(cfg: Config, project_id: str) -> Path
- _safe_package_path · function · L62-L76 — def _safe_package_path(value: str) -> str
- _StoreSkillVersionRepository · class · L79-L91 — class _StoreSkillVersionRepository
- init · method · L82-L83 — def init(self, db_path: Path) -> None
- _repository · method · L85-L88 — def _repository(self)
- getattr · method · L90-L91 — def getattr(self, name: str)
- SkillVersionService · class · L94-L668 — class SkillVersionService
- init · method · L97-L99 — def init(self, cfg: Config | None = None, *, repository=None) -> None
- slug · method · L102-L103 — def slug(name: str) -> str
- scope_root · method · L105-L118 — def scope_root( self, *, scope: str = "personal", project_id: str | None = None, ) -> Path
- _reject_bundled_collision · method · L120-L129 — def _reject_bundled_collision(self, name: str) -> None: # Lazy import prevents loader initialization from creating a cycle.
- _reject_bundled_directory_collision · method · L131-L143 — def _reject_bundled_directory_collision(self, slug: str) -> None: # The public version API accepts an explicit slug independently of the # display name. Name-only collision checks therefore cannot stop a # caller from materializing a writable package under a bundled member # directory that discovery will always hide.
- _normalize_files · method · L146-L176 — def _normalize_files(files: Mapping[str, bytes | str]) -> dict[str, bytes]
- read_package · method · L179-L201 — def read_package(root: Path) -> dict[str, bytes]
- _document_metadata · method · L204-L212 — def _document_metadata(document: bytes) -> tuple[dict, str]
- _manifest · method · L214-L269 — def _manifest( self, *, name: str, slug: str, files: Mapping[str, bytes], scope: str, ) -> dict
- _write_stage · method · L272-L289 — def _write_stage(base: Path, slug: str, files: Mapping[str, bytes]) -> Path
- _swap_stage · method · L292-L318 — def _swap_stage(target: Path, stage: Path) -> tuple[Path | None, Any, Any]
- rollback · function · L308-L312 — def rollback() -> None
- finalize · function · L314-L316 — def finalize() -> None
- install · method · L320-L425 — def install( self, name: str, files: Mapping[str, bytes | str], *, scope: str = "personal", project_id: str | None = None, event: str = "installed", expected_active_version_id: str | None | object = _AUTO, metadata: dict | None = None, slug: str | None = None, require_sidecar_gate: bool = True, ) -> dict
- install_directory · method · L427-L433 — def install_directory( self, name: str, root: Path, **kwargs, ) -> dict
- upgrade · method · L435-L436 — def upgrade(self, name: str, files: Mapping[str, bytes | str], **kwargs) -> dict
- publish · method · L438-L477 — def publish( self, name: str, *, scope: str = "personal", project_id: str | None = None, expected_active_version_id: str | None | object = _AUTO, slug: str | None = None, ) -> dict
- rollback · method · L479-L557 — def rollback( self, name: str, version_id: str, *, scope: str = "personal", project_id: str | None = None, expected_active_version_id: str | None | object = _AUTO, ) -> dict
- delete · method · L559-L597 — def delete( self, name: str, *, scope: str = "personal", project_id: str | None = None, ) -> dict
- history · method · L599-L632 — def history( self, name: str, *, scope: str = "personal", project_id: str | None = None, limit: int = 200, ) -> dict
- status · method · L634-L668 — def status( self, name: str, *, scope: str = "personal", project_id: str | None = None, ) -> dict