mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
fix: temporarily disable Cursor CLI agent (#3055)
Cursor CLI uses a proprietary ConnectRPC protocol and validates API keys against Cursor's own servers — it cannot route through OpenRouter. All infra (scripts, setup code, matrix entries) is preserved for re-enabling when Cursor adds BYOK/custom endpoint support. Adds `disabled` field to AgentDef and filters disabled agents from the picker via agentKeys(). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
e44705d925
commit
dfc3e625a2
2 changed files with 7 additions and 1 deletions
|
|
@ -306,6 +306,8 @@
|
|||
]
|
||||
},
|
||||
"cursor": {
|
||||
"disabled": true,
|
||||
"disabled_reason": "Cursor CLI uses a proprietary protocol (ConnectRPC) and validates API keys against Cursor's own servers. Cannot route through OpenRouter. Re-enable when Cursor adds BYOK/custom endpoint support for agent mode.",
|
||||
"name": "Cursor CLI",
|
||||
"description": "Cursor's terminal-based AI coding agent — autonomous coding with plan, agent, and ask modes",
|
||||
"url": "https://cursor.com/cli",
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ export interface AgentDef {
|
|||
category?: string;
|
||||
tagline?: string;
|
||||
tags?: string[];
|
||||
disabled?: boolean;
|
||||
disabled_reason?: string;
|
||||
}
|
||||
|
||||
export interface CloudDef {
|
||||
|
|
@ -280,7 +282,9 @@ export async function loadManifest(forceRefresh = false): Promise<Manifest> {
|
|||
}
|
||||
|
||||
export function agentKeys(m: Manifest): string[] {
|
||||
return Object.keys(m.agents).sort((a, b) => (m.agents[b].github_stars ?? 0) - (m.agents[a].github_stars ?? 0));
|
||||
return Object.keys(m.agents)
|
||||
.filter((k) => !m.agents[k].disabled)
|
||||
.sort((a, b) => (m.agents[b].github_stars ?? 0) - (m.agents[a].github_stars ?? 0));
|
||||
}
|
||||
|
||||
export function cloudKeys(m: Manifest): string[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue