INNER CODE UNIT · Python

_fetch_registry

ghost-in-the-droid/android-agent · gitd/cli.py:32

def _fetch_registry() -> list[dict]:
    """Fetch official registry index.json."""
    try:
        resp = requests.get(REGISTRY_URL, headers=_GITHUB_HEADERS, timeout=15)
        resp.raise_for_status()
        data = resp.json()
        return data.get("skills", data) if isinstance(data, dict) else data
    except Exception as e:
        logger.warning("could not fetch registry: %s", e)
        return []


def _fetch_community() -> list[dict]:
    """Fetch community registry community.json."""
    try:
        resp = requests.get(COMMUNITY_URL, headers=_GITHUB_HEADERS, timeout=15)
        resp.raise_for_status()
        data = resp.json()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…