mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-12 20:07:31 +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
83 lines
3.1 KiB
JSON
83 lines
3.1 KiB
JSON
{
|
|
"description": "agy flavor: agy_tool_action RUN_COMMAND with a paired run_command invocation maps to a canonical Bash tool-call (input.CommandLine/Cwd translated to command/cwd, bookkeeping args dropped) already COMPLETED (paired tool-result), keyed by data.toolUseId with the Created At/Completed At preamble stripped from the result.",
|
|
"expected": {
|
|
"blocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"id": "conv-7c1b:12",
|
|
"kind": "tool-call",
|
|
"localId": null,
|
|
"tool": {
|
|
"id": "conv-7c1b:12",
|
|
"input": {
|
|
"command": "./gradlew --version",
|
|
"cwd": "/repo/android"
|
|
},
|
|
"name": "Bash",
|
|
"result": "The command completed successfully.\nOutput:\nGradle 8.7",
|
|
"state": "completed"
|
|
}
|
|
}
|
|
],
|
|
"hasReadyEvent": false,
|
|
"latestUsage": null,
|
|
"visibleBlocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"id": "conv-7c1b:12",
|
|
"kind": "tool-call",
|
|
"localId": null,
|
|
"tool": {
|
|
"id": "conv-7c1b:12",
|
|
"input": {
|
|
"command": "./gradlew --version",
|
|
"cwd": "/repo/android"
|
|
},
|
|
"name": "Bash",
|
|
"result": "The command completed successfully.\nOutput:\nGradle 8.7",
|
|
"state": "completed"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"fixtureVersion": 1,
|
|
"input": {
|
|
"agentState": null,
|
|
"messages": [
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"content": "Created At: 2025-08-12T11:20:04Z\nCompleted At: 2025-08-12T11:20:06Z\nThe command completed successfully.\nOutput:\nGradle 8.7",
|
|
"input": {
|
|
"Blocking": true,
|
|
"CommandLine": "./gradlew --version",
|
|
"Cwd": "/repo/android",
|
|
"WaitMsBeforeAsync": 5000,
|
|
"toolSummary": "Check Gradle version"
|
|
},
|
|
"name": "RUN_COMMAND",
|
|
"toolName": "run_command",
|
|
"toolUseId": "conv-7c1b:12",
|
|
"type": "agy_tool_action"
|
|
},
|
|
"type": "output"
|
|
},
|
|
"meta": {
|
|
"sentFrom": "cli"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000000,
|
|
"id": "msg-agy-731",
|
|
"localId": null,
|
|
"seq": 1
|
|
}
|
|
],
|
|
"options": {
|
|
"hasMoreMessages": false
|
|
}
|
|
},
|
|
"name": "agy-tool-action-run-command"
|
|
}
|