"""Registry entries for the Development Environment layer (L2).

Auto-extracted from the monolithic ``defaults.py``.  Each entry
follows the standard registry schema:

- ``name``: human-readable tool name
- ``level``: 13-layer taxonomy level (1-13)
- ``layer``: this layer name
- ``role``: role within the layer
- ``category``: functional category
- ``installer``: installation method
- ``launcher``: process launcher specification
- ``deps``: list of required tool IDs
- ``description``: short description
- ``flags``: optional boolean flags

This module is consumed by
:mod:`ai_lsc.registry.loader`.
"""

TOOLS: dict[str, dict] = {
    'python': {
    "name": "Python Environment",
    "level": 2,
    "layer": "Development Environment",
    "role": "Build System",
    "category": "Runtime",
    "installer": {
        "type": "pacman",
        "pkg": "python-pip"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 --version",
        "default_port": None
    },
    "deps": [],
    "description": "Python core interpreter and virtual environments.",
    "license": 'Python',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'cupy': {
    "name": "CuPy",
    "level": 2,
    "layer": "Development Environment",
    "role": "GPU Acceleration",
    "category": "GPU Computing",
    "installer": {
        "type": "uv",
        "pkg": "cupy-cuda12x"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import cupy; print(cupy.__version__)\"",
        "default_port": None
    },
    "deps": [
        "cuda"
    ],
    "description": "NumPy-compatible GPU array computing library.",
    "license": 'MIT',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'unsloth': {
    "name": "Unsloth",
    "level": 2,
    "layer": "Development Environment",
    "role": "Training",
    "category": "Model Training",
    "installer": {
        "type": "uv",
        "pkg": "unsloth"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import unsloth; print('ok')\"",
        "default_port": None
    },
    "deps": [
        "cuda"
    ],
    "description": "2x faster LLM fine-tuning with 80% less memory.",
    "license": 'Proprietary',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'sst': {
    "name": "SST (Serverless Stack)",
    "level": 2,
    "layer": "Development Environment",
    "role": "Full-Stack Framework",
    "category": "Serverless Framework",
    "installer": {
        "type": "npm",
        "pkg": "sst"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "sst --version",
        "default_port": None
    },
    "deps": [],
    "description": "Framework for building full-stack apps on your own infrastructure (AWS, Cloudflare, etc).",
    "license": 'MIT',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
}
