彻底删除支持不完整的Agent和相关代码,减轻维护工作量,等后续真正适配好了再加回来

This commit is contained in:
xintaofei
2026-03-17 18:10:31 +08:00
parent 63814381d7
commit 879d96f5a4
11 changed files with 19 additions and 1038 deletions

View File

@@ -179,16 +179,6 @@ export async function acpPrepareNpxAgent(
})
}
export async function acpPrepareUvxAgent(
agentType: AgentType,
registryVersion?: string | null
): Promise<string> {
return invoke("acp_prepare_uvx_agent", {
agentType,
registryVersion: registryVersion ?? null,
})
}
export async function acpUninstallAgent(agentType: AgentType): Promise<void> {
return invoke("acp_uninstall_agent", { agentType })
}

View File

@@ -2,23 +2,8 @@ export type AgentType =
| "claude_code"
| "codex"
| "open_code"
| "auggie"
| "autohand"
| "cline"
| "codebuddy_code"
| "corust_agent"
| "gemini"
| "github_copilot"
| "goose"
| "junie"
| "qoder"
| "qwen_code"
| "factory_droid"
| "kimi"
| "minion_code"
| "mistral_vibe"
| "open_claw"
| "stakpak"
export type AppErrorCode =
| "invalid_input"
@@ -219,23 +204,8 @@ export const AGENT_DISPLAY_ORDER: AgentType[] = [
"codex",
"claude_code",
"open_code",
"auggie",
"autohand",
"cline",
"codebuddy_code",
"corust_agent",
"gemini",
"github_copilot",
"goose",
"junie",
"qoder",
"qwen_code",
"factory_droid",
"kimi",
"minion_code",
"mistral_vibe",
"open_claw",
"stakpak",
]
const AGENT_DISPLAY_ORDER_INDEX = new Map(
@@ -252,46 +222,16 @@ export const AGENT_LABELS: Record<AgentType, string> = {
claude_code: "Claude Code",
codex: "Codex",
open_code: "OpenCode",
auggie: "Auggie",
autohand: "Autohand Code",
cline: "Cline",
codebuddy_code: "Codebuddy Code",
corust_agent: "Corust Agent",
gemini: "Gemini CLI",
github_copilot: "GitHub Copilot",
goose: "goose",
junie: "Junie",
qoder: "Qoder",
qwen_code: "Qwen Code",
factory_droid: "Factory Droid",
kimi: "Kimi",
minion_code: "Minion Code",
mistral_vibe: "Mistral Vibe",
open_claw: "OpenClaw",
stakpak: "Stakpak",
}
export const AGENT_COLORS: Record<AgentType, string> = {
claude_code: "bg-orange-500",
codex: "bg-green-500",
open_code: "bg-blue-500",
auggie: "bg-purple-500",
autohand: "bg-emerald-500",
cline: "bg-rose-500",
codebuddy_code: "bg-violet-500",
corust_agent: "bg-amber-500",
gemini: "bg-blue-400",
github_copilot: "bg-gray-700",
goose: "bg-lime-500",
junie: "bg-pink-500",
qoder: "bg-teal-500",
qwen_code: "bg-indigo-500",
factory_droid: "bg-yellow-600",
kimi: "bg-cyan-500",
minion_code: "bg-fuchsia-500",
mistral_vibe: "bg-red-500",
open_claw: "bg-emerald-600",
stakpak: "bg-slate-600",
}
// ACP connection status (matches Rust ConnectionStatus)