mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-28 05:57:13 +00:00
34 new golden chat fixtures generated from the web pipeline, plus a machine-generated modes catalog: - Claude output: away_summary/microcompact_boundary/compact_boundary system subtypes, <task-notification> summary extraction, multi-block assistant message with an array-of-parts (text+image) tool_result - AgentEvent union completed: switch/message/error/title-changed(+dedupe)/ limit-warning(pipe text)/api-error folding/turn-duration/compact-summary/ abort-restore/unknown-type passthrough; thread-goal updated+cleared (silent) - Permission lifecycle via agentState.completedRequests: approved_for_session (mode+allowTools), denied with reason, canceled, AskUserQuestion flat answers, request_user_input nested answers (all with explicit createdAt) - Sidechain: Task tool_use with parentToolUseId-grouped subagent children - codex family: error, context_compacted, generated-image, review JSON, thread-goal messages, CodexBash call/result pair, exploration tool group - cli-output: cli-origin command block + stdout merge - agy flavor (output envelope): agy_message, agy_tool_action run_command mapping; cursor ACP plan snapshot (copilot skipped: identical codex shapes) - generator now also emits shared/fixtures/catalogs/modes.json from shared/src/modes.ts (per-flavor permission modes with labels/tones); self-conformance test covers it; README documents the catalogs contract
85 lines
2.8 KiB
JSON
85 lines
2.8 KiB
JSON
{
|
|
"description": "Claude output family: system subtype away_summary (auto recap written by the local TUI on blur/focus) becomes an agent-event block with type recap; text comes from data.content.",
|
|
"expected": {
|
|
"blocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"id": "msg-user-201",
|
|
"kind": "user-text",
|
|
"localId": null,
|
|
"text": "Continue where we left off."
|
|
},
|
|
{
|
|
"createdAt": 1755000001500,
|
|
"event": {
|
|
"text": "Was refactoring the SSE reconnect loop; next step is wiring the jittered backoff into useSSE.",
|
|
"type": "recap"
|
|
},
|
|
"id": "msg-agent-202",
|
|
"kind": "agent-event"
|
|
}
|
|
],
|
|
"hasReadyEvent": false,
|
|
"latestUsage": null,
|
|
"visibleBlocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"id": "msg-user-201",
|
|
"kind": "user-text",
|
|
"localId": null,
|
|
"text": "Continue where we left off."
|
|
},
|
|
{
|
|
"createdAt": 1755000001500,
|
|
"event": {
|
|
"text": "Was refactoring the SSE reconnect loop; next step is wiring the jittered backoff into useSSE.",
|
|
"type": "recap"
|
|
},
|
|
"id": "msg-agent-202",
|
|
"kind": "agent-event"
|
|
}
|
|
]
|
|
},
|
|
"fixtureVersion": 1,
|
|
"input": {
|
|
"agentState": null,
|
|
"messages": [
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"text": "Continue where we left off.",
|
|
"type": "text"
|
|
},
|
|
"role": "user"
|
|
},
|
|
"createdAt": 1755000000000,
|
|
"id": "msg-user-201",
|
|
"localId": null,
|
|
"seq": 1
|
|
},
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"content": "Was refactoring the SSE reconnect loop; next step is wiring the jittered backoff into useSSE.",
|
|
"subtype": "away_summary",
|
|
"type": "system",
|
|
"uuid": "a2b3c4d5-1e2f-4a3b-8c4d-e5f6a7b8c202"
|
|
},
|
|
"type": "output"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000001500,
|
|
"id": "msg-agent-202",
|
|
"localId": null,
|
|
"seq": 2
|
|
}
|
|
],
|
|
"options": {
|
|
"hasMoreMessages": false
|
|
}
|
|
},
|
|
"name": "claude-system-away-summary"
|
|
}
|