@sentry/mcp-server 0.10.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 (249) hide show
  1. package/dist/api-client/client.cjs +4 -4
  2. package/dist/api-client/client.d.cts +3 -3
  3. package/dist/api-client/client.d.ts +3 -3
  4. package/dist/api-client/client.js +2 -2
  5. package/dist/api-client/client.test.cjs +8 -9
  6. package/dist/api-client/client.test.cjs.map +1 -1
  7. package/dist/api-client/client.test.js +4 -4
  8. package/dist/api-client/index.cjs +40 -38
  9. package/dist/api-client/index.d.cts +4 -4
  10. package/dist/api-client/index.d.ts +4 -4
  11. package/dist/api-client/index.js +5 -5
  12. package/dist/api-client/schema.cjs +35 -33
  13. package/dist/api-client/schema.d.cts +2 -2
  14. package/dist/api-client/schema.d.ts +2 -2
  15. package/dist/api-client/schema.js +2 -2
  16. package/dist/api-client/types.cjs +1 -1
  17. package/dist/api-client/types.d.cts +3 -3
  18. package/dist/api-client/types.d.ts +3 -3
  19. package/dist/api-client/types.js +1 -1
  20. package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
  21. package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
  22. package/dist/{client-J6VSRmQS.d.ts → client-Bxf4MxOz.d.cts} +7 -5
  23. package/dist/client-Bxf4MxOz.d.cts.map +1 -0
  24. package/dist/{client-Bz_PNC8o.js → client-D5xFZtxK.js} +14 -5
  25. package/dist/client-D5xFZtxK.js.map +1 -0
  26. package/dist/{client-tE6FD__9.d.cts → client-DOhBiaMJ.d.ts} +6 -4
  27. package/dist/client-DOhBiaMJ.d.ts.map +1 -0
  28. package/dist/{client-B4Ux5Zdg.cjs → client-GKHZSXgV.cjs} +14 -6
  29. package/dist/client-GKHZSXgV.cjs.map +1 -0
  30. package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
  31. package/dist/dist-BlIWGSIM.cjs.map +1 -0
  32. package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
  33. package/dist/dist-DDpQABxe.js.map +1 -0
  34. package/dist/errors-B9fwS-aP.cjs +21 -0
  35. package/dist/errors-B9fwS-aP.cjs.map +1 -0
  36. package/dist/errors-BJSrT6Ou.js +15 -0
  37. package/dist/errors-BJSrT6Ou.js.map +1 -0
  38. package/dist/errors.cjs +3 -0
  39. package/dist/errors.d.cts +12 -0
  40. package/dist/errors.d.cts.map +1 -0
  41. package/dist/errors.d.ts +12 -0
  42. package/dist/errors.d.ts.map +1 -0
  43. package/dist/errors.js +3 -0
  44. package/dist/errors.test.cjs +24 -0
  45. package/dist/errors.test.cjs.map +1 -0
  46. package/dist/errors.test.d.cts +1 -0
  47. package/dist/errors.test.d.ts +1 -0
  48. package/dist/errors.test.js +24 -0
  49. package/dist/errors.test.js.map +1 -0
  50. package/dist/{formatting-ggD6YRYR.js → formatting-BaARL2gT.js} +1 -1
  51. package/dist/{formatting-ggD6YRYR.js.map → formatting-BaARL2gT.js.map} +1 -1
  52. package/dist/{formatting-B0SJqiqX.cjs → formatting-C2kN0ok6.cjs} +1 -2
  53. package/dist/{formatting-B0SJqiqX.cjs.map → formatting-C2kN0ok6.cjs.map} +1 -1
  54. package/dist/index.cjs +19 -19
  55. package/dist/index.js +18 -17
  56. package/dist/index.js.map +1 -1
  57. package/dist/internal/formatting.cjs +4 -4
  58. package/dist/internal/formatting.d.cts +4 -5
  59. package/dist/internal/formatting.d.cts.map +1 -1
  60. package/dist/internal/formatting.d.ts +4 -5
  61. package/dist/internal/formatting.d.ts.map +1 -1
  62. package/dist/internal/formatting.js +1 -1
  63. package/dist/internal/issue-helpers.cjs +4 -4
  64. package/dist/internal/issue-helpers.d.cts +2 -2
  65. package/dist/internal/issue-helpers.d.cts.map +1 -1
  66. package/dist/internal/issue-helpers.d.ts +2 -2
  67. package/dist/internal/issue-helpers.d.ts.map +1 -1
  68. package/dist/internal/issue-helpers.js +1 -1
  69. package/dist/internal/issue-helpers.test.cjs +21 -25
  70. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  71. package/dist/internal/issue-helpers.test.js +5 -8
  72. package/dist/internal/issue-helpers.test.js.map +1 -1
  73. package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-71XgJVXC.cjs} +8 -3
  74. package/dist/issue-helpers-71XgJVXC.cjs.map +1 -0
  75. package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-CSNNO03f.js} +8 -2
  76. package/dist/issue-helpers-CSNNO03f.js.map +1 -0
  77. package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
  78. package/dist/{logging-BEMgC5SA.cjs.map → logging-ByvSjT6V.cjs.map} +1 -1
  79. package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
  80. package/dist/{logging-Cxm8lQvg.js.map → logging-CXLD0FFB.js.map} +1 -1
  81. package/dist/logging.cjs +2 -2
  82. package/dist/logging.d.cts +1 -2
  83. package/dist/logging.d.cts.map +1 -1
  84. package/dist/logging.d.ts +1 -2
  85. package/dist/logging.d.ts.map +1 -1
  86. package/dist/logging.js +1 -1
  87. package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
  88. package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
  89. package/dist/{promptDefinitions-pHRpPOpJ.cjs → promptDefinitions-D3ll3qCd.cjs} +3 -4
  90. package/dist/{promptDefinitions-pHRpPOpJ.cjs.map → promptDefinitions-D3ll3qCd.cjs.map} +1 -1
  91. package/dist/{promptDefinitions-BR7PxWcH.d.cts → promptDefinitions-DMucOchd.d.cts} +3 -3
  92. package/dist/promptDefinitions-DMucOchd.d.cts.map +1 -0
  93. package/dist/{promptDefinitions-tpKruPny.d.ts → promptDefinitions-H0q1_X-K.d.ts} +4 -4
  94. package/dist/promptDefinitions-H0q1_X-K.d.ts.map +1 -0
  95. package/dist/{promptDefinitions-DBNOeSg-.js → promptDefinitions-aKmUZWWO.js} +2 -2
  96. package/dist/{promptDefinitions-DBNOeSg-.js.map → promptDefinitions-aKmUZWWO.js.map} +1 -1
  97. package/dist/promptDefinitions.cjs +3 -3
  98. package/dist/promptDefinitions.d.cts +1 -1
  99. package/dist/promptDefinitions.d.ts +1 -1
  100. package/dist/promptDefinitions.js +2 -2
  101. package/dist/{prompts-DgWOD2rU.js → prompts-CzD0yl7Z.js} +1 -1
  102. package/dist/{prompts-DgWOD2rU.js.map → prompts-CzD0yl7Z.js.map} +1 -1
  103. package/dist/{prompts-nfFU-zY-.cjs → prompts-DMwoay8l.cjs} +1 -2
  104. package/dist/{prompts-nfFU-zY-.cjs.map → prompts-DMwoay8l.cjs.map} +1 -1
  105. package/dist/prompts.cjs +2 -2
  106. package/dist/prompts.d.cts +4 -5
  107. package/dist/prompts.d.cts.map +1 -1
  108. package/dist/prompts.d.ts +4 -5
  109. package/dist/prompts.d.ts.map +1 -1
  110. package/dist/prompts.js +1 -1
  111. package/dist/{resources-BAE7VVZZ.cjs → resources-D6TW2ER0.cjs} +1 -2
  112. package/dist/{resources-BAE7VVZZ.cjs.map → resources-D6TW2ER0.cjs.map} +1 -1
  113. package/dist/{resources-OM3EAnnj.js → resources-x-GaokG8.js} +1 -1
  114. package/dist/{resources-OM3EAnnj.js.map → resources-x-GaokG8.js.map} +1 -1
  115. package/dist/resources.cjs +2 -2
  116. package/dist/resources.d.cts +0 -1
  117. package/dist/resources.d.cts.map +1 -1
  118. package/dist/resources.d.ts +0 -1
  119. package/dist/resources.d.ts.map +1 -1
  120. package/dist/resources.js +1 -1
  121. package/dist/{schema-jk88gqOu.cjs → schema-B8lT632E.cjs} +2 -3
  122. package/dist/{schema-jk88gqOu.cjs.map → schema-B8lT632E.cjs.map} +1 -1
  123. package/dist/{schema-BKa41TQ4.js → schema-BkHf97d7.js} +1 -1
  124. package/dist/{schema-BKa41TQ4.js.map → schema-BkHf97d7.js.map} +1 -1
  125. package/dist/{schema-PvgLrC1b.d.cts → schema-C-MLkWMc.d.ts} +59 -24
  126. package/dist/schema-C-MLkWMc.d.ts.map +1 -0
  127. package/dist/{schema-Dltbjui7.js → schema-CewAKS9A.js} +11 -2
  128. package/dist/schema-CewAKS9A.js.map +1 -0
  129. package/dist/{schema-3VLYcf4D.cjs → schema-DkyWSqp_.cjs} +23 -3
  130. package/dist/schema-DkyWSqp_.cjs.map +1 -0
  131. package/dist/{schema-B7A-FyIi.d.ts → schema-DqxkW9Tx.d.cts} +59 -24
  132. package/dist/schema-DqxkW9Tx.d.cts.map +1 -0
  133. package/dist/schema.cjs +11 -11
  134. package/dist/schema.d.cts +1 -2
  135. package/dist/schema.d.cts.map +1 -1
  136. package/dist/schema.d.ts +1 -2
  137. package/dist/schema.d.ts.map +1 -1
  138. package/dist/schema.js +1 -1
  139. package/dist/{server-VwFSUPQn.cjs → server-pGtEIwE3.cjs} +33 -27
  140. package/dist/server-pGtEIwE3.cjs.map +1 -0
  141. package/dist/{server-yb4PkNyo.js → server-qpWdf-ST.js} +32 -25
  142. package/dist/server-qpWdf-ST.js.map +1 -0
  143. package/dist/server.cjs +16 -15
  144. package/dist/server.d.cts +4 -5
  145. package/dist/server.d.cts.map +1 -1
  146. package/dist/server.d.ts +4 -5
  147. package/dist/server.d.ts.map +1 -1
  148. package/dist/server.js +15 -14
  149. package/dist/{stdio-DkU2-spy.js → stdio-D8u2W847.js} +2 -2
  150. package/dist/{stdio-DkU2-spy.js.map → stdio-D8u2W847.js.map} +1 -1
  151. package/dist/{stdio-65sYKLOk.cjs → stdio-DydB2Pxu.cjs} +3 -4
  152. package/dist/{stdio-65sYKLOk.cjs.map → stdio-DydB2Pxu.cjs.map} +1 -1
  153. package/dist/test-setup.cjs +233 -181
  154. package/dist/test-setup.cjs.map +1 -1
  155. package/dist/test-setup.js +233 -181
  156. package/dist/test-setup.js.map +1 -1
  157. package/dist/{toolDefinitions-Bb_1ejkl.js → toolDefinitions-BSC2D_S-.js} +14 -3
  158. package/dist/toolDefinitions-BSC2D_S-.js.map +1 -0
  159. package/dist/{toolDefinitions-DIhvw3vk.cjs → toolDefinitions-BtHN8t_d.cjs} +15 -5
  160. package/dist/toolDefinitions-BtHN8t_d.cjs.map +1 -0
  161. package/dist/{toolDefinitions-q_1-70fG.d.ts → toolDefinitions-Dp13BpEu.d.cts} +37 -5
  162. package/dist/toolDefinitions-Dp13BpEu.d.cts.map +1 -0
  163. package/dist/{toolDefinitions-B94CNDbt.d.cts → toolDefinitions-fQrpWznJ.d.ts} +36 -4
  164. package/dist/toolDefinitions-fQrpWznJ.d.ts.map +1 -0
  165. package/dist/toolDefinitions.cjs +3 -3
  166. package/dist/toolDefinitions.d.cts +1 -1
  167. package/dist/toolDefinitions.d.ts +1 -1
  168. package/dist/toolDefinitions.js +2 -2
  169. package/dist/toolDefinitions.test.cjs +3 -4
  170. package/dist/toolDefinitions.test.cjs.map +1 -1
  171. package/dist/toolDefinitions.test.js +3 -3
  172. package/dist/{tools-CMFpMPpD.js → tools-4Rtn4WEf.js} +27 -10
  173. package/dist/tools-4Rtn4WEf.js.map +1 -0
  174. package/dist/{tools-BdkmyaZo.cjs → tools-DHHqAqP9.cjs} +28 -12
  175. package/dist/tools-DHHqAqP9.cjs.map +1 -0
  176. package/dist/tools.cjs +10 -9
  177. package/dist/tools.d.cts +35 -6
  178. package/dist/tools.d.cts.map +1 -1
  179. package/dist/tools.d.ts +35 -6
  180. package/dist/tools.d.ts.map +1 -1
  181. package/dist/tools.js +9 -8
  182. package/dist/tools.test.cjs +47 -32
  183. package/dist/tools.test.cjs.map +1 -1
  184. package/dist/tools.test.js +28 -12
  185. package/dist/tools.test.js.map +1 -1
  186. package/dist/transports/stdio.cjs +17 -16
  187. package/dist/transports/stdio.d.cts +4 -5
  188. package/dist/transports/stdio.d.cts.map +1 -1
  189. package/dist/transports/stdio.d.ts +4 -5
  190. package/dist/transports/stdio.d.ts.map +1 -1
  191. package/dist/transports/stdio.js +16 -15
  192. package/dist/{types-OeoNXRm-.d.cts → types-CbLyQvVe.d.cts} +3 -4
  193. package/dist/types-CbLyQvVe.d.cts.map +1 -0
  194. package/dist/{types-CN4NEway.d.ts → types-CcffrLXB.d.cts} +5 -5
  195. package/dist/types-CcffrLXB.d.cts.map +1 -0
  196. package/dist/{types-jftb-CP9.d.ts → types-CfJ51LyL.d.ts} +3 -4
  197. package/dist/types-CfJ51LyL.d.ts.map +1 -0
  198. package/dist/{types-B03G337q.d.cts → types-DuUmV9zh.d.ts} +5 -5
  199. package/dist/types-DuUmV9zh.d.ts.map +1 -0
  200. package/dist/types.d.cts +3 -3
  201. package/dist/types.d.ts +3 -3
  202. package/dist/version-BT9r_3jm.js +6 -0
  203. package/dist/{version-TjO7fHpC.js.map → version-BT9r_3jm.js.map} +1 -1
  204. package/dist/{version-CDnh7DyW.cjs → version-CRzAHHGZ.cjs} +2 -3
  205. package/dist/{version-CDnh7DyW.cjs.map → version-CRzAHHGZ.cjs.map} +1 -1
  206. package/dist/version.cjs +2 -2
  207. package/dist/version.d.cts +1 -2
  208. package/dist/version.d.cts.map +1 -1
  209. package/dist/version.d.ts +1 -2
  210. package/dist/version.d.ts.map +1 -1
  211. package/dist/version.js +1 -1
  212. package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
  213. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
  214. package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
  215. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
  216. package/package.json +8 -8
  217. package/dist/client-B4Ux5Zdg.cjs.map +0 -1
  218. package/dist/client-Bz_PNC8o.js.map +0 -1
  219. package/dist/client-J6VSRmQS.d.ts.map +0 -1
  220. package/dist/client-tE6FD__9.d.cts.map +0 -1
  221. package/dist/dist-BKh-M1A1.js.map +0 -1
  222. package/dist/dist-wiyJYfAH.cjs.map +0 -1
  223. package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
  224. package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
  225. package/dist/promptDefinitions-BR7PxWcH.d.cts.map +0 -1
  226. package/dist/promptDefinitions-tpKruPny.d.ts.map +0 -1
  227. package/dist/schema-3VLYcf4D.cjs.map +0 -1
  228. package/dist/schema-B7A-FyIi.d.ts.map +0 -1
  229. package/dist/schema-Dltbjui7.js.map +0 -1
  230. package/dist/schema-PvgLrC1b.d.cts.map +0 -1
  231. package/dist/server-VwFSUPQn.cjs.map +0 -1
  232. package/dist/server-yb4PkNyo.js.map +0 -1
  233. package/dist/toolDefinitions-B94CNDbt.d.cts.map +0 -1
  234. package/dist/toolDefinitions-Bb_1ejkl.js.map +0 -1
  235. package/dist/toolDefinitions-DIhvw3vk.cjs.map +0 -1
  236. package/dist/toolDefinitions-q_1-70fG.d.ts.map +0 -1
  237. package/dist/tools-BdkmyaZo.cjs.map +0 -1
  238. package/dist/tools-CMFpMPpD.js.map +0 -1
  239. package/dist/types-B03G337q.d.cts.map +0 -1
  240. package/dist/types-CN4NEway.d.ts.map +0 -1
  241. package/dist/types-OeoNXRm-.d.cts.map +0 -1
  242. package/dist/types-jftb-CP9.d.ts.map +0 -1
  243. package/dist/version-TjO7fHpC.js +0 -6
  244. package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
  245. package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
  246. /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
  247. /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
  248. /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
  249. /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
@@ -0,0 +1,21 @@
1
+
2
+ //#region src/errors.ts
3
+ /**
4
+ * Error thrown when user input validation fails.
5
+ * These errors should be returned to the user directly without logging to Sentry.
6
+ */
7
+ var UserInputError = class extends Error {
8
+ constructor(message) {
9
+ super(message);
10
+ this.name = "UserInputError";
11
+ }
12
+ };
13
+
14
+ //#endregion
15
+ Object.defineProperty(exports, 'UserInputError', {
16
+ enumerable: true,
17
+ get: function () {
18
+ return UserInputError;
19
+ }
20
+ });
21
+ //# sourceMappingURL=errors-B9fwS-aP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-B9fwS-aP.cjs","names":["message: string"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"UserInputError\";\n }\n}\n"],"mappings":";;;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiB;AAC3B,QAAM,QAAQ;AACd,OAAK,OAAO;CACb;AACF"}
@@ -0,0 +1,15 @@
1
+ //#region src/errors.ts
2
+ /**
3
+ * Error thrown when user input validation fails.
4
+ * These errors should be returned to the user directly without logging to Sentry.
5
+ */
6
+ var UserInputError = class extends Error {
7
+ constructor(message) {
8
+ super(message);
9
+ this.name = "UserInputError";
10
+ }
11
+ };
12
+
13
+ //#endregion
14
+ export { UserInputError };
15
+ //# sourceMappingURL=errors-BJSrT6Ou.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-BJSrT6Ou.js","names":["message: string"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"UserInputError\";\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiB;AAC3B,QAAM,QAAQ;AACd,OAAK,OAAO;CACb;AACF"}
@@ -0,0 +1,3 @@
1
+ const require_errors = require('./errors-B9fwS-aP.cjs');
2
+
3
+ exports.UserInputError = require_errors.UserInputError;
@@ -0,0 +1,12 @@
1
+ //#region src/errors.d.ts
2
+ /**
3
+ * Error thrown when user input validation fails.
4
+ * These errors should be returned to the user directly without logging to Sentry.
5
+ */
6
+ declare class UserInputError extends Error {
7
+ constructor(message: string);
8
+ }
9
+ //# sourceMappingURL=errors.d.ts.map
10
+ //#endregion
11
+ export { UserInputError };
12
+ //# sourceMappingURL=errors.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.cts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;cAAa,cAAA,SAAuB,KAAK"}
@@ -0,0 +1,12 @@
1
+ //#region src/errors.d.ts
2
+ /**
3
+ * Error thrown when user input validation fails.
4
+ * These errors should be returned to the user directly without logging to Sentry.
5
+ */
6
+ declare class UserInputError extends Error {
7
+ constructor(message: string);
8
+ }
9
+ //# sourceMappingURL=errors.d.ts.map
10
+ //#endregion
11
+ export { UserInputError };
12
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;cAAa,cAAA,SAAuB,KAAK"}
package/dist/errors.js ADDED
@@ -0,0 +1,3 @@
1
+ import { UserInputError } from "./errors-BJSrT6Ou.js";
2
+
3
+ export { UserInputError };
@@ -0,0 +1,24 @@
1
+ const require_dist = require('./dist-BlIWGSIM.cjs');
2
+ const require_vi_bdSIJ99Y = require('./vi.bdSIJ99Y-Dft_B_Ta.cjs');
3
+ const require_errors = require('./errors-B9fwS-aP.cjs');
4
+
5
+ //#region src/errors.test.ts
6
+ require_dist.describe("UserInputError", () => {
7
+ require_dist.it("should create a UserInputError with the correct message and name", () => {
8
+ const message = "Invalid input provided";
9
+ const error = new require_errors.UserInputError(message);
10
+ require_vi_bdSIJ99Y.globalExpect(error.message).toBe(message);
11
+ require_vi_bdSIJ99Y.globalExpect(error.name).toBe("UserInputError");
12
+ require_vi_bdSIJ99Y.globalExpect(error instanceof Error).toBe(true);
13
+ require_vi_bdSIJ99Y.globalExpect(error instanceof require_errors.UserInputError).toBe(true);
14
+ });
15
+ require_dist.it("should be distinguishable from regular Error", () => {
16
+ const userInputError = new require_errors.UserInputError("User input error");
17
+ const regularError = new Error("Regular error");
18
+ require_vi_bdSIJ99Y.globalExpect(userInputError instanceof require_errors.UserInputError).toBe(true);
19
+ require_vi_bdSIJ99Y.globalExpect(regularError instanceof require_errors.UserInputError).toBe(false);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ //# sourceMappingURL=errors.test.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.test.cjs","names":["UserInputError"],"sources":["../src/errors.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { UserInputError } from \"./errors\";\n\ndescribe(\"UserInputError\", () => {\n it(\"should create a UserInputError with the correct message and name\", () => {\n const message = \"Invalid input provided\";\n const error = new UserInputError(message);\n\n expect(error.message).toBe(message);\n expect(error.name).toBe(\"UserInputError\");\n expect(error instanceof Error).toBe(true);\n expect(error instanceof UserInputError).toBe(true);\n });\n\n it(\"should be distinguishable from regular Error\", () => {\n const userInputError = new UserInputError(\"User input error\");\n const regularError = new Error(\"Regular error\");\n\n expect(userInputError instanceof UserInputError).toBe(true);\n expect(regularError instanceof UserInputError).toBe(false);\n });\n});\n"],"mappings":";;;;;AAGA,sBAAS,kBAAkB,MAAM;AAC/B,iBAAG,oEAAoE,MAAM;EAC3E,MAAM,UAAU;EAChB,MAAM,QAAQ,IAAIA,8BAAe;AAEjC,mCAAO,MAAM,QAAQ,CAAC,KAAK,QAAQ;AACnC,mCAAO,MAAM,KAAK,CAAC,KAAK,iBAAiB;AACzC,mCAAO,iBAAiB,MAAM,CAAC,KAAK,KAAK;AACzC,mCAAO,iBAAiBA,8BAAe,CAAC,KAAK,KAAK;CACnD,EAAC;AAEF,iBAAG,gDAAgD,MAAM;EACvD,MAAM,iBAAiB,IAAIA,8BAAe;EAC1C,MAAM,eAAe,IAAI,MAAM;AAE/B,mCAAO,0BAA0BA,8BAAe,CAAC,KAAK,KAAK;AAC3D,mCAAO,wBAAwBA,8BAAe,CAAC,KAAK,MAAM;CAC3D,EAAC;AACH,EAAC"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,24 @@
1
+ import { describe, it } from "./dist-DDpQABxe.js";
2
+ import { globalExpect } from "./vi.bdSIJ99Y-BfJr7I2s.js";
3
+ import { UserInputError } from "./errors-BJSrT6Ou.js";
4
+
5
+ //#region src/errors.test.ts
6
+ describe("UserInputError", () => {
7
+ it("should create a UserInputError with the correct message and name", () => {
8
+ const message = "Invalid input provided";
9
+ const error = new UserInputError(message);
10
+ globalExpect(error.message).toBe(message);
11
+ globalExpect(error.name).toBe("UserInputError");
12
+ globalExpect(error instanceof Error).toBe(true);
13
+ globalExpect(error instanceof UserInputError).toBe(true);
14
+ });
15
+ it("should be distinguishable from regular Error", () => {
16
+ const userInputError = new UserInputError("User input error");
17
+ const regularError = new Error("Regular error");
18
+ globalExpect(userInputError instanceof UserInputError).toBe(true);
19
+ globalExpect(regularError instanceof UserInputError).toBe(false);
20
+ });
21
+ });
22
+
23
+ //#endregion
24
+ //# sourceMappingURL=errors.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.test.js","names":[],"sources":["../src/errors.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { UserInputError } from \"./errors\";\n\ndescribe(\"UserInputError\", () => {\n it(\"should create a UserInputError with the correct message and name\", () => {\n const message = \"Invalid input provided\";\n const error = new UserInputError(message);\n\n expect(error.message).toBe(message);\n expect(error.name).toBe(\"UserInputError\");\n expect(error instanceof Error).toBe(true);\n expect(error instanceof UserInputError).toBe(true);\n });\n\n it(\"should be distinguishable from regular Error\", () => {\n const userInputError = new UserInputError(\"User input error\");\n const regularError = new Error(\"Regular error\");\n\n expect(userInputError instanceof UserInputError).toBe(true);\n expect(regularError instanceof UserInputError).toBe(false);\n });\n});\n"],"mappings":";;;;;AAGA,SAAS,kBAAkB,MAAM;AAC/B,IAAG,oEAAoE,MAAM;EAC3E,MAAM,UAAU;EAChB,MAAM,QAAQ,IAAI,eAAe;AAEjC,eAAO,MAAM,QAAQ,CAAC,KAAK,QAAQ;AACnC,eAAO,MAAM,KAAK,CAAC,KAAK,iBAAiB;AACzC,eAAO,iBAAiB,MAAM,CAAC,KAAK,KAAK;AACzC,eAAO,iBAAiB,eAAe,CAAC,KAAK,KAAK;CACnD,EAAC;AAEF,IAAG,gDAAgD,MAAM;EACvD,MAAM,iBAAiB,IAAI,eAAe;EAC1C,MAAM,eAAe,IAAI,MAAM;AAE/B,eAAO,0BAA0B,eAAe,CAAC,KAAK,KAAK;AAC3D,eAAO,wBAAwB,eAAe,CAAC,KAAK,MAAM;CAC3D,EAAC;AACH,EAAC"}
@@ -65,4 +65,4 @@ function formatIssueOutput({ organizationSlug, issue, event, apiService }) {
65
65
 
66
66
  //#endregion
67
67
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
68
- //# sourceMappingURL=formatting-ggD6YRYR.js.map
68
+ //# sourceMappingURL=formatting-BaARL2gT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-ggD6YRYR.js","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event","data: z.infer<typeof ErrorEntrySchema>","data: z.infer<typeof RequestEntrySchema>","contexts: z.infer<typeof EventSchema>[\"contexts\"]"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n EventSchema,\n FrameInterface,\n RequestEntrySchema,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n output += formatExceptionInterfaceOutput(\n event,\n entry.data as z.infer<typeof ErrorEntrySchema>,\n );\n }\n if (entry.type === \"request\") {\n output += formatRequestInterfaceOutput(\n event,\n entry.data as z.infer<typeof RequestEntrySchema>,\n );\n }\n }\n output += formatContexts(event.contexts);\n return output;\n}\n\nfunction formatExceptionInterfaceOutput(\n event: Event,\n data: z.infer<typeof ErrorEntrySchema>,\n) {\n let output = \"\";\n // TODO: support chained exceptions\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n return \"\";\n }\n output += `### Error\\n\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n return output;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n return output;\n}\n\nfunction formatRequestInterfaceOutput(\n event: Event,\n data: z.infer<typeof RequestEntrySchema>,\n) {\n if (!data.method || !data.url) {\n return \"\";\n }\n return `### HTTP Request\\n\\n**Method:** ${data.method}\\n**URL:** ${data.url}\\n\\n`;\n}\n\nfunction formatContexts(contexts: z.infer<typeof EventSchema>[\"contexts\"]) {\n if (!contexts) {\n return \"\";\n }\n return `### Additional Context\\n\\nThese are additional context provided by the user when they're instrumenting their application.\\n\\n${Object.entries(\n contexts,\n )\n .map(\n ([name, data]) =>\n `**${name}**\\n${Object.entries(data)\n .filter(([key, _]) => key !== \"type\")\n .map(([key, value]) => {\n return `${key}: ${JSON.stringify(value, undefined, 2)}`;\n })\n .join(\"\\n\")}`,\n )\n .join(\"\\n\\n\")}\\n\\n`;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**Occurrences**: ${issue.count}\\n`;\n output += `**Users Impacted**: ${issue.userCount}\\n`;\n output += `**Status**: ${issue.status}\\n`;\n output += `**Platform**: ${issue.platform}\\n`;\n output += `**Project**: ${issue.project.name}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += \"\\n\";\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";AAWA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa,CACpC,SAAQ,EAAE;EAAC,MAAM;EAAU,MAAM;EAAQ,MAAM;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QAAO;AACR"}
1
+ {"version":3,"file":"formatting-BaARL2gT.js","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event","data: z.infer<typeof ErrorEntrySchema>","data: z.infer<typeof RequestEntrySchema>","contexts: z.infer<typeof EventSchema>[\"contexts\"]"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n EventSchema,\n FrameInterface,\n RequestEntrySchema,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n output += formatExceptionInterfaceOutput(\n event,\n entry.data as z.infer<typeof ErrorEntrySchema>,\n );\n }\n if (entry.type === \"request\") {\n output += formatRequestInterfaceOutput(\n event,\n entry.data as z.infer<typeof RequestEntrySchema>,\n );\n }\n }\n output += formatContexts(event.contexts);\n return output;\n}\n\nfunction formatExceptionInterfaceOutput(\n event: Event,\n data: z.infer<typeof ErrorEntrySchema>,\n) {\n let output = \"\";\n // TODO: support chained exceptions\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n return \"\";\n }\n output += `### Error\\n\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n return output;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n return output;\n}\n\nfunction formatRequestInterfaceOutput(\n event: Event,\n data: z.infer<typeof RequestEntrySchema>,\n) {\n if (!data.method || !data.url) {\n return \"\";\n }\n return `### HTTP Request\\n\\n**Method:** ${data.method}\\n**URL:** ${data.url}\\n\\n`;\n}\n\nfunction formatContexts(contexts: z.infer<typeof EventSchema>[\"contexts\"]) {\n if (!contexts) {\n return \"\";\n }\n return `### Additional Context\\n\\nThese are additional context provided by the user when they're instrumenting their application.\\n\\n${Object.entries(\n contexts,\n )\n .map(\n ([name, data]) =>\n `**${name}**\\n${Object.entries(data)\n .filter(([key, _]) => key !== \"type\")\n .map(([key, value]) => {\n return `${key}: ${JSON.stringify(value, undefined, 2)}`;\n })\n .join(\"\\n\")}`,\n )\n .join(\"\\n\\n\")}\\n\\n`;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**Occurrences**: ${issue.count}\\n`;\n output += `**Users Impacted**: ${issue.userCount}\\n`;\n output += `**Status**: ${issue.status}\\n`;\n output += `**Platform**: ${issue.platform}\\n`;\n output += `**Project**: ${issue.project.name}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += \"\\n\";\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";AAWA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa,CACpC,SAAQ,EAAE;EAAC,MAAM;EAAU,MAAM;EAAQ,MAAM;CAAM,EAClD,OAAO,CAAC,QAAQ,EAAE,CAClB,KAAK,IAAI,CAAC,EAAE,MAAM,YAAY,IAAI,MAAM,SAAS,KAAK,GAAG;AAE9D,SAAQ,EAAE,MAAM,YAAY,GAAG,MAAM,SAAS,KAAK,mBAAmB,OAAO,MAAM,YAAY,MAAM,OAAO,GAC1G,MAAM,UACD,WAAW,MAAM,OAAO,EAAE,MAAM,UAAU,QAAQ,GAAG,MAAM,MAAM,IAAI,GAAG,IACzE,GACL;AACF;AAED,SAAgB,kBAAkBC,OAAc;CAC9C,IAAI,SAAS;AACb,MAAK,MAAM,SAAS,MAAM,SAAS;AACjC,MAAI,MAAM,SAAS,YACjB,WAAU,+BACR,OACA,MAAM,KACP;AAEH,MAAI,MAAM,SAAS,UACjB,WAAU,6BACR,OACA,MAAM,KACP;CAEJ;AACD,WAAU,eAAe,MAAM,SAAS;AACxC,QAAO;AACR;AAED,SAAS,+BACPA,OACAC,MACA;CACA,IAAI,SAAS;CAEb,MAAM,aAAa,KAAK,SAAS,KAAK,OAAO;AAC7C,MAAK,WACH,QAAO;AAET,YAAW,uBAAyB,WAAW,KAAK,IAClD,WAAW,MACZ;A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AAW,mBAAmB,MAAM,MAAM;AAC1C,YAAW,sBAAsB,MAAM,UAAU;AACjD,YAAW,cAAc,MAAM,OAAO;AACtC,YAAW,gBAAgB,MAAM,SAAS;AAC1C,YAAW,eAAe,MAAM,QAAQ,KAAK;AAC7C,YAAW,WAAW,WAAW,YAAY,kBAAkB,MAAM,QAAQ,CAAC;AAC9E,WAAU;AACV,WAAU;AACV,YAAW,gBAAgB,MAAM,GAAG;AACpC,KAAI,MAAM,SAAS,QACjB,YAAW,mBAAmB,IAAI,KAAM,MAA2C,aAAa,aAAa,CAAC;AAEhH,KAAI,MAAM,QACR,YAAW,gBAAgB,MAAM,QAAQ;AAE3C,WAAU;AACV,WAAU,kBAAkB,MAAM;AAClC,WAAU;AACV,YAAW,mEAAmE,MAAM,QAAQ;AAC5F,WACE;AACF,QAAO;AACR"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
 
3
2
  //#region src/internal/formatting.ts
4
3
  function formatFrameHeader(frame, platform) {
@@ -84,4 +83,4 @@ Object.defineProperty(exports, 'formatIssueOutput', {
84
83
  return formatIssueOutput;
85
84
  }
86
85
  });
87
- //# sourceMappingURL=formatting-B0SJqiqX.cjs.map
86
+ //# sourceMappingURL=formatting-C2kN0ok6.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-B0SJqiqX.cjs","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event","data: z.infer<typeof ErrorEntrySchema>","data: z.infer<typeof RequestEntrySchema>","contexts: z.infer<typeof EventSchema>[\"contexts\"]"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n EventSchema,\n FrameInterface,\n RequestEntrySchema,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n output += formatExceptionInterfaceOutput(\n event,\n entry.data as z.infer<typeof ErrorEntrySchema>,\n );\n }\n if (entry.type === \"request\") {\n output += formatRequestInterfaceOutput(\n event,\n entry.data as z.infer<typeof RequestEntrySchema>,\n );\n }\n }\n output += formatContexts(event.contexts);\n return output;\n}\n\nfunction formatExceptionInterfaceOutput(\n event: Event,\n data: z.infer<typeof ErrorEntrySchema>,\n) {\n let output = \"\";\n // TODO: support chained exceptions\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n return \"\";\n }\n output += `### Error\\n\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n return output;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n return output;\n}\n\nfunction formatRequestInterfaceOutput(\n event: Event,\n data: z.infer<typeof RequestEntrySchema>,\n) {\n if (!data.method || !data.url) {\n return \"\";\n }\n return `### HTTP Request\\n\\n**Method:** ${data.method}\\n**URL:** ${data.url}\\n\\n`;\n}\n\nfunction formatContexts(contexts: z.infer<typeof EventSchema>[\"contexts\"]) {\n if (!contexts) {\n return \"\";\n }\n return `### Additional Context\\n\\nThese are additional context provided by the user when they're instrumenting their application.\\n\\n${Object.entries(\n contexts,\n )\n .map(\n ([name, data]) =>\n `**${name}**\\n${Object.entries(data)\n .filter(([key, _]) => key !== \"type\")\n .map(([key, value]) => {\n return `${key}: ${JSON.stringify(value, undefined, 2)}`;\n })\n .join(\"\\n\")}`,\n )\n .join(\"\\n\\n\")}\\n\\n`;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**Occurrences**: ${issue.count}\\n`;\n output += `**Users Impacted**: ${issue.userCount}\\n`;\n output += `**Status**: ${issue.status}\\n`;\n output += `**Platform**: ${issue.platform}\\n`;\n output += `**Project**: ${issue.project.name}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += \"\\n\";\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";;;AAWA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa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C,WAAU;AACV,YAAW,mEAAmE,MAAM,QAAQ;AAC5F,WACE;AACF,QAAO;AACR"}
1
+ {"version":3,"file":"formatting-C2kN0ok6.cjs","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event","data: z.infer<typeof ErrorEntrySchema>","data: z.infer<typeof RequestEntrySchema>","contexts: z.infer<typeof EventSchema>[\"contexts\"]"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n EventSchema,\n FrameInterface,\n RequestEntrySchema,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n output += formatExceptionInterfaceOutput(\n event,\n entry.data as z.infer<typeof ErrorEntrySchema>,\n );\n }\n if (entry.type === \"request\") {\n output += formatRequestInterfaceOutput(\n event,\n entry.data as z.infer<typeof RequestEntrySchema>,\n );\n }\n }\n output += formatContexts(event.contexts);\n return output;\n}\n\nfunction formatExceptionInterfaceOutput(\n event: Event,\n data: z.infer<typeof ErrorEntrySchema>,\n) {\n let output = \"\";\n // TODO: support chained exceptions\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n return \"\";\n }\n output += `### Error\\n\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n return output;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n return output;\n}\n\nfunction formatRequestInterfaceOutput(\n event: Event,\n data: z.infer<typeof RequestEntrySchema>,\n) {\n if (!data.method || !data.url) {\n return \"\";\n }\n return `### HTTP Request\\n\\n**Method:** ${data.method}\\n**URL:** ${data.url}\\n\\n`;\n}\n\nfunction formatContexts(contexts: z.infer<typeof EventSchema>[\"contexts\"]) {\n if (!contexts) {\n return \"\";\n }\n return `### Additional Context\\n\\nThese are additional context provided by the user when they're instrumenting their application.\\n\\n${Object.entries(\n contexts,\n )\n .map(\n ([name, data]) =>\n `**${name}**\\n${Object.entries(data)\n .filter(([key, _]) => key !== \"type\")\n .map(([key, value]) => {\n return `${key}: ${JSON.stringify(value, undefined, 2)}`;\n })\n .join(\"\\n\")}`,\n )\n .join(\"\\n\\n\")}\\n\\n`;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**Occurrences**: ${issue.count}\\n`;\n output += `**Users Impacted**: ${issue.userCount}\\n`;\n output += `**Status**: ${issue.status}\\n`;\n output += `**Platform**: ${issue.platform}\\n`;\n output += `**Project**: ${issue.project.name}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += \"\\n\";\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";;AAWA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa,CACpC,SAAQ,EAAE;EAAC,MAAM;EAAU,MAAM;EAAQ,MAAM;CAAM,EAClD,OAAO,CAAC,QAAQ,EAAE,CAClB,KAAK,IAAI,CAAC,EAAE,MAAM,YAAY,IAAI,MAAM,SAAS,KAAK,GAAG;AAE9D,SAAQ,EAAE,MAAM,YAAY,GAAG,MAAM,SAAS,KAAK,mBAAmB,OAAO,MAAM,YAAY,MAAM,OAAO,GAC1G,MAAM,UACD,WAAW,MAAM,OAAO,EAAE,MAAM,UAAU,QAAQ,GAAG,MAAM,MAAM,IAAI,GAAG,IACzE,GACL;AACF;AAED,SAAgB,kBAAkBC,OAAc;CAC9C,IAAI,SAAS;AACb,MAAK,MAAM,SAAS,MAAM,SAAS;AACjC,MAAI,MAAM,SAAS,YACjB,WAAU,+BACR,OACA,MAAM,KACP;AAEH,MAAI,MAAM,SAAS,UACjB,WAAU,6BACR,OACA,MAAM,KACP;CAEJ;AACD,WAAU,eAAe,MAAM,SAAS;AACxC,QAAO;AACR;AAED,SAAS,+BACPA,OACAC,MACA;CACA,IAAI,SAAS;CAEb,MAAM,aAAa,KAAK,SAAS,KAAK,OAAO;AAC7C,MAAK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ACrE,YAAW,iBAAiB,IAAI,KAAK,MAAM,UAAU,aAAa,CAAC;AACnE,YAAW,mBAAmB,MAAM,MAAM;AAC1C,YAAW,sBAAsB,MAAM,UAAU;AACjD,YAAW,cAAc,MAAM,OAAO;AACtC,YAAW,gBAAgB,MAAM,SAAS;AAC1C,YAAW,eAAe,MAAM,QAAQ,KAAK;AAC7C,YAAW,WAAW,WAAW,YAAY,kBAAkB,MAAM,QAAQ,CAAC;AAC9E,WAAU;AACV,WAAU;AACV,YAAW,gBAAgB,MAAM,GAAG;AACpC,KAAI,MAAM,SAAS,QACjB,YAAW,mBAAmB,IAAI,KAAM,MAA2C,aAAa,aAAa,CAAC;AAEhH,KAAI,MAAM,QACR,YAAW,gBAAgB,MAAM,QAAQ;AAE3C,WAAU;AACV,WAAU,kBAAkB,MAAM;AAClC,WAAU;AACV,YAAW,mEAAmE,MAAM,QAAQ;AAC5F,WACE;AACF,QAAO;AACR"}
package/dist/index.cjs CHANGED
@@ -1,22 +1,22 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
- const require_chunk = require('./chunk-BtT13l48.cjs');
4
- require('./schema-3VLYcf4D.cjs');
5
- require('./client-B4Ux5Zdg.cjs');
6
- require('./types-o3zWarRp.cjs');
7
- require('./api-client-CEBuz3Zu.cjs');
8
- require('./formatting-B0SJqiqX.cjs');
9
- require('./issue-helpers-DbsECZFq.cjs');
10
- require('./logging-BEMgC5SA.cjs');
11
- require('./tools-BdkmyaZo.cjs');
12
- require('./schema-jk88gqOu.cjs');
13
- require('./toolDefinitions-DIhvw3vk.cjs');
14
- require('./resources-BAE7VVZZ.cjs');
15
- require('./promptDefinitions-pHRpPOpJ.cjs');
16
- require('./prompts-nfFU-zY-.cjs');
17
- require('./server-VwFSUPQn.cjs');
18
- const require_stdio = require('./stdio-65sYKLOk.cjs');
19
- const require_version = require('./version-CDnh7DyW.cjs');
2
+ const require_chunk = require('./chunk-DWy1uDak.cjs');
3
+ require('./errors-B9fwS-aP.cjs');
4
+ require('./schema-DkyWSqp_.cjs');
5
+ require('./client-GKHZSXgV.cjs');
6
+ require('./types-MYBaygjr.cjs');
7
+ require('./api-client-CL1WDkw9.cjs');
8
+ require('./formatting-C2kN0ok6.cjs');
9
+ require('./issue-helpers-71XgJVXC.cjs');
10
+ require('./logging-ByvSjT6V.cjs');
11
+ require('./tools-DHHqAqP9.cjs');
12
+ require('./schema-B8lT632E.cjs');
13
+ require('./toolDefinitions-BtHN8t_d.cjs');
14
+ require('./resources-D6TW2ER0.cjs');
15
+ require('./promptDefinitions-D3ll3qCd.cjs');
16
+ require('./prompts-DMwoay8l.cjs');
17
+ require('./server-pGtEIwE3.cjs');
18
+ const require_stdio = require('./stdio-DydB2Pxu.cjs');
19
+ const require_version = require('./version-CRzAHHGZ.cjs');
20
20
  const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
21
21
  const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
22
22
 
@@ -56,7 +56,7 @@ __sentry_node.init({
56
56
  "mcp.transport": "stdio",
57
57
  "sentry.host": host
58
58
  } },
59
- release: "0.10.0",
59
+ release: "0.11.0",
60
60
  integrations: [__sentry_node.consoleLoggingIntegration(), __sentry_node.zodErrorsIntegration()],
61
61
  environment: "stdio"
62
62
  });
package/dist/index.js CHANGED
@@ -1,20 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import "./schema-Dltbjui7.js";
3
- import "./client-Bz_PNC8o.js";
4
- import "./types-H-TSmRpm.js";
5
- import "./api-client-9mzrj2HY.js";
6
- import "./formatting-ggD6YRYR.js";
7
- import "./issue-helpers-CyoHu5j4.js";
8
- import "./logging-Cxm8lQvg.js";
9
- import "./tools-CMFpMPpD.js";
10
- import "./schema-BKa41TQ4.js";
11
- import "./toolDefinitions-Bb_1ejkl.js";
12
- import "./resources-OM3EAnnj.js";
13
- import "./promptDefinitions-DBNOeSg-.js";
14
- import "./prompts-DgWOD2rU.js";
15
- import "./server-yb4PkNyo.js";
16
- import { startStdio } from "./stdio-DkU2-spy.js";
17
- import { LIB_VERSION } from "./version-TjO7fHpC.js";
2
+ import "./errors-BJSrT6Ou.js";
3
+ import "./schema-CewAKS9A.js";
4
+ import "./client-D5xFZtxK.js";
5
+ import "./types-6zHoEWAx.js";
6
+ import "./api-client-CNv_hbPO.js";
7
+ import "./formatting-BaARL2gT.js";
8
+ import "./issue-helpers-CSNNO03f.js";
9
+ import "./logging-CXLD0FFB.js";
10
+ import "./tools-4Rtn4WEf.js";
11
+ import "./schema-BkHf97d7.js";
12
+ import "./toolDefinitions-BSC2D_S-.js";
13
+ import "./resources-x-GaokG8.js";
14
+ import "./promptDefinitions-aKmUZWWO.js";
15
+ import "./prompts-CzD0yl7Z.js";
16
+ import "./server-qpWdf-ST.js";
17
+ import { startStdio } from "./stdio-D8u2W847.js";
18
+ import { LIB_VERSION } from "./version-BT9r_3jm.js";
18
19
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
19
20
  import * as Sentry from "@sentry/node";
20
21
 
@@ -54,7 +55,7 @@ Sentry.init({
54
55
  "mcp.transport": "stdio",
55
56
  "sentry.host": host
56
57
  } },
57
- release: "0.10.0",
58
+ release: "0.11.0",
58
59
  integrations: [Sentry.consoleLoggingIntegration(), Sentry.zodErrorsIntegration()],
59
60
  environment: "stdio"
60
61
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\n// SENTRY_AUTH_TOKEN is deprecated, but we support it for backwards compatibility\nlet accessToken: string | undefined =\n process.env.SENTRY_ACCESS_TOKEN ?? process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_ACCESS_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n tracesSampleRate: 1,\n initialScope: {\n tags: {\n \"mcp.server_version\": LIB_VERSION,\n \"mcp.transport\": \"stdio\",\n \"sentry.host\": host,\n },\n },\n release: process.env.SENTRY_RELEASE,\n integrations: [\n Sentry.consoleLoggingIntegration(),\n Sentry.zodErrorsIntegration(),\n ],\n environment:\n process.env.SENTRY_ENVIRONMENT ??\n (process.env.NODE_ENV !== \"production\" ? \"development\" : \"production\"),\n});\n\nconst server = new McpServer({\n name: \"Sentry MCP\",\n version: LIB_VERSION,\n});\n\nconst instrumentedServer = Sentry.wrapMcpServerWithSentry(server);\n\nconst SENTRY_TIMEOUT = 5000; // 5 seconds\n\n// XXX: we could do what we're doing in routes/auth.ts and pass the context\n// identically, but we don't really need userId and userName yet\nstartStdio(instrumentedServer, {\n accessToken,\n organizationSlug: null,\n host,\n}).catch((err) => {\n console.error(\"Server error:\", err);\n // ensure we've flushed all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,oBAAoB;CAC7B;CACA,kBAAkB;CAClB;AACD,EAAC,CAAC,MAAM,CAAC,QAAQ;AAChB,SAAQ,MAAM,iBAAiB,IAAI;AAEnC,QAAO,MAAM,eAAe;AAC5B,SAAQ,KAAK,EAAE;AAChB,EAAC;AAGF,OAAO,MAAM,eAAe"}
1
+ {"version":3,"file":"index.js","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\n// SENTRY_AUTH_TOKEN is deprecated, but we support it for backwards compatibility\nlet accessToken: string | undefined =\n process.env.SENTRY_ACCESS_TOKEN ?? process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_ACCESS_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n tracesSampleRate: 1,\n initialScope: {\n tags: {\n \"mcp.server_version\": LIB_VERSION,\n \"mcp.transport\": \"stdio\",\n \"sentry.host\": host,\n },\n },\n release: process.env.SENTRY_RELEASE,\n integrations: [\n Sentry.consoleLoggingIntegration(),\n Sentry.zodErrorsIntegration(),\n ],\n environment:\n process.env.SENTRY_ENVIRONMENT ??\n (process.env.NODE_ENV !== \"production\" ? \"development\" : \"production\"),\n});\n\nconst server = new McpServer({\n name: \"Sentry MCP\",\n version: LIB_VERSION,\n});\n\nconst instrumentedServer = Sentry.wrapMcpServerWithSentry(server);\n\nconst SENTRY_TIMEOUT = 5000; // 5 seconds\n\n// XXX: we could do what we're doing in routes/auth.ts and pass the context\n// identically, but we don't really need userId and userName yet\nstartStdio(instrumentedServer, {\n accessToken,\n organizationSlug: null,\n host,\n}).catch((err) => {\n console.error(\"Server error:\", err);\n // ensure we've flushed all events\n Sentry.flush(SENTRY_TIMEOUT);\n process.exit(1);\n});\n\n// ensure we've flushed all events\nSentry.flush(SENTRY_TIMEOUT);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAIA,cACF,QAAQ,IAAI,uBAAuB,QAAQ,IAAI;AACjD,IAAIC,OAA2B,QAAQ,IAAI;AAC3C,IAAIC,YACF,QAAQ,IAAI;AAEd,MAAM,cAAc;AAEpB,SAAS,WAAW;AAClB,SAAQ,SAAS,YAAY;AAC9B;AAED,KAAK,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE,EAAE;AACvC,KAAI,QAAQ,eAAe,QAAQ,MAAM;AACvC,UAAQ,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE;AAC5C,UAAQ,KAAK,EAAE;CAChB;AACD,KAAI,IAAI,WAAW,kBAAkB,CACnC,eAAc,IAAI,MAAM,IAAI,CAAC;UACpB,IAAI,WAAW,UAAU,CAClC,QAAO,IAAI,MAAM,IAAI,CAAC;UACb,IAAI,WAAW,gBAAgB,CACxC,aAAY,IAAI,MAAM,IAAI,CAAC;MACtB;AACL,UAAQ,MAAM,4BAA4B,IAAI;AAC9C,UAAQ,MAAM,UAAU,CAAC;AACzB,UAAQ,KAAK,EAAE;CAChB;AACF;AAED,KAAK,aAAa;AAChB,SAAQ,MACN,oGACD;AACD,SAAQ,MAAM,UAAU,CAAC;AACzB,SAAQ,KAAK,EAAE;AAChB;AAED,OAAO,KAAK;CACV,KAAK;CACL,gBAAgB;CAChB,kBAAkB;CAClB,cAAc,EACZ,MAAM;EACJ,sBAAsB;EACtB,iBAAiB;EACjB,eAAe;CAChB,EACF;CACD;CACA,cAAc,CACZ,OAAO,2BAA2B,EAClC,OAAO,sBAAsB,AAC9B;CACD;AAGD,EAAC;AAEF,MAAM,SAAS,IAAI,UAAU;CAC3B,MAAM;CACN,SAAS;AACV;AAED,MAAM,qBAAqB,OAAO,wBAAwB,OAAO;AAEjE,MAAM,iBAAiB;AAIvB,WAAW,oBAAoB;CAC7B;CACA,kBAAkB;CAClB;AACD,EAAC,CAAC,MAAM,CAAC,QAAQ;AAChB,SAAQ,MAAM,iBAAiB,IAAI;AAEnC,QAAO,MAAM,eAAe;AAC5B,SAAQ,KAAK,EAAE;AAChB,EAAC;AAGF,OAAO,MAAM,eAAe"}
@@ -1,5 +1,5 @@
1
- const require_formatting = require('../formatting-B0SJqiqX.cjs');
1
+ const require_formatting = require('../formatting-C2kN0ok6.cjs');
2
2
 
3
- exports.formatEventOutput = require_formatting.formatEventOutput
4
- exports.formatFrameHeader = require_formatting.formatFrameHeader
5
- exports.formatIssueOutput = require_formatting.formatIssueOutput
3
+ exports.formatEventOutput = require_formatting.formatEventOutput;
4
+ exports.formatFrameHeader = require_formatting.formatFrameHeader;
5
+ exports.formatIssueOutput = require_formatting.formatIssueOutput;
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "../schema-PvgLrC1b.cjs";
2
- import { Event, Issue } from "../types-B03G337q.cjs";
3
- import { SentryApiService } from "../client-tE6FD__9.cjs";
1
+ import { FrameInterface } from "../schema-DqxkW9Tx.cjs";
2
+ import { Event, Issue } from "../types-CcffrLXB.cjs";
3
+ import { SentryApiService } from "../client-Bxf4MxOz.cjs";
4
4
  import "../index-BPSCxsMC.cjs";
5
5
  import { z } from "zod";
6
6
 
@@ -18,9 +18,8 @@ declare function formatIssueOutput({
18
18
  event: Event;
19
19
  apiService: SentryApiService;
20
20
  }): string;
21
-
22
- //#endregion
23
21
  //# sourceMappingURL=formatting.d.ts.map
24
22
 
23
+ //#endregion
25
24
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
26
25
  //# sourceMappingURL=formatting.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.cts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;iBAWgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgFzB,iBAAA;;;;;;;EAhGA,KAAA,EAuGP,KAvGO;EAAiB,KAAA,EAwGxB,KAxGwB;EAAA,UACT,EAwGV,gBAxGU;CAAc,CAAA,EAAA,MAA3B;;;AAAK"}
1
+ {"version":3,"file":"formatting.d.cts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAWgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgFzB,iBAAA;;;;;;;EAhGA,KAAA,EAuGP,KAvGO;EAAiB,KAAA,EAwGxB,KAxGwB;EAAA,UACT,EAwGV,gBAxGU;CAAc,CAAA,EAAA,MAA3B;AAAK"}
@@ -1,6 +1,6 @@
1
- import { FrameInterface$1 as FrameInterface } from "../schema-B7A-FyIi.js";
2
- import { Event, Issue } from "../types-CN4NEway.js";
3
- import { SentryApiService$1 as SentryApiService } from "../client-J6VSRmQS.js";
1
+ import { FrameInterface } from "../schema-C-MLkWMc.js";
2
+ import { Event, Issue } from "../types-DuUmV9zh.js";
3
+ import { SentryApiService } from "../client-DOhBiaMJ.js";
4
4
  import "../index-h64gcVNJ.js";
5
5
  import { z } from "zod";
6
6
 
@@ -18,9 +18,8 @@ declare function formatIssueOutput({
18
18
  event: Event;
19
19
  apiService: SentryApiService;
20
20
  }): string;
21
-
22
- //#endregion
23
21
  //# sourceMappingURL=formatting.d.ts.map
24
22
 
23
+ //#endregion
25
24
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
26
25
  //# sourceMappingURL=formatting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;iBAWgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgFzB,iBAAA;;;;;;;EAhGA,KAAA,EAuGP,KAvGO;EAAiB,KAAA,EAwGxB,KAxGwB;EAAA,UACT,EAwGV,gBAxGU;CAAc,CAAA,EAAA,MAA3B;;;AAAK"}
1
+ {"version":3,"file":"formatting.d.ts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAWgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgFzB,iBAAA;;;;;;;EAhGA,KAAA,EAuGP,KAvGO;EAAiB,KAAA,EAwGxB,KAxGwB;EAAA,UACT,EAwGV,gBAxGU;CAAc,CAAA,EAAA,MAA3B;AAAK"}
@@ -1,3 +1,3 @@
1
- import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-ggD6YRYR.js";
1
+ import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-BaARL2gT.js";
2
2
 
3
3
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
@@ -1,5 +1,5 @@
1
- const require_issue_helpers = require('../issue-helpers-DbsECZFq.cjs');
1
+ const require_issue_helpers = require('../issue-helpers-71XgJVXC.cjs');
2
2
 
3
- exports.extractIssueId = require_issue_helpers.extractIssueId
4
- exports.parseIssueId = require_issue_helpers.parseIssueId
5
- exports.parseIssueParams = require_issue_helpers.parseIssueParams
3
+ exports.extractIssueId = require_issue_helpers.extractIssueId;
4
+ exports.parseIssueId = require_issue_helpers.parseIssueId;
5
+ exports.parseIssueParams = require_issue_helpers.parseIssueParams;
@@ -37,8 +37,8 @@ declare function parseIssueParams({
37
37
  }): {
38
38
  organizationSlug: string;
39
39
  issueId: string;
40
- }; //#endregion
41
-
40
+ };
42
41
  //# sourceMappingURL=issue-helpers.d.ts.map
42
+ //#endregion
43
43
  export { extractIssueId, parseIssueId, parseIssueParams };
44
44
  //# sourceMappingURL=issue-helpers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issue-helpers.d.cts","names":[],"sources":["../../src/internal/issue-helpers.ts"],"sourcesContent":null,"mappings":";;;;;;;;iBAOgB,cAAA;EAAA,OAAA,EAAA,MAAA;;;;;;;;;AAwDhB;;iBAAgB,YAAA;;;;;;AAyBhB;;AACE,iBADc,gBAAA,CACd;EAAA,QAAA;EAAA,OAAA;EAAA;CAAA,EAAA;EAAQ,QACR,CAAA,EAAA,MAAA,GAAA,IAAA;EAAO,OACP,CAAA,EAAA,MAAA,GAAA,IAAA;EAAgB,gBAAA,CAAA,EAAA,MAAA,GAAA,IAAA"}
1
+ {"version":3,"file":"issue-helpers.d.cts","names":[],"sources":["../../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAOA;AAmEA;AAyBA;;;;AAGE,iBA/Fc,cAAA,CA+Fd,GAAA,EAAA,MAAA,CAAA,EAAA;EAAgB,OAAA,EAAA,MAAA;;;;;;;;;;;iBA5BF,YAAA;;;;;;;;iBAyBA,gBAAA"}
@@ -37,8 +37,8 @@ declare function parseIssueParams({
37
37
  }): {
38
38
  organizationSlug: string;
39
39
  issueId: string;
40
- }; //#endregion
41
-
40
+ };
42
41
  //# sourceMappingURL=issue-helpers.d.ts.map
42
+ //#endregion
43
43
  export { extractIssueId, parseIssueId, parseIssueParams };
44
44
  //# sourceMappingURL=issue-helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issue-helpers.d.ts","names":[],"sources":["../../src/internal/issue-helpers.ts"],"sourcesContent":null,"mappings":";;;;;;;;iBAOgB,cAAA;EAAA,OAAA,EAAA,MAAA;;;;;;;;;AAwDhB;;iBAAgB,YAAA;;;;;;AAyBhB;;AACE,iBADc,gBAAA,CACd;EAAA,QAAA;EAAA,OAAA;EAAA;CAAA,EAAA;EAAQ,QACR,CAAA,EAAA,MAAA,GAAA,IAAA;EAAO,OACP,CAAA,EAAA,MAAA,GAAA,IAAA;EAAgB,gBAAA,CAAA,EAAA,MAAA,GAAA,IAAA"}
1
+ {"version":3,"file":"issue-helpers.d.ts","names":[],"sources":["../../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAOA;AAmEA;AAyBA;;;;AAGE,iBA/Fc,cAAA,CA+Fd,GAAA,EAAA,MAAA,CAAA,EAAA;EAAgB,OAAA,EAAA,MAAA;;;;;;;;;;;iBA5BF,YAAA;;;;;;;;iBAyBA,gBAAA"}
@@ -1,3 +1,3 @@
1
- import { extractIssueId, parseIssueId, parseIssueParams } from "../issue-helpers-CyoHu5j4.js";
1
+ import { extractIssueId, parseIssueId, parseIssueParams } from "../issue-helpers-CSNNO03f.js";
2
2
 
3
3
  export { extractIssueId, parseIssueId, parseIssueParams };