"""Registry entries for the AI Endpoints layer (L6).

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] = {
    'litellm': {
    "name": "LiteLLM Proxy",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "API Gateway",
    "category": "Proxy",
    "installer": {
        "type": "uv",
        "pkg": "litellm"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "litellm --port {port}",
        "default_port": 4000
    },
    "deps": [],
    "description": "Call 100+ LLMs using the OpenAI format.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'odysseus': {
    "name": "Odysseus",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Reasoning",
    "category": "Agent Workflow",
    "installer": {
        "type": "uv",
        "pkg": "odysseus"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/odysseus/ && ./.venv/bin/uvicorn app:app --host 127.0.0.1 --port {port}",
        "default_port": 7000
    },
    "deps": [
        "ollama"
    ],
    "description": "Local reasoning and orchestration agent.",
    "flags": {
        "has_cli": False,
        "has_gui": False,
        "has_web": True
    }
},
    '9router_proxy': {
    "name": "9Router Proxy",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "API Gateway",
    "category": "LLM Router",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/nicely-done/9router"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/9router && python3 main.py --port {port}",
        "default_port": 4001
    },
    "deps": [
        "ollama"
    ],
    "description": "Intelligent LLM request router and load balancer.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'langchain': {
    "name": "LangChain",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Orchestration",
    "category": "LLM Framework",
    "installer": {
        "type": "uv",
        "pkg": "langchain"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import langchain; print(langchain.__version__)\"",
        "default_port": None
    },
    "deps": [],
    "description": "Framework for LLM-powered application development.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False
    }
},
    'langflow': {
    "name": "LangFlow",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Visual Builder",
    "category": "Workflow",
    "installer": {
        "type": "uv",
        "pkg": "langflow"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "langflow run --port {port}",
        "default_port": 7860
    },
    "deps": [],
    "description": "Visual framework for multi-agent and RAG workflows.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'openai_swarm': {
    "name": "OpenAI Swarm",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Multi-Agent",
    "category": "Agent Framework",
    "installer": {
        "type": "uv",
        "pkg": "swarm"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import swarm; print('ok')\"",
        "default_port": None
    },
    "deps": [],
    "description": "OpenAI multi-agent orchestration framework.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False
    }
},
    'nvidia_agent_skills': {
    "name": "NVIDIA Agent Skills",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Tool Integration",
    "category": "Agent Toolkit",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/NVIDIA/agent-skills"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "ls {tools_root}/nvidia_agent_skills",
        "default_port": None
    },
    "deps": [
        "cuda"
    ],
    "description": "NVIDIA-curated agent skill definitions and tools.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False
    }
},
    'deep_eye': {
    "name": "Deep Eye",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Vision",
    "category": "Computer Vision",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/nicely-done/deep-eye"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/deep_eye && python3 serve.py --port {port}",
        "default_port": 8100
    },
    "deps": [
        "ollama"
    ],
    "description": "Local computer vision analysis and description engine.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'parakeet': {
    "name": "Parakeet.cpp",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Senses",
    "category": "Speech Recognition",
    "installer": {
        "type": "git",
        "pkg": "https://github.com/nicely-done/parakeet.cpp"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "cd {tools_root}/parakeet && ./parakeet --port {port}",
        "default_port": 8300
    },
    "deps": [
        "cuda"
    ],
    "description": "C++ speech recognition with transformer architecture.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'luxtts': {
    "name": "LuxTTS",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Voice",
    "category": "Text-to-Speech",
    "installer": {
        "type": "uv",
        "pkg": "luxtts"
    },
    "launcher": {
        "type": "tmux",
        "cmd": "luxtts serve --port {port}",
        "default_port": 8500
    },
    "deps": [],
    "description": "High-quality local text-to-speech synthesis.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": True
    }
},
    'agno': {
    "name": "Agno",
    "level": 6,
    "layer": "AI Endpoints",
    "role": "Agent Framework",
    "category": "AI Agent",
    "installer": {
        "type": "uv",
        "pkg": "agno"
    },
    "launcher": {
        "type": "desktop",
        "cmd": "python3 -c \"import agno; print(agno.__version__)\"",
        "default_port": None
    },
    "deps": [],
    "description": "Framework for building AI agents with tool calling and memory.",
    "flags": {
        "has_cli": True,
        "has_gui": False,
        "has_web": False
    }
},
}
