* Extract the plan slug from a log's message history.
(log: LogOption)
| 147 | * Extract the plan slug from a log's message history. |
| 148 | */ |
| 149 | function getSlugFromLog(log: LogOption): string | undefined { |
| 150 | return log.messages.find(m => m.slug)?.slug |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Restore plan slug from a resumed session. |
no outgoing calls
no test coverage detected