Drop both retired providers from BooCoder's provider layer: acp-spawn argv cases, provider-manifest mode blocks + manifest keys, provider-commands maps, the provider-snapshot cursor model-CLI branch (+ orphaned exec/promisify imports), the agent-probe copilot ACP-detect branch, and the now-dead cursor-models module + its test. The PROVIDERS registry array already lacked both. Built-ins unchanged: claude, opencode, goose, qwen, native boocode. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
398 B
TypeScript
19 lines
398 B
TypeScript
/**
|
|
* Resolve ACP spawn argv per provider (host-probe verified 2026-05-25).
|
|
*/
|
|
export function resolveAcpSpawnArgs(agent: string): string[] | null {
|
|
switch (agent) {
|
|
case 'opencode':
|
|
case 'goose':
|
|
return ['acp'];
|
|
case 'qwen':
|
|
return ['--acp'];
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export function resolveAcpProbeBinaries(agent: string): string[] {
|
|
return [agent];
|
|
}
|