| Sean McCullough | 618bfb2 | 2025-06-25 20:52:30 +0000 | [diff] [blame] | 1 | /** |
| 2 | * Shared fake container status data for demos |
| 3 | */ |
| 4 | |
| 5 | import { State, CumulativeUsage } from "../../../types"; |
| 6 | |
| 7 | export const sampleUsage: CumulativeUsage = { |
| 8 | start_time: "2024-01-15T10:00:00Z", |
| 9 | messages: 1337, |
| 10 | input_tokens: 25432, |
| 11 | output_tokens: 18765, |
| 12 | cache_read_input_tokens: 8234, |
| 13 | cache_creation_input_tokens: 12354, |
| 14 | total_cost_usd: 2.03, |
| 15 | tool_uses: { |
| 16 | bash: 45, |
| 17 | patch: 23, |
| 18 | think: 12, |
| 19 | "multiple-choice": 8, |
| 20 | keyword_search: 6, |
| 21 | }, |
| 22 | }; |
| 23 | |
| 24 | export const sampleContainerState: State = { |
| 25 | state_version: 1, |
| 26 | message_count: 27, |
| 27 | total_usage: sampleUsage, |
| 28 | initial_commit: "decafbad42abc123", |
| 29 | slug: "file-upload-component", |
| 30 | branch_name: "sketch-wip", |
| 31 | branch_prefix: "sketch", |
| 32 | hostname: "example.hostname", |
| 33 | working_dir: "/app", |
| 34 | os: "linux", |
| 35 | git_origin: "https://github.com/user/repo.git", |
| 36 | outstanding_llm_calls: 0, |
| 37 | outstanding_tool_calls: null, |
| 38 | session_id: "session-abc123", |
| 39 | ssh_available: true, |
| 40 | in_container: true, |
| 41 | first_message_index: 0, |
| 42 | agent_state: "ready", |
| 43 | outside_hostname: "host.example.com", |
| 44 | inside_hostname: "container.local", |
| 45 | outside_os: "macOS", |
| 46 | inside_os: "linux", |
| 47 | outside_working_dir: "/Users/dev/project", |
| 48 | inside_working_dir: "/app", |
| 49 | todo_content: |
| 50 | "- Implement file upload component\n- Add drag and drop support\n- Write tests", |
| 51 | skaband_addr: "localhost:8080", |
| 52 | link_to_github: true, |
| 53 | ssh_connection_string: "ssh user@example.com", |
| 54 | diff_lines_added: 245, |
| 55 | diff_lines_removed: 67, |
| 56 | }; |
| 57 | |
| 58 | export const lightUsageState: State = { |
| 59 | ...sampleContainerState, |
| 60 | message_count: 5, |
| 61 | total_usage: { |
| 62 | ...sampleUsage, |
| 63 | messages: 5, |
| 64 | input_tokens: 1234, |
| 65 | output_tokens: 890, |
| 66 | total_cost_usd: 0.15, |
| 67 | tool_uses: { |
| 68 | bash: 2, |
| 69 | patch: 1, |
| 70 | }, |
| 71 | }, |
| 72 | diff_lines_added: 45, |
| 73 | diff_lines_removed: 12, |
| 74 | }; |
| 75 | |
| 76 | export const heavyUsageState: State = { |
| 77 | ...sampleContainerState, |
| 78 | message_count: 156, |
| 79 | total_usage: { |
| 80 | ...sampleUsage, |
| 81 | messages: 156, |
| 82 | input_tokens: 89234, |
| 83 | output_tokens: 67890, |
| 84 | cache_read_input_tokens: 23456, |
| 85 | cache_creation_input_tokens: 45678, |
| 86 | total_cost_usd: 12.45, |
| 87 | tool_uses: { |
| 88 | bash: 234, |
| 89 | patch: 89, |
| 90 | think: 67, |
| 91 | "multiple-choice": 23, |
| 92 | keyword_search: 45, |
| 93 | browser_navigate: 12, |
| 94 | codereview: 8, |
| 95 | }, |
| 96 | }, |
| 97 | diff_lines_added: 2847, |
| 98 | diff_lines_removed: 1456, |
| 99 | }; |