8265fc7aa1
Resolve merge conflicts in adapter index, gemini-cli adapter, and rebuilt CJS artifacts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
870 B
TypeScript
22 lines
870 B
TypeScript
import type { PlatformAdapter } from '../types.js';
|
|
import { claudeCodeAdapter } from './claude-code.js';
|
|
import { cursorAdapter } from './cursor.js';
|
|
import { geminiCliAdapter } from './gemini-cli.js';
|
|
import { rawAdapter } from './raw.js';
|
|
import { windsurfAdapter } from './windsurf.js';
|
|
|
|
export function getPlatformAdapter(platform: string): PlatformAdapter {
|
|
switch (platform) {
|
|
case 'claude-code': return claudeCodeAdapter;
|
|
case 'cursor': return cursorAdapter;
|
|
case 'gemini':
|
|
case 'gemini-cli': return geminiCliAdapter;
|
|
case 'windsurf': return windsurfAdapter;
|
|
case 'raw': return rawAdapter;
|
|
// Codex CLI and other compatible platforms use the raw adapter (accepts both camelCase and snake_case fields)
|
|
default: return rawAdapter;
|
|
}
|
|
}
|
|
|
|
export { claudeCodeAdapter, cursorAdapter, geminiCliAdapter, rawAdapter, windsurfAdapter };
|