step-1: add v3 ws frame protocol (schemas.py)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 21:21:03 +01:00
parent ac71d99f9a
commit b61ded8458
4 changed files with 426 additions and 0 deletions

View File

@@ -45,6 +45,14 @@
pytest tests/test_schemas_v3.py
```
**Status**:
- [x] Step 1 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-1: add v3 ws frame protocol (schemas.py)"
```
---
## Step 2 — Agent Streaming + Tool Result Capture (agent_registry.py, agents/)
@@ -65,6 +73,14 @@ pytest tests/test_schemas_v3.py
pytest tests/test_agent_streaming.py
```
**Status**:
- [ ] Step 2 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-2: add agent streaming and tool result capture (agent_registry.py)"
```
---
## Step 3 — Router Refactor (orchestrator.py)
@@ -90,6 +106,14 @@ pytest tests/test_agent_streaming.py
pytest tests/test_orchestrator_v3.py
```
**Status**:
- [ ] Step 3 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-3: add router refactor with streaming support (orchestrator.py)"
```
---
## Step 4 — Output Formatting Layer (NEW: output_formatter.py)
@@ -175,6 +199,14 @@ Supported entity types (matching Electron component types):
pytest tests/test_output_formatter.py
```
**Status**:
- [ ] Step 4 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-4: add output formatting layer (output_formatter.py)"
```
---
## Step 5 — Unified WS Handler (device_ws.py, chat.py, main.py)
@@ -207,6 +239,14 @@ pytest tests/test_output_formatter.py
pytest tests/test_ws_unified.py
```
**Status**:
- [ ] Step 5 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-5: unify ws handler (device_ws.py, chat.py)"
```
---
## Step 6 — Memory Models + Migration (models.py, alembic)
@@ -231,6 +271,14 @@ alembic upgrade head && alembic downgrade -1 && alembic upgrade head
pytest tests/test_memory_models.py
```
**Status**:
- [ ] Step 6 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-6: add memory models and migration (models.py, alembic)"
```
---
## Step 7 — Memory Middleware (NEW: memory_middleware.py)
@@ -266,6 +314,14 @@ pytest tests/test_memory_models.py
pytest tests/test_memory_middleware.py
```
**Status**:
- [ ] Step 7 complete
**Commit**: After tests pass, commit with:
```
git commit -m "step-7: add memory middleware (memory_middleware.py, device_ws.py)"
```
---
## Summary