# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2026 Detent Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Adapter implementations for different AI agents."""

from detent.adapters.base import AgentAdapter
from detent.adapters.hook.base import HookAdapter
from detent.adapters.hook.claude_code import ClaudeCodeHookAdapter
from detent.adapters.hook.codex import CodexHookAdapter
from detent.adapters.hook.gemini import GeminiAdapter
from detent.adapters.http.base import HTTPProxyAdapter
from detent.adapters.http.claude_code import ClaudeCodeAdapter
from detent.adapters.http.codex import CodexAdapter
from detent.adapters.langgraph import LangGraphAdapter

ADAPTERS: dict[str, type[AgentAdapter]] = {
    "claude-code": ClaudeCodeAdapter,
    "codex": CodexAdapter,
    "langgraph": LangGraphAdapter,
    "gemini": GeminiAdapter,
}

__all__ = [
    "AgentAdapter",
    "ClaudeCodeAdapter",
    "ClaudeCodeHookAdapter",
    "CodexAdapter",
    "CodexHookAdapter",
    "LangGraphAdapter",
    "GeminiAdapter",
    "HTTPProxyAdapter",
    "HookAdapter",
    "ADAPTERS",
]
