"""Registry entries for the Host Platform layer (L1).

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] = {
    'tmux': {
    "name": "Tmux",
    "level": 1,
    "layer": "Host Platform",
    "role": "Multiplexer",
    "category": "Terminal",
    "installer": {
        "type": "pacman",
        "pkg": "tmux"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "tmux -V",
        "default_port": None
    },
    "deps": [],
    "description": "Terminal multiplexer for persistent sessions.",
    "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
    }
},
    'git': {
    "name": "Git",
    "level": 1,
    "layer": "Host Platform",
    "role": "Version Control",
    "category": "VCS",
    "installer": {
        "type": "pacman",
        "pkg": "git"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "git --version",
        "default_port": None
    },
    "deps": [],
    "description": "Distributed version control system.",
    "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
    }
},
    'podman': {
    "name": "Podman",
    "level": 1,
    "layer": "Host Platform",
    "role": "Container Runtime",
    "category": "Containers",
    "installer": {
        "type": "pacman",
        "pkg": "podman"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "podman --version",
        "default_port": None
    },
    "deps": [],
    "description": "Daemonless container engine for OCI containers.",
    "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
    }
},
    'docker': {
    "name": "Docker",
    "level": 1,
    "layer": "Host Platform",
    "role": "Container Runtime",
    "category": "Containers",
    "installer": {
        "type": "pacman",
        "pkg": "docker"
    },
    "launcher": {
        "type": "systemd",
        "cmd": "docker",
        "default_port": None
    },
    "deps": [],
    "description": "Container platform for building and running containers.",
    "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
    }
},
    'postgresql': {
    "name": "PostgreSQL",
    "level": 1,
    "layer": "Host Platform",
    "role": "Foundation",
    "category": "Database",
    "installer": {
        "type": "pacman",
        "pkg": "postgresql"
    },
    "launcher": {
        "type": "systemd",
        "cmd": "postgresql",
        "default_port": 5432
    },
    "deps": [],
    "description": "Relational database used by many frameworks.",
    "license": 'PostgreSQL',
    "flags": {        "has_cli": False,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'mariadb': {
    "name": "MariaDB",
    "level": 1,
    "layer": "Host Platform",
    "role": "Foundation",
    "category": "Database",
    "installer": {
        "type": "pacman",
        "pkg": "mariadb"
    },
    "launcher": {
        "type": "systemd",
        "cmd": "mariadb",
        "default_port": 3306
    },
    "deps": [],
    "description": "Open source relational database.",
    "license": 'GPL-2.0',
    "flags": {        "has_cli": False,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'redis': {
    "name": "Redis",
    "level": 1,
    "layer": "Host Platform",
    "role": "Foundation",
    "category": "Cache",
    "installer": {
        "type": "pacman",
        "pkg": "redis"
    },
    "launcher": {
        "type": "systemd",
        "cmd": "redis",
        "default_port": 6379
    },
    "deps": [],
    "description": "In-memory cache and message broker.",
    "license": 'RSALv2',
    "flags": {        "has_cli": False,
        "has_gui": False,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'sqlite3': {
    "name": "SQLite3",
    "level": 1,
    "layer": "Host Platform",
    "role": "Foundation",
    "category": "Database",
    "installer": {
        "type": "pacman",
        "pkg": "sqlite"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "sqlite3",
        "default_port": None
    },
    "deps": [],
    "description": "C-language library implementing a SQL database engine.",
    "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
    }
},
    'duckdb': {
    "name": "DuckDB",
    "level": 1,
    "layer": "Host Platform",
    "role": "Foundation",
    "category": "Analytical Database",
    "installer": {
        "type": "uv",
        "pkg": "duckdb"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import duckdb; print(duckdb.__version__)\"",
        "default_port": None
    },
    "deps": [],
    "description": "In-process analytical database with SQL support.",
    "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
    }
},
}
