Files
雷电芽衣 1656a94811 sdks/python: mirror Elydora-Python-SDK 2.0.2
Rebuilt from the standalone 54e65eb tree (durable transactions, Kiro IDE
adapter, hook retry with a bounded chain lock, version 2.0.2) with the
Open-Source API trims re-applied: no token rotation, token issuance, or
agent integration updates, and the mirror's registration contract and
OpenCode plugin tests kept.

Claude-Session: https://claude.ai/code/session_01QoUjdc7HGKTsgj5GhG8HvF
2026-09-02 10:48:33 -04:00

90 lines
2.7 KiB
Python

"""Supported agent registry."""
from __future__ import annotations
from typing import Dict
SUPPORTED_AGENTS: Dict[str, Dict[str, str]] = {
"augment": {
"name": "Augment Code CLI",
"hook_event": "PreToolUse/PostToolUse",
"config_path": "~/.augment/settings.json",
},
"claudecode": {
"name": "Claude Code",
"hook_event": "PreToolUse/PostToolUse/PostToolUseFailure",
"config_path": "$CLAUDE_CONFIG_DIR/settings.json",
},
"codex": {
"name": "OpenAI Codex",
"hook_event": "PreToolUse/PostToolUse",
"config_path": "~/.codex/hooks.json",
},
"cline": {
"name": "Cline",
"hook_event": "PreToolUse/PostToolUse",
"config_path": "~/.cline/hooks/PreToolUse.mjs",
},
"copilot": {
"name": "GitHub Copilot CLI",
"hook_event": "preToolUse/postToolUse/postToolUseFailure",
"config_path": "~/.copilot/hooks/elydora-audit.json",
},
"cursor": {
"name": "Cursor",
"hook_event": "preToolUse/postToolUse/postToolUseFailure",
"config_path": "~/.cursor/hooks.json",
},
"droid": {
"name": "Factory Droid",
"hook_event": "PreToolUse/PostToolUse",
"config_path": "~/.factory/hooks.json",
},
"gemini": {
"name": "Gemini CLI",
"hook_event": "BeforeTool/AfterTool",
"config_path": "$GEMINI_CLI_HOME/.gemini/settings.json",
},
"grok": {
"name": "Grok Build",
"hook_event": "PreToolUse/PostToolUse/PostToolUseFailure",
"config_path": "~/.grok/hooks/elydora-audit.json",
},
"kirocli": {
"name": "Kiro CLI",
"hook_event": "PreToolUse/PostToolUse",
"config_path": "~/.kiro/hooks/elydora-audit.json",
},
"kiroide": {
"name": "Kiro IDE",
"hook_event": "PreToolUse/PostToolUse",
"config_path": ".kiro/hooks/elydora-audit.json",
},
"kimi": {
"name": "Kimi Code",
"hook_event": "PreToolUse/PostToolUse/PostToolUseFailure",
"config_path": "~/.kimi-code/config.toml",
},
"letta": {
"name": "Letta Code",
"hook_event": "PreToolUse/PostToolUse/PostToolUseFailure",
"config_path": "~/.letta/settings.json",
},
"opencode": {
"name": "OpenCode",
"hook_event": "tool.execute.after",
"config_path": "~/.config/opencode/plugins/",
},
"qwen": {
"name": "Qwen Code",
"hook_event": "PreToolUse/PostToolUse/PostToolUseFailure",
"config_path": "~/.qwen/settings.json",
},
}
def get_agent_names() -> list[str]:
"""Return sorted list of supported agent names."""
return sorted(SUPPORTED_AGENTS.keys())