{"type": "user", "message": {"role": "user", "content": "Build a blog app with Flask"}, "timestamp": "2026-02-04T10:00:00.000Z", "uuid": "user-msg-001", "parentUuid": null, "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "thinkingMetadata": {"maxThinkingTokens": 31999}}
{"type": "assistant", "message": {"role": "assistant", "model": "claude-sonnet-4-5-20250929", "content": [{"type": "thinking", "thinking": "I need to create a Flask blog app. Let me start by setting up the project structure.", "signature": "EtACCkYICxgC..."}, {"type": "text", "text": "I'll create a Flask blog application for you. Let me start by setting up the project structure."}, {"type": "tool_use", "id": "tool-001", "name": "Write", "input": {"file_path": "/app/app.py", "content": "from flask import Flask\napp = Flask(__name__)"}}], "usage": {"input_tokens": 1500, "output_tokens": 200, "cache_read_input_tokens": 1000, "cache_creation_input_tokens": 500, "service_tier": "standard"}}, "timestamp": "2026-02-04T10:00:05.000Z", "uuid": "asst-msg-001", "parentUuid": "user-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "requestId": "req_001"}
{"type": "user", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "tool-001", "content": "File written successfully"}]}, "timestamp": "2026-02-04T10:00:06.000Z", "uuid": "user-msg-002", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "toolUseResult": {"stdout": "", "stderr": "", "interrupted": false, "durationMs": 50}}
{"type": "file-history-snapshot", "timestamp": "2026-02-04T10:00:07.000Z", "uuid": "snapshot-001", "sessionId": "test-session-001", "files": [{"path": "/app/app.py", "content": "from flask import Flask\napp = Flask(__name__)", "hash": "abc123"}]}
{"type": "progress", "timestamp": "2026-02-04T10:00:08.000Z", "uuid": "progress-001", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "data": {"type": "hook_progress", "hookEvent": "PostToolUse", "hookName": "PostToolUse:Write", "command": "callback"}, "parentToolUseID": "tool-001", "toolUseID": "tool-001"}
{"type": "progress", "timestamp": "2026-02-04T10:00:09.000Z", "uuid": "progress-002", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "data": {"type": "bash_progress", "stdout": "Installing dependencies...", "stderr": ""}, "parentToolUseID": "tool-002", "toolUseID": "tool-002"}
{"type": "system", "timestamp": "2026-02-04T10:00:10.000Z", "uuid": "system-001", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "subtype": "stop_hook_summary", "hookCount": 1, "hookInfos": [{"command": "/path/to/hook stop"}], "hookErrors": [], "preventedContinuation": false, "stopReason": "", "hasOutput": false, "level": "suggestion", "toolUseID": "tool-001"}
{"type": "system", "timestamp": "2026-02-04T10:00:11.000Z", "uuid": "system-002", "parentUuid": "system-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "subtype": "turn_duration", "durationMs": 5000, "isMeta": false}
{"type": "system", "timestamp": "2026-02-04T10:00:12.000Z", "uuid": "system-003", "parentUuid": null, "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "subtype": "local_command", "command": "git status", "output": "On branch main"}
{"type": "queue-operation", "timestamp": "2026-02-04T10:00:13.000Z", "sessionId": "test-session-001", "operation": "enqueue", "content": "<task-notification>\n<task-id>task-001</task-id>\n<output-file>/tmp/tasks/task-001.output</output-file>\n<status>running</status>\n<summary>Running Flask development server</summary>\n</task-notification>"}
{"type": "queue-operation", "timestamp": "2026-02-04T10:00:14.000Z", "sessionId": "test-session-001", "operation": "enqueue", "content": "<task-notification>\n<task-id>task-002</task-id>\n<output-file>/tmp/tasks/task-002.output</output-file>\n<status>failed</status>\n<summary>Background task failed with exit code 1</summary>\n</task-notification>"}
{"type": "result", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "tool-002", "content": "Command executed successfully", "is_error": false}]}, "timestamp": "2026-02-04T10:00:15.000Z", "uuid": "result-001", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external"}
{"type": "result", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "tool-003", "content": "Error: File not found", "is_error": true}]}, "timestamp": "2026-02-04T10:00:16.000Z", "uuid": "result-002", "parentUuid": "asst-msg-001", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external"}
{"type": "summary", "timestamp": "2026-02-04T10:00:20.000Z", "uuid": "summary-001", "sessionId": "test-session-001", "summary": "User requested a Flask blog app. Created basic app structure with routes and templates.", "leafUuid": "asst-msg-002", "isMeta": true}
{"type": "assistant", "message": {"role": "assistant", "model": "claude-sonnet-4-5-20250929", "content": [{"type": "text", "text": "I've created the Flask app. Now let me add the routes."}], "usage": {"input_tokens": 500, "output_tokens": 50, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0, "server_tool_use": {"web_search_requests": 0, "web_fetch_requests": 0}}}, "timestamp": "2026-02-04T10:00:25.000Z", "uuid": "asst-msg-002", "parentUuid": "user-msg-002", "sessionId": "test-session-001", "cwd": "/Users/test/project", "version": "2.1.31", "gitBranch": "main", "slug": "test-slug-001", "isSidechain": false, "userType": "external", "requestId": "req_002"}
