peppa/packages/testkit/fixtures/claude-live/statusline.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

75 lines
2.0 KiB
JSON

{
"session_id": "a8a23fed-636e-4685-963c-56dd326f5821",
"transcript_path": "/Users/mock/.claude/projects/-Users-mock--peppa-dev-workspaces-live/a8a23fed-636e-4685-963c-56dd326f5821.jsonl",
"cwd": "/Users/mock/.peppa-dev/workspaces/live",
"scratchpad_dir": "/private/tmp/claude-501/-Users-mock--peppa-dev-workspaces-live/a8a23fed-636e-4685-963c-56dd326f5821/scratchpad",
"prompt_id": "f4a78a56-3378-45be-ac8a-75eebfc321bd",
"effort": {
"level": "medium"
},
"model": {
"id": "claude-haiku-5-5",
"display_name": "Haiku 5.5"
},
"workspace": {
"current_dir": "/Users/mock/.peppa-dev/workspaces/live",
"project_dir": "/Users/mock/.peppa-dev/workspaces/live",
"added_dirs": []
},
"version": "2.1.323",
"output_style": {
"name": "default"
},
"cost": {
"total_cost_usd": 0.00725025,
"total_duration_ms": 111292,
"total_api_duration_ms": 12591,
"total_lines_added": 0,
"total_lines_removed": 0
},
"context_window": {
"total_input_tokens": 51302,
"total_output_tokens": 2,
"context_window_size": 1000000,
"current_usage": {
"input_tokens": 2,
"output_tokens": 2,
"cache_creation_input_tokens": 390,
"cache_read_input_tokens": 50910
},
"used_percentage": 5,
"remaining_percentage": 95
},
"exceeds_200k_tokens": false,
"prompt_cache": {
"warm": true,
"caching_observed": true,
"ttl": "1h",
"expires_at": 1794644343,
"requests": 5,
"misses": 0,
"expected_rebuilds": 0,
"hit_ratio": 0.9223495643259867,
"cache_write_tokens": 18927,
"miss_recache_tokens": 0,
"last_miss_at": null,
"last_miss_cause": null,
"miss_causes": {},
"recache_tokens_if_cold": 50912
},
"fast_mode": false,
"thinking": {
"enabled": true
},
"rate_limits": {
"five_hour": {
"used_percentage": 4,
"resets_at": 1794648000
},
"seven_day": {
"used_percentage": 14,
"resets_at": 1795107600
}
}
}