()
| 90 | } |
| 91 | |
| 92 | function createDraftThreadId() { |
| 93 | const uuid = globalThis.crypto?.randomUUID?.(); |
| 94 | if (uuid) { |
| 95 | return `draft:${uuid}`; |
| 96 | } |
| 97 | return `draft:${Date.now().toString(36)}:${Math.random().toString(36).slice(2, 10)}`; |
| 98 | } |
| 99 | |
| 100 | function parseActiveThreadId(pathname: string | null) { |
| 101 | if (!pathname) { |
no outgoing calls
no test coverage detected