(log: LogOption)
| 3105 | * For full logs, extracts from the first message. |
| 3106 | */ |
| 3107 | export function getSessionIdFromLog(log: LogOption): UUID | undefined { |
| 3108 | // For lite logs, use the direct sessionId field |
| 3109 | if (log.sessionId) { |
| 3110 | return log.sessionId as UUID |
| 3111 | } |
| 3112 | // Fall back to extracting from first message (full logs) |
| 3113 | return log.messages[0]?.sessionId as UUID | undefined |
| 3114 | } |
| 3115 | |
| 3116 | /** |
| 3117 | * Checks if a log is a lite log that needs full loading. |
no outgoing calls
no test coverage detected