@sentry/mcp-server 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +1 -1
  2. package/dist/api-client/client.cjs +4 -4
  3. package/dist/api-client/client.d.cts +3 -3
  4. package/dist/api-client/client.d.ts +3 -3
  5. package/dist/api-client/client.js +2 -2
  6. package/dist/api-client/client.test.cjs +8 -9
  7. package/dist/api-client/client.test.cjs.map +1 -1
  8. package/dist/api-client/client.test.js +4 -4
  9. package/dist/api-client/index.cjs +40 -38
  10. package/dist/api-client/index.d.cts +4 -4
  11. package/dist/api-client/index.d.ts +4 -4
  12. package/dist/api-client/index.js +5 -5
  13. package/dist/api-client/schema.cjs +35 -33
  14. package/dist/api-client/schema.d.cts +2 -2
  15. package/dist/api-client/schema.d.ts +2 -2
  16. package/dist/api-client/schema.js +2 -2
  17. package/dist/api-client/types.cjs +1 -1
  18. package/dist/api-client/types.d.cts +3 -3
  19. package/dist/api-client/types.d.ts +3 -3
  20. package/dist/api-client/types.js +1 -1
  21. package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
  22. package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
  23. package/dist/{client-1dRfG57H.d.ts → client-Bxf4MxOz.d.cts} +10 -6
  24. package/dist/client-Bxf4MxOz.d.cts.map +1 -0
  25. package/dist/{client-CTm4cvI7.js → client-D5xFZtxK.js} +19 -7
  26. package/dist/client-D5xFZtxK.js.map +1 -0
  27. package/dist/{client-BsYOQsEI.d.cts → client-DOhBiaMJ.d.ts} +9 -5
  28. package/dist/client-DOhBiaMJ.d.ts.map +1 -0
  29. package/dist/{client-DQ837FXP.cjs → client-GKHZSXgV.cjs} +19 -8
  30. package/dist/client-GKHZSXgV.cjs.map +1 -0
  31. package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
  32. package/dist/dist-BlIWGSIM.cjs.map +1 -0
  33. package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
  34. package/dist/dist-DDpQABxe.js.map +1 -0
  35. package/dist/errors-B9fwS-aP.cjs +21 -0
  36. package/dist/errors-B9fwS-aP.cjs.map +1 -0
  37. package/dist/errors-BJSrT6Ou.js +15 -0
  38. package/dist/errors-BJSrT6Ou.js.map +1 -0
  39. package/dist/errors.cjs +3 -0
  40. package/dist/errors.d.cts +12 -0
  41. package/dist/errors.d.cts.map +1 -0
  42. package/dist/errors.d.ts +12 -0
  43. package/dist/errors.d.ts.map +1 -0
  44. package/dist/errors.js +3 -0
  45. package/dist/errors.test.cjs +24 -0
  46. package/dist/errors.test.cjs.map +1 -0
  47. package/dist/errors.test.d.cts +1 -0
  48. package/dist/errors.test.d.ts +1 -0
  49. package/dist/errors.test.js +24 -0
  50. package/dist/errors.test.js.map +1 -0
  51. package/dist/{formatting-BQRAzO5v.js → formatting-BaARL2gT.js} +11 -3
  52. package/dist/formatting-BaARL2gT.js.map +1 -0
  53. package/dist/{formatting-C-0bHtbh.cjs → formatting-C2kN0ok6.cjs} +11 -4
  54. package/dist/formatting-C2kN0ok6.cjs.map +1 -0
  55. package/dist/index.cjs +19 -19
  56. package/dist/index.js +18 -17
  57. package/dist/index.js.map +1 -1
  58. package/dist/internal/formatting.cjs +4 -4
  59. package/dist/internal/formatting.d.cts +4 -5
  60. package/dist/internal/formatting.d.cts.map +1 -1
  61. package/dist/internal/formatting.d.ts +4 -5
  62. package/dist/internal/formatting.d.ts.map +1 -1
  63. package/dist/internal/formatting.js +1 -1
  64. package/dist/internal/issue-helpers.cjs +4 -4
  65. package/dist/internal/issue-helpers.d.cts +2 -2
  66. package/dist/internal/issue-helpers.d.cts.map +1 -1
  67. package/dist/internal/issue-helpers.d.ts +2 -2
  68. package/dist/internal/issue-helpers.d.ts.map +1 -1
  69. package/dist/internal/issue-helpers.js +1 -1
  70. package/dist/internal/issue-helpers.test.cjs +23 -27
  71. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  72. package/dist/internal/issue-helpers.test.js +7 -10
  73. package/dist/internal/issue-helpers.test.js.map +1 -1
  74. package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-71XgJVXC.cjs} +8 -3
  75. package/dist/issue-helpers-71XgJVXC.cjs.map +1 -0
  76. package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-CSNNO03f.js} +8 -2
  77. package/dist/issue-helpers-CSNNO03f.js.map +1 -0
  78. package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
  79. package/dist/{logging-BEMgC5SA.cjs.map → logging-ByvSjT6V.cjs.map} +1 -1
  80. package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
  81. package/dist/{logging-Cxm8lQvg.js.map → logging-CXLD0FFB.js.map} +1 -1
  82. package/dist/logging.cjs +2 -2
  83. package/dist/logging.d.cts +1 -2
  84. package/dist/logging.d.cts.map +1 -1
  85. package/dist/logging.d.ts +1 -2
  86. package/dist/logging.d.ts.map +1 -1
  87. package/dist/logging.js +1 -1
  88. package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
  89. package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
  90. package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-D3ll3qCd.cjs} +6 -7
  91. package/dist/promptDefinitions-D3ll3qCd.cjs.map +1 -0
  92. package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-DMucOchd.d.cts} +5 -5
  93. package/dist/promptDefinitions-DMucOchd.d.cts.map +1 -0
  94. package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-H0q1_X-K.d.ts} +6 -6
  95. package/dist/promptDefinitions-H0q1_X-K.d.ts.map +1 -0
  96. package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-aKmUZWWO.js} +5 -5
  97. package/dist/promptDefinitions-aKmUZWWO.js.map +1 -0
  98. package/dist/promptDefinitions.cjs +3 -3
  99. package/dist/promptDefinitions.d.cts +1 -1
  100. package/dist/promptDefinitions.d.ts +1 -1
  101. package/dist/promptDefinitions.js +2 -2
  102. package/dist/{prompts-DgWOD2rU.js → prompts-CzD0yl7Z.js} +1 -1
  103. package/dist/{prompts-DgWOD2rU.js.map → prompts-CzD0yl7Z.js.map} +1 -1
  104. package/dist/{prompts-nfFU-zY-.cjs → prompts-DMwoay8l.cjs} +1 -2
  105. package/dist/{prompts-nfFU-zY-.cjs.map → prompts-DMwoay8l.cjs.map} +1 -1
  106. package/dist/prompts.cjs +2 -2
  107. package/dist/prompts.d.cts +6 -7
  108. package/dist/prompts.d.cts.map +1 -1
  109. package/dist/prompts.d.ts +6 -7
  110. package/dist/prompts.d.ts.map +1 -1
  111. package/dist/prompts.js +1 -1
  112. package/dist/{resources-BAE7VVZZ.cjs → resources-D6TW2ER0.cjs} +1 -2
  113. package/dist/{resources-BAE7VVZZ.cjs.map → resources-D6TW2ER0.cjs.map} +1 -1
  114. package/dist/{resources-OM3EAnnj.js → resources-x-GaokG8.js} +1 -1
  115. package/dist/{resources-OM3EAnnj.js.map → resources-x-GaokG8.js.map} +1 -1
  116. package/dist/resources.cjs +2 -2
  117. package/dist/resources.d.cts +0 -1
  118. package/dist/resources.d.cts.map +1 -1
  119. package/dist/resources.d.ts +0 -1
  120. package/dist/resources.d.ts.map +1 -1
  121. package/dist/resources.js +1 -1
  122. package/dist/schema-B8lT632E.cjs +77 -0
  123. package/dist/schema-B8lT632E.cjs.map +1 -0
  124. package/dist/schema-BkHf97d7.js +17 -0
  125. package/dist/schema-BkHf97d7.js.map +1 -0
  126. package/dist/{schema-CaJV2aIO.d.cts → schema-C-MLkWMc.d.ts} +385 -272
  127. package/dist/schema-C-MLkWMc.d.ts.map +1 -0
  128. package/dist/{schema-nyYqVk4Y.js → schema-CewAKS9A.js} +19 -3
  129. package/dist/schema-CewAKS9A.js.map +1 -0
  130. package/dist/{schema-KEMqYaQn.cjs → schema-DkyWSqp_.cjs} +31 -4
  131. package/dist/schema-DkyWSqp_.cjs.map +1 -0
  132. package/dist/{schema-DwPOkoSP.d.ts → schema-DqxkW9Tx.d.cts} +387 -274
  133. package/dist/schema-DqxkW9Tx.d.cts.map +1 -0
  134. package/dist/schema.cjs +11 -9
  135. package/dist/schema.d.cts +4 -3
  136. package/dist/schema.d.cts.map +1 -1
  137. package/dist/schema.d.ts +4 -3
  138. package/dist/schema.d.ts.map +1 -1
  139. package/dist/schema.js +2 -2
  140. package/dist/{server-BWoJZj5B.cjs → server-pGtEIwE3.cjs} +33 -27
  141. package/dist/server-pGtEIwE3.cjs.map +1 -0
  142. package/dist/{server-DtNbD1c-.js → server-qpWdf-ST.js} +32 -25
  143. package/dist/server-qpWdf-ST.js.map +1 -0
  144. package/dist/server.cjs +16 -15
  145. package/dist/server.d.cts +4 -5
  146. package/dist/server.d.cts.map +1 -1
  147. package/dist/server.d.ts +4 -5
  148. package/dist/server.d.ts.map +1 -1
  149. package/dist/server.js +15 -14
  150. package/dist/{stdio-D4oW-qT6.js → stdio-D8u2W847.js} +2 -2
  151. package/dist/{stdio-D4oW-qT6.js.map → stdio-D8u2W847.js.map} +1 -1
  152. package/dist/{stdio-BLzMxGqU.cjs → stdio-DydB2Pxu.cjs} +3 -4
  153. package/dist/{stdio-BLzMxGqU.cjs.map → stdio-DydB2Pxu.cjs.map} +1 -1
  154. package/dist/test-setup.cjs +1568 -1320
  155. package/dist/test-setup.cjs.map +1 -1
  156. package/dist/test-setup.js +1568 -1319
  157. package/dist/test-setup.js.map +1 -1
  158. package/dist/{toolDefinitions-BF-D81bS.js → toolDefinitions-BSC2D_S-.js} +95 -79
  159. package/dist/toolDefinitions-BSC2D_S-.js.map +1 -0
  160. package/dist/{toolDefinitions-CO65cU86.cjs → toolDefinitions-BtHN8t_d.cjs} +96 -81
  161. package/dist/toolDefinitions-BtHN8t_d.cjs.map +1 -0
  162. package/dist/{toolDefinitions-CCscRQoM.d.ts → toolDefinitions-Dp13BpEu.d.cts} +58 -26
  163. package/dist/toolDefinitions-Dp13BpEu.d.cts.map +1 -0
  164. package/dist/{toolDefinitions-K_TVqaLU.d.cts → toolDefinitions-fQrpWznJ.d.ts} +57 -25
  165. package/dist/toolDefinitions-fQrpWznJ.d.ts.map +1 -0
  166. package/dist/toolDefinitions.cjs +3 -3
  167. package/dist/toolDefinitions.d.cts +1 -1
  168. package/dist/toolDefinitions.d.ts +1 -1
  169. package/dist/toolDefinitions.js +2 -2
  170. package/dist/toolDefinitions.test.cjs +3 -4
  171. package/dist/toolDefinitions.test.cjs.map +1 -1
  172. package/dist/toolDefinitions.test.js +3 -3
  173. package/dist/{tools-B8ufMRZx.js → tools-4Rtn4WEf.js} +58 -57
  174. package/dist/tools-4Rtn4WEf.js.map +1 -0
  175. package/dist/{tools-BYt-G6p2.cjs → tools-DHHqAqP9.cjs} +59 -59
  176. package/dist/tools-DHHqAqP9.cjs.map +1 -0
  177. package/dist/tools.cjs +10 -9
  178. package/dist/tools.d.cts +55 -26
  179. package/dist/tools.d.cts.map +1 -1
  180. package/dist/tools.d.ts +55 -26
  181. package/dist/tools.d.ts.map +1 -1
  182. package/dist/tools.js +9 -8
  183. package/dist/tools.test.cjs +154 -62
  184. package/dist/tools.test.cjs.map +1 -1
  185. package/dist/tools.test.js +135 -42
  186. package/dist/tools.test.js.map +1 -1
  187. package/dist/transports/stdio.cjs +17 -16
  188. package/dist/transports/stdio.d.cts +4 -5
  189. package/dist/transports/stdio.d.cts.map +1 -1
  190. package/dist/transports/stdio.d.ts +4 -5
  191. package/dist/transports/stdio.d.ts.map +1 -1
  192. package/dist/transports/stdio.js +16 -15
  193. package/dist/{types-TaJcaAVg.d.cts → types-CbLyQvVe.d.cts} +3 -4
  194. package/dist/types-CbLyQvVe.d.cts.map +1 -0
  195. package/dist/{types-Ds7qzCBB.d.ts → types-CcffrLXB.d.cts} +5 -5
  196. package/dist/types-CcffrLXB.d.cts.map +1 -0
  197. package/dist/{types-DyM4kaGZ.d.ts → types-CfJ51LyL.d.ts} +3 -4
  198. package/dist/types-CfJ51LyL.d.ts.map +1 -0
  199. package/dist/{types-CPuN4Qmi.d.cts → types-DuUmV9zh.d.ts} +5 -5
  200. package/dist/types-DuUmV9zh.d.ts.map +1 -0
  201. package/dist/types.d.cts +3 -3
  202. package/dist/types.d.ts +3 -3
  203. package/dist/version-BT9r_3jm.js +6 -0
  204. package/dist/{version-dTEKpaGt.js.map → version-BT9r_3jm.js.map} +1 -1
  205. package/dist/{version-B0O4KvZ9.cjs → version-CRzAHHGZ.cjs} +2 -3
  206. package/dist/{version-B0O4KvZ9.cjs.map → version-CRzAHHGZ.cjs.map} +1 -1
  207. package/dist/version.cjs +2 -2
  208. package/dist/version.d.cts +1 -2
  209. package/dist/version.d.cts.map +1 -1
  210. package/dist/version.d.ts +1 -2
  211. package/dist/version.d.ts.map +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
  214. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
  215. package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
  216. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
  217. package/package.json +8 -8
  218. package/dist/client-1dRfG57H.d.ts.map +0 -1
  219. package/dist/client-BsYOQsEI.d.cts.map +0 -1
  220. package/dist/client-CTm4cvI7.js.map +0 -1
  221. package/dist/client-DQ837FXP.cjs.map +0 -1
  222. package/dist/dist-BKh-M1A1.js.map +0 -1
  223. package/dist/dist-wiyJYfAH.cjs.map +0 -1
  224. package/dist/formatting-BQRAzO5v.js.map +0 -1
  225. package/dist/formatting-C-0bHtbh.cjs.map +0 -1
  226. package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
  227. package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
  228. package/dist/promptDefinitions-5jiZMBg5.cjs.map +0 -1
  229. package/dist/promptDefinitions-CPTadtuI.js.map +0 -1
  230. package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +0 -1
  231. package/dist/promptDefinitions-DrGK-v8n.d.ts.map +0 -1
  232. package/dist/schema-BCkBPgjj.cjs +0 -64
  233. package/dist/schema-BCkBPgjj.cjs.map +0 -1
  234. package/dist/schema-CJrk_GUH.js +0 -15
  235. package/dist/schema-CJrk_GUH.js.map +0 -1
  236. package/dist/schema-CaJV2aIO.d.cts.map +0 -1
  237. package/dist/schema-DwPOkoSP.d.ts.map +0 -1
  238. package/dist/schema-KEMqYaQn.cjs.map +0 -1
  239. package/dist/schema-nyYqVk4Y.js.map +0 -1
  240. package/dist/server-BWoJZj5B.cjs.map +0 -1
  241. package/dist/server-DtNbD1c-.js.map +0 -1
  242. package/dist/toolDefinitions-BF-D81bS.js.map +0 -1
  243. package/dist/toolDefinitions-CCscRQoM.d.ts.map +0 -1
  244. package/dist/toolDefinitions-CO65cU86.cjs.map +0 -1
  245. package/dist/toolDefinitions-K_TVqaLU.d.cts.map +0 -1
  246. package/dist/tools-B8ufMRZx.js.map +0 -1
  247. package/dist/tools-BYt-G6p2.cjs.map +0 -1
  248. package/dist/types-CPuN4Qmi.d.cts.map +0 -1
  249. package/dist/types-Ds7qzCBB.d.ts.map +0 -1
  250. package/dist/types-DyM4kaGZ.d.ts.map +0 -1
  251. package/dist/types-TaJcaAVg.d.cts.map +0 -1
  252. package/dist/version-dTEKpaGt.js +0 -6
  253. package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
  254. package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
  255. /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
  256. /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
  257. /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
  258. /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
@@ -1,14 +1,20 @@
1
- "use strict";
2
- const require_chunk = require('./chunk-BtT13l48.cjs');
1
+ const require_chunk = require('./chunk-DWy1uDak.cjs');
3
2
  const node_async_hooks = require_chunk.__toESM(require("node:async_hooks"));
4
3
  const http = require_chunk.__toESM(require("http"));
4
+ const stream = require_chunk.__toESM(require("stream"));
5
5
  const https = require_chunk.__toESM(require("https"));
6
6
  const net = require_chunk.__toESM(require("net"));
7
7
  const _http_common = require_chunk.__toESM(require("_http_common"));
8
- const stream = require_chunk.__toESM(require("stream"));
9
8
  const url = require_chunk.__toESM(require("url"));
10
9
  const zlib = require_chunk.__toESM(require("zlib"));
11
10
 
11
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-3GJB4JDF.mjs
12
+ var kRawRequest = Symbol("kRawRequest");
13
+ function setRawRequest(request, rawRequest) {
14
+ Reflect.set(request, kRawRequest, rawRequest);
15
+ }
16
+
17
+ //#endregion
12
18
  //#region ../../node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.mjs
13
19
  var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
14
20
  function serializePositional(positional, flag) {
@@ -25,17 +31,17 @@ function serializePositional(positional, flag) {
25
31
  }
26
32
  }
27
33
  }
28
- function format(message$2, ...positionals) {
29
- if (positionals.length === 0) return message$2;
34
+ function format(message$3, ...positionals) {
35
+ if (positionals.length === 0) return message$3;
30
36
  let positionalIndex = 0;
31
- let formattedMessage = message$2.replace(POSITIONALS_EXP, (match$1, isEscaped, _, flag) => {
37
+ let formattedMessage = message$3.replace(POSITIONALS_EXP, (match$2, isEscaped, _, flag) => {
32
38
  const positional = positionals[positionalIndex];
33
39
  const value = serializePositional(positional, flag);
34
40
  if (!isEscaped) {
35
41
  positionalIndex++;
36
42
  return value;
37
43
  }
38
- return match$1;
44
+ return match$2;
39
45
  });
40
46
  if (positionalIndex < positionals.length) formattedMessage += ` ${positionals.slice(positionalIndex).join(" ")}`;
41
47
  formattedMessage = formattedMessage.replace(/%{2,2}/g, "%");
@@ -49,20 +55,20 @@ function cleanErrorStack(error$2) {
49
55
  error$2.stack = nextStack.join("\n");
50
56
  }
51
57
  var InvariantError = class extends Error {
52
- constructor(message$2, ...positionals) {
53
- super(message$2);
54
- this.message = message$2;
58
+ constructor(message$3, ...positionals) {
59
+ super(message$3);
60
+ this.message = message$3;
55
61
  this.name = "Invariant Violation";
56
- this.message = format(message$2, ...positionals);
62
+ this.message = format(message$3, ...positionals);
57
63
  cleanErrorStack(this);
58
64
  }
59
65
  };
60
- var invariant = (predicate, message$2, ...positionals) => {
61
- if (!predicate) throw new InvariantError(message$2, ...positionals);
66
+ var invariant = (predicate, message$3, ...positionals) => {
67
+ if (!predicate) throw new InvariantError(message$3, ...positionals);
62
68
  };
63
- invariant.as = (ErrorConstructor, predicate, message$2, ...positionals) => {
69
+ invariant.as = (ErrorConstructor, predicate, message$3, ...positionals) => {
64
70
  if (!predicate) {
65
- const formatMessage$1 = positionals.length === 0 ? message$2 : format(message$2, ...positionals);
71
+ const formatMessage$1 = positionals.length === 0 ? message$3 : format(message$3, ...positionals);
66
72
  let error$2;
67
73
  try {
68
74
  error$2 = Reflect.construct(ErrorConstructor, [formatMessage$1]);
@@ -73,6 +79,13 @@ invariant.as = (ErrorConstructor, predicate, message$2, ...positionals) => {
73
79
  }
74
80
  };
75
81
 
82
+ //#endregion
83
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-TJDMZZXE.mjs
84
+ var kRawRequestBodyStream = Symbol("kRawRequestBodyStream");
85
+ function setRawRequestBodyStream(request, stream$1) {
86
+ Reflect.set(request, kRawRequestBodyStream, stream$1);
87
+ }
88
+
76
89
  //#endregion
77
90
  //#region ../../node_modules/.pnpm/@open-draft+deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.mjs
78
91
  function createDeferredExecutor() {
@@ -160,10 +173,10 @@ var until = async (promise) => {
160
173
  };
161
174
 
162
175
  //#endregion
163
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-5KMS5CTP.mjs
176
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-LGXJ3UUF.mjs
164
177
  var InterceptorError = class extends Error {
165
- constructor(message$2) {
166
- super(message$2);
178
+ constructor(message$3) {
179
+ super(message$3);
167
180
  this.name = "InterceptorError";
168
181
  Object.setPrototypeOf(this, InterceptorError.prototype);
169
182
  }
@@ -189,15 +202,17 @@ var RequestController = class {
189
202
  this[kResponsePromise].resolve(response);
190
203
  }
191
204
  /**
192
- * Error this request with the given error.
205
+ * Error this request with the given reason.
206
+ *
193
207
  * @example
194
208
  * controller.errorWith()
195
209
  * controller.errorWith(new Error('Oops!'))
210
+ * controller.errorWith({ message: 'Oops!'})
196
211
  */
197
- errorWith(error$2) {
212
+ errorWith(reason) {
198
213
  invariant.as(InterceptorError, !this[kRequestHandled], "Failed to error the \"%s %s\" request: the \"request\" event has already been handled.", this.request.method, this.request.url);
199
214
  this[kRequestHandled] = true;
200
- this[kResponsePromise].resolve(error$2);
215
+ this[kResponsePromise].resolve(reason);
201
216
  }
202
217
  };
203
218
  async function emitAsync(emitter, eventName, ...data) {
@@ -205,6 +220,9 @@ async function emitAsync(emitter, eventName, ...data) {
205
220
  if (listners.length === 0) return;
206
221
  for (const listener of listners) await listener.apply(emitter, data);
207
222
  }
223
+ function isObject$1(value, loose = false) {
224
+ return loose ? Object.prototype.toString.call(value).startsWith("[object ") : Object.prototype.toString.call(value) === "[object Object]";
225
+ }
208
226
  function isPropertyAccessible(obj, key) {
209
227
  try {
210
228
  obj[key];
@@ -225,7 +243,10 @@ function createServerErrorResponse(body) {
225
243
  });
226
244
  }
227
245
  function isResponseError(response) {
228
- return isPropertyAccessible(response, "type") && response.type === "error";
246
+ return response != null && response instanceof Response && isPropertyAccessible(response, "type") && response.type === "error";
247
+ }
248
+ function isResponseLike(value) {
249
+ return isObject$1(value, true) && isPropertyAccessible(value, "status") && isPropertyAccessible(value, "statusText") && isPropertyAccessible(value, "bodyUsed");
229
250
  }
230
251
  function isNodeLikeError(error$2) {
231
252
  if (error$2 == null) return false;
@@ -234,10 +255,23 @@ function isNodeLikeError(error$2) {
234
255
  }
235
256
  async function handleRequest$1(options) {
236
257
  const handleResponse = async (response) => {
237
- if (response instanceof Error) options.onError(response);
238
- else if (isResponseError(response)) options.onRequestError(response);
239
- else await options.onResponse(response);
240
- return true;
258
+ if (response instanceof Error) {
259
+ options.onError(response);
260
+ return true;
261
+ }
262
+ if (isResponseError(response)) {
263
+ options.onRequestError(response);
264
+ return true;
265
+ }
266
+ if (isResponseLike(response)) {
267
+ await options.onResponse(response);
268
+ return true;
269
+ }
270
+ if (isObject$1(response)) {
271
+ options.onError(response);
272
+ return true;
273
+ }
274
+ return false;
241
275
  };
242
276
  const handleResponseError = async (error$2) => {
243
277
  if (error$2 instanceof InterceptorError) throw result.error;
@@ -258,18 +292,17 @@ async function handleRequest$1(options) {
258
292
  requestAbortPromise.reject(options.request.signal.reason);
259
293
  }, { once: true });
260
294
  const result = await until(async () => {
261
- const requestListtenersPromise = emitAsync(options.emitter, "request", {
295
+ const requestListenersPromise = emitAsync(options.emitter, "request", {
262
296
  requestId: options.requestId,
263
297
  request: options.request,
264
298
  controller: options.controller
265
299
  });
266
300
  await Promise.race([
267
301
  requestAbortPromise,
268
- requestListtenersPromise,
302
+ requestListenersPromise,
269
303
  options.controller[kResponsePromise]
270
304
  ]);
271
- const mockedResponse = await options.controller[kResponsePromise];
272
- return mockedResponse;
305
+ return await options.controller[kResponsePromise];
273
306
  });
274
307
  if (requestAbortPromise.state === "rejected") {
275
308
  options.onError(requestAbortPromise.rejectionReason);
@@ -303,8 +336,8 @@ async function handleRequest$1(options) {
303
336
  function isNodeProcess() {
304
337
  if (typeof navigator !== "undefined" && navigator.product === "ReactNative") return true;
305
338
  if (typeof process !== "undefined") {
306
- const type = process.type;
307
- if (type === "renderer" || type === "worker") return false;
339
+ const type$2 = process.type;
340
+ if (type$2 === "renderer" || type$2 === "worker") return false;
308
341
  return !!(process.versions && process.versions.node);
309
342
  }
310
343
  return false;
@@ -373,10 +406,10 @@ var Logger = class {
373
406
  * @example
374
407
  * logger.debug('no duplicates found, creating a document...')
375
408
  */
376
- debug(message$2, ...positionals) {
409
+ debug(message$3, ...positionals) {
377
410
  this.logEntry({
378
411
  level: "debug",
379
- message: gray(message$2),
412
+ message: gray(message$3),
380
413
  positionals,
381
414
  prefix: this.prefix,
382
415
  colors: { prefix: "gray" }
@@ -387,10 +420,10 @@ var Logger = class {
387
420
  * @example
388
421
  * logger.info('start parsing...')
389
422
  */
390
- info(message$2, ...positionals) {
423
+ info(message$3, ...positionals) {
391
424
  this.logEntry({
392
425
  level: "info",
393
- message: message$2,
426
+ message: message$3,
394
427
  positionals,
395
428
  prefix: this.prefix,
396
429
  colors: { prefix: "blue" }
@@ -412,10 +445,10 @@ var Logger = class {
412
445
  * @example
413
446
  * logger.success('successfully created document')
414
447
  */
415
- success(message$2, ...positionals) {
448
+ success(message$3, ...positionals) {
416
449
  this.logEntry({
417
450
  level: "info",
418
- message: message$2,
451
+ message: message$3,
419
452
  positionals,
420
453
  prefix: `\u2714 ${this.prefix}`,
421
454
  colors: {
@@ -429,10 +462,10 @@ var Logger = class {
429
462
  * @example
430
463
  * logger.warning('found legacy document format')
431
464
  */
432
- warning(message$2, ...positionals) {
465
+ warning(message$3, ...positionals) {
433
466
  this.logEntry({
434
467
  level: "warning",
435
- message: message$2,
468
+ message: message$3,
436
469
  positionals,
437
470
  prefix: `\u26A0 ${this.prefix}`,
438
471
  colors: {
@@ -446,10 +479,10 @@ var Logger = class {
446
479
  * @example
447
480
  * logger.error('something went wrong')
448
481
  */
449
- error(message$2, ...positionals) {
482
+ error(message$3, ...positionals) {
450
483
  this.logEntry({
451
484
  level: "error",
452
- message: message$2,
485
+ message: message$3,
453
486
  positionals,
454
487
  prefix: `\u2716 ${this.prefix}`,
455
488
  colors: {
@@ -470,30 +503,30 @@ var Logger = class {
470
503
  only(callback) {
471
504
  callback();
472
505
  }
473
- createEntry(level, message$2) {
506
+ createEntry(level$1, message$3) {
474
507
  return {
475
508
  timestamp: /* @__PURE__ */ new Date(),
476
- level,
477
- message: message$2
509
+ level: level$1,
510
+ message: message$3
478
511
  };
479
512
  }
480
513
  logEntry(args) {
481
- const { level, message: message$2, prefix, colors: customColors, positionals = [] } = args;
482
- const entry = this.createEntry(level, message$2);
514
+ const { level: level$1, message: message$3, prefix, colors: customColors, positionals = [] } = args;
515
+ const entry = this.createEntry(level$1, message$3);
483
516
  const timestampColor = customColors?.timestamp || "gray";
484
517
  const prefixColor = customColors?.prefix || "gray";
485
518
  const colorize = {
486
519
  timestamp: colors_exports[timestampColor],
487
520
  prefix: colors_exports[prefixColor]
488
521
  };
489
- const write = this.getWriter(level);
490
- write([colorize.timestamp(this.formatTimestamp(entry.timestamp))].concat(prefix != null ? colorize.prefix(prefix) : []).concat(serializeInput(message$2)).join(" "), ...positionals.map(serializeInput));
522
+ const write = this.getWriter(level$1);
523
+ write([colorize.timestamp(this.formatTimestamp(entry.timestamp))].concat(prefix != null ? colorize.prefix(prefix) : []).concat(serializeInput(message$3)).join(" "), ...positionals.map(serializeInput));
491
524
  }
492
525
  formatTimestamp(timestamp) {
493
526
  return `${timestamp.toLocaleTimeString("en-GB")}:${timestamp.getMilliseconds()}`;
494
527
  }
495
- getWriter(level) {
496
- switch (level) {
528
+ getWriter(level$1) {
529
+ switch (level$1) {
497
530
  case "debug":
498
531
  case "success":
499
532
  case "info": return log;
@@ -516,26 +549,26 @@ var PerformanceEntry = class {
516
549
  }
517
550
  };
518
551
  var noop = () => void 0;
519
- function log(message$2, ...positionals) {
552
+ function log(message$3, ...positionals) {
520
553
  if (IS_NODE$1) {
521
- process.stdout.write(format(message$2, ...positionals) + "\n");
554
+ process.stdout.write(format(message$3, ...positionals) + "\n");
522
555
  return;
523
556
  }
524
- console.log(message$2, ...positionals);
557
+ console.log(message$3, ...positionals);
525
558
  }
526
- function warn$1(message$2, ...positionals) {
559
+ function warn$1(message$3, ...positionals) {
527
560
  if (IS_NODE$1) {
528
- process.stderr.write(format(message$2, ...positionals) + "\n");
561
+ process.stderr.write(format(message$3, ...positionals) + "\n");
529
562
  return;
530
563
  }
531
- console.warn(message$2, ...positionals);
564
+ console.warn(message$3, ...positionals);
532
565
  }
533
- function error$1(message$2, ...positionals) {
566
+ function error$1(message$3, ...positionals) {
534
567
  if (IS_NODE$1) {
535
- process.stderr.write(format(message$2, ...positionals) + "\n");
568
+ process.stderr.write(format(message$3, ...positionals) + "\n");
536
569
  return;
537
570
  }
538
- console.error(message$2, ...positionals);
571
+ console.error(message$3, ...positionals);
539
572
  }
540
573
  function getVariable(variableName) {
541
574
  if (IS_NODE$1) return process.env[variableName];
@@ -544,22 +577,22 @@ function getVariable(variableName) {
544
577
  function isDefinedAndNotEquals(value, expected) {
545
578
  return value !== void 0 && value !== expected;
546
579
  }
547
- function serializeInput(message$2) {
548
- if (typeof message$2 === "undefined") return "undefined";
549
- if (message$2 === null) return "null";
550
- if (typeof message$2 === "string") return message$2;
551
- if (typeof message$2 === "object") return JSON.stringify(message$2);
552
- return message$2.toString();
580
+ function serializeInput(message$3) {
581
+ if (typeof message$3 === "undefined") return "undefined";
582
+ if (message$3 === null) return "null";
583
+ if (typeof message$3 === "string") return message$3;
584
+ if (typeof message$3 === "object") return JSON.stringify(message$3);
585
+ return message$3.toString();
553
586
  }
554
587
 
555
588
  //#endregion
556
589
  //#region ../../node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.mjs
557
590
  var MemoryLeakError = class extends Error {
558
- constructor(emitter, type, count) {
559
- super(`Possible EventEmitter memory leak detected. ${count} ${type.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`);
591
+ constructor(emitter, type$2, count$1) {
592
+ super(`Possible EventEmitter memory leak detected. ${count$1} ${type$2.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`);
560
593
  this.emitter = emitter;
561
- this.type = type;
562
- this.count = count;
594
+ this.type = type$2;
595
+ this.count = count$1;
563
596
  this.name = "MaxListenersExceededWarning";
564
597
  }
565
598
  };
@@ -697,7 +730,7 @@ var Emitter = _Emitter;
697
730
  Emitter.defaultMaxListeners = 10;
698
731
 
699
732
  //#endregion
700
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-I7HQIBT7.mjs
733
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-IHJSPMYM.mjs
701
734
  var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
702
735
  function getGlobalSymbol$1(symbol) {
703
736
  return globalThis[symbol] || void 0;
@@ -738,34 +771,34 @@ var Interceptor$1 = class {
738
771
  * Returns an already running interceptor instance if it's present.
739
772
  */
740
773
  apply() {
741
- const logger$1 = this.logger.extend("apply");
742
- logger$1.info("applying the interceptor...");
774
+ const logger$2 = this.logger.extend("apply");
775
+ logger$2.info("applying the interceptor...");
743
776
  if (this.readyState === "APPLIED") {
744
- logger$1.info("intercepted already applied!");
777
+ logger$2.info("intercepted already applied!");
745
778
  return;
746
779
  }
747
780
  const shouldApply = this.checkEnvironment();
748
781
  if (!shouldApply) {
749
- logger$1.info("the interceptor cannot be applied in this environment!");
782
+ logger$2.info("the interceptor cannot be applied in this environment!");
750
783
  return;
751
784
  }
752
785
  this.readyState = "APPLYING";
753
786
  const runningInstance = this.getInstance();
754
787
  if (runningInstance) {
755
- logger$1.info("found a running instance, reusing...");
788
+ logger$2.info("found a running instance, reusing...");
756
789
  this.on = (event, listener) => {
757
- logger$1.info("proxying the \"%s\" listener", event);
790
+ logger$2.info("proxying the \"%s\" listener", event);
758
791
  runningInstance.emitter.addListener(event, listener);
759
792
  this.subscriptions.push(() => {
760
793
  runningInstance.emitter.removeListener(event, listener);
761
- logger$1.info("removed proxied \"%s\" listener!", event);
794
+ logger$2.info("removed proxied \"%s\" listener!", event);
762
795
  });
763
796
  return this;
764
797
  };
765
798
  this.readyState = "APPLIED";
766
799
  return;
767
800
  }
768
- logger$1.info("no running instance found, setting up a new instance...");
801
+ logger$2.info("no running instance found, setting up a new instance...");
769
802
  this.setup();
770
803
  this.setInstance();
771
804
  this.readyState = "APPLIED";
@@ -780,12 +813,12 @@ var Interceptor$1 = class {
780
813
  * Listen to the interceptor's public events.
781
814
  */
782
815
  on(event, listener) {
783
- const logger$1 = this.logger.extend("on");
816
+ const logger$2 = this.logger.extend("on");
784
817
  if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
785
- logger$1.info("cannot listen to events, already disposed!");
818
+ logger$2.info("cannot listen to events, already disposed!");
786
819
  return this;
787
820
  }
788
- logger$1.info("adding \"%s\" event listener:", event, listener);
821
+ logger$2.info("adding \"%s\" event listener:", event, listener);
789
822
  this.emitter.on(event, listener);
790
823
  return this;
791
824
  }
@@ -805,27 +838,27 @@ var Interceptor$1 = class {
805
838
  * Disposes of any side-effects this interceptor has introduced.
806
839
  */
807
840
  dispose() {
808
- const logger$1 = this.logger.extend("dispose");
841
+ const logger$2 = this.logger.extend("dispose");
809
842
  if (this.readyState === "DISPOSED") {
810
- logger$1.info("cannot dispose, already disposed!");
843
+ logger$2.info("cannot dispose, already disposed!");
811
844
  return;
812
845
  }
813
- logger$1.info("disposing the interceptor...");
846
+ logger$2.info("disposing the interceptor...");
814
847
  this.readyState = "DISPOSING";
815
848
  if (!this.getInstance()) {
816
- logger$1.info("no interceptors running, skipping dispose...");
849
+ logger$2.info("no interceptors running, skipping dispose...");
817
850
  return;
818
851
  }
819
852
  this.clearInstance();
820
- logger$1.info("global symbol deleted:", getGlobalSymbol$1(this.symbol));
853
+ logger$2.info("global symbol deleted:", getGlobalSymbol$1(this.symbol));
821
854
  if (this.subscriptions.length > 0) {
822
- logger$1.info("disposing of %d subscriptions...", this.subscriptions.length);
855
+ logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
823
856
  for (const dispose of this.subscriptions) dispose();
824
857
  this.subscriptions = [];
825
- logger$1.info("disposed of all subscriptions!", this.subscriptions.length);
858
+ logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
826
859
  }
827
860
  this.emitter.removeAllListeners();
828
- logger$1.info("destroyed the listener!");
861
+ logger$2.info("destroyed the listener!");
829
862
  this.readyState = "DISPOSED";
830
863
  }
831
864
  getInstance() {
@@ -846,24 +879,41 @@ var Interceptor$1 = class {
846
879
  function createRequestId$1() {
847
880
  return Math.random().toString(16).slice(2);
848
881
  }
882
+ function canParseUrl(url$1) {
883
+ try {
884
+ new URL(url$1);
885
+ return true;
886
+ } catch (_error) {
887
+ return false;
888
+ }
889
+ }
890
+ function getValueBySymbol(symbolName, source) {
891
+ const ownSymbols = Object.getOwnPropertySymbols(source);
892
+ const symbol = ownSymbols.find((symbol2) => {
893
+ return symbol2.description === symbolName;
894
+ });
895
+ if (symbol) return Reflect.get(source, symbol);
896
+ return;
897
+ }
849
898
  var _FetchResponse = class extends Response {
850
- static isConfigurableStatusCode(status) {
851
- return status >= 200 && status <= 599;
899
+ static isConfigurableStatusCode(status$1) {
900
+ return status$1 >= 200 && status$1 <= 599;
852
901
  }
853
- static isRedirectResponse(status) {
854
- return _FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status);
902
+ static isRedirectResponse(status$1) {
903
+ return _FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status$1);
855
904
  }
856
905
  /**
857
906
  * Returns a boolean indicating whether the given response status
858
907
  * code represents a response that can have a body.
859
908
  */
860
- static isResponseWithBody(status) {
861
- return !_FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status);
909
+ static isResponseWithBody(status$1) {
910
+ return !_FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status$1);
862
911
  }
863
912
  static setUrl(url$1, response) {
864
- if (!url$1) return;
865
- if (response.url != "") return;
866
- Object.defineProperty(response, "url", {
913
+ if (!url$1 || url$1 === "about:" || !canParseUrl(url$1)) return;
914
+ const state = getValueBySymbol("state", response);
915
+ if (state) state.urlList.push(new URL(url$1));
916
+ else Object.defineProperty(response, "url", {
867
917
  value: url$1,
868
918
  enumerable: true,
869
919
  configurable: true,
@@ -880,20 +930,19 @@ var _FetchResponse = class extends Response {
880
930
  }
881
931
  constructor(body, init = {}) {
882
932
  var _a$1;
883
- const status = (_a$1 = init.status) != null ? _a$1 : 200;
884
- const safeStatus = _FetchResponse.isConfigurableStatusCode(status) ? status : 200;
885
- const finalBody = _FetchResponse.isResponseWithBody(status) ? body : null;
933
+ const status$1 = (_a$1 = init.status) != null ? _a$1 : 200;
934
+ const safeStatus = _FetchResponse.isConfigurableStatusCode(status$1) ? status$1 : 200;
935
+ const finalBody = _FetchResponse.isResponseWithBody(status$1) ? body : null;
886
936
  super(finalBody, {
887
- ...init,
888
- status: safeStatus
937
+ status: safeStatus,
938
+ statusText: init.statusText,
939
+ headers: init.headers
889
940
  });
890
- if (status !== safeStatus) {
891
- const stateSymbol = Object.getOwnPropertySymbols(this).find((symbol) => symbol.description === "state");
892
- if (stateSymbol) {
893
- const state = Reflect.get(this, stateSymbol);
894
- Reflect.set(state, "status", status);
895
- } else Object.defineProperty(this, "status", {
896
- value: status,
941
+ if (status$1 !== safeStatus) {
942
+ const state = getValueBySymbol("state", this);
943
+ if (state) state.status = status$1;
944
+ else Object.defineProperty(this, "status", {
945
+ value: status$1,
897
946
  enumerable: true,
898
947
  configurable: true,
899
948
  writable: false
@@ -923,7 +972,7 @@ FetchResponse.STATUS_CODES_WITH_REDIRECT = [
923
972
  ];
924
973
 
925
974
  //#endregion
926
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-FWJSC2QD.mjs
975
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-GLGFOTGJ.mjs
927
976
  function normalizeSocketWriteArgs(args) {
928
977
  const normalized = [
929
978
  args[0],
@@ -1118,7 +1167,7 @@ var MockHttpSocket = class extends MockSocket {
1118
1167
  url$1.username = "";
1119
1168
  url$1.password = "";
1120
1169
  }
1121
- if (canHaveBody) this.requestStream = new stream.Readable({ read: () => {
1170
+ this.requestStream = new stream.Readable({ read: () => {
1122
1171
  this.flushWriteBuffer();
1123
1172
  } });
1124
1173
  const requestId = createRequestId$1();
@@ -1130,6 +1179,8 @@ var MockHttpSocket = class extends MockSocket {
1130
1179
  body: canHaveBody ? stream.Readable.toWeb(this.requestStream) : null
1131
1180
  });
1132
1181
  Reflect.set(this.request, kRequestId, requestId);
1182
+ setRawRequest(this.request, Reflect.get(this, "_httpMessage"));
1183
+ setRawRequestBodyStream(this.request, this.requestStream);
1133
1184
  if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {
1134
1185
  this.passthrough();
1135
1186
  return;
@@ -1140,7 +1191,7 @@ var MockHttpSocket = class extends MockSocket {
1140
1191
  socket: this
1141
1192
  });
1142
1193
  };
1143
- this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url$1, status, statusText) => {
1194
+ this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url$1, status$1, statusText) => {
1144
1195
  const headers = FetchResponse.parseRawHeaders(rawHeaders);
1145
1196
  const response = new FetchResponse(
1146
1197
  /**
@@ -1150,15 +1201,16 @@ var MockHttpSocket = class extends MockSocket {
1150
1201
  * in response listener while the Socket instance delays the emission
1151
1202
  * of "end" and other events until those response listeners are finished.
1152
1203
  */
1153
- FetchResponse.isResponseWithBody(status) ? stream.Readable.toWeb(this.responseStream = new stream.Readable({ read() {} })) : null,
1204
+ FetchResponse.isResponseWithBody(status$1) ? stream.Readable.toWeb(this.responseStream = new stream.Readable({ read() {} })) : null,
1154
1205
  {
1155
1206
  url: url$1,
1156
- status,
1207
+ status: status$1,
1157
1208
  statusText,
1158
1209
  headers
1159
1210
  }
1160
- );
1211
+ );
1161
1212
  invariant(this.request, "Failed to handle a response: request does not exist");
1213
+ FetchResponse.setUrl(this.request.url, response);
1162
1214
  if (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;
1163
1215
  this.responseListenersPromise = this.onResponse({
1164
1216
  response,
@@ -1214,6 +1266,11 @@ var MockHttpSocket = class extends MockSocket {
1214
1266
  if (this.destroyed) return;
1215
1267
  const socket = this.createConnection();
1216
1268
  this.originalSocket = socket;
1269
+ if ("_handle" in socket) Object.defineProperty(this, "_handle", {
1270
+ value: socket._handle,
1271
+ enumerable: true,
1272
+ writable: true
1273
+ });
1217
1274
  this.once("error", (error$2) => {
1218
1275
  socket.destroy(error$2);
1219
1276
  });
@@ -1405,7 +1462,7 @@ var MockHttpsAgent = class extends https.default.Agent {
1405
1462
  return socket;
1406
1463
  }
1407
1464
  };
1408
- var logger = new Logger("utils getUrlByRequestOptions");
1465
+ var logger$1 = new Logger("utils getUrlByRequestOptions");
1409
1466
  var DEFAULT_PATH = "/";
1410
1467
  var DEFAULT_PROTOCOL = "http:";
1411
1468
  var DEFAULT_HOSTNAME = "localhost";
@@ -1451,29 +1508,29 @@ function getHostname(options) {
1451
1508
  return DEFAULT_HOSTNAME;
1452
1509
  }
1453
1510
  function getUrlByRequestOptions(options) {
1454
- logger.info("request options", options);
1511
+ logger$1.info("request options", options);
1455
1512
  if (options.uri) {
1456
- logger.info("constructing url from explicitly provided \"options.uri\": %s", options.uri);
1513
+ logger$1.info("constructing url from explicitly provided \"options.uri\": %s", options.uri);
1457
1514
  return new URL(options.uri.href);
1458
1515
  }
1459
- logger.info("figuring out url from request options...");
1516
+ logger$1.info("figuring out url from request options...");
1460
1517
  const protocol = getProtocolByRequestOptions(options);
1461
- logger.info("protocol", protocol);
1518
+ logger$1.info("protocol", protocol);
1462
1519
  const port = getPortByRequestOptions(options);
1463
- logger.info("port", port);
1520
+ logger$1.info("port", port);
1464
1521
  const hostname = getHostname(options);
1465
- logger.info("hostname", hostname);
1522
+ logger$1.info("hostname", hostname);
1466
1523
  const path = options.path || DEFAULT_PATH;
1467
- logger.info("path", path);
1524
+ logger$1.info("path", path);
1468
1525
  const credentials = getAuthByRequestOptions(options);
1469
- logger.info("credentials", credentials);
1526
+ logger$1.info("credentials", credentials);
1470
1527
  const authString = credentials ? `${credentials.username}:${credentials.password}@` : "";
1471
- logger.info("auth string:", authString);
1528
+ logger$1.info("auth string:", authString);
1472
1529
  const portString = typeof port !== "undefined" ? `:${port}` : "";
1473
1530
  const url$1 = new URL(`${protocol}//${hostname}${portString}${path}`);
1474
1531
  url$1.username = (credentials == null ? void 0 : credentials.username) || "";
1475
1532
  url$1.password = (credentials == null ? void 0 : credentials.password) || "";
1476
- logger.info("created url:", url$1);
1533
+ logger$1.info("created url:", url$1);
1477
1534
  return url$1;
1478
1535
  }
1479
1536
  var logger2 = new Logger("cloneObject");
@@ -1496,9 +1553,6 @@ function cloneObject(obj) {
1496
1553
  }, {});
1497
1554
  return isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);
1498
1555
  }
1499
- function isObject$1(value, loose = false) {
1500
- return loose ? Object.prototype.toString.call(value).startsWith("[object ") : Object.prototype.toString.call(value) === "[object Object]";
1501
- }
1502
1556
  var logger3 = new Logger("http normalizeClientRequestArgs");
1503
1557
  function resolveRequestOptions(args, url$1) {
1504
1558
  if (typeof args[1] === "undefined" || typeof args[1] === "function") {
@@ -1641,10 +1695,25 @@ var _ClientRequestInterceptor = class extends Interceptor$1 {
1641
1695
  };
1642
1696
  }
1643
1697
  setup() {
1644
- const { get: originalGet, request: originalRequest } = http.default;
1698
+ const { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http.default;
1645
1699
  const { get: originalHttpsGet, request: originalHttpsRequest } = https.default;
1646
1700
  const onRequest = this.onRequest.bind(this);
1647
1701
  const onResponse = this.onResponse.bind(this);
1702
+ http.default.ClientRequest = new Proxy(http.default.ClientRequest, { construct: (target, args) => {
1703
+ const [url$1, options, callback] = normalizeClientRequestArgs("http:", args);
1704
+ const Agent2 = options.protocol === "https:" ? MockHttpsAgent : MockAgent;
1705
+ const mockAgent = new Agent2({
1706
+ customAgent: options.agent,
1707
+ onRequest,
1708
+ onResponse
1709
+ });
1710
+ options.agent = mockAgent;
1711
+ return Reflect.construct(target, [
1712
+ url$1,
1713
+ options,
1714
+ callback
1715
+ ]);
1716
+ } });
1648
1717
  http.default.request = new Proxy(http.default.request, { apply: (target, thisArg, args) => {
1649
1718
  const [url$1, options, callback] = normalizeClientRequestArgs("http:", args);
1650
1719
  const mockAgent = new MockAgent({
@@ -1703,6 +1772,7 @@ var _ClientRequestInterceptor = class extends Interceptor$1 {
1703
1772
  } });
1704
1773
  recordRawFetchHeaders();
1705
1774
  this.subscriptions.push(() => {
1775
+ http.default.ClientRequest = OriginalClientRequest;
1706
1776
  http.default.get = originalGet;
1707
1777
  http.default.request = originalRequest;
1708
1778
  https.default.get = originalHttpsGet;
@@ -1715,7 +1785,7 @@ var ClientRequestInterceptor = _ClientRequestInterceptor;
1715
1785
  ClientRequestInterceptor.symbol = Symbol("client-request-interceptor");
1716
1786
 
1717
1787
  //#endregion
1718
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs
1788
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs
1719
1789
  var encoder = new TextEncoder();
1720
1790
  function encodeBuffer(text) {
1721
1791
  return encoder.encode(text);
@@ -1729,7 +1799,7 @@ function toArrayBuffer(array) {
1729
1799
  }
1730
1800
 
1731
1801
  //#endregion
1732
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.mjs
1802
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.mjs
1733
1803
  function hasConfigurableGlobal$1(propertyName) {
1734
1804
  const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
1735
1805
  if (typeof descriptor === "undefined") return false;
@@ -1743,11 +1813,11 @@ function hasConfigurableGlobal$1(propertyName) {
1743
1813
  }
1744
1814
 
1745
1815
  //#endregion
1746
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.mjs
1816
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.mjs
1747
1817
  var IS_PATCHED_MODULE = Symbol("isPatchedModule");
1748
1818
 
1749
1819
  //#endregion
1750
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-OMWE7UVM.mjs
1820
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-EADPZWWI.mjs
1751
1821
  function concatArrayBuffer(left, right) {
1752
1822
  const result = new Uint8Array(left.byteLength + right.byteLength);
1753
1823
  result.set(left, 0);
@@ -1755,7 +1825,7 @@ function concatArrayBuffer(left, right) {
1755
1825
  return result;
1756
1826
  }
1757
1827
  var EventPolyfill = class {
1758
- constructor(type, options) {
1828
+ constructor(type$2, options) {
1759
1829
  this.NONE = 0;
1760
1830
  this.CAPTURING_PHASE = 1;
1761
1831
  this.AT_TARGET = 2;
@@ -1774,7 +1844,7 @@ var EventPolyfill = class {
1774
1844
  this.total = 0;
1775
1845
  this.cancelBubble = false;
1776
1846
  this.returnValue = true;
1777
- this.type = type;
1847
+ this.type = type$2;
1778
1848
  this.target = (options == null ? void 0 : options.target) || null;
1779
1849
  this.currentTarget = (options == null ? void 0 : options.currentTarget) || null;
1780
1850
  this.timeStamp = Date.now();
@@ -1782,8 +1852,8 @@ var EventPolyfill = class {
1782
1852
  composedPath() {
1783
1853
  return [];
1784
1854
  }
1785
- initEvent(type, bubbles, cancelable) {
1786
- this.type = type;
1855
+ initEvent(type$2, bubbles, cancelable) {
1856
+ this.type = type$2;
1787
1857
  this.bubbles = !!bubbles;
1788
1858
  this.cancelable = !!cancelable;
1789
1859
  }
@@ -1794,8 +1864,8 @@ var EventPolyfill = class {
1794
1864
  stopImmediatePropagation() {}
1795
1865
  };
1796
1866
  var ProgressEventPolyfill = class extends EventPolyfill {
1797
- constructor(type, init) {
1798
- super(type);
1867
+ constructor(type$2, init) {
1868
+ super(type$2);
1799
1869
  this.lengthComputable = (init == null ? void 0 : init.lengthComputable) || false;
1800
1870
  this.composed = (init == null ? void 0 : init.composed) || false;
1801
1871
  this.loaded = (init == null ? void 0 : init.loaded) || 0;
@@ -1803,7 +1873,7 @@ var ProgressEventPolyfill = class extends EventPolyfill {
1803
1873
  }
1804
1874
  };
1805
1875
  var SUPPORTS_PROGRESS_EVENT = typeof ProgressEvent !== "undefined";
1806
- function createEvent(target, type, init) {
1876
+ function createEvent(target, type$2, init) {
1807
1877
  const progressEvents = [
1808
1878
  "error",
1809
1879
  "progress",
@@ -1814,11 +1884,11 @@ function createEvent(target, type, init) {
1814
1884
  "abort"
1815
1885
  ];
1816
1886
  const ProgressEventClass = SUPPORTS_PROGRESS_EVENT ? ProgressEvent : ProgressEventPolyfill;
1817
- const event = progressEvents.includes(type) ? new ProgressEventClass(type, {
1887
+ const event = progressEvents.includes(type$2) ? new ProgressEventClass(type$2, {
1818
1888
  lengthComputable: true,
1819
1889
  loaded: (init == null ? void 0 : init.loaded) || 0,
1820
1890
  total: (init == null ? void 0 : init.total) || 0
1821
- }) : new EventPolyfill(type, {
1891
+ }) : new EventPolyfill(type$2, {
1822
1892
  target,
1823
1893
  currentTarget: target
1824
1894
  });
@@ -1872,7 +1942,7 @@ function optionsToProxyHandler(options) {
1872
1942
  };
1873
1943
  return handler;
1874
1944
  }
1875
- function isDomParserSupportedType(type) {
1945
+ function isDomParserSupportedType(type$2) {
1876
1946
  const supportedTypes = [
1877
1947
  "application/xhtml+xml",
1878
1948
  "application/xml",
@@ -1881,7 +1951,7 @@ function isDomParserSupportedType(type) {
1881
1951
  "text/xml"
1882
1952
  ];
1883
1953
  return supportedTypes.some((supportedType) => {
1884
- return type.startsWith(supportedType);
1954
+ return type$2.startsWith(supportedType);
1885
1955
  });
1886
1956
  }
1887
1957
  function parseJson(data) {
@@ -1922,9 +1992,9 @@ var kIsRequestHandled = Symbol("kIsRequestHandled");
1922
1992
  var IS_NODE = isNodeProcess();
1923
1993
  var kFetchRequest = Symbol("kFetchRequest");
1924
1994
  var XMLHttpRequestController = class {
1925
- constructor(initialRequest, logger$1) {
1995
+ constructor(initialRequest, logger$2) {
1926
1996
  this.initialRequest = initialRequest;
1927
- this.logger = logger$1;
1997
+ this.logger = logger$2;
1928
1998
  this.method = "GET";
1929
1999
  this.url = null;
1930
2000
  this[kIsRequestHandled] = false;
@@ -1984,7 +2054,7 @@ var XMLHttpRequestController = class {
1984
2054
  * @see https://xhr.spec.whatwg.org/#the-response-attribute
1985
2055
  */
1986
2056
  this.request.response
1987
- );
2057
+ );
1988
2058
  this.onResponse.call(this, {
1989
2059
  response: fetchResponse,
1990
2060
  isMockedResponse: this[kIsRequestHandled],
@@ -2282,6 +2352,7 @@ var XMLHttpRequestController = class {
2282
2352
  return invoke();
2283
2353
  } });
2284
2354
  define(fetchRequest, "headers", proxyHeaders);
2355
+ setRawRequest(fetchRequest, this.request);
2285
2356
  this.logger.info("converted request to a Fetch API Request!", fetchRequest);
2286
2357
  return fetchRequest;
2287
2358
  }
@@ -2297,13 +2368,13 @@ function define(target, property, value) {
2297
2368
  value
2298
2369
  });
2299
2370
  }
2300
- function createXMLHttpRequestProxy({ emitter, logger: logger$1 }) {
2371
+ function createXMLHttpRequestProxy({ emitter, logger: logger$2 }) {
2301
2372
  const XMLHttpRequestProxy = new Proxy(globalThis.XMLHttpRequest, { construct(target, args, newTarget) {
2302
- logger$1.info("constructed new XMLHttpRequest");
2373
+ logger$2.info("constructed new XMLHttpRequest");
2303
2374
  const originalRequest = Reflect.construct(target, args, newTarget);
2304
2375
  const prototypeDescriptors = Object.getOwnPropertyDescriptors(target.prototype);
2305
2376
  for (const propertyName in prototypeDescriptors) Reflect.defineProperty(originalRequest, propertyName, prototypeDescriptors[propertyName]);
2306
- const xhrRequestController = new XMLHttpRequestController(originalRequest, logger$1);
2377
+ const xhrRequestController = new XMLHttpRequestController(originalRequest, logger$2);
2307
2378
  xhrRequestController.onRequest = async function({ request, requestId }) {
2308
2379
  const controller = new RequestController(request);
2309
2380
  this.logger.info("awaiting mocked response...");
@@ -2347,15 +2418,15 @@ var _XMLHttpRequestInterceptor = class extends Interceptor$1 {
2347
2418
  return hasConfigurableGlobal$1("XMLHttpRequest");
2348
2419
  }
2349
2420
  setup() {
2350
- const logger$1 = this.logger.extend("setup");
2351
- logger$1.info("patching \"XMLHttpRequest\" module...");
2421
+ const logger$2 = this.logger.extend("setup");
2422
+ logger$2.info("patching \"XMLHttpRequest\" module...");
2352
2423
  const PureXMLHttpRequest = globalThis.XMLHttpRequest;
2353
2424
  invariant(!PureXMLHttpRequest[IS_PATCHED_MODULE], "Failed to patch the \"XMLHttpRequest\" module: already patched.");
2354
2425
  globalThis.XMLHttpRequest = createXMLHttpRequestProxy({
2355
2426
  emitter: this.emitter,
2356
2427
  logger: this.logger
2357
2428
  });
2358
- logger$1.info("native \"XMLHttpRequest\" module patched!", globalThis.XMLHttpRequest.name);
2429
+ logger$2.info("native \"XMLHttpRequest\" module patched!", globalThis.XMLHttpRequest.name);
2359
2430
  Object.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, {
2360
2431
  enumerable: true,
2361
2432
  configurable: true,
@@ -2364,7 +2435,7 @@ var _XMLHttpRequestInterceptor = class extends Interceptor$1 {
2364
2435
  this.subscriptions.push(() => {
2365
2436
  Object.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, { value: void 0 });
2366
2437
  globalThis.XMLHttpRequest = PureXMLHttpRequest;
2367
- logger$1.info("native \"XMLHttpRequest\" module restored!", globalThis.XMLHttpRequest.name);
2438
+ logger$2.info("native \"XMLHttpRequest\" module restored!", globalThis.XMLHttpRequest.name);
2368
2439
  });
2369
2440
  }
2370
2441
  };
@@ -2372,15 +2443,7 @@ var XMLHttpRequestInterceptor = _XMLHttpRequestInterceptor;
2372
2443
  XMLHttpRequestInterceptor.interceptorSymbol = Symbol("xhr");
2373
2444
 
2374
2445
  //#endregion
2375
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-CTGTMEFD.mjs
2376
- function canParseUrl(url$1) {
2377
- try {
2378
- new URL(url$1);
2379
- return true;
2380
- } catch (_error) {
2381
- return false;
2382
- }
2383
- }
2446
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-GL6JCI7E.mjs
2384
2447
  function createNetworkError(cause) {
2385
2448
  return Object.assign(new TypeError("Failed to fetch"), { cause });
2386
2449
  }
@@ -2494,8 +2557,9 @@ var _FetchInterceptor = class extends Interceptor$1 {
2494
2557
  invariant(!pureFetch[IS_PATCHED_MODULE], "Failed to patch the \"fetch\" module: already patched.");
2495
2558
  globalThis.fetch = async (input, init) => {
2496
2559
  const requestId = createRequestId$1();
2497
- const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.origin) : input;
2560
+ const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.href) : input;
2498
2561
  const request = new Request(resolvedInput, init);
2562
+ if (input instanceof Request) setRawRequest(request, input);
2499
2563
  const responsePromise = new DeferredPromise();
2500
2564
  const controller = new RequestController(request);
2501
2565
  this.logger.info("[%s] %s", request.method, request.url);
@@ -2550,6 +2614,7 @@ var _FetchInterceptor = class extends Interceptor$1 {
2550
2614
  return responsePromise;
2551
2615
  }
2552
2616
  this.logger.info("no mocked response received, performing request as-is...");
2617
+ const requestCloneForResponseEvent = request.clone();
2553
2618
  return pureFetch(request).then(async (response) => {
2554
2619
  this.logger.info("original fetch performed", response);
2555
2620
  if (this.emitter.listenerCount("response") > 0) {
@@ -2558,7 +2623,7 @@ var _FetchInterceptor = class extends Interceptor$1 {
2558
2623
  await emitAsync(this.emitter, "response", {
2559
2624
  response: responseClone,
2560
2625
  isMockedResponse: false,
2561
- request,
2626
+ request: requestCloneForResponseEvent,
2562
2627
  requestId
2563
2628
  });
2564
2629
  }
@@ -2581,7 +2646,7 @@ var FetchInterceptor = _FetchInterceptor;
2581
2646
  FetchInterceptor.symbol = Symbol("fetch");
2582
2647
 
2583
2648
  //#endregion
2584
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-PJA4E426.mjs
2649
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-RC2XPCC4.mjs
2585
2650
  var BatchInterceptor = class extends Interceptor$1 {
2586
2651
  constructor(options) {
2587
2652
  BatchInterceptor.symbol = Symbol(options.name);
@@ -2589,12 +2654,12 @@ var BatchInterceptor = class extends Interceptor$1 {
2589
2654
  this.interceptors = options.interceptors;
2590
2655
  }
2591
2656
  setup() {
2592
- const logger$1 = this.logger.extend("setup");
2593
- logger$1.info("applying all %d interceptors...", this.interceptors.length);
2657
+ const logger$2 = this.logger.extend("setup");
2658
+ logger$2.info("applying all %d interceptors...", this.interceptors.length);
2594
2659
  for (const interceptor of this.interceptors) {
2595
- logger$1.info("applying \"%s\" interceptor...", interceptor.constructor.name);
2660
+ logger$2.info("applying \"%s\" interceptor...", interceptor.constructor.name);
2596
2661
  interceptor.apply();
2597
- logger$1.info("adding interceptor dispose subscription");
2662
+ logger$2.info("adding interceptor dispose subscription");
2598
2663
  this.subscriptions.push(() => interceptor.dispose());
2599
2664
  }
2600
2665
  }
@@ -2617,23 +2682,23 @@ var BatchInterceptor = class extends Interceptor$1 {
2617
2682
  };
2618
2683
 
2619
2684
  //#endregion
2620
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/index.mjs
2685
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/index.mjs
2621
2686
  function getCleanUrl(url$1, isAbsolute = true) {
2622
2687
  return [isAbsolute && url$1.origin, url$1.pathname].filter(Boolean).join("");
2623
2688
  }
2624
2689
 
2625
2690
  //#endregion
2626
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
2691
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
2627
2692
  const LIBRARY_PREFIX = "[MSW]";
2628
- function formatMessage(message$2, ...positionals) {
2629
- const interpolatedMessage = format(message$2, ...positionals);
2693
+ function formatMessage(message$3, ...positionals) {
2694
+ const interpolatedMessage = format(message$3, ...positionals);
2630
2695
  return `${LIBRARY_PREFIX} ${interpolatedMessage}`;
2631
2696
  }
2632
- function warn(message$2, ...positionals) {
2633
- console.warn(formatMessage(message$2, ...positionals));
2697
+ function warn(message$3, ...positionals) {
2698
+ console.warn(formatMessage(message$3, ...positionals));
2634
2699
  }
2635
- function error(message$2, ...positionals) {
2636
- console.error(formatMessage(message$2, ...positionals));
2700
+ function error(message$3, ...positionals) {
2701
+ console.error(formatMessage(message$3, ...positionals));
2637
2702
  }
2638
2703
  const devUtils = {
2639
2704
  formatMessage,
@@ -2641,14 +2706,14 @@ const devUtils = {
2641
2706
  error
2642
2707
  };
2643
2708
  var InternalError = class extends Error {
2644
- constructor(message$2) {
2645
- super(message$2);
2709
+ constructor(message$3) {
2710
+ super(message$3);
2646
2711
  this.name = "InternalError";
2647
2712
  }
2648
2713
  };
2649
2714
 
2650
2715
  //#endregion
2651
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/pipeEvents.mjs
2716
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/pipeEvents.mjs
2652
2717
  function pipeEvents(source, destination) {
2653
2718
  const rawEmit = source.emit;
2654
2719
  if (rawEmit._isPiped) return;
@@ -2661,7 +2726,7 @@ function pipeEvents(source, destination) {
2661
2726
  }
2662
2727
 
2663
2728
  //#endregion
2664
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/toReadonlyArray.mjs
2729
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/toReadonlyArray.mjs
2665
2730
  function toReadonlyArray(source) {
2666
2731
  const clone = [...source];
2667
2732
  Object.freeze(clone);
@@ -2669,7 +2734,7 @@ function toReadonlyArray(source) {
2669
2734
  }
2670
2735
 
2671
2736
  //#endregion
2672
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/Disposable.mjs
2737
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/Disposable.mjs
2673
2738
  var Disposable = class {
2674
2739
  subscriptions = [];
2675
2740
  dispose() {
@@ -2679,7 +2744,7 @@ var Disposable = class {
2679
2744
  };
2680
2745
 
2681
2746
  //#endregion
2682
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/SetupApi.mjs
2747
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/SetupApi.mjs
2683
2748
  var InMemoryHandlersController = class {
2684
2749
  constructor(initialHandlers) {
2685
2750
  this.initialHandlers = initialHandlers;
@@ -2748,7 +2813,7 @@ var SetupApi = class extends Disposable {
2748
2813
  };
2749
2814
 
2750
2815
  //#endregion
2751
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/executeHandlers.mjs
2816
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/executeHandlers.mjs
2752
2817
  const executeHandlers = async ({ request, requestId, handlers, resolutionContext }) => {
2753
2818
  let matchingHandler = null;
2754
2819
  let result = null;
@@ -2770,7 +2835,7 @@ const executeHandlers = async ({ request, requestId, handlers, resolutionContext
2770
2835
  };
2771
2836
 
2772
2837
  //#endregion
2773
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/request/toPublicUrl.mjs
2838
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/toPublicUrl.mjs
2774
2839
  function toPublicUrl(url$1) {
2775
2840
  if (typeof location === "undefined") return url$1.toString();
2776
2841
  const urlInstance = url$1 instanceof URL ? url$1 : new URL(url$1);
@@ -2778,7 +2843,7 @@ function toPublicUrl(url$1) {
2778
2843
  }
2779
2844
 
2780
2845
  //#endregion
2781
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/isCommonAssetRequest.mjs
2846
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/isCommonAssetRequest.mjs
2782
2847
  function isCommonAssetRequest(request) {
2783
2848
  const url$1 = new URL(request.url);
2784
2849
  if (url$1.protocol === "file:") return true;
@@ -2789,7 +2854,7 @@ function isCommonAssetRequest(request) {
2789
2854
  }
2790
2855
 
2791
2856
  //#endregion
2792
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/request/onUnhandledRequest.mjs
2857
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/onUnhandledRequest.mjs
2793
2858
  async function onUnhandledRequest(request, strategy = "warn") {
2794
2859
  const url$1 = new URL(request.url);
2795
2860
  const publicUrl = toPublicUrl(url$1) + url$1.search;
@@ -2802,7 +2867,7 @@ ${requestBody ? ` \u2022 Request body: ${requestBody}
2802
2867
 
2803
2868
  ` : ""}`;
2804
2869
  const unhandledRequestMessage = `intercepted a request without a matching request handler:${messageDetails}If you still wish to intercept this unhandled request, please create a request handler for it.
2805
- Read more: https://mswjs.io/docs/getting-started/mocks`;
2870
+ Read more: https://mswjs.io/docs/http/intercepting-requests`;
2806
2871
  function applyStrategy(strategy2) {
2807
2872
  switch (strategy2) {
2808
2873
  case "error": {
@@ -2851,17 +2916,10 @@ var __copyProps$3 = (to, from, except, desc) => {
2851
2916
  }
2852
2917
  return to;
2853
2918
  };
2854
- var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$3(
2855
- // If the importer is in node compatibility mode or this is not an ESM
2856
- // file that has been converted to a CommonJS file using a Babel-
2857
- // compatible transform (i.e. "__esModule" has not been set), then set
2858
- // "default" to the CommonJS "module.exports" for node compatibility.
2859
- isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", {
2860
- value: mod,
2861
- enumerable: true
2862
- }) : target,
2863
- mod
2864
- ));
2919
+ var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$3(isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", {
2920
+ value: mod,
2921
+ enumerable: true
2922
+ }) : target, mod));
2865
2923
  var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(exports$1, module$1) {
2866
2924
  "use strict";
2867
2925
  var maxInt = 2147483647;
@@ -2876,7 +2934,7 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
2876
2934
  var regexPunycode = /^xn--/;
2877
2935
  var regexNonASCII = /[^\0-\x7F]/;
2878
2936
  var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
2879
- var errors = {
2937
+ var errors$1 = {
2880
2938
  "overflow": "Overflow: input needs wider integers to process",
2881
2939
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2882
2940
  "invalid-input": "Invalid input"
@@ -2884,8 +2942,8 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
2884
2942
  var baseMinusTMin = base - tMin;
2885
2943
  var floor = Math.floor;
2886
2944
  var stringFromCharCode = String.fromCharCode;
2887
- function error$2(type) {
2888
- throw new RangeError(errors[type]);
2945
+ function error$2(type$2) {
2946
+ throw new RangeError(errors$1[type$2]);
2889
2947
  }
2890
2948
  function map(array, callback) {
2891
2949
  const result = [];
@@ -3156,14 +3214,14 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
3156
3214
  else if (typeof global !== "undefined") globalVar = global;
3157
3215
  else if (typeof self !== "undefined") globalVar = self;
3158
3216
  else globalVar = {};
3159
- var location$1 = globalVar.location || {};
3160
- loc = loc || location$1;
3161
- var finaldestination = {}, type = typeof loc, key;
3217
+ var location$2 = globalVar.location || {};
3218
+ loc = loc || location$2;
3219
+ var finaldestination = {}, type$2 = typeof loc, key;
3162
3220
  if ("blob:" === loc.protocol) finaldestination = new Url(unescape(loc.pathname), {});
3163
- else if ("string" === type) {
3221
+ else if ("string" === type$2) {
3164
3222
  finaldestination = new Url(loc, {});
3165
3223
  for (key in ignore) delete finaldestination[key];
3166
- } else if ("object" === type) {
3224
+ } else if ("object" === type$2) {
3167
3225
  for (key in loc) {
3168
3226
  if (key in ignore) continue;
3169
3227
  finaldestination[key] = loc[key];
@@ -3175,33 +3233,33 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
3175
3233
  function isSpecial(scheme) {
3176
3234
  return scheme === "file:" || scheme === "ftp:" || scheme === "http:" || scheme === "https:" || scheme === "ws:" || scheme === "wss:";
3177
3235
  }
3178
- function extractProtocol(address, location$1) {
3236
+ function extractProtocol(address, location$2) {
3179
3237
  address = trimLeft(address);
3180
3238
  address = address.replace(CRHTLF, "");
3181
- location$1 = location$1 || {};
3182
- var match$1 = protocolre.exec(address);
3183
- var protocol = match$1[1] ? match$1[1].toLowerCase() : "";
3184
- var forwardSlashes = !!match$1[2];
3185
- var otherSlashes = !!match$1[3];
3239
+ location$2 = location$2 || {};
3240
+ var match$2 = protocolre.exec(address);
3241
+ var protocol = match$2[1] ? match$2[1].toLowerCase() : "";
3242
+ var forwardSlashes = !!match$2[2];
3243
+ var otherSlashes = !!match$2[3];
3186
3244
  var slashesCount = 0;
3187
3245
  var rest;
3188
3246
  if (forwardSlashes) if (otherSlashes) {
3189
- rest = match$1[2] + match$1[3] + match$1[4];
3190
- slashesCount = match$1[2].length + match$1[3].length;
3247
+ rest = match$2[2] + match$2[3] + match$2[4];
3248
+ slashesCount = match$2[2].length + match$2[3].length;
3191
3249
  } else {
3192
- rest = match$1[2] + match$1[4];
3193
- slashesCount = match$1[2].length;
3250
+ rest = match$2[2] + match$2[4];
3251
+ slashesCount = match$2[2].length;
3194
3252
  }
3195
3253
  else if (otherSlashes) {
3196
- rest = match$1[3] + match$1[4];
3197
- slashesCount = match$1[3].length;
3198
- } else rest = match$1[4];
3254
+ rest = match$2[3] + match$2[4];
3255
+ slashesCount = match$2[3].length;
3256
+ } else rest = match$2[4];
3199
3257
  if (protocol === "file:") {
3200
3258
  if (slashesCount >= 2) rest = rest.slice(2);
3201
- } else if (isSpecial(protocol)) rest = match$1[4];
3259
+ } else if (isSpecial(protocol)) rest = match$2[4];
3202
3260
  else if (protocol) {
3203
3261
  if (forwardSlashes) rest = rest.slice(2);
3204
- } else if (slashesCount >= 2 && isSpecial(location$1.protocol)) rest = match$1[4];
3262
+ } else if (slashesCount >= 2 && isSpecial(location$2.protocol)) rest = match$2[4];
3205
3263
  return {
3206
3264
  protocol,
3207
3265
  slashes: forwardSlashes || isSpecial(protocol),
@@ -3225,21 +3283,21 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
3225
3283
  if (last === "." || last === "..") path.push("");
3226
3284
  return path.join("/");
3227
3285
  }
3228
- function Url(address, location$1, parser) {
3286
+ function Url(address, location$2, parser) {
3229
3287
  address = trimLeft(address);
3230
3288
  address = address.replace(CRHTLF, "");
3231
- if (!(this instanceof Url)) return new Url(address, location$1, parser);
3232
- var relative, extracted, parse$1, instruction, index, key, instructions = rules.slice(), type = typeof location$1, url$1 = this, i = 0;
3233
- if ("object" !== type && "string" !== type) {
3234
- parser = location$1;
3235
- location$1 = null;
3289
+ if (!(this instanceof Url)) return new Url(address, location$2, parser);
3290
+ var relative, extracted, parse$1, instruction, index, key, instructions = rules.slice(), type$2 = typeof location$2, url$1 = this, i = 0;
3291
+ if ("object" !== type$2 && "string" !== type$2) {
3292
+ parser = location$2;
3293
+ location$2 = null;
3236
3294
  }
3237
3295
  if (parser && "function" !== typeof parser) parser = qs.parse;
3238
- location$1 = lolcation(location$1);
3239
- extracted = extractProtocol(address || "", location$1);
3296
+ location$2 = lolcation(location$2);
3297
+ extracted = extractProtocol(address || "", location$2);
3240
3298
  relative = !extracted.protocol && !extracted.slashes;
3241
- url$1.slashes = extracted.slashes || relative && location$1.slashes;
3242
- url$1.protocol = extracted.protocol || location$1.protocol || "";
3299
+ url$1.slashes = extracted.slashes || relative && location$2.slashes;
3300
+ url$1.protocol = extracted.protocol || location$2.protocol || "";
3243
3301
  address = extracted.rest;
3244
3302
  if (extracted.protocol === "file:" && (extracted.slashesCount !== 2 || windowsDriveLetter.test(address)) || !extracted.slashes && (extracted.protocol || extracted.slashesCount < 2 || !isSpecial(url$1.protocol))) instructions[3] = [/(.*)/, "pathname"];
3245
3303
  for (; i < instructions.length; i++) {
@@ -3264,11 +3322,11 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
3264
3322
  url$1[key] = index[1];
3265
3323
  address = address.slice(0, index.index);
3266
3324
  }
3267
- url$1[key] = url$1[key] || (relative && instruction[3] ? location$1[key] || "" : "");
3325
+ url$1[key] = url$1[key] || (relative && instruction[3] ? location$2[key] || "" : "");
3268
3326
  if (instruction[4]) url$1[key] = url$1[key].toLowerCase();
3269
3327
  }
3270
3328
  if (parser) url$1.query = parser(url$1.query);
3271
- if (relative && location$1.slashes && url$1.pathname.charAt(0) !== "/" && (url$1.pathname !== "" || location$1.pathname !== "")) url$1.pathname = resolve(url$1.pathname, location$1.pathname);
3329
+ if (relative && location$2.slashes && url$1.pathname.charAt(0) !== "/" && (url$1.pathname !== "" || location$2.pathname !== "")) url$1.pathname = resolve(url$1.pathname, location$2.pathname);
3272
3330
  if (url$1.pathname.charAt(0) !== "/" && isSpecial(url$1.protocol)) url$1.pathname = "/" + url$1.pathname;
3273
3331
  if (!required(url$1.port, url$1.protocol)) {
3274
3332
  url$1.host = url$1.hostname;
@@ -13266,8 +13324,8 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13266
13324
  var SAME_SITE_CONTEXT_VAL_ERR = "Invalid sameSiteContext option for getCookies(); expected one of \"strict\", \"lax\", or \"none\"";
13267
13325
  function checkSameSiteContext(value) {
13268
13326
  validators.validate(validators.isNonEmptyString(value), value);
13269
- const context = String(value).toLowerCase();
13270
- if (context === "none" || context === "lax" || context === "strict") return context;
13327
+ const context$1 = String(value).toLowerCase();
13328
+ if (context$1 === "none" || context$1 === "lax" || context$1 === "strict") return context$1;
13271
13329
  else return null;
13272
13330
  }
13273
13331
  var PrefixSecurityEnum = Object.freeze({
@@ -13290,15 +13348,15 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13290
13348
  `.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
13291
13349
  var IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
13292
13350
  function parseDigits(token, minDigits, maxDigits, trailingOK) {
13293
- let count = 0;
13294
- while (count < token.length) {
13295
- const c = token.charCodeAt(count);
13351
+ let count$1 = 0;
13352
+ while (count$1 < token.length) {
13353
+ const c = token.charCodeAt(count$1);
13296
13354
  if (c <= 47 || c >= 58) break;
13297
- count++;
13355
+ count$1++;
13298
13356
  }
13299
- if (count < minDigits || count > maxDigits) return null;
13300
- if (!trailingOK && count != token.length) return null;
13301
- return parseInt(token.substr(0, count), 10);
13357
+ if (count$1 < minDigits || count$1 > maxDigits) return null;
13358
+ if (!trailingOK && count$1 != token.length) return null;
13359
+ return parseInt(token.substr(0, count$1), 10);
13302
13360
  }
13303
13361
  function parseTime(token) {
13304
13362
  const parts = token.split(":");
@@ -13765,14 +13823,14 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13765
13823
  cb = url$1;
13766
13824
  return cb(new Error("No URL was specified"));
13767
13825
  }
13768
- const context = getCookieContext(url$1);
13826
+ const context$1 = getCookieContext(url$1);
13769
13827
  if (validators.isFunction(options)) {
13770
13828
  cb = options;
13771
13829
  options = {};
13772
13830
  }
13773
13831
  validators.validate(validators.isFunction(cb), cb);
13774
13832
  if (!validators.isNonEmptyString(cookie) && !validators.isObject(cookie) && cookie instanceof String && cookie.length == 0) return cb(null);
13775
- const host = canonicalDomain(context.hostname);
13833
+ const host = canonicalDomain(context$1.hostname);
13776
13834
  const loose = options.loose || this.enableLooseMode;
13777
13835
  let sameSiteContext = null;
13778
13836
  if (options.sameSiteContext) {
@@ -13811,7 +13869,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13811
13869
  cookie.domain = host;
13812
13870
  }
13813
13871
  if (!cookie.path || cookie.path[0] !== "/") {
13814
- cookie.path = defaultPath(context.pathname);
13872
+ cookie.path = defaultPath(context$1.pathname);
13815
13873
  cookie.pathIsDefault = true;
13816
13874
  }
13817
13875
  if (options.http === false && cookie.httpOnly) {
@@ -13866,17 +13924,17 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13866
13924
  }
13867
13925
  getCookies(url$1, options, cb) {
13868
13926
  validators.validate(validators.isUrlStringOrObject(url$1), cb, url$1);
13869
- const context = getCookieContext(url$1);
13927
+ const context$1 = getCookieContext(url$1);
13870
13928
  if (validators.isFunction(options)) {
13871
13929
  cb = options;
13872
13930
  options = {};
13873
13931
  }
13874
13932
  validators.validate(validators.isObject(options), cb, options);
13875
13933
  validators.validate(validators.isFunction(cb), cb);
13876
- const host = canonicalDomain(context.hostname);
13877
- const path = context.pathname || "/";
13934
+ const host = canonicalDomain(context$1.hostname);
13935
+ const path = context$1.pathname || "/";
13878
13936
  let secure = options.secure;
13879
- if (secure == null && context.protocol && (context.protocol == "https:" || context.protocol == "wss:")) secure = true;
13937
+ if (secure == null && context$1.protocol && (context$1.protocol == "https:" || context$1.protocol == "wss:")) secure = true;
13880
13938
  let sameSiteLevel = 0;
13881
13939
  if (options.sameSiteContext) {
13882
13940
  const sameSiteContext = checkSameSiteContext(options.sameSiteContext);
@@ -13939,11 +13997,11 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13939
13997
  }
13940
13998
  serialize(cb) {
13941
13999
  validators.validate(validators.isFunction(cb), cb);
13942
- let type = this.store.constructor.name;
13943
- if (validators.isObject(type)) type = null;
14000
+ let type$2 = this.store.constructor.name;
14001
+ if (validators.isObject(type$2)) type$2 = null;
13944
14002
  const serialized = {
13945
14003
  version: `tough-cookie@${VERSION}`,
13946
- storeType: type,
14004
+ storeType: type$2,
13947
14005
  rejectPublicSuffixes: !!this.rejectPublicSuffixes,
13948
14006
  enableLooseMode: !!this.enableLooseMode,
13949
14007
  allowSpecialUseDomain: !!this.allowSpecialUseDomain,
@@ -14293,7 +14351,7 @@ tough-cookie/lib/cookie.js:
14293
14351
  */
14294
14352
 
14295
14353
  //#endregion
14296
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/cookieStore.mjs
14354
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/cookieStore.mjs
14297
14355
  const { Cookie, CookieJar, Store, MemoryCookieStore, domainMatch, pathMatch } = source_default$2;
14298
14356
  var WebStorageCookieStore = class extends Store {
14299
14357
  storage;
@@ -14441,17 +14499,10 @@ var __copyProps$2 = (to, from, except, desc) => {
14441
14499
  }
14442
14500
  return to;
14443
14501
  };
14444
- var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$2(
14445
- // If the importer is in node compatibility mode or this is not an ESM
14446
- // file that has been converted to a CommonJS file using a Babel-
14447
- // compatible transform (i.e. "__esModule" has not been set), then set
14448
- // "default" to the CommonJS "module.exports" for node compatibility.
14449
- isNodeMode || !mod || !mod.__esModule ? __defProp$2(target, "default", {
14450
- value: mod,
14451
- enumerable: true
14452
- }) : target,
14453
- mod
14454
- ));
14502
+ var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$2(isNodeMode || !mod || !mod.__esModule ? __defProp$2(target, "default", {
14503
+ value: mod,
14504
+ enumerable: true
14505
+ }) : target, mod));
14455
14506
  var require_codes = __commonJS$3({ "node_modules/statuses/codes.json"(exports$1, module$1) {
14456
14507
  module$1.exports = {
14457
14508
  "100": "Continue",
@@ -14548,9 +14599,9 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
14548
14599
  function createMessageToStatusCodeMap(codes2) {
14549
14600
  var map = {};
14550
14601
  Object.keys(codes2).forEach(function forEachCode(code) {
14551
- var message$2 = codes2[code];
14602
+ var message$3 = codes2[code];
14552
14603
  var status3 = Number(code);
14553
- map[message$2.toLowerCase()] = status3;
14604
+ map[message$3.toLowerCase()] = status3;
14554
14605
  });
14555
14606
  return map;
14556
14607
  }
@@ -14559,9 +14610,9 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
14559
14610
  return Number(code);
14560
14611
  });
14561
14612
  }
14562
- function getStatusCode(message$2) {
14563
- var msg = message$2.toLowerCase();
14564
- if (!Object.prototype.hasOwnProperty.call(status2.code, msg)) throw new Error("invalid status message: \"" + message$2 + "\"");
14613
+ function getStatusCode(message$3) {
14614
+ var msg = message$3.toLowerCase();
14615
+ if (!Object.prototype.hasOwnProperty.call(status2.code, msg)) throw new Error("invalid status message: \"" + message$3 + "\"");
14565
14616
  return status2.code[msg];
14566
14617
  }
14567
14618
  function getStatusMessage(code) {
@@ -14609,17 +14660,10 @@ var __copyProps$1 = (to, from, except, desc) => {
14609
14660
  }
14610
14661
  return to;
14611
14662
  };
14612
- var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
14613
- // If the importer is in node compatibility mode or this is not an ESM
14614
- // file that has been converted to a CommonJS file using a Babel-
14615
- // compatible transform (i.e. "__esModule" has not been set), then set
14616
- // "default" to the CommonJS "module.exports" for node compatibility.
14617
- isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
14618
- value: mod,
14619
- enumerable: true
14620
- }) : target,
14621
- mod
14622
- ));
14663
+ var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
14664
+ value: mod,
14665
+ enumerable: true
14666
+ }) : target, mod));
14623
14667
  var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-cookie.js"(exports$1, module$1) {
14624
14668
  "use strict";
14625
14669
  var defaultParseOptions = {
@@ -14904,17 +14948,17 @@ var Headers$1 = class _Headers {
14904
14948
  };
14905
14949
 
14906
14950
  //#endregion
14907
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
14908
- const { message: message$1 } = source_default$1;
14951
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
14952
+ const { message: message$2 } = source_default$1;
14909
14953
  const kSetCookie = Symbol("kSetCookie");
14910
14954
  function normalizeResponseInit(init = {}) {
14911
- const status = init?.status || 200;
14912
- const statusText = init?.statusText || message$1[status] || "";
14955
+ const status$1 = init?.status || 200;
14956
+ const statusText = init?.statusText || message$2[status$1] || "";
14913
14957
  const headers = new Headers(init?.headers);
14914
14958
  return {
14915
14959
  ...init,
14916
14960
  headers,
14917
- status,
14961
+ status: status$1,
14918
14962
  statusText
14919
14963
  };
14920
14964
  }
@@ -14940,14 +14984,14 @@ function decorateResponse(response, init) {
14940
14984
  }
14941
14985
 
14942
14986
  //#endregion
14943
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs
14987
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs
14944
14988
  function storeResponseCookies(request, response) {
14945
14989
  const responseCookies = Reflect.get(response, kSetCookie);
14946
14990
  if (responseCookies) cookieStore.setCookie(responseCookies, request.url);
14947
14991
  }
14948
14992
 
14949
14993
  //#endregion
14950
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/handleRequest.mjs
14994
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/handleRequest.mjs
14951
14995
  async function handleRequest(request, requestId, handlers, options, emitter, handleRequestOptions) {
14952
14996
  emitter.emit("request:start", {
14953
14997
  request,
@@ -15022,13 +15066,13 @@ async function handleRequest(request, requestId, handlers, options, emitter, han
15022
15066
  }
15023
15067
 
15024
15068
  //#endregion
15025
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isObject.mjs
15069
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isObject.mjs
15026
15070
  function isObject(value) {
15027
15071
  return value != null && typeof value === "object" && !Array.isArray(value);
15028
15072
  }
15029
15073
 
15030
15074
  //#endregion
15031
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/mergeRight.mjs
15075
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/mergeRight.mjs
15032
15076
  function mergeRight(left, right) {
15033
15077
  return Object.entries(right).reduce((result, [key, rightValue]) => {
15034
15078
  const leftValue = result[key];
@@ -15111,7 +15155,7 @@ var require_dist = require_chunk.__commonJS({ "../../node_modules/.pnpm/path-to-
15111
15155
  continue;
15112
15156
  }
15113
15157
  if (char === "(") {
15114
- var count = 1;
15158
+ var count$1 = 1;
15115
15159
  var pattern = "";
15116
15160
  var j = i + 1;
15117
15161
  if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
@@ -15121,18 +15165,18 @@ var require_dist = require_chunk.__commonJS({ "../../node_modules/.pnpm/path-to-
15121
15165
  continue;
15122
15166
  }
15123
15167
  if (str[j] === ")") {
15124
- count--;
15125
- if (count === 0) {
15168
+ count$1--;
15169
+ if (count$1 === 0) {
15126
15170
  j++;
15127
15171
  break;
15128
15172
  }
15129
15173
  } else if (str[j] === "(") {
15130
- count++;
15174
+ count$1++;
15131
15175
  if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
15132
15176
  }
15133
15177
  pattern += str[j++];
15134
15178
  }
15135
- if (count) throw new TypeError("Unbalanced pattern at ".concat(i));
15179
+ if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
15136
15180
  if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
15137
15181
  tokens.push({
15138
15182
  type: "PATTERN",
@@ -15166,14 +15210,14 @@ var require_dist = require_chunk.__commonJS({ "../../node_modules/.pnpm/path-to-
15166
15210
  var key = 0;
15167
15211
  var i = 0;
15168
15212
  var path = "";
15169
- var tryConsume = function(type) {
15170
- if (i < tokens.length && tokens[i].type === type) return tokens[i++].value;
15213
+ var tryConsume = function(type$2) {
15214
+ if (i < tokens.length && tokens[i].type === type$2) return tokens[i++].value;
15171
15215
  };
15172
- var mustConsume = function(type) {
15173
- var value$1 = tryConsume(type);
15216
+ var mustConsume = function(type$2) {
15217
+ var value$1 = tryConsume(type$2);
15174
15218
  if (value$1 !== void 0) return value$1;
15175
15219
  var _a$2 = tokens[i], nextType = _a$2.type, index = _a$2.index;
15176
- throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
15220
+ throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type$2));
15177
15221
  };
15178
15222
  var consumeText = function() {
15179
15223
  var result$1 = "";
@@ -15308,12 +15352,12 @@ var require_dist = require_chunk.__commonJS({ "../../node_modules/.pnpm/path-to-
15308
15352
  /**
15309
15353
  * Create path match function from `path-to-regexp` spec.
15310
15354
  */
15311
- function match(str, options) {
15355
+ function match$1(str, options) {
15312
15356
  var keys = [];
15313
15357
  var re = pathToRegexp(str, keys, options);
15314
15358
  return regexpToFunction(re, keys, options);
15315
15359
  }
15316
- exports.match = match;
15360
+ exports.match = match$1;
15317
15361
  /**
15318
15362
  * Create a path match function from `path-to-regexp` output.
15319
15363
  */
@@ -15447,10 +15491,9 @@ var require_dist = require_chunk.__commonJS({ "../../node_modules/.pnpm/path-to-
15447
15491
  }
15448
15492
  exports.pathToRegexp = pathToRegexp;
15449
15493
  } });
15450
- var import_dist = require_chunk.__toESM(require_dist(), 1);
15451
15494
 
15452
15495
  //#endregion
15453
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs
15496
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs
15454
15497
  const REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g;
15455
15498
  function getSearchParams(path) {
15456
15499
  return new URL(`/${path}`, "http://localhost").searchParams;
@@ -15461,13 +15504,13 @@ function cleanUrl(path) {
15461
15504
  }
15462
15505
 
15463
15506
  //#endregion
15464
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
15507
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
15465
15508
  function isAbsoluteUrl(url$1) {
15466
15509
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url$1);
15467
15510
  }
15468
15511
 
15469
15512
  //#endregion
15470
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
15513
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
15471
15514
  function getAbsoluteUrl(path, baseUrl) {
15472
15515
  if (isAbsoluteUrl(path)) return path;
15473
15516
  if (path.startsWith("*")) return path;
@@ -15476,7 +15519,7 @@ function getAbsoluteUrl(path, baseUrl) {
15476
15519
  }
15477
15520
 
15478
15521
  //#endregion
15479
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
15522
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
15480
15523
  function normalizePath(path, baseUrl) {
15481
15524
  if (path instanceof RegExp) return path;
15482
15525
  const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl);
@@ -15484,7 +15527,8 @@ function normalizePath(path, baseUrl) {
15484
15527
  }
15485
15528
 
15486
15529
  //#endregion
15487
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
15530
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
15531
+ var import_dist = require_chunk.__toESM(require_dist(), 1);
15488
15532
  function coercePath(path) {
15489
15533
  return path.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g, (_, parameterName, wildcard) => {
15490
15534
  const expression = "(.*)";
@@ -15505,7 +15549,7 @@ function matchRequestUrl(url$1, path, baseUrl) {
15505
15549
  }
15506
15550
 
15507
15551
  //#endregion
15508
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
15552
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
15509
15553
  const SOURCE_FRAME = /[\/\\]msw[\/\\]src[\/\\](.+)/;
15510
15554
  const BUILD_FRAME = /(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;
15511
15555
  function getCallFrame(error$2) {
@@ -15521,7 +15565,7 @@ function getCallFrame(error$2) {
15521
15565
  }
15522
15566
 
15523
15567
  //#endregion
15524
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/handlers/WebSocketHandler.mjs
15568
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/WebSocketHandler.mjs
15525
15569
  const kEmitter$1 = Symbol("kEmitter");
15526
15570
  const kDispatchEvent = Symbol("kDispatchEvent");
15527
15571
  const kSender = Symbol("kSender");
@@ -15543,8 +15587,8 @@ var WebSocketHandler = class {
15543
15587
  const { data: connection } = args.event;
15544
15588
  const { url: clientUrl } = connection.client;
15545
15589
  clientUrl.pathname = clientUrl.pathname.replace(/^\/socket.io\//, "/");
15546
- const match$1 = matchRequestUrl(clientUrl, this.url);
15547
- return { match: match$1 };
15590
+ const match$2 = matchRequestUrl(clientUrl, this.url);
15591
+ return { match: match$2 };
15548
15592
  }
15549
15593
  predicate(args) {
15550
15594
  return args.parsedResult.match.matches;
@@ -15592,7 +15636,7 @@ function createStopPropagationListener(handler) {
15592
15636
  }
15593
15637
 
15594
15638
  //#endregion
15595
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
15639
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
15596
15640
  function hasConfigurableGlobal(propertyName) {
15597
15641
  const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
15598
15642
  if (typeof descriptor === "undefined") return false;
@@ -15606,7 +15650,7 @@ function hasConfigurableGlobal(propertyName) {
15606
15650
  }
15607
15651
 
15608
15652
  //#endregion
15609
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
15653
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
15610
15654
  function getGlobalSymbol(symbol) {
15611
15655
  return globalThis[symbol] || void 0;
15612
15656
  }
@@ -15638,34 +15682,34 @@ var Interceptor = class {
15638
15682
  * Returns an already running interceptor instance if it's present.
15639
15683
  */
15640
15684
  apply() {
15641
- const logger$1 = this.logger.extend("apply");
15642
- logger$1.info("applying the interceptor...");
15685
+ const logger$2 = this.logger.extend("apply");
15686
+ logger$2.info("applying the interceptor...");
15643
15687
  if (this.readyState === "APPLIED") {
15644
- logger$1.info("intercepted already applied!");
15688
+ logger$2.info("intercepted already applied!");
15645
15689
  return;
15646
15690
  }
15647
15691
  const shouldApply = this.checkEnvironment();
15648
15692
  if (!shouldApply) {
15649
- logger$1.info("the interceptor cannot be applied in this environment!");
15693
+ logger$2.info("the interceptor cannot be applied in this environment!");
15650
15694
  return;
15651
15695
  }
15652
15696
  this.readyState = "APPLYING";
15653
15697
  const runningInstance = this.getInstance();
15654
15698
  if (runningInstance) {
15655
- logger$1.info("found a running instance, reusing...");
15699
+ logger$2.info("found a running instance, reusing...");
15656
15700
  this.on = (event, listener) => {
15657
- logger$1.info("proxying the \"%s\" listener", event);
15701
+ logger$2.info("proxying the \"%s\" listener", event);
15658
15702
  runningInstance.emitter.addListener(event, listener);
15659
15703
  this.subscriptions.push(() => {
15660
15704
  runningInstance.emitter.removeListener(event, listener);
15661
- logger$1.info("removed proxied \"%s\" listener!", event);
15705
+ logger$2.info("removed proxied \"%s\" listener!", event);
15662
15706
  });
15663
15707
  return this;
15664
15708
  };
15665
15709
  this.readyState = "APPLIED";
15666
15710
  return;
15667
15711
  }
15668
- logger$1.info("no running instance found, setting up a new instance...");
15712
+ logger$2.info("no running instance found, setting up a new instance...");
15669
15713
  this.setup();
15670
15714
  this.setInstance();
15671
15715
  this.readyState = "APPLIED";
@@ -15680,12 +15724,12 @@ var Interceptor = class {
15680
15724
  * Listen to the interceptor's public events.
15681
15725
  */
15682
15726
  on(event, listener) {
15683
- const logger$1 = this.logger.extend("on");
15727
+ const logger$2 = this.logger.extend("on");
15684
15728
  if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
15685
- logger$1.info("cannot listen to events, already disposed!");
15729
+ logger$2.info("cannot listen to events, already disposed!");
15686
15730
  return this;
15687
15731
  }
15688
- logger$1.info("adding \"%s\" event listener:", event, listener);
15732
+ logger$2.info("adding \"%s\" event listener:", event, listener);
15689
15733
  this.emitter.on(event, listener);
15690
15734
  return this;
15691
15735
  }
@@ -15705,27 +15749,27 @@ var Interceptor = class {
15705
15749
  * Disposes of any side-effects this interceptor has introduced.
15706
15750
  */
15707
15751
  dispose() {
15708
- const logger$1 = this.logger.extend("dispose");
15752
+ const logger$2 = this.logger.extend("dispose");
15709
15753
  if (this.readyState === "DISPOSED") {
15710
- logger$1.info("cannot dispose, already disposed!");
15754
+ logger$2.info("cannot dispose, already disposed!");
15711
15755
  return;
15712
15756
  }
15713
- logger$1.info("disposing the interceptor...");
15757
+ logger$2.info("disposing the interceptor...");
15714
15758
  this.readyState = "DISPOSING";
15715
15759
  if (!this.getInstance()) {
15716
- logger$1.info("no interceptors running, skipping dispose...");
15760
+ logger$2.info("no interceptors running, skipping dispose...");
15717
15761
  return;
15718
15762
  }
15719
15763
  this.clearInstance();
15720
- logger$1.info("global symbol deleted:", getGlobalSymbol(this.symbol));
15764
+ logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
15721
15765
  if (this.subscriptions.length > 0) {
15722
- logger$1.info("disposing of %d subscriptions...", this.subscriptions.length);
15766
+ logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
15723
15767
  for (const dispose of this.subscriptions) dispose();
15724
15768
  this.subscriptions = [];
15725
- logger$1.info("disposed of all subscriptions!", this.subscriptions.length);
15769
+ logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
15726
15770
  }
15727
15771
  this.emitter.removeAllListeners();
15728
- logger$1.info("destroyed the listener!");
15772
+ logger$2.info("destroyed the listener!");
15729
15773
  this.readyState = "DISPOSED";
15730
15774
  }
15731
15775
  getInstance() {
@@ -15748,7 +15792,7 @@ function createRequestId() {
15748
15792
  }
15749
15793
 
15750
15794
  //#endregion
15751
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
15795
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
15752
15796
  function bindEvent(target, event) {
15753
15797
  Object.defineProperties(event, {
15754
15798
  target: {
@@ -15767,8 +15811,8 @@ function bindEvent(target, event) {
15767
15811
  var kCancelable = Symbol("kCancelable");
15768
15812
  var kDefaultPrevented = Symbol("kDefaultPrevented");
15769
15813
  var CancelableMessageEvent = class extends MessageEvent {
15770
- constructor(type, init) {
15771
- super(type, init);
15814
+ constructor(type$2, init) {
15815
+ super(type$2, init);
15772
15816
  this[kCancelable] = !!init.cancelable;
15773
15817
  this[kDefaultPrevented] = false;
15774
15818
  }
@@ -15789,16 +15833,16 @@ var CancelableMessageEvent = class extends MessageEvent {
15789
15833
  }
15790
15834
  };
15791
15835
  var CloseEvent = class extends Event {
15792
- constructor(type, init = {}) {
15793
- super(type, init);
15836
+ constructor(type$2, init = {}) {
15837
+ super(type$2, init);
15794
15838
  this.code = init.code === void 0 ? 0 : init.code;
15795
15839
  this.reason = init.reason === void 0 ? "" : init.reason;
15796
15840
  this.wasClean = init.wasClean === void 0 ? false : init.wasClean;
15797
15841
  }
15798
15842
  };
15799
15843
  var CancelableCloseEvent = class extends CloseEvent {
15800
- constructor(type, init = {}) {
15801
- super(type, init);
15844
+ constructor(type$2, init = {}) {
15845
+ super(type$2, init);
15802
15846
  this[kCancelable] = !!init.cancelable;
15803
15847
  this[kDefaultPrevented] = false;
15804
15848
  }
@@ -15828,13 +15872,13 @@ var WebSocketClientConnection = class {
15828
15872
  this.url = new URL(socket.url);
15829
15873
  this[kEmitter] = new EventTarget();
15830
15874
  this.transport.addEventListener("outgoing", (event) => {
15831
- const message$2 = bindEvent(this.socket, new CancelableMessageEvent("message", {
15875
+ const message$3 = bindEvent(this.socket, new CancelableMessageEvent("message", {
15832
15876
  data: event.data,
15833
15877
  origin: event.origin,
15834
15878
  cancelable: true
15835
15879
  }));
15836
- this[kEmitter].dispatchEvent(message$2);
15837
- if (message$2.defaultPrevented) event.preventDefault();
15880
+ this[kEmitter].dispatchEvent(message$3);
15881
+ if (message$3.defaultPrevented) event.preventDefault();
15838
15882
  });
15839
15883
  this.transport.addEventListener("close", (event) => {
15840
15884
  this[kEmitter].dispatchEvent(bindEvent(this.socket, new CloseEvent("close", event)));
@@ -15843,7 +15887,7 @@ var WebSocketClientConnection = class {
15843
15887
  /**
15844
15888
  * Listen for the outgoing events from the connected WebSocket client.
15845
15889
  */
15846
- addEventListener(type, listener, options) {
15890
+ addEventListener(type$2, listener, options) {
15847
15891
  if (!Reflect.has(listener, kBoundListener)) {
15848
15892
  const boundListener = listener.bind(this.socket);
15849
15893
  Object.defineProperty(listener, kBoundListener, {
@@ -15852,7 +15896,7 @@ var WebSocketClientConnection = class {
15852
15896
  configurable: false
15853
15897
  });
15854
15898
  }
15855
- this[kEmitter].addEventListener(type, Reflect.get(listener, kBoundListener), options);
15899
+ this[kEmitter].addEventListener(type$2, Reflect.get(listener, kBoundListener), options);
15856
15900
  }
15857
15901
  /**
15858
15902
  * Removes the listener for the given event.
@@ -15975,11 +16019,11 @@ var WebSocketOverride = class extends EventTarget {
15975
16019
  this._onclose = null;
15976
16020
  });
15977
16021
  }
15978
- addEventListener(type, listener, options) {
15979
- return super.addEventListener(type, listener, options);
16022
+ addEventListener(type$2, listener, options) {
16023
+ return super.addEventListener(type$2, listener, options);
15980
16024
  }
15981
- removeEventListener(type, callback, options) {
15982
- return super.removeEventListener(type, callback, options);
16025
+ removeEventListener(type$2, callback, options) {
16026
+ return super.removeEventListener(type$2, callback, options);
15983
16027
  }
15984
16028
  };
15985
16029
  WebSocketOverride.CONNECTING = 0;
@@ -16118,13 +16162,11 @@ var WebSocketServerConnection = class {
16118
16162
  * dispatch them straight away.
16119
16163
  */
16120
16164
  this.client,
16121
- // Clone the message event again to prevent
16122
- // the "already being dispatched" exception.
16123
16165
  new MessageEvent("message", {
16124
16166
  data: event.data,
16125
16167
  origin: event.origin
16126
16168
  })
16127
- ));
16169
+ ));
16128
16170
  }
16129
16171
  handleMockClose(_event) {
16130
16172
  if (this.realWebSocket) this.realWebSocket.close();
@@ -16149,20 +16191,15 @@ var WebSocketClassTransport = class extends EventTarget {
16149
16191
  this.dispatchEvent(bindEvent(this.socket, new CloseEvent("close", event)));
16150
16192
  });
16151
16193
  this.socket[kOnSend] = (data) => {
16152
- this.dispatchEvent(bindEvent(
16153
- this.socket,
16154
- // Dispatch this as cancelable because "client" connection
16155
- // re-creates this message event (cannot dispatch the same event).
16156
- new CancelableMessageEvent("outgoing", {
16157
- data,
16158
- origin: this.socket.url,
16159
- cancelable: true
16160
- })
16161
- ));
16194
+ this.dispatchEvent(bindEvent(this.socket, new CancelableMessageEvent("outgoing", {
16195
+ data,
16196
+ origin: this.socket.url,
16197
+ cancelable: true
16198
+ })));
16162
16199
  };
16163
16200
  }
16164
- addEventListener(type, callback, options) {
16165
- return super.addEventListener(type, callback, options);
16201
+ addEventListener(type$2, callback, options) {
16202
+ return super.addEventListener(type$2, callback, options);
16166
16203
  }
16167
16204
  dispatchEvent(event) {
16168
16205
  return super.dispatchEvent(event);
@@ -16185,7 +16222,7 @@ var WebSocketClassTransport = class extends EventTarget {
16185
16222
  data,
16186
16223
  origin: this.socket.url
16187
16224
  })
16188
- ));
16225
+ ));
16189
16226
  };
16190
16227
  if (this.socket.readyState === this.socket.CONNECTING) this.socket.addEventListener("open", () => {
16191
16228
  dispatchEvent();
@@ -16253,11 +16290,11 @@ var WebSocketInterceptor = _WebSocketInterceptor;
16253
16290
  WebSocketInterceptor.symbol = Symbol("websocket");
16254
16291
 
16255
16292
  //#endregion
16256
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/ws/webSocketInterceptor.mjs
16293
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/ws/webSocketInterceptor.mjs
16257
16294
  const webSocketInterceptor = new WebSocketInterceptor();
16258
16295
 
16259
16296
  //#endregion
16260
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isHandlerKind.mjs
16297
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isHandlerKind.mjs
16261
16298
  function isHandlerKind(kind) {
16262
16299
  return (input) => {
16263
16300
  return input != null && typeof input === "object" && "__kind" in input && input.__kind === kind;
@@ -16265,7 +16302,7 @@ function isHandlerKind(kind) {
16265
16302
  }
16266
16303
 
16267
16304
  //#endregion
16268
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/ws/handleWebSocketEvent.mjs
16305
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/ws/handleWebSocketEvent.mjs
16269
16306
  function handleWebSocketEvent(options) {
16270
16307
  webSocketInterceptor.on("connection", async (connection) => {
16271
16308
  const handlers = options.getHandlers();
@@ -16299,7 +16336,7 @@ function handleWebSocketEvent(options) {
16299
16336
  }
16300
16337
 
16301
16338
  //#endregion
16302
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/node/index.mjs
16339
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/node/index.mjs
16303
16340
  var DEFAULT_LISTEN_OPTIONS = { onUnhandledRequest: "warn" };
16304
16341
  var SetupServerCommonApi = class extends SetupApi {
16305
16342
  interceptor;
@@ -16308,7 +16345,7 @@ var SetupServerCommonApi = class extends SetupApi {
16308
16345
  super(...handlers);
16309
16346
  this.interceptor = new BatchInterceptor({
16310
16347
  name: "setup-server",
16311
- interceptors: interceptors.map((Interceptor$2) => new Interceptor$2())
16348
+ interceptors
16312
16349
  });
16313
16350
  this.resolvedOptions = {};
16314
16351
  }
@@ -16378,9 +16415,9 @@ var AsyncHandlersController = class {
16378
16415
  this.context.handlers.unshift(...runtimeHandlers);
16379
16416
  }
16380
16417
  reset(nextHandlers) {
16381
- const context = this.context;
16382
- context.handlers = [];
16383
- context.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context.initialHandlers;
16418
+ const context$1 = this.context;
16419
+ context$1.handlers = [];
16420
+ context$1.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context$1.initialHandlers;
16384
16421
  }
16385
16422
  currentHandlers() {
16386
16423
  const { initialHandlers, handlers } = this.context;
@@ -16388,12 +16425,12 @@ var AsyncHandlersController = class {
16388
16425
  }
16389
16426
  };
16390
16427
  var SetupServerApi = class extends SetupServerCommonApi {
16391
- constructor(handlers) {
16392
- super([
16393
- ClientRequestInterceptor,
16394
- XMLHttpRequestInterceptor,
16395
- FetchInterceptor
16396
- ], handlers);
16428
+ constructor(handlers, interceptors = [
16429
+ new ClientRequestInterceptor(),
16430
+ new XMLHttpRequestInterceptor(),
16431
+ new FetchInterceptor()
16432
+ ]) {
16433
+ super(interceptors, handlers);
16397
16434
  this.handlersController = new AsyncHandlersController(handlers);
16398
16435
  }
16399
16436
  boundary(callback) {
@@ -16414,14 +16451,14 @@ var setupServer = (...handlers) => {
16414
16451
  };
16415
16452
 
16416
16453
  //#endregion
16417
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
16454
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
16418
16455
  function isIterable(fn) {
16419
16456
  if (!fn) return false;
16420
16457
  return Reflect.has(fn, Symbol.iterator) || Reflect.has(fn, Symbol.asyncIterator);
16421
16458
  }
16422
16459
 
16423
16460
  //#endregion
16424
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
16461
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
16425
16462
  var RequestHandler = class RequestHandler {
16426
16463
  static cache = /* @__PURE__ */ new WeakMap();
16427
16464
  __kind;
@@ -16552,21 +16589,21 @@ var RequestHandler = class RequestHandler {
16552
16589
  };
16553
16590
 
16554
16591
  //#endregion
16555
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isStringEqual.mjs
16592
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isStringEqual.mjs
16556
16593
  function isStringEqual(actual, expected) {
16557
16594
  return actual.toLowerCase() === expected.toLowerCase();
16558
16595
  }
16559
16596
 
16560
16597
  //#endregion
16561
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
16562
- function getStatusCodeColor(status) {
16563
- if (status < 300) return "#69AB32";
16564
- if (status < 400) return "#F0BB4B";
16598
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
16599
+ function getStatusCodeColor(status$1) {
16600
+ if (status$1 < 300) return "#69AB32";
16601
+ if (status$1 < 400) return "#F0BB4B";
16565
16602
  return "#E95F5D";
16566
16603
  }
16567
16604
 
16568
16605
  //#endregion
16569
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getTimestamp.mjs
16606
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getTimestamp.mjs
16570
16607
  function getTimestamp(options) {
16571
16608
  const now = /* @__PURE__ */ new Date();
16572
16609
  const timestamp = `${now.getHours().toString().padStart(2, "0")}:${now.getMinutes().toString().padStart(2, "0")}:${now.getSeconds().toString().padStart(2, "0")}`;
@@ -16575,7 +16612,7 @@ function getTimestamp(options) {
16575
16612
  }
16576
16613
 
16577
16614
  //#endregion
16578
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeRequest.mjs
16615
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeRequest.mjs
16579
16616
  async function serializeRequest(request) {
16580
16617
  const requestClone = request.clone();
16581
16618
  const requestText = await requestClone.text();
@@ -16588,13 +16625,13 @@ async function serializeRequest(request) {
16588
16625
  }
16589
16626
 
16590
16627
  //#endregion
16591
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
16592
- const { message } = source_default$1;
16628
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
16629
+ const { message: message$1 } = source_default$1;
16593
16630
  async function serializeResponse(response) {
16594
16631
  const responseClone = response.clone();
16595
16632
  const responseText = await responseClone.text();
16596
16633
  const responseStatus = responseClone.status || 200;
16597
- const responseStatusText = responseClone.statusText || message[responseStatus] || "OK";
16634
+ const responseStatusText = responseClone.statusText || message$1[responseStatus] || "OK";
16598
16635
  return {
16599
16636
  status: responseStatus,
16600
16637
  statusText: responseStatusText,
@@ -16623,17 +16660,10 @@ var __copyProps = (to, from, except, desc) => {
16623
16660
  }
16624
16661
  return to;
16625
16662
  };
16626
- var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16627
- // If the importer is in node compatibility mode or this is not an ESM
16628
- // file that has been converted to a CommonJS file using a Babel-
16629
- // compatible transform (i.e. "__esModule" has not been set), then set
16630
- // "default" to the CommonJS "module.exports" for node compatibility.
16631
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
16632
- value: mod,
16633
- enumerable: true
16634
- }) : target,
16635
- mod
16636
- ));
16663
+ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
16664
+ value: mod,
16665
+ enumerable: true
16666
+ }) : target, mod));
16637
16667
  var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
16638
16668
  "use strict";
16639
16669
  exports$1.parse = parse$1;
@@ -16723,8 +16753,8 @@ var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
16723
16753
  if (opt.secure) str += "; Secure";
16724
16754
  if (opt.partitioned) str += "; Partitioned";
16725
16755
  if (opt.priority) {
16726
- var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
16727
- switch (priority) {
16756
+ var priority$1 = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
16757
+ switch (priority$1) {
16728
16758
  case "low":
16729
16759
  str += "; Priority=Low";
16730
16760
  break;
@@ -16785,7 +16815,7 @@ cookie/index.js:
16785
16815
  */
16786
16816
 
16787
16817
  //#endregion
16788
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/request/getRequestCookies.mjs
16818
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/getRequestCookies.mjs
16789
16819
  function parseCookies(input) {
16790
16820
  const parsedCookies = source_default.parse(input);
16791
16821
  const cookies = {};
@@ -16822,7 +16852,7 @@ function getAllRequestCookies(request) {
16822
16852
  }
16823
16853
 
16824
16854
  //#endregion
16825
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/handlers/HttpHandler.mjs
16855
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/HttpHandler.mjs
16826
16856
  var HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {
16827
16857
  HttpMethods2["HEAD"] = "HEAD";
16828
16858
  HttpMethods2["GET"] = "GET";
@@ -16856,14 +16886,14 @@ var HttpHandler = class extends RequestHandler {
16856
16886
  searchParams.forEach((_, paramName) => {
16857
16887
  queryParams.push(paramName);
16858
16888
  });
16859
- devUtils.warn(`Found a redundant usage of query parameters in the request handler URL for "${method} ${path}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`);
16889
+ devUtils.warn(`Found a redundant usage of query parameters in the request handler URL for "${method} ${path}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/http/intercepting-requestsquery-parameters`);
16860
16890
  }
16861
16891
  async parse(args) {
16862
16892
  const url$1 = new URL(args.request.url);
16863
- const match$1 = matchRequestUrl(url$1, this.info.path, args.resolutionContext?.baseUrl);
16893
+ const match$2 = matchRequestUrl(url$1, this.info.path, args.resolutionContext?.baseUrl);
16864
16894
  const cookies = getAllRequestCookies(args.request);
16865
16895
  return {
16866
- match: match$1,
16896
+ match: match$2,
16867
16897
  cookies
16868
16898
  };
16869
16899
  }
@@ -16895,7 +16925,7 @@ var HttpHandler = class extends RequestHandler {
16895
16925
  };
16896
16926
 
16897
16927
  //#endregion
16898
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/http.mjs
16928
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/http.mjs
16899
16929
  function createHttpHandler(method) {
16900
16930
  return (path, resolver, options = {}) => {
16901
16931
  return new HttpHandler(method, path, resolver, options);
@@ -16913,10 +16943,10 @@ const http$1 = {
16913
16943
  };
16914
16944
 
16915
16945
  //#endregion
16916
- //#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/HttpResponse.mjs
16946
+ //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/HttpResponse.mjs
16917
16947
  const bodyType = Symbol("bodyType");
16918
16948
  var HttpResponse = class HttpResponse extends FetchResponse {
16919
- [bodyType];
16949
+ [bodyType] = null;
16920
16950
  constructor(body, init) {
16921
16951
  const responseInit = normalizeResponseInit(init);
16922
16952
  super(body, responseInit);
@@ -17442,113 +17472,709 @@ var autofix = {
17442
17472
  var autofix_state_default = { autofix };
17443
17473
 
17444
17474
  //#endregion
17445
- //#region ../mcp-server-mocks/dist/index.js
17446
- const OrganizationPayload = {
17447
- id: "4509106740723712",
17448
- slug: "sentry-mcp-evals",
17449
- name: "sentry-mcp-evals",
17450
- links: {
17451
- regionUrl: "https://us.sentry.io",
17452
- organizationUrl: "https://sentry.io/sentry-mcp-evals"
17475
+ //#region ../mcp-server-mocks/dist/fixtures/issue.json
17476
+ var id$1 = "6507376925";
17477
+ var shareId = null;
17478
+ var shortId = "CLOUDFLARE-MCP-41";
17479
+ var title$1 = "Error: Tool list_organizations is already registered";
17480
+ var culprit$1 = "Object.fetch(index)";
17481
+ var permalink = "https://sentry-mcp-evals.sentry.io/issues/6507376925/";
17482
+ var logger = null;
17483
+ var level = "error";
17484
+ var status = "unresolved";
17485
+ var statusDetails = {};
17486
+ var substatus = "ongoing";
17487
+ var isPublic = false;
17488
+ var platform$1 = "javascript";
17489
+ var project = {
17490
+ "id": "4509062593708032",
17491
+ "name": "CLOUDFLARE-MCP",
17492
+ "slug": "CLOUDFLARE-MCP",
17493
+ "platform": "bun"
17494
+ };
17495
+ var type$1 = "error";
17496
+ var metadata$1 = {
17497
+ "value": "Tool list_organizations is already registered",
17498
+ "type": "Error",
17499
+ "filename": "index.js",
17500
+ "function": "Object.fetch",
17501
+ "in_app_frame_mix": "in-app-only",
17502
+ "sdk": {
17503
+ "name": "sentry.javascript.cloudflare",
17504
+ "name_normalized": "sentry.javascript.cloudflare"
17505
+ },
17506
+ "severity": 0,
17507
+ "severity_reason": "ml",
17508
+ "initial_priority": 50,
17509
+ "title": null
17510
+ };
17511
+ var numComments = 0;
17512
+ var assignedTo = null;
17513
+ var isBookmarked = false;
17514
+ var isSubscribed = false;
17515
+ var subscriptionDetails = null;
17516
+ var hasSeen = true;
17517
+ var annotations = [];
17518
+ var issueType = "error";
17519
+ var issueCategory = "error";
17520
+ var priority = "medium";
17521
+ var priorityLockedAt = null;
17522
+ var isUnhandled = true;
17523
+ var count = "25";
17524
+ var userCount = 1;
17525
+ var firstSeen = "2025-04-03T22:51:19.403000Z";
17526
+ var lastSeen = "2025-04-12T11:34:11Z";
17527
+ var firstRelease = null;
17528
+ var lastRelease = null;
17529
+ var activity = [{
17530
+ "id": "4633815464",
17531
+ "user": null,
17532
+ "type": "auto_set_ongoing",
17533
+ "data": { "after_days": 7 },
17534
+ "dateCreated": "2025-04-10T22:55:22.411699Z"
17535
+ }, {
17536
+ "id": "0",
17537
+ "user": null,
17538
+ "type": "first_seen",
17539
+ "data": { "priority": "medium" },
17540
+ "dateCreated": "2025-04-03T22:51:19.403000Z"
17541
+ }];
17542
+ var openPeriods = [{
17543
+ "start": "2025-04-03T22:51:19.403000Z",
17544
+ "end": null,
17545
+ "duration": null,
17546
+ "isOpen": true,
17547
+ "lastChecked": "2025-04-12T11:34:11.310000Z"
17548
+ }];
17549
+ var seenBy = [{
17550
+ "id": "1",
17551
+ "name": "David Cramer",
17552
+ "username": "david@example.com",
17553
+ "email": "david@example.com",
17554
+ "avatarUrl": null,
17555
+ "isActive": true,
17556
+ "hasPasswordAuth": true,
17557
+ "isManaged": false,
17558
+ "dateJoined": "2012-01-14T22:08:29.270831Z",
17559
+ "lastLogin": "2025-04-13T14:00:11.516852Z",
17560
+ "has2fa": true,
17561
+ "lastActive": "2025-04-13T18:10:49.177605Z",
17562
+ "isSuperuser": true,
17563
+ "isStaff": true,
17564
+ "experiments": {},
17565
+ "emails": [{
17566
+ "id": "87429",
17567
+ "email": "david@example.com",
17568
+ "is_verified": true
17569
+ }],
17570
+ "options": {
17571
+ "theme": "light",
17572
+ "language": "en",
17573
+ "stacktraceOrder": 2,
17574
+ "defaultIssueEvent": "recommended",
17575
+ "timezone": "US/Pacific",
17576
+ "clock24Hours": false
17577
+ },
17578
+ "flags": { "newsletter_consent_prompt": false },
17579
+ "avatar": {
17580
+ "avatarType": "upload",
17581
+ "avatarUuid": "51e63edabf31412aa2a955e9cf2c1ca0",
17582
+ "avatarUrl": "https://sentry.io/avatar/51e63edabf31412aa2a955e9cf2c1ca0/"
17583
+ },
17584
+ "identities": [],
17585
+ "lastSeen": "2025-04-08T23:15:26.569455Z"
17586
+ }];
17587
+ var pluginActions = [];
17588
+ var pluginIssues = [];
17589
+ var pluginContexts = [];
17590
+ var userReportCount = 0;
17591
+ var stats = {
17592
+ "24h": [
17593
+ [1744480800, 0],
17594
+ [1744484400, 0],
17595
+ [1744488e3, 0],
17596
+ [1744491600, 0],
17597
+ [1744495200, 0],
17598
+ [1744498800, 0],
17599
+ [1744502400, 0],
17600
+ [1744506e3, 0],
17601
+ [1744509600, 0],
17602
+ [1744513200, 0],
17603
+ [1744516800, 0],
17604
+ [1744520400, 0],
17605
+ [1744524e3, 0],
17606
+ [1744527600, 0],
17607
+ [1744531200, 0],
17608
+ [1744534800, 0],
17609
+ [1744538400, 0],
17610
+ [1744542e3, 0],
17611
+ [1744545600, 0],
17612
+ [1744549200, 0],
17613
+ [1744552800, 0],
17614
+ [1744556400, 0],
17615
+ [174456e4, 0],
17616
+ [1744563600, 0],
17617
+ [1744567200, 0]
17618
+ ],
17619
+ "30d": [
17620
+ [1741910400, 0],
17621
+ [1741996800, 0],
17622
+ [1742083200, 0],
17623
+ [1742169600, 0],
17624
+ [1742256e3, 0],
17625
+ [1742342400, 0],
17626
+ [1742428800, 0],
17627
+ [1742515200, 0],
17628
+ [1742601600, 0],
17629
+ [1742688e3, 0],
17630
+ [1742774400, 0],
17631
+ [1742860800, 0],
17632
+ [1742947200, 0],
17633
+ [1743033600, 0],
17634
+ [174312e4, 0],
17635
+ [1743206400, 0],
17636
+ [1743292800, 0],
17637
+ [1743379200, 0],
17638
+ [1743465600, 0],
17639
+ [1743552e3, 0],
17640
+ [1743638400, 1],
17641
+ [1743724800, 0],
17642
+ [1743811200, 0],
17643
+ [1743897600, 0],
17644
+ [1743984e3, 0],
17645
+ [1744070400, 20],
17646
+ [1744156800, 1],
17647
+ [1744243200, 1],
17648
+ [1744329600, 0],
17649
+ [1744416e3, 2],
17650
+ [1744502400, 0]
17651
+ ]
17652
+ };
17653
+ var participants = [];
17654
+ var issue_default = {
17655
+ id: id$1,
17656
+ shareId,
17657
+ shortId,
17658
+ title: title$1,
17659
+ culprit: culprit$1,
17660
+ permalink,
17661
+ logger,
17662
+ level,
17663
+ status,
17664
+ statusDetails,
17665
+ substatus,
17666
+ isPublic,
17667
+ platform: platform$1,
17668
+ project,
17669
+ type: type$1,
17670
+ metadata: metadata$1,
17671
+ numComments,
17672
+ assignedTo,
17673
+ isBookmarked,
17674
+ isSubscribed,
17675
+ subscriptionDetails,
17676
+ hasSeen,
17677
+ annotations,
17678
+ issueType,
17679
+ issueCategory,
17680
+ priority,
17681
+ priorityLockedAt,
17682
+ isUnhandled,
17683
+ count,
17684
+ userCount,
17685
+ firstSeen,
17686
+ lastSeen,
17687
+ firstRelease,
17688
+ lastRelease,
17689
+ activity,
17690
+ openPeriods,
17691
+ seenBy,
17692
+ pluginActions,
17693
+ pluginIssues,
17694
+ pluginContexts,
17695
+ userReportCount,
17696
+ stats,
17697
+ participants
17698
+ };
17699
+
17700
+ //#endregion
17701
+ //#region ../mcp-server-mocks/dist/fixtures/event.json
17702
+ var id = "7ca573c0f4814912aaa9bdc77d1a7d51";
17703
+ var groupID = "6507376925";
17704
+ var eventID = "7ca573c0f4814912aaa9bdc77d1a7d51";
17705
+ var projectID = "4509062593708032";
17706
+ var size = 5891;
17707
+ var entries = [{
17708
+ "data": {
17709
+ "values": [{
17710
+ "type": "Error",
17711
+ "value": "Tool list_organizations is already registered",
17712
+ "mechanism": {
17713
+ "type": "cloudflare",
17714
+ "handled": false
17715
+ },
17716
+ "threadId": null,
17717
+ "module": null,
17718
+ "stacktrace": {
17719
+ "frames": [
17720
+ {
17721
+ "filename": "index.js",
17722
+ "absPath": "/index.js",
17723
+ "module": "index",
17724
+ "package": null,
17725
+ "platform": null,
17726
+ "instructionAddr": null,
17727
+ "symbolAddr": null,
17728
+ "function": null,
17729
+ "rawFunction": null,
17730
+ "symbol": null,
17731
+ "context": [],
17732
+ "lineNo": 7809,
17733
+ "colNo": 27,
17734
+ "inApp": true,
17735
+ "trust": null,
17736
+ "errors": null,
17737
+ "lock": null,
17738
+ "sourceLink": null,
17739
+ "vars": null
17740
+ },
17741
+ {
17742
+ "filename": "index.js",
17743
+ "absPath": "/index.js",
17744
+ "module": "index",
17745
+ "package": null,
17746
+ "platform": null,
17747
+ "instructionAddr": null,
17748
+ "symbolAddr": null,
17749
+ "function": "OAuthProviderImpl.fetch",
17750
+ "rawFunction": null,
17751
+ "symbol": null,
17752
+ "context": [],
17753
+ "lineNo": 8029,
17754
+ "colNo": 24,
17755
+ "inApp": true,
17756
+ "trust": null,
17757
+ "errors": null,
17758
+ "lock": null,
17759
+ "sourceLink": null,
17760
+ "vars": null
17761
+ },
17762
+ {
17763
+ "filename": "index.js",
17764
+ "absPath": "/index.js",
17765
+ "module": "index",
17766
+ "package": null,
17767
+ "platform": null,
17768
+ "instructionAddr": null,
17769
+ "symbolAddr": null,
17770
+ "function": "Object.fetch",
17771
+ "rawFunction": null,
17772
+ "symbol": null,
17773
+ "context": [],
17774
+ "lineNo": 19631,
17775
+ "colNo": 28,
17776
+ "inApp": true,
17777
+ "trust": null,
17778
+ "errors": null,
17779
+ "lock": null,
17780
+ "sourceLink": null,
17781
+ "vars": null
17782
+ }
17783
+ ],
17784
+ "framesOmitted": null,
17785
+ "registers": null,
17786
+ "hasSystemFrames": true
17787
+ },
17788
+ "rawStacktrace": {
17789
+ "frames": [
17790
+ {
17791
+ "filename": "index.js",
17792
+ "absPath": "/index.js",
17793
+ "module": "index",
17794
+ "package": null,
17795
+ "platform": null,
17796
+ "instructionAddr": null,
17797
+ "symbolAddr": null,
17798
+ "function": null,
17799
+ "rawFunction": null,
17800
+ "symbol": null,
17801
+ "context": [],
17802
+ "lineNo": 7809,
17803
+ "colNo": 27,
17804
+ "inApp": true,
17805
+ "trust": null,
17806
+ "errors": null,
17807
+ "lock": null,
17808
+ "sourceLink": null,
17809
+ "vars": null
17810
+ },
17811
+ {
17812
+ "filename": "index.js",
17813
+ "absPath": "/index.js",
17814
+ "module": "index",
17815
+ "package": null,
17816
+ "platform": null,
17817
+ "instructionAddr": null,
17818
+ "symbolAddr": null,
17819
+ "function": "OAuthProviderImpl.fetch",
17820
+ "rawFunction": null,
17821
+ "symbol": null,
17822
+ "context": [],
17823
+ "lineNo": 8029,
17824
+ "colNo": 24,
17825
+ "inApp": true,
17826
+ "trust": null,
17827
+ "errors": null,
17828
+ "lock": null,
17829
+ "sourceLink": null,
17830
+ "vars": null
17831
+ },
17832
+ {
17833
+ "filename": "index.js",
17834
+ "absPath": "/index.js",
17835
+ "module": "index",
17836
+ "package": null,
17837
+ "platform": null,
17838
+ "instructionAddr": null,
17839
+ "symbolAddr": null,
17840
+ "function": "Object.fetch",
17841
+ "rawFunction": null,
17842
+ "symbol": null,
17843
+ "context": [],
17844
+ "lineNo": 19631,
17845
+ "colNo": 28,
17846
+ "inApp": true,
17847
+ "trust": null,
17848
+ "errors": null,
17849
+ "lock": null,
17850
+ "sourceLink": null,
17851
+ "vars": null
17852
+ }
17853
+ ],
17854
+ "framesOmitted": null,
17855
+ "registers": null,
17856
+ "hasSystemFrames": true
17857
+ }
17858
+ }],
17859
+ "hasSystemFrames": true,
17860
+ "excOmitted": null
17861
+ },
17862
+ "type": "exception"
17863
+ }, {
17864
+ "data": {
17865
+ "apiTarget": null,
17866
+ "method": "GET",
17867
+ "url": "https://mcp.sentry.dev/sse",
17868
+ "query": [],
17869
+ "fragment": null,
17870
+ "data": null,
17871
+ "headers": [
17872
+ ["Accept", "text/event-stream"],
17873
+ ["Accept-Encoding", "gzip, br"],
17874
+ ["Accept-Language", "*"],
17875
+ ["Authorization", "[Filtered]"],
17876
+ ["Cache-Control", "no-cache"],
17877
+ ["Cf-Ipcountry", "GB"],
17878
+ ["Cf-Ray", "92d4c7266c8f48c9"],
17879
+ ["Cf-Visitor", "{\"scheme\":\"https\"}"],
17880
+ ["Connection", "Keep-Alive"],
17881
+ ["Host", "mcp.sentry.dev"],
17882
+ ["Pragma", "no-cache"],
17883
+ ["Sec-Fetch-Mode", "cors"],
17884
+ ["User-Agent", "node"],
17885
+ ["X-Forwarded-Proto", "https"]
17886
+ ],
17887
+ "cookies": [],
17888
+ "env": null,
17889
+ "inferredContentType": null
17890
+ },
17891
+ "type": "request"
17892
+ }];
17893
+ var dist = null;
17894
+ var message = "";
17895
+ var title = "Error: Tool list_organizations is already registered";
17896
+ var location$1 = "index.js";
17897
+ var user = {
17898
+ "id": null,
17899
+ "email": null,
17900
+ "username": null,
17901
+ "ip_address": "2a06:98c0:3600::103",
17902
+ "name": null,
17903
+ "geo": {
17904
+ "country_code": "US",
17905
+ "region": "United States"
17906
+ },
17907
+ "data": null
17908
+ };
17909
+ var contexts = {
17910
+ "cloud_resource": {
17911
+ "cloud.provider": "cloudflare",
17912
+ "type": "default"
17913
+ },
17914
+ "culture": {
17915
+ "timezone": "Europe/London",
17916
+ "type": "default"
17917
+ },
17918
+ "runtime": {
17919
+ "name": "cloudflare",
17920
+ "type": "runtime"
17921
+ },
17922
+ "trace": {
17923
+ "trace_id": "3032af8bcdfe4423b937fc5c041d5d82",
17924
+ "span_id": "953da703d2a6f4c7",
17925
+ "status": "unknown",
17926
+ "client_sample_rate": 1,
17927
+ "sampled": true,
17928
+ "type": "trace"
17929
+ }
17930
+ };
17931
+ var sdk = {
17932
+ "name": "sentry.javascript.cloudflare",
17933
+ "version": "9.12.0"
17934
+ };
17935
+ var context = {};
17936
+ var packages = {};
17937
+ var type = "error";
17938
+ var metadata = {
17939
+ "filename": "index.js",
17940
+ "function": "Object.fetch",
17941
+ "in_app_frame_mix": "in-app-only",
17942
+ "type": "Error",
17943
+ "value": "Tool list_organizations is already registered"
17944
+ };
17945
+ var tags = [
17946
+ {
17947
+ "key": "environment",
17948
+ "value": "development"
17949
+ },
17950
+ {
17951
+ "key": "handled",
17952
+ "value": "no"
17953
+ },
17954
+ {
17955
+ "key": "level",
17956
+ "value": "error"
17957
+ },
17958
+ {
17959
+ "key": "mechanism",
17960
+ "value": "cloudflare"
17961
+ },
17962
+ {
17963
+ "key": "runtime.name",
17964
+ "value": "cloudflare"
17965
+ },
17966
+ {
17967
+ "key": "url",
17968
+ "value": "https://mcp.sentry.dev/sse"
17453
17969
  }
17970
+ ];
17971
+ var platform = "javascript";
17972
+ var dateReceived = "2025-04-08T21:15:04.700878Z";
17973
+ var errors = [{
17974
+ "type": "js_no_source",
17975
+ "message": "Source code was not found",
17976
+ "data": {
17977
+ "symbolicator_type": "missing_source",
17978
+ "url": "/index.js"
17979
+ }
17980
+ }];
17981
+ var occurrence = null;
17982
+ var _meta = {
17983
+ "entries": { "1": { "data": {
17984
+ "": null,
17985
+ "apiTarget": null,
17986
+ "method": null,
17987
+ "url": null,
17988
+ "query": null,
17989
+ "data": null,
17990
+ "headers": { "3": { "1": { "": {
17991
+ "rem": [[
17992
+ "@password:filter",
17993
+ "s",
17994
+ 0,
17995
+ 10
17996
+ ]],
17997
+ "len": 64,
17998
+ "chunks": [{
17999
+ "type": "redaction",
18000
+ "text": "[Filtered]",
18001
+ "rule_id": "@password:filter",
18002
+ "remark": "s"
18003
+ }]
18004
+ } } } },
18005
+ "cookies": null,
18006
+ "env": null
18007
+ } } },
18008
+ "message": null,
18009
+ "user": null,
18010
+ "contexts": null,
18011
+ "sdk": null,
18012
+ "context": null,
18013
+ "packages": null,
18014
+ "tags": {}
18015
+ };
18016
+ var crashFile = null;
18017
+ var culprit = "Object.fetch(index)";
18018
+ var dateCreated = "2025-04-08T21:15:04Z";
18019
+ var fingerprints = ["60d1c667b173018c004e399b29dc927d"];
18020
+ var groupingConfig = {
18021
+ "enhancements": "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
18022
+ "id": "newstyle:2023-01-11"
17454
18023
  };
17455
- const TagsPayload = [
18024
+ var release = null;
18025
+ var userReport = null;
18026
+ var sdkUpdates = [];
18027
+ var resolvedWith = [null];
18028
+ var nextEventID = null;
18029
+ var previousEventID = "b7ed18493f4f4817a217b03839d4c017";
18030
+ var event_default = {
18031
+ id,
18032
+ groupID,
18033
+ eventID,
18034
+ projectID,
18035
+ size,
18036
+ entries,
18037
+ dist,
18038
+ message,
18039
+ title,
18040
+ location: location$1,
18041
+ user,
18042
+ contexts,
18043
+ sdk,
18044
+ context,
18045
+ packages,
18046
+ type,
18047
+ metadata,
18048
+ tags,
18049
+ platform,
18050
+ dateReceived,
18051
+ errors,
18052
+ occurrence,
18053
+ _meta,
18054
+ crashFile,
18055
+ culprit,
18056
+ dateCreated,
18057
+ fingerprints,
18058
+ groupingConfig,
18059
+ release,
18060
+ userReport,
18061
+ sdkUpdates,
18062
+ resolvedWith,
18063
+ nextEventID,
18064
+ previousEventID
18065
+ };
18066
+
18067
+ //#endregion
18068
+ //#region ../mcp-server-mocks/dist/fixtures/tags.json
18069
+ var tags_default = [
17456
18070
  {
17457
- key: "transaction",
17458
- name: "Transaction",
17459
- totalValues: 1080
18071
+ "key": "transaction",
18072
+ "name": "Transaction",
18073
+ "totalValues": 1080
17460
18074
  },
17461
18075
  {
17462
- key: "runtime.name",
17463
- name: "Runtime.Name",
17464
- totalValues: 1080
18076
+ "key": "runtime.name",
18077
+ "name": "Runtime.Name",
18078
+ "totalValues": 1080
17465
18079
  },
17466
18080
  {
17467
- key: "level",
17468
- name: "Level",
17469
- totalValues: 1144
18081
+ "key": "level",
18082
+ "name": "Level",
18083
+ "totalValues": 1144
17470
18084
  },
17471
18085
  {
17472
- key: "device",
17473
- name: "Device",
17474
- totalValues: 25
18086
+ "key": "device",
18087
+ "name": "Device",
18088
+ "totalValues": 25
17475
18089
  },
17476
18090
  {
17477
- key: "os",
17478
- name: "OS",
17479
- totalValues: 1133
18091
+ "key": "os",
18092
+ "name": "OS",
18093
+ "totalValues": 1133
17480
18094
  },
17481
18095
  {
17482
- key: "user",
17483
- name: "User",
17484
- totalValues: 1080
18096
+ "key": "user",
18097
+ "name": "User",
18098
+ "totalValues": 1080
17485
18099
  },
17486
18100
  {
17487
- key: "runtime",
17488
- name: "Runtime",
17489
- totalValues: 1080
18101
+ "key": "runtime",
18102
+ "name": "Runtime",
18103
+ "totalValues": 1080
17490
18104
  },
17491
18105
  {
17492
- key: "release",
17493
- name: "Release",
17494
- totalValues: 1135
18106
+ "key": "release",
18107
+ "name": "Release",
18108
+ "totalValues": 1135
17495
18109
  },
17496
18110
  {
17497
- key: "url",
17498
- name: "URL",
17499
- totalValues: 1080
18111
+ "key": "url",
18112
+ "name": "URL",
18113
+ "totalValues": 1080
17500
18114
  },
17501
18115
  {
17502
- key: "uptime_rule",
17503
- name: "Uptime Rule",
17504
- totalValues: 9
18116
+ "key": "uptime_rule",
18117
+ "name": "Uptime Rule",
18118
+ "totalValues": 9
17505
18119
  },
17506
18120
  {
17507
- key: "server_name",
17508
- name: "Server",
17509
- totalValues: 1080
18121
+ "key": "server_name",
18122
+ "name": "Server",
18123
+ "totalValues": 1080
17510
18124
  },
17511
18125
  {
17512
- key: "browser",
17513
- name: "Browser",
17514
- totalValues: 56
18126
+ "key": "browser",
18127
+ "name": "Browser",
18128
+ "totalValues": 56
17515
18129
  },
17516
18130
  {
17517
- key: "os.name",
17518
- name: "Os.Name",
17519
- totalValues: 1135
18131
+ "key": "os.name",
18132
+ "name": "Os.Name",
18133
+ "totalValues": 1135
17520
18134
  },
17521
18135
  {
17522
- key: "device.family",
17523
- name: "Device.Family",
17524
- totalValues: 25
18136
+ "key": "device.family",
18137
+ "name": "Device.Family",
18138
+ "totalValues": 25
17525
18139
  },
17526
18140
  {
17527
- key: "replayId",
17528
- name: "Replayid",
17529
- totalValues: 55
18141
+ "key": "replayId",
18142
+ "name": "Replayid",
18143
+ "totalValues": 55
17530
18144
  },
17531
18145
  {
17532
- key: "client_os.name",
17533
- name: "Client Os.Name",
17534
- totalValues: 1
18146
+ "key": "client_os.name",
18147
+ "name": "Client Os.Name",
18148
+ "totalValues": 1
17535
18149
  },
17536
18150
  {
17537
- key: "environment",
17538
- name: "Environment",
17539
- totalValues: 1144
18151
+ "key": "environment",
18152
+ "name": "Environment",
18153
+ "totalValues": 1144
17540
18154
  },
17541
18155
  {
17542
- key: "service",
17543
- name: "Service",
17544
- totalValues: 1135
18156
+ "key": "service",
18157
+ "name": "Service",
18158
+ "totalValues": 1135
17545
18159
  },
17546
18160
  {
17547
- key: "browser.name",
17548
- name: "Browser.Name",
17549
- totalValues: 56
18161
+ "key": "browser.name",
18162
+ "name": "Browser.Name",
18163
+ "totalValues": 56
17550
18164
  }
17551
18165
  ];
18166
+
18167
+ //#endregion
18168
+ //#region ../mcp-server-mocks/dist/index.js
18169
+ const OrganizationPayload = {
18170
+ id: "4509106740723712",
18171
+ slug: "sentry-mcp-evals",
18172
+ name: "sentry-mcp-evals",
18173
+ links: {
18174
+ regionUrl: "https://us.sentry.io",
18175
+ organizationUrl: "https://sentry.io/sentry-mcp-evals"
18176
+ }
18177
+ };
17552
18178
  const ReleasePayload = {
17553
18179
  id: 1402755016,
17554
18180
  version: "8ce89484-0fec-4913-a2cd-e8e2d41dee36",
@@ -17619,188 +18245,8 @@ const ClientKeyPayload = {
17619
18245
  hasDebug: false
17620
18246
  }
17621
18247
  };
17622
- const IssuePayload = {
17623
- id: "6507376925",
17624
- shareId: null,
17625
- shortId: "CLOUDFLARE-MCP-41",
17626
- title: "Error: Tool list_organizations is already registered",
17627
- culprit: "Object.fetch(index)",
17628
- permalink: "https://sentry-mcp-evals.sentry.io/issues/6507376925/",
17629
- logger: null,
17630
- level: "error",
17631
- status: "unresolved",
17632
- statusDetails: {},
17633
- substatus: "ongoing",
17634
- isPublic: false,
17635
- platform: "javascript",
17636
- project: {
17637
- id: "4509062593708032",
17638
- name: "CLOUDFLARE-MCP",
17639
- slug: "CLOUDFLARE-MCP",
17640
- platform: "bun"
17641
- },
17642
- type: "error",
17643
- metadata: {
17644
- value: "Tool list_organizations is already registered",
17645
- type: "Error",
17646
- filename: "index.js",
17647
- function: "Object.fetch",
17648
- in_app_frame_mix: "in-app-only",
17649
- sdk: {
17650
- name: "sentry.javascript.cloudflare",
17651
- name_normalized: "sentry.javascript.cloudflare"
17652
- },
17653
- severity: 0,
17654
- severity_reason: "ml",
17655
- initial_priority: 50,
17656
- title: null
17657
- },
17658
- numComments: 0,
17659
- assignedTo: null,
17660
- isBookmarked: false,
17661
- isSubscribed: false,
17662
- subscriptionDetails: null,
17663
- hasSeen: true,
17664
- annotations: [],
17665
- issueType: "error",
17666
- issueCategory: "error",
17667
- priority: "medium",
17668
- priorityLockedAt: null,
17669
- isUnhandled: true,
17670
- count: "25",
17671
- userCount: 1,
17672
- firstSeen: "2025-04-03T22:51:19.403000Z",
17673
- lastSeen: "2025-04-12T11:34:11Z",
17674
- firstRelease: null,
17675
- lastRelease: null,
17676
- activity: [{
17677
- id: "4633815464",
17678
- user: null,
17679
- type: "auto_set_ongoing",
17680
- data: { after_days: 7 },
17681
- dateCreated: "2025-04-10T22:55:22.411699Z"
17682
- }, {
17683
- id: "0",
17684
- user: null,
17685
- type: "first_seen",
17686
- data: { priority: "medium" },
17687
- dateCreated: "2025-04-03T22:51:19.403000Z"
17688
- }],
17689
- openPeriods: [{
17690
- start: "2025-04-03T22:51:19.403000Z",
17691
- end: null,
17692
- duration: null,
17693
- isOpen: true,
17694
- lastChecked: "2025-04-12T11:34:11.310000Z"
17695
- }],
17696
- seenBy: [{
17697
- id: "1",
17698
- name: "David Cramer",
17699
- username: "david@example.com",
17700
- email: "david@example.com",
17701
- avatarUrl: null,
17702
- isActive: true,
17703
- hasPasswordAuth: true,
17704
- isManaged: false,
17705
- dateJoined: "2012-01-14T22:08:29.270831Z",
17706
- lastLogin: "2025-04-13T14:00:11.516852Z",
17707
- has2fa: true,
17708
- lastActive: "2025-04-13T18:10:49.177605Z",
17709
- isSuperuser: true,
17710
- isStaff: true,
17711
- experiments: {},
17712
- emails: [{
17713
- id: "87429",
17714
- email: "david@example.com",
17715
- is_verified: true
17716
- }],
17717
- options: {
17718
- theme: "light",
17719
- language: "en",
17720
- stacktraceOrder: 2,
17721
- defaultIssueEvent: "recommended",
17722
- timezone: "US/Pacific",
17723
- clock24Hours: false
17724
- },
17725
- flags: { newsletter_consent_prompt: false },
17726
- avatar: {
17727
- avatarType: "upload",
17728
- avatarUuid: "51e63edabf31412aa2a955e9cf2c1ca0",
17729
- avatarUrl: "https://sentry.io/avatar/51e63edabf31412aa2a955e9cf2c1ca0/"
17730
- },
17731
- identities: [],
17732
- lastSeen: "2025-04-08T23:15:26.569455Z"
17733
- }],
17734
- pluginActions: [],
17735
- pluginIssues: [],
17736
- pluginContexts: [],
17737
- userReportCount: 0,
17738
- stats: {
17739
- "24h": [
17740
- [1744480800, 0],
17741
- [1744484400, 0],
17742
- [1744488e3, 0],
17743
- [1744491600, 0],
17744
- [1744495200, 0],
17745
- [1744498800, 0],
17746
- [1744502400, 0],
17747
- [1744506e3, 0],
17748
- [1744509600, 0],
17749
- [1744513200, 0],
17750
- [1744516800, 0],
17751
- [1744520400, 0],
17752
- [1744524e3, 0],
17753
- [1744527600, 0],
17754
- [1744531200, 0],
17755
- [1744534800, 0],
17756
- [1744538400, 0],
17757
- [1744542e3, 0],
17758
- [1744545600, 0],
17759
- [1744549200, 0],
17760
- [1744552800, 0],
17761
- [1744556400, 0],
17762
- [174456e4, 0],
17763
- [1744563600, 0],
17764
- [1744567200, 0]
17765
- ],
17766
- "30d": [
17767
- [1741910400, 0],
17768
- [1741996800, 0],
17769
- [1742083200, 0],
17770
- [1742169600, 0],
17771
- [1742256e3, 0],
17772
- [1742342400, 0],
17773
- [1742428800, 0],
17774
- [1742515200, 0],
17775
- [1742601600, 0],
17776
- [1742688e3, 0],
17777
- [1742774400, 0],
17778
- [1742860800, 0],
17779
- [1742947200, 0],
17780
- [1743033600, 0],
17781
- [174312e4, 0],
17782
- [1743206400, 0],
17783
- [1743292800, 0],
17784
- [1743379200, 0],
17785
- [1743465600, 0],
17786
- [1743552e3, 0],
17787
- [1743638400, 1],
17788
- [1743724800, 0],
17789
- [1743811200, 0],
17790
- [1743897600, 0],
17791
- [1743984e3, 0],
17792
- [1744070400, 20],
17793
- [1744156800, 1],
17794
- [1744243200, 1],
17795
- [1744329600, 0],
17796
- [1744416e3, 2],
17797
- [1744502400, 0]
17798
- ]
17799
- },
17800
- participants: []
17801
- };
17802
- const IssuePayload2 = {
17803
- ...IssuePayload,
18248
+ const issueFixture2 = {
18249
+ ...issue_default,
17804
18250
  id: 6507376926,
17805
18251
  shortId: "CLOUDFLARE-MCP-42",
17806
18252
  count: 1,
@@ -17808,336 +18254,6 @@ const IssuePayload2 = {
17808
18254
  firstSeen: "2025-04-11T22:51:19.403000Z",
17809
18255
  lastSeen: "2025-04-12T11:34:11Z"
17810
18256
  };
17811
- const EventPayload = {
17812
- id: "7ca573c0f4814912aaa9bdc77d1a7d51",
17813
- groupID: "6507376925",
17814
- eventID: "7ca573c0f4814912aaa9bdc77d1a7d51",
17815
- projectID: "4509062593708032",
17816
- size: 5891,
17817
- entries: [{
17818
- data: {
17819
- values: [{
17820
- type: "Error",
17821
- value: "Tool list_organizations is already registered",
17822
- mechanism: {
17823
- type: "cloudflare",
17824
- handled: false
17825
- },
17826
- threadId: null,
17827
- module: null,
17828
- stacktrace: {
17829
- frames: [
17830
- {
17831
- filename: "index.js",
17832
- absPath: "/index.js",
17833
- module: "index",
17834
- package: null,
17835
- platform: null,
17836
- instructionAddr: null,
17837
- symbolAddr: null,
17838
- function: null,
17839
- rawFunction: null,
17840
- symbol: null,
17841
- context: [],
17842
- lineNo: 7809,
17843
- colNo: 27,
17844
- inApp: true,
17845
- trust: null,
17846
- errors: null,
17847
- lock: null,
17848
- sourceLink: null,
17849
- vars: null
17850
- },
17851
- {
17852
- filename: "index.js",
17853
- absPath: "/index.js",
17854
- module: "index",
17855
- package: null,
17856
- platform: null,
17857
- instructionAddr: null,
17858
- symbolAddr: null,
17859
- function: "OAuthProviderImpl.fetch",
17860
- rawFunction: null,
17861
- symbol: null,
17862
- context: [],
17863
- lineNo: 8029,
17864
- colNo: 24,
17865
- inApp: true,
17866
- trust: null,
17867
- errors: null,
17868
- lock: null,
17869
- sourceLink: null,
17870
- vars: null
17871
- },
17872
- {
17873
- filename: "index.js",
17874
- absPath: "/index.js",
17875
- module: "index",
17876
- package: null,
17877
- platform: null,
17878
- instructionAddr: null,
17879
- symbolAddr: null,
17880
- function: "Object.fetch",
17881
- rawFunction: null,
17882
- symbol: null,
17883
- context: [],
17884
- lineNo: 19631,
17885
- colNo: 28,
17886
- inApp: true,
17887
- trust: null,
17888
- errors: null,
17889
- lock: null,
17890
- sourceLink: null,
17891
- vars: null
17892
- }
17893
- ],
17894
- framesOmitted: null,
17895
- registers: null,
17896
- hasSystemFrames: true
17897
- },
17898
- rawStacktrace: {
17899
- frames: [
17900
- {
17901
- filename: "index.js",
17902
- absPath: "/index.js",
17903
- module: "index",
17904
- package: null,
17905
- platform: null,
17906
- instructionAddr: null,
17907
- symbolAddr: null,
17908
- function: null,
17909
- rawFunction: null,
17910
- symbol: null,
17911
- context: [],
17912
- lineNo: 7809,
17913
- colNo: 27,
17914
- inApp: true,
17915
- trust: null,
17916
- errors: null,
17917
- lock: null,
17918
- sourceLink: null,
17919
- vars: null
17920
- },
17921
- {
17922
- filename: "index.js",
17923
- absPath: "/index.js",
17924
- module: "index",
17925
- package: null,
17926
- platform: null,
17927
- instructionAddr: null,
17928
- symbolAddr: null,
17929
- function: "OAuthProviderImpl.fetch",
17930
- rawFunction: null,
17931
- symbol: null,
17932
- context: [],
17933
- lineNo: 8029,
17934
- colNo: 24,
17935
- inApp: true,
17936
- trust: null,
17937
- errors: null,
17938
- lock: null,
17939
- sourceLink: null,
17940
- vars: null
17941
- },
17942
- {
17943
- filename: "index.js",
17944
- absPath: "/index.js",
17945
- module: "index",
17946
- package: null,
17947
- platform: null,
17948
- instructionAddr: null,
17949
- symbolAddr: null,
17950
- function: "Object.fetch",
17951
- rawFunction: null,
17952
- symbol: null,
17953
- context: [],
17954
- lineNo: 19631,
17955
- colNo: 28,
17956
- inApp: true,
17957
- trust: null,
17958
- errors: null,
17959
- lock: null,
17960
- sourceLink: null,
17961
- vars: null
17962
- }
17963
- ],
17964
- framesOmitted: null,
17965
- registers: null,
17966
- hasSystemFrames: true
17967
- }
17968
- }],
17969
- hasSystemFrames: true,
17970
- excOmitted: null
17971
- },
17972
- type: "exception"
17973
- }, {
17974
- data: {
17975
- apiTarget: null,
17976
- method: "GET",
17977
- url: "https://mcp.sentry.dev/sse",
17978
- query: [],
17979
- fragment: null,
17980
- data: null,
17981
- headers: [
17982
- ["Accept", "text/event-stream"],
17983
- ["Accept-Encoding", "gzip, br"],
17984
- ["Accept-Language", "*"],
17985
- ["Authorization", "[Filtered]"],
17986
- ["Cache-Control", "no-cache"],
17987
- ["Cf-Ipcountry", "GB"],
17988
- ["Cf-Ray", "92d4c7266c8f48c9"],
17989
- ["Cf-Visitor", "{\"scheme\":\"https\"}"],
17990
- ["Connection", "Keep-Alive"],
17991
- ["Host", "mcp.sentry.dev"],
17992
- ["Pragma", "no-cache"],
17993
- ["Sec-Fetch-Mode", "cors"],
17994
- ["User-Agent", "node"],
17995
- ["X-Forwarded-Proto", "https"]
17996
- ],
17997
- cookies: [],
17998
- env: null,
17999
- inferredContentType: null
18000
- },
18001
- type: "request"
18002
- }],
18003
- dist: null,
18004
- message: "",
18005
- title: "Error: Tool list_organizations is already registered",
18006
- location: "index.js",
18007
- user: {
18008
- id: null,
18009
- email: null,
18010
- username: null,
18011
- ip_address: "2a06:98c0:3600::103",
18012
- name: null,
18013
- geo: {
18014
- country_code: "US",
18015
- region: "United States"
18016
- },
18017
- data: null
18018
- },
18019
- contexts: {
18020
- cloud_resource: {
18021
- "cloud.provider": "cloudflare",
18022
- type: "default"
18023
- },
18024
- culture: {
18025
- timezone: "Europe/London",
18026
- type: "default"
18027
- },
18028
- runtime: {
18029
- name: "cloudflare",
18030
- type: "runtime"
18031
- },
18032
- trace: {
18033
- trace_id: "3032af8bcdfe4423b937fc5c041d5d82",
18034
- span_id: "953da703d2a6f4c7",
18035
- status: "unknown",
18036
- client_sample_rate: 1,
18037
- sampled: true,
18038
- type: "trace"
18039
- }
18040
- },
18041
- sdk: {
18042
- name: "sentry.javascript.cloudflare",
18043
- version: "9.12.0"
18044
- },
18045
- context: {},
18046
- packages: {},
18047
- type: "error",
18048
- metadata: {
18049
- filename: "index.js",
18050
- function: "Object.fetch",
18051
- in_app_frame_mix: "in-app-only",
18052
- type: "Error",
18053
- value: "Tool list_organizations is already registered"
18054
- },
18055
- tags: [
18056
- {
18057
- key: "environment",
18058
- value: "development"
18059
- },
18060
- {
18061
- key: "handled",
18062
- value: "no"
18063
- },
18064
- {
18065
- key: "level",
18066
- value: "error"
18067
- },
18068
- {
18069
- key: "mechanism",
18070
- value: "cloudflare"
18071
- },
18072
- {
18073
- key: "runtime.name",
18074
- value: "cloudflare"
18075
- },
18076
- {
18077
- key: "url",
18078
- value: "https://mcp.sentry.dev/sse"
18079
- }
18080
- ],
18081
- platform: "javascript",
18082
- dateReceived: "2025-04-08T21:15:04.700878Z",
18083
- errors: [{
18084
- type: "js_no_source",
18085
- message: "Source code was not found",
18086
- data: {
18087
- symbolicator_type: "missing_source",
18088
- url: "/index.js"
18089
- }
18090
- }],
18091
- occurrence: null,
18092
- _meta: {
18093
- entries: { "1": { data: {
18094
- "": null,
18095
- apiTarget: null,
18096
- method: null,
18097
- url: null,
18098
- query: null,
18099
- data: null,
18100
- headers: { "3": { "1": { "": {
18101
- rem: [[
18102
- "@password:filter",
18103
- "s",
18104
- 0,
18105
- 10
18106
- ]],
18107
- len: 64,
18108
- chunks: [{
18109
- type: "redaction",
18110
- text: "[Filtered]",
18111
- rule_id: "@password:filter",
18112
- remark: "s"
18113
- }]
18114
- } } } },
18115
- cookies: null,
18116
- env: null
18117
- } } },
18118
- message: null,
18119
- user: null,
18120
- contexts: null,
18121
- sdk: null,
18122
- context: null,
18123
- packages: null,
18124
- tags: {}
18125
- },
18126
- crashFile: null,
18127
- culprit: "Object.fetch(index)",
18128
- dateCreated: "2025-04-08T21:15:04Z",
18129
- fingerprints: ["60d1c667b173018c004e399b29dc927d"],
18130
- groupingConfig: {
18131
- enhancements: "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
18132
- id: "newstyle:2023-01-11"
18133
- },
18134
- release: null,
18135
- userReport: null,
18136
- sdkUpdates: [],
18137
- resolvedWith: [null],
18138
- nextEventID: null,
18139
- previousEventID: "b7ed18493f4f4817a217b03839d4c017"
18140
- };
18141
18257
  const EventsErrorsMeta = {
18142
18258
  fields: {
18143
18259
  "issue.id": "integer",
@@ -18299,344 +18415,476 @@ const EventsSpansPayload = {
18299
18415
  {}
18300
18416
  ]
18301
18417
  };
18302
- const restHandlers = [
18303
- http$1.get("https://sentry.io/api/0/organizations/", () => {
18304
- return HttpResponse.json([OrganizationPayload]);
18305
- }),
18306
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/", () => {
18307
- return HttpResponse.json(OrganizationPayload);
18308
- }),
18309
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/teams/", () => {
18310
- return HttpResponse.json([{
18311
- id: "4509106740854784",
18312
- slug: "the-goats",
18313
- name: "the-goats",
18314
- dateCreated: "2025-04-06T14:11:23.961739Z",
18315
- isMember: true,
18316
- teamRole: "admin",
18317
- flags: { "idp:provisioned": false },
18318
- access: [
18319
- "team:read",
18320
- "alerts:read",
18321
- "event:write",
18322
- "team:write",
18323
- "team:admin",
18324
- "event:read",
18325
- "org:read",
18326
- "member:read",
18327
- "project:admin",
18328
- "project:write",
18329
- "org:integrations",
18330
- "project:releases",
18331
- "alerts:write",
18332
- "event:admin",
18333
- "project:read"
18334
- ],
18335
- hasAccess: true,
18336
- isPending: false,
18337
- memberCount: 1,
18338
- avatar: {
18339
- avatarType: "letter_avatar",
18340
- avatarUuid: null
18341
- },
18342
- externalTeams: [],
18343
- projects: []
18344
- }]);
18345
- }),
18346
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/projects/", () => {
18347
- return HttpResponse.json([{
18348
- team: {
18349
- id: "4509106733776896",
18418
+ function buildHandlers(handlers) {
18419
+ return [...handlers.map((handler) => http$1[handler.method](`https://us.sentry.io${handler.path}`, handler.fetch)), ...handlers.map((handler) => http$1[handler.method](`https://sentry.io${handler.path}`, handler.fetch))];
18420
+ }
18421
+ const restHandlers = buildHandlers([
18422
+ {
18423
+ method: "get",
18424
+ path: "/api/0/auth/",
18425
+ fetch: () => {
18426
+ return HttpResponse.json({
18427
+ id: "1",
18428
+ name: "John Doe",
18429
+ email: "john.doe@example.com"
18430
+ });
18431
+ }
18432
+ },
18433
+ {
18434
+ method: "get",
18435
+ path: "/api/0/users/me/regions/",
18436
+ fetch: () => {
18437
+ return HttpResponse.json({ regions: [{
18438
+ name: "us",
18439
+ url: "https://us.sentry.io"
18440
+ }] });
18441
+ }
18442
+ },
18443
+ {
18444
+ method: "get",
18445
+ path: "/api/0/organizations/",
18446
+ fetch: () => {
18447
+ return HttpResponse.json([OrganizationPayload]);
18448
+ }
18449
+ },
18450
+ {
18451
+ method: "get",
18452
+ path: "/api/0/organizations/sentry-mcp-evals/",
18453
+ fetch: () => {
18454
+ return HttpResponse.json(OrganizationPayload);
18455
+ }
18456
+ },
18457
+ {
18458
+ method: "get",
18459
+ path: "/api/0/organizations/sentry-mcp-evals/teams/",
18460
+ fetch: () => {
18461
+ return HttpResponse.json([{
18462
+ id: "4509106740854784",
18350
18463
  slug: "the-goats",
18351
- name: "the-goats"
18352
- },
18353
- teams: [{
18354
- id: "4509106733776896",
18464
+ name: "the-goats",
18465
+ dateCreated: "2025-04-06T14:11:23.961739Z",
18466
+ isMember: true,
18467
+ teamRole: "admin",
18468
+ flags: { "idp:provisioned": false },
18469
+ access: [
18470
+ "team:read",
18471
+ "alerts:read",
18472
+ "event:write",
18473
+ "team:write",
18474
+ "team:admin",
18475
+ "event:read",
18476
+ "org:read",
18477
+ "member:read",
18478
+ "project:admin",
18479
+ "project:write",
18480
+ "org:integrations",
18481
+ "project:releases",
18482
+ "alerts:write",
18483
+ "event:admin",
18484
+ "project:read"
18485
+ ],
18486
+ hasAccess: true,
18487
+ isPending: false,
18488
+ memberCount: 1,
18489
+ avatar: {
18490
+ avatarType: "letter_avatar",
18491
+ avatarUuid: null
18492
+ },
18493
+ externalTeams: [],
18494
+ projects: []
18495
+ }]);
18496
+ }
18497
+ },
18498
+ {
18499
+ method: "get",
18500
+ path: "/api/0/organizations/sentry-mcp-evals/projects/",
18501
+ fetch: () => {
18502
+ return HttpResponse.json([{
18503
+ team: {
18504
+ id: "4509106733776896",
18505
+ slug: "the-goats",
18506
+ name: "the-goats"
18507
+ },
18508
+ teams: [{
18509
+ id: "4509106733776896",
18510
+ slug: "the-goats",
18511
+ name: "the-goats"
18512
+ }],
18513
+ id: "4509106749636608",
18514
+ name: "cloudflare-mcp",
18515
+ slug: "cloudflare-mcp",
18516
+ isBookmarked: false,
18517
+ isMember: true,
18518
+ access: [
18519
+ "event:admin",
18520
+ "alerts:read",
18521
+ "project:write",
18522
+ "org:integrations",
18523
+ "alerts:write",
18524
+ "member:read",
18525
+ "team:write",
18526
+ "project:read",
18527
+ "event:read",
18528
+ "event:write",
18529
+ "project:admin",
18530
+ "org:read",
18531
+ "team:admin",
18532
+ "project:releases",
18533
+ "team:read"
18534
+ ],
18535
+ hasAccess: true,
18536
+ dateCreated: "2025-04-06T14:13:37.825970Z",
18537
+ environments: [],
18538
+ eventProcessing: { symbolicationDegraded: false },
18539
+ features: [
18540
+ "discard-groups",
18541
+ "alert-filters",
18542
+ "similarity-embeddings",
18543
+ "similarity-indexing",
18544
+ "similarity-view"
18545
+ ],
18546
+ firstEvent: null,
18547
+ firstTransactionEvent: false,
18548
+ hasSessions: false,
18549
+ hasProfiles: false,
18550
+ hasReplays: false,
18551
+ hasFeedbacks: false,
18552
+ hasNewFeedbacks: false,
18553
+ hasMonitors: false,
18554
+ hasMinifiedStackTrace: false,
18555
+ hasInsightsHttp: false,
18556
+ hasInsightsDb: false,
18557
+ hasInsightsAssets: false,
18558
+ hasInsightsAppStart: false,
18559
+ hasInsightsScreenLoad: false,
18560
+ hasInsightsVitals: false,
18561
+ hasInsightsCaches: false,
18562
+ hasInsightsQueues: false,
18563
+ hasInsightsLlmMonitoring: false,
18564
+ platform: "node",
18565
+ platforms: [],
18566
+ latestRelease: null,
18567
+ hasUserReports: false,
18568
+ hasFlags: false,
18569
+ latestDeploys: null
18570
+ }]);
18571
+ }
18572
+ },
18573
+ {
18574
+ method: "post",
18575
+ path: "/api/0/organizations/sentry-mcp-evals/teams/",
18576
+ fetch: () => {
18577
+ return HttpResponse.json({
18578
+ id: "4509109078196224",
18355
18579
  slug: "the-goats",
18356
- name: "the-goats"
18357
- }],
18358
- id: "4509106749636608",
18359
- name: "cloudflare-mcp",
18360
- slug: "cloudflare-mcp",
18361
- isBookmarked: false,
18362
- isMember: true,
18363
- access: [
18364
- "event:admin",
18365
- "alerts:read",
18366
- "project:write",
18367
- "org:integrations",
18368
- "alerts:write",
18369
- "member:read",
18370
- "team:write",
18371
- "project:read",
18372
- "event:read",
18373
- "event:write",
18374
- "project:admin",
18375
- "org:read",
18376
- "team:admin",
18377
- "project:releases",
18378
- "team:read"
18379
- ],
18380
- hasAccess: true,
18381
- dateCreated: "2025-04-06T14:13:37.825970Z",
18382
- environments: [],
18383
- eventProcessing: { symbolicationDegraded: false },
18384
- features: [
18385
- "discard-groups",
18386
- "alert-filters",
18387
- "similarity-embeddings",
18388
- "similarity-indexing",
18389
- "similarity-view"
18390
- ],
18391
- firstEvent: null,
18392
- firstTransactionEvent: false,
18393
- hasSessions: false,
18394
- hasProfiles: false,
18395
- hasReplays: false,
18396
- hasFeedbacks: false,
18397
- hasNewFeedbacks: false,
18398
- hasMonitors: false,
18399
- hasMinifiedStackTrace: false,
18400
- hasInsightsHttp: false,
18401
- hasInsightsDb: false,
18402
- hasInsightsAssets: false,
18403
- hasInsightsAppStart: false,
18404
- hasInsightsScreenLoad: false,
18405
- hasInsightsVitals: false,
18406
- hasInsightsCaches: false,
18407
- hasInsightsQueues: false,
18408
- hasInsightsLlmMonitoring: false,
18409
- platform: "node",
18410
- platforms: [],
18411
- latestRelease: null,
18412
- hasUserReports: false,
18413
- hasFlags: false,
18414
- latestDeploys: null
18415
- }]);
18416
- }),
18417
- http$1.post("https://sentry.io/api/0/organizations/sentry-mcp-evals/teams/", () => {
18418
- return HttpResponse.json({
18419
- id: "4509109078196224",
18420
- slug: "the-goats",
18421
- name: "the-goats",
18422
- dateCreated: "2025-04-07T00:05:48.196710Z",
18423
- isMember: true,
18424
- teamRole: "admin",
18425
- flags: { "idp:provisioned": false },
18426
- access: [
18427
- "event:read",
18428
- "org:integrations",
18429
- "org:read",
18430
- "member:read",
18431
- "alerts:write",
18432
- "event:admin",
18433
- "team:admin",
18434
- "project:releases",
18435
- "team:read",
18436
- "project:write",
18437
- "event:write",
18438
- "team:write",
18439
- "project:read",
18440
- "project:admin",
18441
- "alerts:read"
18442
- ],
18443
- hasAccess: true,
18444
- isPending: false,
18445
- memberCount: 1,
18446
- avatar: {
18447
- avatarType: "letter_avatar",
18448
- avatarUuid: null
18580
+ name: "the-goats",
18581
+ dateCreated: "2025-04-07T00:05:48.196710Z",
18582
+ isMember: true,
18583
+ teamRole: "admin",
18584
+ flags: { "idp:provisioned": false },
18585
+ access: [
18586
+ "event:read",
18587
+ "org:integrations",
18588
+ "org:read",
18589
+ "member:read",
18590
+ "alerts:write",
18591
+ "event:admin",
18592
+ "team:admin",
18593
+ "project:releases",
18594
+ "team:read",
18595
+ "project:write",
18596
+ "event:write",
18597
+ "team:write",
18598
+ "project:read",
18599
+ "project:admin",
18600
+ "alerts:read"
18601
+ ],
18602
+ hasAccess: true,
18603
+ isPending: false,
18604
+ memberCount: 1,
18605
+ avatar: {
18606
+ avatarType: "letter_avatar",
18607
+ avatarUuid: null
18608
+ }
18609
+ });
18610
+ }
18611
+ },
18612
+ {
18613
+ method: "post",
18614
+ path: "/api/0/teams/sentry-mcp-evals/the-goats/projects/",
18615
+ fetch: () => {
18616
+ return HttpResponse.json({
18617
+ id: "4509109104082945",
18618
+ slug: "cloudflare-mcp",
18619
+ name: "cloudflare-mcp",
18620
+ platform: "javascript",
18621
+ dateCreated: "2025-04-07T00:12:23.143074Z",
18622
+ isBookmarked: false,
18623
+ isMember: true,
18624
+ features: [
18625
+ "discard-groups",
18626
+ "alert-filters",
18627
+ "similarity-embeddings",
18628
+ "similarity-indexing",
18629
+ "similarity-view"
18630
+ ],
18631
+ firstEvent: null,
18632
+ firstTransactionEvent: false,
18633
+ access: [
18634
+ "team:write",
18635
+ "alerts:write",
18636
+ "event:write",
18637
+ "org:read",
18638
+ "alerts:read",
18639
+ "event:admin",
18640
+ "project:admin",
18641
+ "event:read",
18642
+ "org:integrations",
18643
+ "project:read",
18644
+ "project:releases",
18645
+ "project:write",
18646
+ "member:read",
18647
+ "team:read",
18648
+ "team:admin"
18649
+ ],
18650
+ hasAccess: true,
18651
+ hasMinifiedStackTrace: false,
18652
+ hasMonitors: false,
18653
+ hasProfiles: false,
18654
+ hasReplays: false,
18655
+ hasFeedbacks: false,
18656
+ hasFlags: false,
18657
+ hasNewFeedbacks: false,
18658
+ hasSessions: false,
18659
+ hasInsightsHttp: false,
18660
+ hasInsightsDb: false,
18661
+ hasInsightsAssets: false,
18662
+ hasInsightsAppStart: false,
18663
+ hasInsightsScreenLoad: false,
18664
+ hasInsightsVitals: false,
18665
+ hasInsightsCaches: false,
18666
+ hasInsightsQueues: false,
18667
+ hasInsightsLlmMonitoring: false,
18668
+ isInternal: false,
18669
+ isPublic: false,
18670
+ avatar: {
18671
+ avatarType: "letter_avatar",
18672
+ avatarUuid: null
18673
+ },
18674
+ color: "#bf3f55",
18675
+ status: "active"
18676
+ });
18677
+ }
18678
+ },
18679
+ {
18680
+ method: "post",
18681
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/",
18682
+ fetch: () => {
18683
+ return HttpResponse.json(ClientKeyPayload);
18684
+ }
18685
+ },
18686
+ {
18687
+ method: "get",
18688
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/",
18689
+ fetch: () => {
18690
+ return HttpResponse.json([ClientKeyPayload]);
18691
+ }
18692
+ },
18693
+ {
18694
+ method: "get",
18695
+ path: "/api/0/organizations/sentry-mcp-evals/events/",
18696
+ fetch: async ({ request }) => {
18697
+ const url$1 = new URL(request.url);
18698
+ const dataset = url$1.searchParams.get("dataset");
18699
+ const query = url$1.searchParams.get("query");
18700
+ const fields = url$1.searchParams.getAll("field");
18701
+ if (dataset === "spans") {
18702
+ if (query !== "is_transaction:true") return HttpResponse.json(EmptyEventsSpansPayload);
18703
+ if (url$1.searchParams.get("useRpc") !== "1") return HttpResponse.json("Invalid useRpc", { status: 400 });
18704
+ if (!fields.includes("id") || !fields.includes("trace") || !fields.includes("span.op") || !fields.includes("span.description") || !fields.includes("span.duration")) return HttpResponse.json("Invalid fields", { status: 400 });
18705
+ return HttpResponse.json(EventsSpansPayload);
18449
18706
  }
18450
- });
18451
- }),
18452
- http$1.post("https://sentry.io/api/0/teams/sentry-mcp-evals/the-goats/projects/", () => {
18453
- return HttpResponse.json({
18454
- id: "4509109104082945",
18455
- slug: "cloudflare-mcp",
18456
- name: "cloudflare-mcp",
18457
- platform: "javascript",
18458
- dateCreated: "2025-04-07T00:12:23.143074Z",
18459
- isBookmarked: false,
18460
- isMember: true,
18461
- features: [
18462
- "discard-groups",
18463
- "alert-filters",
18464
- "similarity-embeddings",
18465
- "similarity-indexing",
18466
- "similarity-view"
18467
- ],
18468
- firstEvent: null,
18469
- firstTransactionEvent: false,
18470
- access: [
18471
- "team:write",
18472
- "alerts:write",
18473
- "event:write",
18474
- "org:read",
18475
- "alerts:read",
18476
- "event:admin",
18477
- "project:admin",
18478
- "event:read",
18479
- "org:integrations",
18480
- "project:read",
18481
- "project:releases",
18482
- "project:write",
18483
- "member:read",
18484
- "team:read",
18485
- "team:admin"
18486
- ],
18487
- hasAccess: true,
18488
- hasMinifiedStackTrace: false,
18489
- hasMonitors: false,
18490
- hasProfiles: false,
18491
- hasReplays: false,
18492
- hasFeedbacks: false,
18493
- hasFlags: false,
18494
- hasNewFeedbacks: false,
18495
- hasSessions: false,
18496
- hasInsightsHttp: false,
18497
- hasInsightsDb: false,
18498
- hasInsightsAssets: false,
18499
- hasInsightsAppStart: false,
18500
- hasInsightsScreenLoad: false,
18501
- hasInsightsVitals: false,
18502
- hasInsightsCaches: false,
18503
- hasInsightsQueues: false,
18504
- hasInsightsLlmMonitoring: false,
18505
- isInternal: false,
18506
- isPublic: false,
18507
- avatar: {
18508
- avatarType: "letter_avatar",
18509
- avatarUuid: null
18510
- },
18511
- color: "#bf3f55",
18512
- status: "active"
18513
- });
18514
- }),
18515
- http$1.post("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/", () => {
18516
- return HttpResponse.json(ClientKeyPayload);
18517
- }),
18518
- http$1.get("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/", () => {
18519
- return HttpResponse.json([ClientKeyPayload]);
18520
- }),
18521
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/events/", async ({ request }) => {
18522
- const url$1 = new URL(request.url);
18523
- const dataset = url$1.searchParams.get("dataset");
18524
- const query = url$1.searchParams.get("query");
18525
- const fields = url$1.searchParams.getAll("field");
18526
- if (dataset === "spans") {
18527
- if (query !== "is_transaction:true") return HttpResponse.json(EmptyEventsSpansPayload);
18528
- if (url$1.searchParams.get("useRpc") !== "1") return HttpResponse.json("Invalid useRpc", { status: 400 });
18529
- if (!fields.includes("id") || !fields.includes("trace") || !fields.includes("span.op") || !fields.includes("span.description") || !fields.includes("span.duration")) return HttpResponse.json("Invalid fields", { status: 400 });
18530
- return HttpResponse.json(EventsSpansPayload);
18707
+ if (dataset === "errors") {
18708
+ if (!fields.includes("issue") || !fields.includes("title") || !fields.includes("project") || !fields.includes("last_seen()") || !fields.includes("count()")) return HttpResponse.json("Invalid fields", { status: 400 });
18709
+ if (!["-count", "-last_seen"].includes(url$1.searchParams.get("sort"))) return HttpResponse.json("Invalid sort", { status: 400 });
18710
+ const sortedQuery = query ? query?.split(" ").sort().join(" ") : null;
18711
+ if (![
18712
+ null,
18713
+ "",
18714
+ "error.handled:false",
18715
+ "error.unhandled:true",
18716
+ "error.handled:false is:unresolved",
18717
+ "error.unhandled:true is:unresolved",
18718
+ "is:unresolved project:cloudflare-mcp",
18719
+ "project:cloudflare-mcp",
18720
+ "user.email:david@sentry.io"
18721
+ ].includes(sortedQuery)) return HttpResponse.json(EmptyEventsErrorsPayload);
18722
+ return HttpResponse.json(EventsErrorsPayload);
18723
+ }
18724
+ return HttpResponse.json("Invalid dataset", { status: 400 });
18531
18725
  }
18532
- if (dataset === "errors") {
18533
- if (!fields.includes("issue") || !fields.includes("title") || !fields.includes("project") || !fields.includes("last_seen()") || !fields.includes("count()")) return HttpResponse.json("Invalid fields", { status: 400 });
18534
- if (!["-count", "-last_seen"].includes(url$1.searchParams.get("sort"))) return HttpResponse.json("Invalid sort", { status: 400 });
18535
- const sortedQuery = query ? query?.split(" ").sort().join(" ") : null;
18726
+ },
18727
+ {
18728
+ method: "get",
18729
+ path: "/api/0/projects/sentry-mcp-evals/foobar/issues/",
18730
+ fetch: () => HttpResponse.json([])
18731
+ },
18732
+ {
18733
+ method: "get",
18734
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/issues/",
18735
+ fetch: ({ request }) => {
18736
+ const url$1 = new URL(request.url);
18737
+ const sort = url$1.searchParams.get("sort");
18738
+ if (![
18739
+ null,
18740
+ "user",
18741
+ "freq",
18742
+ "date",
18743
+ "new",
18744
+ null
18745
+ ].includes(sort)) return HttpResponse.json(`Invalid sort: ${url$1.searchParams.get("sort")}`, { status: 400 });
18746
+ const collapse = url$1.searchParams.getAll("collapse");
18747
+ if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
18748
+ const query = url$1.searchParams.get("query");
18749
+ const queryTokens = query?.split(" ").sort() ?? [];
18750
+ const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
18536
18751
  if (![
18537
18752
  null,
18538
18753
  "",
18539
- "error.handled:false",
18540
- "error.unhandled:true",
18754
+ "is:unresolved",
18541
18755
  "error.handled:false is:unresolved",
18542
18756
  "error.unhandled:true is:unresolved",
18543
- "is:unresolved project:cloudflare-mcp",
18544
- "project:cloudflare-mcp",
18545
18757
  "user.email:david@sentry.io"
18546
- ].includes(sortedQuery)) return HttpResponse.json(EmptyEventsErrorsPayload);
18547
- return HttpResponse.json(EventsErrorsPayload);
18758
+ ].includes(sortedQuery)) return HttpResponse.json([]);
18759
+ if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([issue_default]);
18760
+ if (sort === "date") return HttpResponse.json([issue_default, issueFixture2]);
18761
+ return HttpResponse.json([issueFixture2, issue_default]);
18548
18762
  }
18549
- return HttpResponse.json("Invalid dataset", { status: 400 });
18550
- }),
18551
- http$1.get("https://sentry.io/api/0/projects/sentry-mcp-evals/foobar/issues/", () => HttpResponse.json([])),
18552
- http$1.get("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/issues/", ({ request }) => {
18553
- const url$1 = new URL(request.url);
18554
- const sort = url$1.searchParams.get("sort");
18555
- if (![
18556
- null,
18557
- "user",
18558
- "freq",
18559
- "date",
18560
- "new",
18561
- null
18562
- ].includes(sort)) return HttpResponse.json(`Invalid sort: ${url$1.searchParams.get("sort")}`, { status: 400 });
18563
- const collapse = url$1.searchParams.getAll("collapse");
18564
- if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
18565
- const query = url$1.searchParams.get("query");
18566
- const queryTokens = query?.split(" ").sort() ?? [];
18567
- const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
18568
- if (![
18569
- null,
18570
- "",
18571
- "is:unresolved",
18572
- "error.handled:false is:unresolved",
18573
- "error.unhandled:true is:unresolved",
18574
- "user.email:david@sentry.io"
18575
- ].includes(sortedQuery)) return HttpResponse.json([]);
18576
- if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([IssuePayload]);
18577
- if (sort === "date") return HttpResponse.json([IssuePayload, IssuePayload2]);
18578
- return HttpResponse.json([IssuePayload2, IssuePayload]);
18579
- }),
18580
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/", ({ request }) => {
18581
- const url$1 = new URL(request.url);
18582
- const sort = url$1.searchParams.get("sort");
18583
- if (![
18584
- null,
18585
- "user",
18586
- "freq",
18587
- "date",
18588
- "new",
18589
- null
18590
- ].includes(sort)) return HttpResponse.json(`Invalid sort: ${url$1.searchParams.get("sort")}`, { status: 400 });
18591
- const collapse = url$1.searchParams.getAll("collapse");
18592
- if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
18593
- const query = url$1.searchParams.get("query");
18594
- const queryTokens = query?.split(" ").sort() ?? [];
18595
- const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
18596
- if (query === "7ca573c0f4814912aaa9bdc77d1a7d51") return HttpResponse.json([IssuePayload]);
18597
- if (![
18598
- null,
18599
- "",
18600
- "is:unresolved",
18601
- "error.handled:false is:unresolved",
18602
- "error.unhandled:true is:unresolved",
18603
- "project:cloudflare-mcp",
18604
- "is:unresolved project:cloudflare-mcp",
18605
- "user.email:david@sentry.io"
18606
- ].includes(sortedQuery)) {
18607
- if (queryTokens.includes("project:remote-mcp")) return HttpResponse.json({ detail: "Invalid query. Project(s) remote-mcp do not exist or are not actively selected." }, { status: 400 });
18608
- return HttpResponse.json([]);
18763
+ },
18764
+ {
18765
+ method: "get",
18766
+ path: "/api/0/organizations/sentry-mcp-evals/issues/",
18767
+ fetch: ({ request }) => {
18768
+ const url$1 = new URL(request.url);
18769
+ const sort = url$1.searchParams.get("sort");
18770
+ if (![
18771
+ null,
18772
+ "user",
18773
+ "freq",
18774
+ "date",
18775
+ "new",
18776
+ null
18777
+ ].includes(sort)) return HttpResponse.json(`Invalid sort: ${url$1.searchParams.get("sort")}`, { status: 400 });
18778
+ const collapse = url$1.searchParams.getAll("collapse");
18779
+ if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
18780
+ const query = url$1.searchParams.get("query");
18781
+ const queryTokens = query?.split(" ").sort() ?? [];
18782
+ const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
18783
+ if (query === "7ca573c0f4814912aaa9bdc77d1a7d51") return HttpResponse.json([issue_default]);
18784
+ if (![
18785
+ null,
18786
+ "",
18787
+ "is:unresolved",
18788
+ "error.handled:false is:unresolved",
18789
+ "error.unhandled:true is:unresolved",
18790
+ "project:cloudflare-mcp",
18791
+ "is:unresolved project:cloudflare-mcp",
18792
+ "user.email:david@sentry.io"
18793
+ ].includes(sortedQuery)) {
18794
+ if (queryTokens.includes("project:remote-mcp")) return HttpResponse.json({ detail: "Invalid query. Project(s) remote-mcp do not exist or are not actively selected." }, { status: 400 });
18795
+ return HttpResponse.json([]);
18796
+ }
18797
+ if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([issue_default]);
18798
+ if (sort === "date") return HttpResponse.json([issue_default, issueFixture2]);
18799
+ return HttpResponse.json([issueFixture2, issue_default]);
18609
18800
  }
18610
- if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([IssuePayload]);
18611
- if (sort === "date") return HttpResponse.json([IssuePayload, IssuePayload2]);
18612
- return HttpResponse.json([IssuePayload2, IssuePayload]);
18613
- }),
18614
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/", () => HttpResponse.json(IssuePayload)),
18615
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376925/", () => HttpResponse.json(IssuePayload)),
18616
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/", () => HttpResponse.json(IssuePayload2)),
18617
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376926/", () => HttpResponse.json(IssuePayload2)),
18618
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/7ca573c0f4814912aaa9bdc77d1a7d51/", () => HttpResponse.json(EventPayload)),
18619
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/latest/", () => HttpResponse.json(EventPayload)),
18620
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/7ca573c0f4814912aaa9bdc77d1a7d51/", () => HttpResponse.json(EventPayload)),
18621
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/latest/", () => HttpResponse.json(EventPayload)),
18622
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/events/latest/", () => HttpResponse.json(EventPayload)),
18623
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376926/events/latest/", () => HttpResponse.json(EventPayload)),
18624
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/releases/", () => HttpResponse.json([ReleasePayload])),
18625
- http$1.get("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/releases/", () => HttpResponse.json([ReleasePayload])),
18626
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/tags/", () => HttpResponse.json(TagsPayload)),
18627
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/", () => {
18628
- return HttpResponse.json(autofix_state_default);
18629
- }),
18630
- http$1.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/", () => {
18631
- return HttpResponse.json(autofix_state_default);
18632
- }),
18633
- http$1.post("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/", () => {
18634
- return HttpResponse.json({ run_id: 123 });
18635
- }),
18636
- http$1.post("https://sentry.io/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/", () => {
18637
- return HttpResponse.json({ run_id: 123 });
18638
- })
18639
- ];
18801
+ },
18802
+ {
18803
+ method: "get",
18804
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/",
18805
+ fetch: () => HttpResponse.json(issue_default)
18806
+ },
18807
+ {
18808
+ method: "get",
18809
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/",
18810
+ fetch: () => HttpResponse.json(issue_default)
18811
+ },
18812
+ {
18813
+ method: "get",
18814
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/",
18815
+ fetch: () => HttpResponse.json(issueFixture2)
18816
+ },
18817
+ {
18818
+ method: "get",
18819
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376926/",
18820
+ fetch: () => HttpResponse.json(issueFixture2)
18821
+ },
18822
+ {
18823
+ method: "get",
18824
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/7ca573c0f4814912aaa9bdc77d1a7d51/",
18825
+ fetch: () => HttpResponse.json(event_default)
18826
+ },
18827
+ {
18828
+ method: "get",
18829
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/latest/",
18830
+ fetch: () => HttpResponse.json(event_default)
18831
+ },
18832
+ {
18833
+ method: "get",
18834
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/7ca573c0f4814912aaa9bdc77d1a7d51/",
18835
+ fetch: () => HttpResponse.json(event_default)
18836
+ },
18837
+ {
18838
+ method: "get",
18839
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/latest/",
18840
+ fetch: () => HttpResponse.json(event_default)
18841
+ },
18842
+ {
18843
+ method: "get",
18844
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/events/latest/",
18845
+ fetch: () => HttpResponse.json(event_default)
18846
+ },
18847
+ {
18848
+ method: "get",
18849
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376926/events/latest/",
18850
+ fetch: () => HttpResponse.json(event_default)
18851
+ },
18852
+ {
18853
+ method: "get",
18854
+ path: "/api/0/organizations/sentry-mcp-evals/releases/",
18855
+ fetch: () => HttpResponse.json([ReleasePayload])
18856
+ },
18857
+ {
18858
+ method: "get",
18859
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/releases/",
18860
+ fetch: () => HttpResponse.json([ReleasePayload])
18861
+ },
18862
+ {
18863
+ method: "get",
18864
+ path: "/api/0/organizations/sentry-mcp-evals/tags/",
18865
+ fetch: () => HttpResponse.json(tags_default)
18866
+ },
18867
+ {
18868
+ method: "get",
18869
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/",
18870
+ fetch: () => HttpResponse.json(autofix_state_default)
18871
+ },
18872
+ {
18873
+ method: "get",
18874
+ path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
18875
+ fetch: () => HttpResponse.json(autofix_state_default)
18876
+ },
18877
+ {
18878
+ method: "post",
18879
+ path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/",
18880
+ fetch: () => HttpResponse.json({ run_id: 123 })
18881
+ },
18882
+ {
18883
+ method: "post",
18884
+ path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
18885
+ fetch: () => HttpResponse.json({ run_id: 123 })
18886
+ }
18887
+ ]);
18640
18888
  const mswServer = setupServer(...restHandlers);
18641
18889
 
18642
18890
  //#endregion