peppa/packages/testkit/fixtures/claude-live/pre-tool-use-ask-user-question.json
Асель 1e8d9e0327 PEP-3: hooks, statusLine and the permission dialog checked against live Claude Code 2.1.323
- permission dialog menus vary (3-4 items, "2" may be "switch to auto mode"): the late PM answer
  reads the key off the screen (permissionKey); after "No" Claude interrupts the turn without a
  Stop hook, so Peppa types PERMISSION_DENIED_NOTE
- statusLine total_*_tokens are the last request, not session totals: tokens only from transcript
- mcp__peppa allowed in run settings (connected repos have no template .claude/settings.json)
- peppa-hook: PEPPA_HOOK_CAPTURE_DIR saves raw payloads; live fixtures in testkit/fixtures/claude-live
- mock-claude follows the live contract (menu, interrupt on No, statusLine, transcript blocks, suggestions)
- peppa-dev: watchdog (runner service) on the stand, mock PEPPA_SECRET without .env
- e2e claude-live.test.ts: fixtures parsing, real peppa-hook on live payloads, terminal fallback keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:34:40 +05:00

34 lines
1015 B
JSON

{
"session_id": "e96536c6-f9ba-49d2-bf73-4d57ba125f64",
"transcript_path": "/Users/mock/.claude/projects/-Users-mock--peppa-dev-workspaces-live/e96536c6-f9ba-49d2-bf73-4d57ba125f64.jsonl",
"cwd": "/Users/mock/.peppa-dev/workspaces/live",
"scratchpad_dir": "/private/tmp/claude-501/-Users-mock--peppa-dev-workspaces-live/e96536c6-f9ba-49d2-bf73-4d57ba125f64/scratchpad",
"prompt_id": "2566d5ad-f4dc-489b-8aa6-8ff1730a023c",
"permission_mode": "default",
"effort": {
"level": "medium"
},
"hook_event_name": "PreToolUse",
"tool_name": "AskUserQuestion",
"tool_input": {
"questions": [
{
"question": "Какой язык?",
"header": "Язык",
"options": [
{
"label": "Go",
"description": "Язык Go"
},
{
"label": "Rust",
"description": "Язык Rust"
}
],
"multiSelect": false
}
]
},
"tool_use_id": "toolu_01TCVWSwtMREECGQ6o93NCnV"
}