AGENT-PLAN: Phase 1 + Phase 2 completed
This commit is contained in:
parent
6fbd6348f5
commit
c8f343f588
@ -2,27 +2,29 @@
|
|||||||
|
|
||||||
## Фаза 1: Конфиг агента (agent.json → минимум)
|
## Фаза 1: Конфиг агента (agent.json → минимум)
|
||||||
|
|
||||||
### 1.1 Разделение конфигов
|
### 1.1 Разделение конфигов ✅
|
||||||
- [ ] **agent.json** — только подключение: `token`, `tracker_url`
|
- [x] **agent.json** — только подключение: `token`, `tracker_url`, `ws_url`, `transport`, `session_id`
|
||||||
- [ ] **config.json** — внутренняя конфигурация LLM: `api_key`, `model`, `provider`, `prompt` (override)
|
- [x] **config.json** — LLM: `api_key`, `model`, `provider`
|
||||||
- [ ] Picogent `resolveConfig()` — читает оба файла, мержит
|
- [x] Picogent `loadAgentConfig()` — читает оба файла, мержит (env > config.json > agent.json)
|
||||||
- [ ] Убрать дублирующиеся поля (name, slug, capabilities) из agent.json
|
- [x] name, slug, capabilities теперь приходят из Tracker (auth.ok)
|
||||||
|
|
||||||
### 1.2 Трекер: расширить auth_ok
|
### 1.2 Трекер: расширить auth_ok ✅
|
||||||
- [ ] WS `auth_ok` возвращает полный AgentConfig: name, slug, capabilities, model, prompt, chat_listen, task_listen, max_concurrent_tasks
|
- [x] WS `auth_ok` возвращает `agent_config`: model, provider, prompt, chat_listen, task_listen, max_concurrent_tasks, capabilities
|
||||||
- [ ] Picogent мержит remote config с локальными override-ами (config.json приоритетнее)
|
- [x] AgentConfig model: добавлены `provider`, `max_concurrent_tasks`
|
||||||
|
- [x] Picogent мержит remote config с локальными override-ами
|
||||||
|
|
||||||
### 1.3 Горячее обновление конфига
|
### 1.3 Горячее обновление конфига ✅
|
||||||
- [ ] Новый WS event `config_updated` — трекер → агент при изменении через UI
|
- [x] Новый WS event `config.updated` (WSEventType.CONFIG_UPDATED)
|
||||||
- [ ] Picogent обрабатывает event, обновляет runtime config без рестарта
|
- [x] Tracker отправляет при PATCH /members/{id} с agent_config
|
||||||
|
- [x] Picogent обрабатывает event, обновляет runtime model/provider/prompt
|
||||||
|
|
||||||
### 1.4 Systemd template для мульти-агент
|
### 1.4 Systemd template для мульти-агент ✅
|
||||||
- [ ] `picogent@.service` — шаблонный unit: `ExecStart=node ... /opt/agents/%i/`
|
- [x] `picogent@.service`: `ExecStart=node dist/index.js /root/projects/team-board/agents/%i/`
|
||||||
- [ ] `systemctl start picogent@coder`, `systemctl start picogent@reviewer`
|
- [x] `systemctl start picogent@coder`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Фаза 2: Память агента ✅ РЕШЕНО
|
## Фаза 2: Память агента ✅ РЕАЛИЗОВАНО
|
||||||
|
|
||||||
### Структура (двухуровневая, per-project)
|
### Структура (двухуровневая, per-project)
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user