feat: v2 plan — remove autogen/crewai, add tasks and wiki
- Remove autogen and crewai backends (focus on custom only) - Simplify CLI: remove --backend flag - Remove optional deps from pyproject.toml - Add .tasks/ with 7 tasks for Phase 1 refactor - Add .wiki/concepts/meeting-room-v2.md with architecture plan - Update .wiki/index.md and .tasks/STATUS.md Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
25
.tasks/v2-p1-api-client.md
Normal file
25
.tasks/v2-p1-api-client.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# v2-p1-api-client
|
||||
|
||||
## Goal
|
||||
Рефактор api_client.py: класс APIClient вместо модульных глобалов, chat_stream() возвращает текст вместо печати, обратная совместимость через обёртки.
|
||||
|
||||
## Key files
|
||||
- `meeting_room/api_client.py` — изменить
|
||||
- `tests/test_api_client.py` — создать
|
||||
|
||||
## Decisions log
|
||||
- 2026-05-03: Обратная совместимость через module-level функции-делегаты
|
||||
|
||||
## Open questions
|
||||
- [ ]
|
||||
|
||||
## Completed steps
|
||||
- [ ] Создать класс APIClient с __init__(providers: dict[str, ProviderConfig])
|
||||
- [ ] Перенести chat() и chat_stream() как instance methods
|
||||
- [ ] chat_stream() возвращает str, не печатает
|
||||
- [ ] Добавить module-level init_providers(), chat(), chat_stream() как обёртки над default instance
|
||||
- [ ] Написать тесты с mocked httpx
|
||||
- [ ] Запустить тесты
|
||||
|
||||
## Notes
|
||||
Критическое изменение: chat_stream() должен возвращать текст, а не печатать в stdout. Печать — ответственность вызывающего (CLI или WebSocket).
|
||||
Reference in New Issue
Block a user