feat(protocol): wire contract, canonical reducer and golden fixtures
- v1 envelope across browser/daemon/plugin - SessionState model + reducer rules (pi events + pi2:* derived events) - fixtures for basic turn, queue/todo/attention and abort/exit - 9 conformance tests pinning the reducer
This commit is contained in:
commit
9d817f35b7
19 files changed
+2922
No files matched your search
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"sessionId": "error-abort-compaction",
|
||||
"workspaceId": "ws-fixture",
|
||||
"cwd": "/repo",
|
||||
"name": null,
|
||||
"status": "exited",
|
||||
"flags": {
|
||||
"attention": false,
|
||||
"done": false,
|
||||
"error": true
|
||||
},
|
||||
"model": {
|
||||
"provider": "anthropic",
|
||||
"id": "claude-sonnet-4-5"
|
||||
},
|
||||
"thinking": "off",
|
||||
"usage": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"cacheRead": 0,
|
||||
"cacheWrite": 0,
|
||||
"cost": 0
|
||||
},
|
||||
"contextUsage": null,
|
||||
"queue": [],
|
||||
"todos": [],
|
||||
"tasks": [],
|
||||
"batches": [],
|
||||
"subagents": [],
|
||||
"attention": [],
|
||||
"entries": [
|
||||
{
|
||||
"id": "m1",
|
||||
"role": "assistant",
|
||||
"ts": 3002,
|
||||
"blocks": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "partial answer"
|
||||
},
|
||||
{
|
||||
"type": "error",
|
||||
"text": "Aborted by user"
|
||||
},
|
||||
{
|
||||
"type": "error",
|
||||
"text": "Aborted by user"
|
||||
}
|
||||
],
|
||||
"done": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user