INNER CODE UNIT · Python
path
Priivacy-ai/spec-kitty · packages/spec-kitty-services/spec_kitty_services/__init__.py:75
path = package / BIN_DIR / binary.asset
return str(path) if path.is_file() and not path.is_symlink() else None
def _safe_provide(service: str) -> str | None:
# Broad on purpose: the CLI turns a raising provider into a SERVICE_BINARY_MISSING
# refusal that would block its own fetch, so any failure here must mean "offer nothing".
try:
return _provide(service)
except Exception:
return None
def write_service() -> str | None:
"""The bundled write-service binary for this host and CLI version, or ``None``."""
return _safe_provide("write-service")