| 175 | }; |
| 176 | |
| 177 | class EventStreamConnectionError extends Error { |
| 178 | constructor(public readonly status: Exclude<EventStreamConnectionStatus, "connected">) { |
| 179 | super(status === "timeout" |
| 180 | ? "Timed out connecting to the agent event stream. Please try again." |
| 181 | : "Failed to connect to the agent event stream. Please try again."); |
| 182 | this.name = "EventStreamConnectionError"; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | function createNoticeId(): string { |
| 187 | if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") { |
nothing calls this directly
no outgoing calls
no test coverage detected