mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-08 19:19:42 +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
65 lines
2.2 KiB
JSON
65 lines
2.2 KiB
JSON
{
|
|
"description": "Codex family: generated-image becomes a generated-image block keeping {imageId, fileName, mimeType}; the wire source (inline media provenance) and sourceImageId are web rendering concerns and are dropped by the projection.",
|
|
"expected": {
|
|
"blocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"fileName": "latency-chart.png",
|
|
"id": "msg-codex-521:0",
|
|
"imageId": "img-01J9ZD8KM4TQ",
|
|
"kind": "generated-image",
|
|
"localId": null,
|
|
"mimeType": "image/png"
|
|
}
|
|
],
|
|
"hasReadyEvent": false,
|
|
"latestUsage": null,
|
|
"visibleBlocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"fileName": "latency-chart.png",
|
|
"id": "msg-codex-521:0",
|
|
"imageId": "img-01J9ZD8KM4TQ",
|
|
"kind": "generated-image",
|
|
"localId": null,
|
|
"mimeType": "image/png"
|
|
}
|
|
]
|
|
},
|
|
"fixtureVersion": 1,
|
|
"input": {
|
|
"agentState": null,
|
|
"messages": [
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"fileName": "latency-chart.png",
|
|
"id": "aed0f1b2-5fb6-4c2d-8e9d-e2f3a4b5c521",
|
|
"imageId": "img-01J9ZD8KM4TQ",
|
|
"mimeType": "image/png",
|
|
"source": {
|
|
"flavor": "codex",
|
|
"ingress": "tool_result",
|
|
"toolCallId": "call_img_58210"
|
|
},
|
|
"sourceImageId": "ig_58210",
|
|
"type": "generated-image"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000000,
|
|
"id": "msg-codex-521",
|
|
"localId": null,
|
|
"seq": 1
|
|
}
|
|
],
|
|
"options": {
|
|
"hasMoreMessages": false
|
|
}
|
|
},
|
|
"name": "codex-generated-image"
|
|
}
|