(log: LogOption)
| 3009 | * For full logs, extracts from the first message. |
| 3010 | */ |
| 3011 | export function getSessionIdFromLog(log: LogOption): UUID | undefined { |
| 3012 | // For lite logs, use the direct sessionId field |
| 3013 | if (log.sessionId) { |
| 3014 | return log.sessionId as UUID |
| 3015 | } |
| 3016 | // Fall back to extracting from first message (full logs) |
| 3017 | return log.messages[0]?.sessionId as UUID | undefined |
| 3018 | } |
| 3019 | |
| 3020 | /** |
| 3021 | * Checks if a log is a lite log that needs full loading. |
no outgoing calls
no test coverage detected