Some checks failed
build-packages / resolve bundled mosh-client (push) Has been cancelled
build-packages / resolve bundled et-client (push) Has been cancelled
build-packages / build-macos (push) Has been cancelled
build-packages / build-windows (push) Has been cancelled
build-packages / build-linux-x64 (push) Has been cancelled
build-packages / build-linux-arm64 (push) Has been cancelled
build-packages / release (push) Has been cancelled
build-packages / update Nix release metadata (push) Has been cancelled
build-packages / bump homebrew tap (push) Has been cancelled
test / lint-and-test (push) Has been cancelled
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
build-et-binaries / build-linux-x64 (push) Has been cancelled
build-et-binaries / build-linux-arm64 (push) Has been cancelled
build-et-binaries / build-macos-universal (push) Has been cancelled
build-et-binaries / build-windows-x64 (push) Has been cancelled
build-et-binaries / release (push) Has been cancelled
113 lines
2.4 KiB
TypeScript
113 lines
2.4 KiB
TypeScript
import type { AgentIconKey } from './agentIcon';
|
|
|
|
export type CodingCliProviderId =
|
|
| 'claude'
|
|
| 'codex'
|
|
| 'opencode'
|
|
| 'gemini'
|
|
| 'kimi'
|
|
| 'droid'
|
|
| 'copilot'
|
|
| 'cursor'
|
|
| 'codebuddy'
|
|
| 'grok';
|
|
|
|
export type CodingCliProvider = {
|
|
id: CodingCliProviderId;
|
|
label: string;
|
|
/** Primary CLI executable basename, e.g. `claude` or `codex`. */
|
|
command: string;
|
|
/** Alternate executable names that should resolve to this provider. */
|
|
aliases?: string[];
|
|
/** Substrings commonly present in OSC window titles for this CLI. */
|
|
titleHints?: string[];
|
|
iconKey: AgentIconKey;
|
|
};
|
|
|
|
/**
|
|
* Built-in coding CLI providers shown on terminal session tabs.
|
|
* Command names align with common agent launch binaries.
|
|
*/
|
|
export const CODING_CLI_PROVIDERS: readonly CodingCliProvider[] = [
|
|
{
|
|
id: 'claude',
|
|
label: 'Claude Code',
|
|
command: 'claude',
|
|
titleHints: ['claude code', 'claude'],
|
|
iconKey: 'claude',
|
|
},
|
|
{
|
|
id: 'codex',
|
|
label: 'Codex CLI',
|
|
command: 'codex',
|
|
titleHints: ['codex', 'chatgpt'],
|
|
iconKey: 'codex',
|
|
},
|
|
{
|
|
id: 'opencode',
|
|
label: 'OpenCode',
|
|
command: 'opencode',
|
|
titleHints: ['opencode'],
|
|
iconKey: 'opencode',
|
|
},
|
|
{
|
|
id: 'gemini',
|
|
label: 'Gemini CLI',
|
|
command: 'gemini',
|
|
titleHints: ['gemini'],
|
|
iconKey: 'gemini',
|
|
},
|
|
{
|
|
id: 'kimi',
|
|
label: 'Kimi CLI',
|
|
command: 'kimi',
|
|
aliases: ['moonshot'],
|
|
titleHints: ['kimi', 'moonshot'],
|
|
iconKey: 'kimi',
|
|
},
|
|
{
|
|
id: 'droid',
|
|
label: 'Droid',
|
|
command: 'droid',
|
|
aliases: ['factory'],
|
|
titleHints: ['droid', 'factory droid', 'factory ai'],
|
|
iconKey: 'droid',
|
|
},
|
|
{
|
|
id: 'copilot',
|
|
label: 'GitHub Copilot CLI',
|
|
command: 'copilot',
|
|
titleHints: ['copilot', 'github copilot'],
|
|
iconKey: 'copilot',
|
|
},
|
|
{
|
|
id: 'cursor',
|
|
label: 'Cursor Agent',
|
|
command: 'cursor',
|
|
titleHints: ['cursor'],
|
|
iconKey: 'cursor',
|
|
},
|
|
{
|
|
id: 'codebuddy',
|
|
label: 'CodeBuddy',
|
|
command: 'codebuddy',
|
|
titleHints: ['codebuddy'],
|
|
iconKey: 'codebuddy',
|
|
},
|
|
{
|
|
id: 'grok',
|
|
label: 'Grok Build',
|
|
command: 'grok',
|
|
titleHints: ['grok build', 'grok'],
|
|
iconKey: 'grok',
|
|
},
|
|
] as const;
|
|
|
|
const PROVIDER_BY_ID = new Map(
|
|
CODING_CLI_PROVIDERS.map((provider) => [provider.id, provider] as const),
|
|
);
|
|
|
|
export function getCodingCliProvider(id: CodingCliProviderId): CodingCliProvider | undefined {
|
|
return PROVIDER_BY_ID.get(id);
|
|
}
|