( state: ManagerState, threadId: string, )
| 74 | const compositeKey = (threadId: string, tabId: string): string => `${threadId}\u0000${tabId}`; |
| 75 | |
| 76 | const sessionsForThread = ( |
| 77 | state: ManagerState, |
| 78 | threadId: string, |
| 79 | ): ReadonlyArray<PreviewSessionState> => { |
| 80 | const out: PreviewSessionState[] = []; |
| 81 | for (const session of state.sessions.values()) { |
| 82 | if (session.threadId === threadId) out.push(session); |
| 83 | } |
| 84 | return out; |
| 85 | }; |
| 86 | |
| 87 | const normalizeUrl = (rawUrl: string): Effect.Effect<string, PreviewInvalidUrlError> => |
| 88 | Effect.try({ |
no outgoing calls
no test coverage detected