返回 CodeWhale
after_shell_receipt.case.json
根目录 / crates / tui / tests / fixtures / conformance / hooks / after_shell_receipt.case.json
1 {
2 "description": "tool_call_after for a shell call that reported a schema-1 execution receipt: the observer receives the versioned JSON document on stdin and the receipt in its environment.",
3 "event": "tool_call_after",
4 "tool": {
5 "name": "exec_shell",
6 "call_id": "call_hook_after",
7 "outcome": {
8 "ok": {
9 "content": "hello\n",
10 "success": true,
11 "metadata": {
12 "exit_code": 0,
13 "status": "Completed",
14 "execution_receipt": {
15 "schema_version": 1,
16 "scope": "local",
17 "state": "completed",
18 "command": "echo hello",
19 "cwd": "/conformance/workspace",
20 "exit_code": 0,
21 "output_kind": "separate",
22 "stdout": "hello\n",
23 "stderr": "",
24 "stdout_truncated": false,
25 "stderr_truncated": false
26 }
27 }
28 }
29 }
30 },
31 "hooks": [
32 {
33 "event": "tool_call_after",
34 "name": "observer",
35 "command": "{{capture}} observer; echo observed"
36 }
37 ]
38 }
39
39 lines JSON