(log: LogOption)
| 2925 | * For full logs, extracts from the first message. |
| 2926 | */ |
| 2927 | export function getSessionIdFromLog(log: LogOption): UUID | undefined { |
| 2928 | // For lite logs, use the direct sessionId field |
| 2929 | if (log.sessionId) { |
| 2930 | return log.sessionId as UUID |
| 2931 | } |
| 2932 | // Fall back to extracting from first message (full logs) |
| 2933 | return log.messages[0]?.sessionId as UUID | undefined |
| 2934 | } |
| 2935 | |
| 2936 | /** |
| 2937 | * Checks if a log is a lite log that needs full loading. |
no outgoing calls
no test coverage detected