Loads & manages capability manifests; scans plugins; checks approvals/permissions.
# Source: https://github.com/JIGGAI/JIGGA | License: MIT | Copyright 2026 JIGG AI
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
import hashlib
from dataclasses import dataclass, field
from datetime import datetime, timezone
from pathlib import Path
from typing import Any
from jigga.core.io import ensure_dir, list_config_files, read_json, read_yaml, write_json
APPROVALS_FILE = "capability_approvals.json"
VALID_RISK_LEVELS = {"low", "medium", "high"}
VALID_CAPABILITY_TYPES = {"native", "skill_pack", "mcp_server", "app"}
# Auto-assigned handler key for each capability type when the manifest does
# not declare one explicitly. Built-in dispatch table registers each of these.
DEFAULT_HANDLERS_BY_TYPE = {
"app": "app.none", # apps are
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key