(value string)
| 272 | } |
| 273 | |
| 274 | func parseTokenUsageTimestamp(value string) (time.Time, bool) { |
| 275 | if value == "" { |
| 276 | return time.Time{}, false |
| 277 | } |
| 278 | if ts, err := time.Parse(time.RFC3339Nano, value); err == nil { |
| 279 | return ts, true |
| 280 | } |
| 281 | if ts, err := time.Parse(time.RFC3339, value); err == nil { |
| 282 | return ts, true |
| 283 | } |
| 284 | return time.Time{}, false |
| 285 | } |
| 286 | |
| 287 | // findTokenUsageFile searches for token-usage.jsonl in the run directory |
| 288 | func findTokenUsageFile(runDir string) string { |
no outgoing calls
no test coverage detected