返回 CodeWhale
before_allow_rewrite_context.golden.json
根目录 / crates / tui / tests / fixtures / conformance / hooks / before_allow_rewrite_context.golden.json
1 {
2 "hooks": [
3 {
4 "env": {
5 "CODEWHALE_SESSION_ID": "<HOOK_SESSION>",
6 "CODEWHALE_TOOL_CALL_ID": "call_hook_rewrite",
7 "DEEPSEEK_MODE": "Agent",
8 "DEEPSEEK_MODEL": "deepseek-v4-pro",
9 "DEEPSEEK_SESSION_ID": "<HOOK_SESSION>",
10 "DEEPSEEK_TOOL_ARGS": "{\"command\":\"cargo test\"}",
11 "DEEPSEEK_TOOL_CALL_ID": "call_hook_rewrite",
12 "DEEPSEEK_TOOL_NAME": "Bash",
13 "DEEPSEEK_WORKSPACE": "<WORKSPACE>"
14 },
15 "name": "rewrite",
16 "ran": true,
17 "stdin": ""
18 },
19 {
20 "env": {
21 "CODEWHALE_SESSION_ID": "<HOOK_SESSION>",
22 "CODEWHALE_TOOL_CALL_ID": "call_hook_rewrite",
23 "DEEPSEEK_MODE": "Agent",
24 "DEEPSEEK_MODEL": "deepseek-v4-pro",
25 "DEEPSEEK_SESSION_ID": "<HOOK_SESSION>",
26 "DEEPSEEK_TOOL_ARGS": "{\"command\":\"cargo test\"}",
27 "DEEPSEEK_TOOL_CALL_ID": "call_hook_rewrite",
28 "DEEPSEEK_TOOL_NAME": "Bash",
29 "DEEPSEEK_WORKSPACE": "<WORKSPACE>"
30 },
31 "name": "ask",
32 "ran": true,
33 "stdin": ""
34 }
35 ],
36 "outcome": {
37 "admit": {
38 "additional_context": "lockfile enforced\nCI is the gate",
39 "requires_approval": true,
40 "updated_input": {
41 "command": "cargo test --locked"
42 }
43 }
44 }
45 }
46
46 lines JSON