INNER CODE UNIT · Python

load_enum_catalog

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

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


def load_trigger_catalog(base: Path | None = None) -> dict[str, Any]:
    path = 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_workflow_trigger_catalog(base: Path | None = None) -> dict[str, Any]:
    path = workflow_trigger_catalog_path(base)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…