-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Expand file tree
/
Copy pathregistry.ts
More file actions
80 lines (75 loc) · 2.53 KB
/
Copy pathregistry.ts
File metadata and controls
80 lines (75 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { amrAgentDef } from './defs/amr.js';
import { claudeAgentDef } from './defs/claude.js';
import { codexAgentDef } from './defs/codex.js';
import { devinAgentDef } from './defs/devin.js';
import { opencodeAgentDef } from './defs/opencode.js';
import { byokOpenCodeAgentDef } from './defs/byok-opencode.js';
import { hermesAgentDef } from './defs/hermes.js';
import { traeCliAgentDef } from './defs/trae-cli.js';
import { grokBuildAgentDef } from './defs/grok-build.js';
import { kimiAgentDef } from './defs/kimi.js';
import { cursorAgentDef } from './defs/cursor-agent.js';
import { qwenAgentDef } from './defs/qwen.js';
import { qoderAgentDef } from './defs/qoder.js';
import { copilotAgentDef } from './defs/copilot.js';
import { ampAgentDef } from './defs/amp.js';
import { piAgentDef } from './defs/pi.js';
import { kiroAgentDef } from './defs/kiro.js';
import { kiloAgentDef } from './defs/kilo.js';
import { vibeAgentDef } from './defs/vibe.js';
import { deepseekAgentDef } from './defs/deepseek.js';
import { aiderAgentDef } from './defs/aider.js';
import { antigravityAgentDef } from './defs/antigravity.js';
import { codebuddyAgentDef } from './defs/codebuddy.js';
import { reasonixAgentDef } from './defs/reasonix.js';
import { mimoAgentDef } from './defs/mimo.js';
import { kimchiAgentDef } from './defs/kimchi.js';
import { readLocalAgentProfileDefs as readLocalAgentProfileDefsFromFile } from './local-profiles.js';
import type { RuntimeAgentDef } from './types.js';
const BASE_AGENT_DEFS: RuntimeAgentDef[] = [
amrAgentDef,
claudeAgentDef,
codexAgentDef,
devinAgentDef,
opencodeAgentDef,
byokOpenCodeAgentDef,
hermesAgentDef,
traeCliAgentDef,
grokBuildAgentDef,
kimiAgentDef,
cursorAgentDef,
qwenAgentDef,
qoderAgentDef,
copilotAgentDef,
ampAgentDef,
piAgentDef,
kiroAgentDef,
kiloAgentDef,
vibeAgentDef,
deepseekAgentDef,
aiderAgentDef,
antigravityAgentDef,
reasonixAgentDef,
codebuddyAgentDef,
mimoAgentDef,
kimchiAgentDef,
];
export function readLocalAgentProfileDefs(
baseDefs: RuntimeAgentDef[] = BASE_AGENT_DEFS,
): RuntimeAgentDef[] {
return readLocalAgentProfileDefsFromFile(baseDefs);
}
export const AGENT_DEFS: RuntimeAgentDef[] = [
...BASE_AGENT_DEFS,
...readLocalAgentProfileDefs(BASE_AGENT_DEFS),
];
const ids = new Set();
for (const def of AGENT_DEFS) {
if (ids.has(def.id)) {
throw new Error(`Duplicate agent definition id: ${def.id}`);
}
ids.add(def.id);
}
export function getAgentDef(id: string): RuntimeAgentDef | null {
return AGENT_DEFS.find((a) => a.id === id) || null;
}