On the server's /api/v2 (3.4.0, server dev 5d7b79c):
- The activity panel reads GET /chats/{chat}/tree beside the activity and
draws ui/js/tree.js's rows in a Subagents section, the server panel's words
and layout: nested by parent, position, phase, context %, state, model,
mode + request options, messages and the last one, open slots, the ended
ones folded and dimmed. A team's members are no longer drawn again among
the tasks. The stream's `tree` frame redraws it.
- A subagent's conversation (/subagents/{id}/transcript, read again every 3 s
while it works) and its findings open read-only in the panel; Stop asks,
then POSTs /stop. With an agent chat's device away: the kept tree with the
server's note, and its 409 sentence for the rest.
- A new agent chat's Subagents chip from /models?kind=agent&device= (each
model's `subagents`, `agent_subagents.offered` and `device_runs`); an open
agent chat's from its own `subagents`, as before.
- An approval item's `subagent` names it on the card.
- Progress keys are the spec's own ({{field}}), as the server's catalogues
have them; SERVER_PENDING is gone, every sentence is translated.
tests/ui reads the server's contract fixtures (scripts/fetch-fixtures.sh ->
tests/ui/fixtures, SOURCE says the commit): status frames, tree, tree frame,
transcript, findings, models?kind=agent, a subagent's approval; six C4 cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
113 lines
2.3 KiB
JSON
113 lines
2.3 KiB
JSON
{
|
|
"tree": {
|
|
"min": 2,
|
|
"max": 4,
|
|
"size": 3,
|
|
"open_slots": 0,
|
|
"agents": [
|
|
{
|
|
"id": "lead",
|
|
"name": "lead",
|
|
"position": "the main agent",
|
|
"parent": null,
|
|
"state": "working",
|
|
"model": "local/qwen",
|
|
"mode": "auto",
|
|
"request": [],
|
|
"manager": true,
|
|
"progress": {
|
|
"phase": "waiting_for_subagents",
|
|
"since": 1767323045000,
|
|
"running": 2
|
|
},
|
|
"findings": 0,
|
|
"messages": 1
|
|
},
|
|
{
|
|
"id": "s1",
|
|
"name": "area",
|
|
"position": "owns the API",
|
|
"parent": "lead",
|
|
"state": "working",
|
|
"model": "local/qwen",
|
|
"mode": "auto",
|
|
"request": [],
|
|
"manager": true,
|
|
"task": "Direct it.",
|
|
"progress": null,
|
|
"findings": 0,
|
|
"messages": 1
|
|
},
|
|
{
|
|
"id": "s2",
|
|
"name": "routes",
|
|
"position": "writes the routes",
|
|
"parent": "area",
|
|
"state": "working",
|
|
"model": "local/qwen",
|
|
"mode": "edit",
|
|
"request": [
|
|
"execute"
|
|
],
|
|
"manager": false,
|
|
"task": "Write the routes.",
|
|
"context": {
|
|
"used": 9100,
|
|
"window": 131072
|
|
},
|
|
"progress": {
|
|
"phase": "running_tool",
|
|
"since": 1767323045000,
|
|
"tool": "read",
|
|
"what": "src/api.py"
|
|
},
|
|
"findings": 1,
|
|
"messages": 1
|
|
}
|
|
],
|
|
"ended": [
|
|
{
|
|
"id": "s3",
|
|
"name": "scout",
|
|
"position": "maps the code",
|
|
"parent": "lead",
|
|
"state": "done",
|
|
"model": "local/qwen",
|
|
"mode": "auto",
|
|
"request": [],
|
|
"manager": false,
|
|
"task": "Map it.",
|
|
"progress": null,
|
|
"findings": 0,
|
|
"messages": 1,
|
|
"ended": 1767323045000
|
|
}
|
|
]
|
|
},
|
|
"room": [
|
|
{
|
|
"n": 1,
|
|
"from": "routes",
|
|
"to": [
|
|
"area"
|
|
],
|
|
"text": "Routes are in.",
|
|
"report": false,
|
|
"kind": "message",
|
|
"time": 1767323045000
|
|
},
|
|
{
|
|
"n": 2,
|
|
"from": "scout",
|
|
"to": [
|
|
"lead"
|
|
],
|
|
"text": "Mapped: see map.md.",
|
|
"report": true,
|
|
"kind": "report",
|
|
"time": 1767323045000
|
|
}
|
|
],
|
|
"live": true
|
|
}
|