INNER CODE UNIT · Python

trigger_catalog_path

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

def trigger_catalog_path(base: Path | None = None) -> Path:
    return (base or skill_dir()) / "data/toolkit-v78-trigger-parameter-keys.json"


def workflow_trigger_catalog_path(base: Path | None = None) -> Path:
    return (base or skill_dir()) / "data/macos27-workflow-trigger-samples.json"


def load_catalog(base: Path | None = None) -> dict[str, Any]:
    path = catalog_path(base)
    with path.open("r", encoding="utf-8") as handle:
        return json.load(handle)


def load_parameter_catalog(base: Path | None = None) -> dict[str, Any]:
    path = parameter_catalog_path(base)
    if not path.exists():
        return {"tools": {}}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…