(tool: ToolCall)
| 117 | }; |
| 118 | |
| 119 | const renderToolHTML = (tool: ToolCall): string => { |
| 120 | const timestamp = formatTimestamp(tool.timestamp); |
| 121 | const status = tool.status === 'success' ? '✅' : '❌'; |
| 122 | |
| 123 | return ` |
| 124 | <div class="tool-item ${tool.status}"> |
| 125 | <div class="tool-header"> |
| 126 | <span class="tool-status">${status}</span> |
| 127 | <strong>${tool.name}</strong> |
| 128 | <span class="timestamp">${timestamp}</span> |
| 129 | </div> |
| 130 | ${tool.error ? `<div class="tool-error">Error: ${tool.error}</div>` : ''} |
| 131 | ${tool.params ? `<div class="tool-params">Params: ${JSON.stringify(tool.params, null, 2)}</div>` : ''} |
| 132 | </div> |
| 133 | `; |
| 134 | }; |
| 135 | |
| 136 | const renderIterationHTML = (iteration: IterationData): string => { |
| 137 | const startTime = formatTimestamp(iteration.startTime); |
nothing calls this directly
no test coverage detected