@sentry/mcp-server 0.17.1 → 0.18.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 (890) hide show
  1. package/README.md +28 -11
  2. package/dist/about-CDAN_HuU.js +136 -0
  3. package/dist/about-CDAN_HuU.js.map +1 -0
  4. package/dist/about-CteXVo1Q.d.ts +10 -0
  5. package/dist/about-CteXVo1Q.d.ts.map +1 -0
  6. package/dist/about-CwQvsGSc.d.cts +10 -0
  7. package/dist/about-CwQvsGSc.d.cts.map +1 -0
  8. package/dist/about-aDGhlM6f.cjs +142 -0
  9. package/dist/about-aDGhlM6f.cjs.map +1 -0
  10. package/dist/agent-BF4d0oSb.cjs +66 -0
  11. package/dist/agent-BF4d0oSb.cjs.map +1 -0
  12. package/dist/agent-CP5e4nTv.js +60 -0
  13. package/dist/agent-CP5e4nTv.js.map +1 -0
  14. package/dist/agent-D9xBrLvD.cjs +49 -0
  15. package/dist/agent-D9xBrLvD.cjs.map +1 -0
  16. package/dist/agent-DAlB2lDx.d.cts +34 -0
  17. package/dist/agent-DAlB2lDx.d.cts.map +1 -0
  18. package/dist/agent-DD6nYWBQ.d.cts +92 -0
  19. package/dist/agent-DD6nYWBQ.d.cts.map +1 -0
  20. package/dist/agent-DzpIyyqs.js +43 -0
  21. package/dist/agent-DzpIyyqs.js.map +1 -0
  22. package/dist/agent-UxF0J0wb.d.ts +92 -0
  23. package/dist/agent-UxF0J0wb.d.ts.map +1 -0
  24. package/dist/agent-xEtb_OFK.d.ts +34 -0
  25. package/dist/agent-xEtb_OFK.d.ts.map +1 -0
  26. package/dist/{analyze-issue-with-seer-ByoDTsq-.cjs → analyze-issue-with-seer-Cf0jCiKP.cjs} +33 -35
  27. package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +1 -0
  28. package/dist/{analyze-issue-with-seer-CpwtN4UA.js → analyze-issue-with-seer-DqwczSTV.js} +12 -14
  29. package/dist/analyze-issue-with-seer-DqwczSTV.js.map +1 -0
  30. package/dist/{api-utils-DFWUfQ83.cjs → api-D9yO5I-i.cjs} +15 -20
  31. package/dist/api-D9yO5I-i.cjs.map +1 -0
  32. package/dist/api-client/client.cjs +4 -4
  33. package/dist/api-client/client.d.cts +4 -4
  34. package/dist/api-client/client.d.ts +4 -4
  35. package/dist/api-client/client.js +5 -4
  36. package/dist/api-client/errors.cjs +11 -0
  37. package/dist/api-client/errors.d.cts +2 -0
  38. package/dist/api-client/errors.d.ts +2 -0
  39. package/dist/api-client/errors.js +3 -0
  40. package/dist/api-client/index.cjs +20 -7
  41. package/dist/api-client/index.d.cts +6 -5
  42. package/dist/api-client/index.d.ts +6 -5
  43. package/dist/api-client/index.js +7 -6
  44. package/dist/api-client/schema.cjs +5 -1
  45. package/dist/api-client/schema.d.cts +2 -2
  46. package/dist/api-client/schema.d.ts +2 -2
  47. package/dist/api-client/schema.js +2 -2
  48. package/dist/api-client/types.cjs +1 -1
  49. package/dist/api-client/types.d.cts +3 -3
  50. package/dist/api-client/types.d.ts +3 -3
  51. package/dist/api-client/types.js +1 -1
  52. package/dist/{api-utils-BlUSO8xh.js → api-mjnGhOW2.js} +15 -20
  53. package/dist/api-mjnGhOW2.js.map +1 -0
  54. package/dist/callEmbeddedAgent-BRz60bxa.cjs +44 -0
  55. package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +1 -0
  56. package/dist/callEmbeddedAgent-C0pC9du1.js +38 -0
  57. package/dist/callEmbeddedAgent-C0pC9du1.js.map +1 -0
  58. package/dist/cli/parse.cjs +5 -0
  59. package/dist/cli/parse.d.cts +12 -0
  60. package/dist/cli/parse.d.cts.map +1 -0
  61. package/dist/cli/parse.d.ts +12 -0
  62. package/dist/cli/parse.d.ts.map +1 -0
  63. package/dist/cli/parse.js +3 -0
  64. package/dist/cli/resolve.cjs +7 -0
  65. package/dist/cli/resolve.d.cts +11 -0
  66. package/dist/cli/resolve.d.cts.map +1 -0
  67. package/dist/cli/resolve.d.ts +11 -0
  68. package/dist/cli/resolve.d.ts.map +1 -0
  69. package/dist/cli/resolve.js +6 -0
  70. package/dist/cli/types.d.cts +3 -0
  71. package/dist/cli/types.d.ts +3 -0
  72. package/dist/cli/usage.cjs +3 -0
  73. package/dist/cli/usage.d.cts +9 -0
  74. package/dist/cli/usage.d.cts.map +1 -0
  75. package/dist/cli/usage.d.ts +9 -0
  76. package/dist/cli/usage.d.ts.map +1 -0
  77. package/dist/cli/usage.js +3 -0
  78. package/dist/{client-CPrEfAwa.cjs → client-AVVG7J24.cjs} +126 -71
  79. package/dist/client-AVVG7J24.cjs.map +1 -0
  80. package/dist/{client-DLkUGS7r.d.ts → client-B0wezrpt.d.cts} +97 -13
  81. package/dist/client-B0wezrpt.d.cts.map +1 -0
  82. package/dist/{client-MaVV1gVC.js → client-BqrNpqZW.js} +127 -66
  83. package/dist/client-BqrNpqZW.js.map +1 -0
  84. package/dist/{client-DV68BdcS.d.cts → client-D-KqRd94.d.ts} +101 -17
  85. package/dist/client-D-KqRd94.d.ts.map +1 -0
  86. package/dist/config-CqdBCqLx.js +74 -0
  87. package/dist/config-CqdBCqLx.js.map +1 -0
  88. package/dist/{config-BvtWiL3I.js → config-DDf8XyZs.js} +173 -2
  89. package/dist/config-DDf8XyZs.js.map +1 -0
  90. package/dist/config-DFt-16ni.cjs +80 -0
  91. package/dist/config-DFt-16ni.cjs.map +1 -0
  92. package/dist/{config-CD-5FpOO.cjs → config-DsvSjPCG.cjs} +178 -1
  93. package/dist/config-DsvSjPCG.cjs.map +1 -0
  94. package/dist/{constants-Fe-4NTUo.js → constants-BPM_OWt0.js} +18 -2
  95. package/dist/constants-BPM_OWt0.js.map +1 -0
  96. package/dist/{constants-wrEbre3j.cjs → constants-DJrjLmh5.cjs} +29 -1
  97. package/dist/constants-DJrjLmh5.cjs.map +1 -0
  98. package/dist/constants.cjs +3 -1
  99. package/dist/constants.d.cts +8 -1
  100. package/dist/constants.d.cts.map +1 -1
  101. package/dist/constants.d.ts +8 -1
  102. package/dist/constants.d.ts.map +1 -1
  103. package/dist/constants.js +2 -2
  104. package/dist/{create-dsn-BT3t-MDA.js → create-dsn-BhshlP7l.js} +5 -4
  105. package/dist/{create-dsn-BT3t-MDA.js.map → create-dsn-BhshlP7l.js.map} +1 -1
  106. package/dist/{create-dsn-Bgwi-Ygi.cjs → create-dsn-DaHidLhE.cjs} +7 -6
  107. package/dist/{create-dsn-Bgwi-Ygi.cjs.map → create-dsn-DaHidLhE.cjs.map} +1 -1
  108. package/dist/{create-project-Ca1Sy1_F.js → create-project-C3laecaU.js} +6 -5
  109. package/dist/create-project-C3laecaU.js.map +1 -0
  110. package/dist/{create-project-4R4aZMoc.cjs → create-project-xszOpGTC.cjs} +8 -7
  111. package/dist/create-project-xszOpGTC.cjs.map +1 -0
  112. package/dist/{create-team-D0dUl7Zo.js → create-team-CTN-DxOE.js} +5 -4
  113. package/dist/create-team-CTN-DxOE.js.map +1 -0
  114. package/dist/{create-team-CSBXDcoD.cjs → create-team-DmnJHSIx.cjs} +7 -6
  115. package/dist/create-team-DmnJHSIx.cjs.map +1 -0
  116. package/dist/{discover-dataset-fields-BEnyqPSq.js → dataset-fields-By43SxJp.js} +13 -14
  117. package/dist/dataset-fields-By43SxJp.js.map +1 -0
  118. package/dist/{discover-dataset-fields-Cl7HpVkm.cjs → dataset-fields-DacS0qF0.cjs} +13 -14
  119. package/dist/dataset-fields-DacS0qF0.cjs.map +1 -0
  120. package/dist/define-2Lj8Lm1t.js +8 -0
  121. package/dist/define-2Lj8Lm1t.js.map +1 -0
  122. package/dist/{defineTool-lWNTzWl_.cjs → define-BfP4rFlE.cjs} +2 -2
  123. package/dist/define-BfP4rFlE.cjs.map +1 -0
  124. package/dist/enhance-error-C7AVt85N.js +32 -0
  125. package/dist/enhance-error-C7AVt85N.js.map +1 -0
  126. package/dist/enhance-error-CAREhbDf.cjs +37 -0
  127. package/dist/enhance-error-CAREhbDf.cjs.map +1 -0
  128. package/dist/error-handling-efwohgKv.js +97 -0
  129. package/dist/error-handling-efwohgKv.js.map +1 -0
  130. package/dist/error-handling-qfa1BeDb.cjs +132 -0
  131. package/dist/error-handling-qfa1BeDb.cjs.map +1 -0
  132. package/dist/errors-00Iz6Wmy.d.cts +20 -0
  133. package/dist/errors-00Iz6Wmy.d.cts.map +1 -0
  134. package/dist/errors-CNTY5dED.cjs +271 -0
  135. package/dist/errors-CNTY5dED.cjs.map +1 -0
  136. package/dist/errors-Cn4l-BlC.d.ts +20 -0
  137. package/dist/errors-Cn4l-BlC.d.ts.map +1 -0
  138. package/dist/errors-DMiENfq7.d.cts +126 -0
  139. package/dist/errors-DMiENfq7.d.cts.map +1 -0
  140. package/dist/errors-Dr7Q6mD5.js +217 -0
  141. package/dist/errors-Dr7Q6mD5.js.map +1 -0
  142. package/dist/errors-bxPCd8AO.d.ts +126 -0
  143. package/dist/errors-bxPCd8AO.d.ts.map +1 -0
  144. package/dist/errors.d.cts +2 -20
  145. package/dist/errors.d.ts +2 -20
  146. package/dist/{fetch-utils-C_Xj921x.js → fetch-utils-DRWItYjp.js} +1 -1
  147. package/dist/{fetch-utils-C_Xj921x.js.map → fetch-utils-DRWItYjp.js.map} +1 -1
  148. package/dist/{fetch-utils-DkcYwqBo.cjs → fetch-utils-bHWZV7j9.cjs} +1 -1
  149. package/dist/{fetch-utils-DkcYwqBo.cjs.map → fetch-utils-bHWZV7j9.cjs.map} +1 -1
  150. package/dist/{find-dsns-CkvahHwJ.cjs → find-dsns-D0l3siyF.cjs} +7 -6
  151. package/dist/find-dsns-D0l3siyF.cjs.map +1 -0
  152. package/dist/{find-dsns-DrNAfU_Q.js → find-dsns-U4CCcoTv.js} +5 -4
  153. package/dist/find-dsns-U4CCcoTv.js.map +1 -0
  154. package/dist/{find-organizations-BDtHkcFV.cjs → find-organizations-Ca-zpAlI.cjs} +7 -6
  155. package/dist/find-organizations-Ca-zpAlI.cjs.map +1 -0
  156. package/dist/{find-organizations-Cs1GvZtJ.js → find-organizations-HUZFa8ZA.js} +5 -4
  157. package/dist/find-organizations-HUZFa8ZA.js.map +1 -0
  158. package/dist/{find-projects-Dh-1AK-m.cjs → find-projects-CWNLthwg.cjs} +7 -6
  159. package/dist/find-projects-CWNLthwg.cjs.map +1 -0
  160. package/dist/{find-projects-CZCMck_0.js → find-projects-Dy1_O9L0.js} +5 -4
  161. package/dist/find-projects-Dy1_O9L0.js.map +1 -0
  162. package/dist/{find-releases-BsAkl--F.cjs → find-releases-BtazPcQH.cjs} +7 -6
  163. package/dist/find-releases-BtazPcQH.cjs.map +1 -0
  164. package/dist/{find-releases-Do_CywRr.js → find-releases-DN_BfQM2.js} +5 -4
  165. package/dist/find-releases-DN_BfQM2.js.map +1 -0
  166. package/dist/{find-teams-BylQQ4FO.js → find-teams-CRVT4KOg.js} +5 -4
  167. package/dist/find-teams-CRVT4KOg.js.map +1 -0
  168. package/dist/{find-teams-DXyzyQOy.cjs → find-teams-_zAHPVGx.cjs} +7 -6
  169. package/dist/find-teams-_zAHPVGx.cjs.map +1 -0
  170. package/dist/{formatters-DbqofIoy.cjs → formatters-Bzx0sr5R.cjs} +17 -4
  171. package/dist/formatters-Bzx0sr5R.cjs.map +1 -0
  172. package/dist/{formatters-CfeBjhXZ.cjs → formatters-CCZdBmLd.cjs} +38 -26
  173. package/dist/formatters-CCZdBmLd.cjs.map +1 -0
  174. package/dist/{formatters-B3ONbRhI.js → formatters-DJM9_F3A.js} +12 -5
  175. package/dist/formatters-DJM9_F3A.js.map +1 -0
  176. package/dist/{formatters-DSYXBiQx.js → formatters-DJSiRyVi.js} +33 -27
  177. package/dist/formatters-DJSiRyVi.js.map +1 -0
  178. package/dist/{formatting-DIvCVunN.js → formatting-BjCK9XwW.js} +56 -12
  179. package/dist/formatting-BjCK9XwW.js.map +1 -0
  180. package/dist/{formatting-utils-DDz14xeB.cjs → formatting-CJKoPqjy.cjs} +2 -2
  181. package/dist/formatting-CJKoPqjy.cjs.map +1 -0
  182. package/dist/{formatting-utils-C3sej5ER.js → formatting-CfpTtZLo.js} +2 -2
  183. package/dist/formatting-CfpTtZLo.js.map +1 -0
  184. package/dist/{formatting-C180PVwd.cjs → formatting-CqmsvuAY.cjs} +57 -13
  185. package/dist/formatting-CqmsvuAY.cjs.map +1 -0
  186. package/dist/{formatting-CmBYkI_e.d.cts → formatting-XMmhMjRz.d.cts} +4 -4
  187. package/dist/formatting-XMmhMjRz.d.cts.map +1 -0
  188. package/dist/{formatting-C3qu84cm.d.ts → formatting-l3qx5d7L.d.ts} +4 -4
  189. package/dist/formatting-l3qx5d7L.d.ts.map +1 -0
  190. package/dist/{get-doc-BfMg0GIa.cjs → get-doc-Euz6NiM3.cjs} +7 -6
  191. package/dist/get-doc-Euz6NiM3.cjs.map +1 -0
  192. package/dist/{get-doc-DyqJe6TP.js → get-doc-JDwOkY2j.js} +5 -4
  193. package/dist/get-doc-JDwOkY2j.js.map +1 -0
  194. package/dist/{get-event-attachment-BzhDeM6z.cjs → get-event-attachment-DvpQ-dEP.cjs} +7 -6
  195. package/dist/get-event-attachment-DvpQ-dEP.cjs.map +1 -0
  196. package/dist/{get-event-attachment-CVoMrETq.js → get-event-attachment-pIJmUfFE.js} +5 -4
  197. package/dist/get-event-attachment-pIJmUfFE.js.map +1 -0
  198. package/dist/{get-issue-details-_uS_AZ_v.js → get-issue-details-B1PDMmMY.js} +40 -20
  199. package/dist/get-issue-details-B1PDMmMY.js.map +1 -0
  200. package/dist/{get-issue-details-C96fhps3.cjs → get-issue-details-BH75EnNk.cjs} +42 -22
  201. package/dist/get-issue-details-BH75EnNk.cjs.map +1 -0
  202. package/dist/get-trace-details-Bksygq21.cjs +308 -0
  203. package/dist/get-trace-details-Bksygq21.cjs.map +1 -0
  204. package/dist/get-trace-details-CaK0JMf4.js +302 -0
  205. package/dist/get-trace-details-CaK0JMf4.js.map +1 -0
  206. package/dist/{handler-B0bLvFFX.js → handler-BbqDy4DA.js} +39 -41
  207. package/dist/handler-BbqDy4DA.js.map +1 -0
  208. package/dist/{handler-DEjS3yks.cjs → handler-C0zOOLbO.cjs} +42 -27
  209. package/dist/handler-C0zOOLbO.cjs.map +1 -0
  210. package/dist/{handler-BPPTAi7I.d.ts → handler-CcbbXK_f.d.ts} +4 -4
  211. package/dist/handler-CcbbXK_f.d.ts.map +1 -0
  212. package/dist/{handler-cUB6XcUV.d.ts → handler-Ct9Z_sTZ.d.ts} +4 -4
  213. package/dist/handler-Ct9Z_sTZ.d.ts.map +1 -0
  214. package/dist/{handler-BGhr9FJM.d.cts → handler-DSYbwPgv.d.cts} +4 -4
  215. package/dist/handler-DSYbwPgv.d.cts.map +1 -0
  216. package/dist/{handler-DTN2HYXt.js → handler-DyBdUYam.js} +40 -25
  217. package/dist/handler-DyBdUYam.js.map +1 -0
  218. package/dist/{handler-BZ3hKPb8.d.cts → handler-RV4XhU8F.d.cts} +4 -4
  219. package/dist/handler-RV4XhU8F.d.cts.map +1 -0
  220. package/dist/{handler-7T1iMsQU.cjs → handler-cy5oD28N.cjs} +41 -43
  221. package/dist/handler-cy5oD28N.cjs.map +1 -0
  222. package/dist/index.cjs +105 -95
  223. package/dist/index.cjs.map +1 -1
  224. package/dist/index.js +105 -95
  225. package/dist/index.js.map +1 -1
  226. package/dist/internal/agents/callEmbeddedAgent.cjs +3 -0
  227. package/dist/internal/agents/callEmbeddedAgent.d.cts +33 -0
  228. package/dist/internal/agents/callEmbeddedAgent.d.cts.map +1 -0
  229. package/dist/internal/agents/callEmbeddedAgent.d.ts +33 -0
  230. package/dist/internal/agents/callEmbeddedAgent.d.ts.map +1 -0
  231. package/dist/internal/agents/callEmbeddedAgent.js +3 -0
  232. package/dist/internal/agents/tools/dataset-fields.cjs +15 -0
  233. package/dist/{agent-tools/discover-dataset-fields.d.ts → internal/agents/tools/dataset-fields.d.cts} +18 -19
  234. package/dist/internal/agents/tools/dataset-fields.d.cts.map +1 -0
  235. package/dist/{agent-tools/discover-dataset-fields.d.cts → internal/agents/tools/dataset-fields.d.ts} +18 -19
  236. package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -0
  237. package/dist/internal/agents/tools/dataset-fields.js +12 -0
  238. package/dist/internal/agents/tools/otel-semantics.cjs +13 -0
  239. package/dist/internal/agents/tools/otel-semantics.d.cts +41 -0
  240. package/dist/internal/agents/tools/otel-semantics.d.cts.map +1 -0
  241. package/dist/internal/agents/tools/otel-semantics.d.ts +41 -0
  242. package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -0
  243. package/dist/internal/agents/tools/otel-semantics.js +12 -0
  244. package/dist/internal/agents/tools/utils.cjs +11 -0
  245. package/dist/internal/agents/tools/utils.d.cts +2 -0
  246. package/dist/internal/agents/tools/utils.d.ts +2 -0
  247. package/dist/internal/agents/tools/utils.js +11 -0
  248. package/dist/internal/agents/tools/whoami.cjs +13 -0
  249. package/dist/internal/agents/tools/whoami.d.cts +33 -0
  250. package/dist/internal/agents/tools/whoami.d.cts.map +1 -0
  251. package/dist/internal/agents/tools/whoami.d.ts +33 -0
  252. package/dist/internal/agents/tools/whoami.d.ts.map +1 -0
  253. package/dist/internal/agents/tools/whoami.js +12 -0
  254. package/dist/internal/error-handling.cjs +16 -0
  255. package/dist/internal/error-handling.d.cts +40 -0
  256. package/dist/internal/error-handling.d.cts.map +1 -0
  257. package/dist/internal/error-handling.d.ts +40 -0
  258. package/dist/internal/error-handling.d.ts.map +1 -0
  259. package/dist/internal/error-handling.js +11 -0
  260. package/dist/internal/fetch-utils.cjs +1 -1
  261. package/dist/internal/fetch-utils.d.cts +33 -2
  262. package/dist/internal/fetch-utils.d.cts.map +1 -0
  263. package/dist/internal/fetch-utils.d.ts +33 -2
  264. package/dist/internal/fetch-utils.d.ts.map +1 -0
  265. package/dist/internal/fetch-utils.js +1 -1
  266. package/dist/internal/formatting.cjs +2 -2
  267. package/dist/internal/formatting.d.cts +6 -5
  268. package/dist/internal/formatting.d.ts +6 -5
  269. package/dist/internal/formatting.js +2 -2
  270. package/dist/internal/issue-helpers.cjs +1 -1
  271. package/dist/internal/issue-helpers.d.cts +1 -1
  272. package/dist/internal/issue-helpers.d.ts +1 -1
  273. package/dist/internal/issue-helpers.js +1 -1
  274. package/dist/internal/sentry-scrubbing.cjs +6 -0
  275. package/dist/internal/sentry-scrubbing.d.cts +28 -0
  276. package/dist/internal/sentry-scrubbing.d.cts.map +1 -0
  277. package/dist/internal/sentry-scrubbing.d.ts +28 -0
  278. package/dist/internal/sentry-scrubbing.d.ts.map +1 -0
  279. package/dist/internal/sentry-scrubbing.js +3 -0
  280. package/dist/internal/test-fixtures.d.cts +134 -44
  281. package/dist/internal/test-fixtures.d.cts.map +1 -1
  282. package/dist/internal/test-fixtures.d.ts +116 -26
  283. package/dist/internal/test-fixtures.d.ts.map +1 -1
  284. package/dist/internal/tool-helpers/api.cjs +14 -0
  285. package/dist/{tools/utils/api-utils.d.cts → internal/tool-helpers/api.d.cts} +11 -10
  286. package/dist/internal/tool-helpers/api.d.cts.map +1 -0
  287. package/dist/{tools/utils/api-utils.d.ts → internal/tool-helpers/api.d.ts} +11 -10
  288. package/dist/internal/tool-helpers/api.d.ts.map +1 -0
  289. package/dist/internal/tool-helpers/api.js +12 -0
  290. package/dist/internal/tool-helpers/define.cjs +3 -0
  291. package/dist/internal/tool-helpers/define.d.cts +13 -0
  292. package/dist/internal/tool-helpers/define.d.cts.map +1 -0
  293. package/dist/internal/tool-helpers/define.d.ts +13 -0
  294. package/dist/internal/tool-helpers/define.d.ts.map +1 -0
  295. package/dist/internal/tool-helpers/define.js +3 -0
  296. package/dist/internal/tool-helpers/enhance-error.cjs +10 -0
  297. package/dist/internal/tool-helpers/enhance-error.d.cts +29 -0
  298. package/dist/internal/tool-helpers/enhance-error.d.cts.map +1 -0
  299. package/dist/internal/tool-helpers/enhance-error.d.ts +29 -0
  300. package/dist/internal/tool-helpers/enhance-error.d.ts.map +1 -0
  301. package/dist/internal/tool-helpers/enhance-error.js +10 -0
  302. package/dist/internal/tool-helpers/formatting.cjs +3 -0
  303. package/dist/internal/tool-helpers/formatting.d.cts +16 -0
  304. package/dist/internal/tool-helpers/formatting.d.cts.map +1 -0
  305. package/dist/internal/tool-helpers/formatting.d.ts +16 -0
  306. package/dist/internal/tool-helpers/formatting.d.ts.map +1 -0
  307. package/dist/internal/tool-helpers/formatting.js +3 -0
  308. package/dist/internal/tool-helpers/issue.cjs +8 -0
  309. package/dist/internal/tool-helpers/issue.d.cts +8 -0
  310. package/dist/internal/tool-helpers/issue.d.ts +8 -0
  311. package/dist/internal/tool-helpers/issue.js +7 -0
  312. package/dist/internal/tool-helpers/seer.cjs +11 -0
  313. package/dist/{tools/utils/seer-utils.d.cts → internal/tool-helpers/seer.d.cts} +8 -7
  314. package/dist/internal/tool-helpers/seer.d.cts.map +1 -0
  315. package/dist/{tools/utils/seer-utils.d.ts → internal/tool-helpers/seer.d.ts} +8 -7
  316. package/dist/internal/tool-helpers/seer.d.ts.map +1 -0
  317. package/dist/{tools/utils/seer-utils.js → internal/tool-helpers/seer.js} +1 -1
  318. package/dist/internal/tool-helpers/validate-region-url.cjs +5 -0
  319. package/dist/internal/tool-helpers/validate-region-url.d.cts +20 -0
  320. package/dist/internal/tool-helpers/validate-region-url.d.cts.map +1 -0
  321. package/dist/internal/tool-helpers/validate-region-url.d.ts +20 -0
  322. package/dist/internal/tool-helpers/validate-region-url.d.ts.map +1 -0
  323. package/dist/internal/tool-helpers/validate-region-url.js +5 -0
  324. package/dist/{issue-helpers-s5fKLwJZ.cjs → issue-helpers-1qxzc7ww.cjs} +1 -1
  325. package/dist/{issue-helpers-s5fKLwJZ.cjs.map → issue-helpers-1qxzc7ww.cjs.map} +1 -1
  326. package/dist/{issue-helpers-CRx45FYG.js → issue-helpers-Bjp6xu5H.js} +1 -1
  327. package/dist/{issue-helpers-CRx45FYG.js.map → issue-helpers-Bjp6xu5H.js.map} +1 -1
  328. package/dist/{issue-helpers-Cz01Ipvl.d.cts → issue-helpers-Cf6mvHG1.d.cts} +1 -1
  329. package/dist/{issue-helpers-Cz01Ipvl.d.cts.map → issue-helpers-Cf6mvHG1.d.cts.map} +1 -1
  330. package/dist/{issue-helpers-D1_Uqr-F.d.ts → issue-helpers-kwhe1ipy.d.ts} +1 -1
  331. package/dist/{issue-helpers-D1_Uqr-F.d.ts.map → issue-helpers-kwhe1ipy.d.ts.map} +1 -1
  332. package/dist/{logging-tGU_SYcA.js → logging-CBMxr4i2.js} +1 -1
  333. package/dist/{logging-tGU_SYcA.js.map → logging-CBMxr4i2.js.map} +1 -1
  334. package/dist/{logging-BpL53bY6.cjs → logging-rvUPDKax.cjs} +1 -1
  335. package/dist/{logging-BpL53bY6.cjs.map → logging-rvUPDKax.cjs.map} +1 -1
  336. package/dist/logging.cjs +1 -1
  337. package/dist/logging.js +1 -1
  338. package/dist/{lookup-otel-semantics-Dt667kdR.js → otel-semantics-BFRGhf6y.js} +88 -94
  339. package/dist/otel-semantics-BFRGhf6y.js.map +1 -0
  340. package/dist/{lookup-otel-semantics-BbriXZAx.cjs → otel-semantics-CkUpXWEJ.cjs} +88 -94
  341. package/dist/otel-semantics-CkUpXWEJ.cjs.map +1 -0
  342. package/dist/parse-C3tRlsy-.js +89 -0
  343. package/dist/parse-C3tRlsy-.js.map +1 -0
  344. package/dist/parse-CeFc4xnt.cjs +107 -0
  345. package/dist/parse-CeFc4xnt.cjs.map +1 -0
  346. package/dist/permissions-C-q0Y5bL.d.ts +79 -0
  347. package/dist/permissions-C-q0Y5bL.d.ts.map +1 -0
  348. package/dist/permissions-Cm5e34n2.d.cts +79 -0
  349. package/dist/permissions-Cm5e34n2.d.cts.map +1 -0
  350. package/dist/permissions-DRdH39Fe.js +155 -0
  351. package/dist/permissions-DRdH39Fe.js.map +1 -0
  352. package/dist/permissions-DuDYuCjy.cjs +209 -0
  353. package/dist/permissions-DuDYuCjy.cjs.map +1 -0
  354. package/dist/permissions.cjs +11 -0
  355. package/dist/permissions.d.cts +2 -0
  356. package/dist/permissions.d.ts +2 -0
  357. package/dist/permissions.js +3 -0
  358. package/dist/{promptDefinitions-CWV8hsUX.cjs → promptDefinitions-02aQWFKD.cjs} +2 -2
  359. package/dist/{promptDefinitions-CWV8hsUX.cjs.map → promptDefinitions-02aQWFKD.cjs.map} +1 -1
  360. package/dist/{promptDefinitions-CVHtYaj8.d.cts → promptDefinitions-ImFNiWkX.d.cts} +3 -3
  361. package/dist/promptDefinitions-ImFNiWkX.d.cts.map +1 -0
  362. package/dist/{promptDefinitions-DehpwJfn.d.ts → promptDefinitions-Y-mt2_IM.d.ts} +3 -3
  363. package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +1 -0
  364. package/dist/{promptDefinitions-DF8nuJVq.js → promptDefinitions-wR6u6ZJE.js} +2 -2
  365. package/dist/{promptDefinitions-DF8nuJVq.js.map → promptDefinitions-wR6u6ZJE.js.map} +1 -1
  366. package/dist/promptDefinitions.cjs +4 -3
  367. package/dist/promptDefinitions.d.cts +1 -1
  368. package/dist/promptDefinitions.d.ts +1 -1
  369. package/dist/promptDefinitions.js +4 -3
  370. package/dist/{prompts-BTtNbKQR.cjs → prompts-BwZJaywH.cjs} +1 -1
  371. package/dist/{prompts-BTtNbKQR.cjs.map → prompts-BwZJaywH.cjs.map} +1 -1
  372. package/dist/{prompts-CYcvIxWR.js → prompts-DCJ0XraB.js} +1 -1
  373. package/dist/{prompts-CYcvIxWR.js.map → prompts-DCJ0XraB.js.map} +1 -1
  374. package/dist/prompts.cjs +1 -1
  375. package/dist/prompts.d.cts +3 -2
  376. package/dist/prompts.d.cts.map +1 -1
  377. package/dist/prompts.d.ts +3 -2
  378. package/dist/prompts.d.ts.map +1 -1
  379. package/dist/prompts.js +1 -1
  380. package/dist/resolve-B_Fq13Dk.js +52 -0
  381. package/dist/resolve-B_Fq13Dk.js.map +1 -0
  382. package/dist/resolve-CAtC1wN-.cjs +63 -0
  383. package/dist/resolve-CAtC1wN-.cjs.map +1 -0
  384. package/dist/resources/about.cjs +3 -0
  385. package/dist/resources/about.d.cts +2 -0
  386. package/dist/resources/about.d.ts +2 -0
  387. package/dist/resources/about.js +3 -0
  388. package/dist/resources/index.cjs +4 -0
  389. package/dist/resources/index.d.cts +2 -0
  390. package/dist/resources/index.d.ts +2 -0
  391. package/dist/resources/index.js +4 -0
  392. package/dist/resources-B4ropjfD.cjs +94 -0
  393. package/dist/resources-B4ropjfD.cjs.map +1 -0
  394. package/dist/resources-DaEUMw3Y.js +82 -0
  395. package/dist/resources-DaEUMw3Y.js.map +1 -0
  396. package/dist/resources.cjs +6 -4
  397. package/dist/resources.d.cts.map +1 -1
  398. package/dist/resources.d.ts.map +1 -1
  399. package/dist/resources.js +4 -2
  400. package/dist/{schema-BL3kwfOA.cjs → schema-BUBkkdUa.cjs} +14 -6
  401. package/dist/schema-BUBkkdUa.cjs.map +1 -0
  402. package/dist/{schema-C0LznFvu.cjs → schema-CbXlt1rW.cjs} +105 -3
  403. package/dist/schema-CbXlt1rW.cjs.map +1 -0
  404. package/dist/{schema-xbTf44Hn.d.cts → schema-ChvpDxUk.d.cts} +535 -288
  405. package/dist/{schema-xbTf44Hn.d.cts.map → schema-ChvpDxUk.d.cts.map} +1 -1
  406. package/dist/{schema-CcFmBoEf.js → schema-D1CzTJXB.js} +82 -4
  407. package/dist/schema-D1CzTJXB.js.map +1 -0
  408. package/dist/{schema-DWmx8lgm.d.ts → schema-DOY22v1Q.d.ts} +509 -262
  409. package/dist/{schema-DWmx8lgm.d.ts.map → schema-DOY22v1Q.d.ts.map} +1 -1
  410. package/dist/{schema-DMfkTR1l.js → schema-DPJO5nkQ.js} +9 -7
  411. package/dist/schema-DPJO5nkQ.js.map +1 -0
  412. package/dist/schema.cjs +4 -2
  413. package/dist/schema.d.cts +7 -5
  414. package/dist/schema.d.cts.map +1 -1
  415. package/dist/schema.d.ts +7 -5
  416. package/dist/schema.d.ts.map +1 -1
  417. package/dist/schema.js +4 -3
  418. package/dist/{search-docs-EbjJuL9Q.cjs → search-docs-CH6-1H9_.cjs} +8 -7
  419. package/dist/search-docs-CH6-1H9_.cjs.map +1 -0
  420. package/dist/{search-docs-DIm3ykOg.js → search-docs-CpAlMLs8.js} +6 -5
  421. package/dist/search-docs-CpAlMLs8.js.map +1 -0
  422. package/dist/{seer-utils-NPHv8KYY.js → seer-DLvrFQPo.js} +2 -2
  423. package/dist/seer-DLvrFQPo.js.map +1 -0
  424. package/dist/{seer-utils-C7Kv0gr8.cjs → seer-retC9dFI.cjs} +2 -2
  425. package/dist/seer-retC9dFI.cjs.map +1 -0
  426. package/dist/sentry-scrubbing-BrjExjlM.js +94 -0
  427. package/dist/sentry-scrubbing-BrjExjlM.js.map +1 -0
  428. package/dist/sentry-scrubbing-CDcE4n-D.cjs +118 -0
  429. package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +1 -0
  430. package/dist/{server-CnJvaT0s.js → server-BjizUxVR.js} +74 -128
  431. package/dist/server-BjizUxVR.js.map +1 -0
  432. package/dist/{server-Dv9HxoRk.cjs → server-RKq8MlNM.cjs} +74 -128
  433. package/dist/server-RKq8MlNM.cjs.map +1 -0
  434. package/dist/server.cjs +63 -53
  435. package/dist/server.d.cts +3 -2
  436. package/dist/server.d.cts.map +1 -1
  437. package/dist/server.d.ts +3 -2
  438. package/dist/server.d.ts.map +1 -1
  439. package/dist/server.js +63 -53
  440. package/dist/slug-validation-58wajHeL.js +93 -0
  441. package/dist/slug-validation-58wajHeL.js.map +1 -0
  442. package/dist/slug-validation-DMk8Dyuh.cjs +111 -0
  443. package/dist/slug-validation-DMk8Dyuh.cjs.map +1 -0
  444. package/dist/{stdio-C6MAgHmA.cjs → stdio-CJnMOUAU.cjs} +3 -3
  445. package/dist/{stdio-C6MAgHmA.cjs.map → stdio-CJnMOUAU.cjs.map} +1 -1
  446. package/dist/{stdio-DnAY4MSF.js → stdio-DB9muOi8.js} +3 -3
  447. package/dist/{stdio-DnAY4MSF.js.map → stdio-DB9muOi8.js.map} +1 -1
  448. package/dist/test-setup.cjs +33622 -1524
  449. package/dist/test-setup.cjs.map +1 -1
  450. package/dist/test-setup.d.cts +33 -1
  451. package/dist/test-setup.d.cts.map +1 -0
  452. package/dist/test-setup.d.ts +33 -1
  453. package/dist/test-setup.d.ts.map +1 -0
  454. package/dist/test-setup.js +33632 -1534
  455. package/dist/test-setup.js.map +1 -1
  456. package/dist/test-utils/context.cjs +32 -0
  457. package/dist/test-utils/context.cjs.map +1 -0
  458. package/dist/test-utils/context.d.cts +18 -0
  459. package/dist/test-utils/context.d.cts.map +1 -0
  460. package/dist/test-utils/context.d.ts +18 -0
  461. package/dist/test-utils/context.d.ts.map +1 -0
  462. package/dist/test-utils/context.js +30 -0
  463. package/dist/test-utils/context.js.map +1 -0
  464. package/dist/toolDefinitions.cjs +9 -0
  465. package/dist/toolDefinitions.cjs.map +1 -1
  466. package/dist/toolDefinitions.js +9 -0
  467. package/dist/toolDefinitions.js.map +1 -1
  468. package/dist/tools/analyze-issue-with-seer.cjs +18 -15
  469. package/dist/tools/analyze-issue-with-seer.d.cts +5 -4
  470. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
  471. package/dist/tools/analyze-issue-with-seer.d.ts +5 -4
  472. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
  473. package/dist/tools/analyze-issue-with-seer.js +18 -15
  474. package/dist/tools/create-dsn.cjs +13 -10
  475. package/dist/tools/create-dsn.d.cts +6 -5
  476. package/dist/tools/create-dsn.d.cts.map +1 -1
  477. package/dist/tools/create-dsn.d.ts +6 -5
  478. package/dist/tools/create-dsn.d.ts.map +1 -1
  479. package/dist/tools/create-dsn.js +13 -10
  480. package/dist/tools/create-project.cjs +14 -11
  481. package/dist/tools/create-project.d.cts +6 -5
  482. package/dist/tools/create-project.d.cts.map +1 -1
  483. package/dist/tools/create-project.d.ts +6 -5
  484. package/dist/tools/create-project.d.ts.map +1 -1
  485. package/dist/tools/create-project.js +14 -11
  486. package/dist/tools/create-team.cjs +13 -10
  487. package/dist/tools/create-team.d.cts +5 -4
  488. package/dist/tools/create-team.d.cts.map +1 -1
  489. package/dist/tools/create-team.d.ts +5 -4
  490. package/dist/tools/create-team.d.ts.map +1 -1
  491. package/dist/tools/create-team.js +13 -10
  492. package/dist/tools/find-dsns.cjs +13 -10
  493. package/dist/tools/find-dsns.d.cts +8 -7
  494. package/dist/tools/find-dsns.d.cts.map +1 -1
  495. package/dist/tools/find-dsns.d.ts +8 -7
  496. package/dist/tools/find-dsns.d.ts.map +1 -1
  497. package/dist/tools/find-dsns.js +13 -10
  498. package/dist/tools/find-organizations.cjs +11 -8
  499. package/dist/tools/find-organizations.d.cts +4 -3
  500. package/dist/tools/find-organizations.d.ts +4 -3
  501. package/dist/tools/find-organizations.js +11 -8
  502. package/dist/tools/find-projects.cjs +13 -10
  503. package/dist/tools/find-projects.d.cts +7 -6
  504. package/dist/tools/find-projects.d.cts.map +1 -1
  505. package/dist/tools/find-projects.d.ts +7 -6
  506. package/dist/tools/find-projects.d.ts.map +1 -1
  507. package/dist/tools/find-projects.js +13 -10
  508. package/dist/tools/find-releases.cjs +13 -10
  509. package/dist/tools/find-releases.d.cts +6 -5
  510. package/dist/tools/find-releases.d.cts.map +1 -1
  511. package/dist/tools/find-releases.d.ts +6 -5
  512. package/dist/tools/find-releases.d.ts.map +1 -1
  513. package/dist/tools/find-releases.js +13 -10
  514. package/dist/tools/find-teams.cjs +13 -10
  515. package/dist/tools/find-teams.d.cts +7 -6
  516. package/dist/tools/find-teams.d.cts.map +1 -1
  517. package/dist/tools/find-teams.d.ts +7 -6
  518. package/dist/tools/find-teams.d.ts.map +1 -1
  519. package/dist/tools/find-teams.js +13 -10
  520. package/dist/tools/get-doc.cjs +9 -9
  521. package/dist/tools/get-doc.d.cts +4 -3
  522. package/dist/tools/get-doc.d.cts.map +1 -1
  523. package/dist/tools/get-doc.d.ts +4 -3
  524. package/dist/tools/get-doc.d.ts.map +1 -1
  525. package/dist/tools/get-doc.js +9 -9
  526. package/dist/tools/get-event-attachment.cjs +13 -10
  527. package/dist/tools/get-event-attachment.d.cts +10 -9
  528. package/dist/tools/get-event-attachment.d.cts.map +1 -1
  529. package/dist/tools/get-event-attachment.d.ts +10 -9
  530. package/dist/tools/get-event-attachment.d.ts.map +1 -1
  531. package/dist/tools/get-event-attachment.js +13 -10
  532. package/dist/tools/get-issue-details.cjs +18 -14
  533. package/dist/tools/get-issue-details.d.cts +5 -4
  534. package/dist/tools/get-issue-details.d.cts.map +1 -1
  535. package/dist/tools/get-issue-details.d.ts +5 -4
  536. package/dist/tools/get-issue-details.d.ts.map +1 -1
  537. package/dist/tools/get-issue-details.js +18 -14
  538. package/dist/tools/get-trace-details.cjs +16 -0
  539. package/dist/tools/get-trace-details.d.cts +15 -0
  540. package/dist/tools/get-trace-details.d.cts.map +1 -0
  541. package/dist/tools/get-trace-details.d.ts +15 -0
  542. package/dist/tools/get-trace-details.d.ts.map +1 -0
  543. package/dist/tools/get-trace-details.js +16 -0
  544. package/dist/tools/index.cjs +54 -48
  545. package/dist/tools/index.d.cts +77 -71
  546. package/dist/tools/index.d.cts.map +1 -1
  547. package/dist/tools/index.d.ts +77 -71
  548. package/dist/tools/index.d.ts.map +1 -1
  549. package/dist/tools/index.js +54 -48
  550. package/dist/tools/search-docs.cjs +12 -11
  551. package/dist/tools/search-docs.d.cts +4 -3
  552. package/dist/tools/search-docs.d.cts.map +1 -1
  553. package/dist/tools/search-docs.d.ts +4 -3
  554. package/dist/tools/search-docs.d.ts.map +1 -1
  555. package/dist/tools/search-docs.js +12 -11
  556. package/dist/tools/search-events/agent.cjs +15 -6
  557. package/dist/tools/search-events/agent.d.cts +7 -43
  558. package/dist/tools/search-events/agent.d.ts +7 -43
  559. package/dist/tools/search-events/agent.js +15 -6
  560. package/dist/tools/search-events/config.cjs +3 -2
  561. package/dist/tools/search-events/config.d.cts +2 -1
  562. package/dist/tools/search-events/config.d.cts.map +1 -1
  563. package/dist/tools/search-events/config.d.ts +2 -1
  564. package/dist/tools/search-events/config.d.ts.map +1 -1
  565. package/dist/tools/search-events/config.js +2 -2
  566. package/dist/tools/search-events/formatters.cjs +11 -3
  567. package/dist/tools/search-events/formatters.d.cts +28 -17
  568. package/dist/tools/search-events/formatters.d.cts.map +1 -1
  569. package/dist/tools/search-events/formatters.d.ts +28 -17
  570. package/dist/tools/search-events/formatters.d.ts.map +1 -1
  571. package/dist/tools/search-events/formatters.js +11 -4
  572. package/dist/tools/search-events/handler.cjs +22 -17
  573. package/dist/tools/search-events/handler.d.cts +5 -4
  574. package/dist/tools/search-events/handler.d.ts +5 -4
  575. package/dist/tools/search-events/handler.js +22 -17
  576. package/dist/tools/search-events/index.cjs +26 -19
  577. package/dist/tools/search-events/index.d.cts +12 -5
  578. package/dist/tools/search-events/index.d.ts +12 -5
  579. package/dist/tools/search-events/index.js +24 -19
  580. package/dist/tools/search-events/utils.cjs +14 -7
  581. package/dist/tools/search-events/utils.d.cts +7 -5
  582. package/dist/tools/search-events/utils.d.ts +7 -5
  583. package/dist/tools/search-events/utils.js +9 -2
  584. package/dist/tools/search-issues/agent.cjs +14 -5
  585. package/dist/tools/search-issues/agent.d.cts +7 -33
  586. package/dist/tools/search-issues/agent.d.ts +7 -33
  587. package/dist/tools/search-issues/agent.js +14 -5
  588. package/dist/tools/search-issues/config.cjs +1 -1
  589. package/dist/tools/search-issues/config.d.cts +1 -1
  590. package/dist/tools/search-issues/config.d.ts +1 -1
  591. package/dist/tools/search-issues/config.js +1 -1
  592. package/dist/tools/search-issues/formatters.cjs +3 -2
  593. package/dist/tools/search-issues/formatters.d.cts +20 -7
  594. package/dist/tools/search-issues/formatters.d.cts.map +1 -1
  595. package/dist/tools/search-issues/formatters.d.ts +20 -7
  596. package/dist/tools/search-issues/formatters.d.ts.map +1 -1
  597. package/dist/tools/search-issues/formatters.js +3 -3
  598. package/dist/tools/search-issues/handler.cjs +21 -15
  599. package/dist/tools/search-issues/handler.d.cts +5 -4
  600. package/dist/tools/search-issues/handler.d.ts +5 -4
  601. package/dist/tools/search-issues/handler.js +21 -15
  602. package/dist/tools/search-issues/index.cjs +25 -17
  603. package/dist/tools/search-issues/index.d.cts +12 -5
  604. package/dist/tools/search-issues/index.d.ts +12 -5
  605. package/dist/tools/search-issues/index.js +23 -17
  606. package/dist/tools/types.d.cts +4 -3
  607. package/dist/tools/types.d.ts +4 -3
  608. package/dist/tools/update-issue.cjs +18 -15
  609. package/dist/tools/update-issue.d.cts +11 -10
  610. package/dist/tools/update-issue.d.cts.map +1 -1
  611. package/dist/tools/update-issue.d.ts +11 -10
  612. package/dist/tools/update-issue.d.ts.map +1 -1
  613. package/dist/tools/update-issue.js +18 -15
  614. package/dist/tools/update-project.cjs +14 -11
  615. package/dist/tools/update-project.d.cts +7 -6
  616. package/dist/tools/update-project.d.cts.map +1 -1
  617. package/dist/tools/update-project.d.ts +7 -6
  618. package/dist/tools/update-project.d.ts.map +1 -1
  619. package/dist/tools/update-project.js +14 -11
  620. package/dist/tools/whoami.cjs +11 -8
  621. package/dist/tools/whoami.d.cts +4 -3
  622. package/dist/tools/whoami.d.ts +4 -3
  623. package/dist/tools/whoami.js +11 -8
  624. package/dist/tools-BiCRxQiY.js +46 -0
  625. package/dist/tools-BiCRxQiY.js.map +1 -0
  626. package/dist/{tools-qfk-QAo0.cjs → tools-UZ_biJKC.cjs} +21 -19
  627. package/dist/tools-UZ_biJKC.cjs.map +1 -0
  628. package/dist/transports/stdio.cjs +64 -54
  629. package/dist/transports/stdio.d.cts +3 -2
  630. package/dist/transports/stdio.d.cts.map +1 -1
  631. package/dist/transports/stdio.d.ts +3 -2
  632. package/dist/transports/stdio.d.ts.map +1 -1
  633. package/dist/transports/stdio.js +64 -54
  634. package/dist/{types-DE-njuHe.d.cts → types-B4nOfch5.d.cts} +7 -3
  635. package/dist/{types-DE-njuHe.d.cts.map → types-B4nOfch5.d.cts.map} +1 -1
  636. package/dist/types-CKPddlfS.cjs +0 -0
  637. package/dist/types-Cy4S5lN-.js +0 -0
  638. package/dist/types-DLRWzl3K.d.cts +55 -0
  639. package/dist/types-DLRWzl3K.d.cts.map +1 -0
  640. package/dist/types-DTp1ajTT.d.ts +55 -0
  641. package/dist/types-DTp1ajTT.d.ts.map +1 -0
  642. package/dist/{types-BV-G5sBp.d.cts → types-Dj36Sq2V.d.cts} +14 -4
  643. package/dist/types-Dj36Sq2V.d.cts.map +1 -0
  644. package/dist/{types-C1Fih0eQ.d.ts → types-m-t7jx2f.d.ts} +14 -4
  645. package/dist/{types-BV-G5sBp.d.cts.map → types-m-t7jx2f.d.ts.map} +1 -1
  646. package/dist/{types-aOEJ0KgQ.d.cts → types-o23QqDgk.d.cts} +4 -2
  647. package/dist/types-o23QqDgk.d.cts.map +1 -0
  648. package/dist/{types-DRywojVB.d.ts → types-ryM3umix.d.ts} +7 -3
  649. package/dist/{types-DRywojVB.d.ts.map → types-ryM3umix.d.ts.map} +1 -1
  650. package/dist/{types-BOcoP3Na.d.ts → types-s3ChfOM9.d.ts} +4 -2
  651. package/dist/types-s3ChfOM9.d.ts.map +1 -0
  652. package/dist/types.d.cts +4 -3
  653. package/dist/types.d.ts +4 -3
  654. package/dist/{update-issue-DqUsAuTd.cjs → update-issue-CD-kp2dt.cjs} +13 -18
  655. package/dist/update-issue-CD-kp2dt.cjs.map +1 -0
  656. package/dist/{update-issue-DoQYEQjf.js → update-issue-nq8D_YUe.js} +9 -14
  657. package/dist/update-issue-nq8D_YUe.js.map +1 -0
  658. package/dist/{update-project-DQu5PnE3.cjs → update-project-B_OLM4Ky.cjs} +8 -7
  659. package/dist/{update-project-DQu5PnE3.cjs.map → update-project-B_OLM4Ky.cjs.map} +1 -1
  660. package/dist/{update-project-C9CLxNfF.js → update-project-DvJfmSmX.js} +6 -5
  661. package/dist/{update-project-C9CLxNfF.js.map → update-project-DvJfmSmX.js.map} +1 -1
  662. package/dist/{url-utils-vJo2ER5v.cjs → url-utils-0OheI87i.cjs} +13 -9
  663. package/dist/url-utils-0OheI87i.cjs.map +1 -0
  664. package/dist/{url-utils-IqgSmI-B.js → url-utils-DF8NBCyH.js} +13 -9
  665. package/dist/url-utils-DF8NBCyH.js.map +1 -0
  666. package/dist/usage-Do2a2NJi.cjs +44 -0
  667. package/dist/usage-Do2a2NJi.cjs.map +1 -0
  668. package/dist/usage-OGOjVeAz.js +38 -0
  669. package/dist/usage-OGOjVeAz.js.map +1 -0
  670. package/dist/utils/slug-validation.cjs +5 -0
  671. package/dist/utils/slug-validation.d.cts +51 -0
  672. package/dist/utils/slug-validation.d.cts.map +1 -0
  673. package/dist/utils/slug-validation.d.ts +51 -0
  674. package/dist/utils/slug-validation.d.ts.map +1 -0
  675. package/dist/utils/slug-validation.js +3 -0
  676. package/dist/utils/url-utils.cjs +1 -1
  677. package/dist/utils/url-utils.d.cts +5 -5
  678. package/dist/utils/url-utils.d.cts.map +1 -1
  679. package/dist/utils/url-utils.d.ts +5 -5
  680. package/dist/utils/url-utils.d.ts.map +1 -1
  681. package/dist/utils/url-utils.js +1 -1
  682. package/dist/utils-BOPpU4-H.cjs +87 -0
  683. package/dist/utils-BOPpU4-H.cjs.map +1 -0
  684. package/dist/utils-CP4vAzfv.js +94 -0
  685. package/dist/utils-CP4vAzfv.js.map +1 -0
  686. package/dist/utils-Cw6O1ztc.d.ts +43 -0
  687. package/dist/utils-Cw6O1ztc.d.ts.map +1 -0
  688. package/dist/{utils-Fm-dODdb.d.cts → utils-DA-V9B-n.d.ts} +16 -12
  689. package/dist/utils-DA-V9B-n.d.ts.map +1 -0
  690. package/dist/{utils-CqbeJfE1.cjs → utils-DQ69VZrK.cjs} +39 -53
  691. package/dist/utils-DQ69VZrK.cjs.map +1 -0
  692. package/dist/{utils-CzV_Tz2C.d.ts → utils-Ddvt3CBZ.d.cts} +16 -12
  693. package/dist/utils-Ddvt3CBZ.d.cts.map +1 -0
  694. package/dist/utils-K1XhlGf4.js +81 -0
  695. package/dist/utils-K1XhlGf4.js.map +1 -0
  696. package/dist/utils-OyJ8CB2S.d.cts +43 -0
  697. package/dist/utils-OyJ8CB2S.d.cts.map +1 -0
  698. package/dist/validate-region-url-BhxxcBgE.cjs +42 -0
  699. package/dist/validate-region-url-BhxxcBgE.cjs.map +1 -0
  700. package/dist/validate-region-url-DTUtqFky.js +37 -0
  701. package/dist/validate-region-url-DTUtqFky.js.map +1 -0
  702. package/dist/version-CaDh5TML.js +6 -0
  703. package/dist/{version-DvjTvYJs.js.map → version-CaDh5TML.js.map} +1 -1
  704. package/dist/{version-Bu9nGzm5.cjs → version-DB2IM9qM.cjs} +2 -2
  705. package/dist/{version-Bu9nGzm5.cjs.map → version-DB2IM9qM.cjs.map} +1 -1
  706. package/dist/version.cjs +1 -1
  707. package/dist/version.js +1 -1
  708. package/dist/whoami-BdiVu0Wr.cjs +38 -0
  709. package/dist/whoami-BdiVu0Wr.cjs.map +1 -0
  710. package/dist/{whoami-CoZJKpys.cjs → whoami-DCgOyVnW.cjs} +7 -5
  711. package/dist/whoami-DCgOyVnW.cjs.map +1 -0
  712. package/dist/{whoami-xBAWvzG4.js → whoami-bRIfclYF.js} +7 -5
  713. package/dist/whoami-bRIfclYF.js.map +1 -0
  714. package/dist/whoami-qCGsRPRm.js +33 -0
  715. package/dist/whoami-qCGsRPRm.js.map +1 -0
  716. package/package.json +34 -9
  717. package/dist/agent-COgY789I.js +0 -225
  718. package/dist/agent-COgY789I.js.map +0 -1
  719. package/dist/agent-Cody_f0d.cjs +0 -59
  720. package/dist/agent-Cody_f0d.cjs.map +0 -1
  721. package/dist/agent-DZRRChrO.js +0 -53
  722. package/dist/agent-DZRRChrO.js.map +0 -1
  723. package/dist/agent-DpCCnhh5.cjs +0 -231
  724. package/dist/agent-DpCCnhh5.cjs.map +0 -1
  725. package/dist/agent-tools/discover-dataset-fields.cjs +0 -6
  726. package/dist/agent-tools/discover-dataset-fields.d.cts.map +0 -1
  727. package/dist/agent-tools/discover-dataset-fields.d.ts.map +0 -1
  728. package/dist/agent-tools/discover-dataset-fields.js +0 -3
  729. package/dist/agent-tools/lookup-otel-semantics.cjs +0 -5
  730. package/dist/agent-tools/lookup-otel-semantics.d.cts +0 -38
  731. package/dist/agent-tools/lookup-otel-semantics.d.cts.map +0 -1
  732. package/dist/agent-tools/lookup-otel-semantics.d.ts +0 -38
  733. package/dist/agent-tools/lookup-otel-semantics.d.ts.map +0 -1
  734. package/dist/agent-tools/lookup-otel-semantics.js +0 -4
  735. package/dist/agent-tools/whoami.cjs +0 -4
  736. package/dist/agent-tools/whoami.d.cts +0 -28
  737. package/dist/agent-tools/whoami.d.cts.map +0 -1
  738. package/dist/agent-tools/whoami.d.ts +0 -28
  739. package/dist/agent-tools/whoami.d.ts.map +0 -1
  740. package/dist/agent-tools/whoami.js +0 -3
  741. package/dist/analyze-issue-with-seer-ByoDTsq-.cjs.map +0 -1
  742. package/dist/analyze-issue-with-seer-CpwtN4UA.js.map +0 -1
  743. package/dist/api-utils-BlUSO8xh.js.map +0 -1
  744. package/dist/api-utils-DFWUfQ83.cjs.map +0 -1
  745. package/dist/client-CPrEfAwa.cjs.map +0 -1
  746. package/dist/client-DLkUGS7r.d.ts.map +0 -1
  747. package/dist/client-DV68BdcS.d.cts.map +0 -1
  748. package/dist/client-MaVV1gVC.js.map +0 -1
  749. package/dist/config-BUmDxVLS.js +0 -52
  750. package/dist/config-BUmDxVLS.js.map +0 -1
  751. package/dist/config-BvtWiL3I.js.map +0 -1
  752. package/dist/config-CD-5FpOO.cjs.map +0 -1
  753. package/dist/config-FWsgDbm7.cjs +0 -58
  754. package/dist/config-FWsgDbm7.cjs.map +0 -1
  755. package/dist/constants-Fe-4NTUo.js.map +0 -1
  756. package/dist/constants-wrEbre3j.cjs.map +0 -1
  757. package/dist/create-project-4R4aZMoc.cjs.map +0 -1
  758. package/dist/create-project-Ca1Sy1_F.js.map +0 -1
  759. package/dist/create-team-CSBXDcoD.cjs.map +0 -1
  760. package/dist/create-team-D0dUl7Zo.js.map +0 -1
  761. package/dist/defineTool-77H4nSna.js +0 -8
  762. package/dist/defineTool-77H4nSna.js.map +0 -1
  763. package/dist/defineTool-lWNTzWl_.cjs.map +0 -1
  764. package/dist/discover-dataset-fields-BEnyqPSq.js.map +0 -1
  765. package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +0 -1
  766. package/dist/errors.d.cts.map +0 -1
  767. package/dist/errors.d.ts.map +0 -1
  768. package/dist/fetch-utils-CTLoW1R8.d.cts +0 -33
  769. package/dist/fetch-utils-CTLoW1R8.d.cts.map +0 -1
  770. package/dist/fetch-utils-JDZw4XaU.d.ts +0 -33
  771. package/dist/fetch-utils-JDZw4XaU.d.ts.map +0 -1
  772. package/dist/find-dsns-CkvahHwJ.cjs.map +0 -1
  773. package/dist/find-dsns-DrNAfU_Q.js.map +0 -1
  774. package/dist/find-organizations-BDtHkcFV.cjs.map +0 -1
  775. package/dist/find-organizations-Cs1GvZtJ.js.map +0 -1
  776. package/dist/find-projects-CZCMck_0.js.map +0 -1
  777. package/dist/find-projects-Dh-1AK-m.cjs.map +0 -1
  778. package/dist/find-releases-BsAkl--F.cjs.map +0 -1
  779. package/dist/find-releases-Do_CywRr.js.map +0 -1
  780. package/dist/find-teams-BylQQ4FO.js.map +0 -1
  781. package/dist/find-teams-DXyzyQOy.cjs.map +0 -1
  782. package/dist/formatters-B3ONbRhI.js.map +0 -1
  783. package/dist/formatters-CfeBjhXZ.cjs.map +0 -1
  784. package/dist/formatters-DSYXBiQx.js.map +0 -1
  785. package/dist/formatters-DbqofIoy.cjs.map +0 -1
  786. package/dist/formatting-C180PVwd.cjs.map +0 -1
  787. package/dist/formatting-C3qu84cm.d.ts.map +0 -1
  788. package/dist/formatting-CmBYkI_e.d.cts.map +0 -1
  789. package/dist/formatting-DIvCVunN.js.map +0 -1
  790. package/dist/formatting-utils-C3sej5ER.js.map +0 -1
  791. package/dist/formatting-utils-DDz14xeB.cjs.map +0 -1
  792. package/dist/get-doc-BfMg0GIa.cjs.map +0 -1
  793. package/dist/get-doc-DyqJe6TP.js.map +0 -1
  794. package/dist/get-event-attachment-BzhDeM6z.cjs.map +0 -1
  795. package/dist/get-event-attachment-CVoMrETq.js.map +0 -1
  796. package/dist/get-issue-details-C96fhps3.cjs.map +0 -1
  797. package/dist/get-issue-details-_uS_AZ_v.js.map +0 -1
  798. package/dist/handler-7T1iMsQU.cjs.map +0 -1
  799. package/dist/handler-B0bLvFFX.js.map +0 -1
  800. package/dist/handler-BGhr9FJM.d.cts.map +0 -1
  801. package/dist/handler-BPPTAi7I.d.ts.map +0 -1
  802. package/dist/handler-BZ3hKPb8.d.cts.map +0 -1
  803. package/dist/handler-DEjS3yks.cjs.map +0 -1
  804. package/dist/handler-DTN2HYXt.js.map +0 -1
  805. package/dist/handler-cUB6XcUV.d.ts.map +0 -1
  806. package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +0 -1
  807. package/dist/lookup-otel-semantics-Dt667kdR.js.map +0 -1
  808. package/dist/promptDefinitions-CVHtYaj8.d.cts.map +0 -1
  809. package/dist/promptDefinitions-DehpwJfn.d.ts.map +0 -1
  810. package/dist/resources-Dadvq5Fm.cjs +0 -72
  811. package/dist/resources-Dadvq5Fm.cjs.map +0 -1
  812. package/dist/resources-jcFoc4JU.js +0 -60
  813. package/dist/resources-jcFoc4JU.js.map +0 -1
  814. package/dist/schema-BL3kwfOA.cjs.map +0 -1
  815. package/dist/schema-C0LznFvu.cjs.map +0 -1
  816. package/dist/schema-CcFmBoEf.js.map +0 -1
  817. package/dist/schema-DMfkTR1l.js.map +0 -1
  818. package/dist/search-docs-DIm3ykOg.js.map +0 -1
  819. package/dist/search-docs-EbjJuL9Q.cjs.map +0 -1
  820. package/dist/seer-utils-C7Kv0gr8.cjs.map +0 -1
  821. package/dist/seer-utils-NPHv8KYY.js.map +0 -1
  822. package/dist/server-CnJvaT0s.js.map +0 -1
  823. package/dist/server-Dv9HxoRk.cjs.map +0 -1
  824. package/dist/tools/search-events/agent.d.cts.map +0 -1
  825. package/dist/tools/search-events/agent.d.ts.map +0 -1
  826. package/dist/tools/search-issues/agent.d.cts.map +0 -1
  827. package/dist/tools/search-issues/agent.d.ts.map +0 -1
  828. package/dist/tools/utils/api-utils.cjs +0 -11
  829. package/dist/tools/utils/api-utils.d.cts.map +0 -1
  830. package/dist/tools/utils/api-utils.d.ts.map +0 -1
  831. package/dist/tools/utils/api-utils.js +0 -9
  832. package/dist/tools/utils/defineTool.cjs +0 -3
  833. package/dist/tools/utils/defineTool.d.cts +0 -12
  834. package/dist/tools/utils/defineTool.d.cts.map +0 -1
  835. package/dist/tools/utils/defineTool.d.ts +0 -12
  836. package/dist/tools/utils/defineTool.d.ts.map +0 -1
  837. package/dist/tools/utils/defineTool.js +0 -3
  838. package/dist/tools/utils/fetch-utils.cjs +0 -5
  839. package/dist/tools/utils/fetch-utils.d.cts +0 -2
  840. package/dist/tools/utils/fetch-utils.d.ts +0 -2
  841. package/dist/tools/utils/fetch-utils.js +0 -4
  842. package/dist/tools/utils/formatting-utils.cjs +0 -3
  843. package/dist/tools/utils/formatting-utils.d.cts +0 -15
  844. package/dist/tools/utils/formatting-utils.d.cts.map +0 -1
  845. package/dist/tools/utils/formatting-utils.d.ts +0 -15
  846. package/dist/tools/utils/formatting-utils.d.ts.map +0 -1
  847. package/dist/tools/utils/formatting-utils.js +0 -3
  848. package/dist/tools/utils/issue-utils.cjs +0 -8
  849. package/dist/tools/utils/issue-utils.d.cts +0 -7
  850. package/dist/tools/utils/issue-utils.d.ts +0 -7
  851. package/dist/tools/utils/issue-utils.js +0 -7
  852. package/dist/tools/utils/seer-utils.cjs +0 -11
  853. package/dist/tools/utils/seer-utils.d.cts.map +0 -1
  854. package/dist/tools/utils/seer-utils.d.ts.map +0 -1
  855. package/dist/tools-B0wbxDty.js +0 -44
  856. package/dist/tools-B0wbxDty.js.map +0 -1
  857. package/dist/tools-qfk-QAo0.cjs.map +0 -1
  858. package/dist/types-BOcoP3Na.d.ts.map +0 -1
  859. package/dist/types-C1Fih0eQ.d.ts.map +0 -1
  860. package/dist/types-aOEJ0KgQ.d.cts.map +0 -1
  861. package/dist/update-issue-DoQYEQjf.js.map +0 -1
  862. package/dist/update-issue-DqUsAuTd.cjs.map +0 -1
  863. package/dist/url-utils-IqgSmI-B.js.map +0 -1
  864. package/dist/url-utils-vJo2ER5v.cjs.map +0 -1
  865. package/dist/utils-CqbeJfE1.cjs.map +0 -1
  866. package/dist/utils-CzV_Tz2C.d.ts.map +0 -1
  867. package/dist/utils-Fm-dODdb.d.cts.map +0 -1
  868. package/dist/utils-OgYE-imr.js +0 -108
  869. package/dist/utils-OgYE-imr.js.map +0 -1
  870. package/dist/version-DvjTvYJs.js +0 -6
  871. package/dist/whoami-BOJHfdih.cjs +0 -28
  872. package/dist/whoami-BOJHfdih.cjs.map +0 -1
  873. package/dist/whoami-Bswhb72a.js +0 -23
  874. package/dist/whoami-Bswhb72a.js.map +0 -1
  875. package/dist/whoami-CoZJKpys.cjs.map +0 -1
  876. package/dist/whoami-xBAWvzG4.js.map +0 -1
  877. /package/dist/{api-client-BWt6M7ij.cjs → api-client-T99a5Vta.js} +0 -0
  878. /package/dist/{api-client-CNv_hbPO.js → api-client-_2QFWf0d.cjs} +0 -0
  879. /package/dist/{fetch-utils-BqMx2KQr.js → cli/types.cjs} +0 -0
  880. /package/dist/{fetch-utils-DeZcERfe.cjs → cli/types.js} +0 -0
  881. /package/dist/{index-BPSCxsMC.d.cts → index-CmCelmEL.d.cts} +0 -0
  882. /package/dist/{index-DE1muTvw.d.ts → index-DCwqskfg.d.ts} +0 -0
  883. /package/dist/{issue-utils-BVAB6I-Z.js → issue-DKr8zNay.js} +0 -0
  884. /package/dist/{issue-utils-pdbo-5LW.cjs → issue-DrgpqPbF.cjs} +0 -0
  885. /package/dist/{search-events-BBFPuvRq.cjs → resources-BlsH_EDg.cjs} +0 -0
  886. /package/dist/{search-events-bV3-kK78.js → resources-U-u5ze91.js} +0 -0
  887. /package/dist/{search-issues-BFgCvRYe.js → search-events-CUvQ_Jch.js} +0 -0
  888. /package/dist/{search-issues-Biu64RkQ.cjs → search-events-DSY2Z_Eh.cjs} +0 -0
  889. /package/dist/{types-6zHoEWAx.js → search-issues-BOmdyuUf.js} +0 -0
  890. /package/dist/{types-DdloOYgD.cjs → search-issues-BxO2JE3D.cjs} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatting-CqmsvuAY.cjs","names":["LANGUAGE_EXTENSIONS: Record<string, string>","LANGUAGE_MODULE_PATTERNS: Array<[RegExp, string]>","frame: z.infer<typeof FrameInterface>","platform?: string | null","frameIndex?: number","event: Event","parts: string[]","data: z.infer<typeof ErrorEntrySchema>","platform: string | null","index: number","totalExceptions: number","data: z.infer<typeof RequestEntrySchema>","data: z.infer<typeof MessageEntrySchema>","data: z.infer<typeof ThreadsEntrySchema>","lines: string[]","value: unknown","vars: Record<string, unknown>","frames: z.infer<typeof FrameInterface>[]","tags: z.infer<typeof EventSchema>[\"tags\"]","contexts: z.infer<typeof EventSchema>[\"contexts\"]","autofixState: AutofixRunState | undefined","organizationSlug: string","issueId: string"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["/**\n * LLM response formatting utilities for Sentry data.\n *\n * Converts Sentry API responses into structured markdown format optimized\n * for LLM consumption. Handles stacktraces, event details, issue summaries,\n * and contextual information with consistent formatting patterns.\n */\nimport type { z } from \"zod\";\nimport type { Event, Issue, AutofixRunState } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n EventSchema,\n FrameInterface,\n RequestEntrySchema,\n MessageEntrySchema,\n ThreadsEntrySchema,\n SentryApiService,\n AutofixRunStepRootCauseAnalysisSchema,\n} from \"../api-client\";\nimport {\n getOutputForAutofixStep,\n isTerminalStatus,\n getStatusDisplayName,\n} from \"./tool-helpers/seer\";\n\n// Language detection mappings\nconst LANGUAGE_EXTENSIONS: Record<string, string> = {\n \".java\": \"java\",\n \".py\": \"python\",\n \".js\": \"javascript\",\n \".jsx\": \"javascript\",\n \".ts\": \"javascript\",\n \".tsx\": \"javascript\",\n \".rb\": \"ruby\",\n \".php\": \"php\",\n};\n\nconst LANGUAGE_MODULE_PATTERNS: Array<[RegExp, string]> = [\n [/^(java\\.|com\\.|org\\.)/, \"java\"],\n];\n\n/**\n * Detects the programming language of a stack frame based on the file extension.\n * Falls back to the platform parameter if no filename is available or extension is unrecognized.\n *\n * @param frame - The stack frame containing file and location information\n * @param platform - Optional platform hint to use as fallback\n * @returns The detected language or platform fallback or \"unknown\"\n */\nfunction detectLanguage(\n frame: z.infer<typeof FrameInterface>,\n platform?: string | null,\n): string {\n // Check filename extensions\n if (frame.filename) {\n const ext = frame.filename.toLowerCase().match(/\\.[^.]+$/)?.[0];\n if (ext && LANGUAGE_EXTENSIONS[ext]) {\n return LANGUAGE_EXTENSIONS[ext];\n }\n }\n\n // Check module patterns\n if (frame.module) {\n for (const [pattern, language] of LANGUAGE_MODULE_PATTERNS) {\n if (pattern.test(frame.module)) {\n return language;\n }\n }\n }\n\n // Fallback to platform or unknown\n return platform || \"unknown\";\n}\n\n/**\n * Formats a stack frame into a language-specific string representation.\n * Different languages have different conventions for displaying stack traces.\n *\n * @param frame - The stack frame to format\n * @param frameIndex - Optional frame index for languages that display frame numbers\n * @param platform - Optional platform hint for language detection fallback\n * @returns Formatted stack frame string\n */\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n frameIndex?: number,\n platform?: string | null,\n) {\n const language = detectLanguage(frame, platform);\n\n switch (language) {\n case \"java\": {\n // at com.example.ClassName.methodName(FileName.java:123)\n const className = frame.module || \"UnknownClass\";\n const method = frame.function || \"<unknown>\";\n const source = frame.filename || \"Unknown Source\";\n const location = frame.lineNo ? `:${frame.lineNo}` : \"\";\n return `at ${className}.${method}(${source}${location})`;\n }\n\n case \"python\": {\n // File \"/path/to/file.py\", line 42, in function_name\n const file =\n frame.filename || frame.absPath || frame.module || \"<unknown>\";\n const func = frame.function || \"<module>\";\n const line = frame.lineNo ? `, line ${frame.lineNo}` : \"\";\n return ` File \"${file}\"${line}, in ${func}`;\n }\n\n case \"javascript\": {\n // Original compact format: filename:line:col (function)\n // This preserves backward compatibility\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n\n case \"ruby\": {\n // from /path/to/file.rb:42:in `method_name'\n const file = frame.filename || frame.module || \"<unknown>\";\n const func = frame.function ? ` \\`${frame.function}\\`` : \"\";\n const line = frame.lineNo ? `:${frame.lineNo}:in` : \"\";\n return ` from ${file}${line}${func}`;\n }\n\n case \"php\": {\n // #0 /path/to/file.php(42): functionName()\n const file = frame.filename || \"<unknown>\";\n const line = frame.lineNo ? `(${frame.lineNo})` : \"\";\n const func = frame.function || \"<unknown>\";\n const prefix = frameIndex !== undefined ? `#${frameIndex} ` : \"\";\n return `${prefix}${file}${line}: ${func}()`;\n }\n\n default: {\n // Generic format for unknown languages\n const func = frame.function || \"<unknown>\";\n const location = frame.filename || frame.module || \"<unknown>\";\n const line = frame.lineNo ? `:${frame.lineNo}` : \"\";\n const col = frame.colNo != null ? `:${frame.colNo}` : \"\";\n return ` at ${func} (${location}${line}${col})`;\n }\n }\n}\n\n/**\n * Formats a Sentry event into a structured markdown output.\n * Includes error messages, stack traces, request info, and contextual data.\n *\n * @param event - The Sentry event to format\n * @returns Formatted markdown string\n */\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n\n // Look for the primary error information\n const messageEntry = event.entries.find((e) => e.type === \"message\");\n const exceptionEntry = event.entries.find((e) => e.type === \"exception\");\n const threadsEntry = event.entries.find((e) => e.type === \"threads\");\n const requestEntry = event.entries.find((e) => e.type === \"request\");\n\n // Error message (if present)\n if (messageEntry) {\n output += formatMessageInterfaceOutput(\n event,\n messageEntry.data as z.infer<typeof MessageEntrySchema>,\n );\n }\n\n // Stack trace (from exception or threads)\n if (exceptionEntry) {\n output += formatExceptionInterfaceOutput(\n event,\n exceptionEntry.data as z.infer<typeof ErrorEntrySchema>,\n );\n } else if (threadsEntry) {\n output += formatThreadsInterfaceOutput(\n event,\n threadsEntry.data as z.infer<typeof ThreadsEntrySchema>,\n );\n }\n\n // Request info (if HTTP error)\n if (requestEntry) {\n output += formatRequestInterfaceOutput(\n event,\n requestEntry.data as z.infer<typeof RequestEntrySchema>,\n );\n }\n\n output += formatTags(event.tags);\n output += formatContexts(event.contexts);\n return output;\n}\n\n/**\n * Extracts the context line matching the frame's line number for inline display.\n * This is used in the full stacktrace view to show the actual line of code\n * that caused the error inline with the stack frame.\n *\n * @param frame - The stack frame containing context lines\n * @returns The line of code at the frame's line number, or empty string if not available\n */\nfunction renderInlineContext(frame: z.infer<typeof FrameInterface>): string {\n if (!frame.context?.length || !frame.lineNo) {\n return \"\";\n }\n\n const contextLine = frame.context.find(([lineNo]) => lineNo === frame.lineNo);\n return contextLine ? `\\n${contextLine[1]}` : \"\";\n}\n\n/**\n * Renders an enhanced view of a stack frame with context lines and variables.\n * Used for the \"Most Relevant Frame\" section to provide detailed information\n * about the most relevant application frame where the error occurred.\n *\n * @param frame - The stack frame to render with enhanced information\n * @param event - The Sentry event containing platform information for language detection\n * @returns Formatted string with frame header, context lines, and variables table\n */\nfunction renderEnhancedFrame(\n frame: z.infer<typeof FrameInterface>,\n event: Event,\n): string {\n const parts: string[] = [];\n\n parts.push(\"**Most Relevant Frame:**\");\n parts.push(\"─────────────────────\");\n parts.push(formatFrameHeader(frame, undefined, event.platform));\n\n // Add context lines if available\n if (frame.context?.length) {\n const contextLines = renderContextLines(frame);\n if (contextLines) {\n parts.push(\"\");\n parts.push(contextLines);\n }\n }\n\n // Add variables table if available\n if (frame.vars && Object.keys(frame.vars).length > 0) {\n parts.push(\"\");\n parts.push(renderVariablesTable(frame.vars));\n }\n\n return parts.join(\"\\n\");\n}\n\nfunction formatExceptionInterfaceOutput(\n event: Event,\n data: z.infer<typeof ErrorEntrySchema>,\n) {\n const parts: string[] = [];\n\n // Handle both single exception (value) and chained exceptions (values)\n const exceptions = data.values || (data.value ? [data.value] : []);\n\n if (exceptions.length === 0) {\n return \"\";\n }\n\n // For chained exceptions, they are typically ordered from innermost to outermost\n // We'll render them in reverse order (outermost first) to match how they occurred\n const isChained = exceptions.length > 1;\n\n // Create a copy before reversing to avoid mutating the original array\n [...exceptions].reverse().forEach((exception, index) => {\n if (!exception) return;\n\n // Add language-specific chain indicator for multiple exceptions\n if (isChained && index > 0) {\n parts.push(\"\");\n parts.push(\n getExceptionChainMessage(\n event.platform || null,\n index,\n exceptions.length,\n ),\n );\n parts.push(\"\");\n }\n\n // Use the actual exception type and value as the heading\n const exceptionTitle = `${exception.type}${exception.value ? `: ${exception.value}` : \"\"}`;\n\n parts.push(index === 0 ? \"### Error\" : `### ${exceptionTitle}`);\n parts.push(\"\");\n\n // Add the error details in a code block for the first exception\n // to maintain backward compatibility\n if (index === 0) {\n parts.push(\"```\");\n parts.push(exceptionTitle);\n parts.push(\"```\");\n parts.push(\"\");\n }\n\n if (!exception.stacktrace || !exception.stacktrace.frames) {\n parts.push(\"**Stacktrace:**\");\n parts.push(\"```\");\n parts.push(\"No stacktrace available\");\n parts.push(\"```\");\n return;\n }\n\n const frames = exception.stacktrace.frames;\n\n // Only show enhanced frame for the first (outermost) exception to avoid overwhelming output\n if (index === 0) {\n const firstInAppFrame = findFirstInAppFrame(frames);\n if (\n firstInAppFrame &&\n (firstInAppFrame.context?.length || firstInAppFrame.vars)\n ) {\n parts.push(renderEnhancedFrame(firstInAppFrame, event));\n parts.push(\"\");\n parts.push(\"**Full Stacktrace:**\");\n parts.push(\"────────────────\");\n } else {\n parts.push(\"**Stacktrace:**\");\n }\n } else {\n parts.push(\"**Stacktrace:**\");\n }\n\n parts.push(\"```\");\n parts.push(\n frames\n .map((frame) => {\n const header = formatFrameHeader(frame, undefined, event.platform);\n const context = renderInlineContext(frame);\n return `${header}${context}`;\n })\n .join(\"\\n\"),\n );\n parts.push(\"```\");\n });\n\n parts.push(\"\");\n parts.push(\"\");\n\n return parts.join(\"\\n\");\n}\n\n/**\n * Get the appropriate exception chain message based on the platform\n */\nfunction getExceptionChainMessage(\n platform: string | null,\n index: number,\n totalExceptions: number,\n): string {\n // Default message for unknown platforms\n const defaultMessage =\n \"**During handling of the above exception, another exception occurred:**\";\n\n if (!platform) {\n return defaultMessage;\n }\n\n switch (platform.toLowerCase()) {\n case \"python\":\n // Python has two distinct messages, but without additional metadata\n // we default to the implicit chaining message\n return \"**During handling of the above exception, another exception occurred:**\";\n\n case \"java\":\n return \"**Caused by:**\";\n\n case \"csharp\":\n case \"dotnet\":\n return \"**---> Inner Exception:**\";\n\n case \"ruby\":\n return \"**Caused by:**\";\n\n case \"go\":\n return \"**Wrapped error:**\";\n\n case \"rust\":\n return `**Caused by (${index}):**`;\n\n default:\n return defaultMessage;\n }\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 formatMessageInterfaceOutput(\n event: Event,\n data: z.infer<typeof MessageEntrySchema>,\n) {\n if (!data.formatted && !data.message) {\n return \"\";\n }\n const message = data.formatted || data.message || \"\";\n return `### Error\\n\\n${\"```\"}\\n${message}\\n${\"```\"}\\n\\n`;\n}\n\nfunction formatThreadsInterfaceOutput(\n event: Event,\n data: z.infer<typeof ThreadsEntrySchema>,\n) {\n if (!data.values || data.values.length === 0) {\n return \"\";\n }\n\n // Find the crashed thread only\n const crashedThread = data.values.find((t) => t.crashed);\n\n if (!crashedThread?.stacktrace?.frames) {\n return \"\";\n }\n\n const parts: string[] = [];\n\n // Include thread name if available\n if (crashedThread.name) {\n parts.push(`**Thread** (${crashedThread.name})`);\n parts.push(\"\");\n }\n\n const frames = crashedThread.stacktrace.frames;\n\n // Find and format the first in-app frame with enhanced view\n const firstInAppFrame = findFirstInAppFrame(frames);\n if (\n firstInAppFrame &&\n (firstInAppFrame.context?.length || firstInAppFrame.vars)\n ) {\n parts.push(renderEnhancedFrame(firstInAppFrame, event));\n parts.push(\"\");\n parts.push(\"**Full Stacktrace:**\");\n parts.push(\"────────────────\");\n } else {\n parts.push(\"**Stacktrace:**\");\n }\n\n parts.push(\"```\");\n parts.push(\n frames\n .map((frame) => {\n const header = formatFrameHeader(frame, undefined, event.platform);\n const context = renderInlineContext(frame);\n return `${header}${context}`;\n })\n .join(\"\\n\"),\n );\n parts.push(\"```\");\n parts.push(\"\");\n\n return parts.join(\"\\n\");\n}\n\n/**\n * Renders surrounding source code context for a stack frame.\n * Shows a window of code lines around the error line with visual indicators.\n *\n * @param frame - The stack frame containing context lines\n * @param contextSize - Number of lines to show before and after the error line (default: 3)\n * @returns Formatted context lines with line numbers and arrow indicator for the error line\n */\nfunction renderContextLines(\n frame: z.infer<typeof FrameInterface>,\n contextSize = 3,\n): string {\n if (!frame.context || frame.context.length === 0 || !frame.lineNo) {\n return \"\";\n }\n\n const lines: string[] = [];\n const errorLine = frame.lineNo;\n const maxLineNoWidth = Math.max(\n ...frame.context.map(([lineNo]) => lineNo.toString().length),\n );\n\n for (const [lineNo, code] of frame.context) {\n const isErrorLine = lineNo === errorLine;\n const lineNoStr = lineNo.toString().padStart(maxLineNoWidth, \" \");\n\n if (Math.abs(lineNo - errorLine) <= contextSize) {\n if (isErrorLine) {\n lines.push(` → ${lineNoStr} │ ${code}`);\n } else {\n lines.push(` ${lineNoStr} │ ${code}`);\n }\n }\n }\n\n return lines.join(\"\\n\");\n}\n\n/**\n * Formats a variable value for display in the variables table.\n * Handles different types appropriately and safely, converting complex objects\n * to readable representations and handling edge cases like circular references.\n *\n * @param value - The variable value to format (can be any type)\n * @param maxLength - Maximum length for stringified objects/arrays (default: 80)\n * @returns Human-readable string representation of the value\n */\nfunction formatVariableValue(value: unknown, maxLength = 80): string {\n try {\n if (typeof value === \"string\") {\n return `\"${value}\"`;\n }\n if (value === null) {\n return \"null\";\n }\n if (value === undefined) {\n return \"undefined\";\n }\n if (typeof value === \"object\") {\n const stringified = JSON.stringify(value);\n if (stringified.length > maxLength) {\n // Leave room for \", ...]\" or \", ...}\"\n const truncateAt = maxLength - 6;\n let truncated = stringified.substring(0, truncateAt);\n\n // Find the last complete element by looking for the last comma\n const lastComma = truncated.lastIndexOf(\",\");\n if (lastComma > 0) {\n truncated = truncated.substring(0, lastComma);\n }\n\n // Add the appropriate ending\n if (Array.isArray(value)) {\n return `${truncated}, ...]`;\n }\n return `${truncated}, ...}`;\n }\n return stringified;\n }\n return String(value);\n } catch {\n // Handle circular references or other stringify errors\n return `<${typeof value}>`;\n }\n}\n\n/**\n * Renders a table of local variables in a tree-like format.\n * Uses box-drawing characters to create a visual hierarchy of variables\n * and their values at the point where the error occurred.\n *\n * @param vars - Object containing variable names as keys and their values\n * @returns Formatted variables table with tree-style prefix characters\n */\nfunction renderVariablesTable(vars: Record<string, unknown>): string {\n const entries = Object.entries(vars);\n if (entries.length === 0) {\n return \"\";\n }\n\n const lines: string[] = [\"Local Variables:\"];\n const lastIndex = entries.length - 1;\n\n entries.forEach(([key, value], index) => {\n const prefix = index === lastIndex ? \"└─\" : \"├─\";\n const valueStr = formatVariableValue(value);\n lines.push(`${prefix} ${key}: ${valueStr}`);\n });\n\n return lines.join(\"\\n\");\n}\n\n/**\n * Finds the first application frame (in_app) in a stack trace.\n * Searches from the bottom of the stack (oldest frame) to find the first\n * frame that belongs to the user's application code rather than libraries.\n *\n * @param frames - Array of stack frames, typically in reverse chronological order\n * @returns The first in-app frame found, or undefined if none exist\n */\nfunction findFirstInAppFrame(\n frames: z.infer<typeof FrameInterface>[],\n): z.infer<typeof FrameInterface> | undefined {\n // Frames are usually in reverse order (most recent first)\n // We want the first in-app frame from the bottom\n for (let i = frames.length - 1; i >= 0; i--) {\n if (frames[i].inApp === true) {\n return frames[i];\n }\n }\n return undefined;\n}\n\nfunction formatTags(tags: z.infer<typeof EventSchema>[\"tags\"]) {\n if (!tags || tags.length === 0) {\n return \"\";\n }\n return `### Tags\\n\\n${tags\n .map((tag) => `**${tag.key}**: ${tag.value}`)\n .join(\"\\n\")}\\n\\n`;\n}\n\nfunction formatContexts(contexts: z.infer<typeof EventSchema>[\"contexts\"]) {\n if (!contexts || Object.keys(contexts).length === 0) {\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\n/**\n * Formats a brief Seer AI analysis summary for inclusion in issue details.\n * Shows current status and high-level insights, prompting to use analyze_issue_with_seer for full details.\n *\n * @param autofixState - The autofix state containing Seer analysis data\n * @param organizationSlug - The organization slug for the issue\n * @param issueId - The issue ID (shortId)\n * @returns Formatted markdown string with Seer summary, or empty string if no analysis exists\n */\nfunction formatSeerSummary(\n autofixState: AutofixRunState | undefined,\n organizationSlug: string,\n issueId: string,\n): string {\n if (!autofixState || !autofixState.autofix) {\n return \"\";\n }\n\n const { autofix } = autofixState;\n const parts: string[] = [];\n\n parts.push(\"## Seer AI Analysis\");\n parts.push(\"\");\n\n // Show status first\n const statusDisplay = getStatusDisplayName(autofix.status);\n if (!isTerminalStatus(autofix.status)) {\n parts.push(`**Status:** ${statusDisplay}`);\n parts.push(\"\");\n }\n\n // Show summary of what we have so far\n if (autofix.steps.length > 0) {\n const completedSteps = autofix.steps.filter(\n (step) => step.status === \"COMPLETED\",\n );\n\n // Find the solution step if available\n const solutionStep = completedSteps.find(\n (step) => step.type === \"solution\",\n );\n\n if (solutionStep) {\n // For solution steps, use the description directly\n const solutionDescription = solutionStep.description;\n if (\n solutionDescription &&\n typeof solutionDescription === \"string\" &&\n solutionDescription.trim()\n ) {\n parts.push(\"**Summary:**\");\n parts.push(solutionDescription.trim());\n } else {\n // Fallback to extracting from output if no description\n const solutionOutput = getOutputForAutofixStep(solutionStep);\n const lines = solutionOutput.split(\"\\n\");\n const firstParagraph = lines.find(\n (line) =>\n line.trim().length > 50 &&\n !line.startsWith(\"#\") &&\n !line.startsWith(\"*\"),\n );\n if (firstParagraph) {\n parts.push(\"**Summary:**\");\n parts.push(firstParagraph.trim());\n }\n }\n } else if (completedSteps.length > 0) {\n // Show what steps have been completed so far\n const rootCauseStep = completedSteps.find(\n (step) => step.type === \"root_cause_analysis\",\n );\n\n if (rootCauseStep) {\n const typedStep = rootCauseStep as z.infer<\n typeof AutofixRunStepRootCauseAnalysisSchema\n >;\n if (\n typedStep.causes &&\n typedStep.causes.length > 0 &&\n typedStep.causes[0].description\n ) {\n parts.push(\"**Root Cause Identified:**\");\n parts.push(typedStep.causes[0].description.trim());\n }\n } else {\n // Show generic progress\n parts.push(\n `**Progress:** ${completedSteps.length} of ${autofix.steps.length} steps completed`,\n );\n }\n }\n } else {\n // No steps yet - check for terminal states first\n if (isTerminalStatus(autofix.status)) {\n if (autofix.status === \"FAILED\" || autofix.status === \"ERROR\") {\n parts.push(\"**Status:** Analysis failed.\");\n } else if (autofix.status === \"CANCELLED\") {\n parts.push(\"**Status:** Analysis was cancelled.\");\n } else if (\n autofix.status === \"NEED_MORE_INFORMATION\" ||\n autofix.status === \"WAITING_FOR_USER_RESPONSE\"\n ) {\n parts.push(\n \"**Status:** Analysis paused - additional information needed.\",\n );\n }\n } else {\n parts.push(\"Analysis has started but no results yet.\");\n }\n }\n\n // Add specific messages for terminal states when steps exist\n if (autofix.steps.length > 0 && isTerminalStatus(autofix.status)) {\n if (autofix.status === \"FAILED\" || autofix.status === \"ERROR\") {\n parts.push(\"\");\n parts.push(\"**Status:** Analysis failed.\");\n } else if (autofix.status === \"CANCELLED\") {\n parts.push(\"\");\n parts.push(\"**Status:** Analysis was cancelled.\");\n } else if (\n autofix.status === \"NEED_MORE_INFORMATION\" ||\n autofix.status === \"WAITING_FOR_USER_RESPONSE\"\n ) {\n parts.push(\"\");\n parts.push(\n \"**Status:** Analysis paused - additional information needed.\",\n );\n }\n }\n\n // Always suggest using analyze_issue_with_seer for more details\n parts.push(\"\");\n parts.push(\n `**Note:** For detailed root cause analysis and solutions, call \\`analyze_issue_with_seer(organizationSlug='${organizationSlug}', issueId='${issueId}')\\``,\n );\n\n return `${parts.join(\"\\n\")}\\n\\n`;\n}\n\n/**\n * Formats a Sentry issue with its latest event into comprehensive markdown output.\n * Includes issue metadata, event details, and usage instructions.\n *\n * @param params - Object containing organization slug, issue, event, and API service\n * @returns Formatted markdown string with complete issue information\n */\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n autofixState,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n autofixState?: AutofixRunState;\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\n // Add Seer context if available\n if (autofixState) {\n output += formatSeerSummary(autofixState, organizationSlug, issue.shortId);\n }\n\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":";;;AA2BA,MAAMA,sB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AAI,MAAM,QACR,YAAW,gBAAgB,MAAM,QAAQ;AAE3C,WAAU;AACV,WAAU,kBAAkB,MAAM;AAGlC,KAAI,aACF,WAAU,kBAAkB,cAAc,kBAAkB,MAAM,QAAQ;AAG5E,WAAU;AACV,YAAW,mEAAmE,MAAM,QAAQ;AAC5F,WACE;AACF,QAAO;AACR"}
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "./schema-xbTf44Hn.cjs";
2
- import { AutofixRunState, Event, Issue } from "./types-DE-njuHe.cjs";
3
- import { SentryApiService } from "./client-DV68BdcS.cjs";
1
+ import { FrameInterface } from "./schema-ChvpDxUk.cjs";
2
+ import { AutofixRunState, Event, Issue } from "./types-B4nOfch5.cjs";
3
+ import { SentryApiService } from "./client-B0wezrpt.cjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/internal/formatting.d.ts
@@ -46,4 +46,4 @@ declare function formatIssueOutput({
46
46
  //# sourceMappingURL=formatting.d.ts.map
47
47
  //#endregion
48
48
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
49
- //# sourceMappingURL=formatting-CmBYkI_e.d.cts.map
49
+ //# sourceMappingURL=formatting-XMmhMjRz.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatting-XMmhMjRz.d.cts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AAqFgB;AAoEhB;AA4mBA;;;;;;;AAQS,iBAzrBO,iBAAA,CAyrBP,KAAA,EAxrBA,CAAA,CAAE,KAwrBF,CAAA,OAxrBe,cAwrBf,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;AAGuB;;;;iBAvnBhB,iBAAA,QAAyB;;;;;;;;iBA4mBzB,iBAAA;;;;;;;;SAQP;SACA;cACK;iBACG"}
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "./schema-DWmx8lgm.js";
2
- import { AutofixRunState, Event, Issue } from "./types-DRywojVB.js";
3
- import { SentryApiService } from "./client-DLkUGS7r.js";
1
+ import { FrameInterface } from "./schema-DOY22v1Q.js";
2
+ import { AutofixRunState, Event, Issue } from "./types-ryM3umix.js";
3
+ import { SentryApiService } from "./client-D-KqRd94.js";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/internal/formatting.d.ts
@@ -46,4 +46,4 @@ declare function formatIssueOutput({
46
46
  //# sourceMappingURL=formatting.d.ts.map
47
47
  //#endregion
48
48
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
49
- //# sourceMappingURL=formatting-C3qu84cm.d.ts.map
49
+ //# sourceMappingURL=formatting-l3qx5d7L.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatting-l3qx5d7L.d.ts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AAqFgB;AAoEhB;AA4mBA;;;;;;;AAQS,iBAzrBO,iBAAA,CAyrBP,KAAA,EAxrBA,CAAA,CAAE,KAwrBF,CAAA,OAxrBe,cAwrBf,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;AAGuB;;;;iBAvnBhB,iBAAA,QAAyB;;;;;;;;iBA4mBzB,iBAAA;;;;;;;;SAQP;SACA;cACK;iBACG"}
@@ -1,14 +1,15 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_errors = require('./errors-BtJEw2Z-.cjs');
3
- const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
4
- const require_client = require('./client-CPrEfAwa.cjs');
5
- const require_fetch_utils = require('./fetch-utils-DkcYwqBo.cjs');
3
+ const require_define = require('./define-BfP4rFlE.cjs');
4
+ const require_errors$1 = require('./errors-CNTY5dED.cjs');
5
+ const require_fetch_utils = require('./fetch-utils-bHWZV7j9.cjs');
6
6
  const zod = require_chunk.__toESM(require("zod"));
7
7
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
8
8
 
9
9
  //#region src/tools/get-doc.ts
10
- var get_doc_default = require_defineTool.defineTool({
10
+ var get_doc_default = require_define.defineTool({
11
11
  name: "get_doc",
12
+ requiredScopes: [],
12
13
  description: [
13
14
  "Fetch the full markdown content of a Sentry documentation page.",
14
15
  "",
@@ -55,7 +56,7 @@ var get_doc_default = require_defineTool.defineTool({
55
56
  output += `Try searching again with \`search_docs()\` to find the correct path.\n`;
56
57
  return output;
57
58
  }
58
- throw new require_client.ApiError(`Failed to fetch documentation: ${response.statusText}`, response.status);
59
+ throw new require_errors$1.ApiError(`Failed to fetch documentation: ${response.statusText}`, response.status);
59
60
  }
60
61
  const content = await response.text();
61
62
  if (content.trim().startsWith("<!DOCTYPE") || content.trim().startsWith("<html")) {
@@ -83,4 +84,4 @@ Object.defineProperty(exports, 'get_doc_default', {
83
84
  return get_doc_default;
84
85
  }
85
86
  });
86
- //# sourceMappingURL=get-doc-BfMg0GIa.cjs.map
87
+ //# sourceMappingURL=get-doc-Euz6NiM3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-doc-Euz6NiM3.cjs","names":["context: ServerContext","UserInputError","ApiError"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { fetchWithTimeout } from \"../internal/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n requiredScopes: [], // Documentation reading doesn't require specific scopes\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAQA,sBAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAE;CAClB,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,4BAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAIC,8BACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAIA,+BACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,qCACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAIC,2BACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,13 +1,14 @@
1
1
  import { UserInputError } from "./errors-D_R568zP.js";
2
- import { defineTool } from "./defineTool-77H4nSna.js";
3
- import { ApiError } from "./client-MaVV1gVC.js";
4
- import { fetchWithTimeout } from "./fetch-utils-C_Xj921x.js";
2
+ import { defineTool } from "./define-2Lj8Lm1t.js";
3
+ import { ApiError } from "./errors-Dr7Q6mD5.js";
4
+ import { fetchWithTimeout } from "./fetch-utils-DRWItYjp.js";
5
5
  import { z } from "zod";
6
6
  import { setTag } from "@sentry/core";
7
7
 
8
8
  //#region src/tools/get-doc.ts
9
9
  var get_doc_default = defineTool({
10
10
  name: "get_doc",
11
+ requiredScopes: [],
11
12
  description: [
12
13
  "Fetch the full markdown content of a Sentry documentation page.",
13
14
  "",
@@ -77,4 +78,4 @@ var get_doc_default = defineTool({
77
78
 
78
79
  //#endregion
79
80
  export { get_doc_default };
80
- //# sourceMappingURL=get-doc-DyqJe6TP.js.map
81
+ //# sourceMappingURL=get-doc-JDwOkY2j.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-doc-JDwOkY2j.js","names":["context: ServerContext"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { fetchWithTimeout } from \"../internal/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n requiredScopes: [], // Documentation reading doesn't require specific scopes\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,sBAAe,WAAW;CACxB,MAAM;CACN,gBAAgB,CAAE;CAClB,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,SAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAI,eACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAI,gBACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,iBACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAI,UACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,12 +1,13 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
3
- const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
4
- const require_schema = require('./schema-BL3kwfOA.cjs');
2
+ const require_define = require('./define-BfP4rFlE.cjs');
3
+ const require_api = require('./api-D9yO5I-i.cjs');
4
+ const require_schema = require('./schema-BUBkkdUa.cjs');
5
5
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
6
6
 
7
7
  //#region src/tools/get-event-attachment.ts
8
- var get_event_attachment_default = require_defineTool.defineTool({
8
+ var get_event_attachment_default = require_define.defineTool({
9
9
  name: "get_event_attachment",
10
+ requiredScopes: ["event:read"],
10
11
  description: [
11
12
  "Download attachments from a Sentry event.",
12
13
  "",
@@ -44,7 +45,7 @@ var get_event_attachment_default = require_defineTool.defineTool({
44
45
  regionUrl: require_schema.ParamRegionUrl.optional()
45
46
  },
46
47
  async handler(params, context) {
47
- const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
48
+ const apiService = require_api.apiServiceFromContext(context, { regionUrl: params.regionUrl });
48
49
  (0, __sentry_core.setTag)("organization.slug", params.organizationSlug);
49
50
  if (params.attachmentId) {
50
51
  const attachment = await apiService.getEventAttachment({
@@ -141,4 +142,4 @@ Object.defineProperty(exports, 'get_event_attachment_default', {
141
142
  return get_event_attachment_default;
142
143
  }
143
144
  });
144
- //# sourceMappingURL=get-event-attachment-BzhDeM6z.cjs.map
145
+ //# sourceMappingURL=get-event-attachment-DvpQ-dEP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-attachment-DvpQ-dEP.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;;AAiBA,mCAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,aAAaC;EACb,SAASC;EACT,cAAc,iCAAkB,UAAU;EAC1C,WAAW,8BAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,4BAAO,qBAAqB,OAAO,iBAAiB;AAGpD,MAAI,OAAO,cAAc;GACvB,MAAM,aAAa,MAAM,WAAW,mBAAmB;IACrD,kBAAkB,OAAO;IACzB,aAAa,OAAO;IACpB,SAAS,OAAO;IAChB,cAAc,OAAO;GACtB,EAAC;GAEF,MAAMC,eACJ,CAAE;GACJ,MAAM,YAAY,WAAW,WAAW,UAAU,WAAW,QAAQ;AAErE,OAAI,UAAU;IACZ,MAAM,UAAU,WAAW,WAAW,UAAU,WAAW,SAAS;IAGpE,MAAM,aAAa,IAAI,WAAW,MAAM,WAAW,KAAK,aAAa;IACrE,IAAI,SAAS;AACb,SAAK,IAAI,IAAI,GAAG,IAAI,WAAW,YAAY,IACzC,WAAU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Y,UAAU;AACzC,cAAW,gBAAgB,QAAQ,EAAE;AACrC,cAAW,UAAU,WAAW,GAAG;AACnC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,iBAAiB,WAAW,SAAS;AAChD,cAAW,eAAe,WAAW,YAAY;AACjD,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW;AACX,cAAW,2CAA2C,OAAO,iBAAiB,kBAAkB,OAAO,YAAY,cAAc,OAAO,QAAQ,mBAAmB,WAAW,GAAG;EAClL,EAAC;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,11 +1,12 @@
1
- import { defineTool } from "./defineTool-77H4nSna.js";
2
- import { apiServiceFromContext } from "./api-utils-BlUSO8xh.js";
3
- import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DMfkTR1l.js";
1
+ import { defineTool } from "./define-2Lj8Lm1t.js";
2
+ import { apiServiceFromContext } from "./api-mjnGhOW2.js";
3
+ import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DPJO5nkQ.js";
4
4
  import { setTag } from "@sentry/core";
5
5
 
6
6
  //#region src/tools/get-event-attachment.ts
7
7
  var get_event_attachment_default = defineTool({
8
8
  name: "get_event_attachment",
9
+ requiredScopes: ["event:read"],
9
10
  description: [
10
11
  "Download attachments from a Sentry event.",
11
12
  "",
@@ -135,4 +136,4 @@ var get_event_attachment_default = defineTool({
135
136
 
136
137
  //#endregion
137
138
  export { get_event_attachment_default };
138
- //# sourceMappingURL=get-event-attachment-CVoMrETq.js.map
139
+ //# sourceMappingURL=get-event-attachment-pIJmUfFE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-attachment-pIJmUfFE.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;AAiBA,mCAAe,WAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,aAAa;EACb,SAAS;EACT,cAAc,kBAAkB,UAAU;EAC1C,WAAW,eAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AA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KAAK,MAAM;AAChD,iBAAW;AACX,iBAAW,UAAU,YAAY;GAClC;GAED,MAAMC,OAAoB;IACxB,MAAM;IACN,MAAMD;GACP;AACD,gBAAa,KAAK,KAAK;AAEvB,UAAO;EACR;EAGD,MAAM,cAAc,MAAM,WAAW,qBAAqB;GACxD,kBAAkB,OAAO;GACzB,aAAa,OAAO;GACpB,SAAS,OAAO;EACjB,EAAC;EAEF,IAAI,UAAU;AACd,aAAW,gBAAgB,OAAO,QAAQ;AAC1C,aAAW,eAAe,OAAO,YAAY;AAE7C,MAAI,YAAY,WAAW,GAAG;AAC5B,aAAU;AACV,UAAO;EACR;AAED,aAAW,QAAQ,YAAY,OAAO;AAEtC,cAAY,QAAQ,CAAC,YAAY,UAAU;AACzC,cAAW,gBAAgB,QAAQ,EAAE;AACrC,cAAW,UAAU,WAAW,GAAG;AACnC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,iBAAiB,WAAW,SAAS;AAChD,cAAW,eAAe,WAAW,YAAY;AACjD,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW;AACX,cAAW,2CAA2C,OAAO,iBAAiB,kBAAkB,OAAO,YAAY,cAAc,OAAO,QAAQ,mBAAmB,WAAW,GAAG;EAClL,EAAC;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,15 +1,18 @@
1
1
  import { UserInputError } from "./errors-D_R568zP.js";
2
- import { defineTool } from "./defineTool-77H4nSna.js";
3
- import { apiServiceFromContext, withApiErrorHandling } from "./api-utils-BlUSO8xh.js";
4
- import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DMfkTR1l.js";
5
- import { parseIssueParams } from "./issue-helpers-CRx45FYG.js";
6
- import { formatIssueOutput } from "./formatting-DIvCVunN.js";
2
+ import { defineTool } from "./define-2Lj8Lm1t.js";
3
+ import { ApiNotFoundError } from "./errors-Dr7Q6mD5.js";
4
+ import { apiServiceFromContext } from "./api-mjnGhOW2.js";
5
+ import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DPJO5nkQ.js";
6
+ import { parseIssueParams } from "./issue-helpers-Bjp6xu5H.js";
7
+ import { formatIssueOutput } from "./formatting-BjCK9XwW.js";
8
+ import { enhanceNotFoundError } from "./enhance-error-C7AVt85N.js";
7
9
  import { z } from "zod";
8
10
  import { setTag } from "@sentry/core";
9
11
 
10
12
  //#region src/tools/get-issue-details.ts
11
13
  var get_issue_details_default = defineTool({
12
14
  name: "get_issue_details",
15
+ requiredScopes: ["event:read"],
13
16
  description: [
14
17
  "Get detailed information about a specific Sentry issue by ID.",
15
18
  "",
@@ -56,18 +59,29 @@ var get_issue_details_default = defineTool({
56
59
  const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
57
60
  if (params.eventId) {
58
61
  const orgSlug$1 = params.organizationSlug;
62
+ const eventId = params.eventId;
59
63
  if (!orgSlug$1) throw new UserInputError("`organizationSlug` is required when providing `eventId`");
60
64
  setTag("organization.slug", orgSlug$1);
61
65
  const [issue$1] = await apiService.listIssues({
62
66
  organizationSlug: orgSlug$1,
63
- query: params.eventId
64
- });
65
- if (!issue$1) return `# Event Not Found\n\nNo issue found for Event ID: ${params.eventId}`;
66
- const event$1 = await apiService.getEventForIssue({
67
- organizationSlug: orgSlug$1,
68
- issueId: issue$1.shortId,
69
- eventId: params.eventId
67
+ query: eventId
70
68
  });
69
+ if (!issue$1) return `# Event Not Found\n\nNo issue found for Event ID: ${eventId}`;
70
+ let event$1;
71
+ try {
72
+ event$1 = await apiService.getEventForIssue({
73
+ organizationSlug: orgSlug$1,
74
+ issueId: issue$1.shortId,
75
+ eventId
76
+ });
77
+ } catch (error) {
78
+ if (error instanceof ApiNotFoundError) throw enhanceNotFoundError(error, {
79
+ organizationSlug: orgSlug$1,
80
+ issueId: issue$1.shortId,
81
+ eventId
82
+ });
83
+ throw error;
84
+ }
71
85
  let autofixState$1;
72
86
  try {
73
87
  autofixState$1 = await apiService.getAutofixState({
@@ -91,13 +105,19 @@ var get_issue_details_default = defineTool({
91
105
  issueUrl: params.issueUrl
92
106
  });
93
107
  setTag("organization.slug", orgSlug);
94
- const issue = await withApiErrorHandling(() => apiService.getIssue({
95
- organizationSlug: orgSlug,
96
- issueId: parsedIssueId
97
- }), {
98
- organizationSlug: orgSlug,
99
- issueId: parsedIssueId
100
- });
108
+ let issue;
109
+ try {
110
+ issue = await apiService.getIssue({
111
+ organizationSlug: orgSlug,
112
+ issueId: parsedIssueId
113
+ });
114
+ } catch (error) {
115
+ if (error instanceof ApiNotFoundError) throw enhanceNotFoundError(error, {
116
+ organizationSlug: orgSlug,
117
+ issueId: parsedIssueId
118
+ });
119
+ throw error;
120
+ }
101
121
  const event = await apiService.getLatestEventForIssue({
102
122
  organizationSlug: orgSlug,
103
123
  issueId: issue.shortId
@@ -121,4 +141,4 @@ var get_issue_details_default = defineTool({
121
141
 
122
142
  //#endregion
123
143
  export { get_issue_details_default };
124
- //# sourceMappingURL=get-issue-details-_uS_AZ_v.js.map
144
+ //# sourceMappingURL=get-issue-details-B1PDMmMY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-issue-details-B1PDMmMY.js","names":["context: ServerContext","orgSlug","issue","event: Awaited<ReturnType<typeof apiService.getEventForIssue>>","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","issue: Awaited<ReturnType<typeof apiService.getIssue>>","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport {\n parseIssueParams,\n formatIssueOutput,\n} from \"../internal/tool-helpers/issue\";\nimport { enhanceNotFoundError } from \"../internal/tool-helpers/enhance-error\";\nimport { ApiNotFoundError } from \"../api-client\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Get detailed information about a specific Sentry issue by ID.\",\n \"\",\n \"🔍 USE THIS TOOL WHEN USERS:\",\n \"- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\",\n \"- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\",\n \"- Want details/stacktrace/analysis for a known issue\",\n \"- Provide a Sentry issue URL\",\n \"\",\n \"❌ DO NOT USE for:\",\n \"- General searching or listing issues (use search_issues)\",\n \"- Root cause analysis (use analyze_issue_with_seer)\",\n \"\",\n \"TRIGGER PATTERNS:\",\n \"- 'Explain ISSUE-123' → use get_issue_details\",\n \"- 'Tell me about PROJECT-456' → use get_issue_details\",\n \"- 'What happened in [issue URL]' → use get_issue_details\",\n \"\",\n \"<examples>\",\n \"### Explain specific issue\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n const eventId = params.eventId; // Capture eventId for type safety\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${eventId}`;\n }\n // For this call, we might want to provide context if it fails\n let event: Awaited<ReturnType<typeof apiService.getEventForIssue>>;\n try {\n event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId,\n });\n } catch (error) {\n // Optionally enhance 404 errors with parameter context\n if (error instanceof ApiNotFoundError) {\n throw enhanceNotFoundError(error, {\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId,\n });\n }\n throw error;\n }\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // For the main issue lookup, provide parameter context on 404\n let issue: Awaited<ReturnType<typeof apiService.getIssue>>;\n try {\n issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } catch (error) {\n if (error instanceof ApiNotFoundError) {\n throw enhanceNotFoundError(error, {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n });\n }\n throw error;\n }\n\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;;;AAmBA,gCAAe,WAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;GACvB,MAAM,UAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAI,eACR;AAIJ,UAAO,qB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M;GAChB,EAAC;EACH,SAAQ,OAAO,CAGf;AAED,SAAO,kBAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
@@ -1,16 +1,19 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_errors = require('./errors-BtJEw2Z-.cjs');
3
- const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
4
- const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
5
- const require_schema = require('./schema-BL3kwfOA.cjs');
6
- const require_issue_helpers = require('./issue-helpers-s5fKLwJZ.cjs');
7
- const require_formatting = require('./formatting-C180PVwd.cjs');
3
+ const require_define = require('./define-BfP4rFlE.cjs');
4
+ const require_errors$1 = require('./errors-CNTY5dED.cjs');
5
+ const require_api = require('./api-D9yO5I-i.cjs');
6
+ const require_schema = require('./schema-BUBkkdUa.cjs');
7
+ const require_issue_helpers = require('./issue-helpers-1qxzc7ww.cjs');
8
+ const require_formatting = require('./formatting-CqmsvuAY.cjs');
9
+ const require_enhance_error = require('./enhance-error-CAREhbDf.cjs');
8
10
  const zod = require_chunk.__toESM(require("zod"));
9
11
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
10
12
 
11
13
  //#region src/tools/get-issue-details.ts
12
- var get_issue_details_default = require_defineTool.defineTool({
14
+ var get_issue_details_default = require_define.defineTool({
13
15
  name: "get_issue_details",
16
+ requiredScopes: ["event:read"],
14
17
  description: [
15
18
  "Get detailed information about a specific Sentry issue by ID.",
16
19
  "",
@@ -54,21 +57,32 @@ var get_issue_details_default = require_defineTool.defineTool({
54
57
  issueUrl: require_schema.ParamIssueUrl.optional()
55
58
  },
56
59
  async handler(params, context) {
57
- const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
60
+ const apiService = require_api.apiServiceFromContext(context, { regionUrl: params.regionUrl });
58
61
  if (params.eventId) {
59
62
  const orgSlug$1 = params.organizationSlug;
63
+ const eventId = params.eventId;
60
64
  if (!orgSlug$1) throw new require_errors.UserInputError("`organizationSlug` is required when providing `eventId`");
61
65
  (0, __sentry_core.setTag)("organization.slug", orgSlug$1);
62
66
  const [issue$1] = await apiService.listIssues({
63
67
  organizationSlug: orgSlug$1,
64
- query: params.eventId
65
- });
66
- if (!issue$1) return `# Event Not Found\n\nNo issue found for Event ID: ${params.eventId}`;
67
- const event$1 = await apiService.getEventForIssue({
68
- organizationSlug: orgSlug$1,
69
- issueId: issue$1.shortId,
70
- eventId: params.eventId
68
+ query: eventId
71
69
  });
70
+ if (!issue$1) return `# Event Not Found\n\nNo issue found for Event ID: ${eventId}`;
71
+ let event$1;
72
+ try {
73
+ event$1 = await apiService.getEventForIssue({
74
+ organizationSlug: orgSlug$1,
75
+ issueId: issue$1.shortId,
76
+ eventId
77
+ });
78
+ } catch (error) {
79
+ if (error instanceof require_errors$1.ApiNotFoundError) throw require_enhance_error.enhanceNotFoundError(error, {
80
+ organizationSlug: orgSlug$1,
81
+ issueId: issue$1.shortId,
82
+ eventId
83
+ });
84
+ throw error;
85
+ }
72
86
  let autofixState$1;
73
87
  try {
74
88
  autofixState$1 = await apiService.getAutofixState({
@@ -92,13 +106,19 @@ var get_issue_details_default = require_defineTool.defineTool({
92
106
  issueUrl: params.issueUrl
93
107
  });
94
108
  (0, __sentry_core.setTag)("organization.slug", orgSlug);
95
- const issue = await require_api_utils.withApiErrorHandling(() => apiService.getIssue({
96
- organizationSlug: orgSlug,
97
- issueId: parsedIssueId
98
- }), {
99
- organizationSlug: orgSlug,
100
- issueId: parsedIssueId
101
- });
109
+ let issue;
110
+ try {
111
+ issue = await apiService.getIssue({
112
+ organizationSlug: orgSlug,
113
+ issueId: parsedIssueId
114
+ });
115
+ } catch (error) {
116
+ if (error instanceof require_errors$1.ApiNotFoundError) throw require_enhance_error.enhanceNotFoundError(error, {
117
+ organizationSlug: orgSlug,
118
+ issueId: parsedIssueId
119
+ });
120
+ throw error;
121
+ }
102
122
  const event = await apiService.getLatestEventForIssue({
103
123
  organizationSlug: orgSlug,
104
124
  issueId: issue.shortId
@@ -127,4 +147,4 @@ Object.defineProperty(exports, 'get_issue_details_default', {
127
147
  return get_issue_details_default;
128
148
  }
129
149
  });
130
- //# sourceMappingURL=get-issue-details-C96fhps3.cjs.map
150
+ //# sourceMappingURL=get-issue-details-BH75EnNk.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-issue-details-BH75EnNk.cjs","names":["context: ServerContext","orgSlug","UserInputError","issue","event: Awaited<ReturnType<typeof apiService.getEventForIssue>>","ApiNotFoundError","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","issue: Awaited<ReturnType<typeof apiService.getIssue>>","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport {\n parseIssueParams,\n formatIssueOutput,\n} from \"../internal/tool-helpers/issue\";\nimport { enhanceNotFoundError } from \"../internal/tool-helpers/enhance-error\";\nimport { ApiNotFoundError } from \"../api-client\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Get detailed information about a specific Sentry issue by ID.\",\n \"\",\n \"🔍 USE THIS TOOL WHEN USERS:\",\n \"- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\",\n \"- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\",\n \"- Want details/stacktrace/analysis for a known issue\",\n \"- Provide a Sentry issue URL\",\n \"\",\n \"❌ DO NOT USE for:\",\n \"- General searching or listing issues (use search_issues)\",\n \"- Root cause analysis (use analyze_issue_with_seer)\",\n \"\",\n \"TRIGGER PATTERNS:\",\n \"- 'Explain ISSUE-123' → use get_issue_details\",\n \"- 'Tell me about PROJECT-456' → use get_issue_details\",\n \"- 'What happened in [issue URL]' → use get_issue_details\",\n \"\",\n \"<examples>\",\n \"### Explain specific issue\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n const eventId = params.eventId; // Capture eventId for type safety\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${eventId}`;\n }\n // For this call, we might want to provide context if it fails\n let event: Awaited<ReturnType<typeof apiService.getEventForIssue>>;\n try {\n event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId,\n });\n } catch (error) {\n // Optionally enhance 404 errors with parameter context\n if (error instanceof ApiNotFoundError) {\n throw enhanceNotFoundError(error, {\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId,\n });\n }\n throw error;\n }\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // For the main issue lookup, provide parameter context on 404\n let issue: Awaited<ReturnType<typeof apiService.getIssue>>;\n try {\n issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } catch (error) {\n if (error instanceof ApiNotFoundError) {\n throw enhanceNotFoundError(error, {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n });\n }\n throw error;\n }\n\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;;;;AAmBA,gCAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,SAAS,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;GACvB,MAAM,UAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAIC,8BACR;AAIJ,6BAAO,qBAAqBD,UAAQ;GAEpC,MAAM,CAACE,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBF;IAClB,OAAO;GACR,EAAC;AACF,QAAKE,QACH,SAAQ,oDAAoD;GAG9D,IAAIC;AACJ,OAAI;AACF,cAAQ,MAAM,WAAW,iBAAiB;KACxC,kBAAkBH;KAClB,SAASE,QAAM;KACf;IACD,EAAC;GACH,SAAQ,OAAO;AAEd,QAAI,iBAAiBE,kCACnB,OAAM,2CAAqB,OAAO;KAChC,kBAAkBJ;KAClB,SAASE,QAAM;KACf;IACD,EAAC;AAEJ,UAAM;GACP;GAGD,IAAIG;AAGJ,OAAI;AACF,qBAAe,MAAM,WAAW,gBAAgB;KAC9C,kBAAkBL;KAClB,SAASE,QAAM;IAChB,EAAC;GACH,SA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