INNER CODE UNIT · Python

load_workflow_trigger_catalog

viticci/shortcuts-playground-plugin · claude/skills/shortcuts-playground/scripts/lookup_action_grounding.py:113

def load_workflow_trigger_catalog(base: Path | None = None) -> dict[str, Any]:
    path = workflow_trigger_catalog_path(base)
    if not path.exists():
        return {"triggers": {}}
    with path.open("r", encoding="utf-8") as handle:
        return json.load(handle)


def load_identifier_min_macos(base: Path | None = None) -> dict[str, int | None]:
    """Return the earliest packaged snapshot availability for each identifier."""

    data_dir = (base or skill_dir()) / "data"
    availability: dict[str, int | None] = {}
    for path in sorted(data_dir.glob("toolkit-v*-tool-ids.json")):
        with path.open("r", encoding="utf-8") as handle:
            payload = json.load(handle)
        version = payload.get("version") or path.stem.replace("-tool-ids", "")
        min_macos = toolkit_snapshot_min_macos_major(version)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…