(prompt: string)
| 116 | } |
| 117 | |
| 118 | function truncatePromptPreview(prompt: string): string { |
| 119 | const singleLine = prompt.replace(/\s+/g, ' ').trim() |
| 120 | return singleLine.length <= 240 |
| 121 | ? singleLine |
| 122 | : `${singleLine.slice(0, 237)}...` |
| 123 | } |
| 124 | |
| 125 | /** A persisted record may lack fields that were added after the initial schema. */ |
| 126 | type PersistedAutonomyRunRecord = Omit< |
no outgoing calls
no test coverage detected