This commit is contained in:
2026-03-01 12:24:11 -08:00
parent 628e688ab9
commit 63656d339d
33 changed files with 1018 additions and 539 deletions
+7 -15
View File
@@ -18,7 +18,7 @@ export interface AgentDef {
name: AgentType;
displayName: string;
command: string;
models: Array<{ value: string; label: string }>;
defaultModel: string;
}
export const AGENTS: Record<AgentType, AgentDef> = {
@@ -26,23 +26,13 @@ export const AGENTS: Record<AgentType, AgentDef> = {
name: 'claude-code',
displayName: 'Claude Code',
command: 'claude',
models: [
{ value: 'claude-opus-4-6', label: 'Claude Opus 4.6 (Recommended)' },
{ value: 'claude-sonnet-4-6', label: 'Claude Sonnet 4.6 (faster)' },
],
defaultModel: 'default',
},
'copilot-cli': {
name: 'copilot-cli',
displayName: 'GitHub Copilot CLI',
command: 'copilot',
models: [
{ value: 'claude-sonnet-4', label: 'Claude Sonnet 4 (Default)' },
{ value: 'claude-sonnet-4.5', label: 'Claude Sonnet 4.5' },
{ value: 'claude-opus-4.5', label: 'Claude Opus 4.5' },
{ value: 'gpt-5', label: 'GPT-5' },
{ value: 'gpt-5-mini', label: 'GPT-5 Mini' },
{ value: 'gemini-3-pro-preview', label: 'Gemini 3 Pro' },
],
defaultModel: 'claude-sonnet-4',
},
};
@@ -69,7 +59,8 @@ export async function invokeLLM(opts: InvokeLLMOptions): Promise<string> {
'--print',
'--dangerously-skip-permissions',
];
if (model) {
// Only add --model if not using default
if (model && model !== 'default') {
args.push('--model', model);
}
@@ -84,7 +75,8 @@ export async function invokeLLM(opts: InvokeLLMOptions): Promise<string> {
} else {
// Copilot CLI: pipe prompt via stdin string
const args: string[] = [];
if (model) {
// Only add --model if not using default
if (model && model !== 'default') {
args.push('--model', model);
}
args.push('--allow-all-tools', '-s');