| 1 | export type ModelId = 'glm' | 'claude' | 'codex' | 'ollama'; |
| 2 | export type OllamaModel = 'qwen2.5-coder:7b' | 'deepseek-coder-v2:16b' | 'mistral-nemo:12b' | string; |
| 3 | |
| 4 | export interface DelegateParams { |
| 5 | model: ModelId; |
| 6 | ollamaModel?: OllamaModel; |
| 7 | task: string; |
| 8 | context?: string; |
| 9 | cwd?: string; |
| 10 | timeoutMs?: number; |
| 11 | } |
| 12 | |
| 13 | export interface DelegateResult { |
| 14 | ok: boolean; |
| 15 | output: string; |
| 16 | artifacts: string[]; |
| 17 | error?: string; |
| 18 | durationMs: number; |
| 19 | } |