Add UI delivery presenters and event DTOs
This commit is contained in:
@@ -45,11 +45,11 @@
|
||||
## Package E: Delivery
|
||||
|
||||
- [x] typed worker registration schema
|
||||
- [ ] task event DTO normalization
|
||||
- [x] task event DTO normalization
|
||||
- [ ] confirmation cards
|
||||
- [ ] progress cards
|
||||
- [x] progress cards
|
||||
- [ ] artifact cards
|
||||
- [ ] error cards
|
||||
- [x] error cards
|
||||
|
||||
## Package F: Validation
|
||||
|
||||
|
||||
@@ -26,7 +26,14 @@
|
||||
"task_id": "task_1",
|
||||
"response_type": "answer | task_started | confirmation_required | error",
|
||||
"message": "string",
|
||||
"cards": []
|
||||
"cards": [
|
||||
{
|
||||
"type": "plan_card"
|
||||
},
|
||||
{
|
||||
"type": "progress_card"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -53,7 +60,8 @@
|
||||
"progress": {
|
||||
"completed": 2,
|
||||
"total": 5
|
||||
}
|
||||
},
|
||||
"cards": []
|
||||
}
|
||||
```
|
||||
|
||||
@@ -66,9 +74,18 @@ WebSocket может быть добавлен как secondary adapter, но co
|
||||
```json
|
||||
{
|
||||
"event": "node_started",
|
||||
"task_id": "task_1",
|
||||
"node_id": "node_3",
|
||||
"timestamp": "..."
|
||||
"data": {
|
||||
"event_id": "evt_1",
|
||||
"event_type": "node_started",
|
||||
"task_id": "task_1",
|
||||
"node_id": "node_3",
|
||||
"timestamp": "...",
|
||||
"payload": {},
|
||||
"card": {
|
||||
"type": "progress_card_ref",
|
||||
"task_id": "task_1"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -309,6 +309,20 @@ syntax_check: success
|
||||
}
|
||||
```
|
||||
|
||||
## Backend Status
|
||||
|
||||
Сейчас backend уже формирует:
|
||||
|
||||
- `plan_card`
|
||||
- `progress_card`
|
||||
- `error_card`
|
||||
- normalized task event DTO with optional card references
|
||||
|
||||
Следующие карточки остаются следующими шагами:
|
||||
|
||||
- `confirmation_card`
|
||||
- `artifact_card`
|
||||
|
||||
## Принцип
|
||||
|
||||
Пользователь должен всегда понимать:
|
||||
|
||||
Reference in New Issue
Block a user