"""Registry entries for the Intelligent Routing layer (L10).

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] = {
    'crewai': {
    "name": "CrewAI",
    "level": 10,
    "layer": "Intelligent Routing",
    "role": "Brain",
    "category": "Agent Workflow",
    "installer": {
        "type": "uv",
        "pkg": "crewai"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "crewai",
        "default_port": None
    },
    "deps": [],
    "description": "Framework for orchestrating role-playing autonomous AI agents.",
    "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
    }
},
    'autogen': {
    "name": "AutoGen",
    "level": 10,
    "layer": "Intelligent Routing",
    "role": "Brain",
    "category": "Agent Workflow",
    "installer": {
        "type": "uv",
        "pkg": "pyautogen"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "autogen",
        "default_port": None
    },
    "deps": [],
    "description": "Enable next-gen LLM applications with multiple conversable agents.",
    "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
    }
},
    'openbrain': {
    "name": "OpenBrain",
    "level": 10,
    "layer": "Intelligent Routing",
    "role": "Brain",
    "category": "Reasoning Engine",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/nicely-done/openbrain"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/openbrain && python3 -m openbrain serve --port {port}",
        "default_port": 7100
    },
    "deps": [
        "ollama"
    ],
    "description": "Open-source reasoning and cognitive engine.",
    "license": 'MIT',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'mnemosyne': {
    "name": "Mnemosyne",
    "level": 10,
    "layer": "Intelligent Routing",
    "role": "Memory",
    "category": "Spaced Repetition",
    "installer": {
        "type": "uv",
        "pkg": "mnemosyne"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "mnemosyne",
        "default_port": None
    },
    "deps": [],
    "description": "Spaced repetition flashcard program with AI integration.",
    "license": 'MIT',
    "flags": {
        "has_cli": False,
        "has_gui": True,
        "has_web": False,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
    'mnemo_cortex': {
    "name": "Mnemo Cortex",
    "level": 10,
    "layer": "Intelligent Routing",
    "role": "Memory",
    "category": "Cortex Memory",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/nicely-done/mnemo-cortex"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/mnemo_cortex && python3 -m mnemo_cortex serve --port {port}",
        "default_port": 7200
    },
    "deps": [
        "ollama"
    ],
    "description": "Hierarchical cortex memory for AI agents.",
    "license": 'MIT',
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True,
        "is_ollama": False,
        "is_docker": False,
        "is_passive": False,
        "is_mcp": False,
        "is_skills_collection": False
    }
},
}
