(turn: Record<string, unknown>)
| 238 | } |
| 239 | |
| 240 | function turnStartedAtMs(turn: Record<string, unknown>): number | null { |
| 241 | return ( |
| 242 | normalizeTimestampMs( |
| 243 | turn.startedAt ?? |
| 244 | turn.started_at ?? |
| 245 | turn.startTime ?? |
| 246 | turn.start_time ?? |
| 247 | turn.createdAt ?? |
| 248 | turn.created_at, |
| 249 | ) ?? null |
| 250 | ); |
| 251 | } |
| 252 | |
| 253 | type TurnStatusKind = "active" | "terminal" | "unknown"; |
| 254 |
no test coverage detected