peppa/openspec/changes/pep-264-model-per-provider/tasks.md

15 lines
1013 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 1. Ядро
- [x] 1.1 Поля `claudeModel`/`codexModel`/`opencodeModel` в `AgentSettings`, `AGENT_FIELDS`, `DEFAULT_AGENT_SETTINGS`
- [x] 1.2 `modelFits` по имени модели (узнаваемое — только своему провайдеру), `launchModelFor` с моделью провайдера и проверкой `fallbackModel`
- [x] 1.3 `fitLaunchModel(provider, model)` — чужая модель отбрасывается
## 2. Раннер
- [x] 2.1 `launch`: последняя проверка модели, событие `model_dropped` + предупреждение в лог
## 3. Настройки
- [x] 3.1 Веб (`AgentModel.tsx`), MCP `update_project_settings`, CLI — новые поля
## 4. Тесты
- [x] 4.1 Юнит-тест на каждую пару провайдер–модель и путь «задача с opus на Codex»
- [x] 4.2 Тест раннера: Codex с `opus` стартует без `--model`, событие `model_dropped`