(
interaction: InteractionData,
item: LLMInteractionItem,
)
| 138 | } |
| 139 | |
| 140 | private formatTimestamp( |
| 141 | interaction: InteractionData, |
| 142 | item: LLMInteractionItem, |
| 143 | ) { |
| 144 | if (item !== this.lastLineStartItem) { |
| 145 | if (item === interaction.startItem) { |
| 146 | return formatTimestamp(item.timestamp); |
| 147 | } else { |
| 148 | const delta = (item.timestamp - interaction.startItem.timestamp) / 1000; |
| 149 | return ("+" + delta.toFixed(1)).padStart(10, " "); |
| 150 | } |
| 151 | } else { |
| 152 | return " "; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | // the implementation behind logLines and logMessageText |
| 157 | private logFragment( |
no test coverage detected