@sentry/mcp-server 0.19.0 → 0.21.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 (813) hide show
  1. package/README.md +55 -27
  2. package/dist/agent-BIhLK0w6.d.ts +32 -0
  3. package/dist/agent-BIhLK0w6.d.ts.map +1 -0
  4. package/dist/{agent-BA98dlM7.d.cts → agent-BePwIb80.d.cts} +2 -2
  5. package/dist/{agent-BA98dlM7.d.cts.map → agent-BePwIb80.d.cts.map} +1 -1
  6. package/dist/{agent-CbJ6lvV3.cjs → agent-Bgg6nor6.cjs} +6 -6
  7. package/dist/{agent-CbJ6lvV3.cjs.map → agent-Bgg6nor6.cjs.map} +1 -1
  8. package/dist/{agent-DhHtOQmP.d.ts → agent-CaZRIfIM.d.ts} +2 -2
  9. package/dist/{agent-DhHtOQmP.d.ts.map → agent-CaZRIfIM.d.ts.map} +1 -1
  10. package/dist/{agent-D9DV11tZ.d.ts → agent-CuX9zpZq.d.ts} +2 -2
  11. package/dist/{agent-D9DV11tZ.d.ts.map → agent-CuX9zpZq.d.ts.map} +1 -1
  12. package/dist/agent-CvjnNjVl.js +29 -0
  13. package/dist/agent-CvjnNjVl.js.map +1 -0
  14. package/dist/{agent-BL7Xae0U.js → agent-CzjC0wP8.js} +7 -7
  15. package/dist/{agent-BL7Xae0U.js.map → agent-CzjC0wP8.js.map} +1 -1
  16. package/dist/{agent-D7MuFRwE.cjs → agent-DOraNng-.cjs} +7 -7
  17. package/dist/{agent-D7MuFRwE.cjs.map → agent-DOraNng-.cjs.map} +1 -1
  18. package/dist/{agent-ADO0sPxf.d.cts → agent-WO6BpLta.d.cts} +2 -2
  19. package/dist/{agent-ADO0sPxf.d.cts.map → agent-WO6BpLta.d.cts.map} +1 -1
  20. package/dist/agent-_VPpnFmn.d.cts +32 -0
  21. package/dist/agent-_VPpnFmn.d.cts.map +1 -0
  22. package/dist/agent-pad5p0Xr.cjs +35 -0
  23. package/dist/agent-pad5p0Xr.cjs.map +1 -0
  24. package/dist/{agent-DXya3Bcy.js → agent-vFXI2vu1.js} +6 -6
  25. package/dist/{agent-DXya3Bcy.js.map → agent-vFXI2vu1.js.map} +1 -1
  26. package/dist/{analyze-issue-with-seer-CI8pvCnf.cjs → analyze-issue-with-seer-DHxMOCaf.cjs} +10 -9
  27. package/dist/analyze-issue-with-seer-DHxMOCaf.cjs.map +1 -0
  28. package/dist/{analyze-issue-with-seer-DvuKEcbu.js → analyze-issue-with-seer-iXBAIlQL.js} +10 -9
  29. package/dist/analyze-issue-with-seer-iXBAIlQL.js.map +1 -0
  30. package/dist/{api-CZD9zwQ-.cjs → api-BkWv0o1h.cjs} +5 -5
  31. package/dist/{api-CZD9zwQ-.cjs.map → api-BkWv0o1h.cjs.map} +1 -1
  32. package/dist/{api-CkLTFexT.js → api-Cozv5F92.js} +5 -5
  33. package/dist/{api-CkLTFexT.js.map → api-Cozv5F92.js.map} +1 -1
  34. package/dist/api-client/client.cjs +7 -6
  35. package/dist/api-client/client.d.cts +3 -3
  36. package/dist/api-client/client.d.ts +3 -3
  37. package/dist/api-client/client.js +7 -6
  38. package/dist/api-client/errors.cjs +1 -1
  39. package/dist/api-client/errors.d.ts +1 -1
  40. package/dist/api-client/errors.js +1 -1
  41. package/dist/api-client/index.cjs +9 -8
  42. package/dist/api-client/index.d.cts +3 -3
  43. package/dist/api-client/index.d.ts +5 -5
  44. package/dist/api-client/index.js +9 -8
  45. package/dist/api-client/schema.cjs +1 -1
  46. package/dist/api-client/schema.d.cts +1 -1
  47. package/dist/api-client/schema.d.ts +1 -1
  48. package/dist/api-client/schema.js +1 -1
  49. package/dist/api-client/types.cjs +1 -1
  50. package/dist/api-client/types.d.cts +2 -2
  51. package/dist/api-client/types.d.ts +2 -2
  52. package/dist/api-client/types.js +1 -1
  53. package/dist/callEmbeddedAgent-B24rpPzZ.d.cts +34 -0
  54. package/dist/callEmbeddedAgent-B24rpPzZ.d.cts.map +1 -0
  55. package/dist/{callEmbeddedAgent-B_BMEB_u.js → callEmbeddedAgent-B51_9ycP.js} +4 -3
  56. package/dist/callEmbeddedAgent-B51_9ycP.js.map +1 -0
  57. package/dist/callEmbeddedAgent-Dk48A2gz.d.ts +34 -0
  58. package/dist/callEmbeddedAgent-Dk48A2gz.d.ts.map +1 -0
  59. package/dist/{callEmbeddedAgent-BaGxBAdM.cjs → callEmbeddedAgent-xTPNMk8s.cjs} +4 -3
  60. package/dist/callEmbeddedAgent-xTPNMk8s.cjs.map +1 -0
  61. package/dist/cli/parse.cjs +1 -1
  62. package/dist/cli/parse.d.cts +3 -2
  63. package/dist/cli/parse.d.cts.map +1 -1
  64. package/dist/cli/parse.d.ts +3 -2
  65. package/dist/cli/parse.d.ts.map +1 -1
  66. package/dist/cli/parse.js +1 -1
  67. package/dist/cli/resolve.cjs +7 -5
  68. package/dist/cli/resolve.d.cts +5 -3
  69. package/dist/cli/resolve.d.cts.map +1 -1
  70. package/dist/cli/resolve.d.ts +5 -3
  71. package/dist/cli/resolve.d.ts.map +1 -1
  72. package/dist/cli/resolve.js +6 -5
  73. package/dist/cli/types.d.cts +3 -2
  74. package/dist/cli/types.d.ts +3 -2
  75. package/dist/cli/usage.cjs +1 -1
  76. package/dist/cli/usage.d.cts +3 -2
  77. package/dist/cli/usage.d.cts.map +1 -1
  78. package/dist/cli/usage.d.ts +3 -2
  79. package/dist/cli/usage.d.ts.map +1 -1
  80. package/dist/cli/usage.js +1 -1
  81. package/dist/{client-CWgvrDHH.js → client-BSlwJcxe.js} +8 -7
  82. package/dist/client-BSlwJcxe.js.map +1 -0
  83. package/dist/{client-VVhTv_ej.d.ts → client-D1Oq6Udl.d.ts} +7 -7
  84. package/dist/{client-VVhTv_ej.d.ts.map → client-D1Oq6Udl.d.ts.map} +1 -1
  85. package/dist/{client-C_fNdaX8.d.cts → client-DeGFkGAD.d.cts} +2 -2
  86. package/dist/{client-C_fNdaX8.d.cts.map → client-DeGFkGAD.d.cts.map} +1 -1
  87. package/dist/{client-C2TwbSm-.cjs → client-DlJ_23xq.cjs} +8 -7
  88. package/dist/client-DlJ_23xq.cjs.map +1 -0
  89. package/dist/{config-CllFlx5w.cjs → config-2JTOC4-d.cjs} +1 -1
  90. package/dist/{config-CllFlx5w.cjs.map → config-2JTOC4-d.cjs.map} +1 -1
  91. package/dist/{config-BMC-126h.js → config-BFaJp4hW.js} +1 -1
  92. package/dist/{config-BMC-126h.js.map → config-BFaJp4hW.js.map} +1 -1
  93. package/dist/config-BMLvvgGQ.cjs +37 -0
  94. package/dist/config-BMLvvgGQ.cjs.map +1 -0
  95. package/dist/{config-DbQP60oo.cjs → config-BacDkkdz.cjs} +1 -1
  96. package/dist/{config-DbQP60oo.cjs.map → config-BacDkkdz.cjs.map} +1 -1
  97. package/dist/config-Dh25cVhL.js +25 -0
  98. package/dist/config-Dh25cVhL.js.map +1 -0
  99. package/dist/{config-DlhHLHjD.js → config-jAHLRqMZ.js} +1 -1
  100. package/dist/{config-DlhHLHjD.js.map → config-jAHLRqMZ.js.map} +1 -1
  101. package/dist/{constants-DJrjLmh5.cjs → constants-CgLLujFn.cjs} +1 -1
  102. package/dist/{constants-DJrjLmh5.cjs.map → constants-CgLLujFn.cjs.map} +1 -1
  103. package/dist/{constants-BPM_OWt0.js → constants-D8axTonA.js} +1 -1
  104. package/dist/{constants-BPM_OWt0.js.map → constants-D8axTonA.js.map} +1 -1
  105. package/dist/constants.cjs +3 -1
  106. package/dist/constants.d.cts +4 -2
  107. package/dist/constants.d.cts.map +1 -1
  108. package/dist/constants.d.ts +4 -2
  109. package/dist/constants.d.ts.map +1 -1
  110. package/dist/constants.js +3 -2
  111. package/dist/{constraint-helpers-Bey-Pii6.js → constraint-helpers-CBddlAo8.js} +1 -1
  112. package/dist/{constraint-helpers-Bey-Pii6.js.map → constraint-helpers-CBddlAo8.js.map} +1 -1
  113. package/dist/{constraint-helpers-BqcuWXad.cjs → constraint-helpers-UEovDW_M.cjs} +1 -1
  114. package/dist/{constraint-helpers-BqcuWXad.cjs.map → constraint-helpers-UEovDW_M.cjs.map} +1 -1
  115. package/dist/{create-dsn-Bx2s8Bik.js → create-dsn-CzaN7V1p.js} +5 -4
  116. package/dist/create-dsn-CzaN7V1p.js.map +1 -0
  117. package/dist/{create-dsn-ggGt0lZf.cjs → create-dsn-erDvHRvv.cjs} +5 -4
  118. package/dist/create-dsn-erDvHRvv.cjs.map +1 -0
  119. package/dist/{create-project-CZBklXm8.cjs → create-project-B9dyzzyz.cjs} +6 -5
  120. package/dist/create-project-B9dyzzyz.cjs.map +1 -0
  121. package/dist/{create-project-C0pm6zUK.js → create-project-BvmA3Xm7.js} +6 -5
  122. package/dist/create-project-BvmA3Xm7.js.map +1 -0
  123. package/dist/{create-team-BQIns3VD.js → create-team-Bb0ajRQO.js} +5 -4
  124. package/dist/create-team-Bb0ajRQO.js.map +1 -0
  125. package/dist/{create-team-DmqKw2c1.cjs → create-team-CWC7s6TS.cjs} +5 -4
  126. package/dist/create-team-CWC7s6TS.cjs.map +1 -0
  127. package/dist/{dataset-fields-C0m-vwNH.cjs → dataset-fields-Bo9Nbtdn.cjs} +2 -2
  128. package/dist/{dataset-fields-C0m-vwNH.cjs.map → dataset-fields-Bo9Nbtdn.cjs.map} +1 -1
  129. package/dist/{dataset-fields-C1o_cZrM.js → dataset-fields-dZ43jEgF.js} +2 -2
  130. package/dist/{dataset-fields-C1o_cZrM.js.map → dataset-fields-dZ43jEgF.js.map} +1 -1
  131. package/dist/{define-BfP4rFlE.cjs → define-CLp6EtpZ.cjs} +1 -1
  132. package/dist/{define-BfP4rFlE.cjs.map → define-CLp6EtpZ.cjs.map} +1 -1
  133. package/dist/{define-2Lj8Lm1t.js → define-vA6uuVue.js} +1 -1
  134. package/dist/{define-2Lj8Lm1t.js.map → define-vA6uuVue.js.map} +1 -1
  135. package/dist/{enhance-error-D3QfZOhm.js → enhance-error-BULHg3Tl.js} +2 -2
  136. package/dist/{enhance-error-D3QfZOhm.js.map → enhance-error-BULHg3Tl.js.map} +1 -1
  137. package/dist/{enhance-error-DzXrKg85.cjs → enhance-error-vihkdCX5.cjs} +2 -2
  138. package/dist/{enhance-error-DzXrKg85.cjs.map → enhance-error-vihkdCX5.cjs.map} +1 -1
  139. package/dist/{error-handling-CxV2m_Dr.cjs → error-handling-19djRJdh.cjs} +4 -4
  140. package/dist/{error-handling-CxV2m_Dr.cjs.map → error-handling-19djRJdh.cjs.map} +1 -1
  141. package/dist/{error-handling-R4SJQ7n0.js → error-handling-CLnyY1TR.js} +4 -4
  142. package/dist/{error-handling-R4SJQ7n0.js.map → error-handling-CLnyY1TR.js.map} +1 -1
  143. package/dist/{errors-D_R568zP.js → errors-BXmNwD2K.js} +1 -1
  144. package/dist/{errors-D_R568zP.js.map → errors-BXmNwD2K.js.map} +1 -1
  145. package/dist/{errors-00Iz6Wmy.d.cts → errors-BYClKbv4.d.cts} +1 -1
  146. package/dist/{errors-00Iz6Wmy.d.cts.map → errors-BYClKbv4.d.cts.map} +1 -1
  147. package/dist/{errors-Bvit2_Qs.d.ts → errors-Cn4l-BlC.d.ts} +1 -1
  148. package/dist/{errors-Bvit2_Qs.d.ts.map → errors-Cn4l-BlC.d.ts.map} +1 -1
  149. package/dist/{errors-JbBt1G2l.d.ts → errors-CyAWBU2S.d.ts} +1 -1
  150. package/dist/{errors-JbBt1G2l.d.ts.map → errors-CyAWBU2S.d.ts.map} +1 -1
  151. package/dist/{errors-CQZ-QlOB.js → errors-DUEMWOr1.js} +1 -1
  152. package/dist/{errors-CQZ-QlOB.js.map → errors-DUEMWOr1.js.map} +1 -1
  153. package/dist/{errors-Bmqdg5Q6.cjs → errors-DWysOIMw.cjs} +1 -1
  154. package/dist/{errors-Bmqdg5Q6.cjs.map → errors-DWysOIMw.cjs.map} +1 -1
  155. package/dist/{errors-BtJEw2Z-.cjs → errors-umQzF_vW.cjs} +1 -1
  156. package/dist/{errors-BtJEw2Z-.cjs.map → errors-umQzF_vW.cjs.map} +1 -1
  157. package/dist/errors.cjs +1 -1
  158. package/dist/errors.d.cts +1 -1
  159. package/dist/errors.d.ts +1 -1
  160. package/dist/errors.js +1 -1
  161. package/dist/{fetch-utils-BetJhSli.js → fetch-utils-C6qSgZai.js} +1 -1
  162. package/dist/{fetch-utils-BetJhSli.js.map → fetch-utils-C6qSgZai.js.map} +1 -1
  163. package/dist/{fetch-utils-Cp3P-Ai3.cjs → fetch-utils-DRgOJp3e.cjs} +1 -1
  164. package/dist/{fetch-utils-Cp3P-Ai3.cjs.map → fetch-utils-DRgOJp3e.cjs.map} +1 -1
  165. package/dist/{find-dsns-BPN8wnUr.js → find-dsns-Bqafhzp5.js} +5 -4
  166. package/dist/find-dsns-Bqafhzp5.js.map +1 -0
  167. package/dist/{find-dsns-Ct6uFZMB.cjs → find-dsns-MMdOXURp.cjs} +5 -4
  168. package/dist/find-dsns-MMdOXURp.cjs.map +1 -0
  169. package/dist/{find-organizations-BGI_WW2q.cjs → find-organizations-D80maEbK.cjs} +6 -4
  170. package/dist/find-organizations-D80maEbK.cjs.map +1 -0
  171. package/dist/{find-organizations-DxH9SS3w.js → find-organizations-DV7Za1d0.js} +6 -4
  172. package/dist/find-organizations-DV7Za1d0.js.map +1 -0
  173. package/dist/{find-projects-DOMBBYAP.js → find-projects-Dcqw9Vyi.js} +7 -5
  174. package/dist/find-projects-Dcqw9Vyi.js.map +1 -0
  175. package/dist/{find-projects-B80qSPpP.cjs → find-projects-KrMwC18K.cjs} +7 -5
  176. package/dist/find-projects-KrMwC18K.cjs.map +1 -0
  177. package/dist/{find-releases-Cy-Q-Qje.cjs → find-releases-BPS53QTy.cjs} +5 -4
  178. package/dist/find-releases-BPS53QTy.cjs.map +1 -0
  179. package/dist/{find-releases-CfZRMBvh.js → find-releases-CHDuNU2z.js} +5 -4
  180. package/dist/find-releases-CHDuNU2z.js.map +1 -0
  181. package/dist/{find-teams-BuH2ddaL.cjs → find-teams-DFl7ESVe.cjs} +10 -5
  182. package/dist/find-teams-DFl7ESVe.cjs.map +1 -0
  183. package/dist/{find-teams-D5770X0I.js → find-teams-DPdnW18Q.js} +10 -5
  184. package/dist/find-teams-DPdnW18Q.js.map +1 -0
  185. package/dist/{formatters-B9XiCNZ_.js → formatters-BOJNlDKG.js} +2 -2
  186. package/dist/{formatters-B9XiCNZ_.js.map → formatters-BOJNlDKG.js.map} +1 -1
  187. package/dist/{formatters-CkbVfXEE.cjs → formatters-Bb4El3CZ.cjs} +2 -2
  188. package/dist/{formatters-CkbVfXEE.cjs.map → formatters-Bb4El3CZ.cjs.map} +1 -1
  189. package/dist/{formatters-DMlTJcHW.cjs → formatters-Bta1mFce.cjs} +2 -2
  190. package/dist/{formatters-DMlTJcHW.cjs.map → formatters-Bta1mFce.cjs.map} +1 -1
  191. package/dist/{formatters-MEWHZ83Y.js → formatters-C9MhdNDX.js} +2 -2
  192. package/dist/{formatters-MEWHZ83Y.js.map → formatters-C9MhdNDX.js.map} +1 -1
  193. package/dist/{formatting-Cu1Skk_Y.cjs → formatting-5u-ZFz8H.cjs} +2 -2
  194. package/dist/{formatting-Cu1Skk_Y.cjs.map → formatting-5u-ZFz8H.cjs.map} +1 -1
  195. package/dist/{formatting-DytLf-hH.js → formatting-BEgp4WO_.js} +2 -2
  196. package/dist/{formatting-DytLf-hH.js.map → formatting-BEgp4WO_.js.map} +1 -1
  197. package/dist/{formatting-FJne_W9i.d.cts → formatting-BWMTp6lM.d.cts} +4 -4
  198. package/dist/{formatting-FJne_W9i.d.cts.map → formatting-BWMTp6lM.d.cts.map} +1 -1
  199. package/dist/{formatting-EM76FrY3.cjs → formatting-C6hyL-Yv.cjs} +1 -1
  200. package/dist/{formatting-EM76FrY3.cjs.map → formatting-C6hyL-Yv.cjs.map} +1 -1
  201. package/dist/{formatting-ar_6QZRE.d.ts → formatting-CSkVn9rJ.d.ts} +4 -4
  202. package/dist/{formatting-ar_6QZRE.d.ts.map → formatting-CSkVn9rJ.d.ts.map} +1 -1
  203. package/dist/{formatting-CAQbf0su.js → formatting-DJFcfTJG.js} +1 -1
  204. package/dist/{formatting-CAQbf0su.js.map → formatting-DJFcfTJG.js.map} +1 -1
  205. package/dist/{get-doc-MxWNTA8R.cjs → get-doc-BWKx48zK.cjs} +8 -6
  206. package/dist/get-doc-BWKx48zK.cjs.map +1 -0
  207. package/dist/{get-doc-D9Xq7et9.js → get-doc-CGOI0C0A.js} +8 -6
  208. package/dist/get-doc-CGOI0C0A.js.map +1 -0
  209. package/dist/{get-event-attachment-B_BzSfcE.js → get-event-attachment-C5nefGca.js} +5 -4
  210. package/dist/get-event-attachment-C5nefGca.js.map +1 -0
  211. package/dist/{get-event-attachment-CrtS0QRV.cjs → get-event-attachment-CMPD67lQ.cjs} +5 -4
  212. package/dist/{get-event-attachment-B_BzSfcE.js.map → get-event-attachment-CMPD67lQ.cjs.map} +1 -1
  213. package/dist/{get-issue-details-DTQ-jXyu.cjs → get-issue-details-BxJ_lQN8.cjs} +25 -14
  214. package/dist/get-issue-details-BxJ_lQN8.cjs.map +1 -0
  215. package/dist/{get-issue-details-Bvw1Xi8I.js → get-issue-details-y1io-npG.js} +25 -14
  216. package/dist/get-issue-details-y1io-npG.js.map +1 -0
  217. package/dist/{get-trace-details-BL5_jvgs.js → get-trace-details-BOBNimN0.js} +6 -5
  218. package/dist/get-trace-details-BOBNimN0.js.map +1 -0
  219. package/dist/{get-trace-details-iDp34mms.cjs → get-trace-details-C9gJYPip.cjs} +6 -5
  220. package/dist/get-trace-details-C9gJYPip.cjs.map +1 -0
  221. package/dist/{handler-LaesAQaD.d.cts → handler-7ABtxyRG.d.cts} +2 -2
  222. package/dist/{handler-LaesAQaD.d.cts.map → handler-7ABtxyRG.d.cts.map} +1 -1
  223. package/dist/{handler-CdSvAOl6.d.ts → handler-BDPbWDvJ.d.ts} +2 -2
  224. package/dist/{handler-CdSvAOl6.d.ts.map → handler-BDPbWDvJ.d.ts.map} +1 -1
  225. package/dist/{handler-B7-KeBak.cjs → handler-CK_gY4IH.cjs} +12 -7
  226. package/dist/handler-CK_gY4IH.cjs.map +1 -0
  227. package/dist/{handler-uWae09YN.d.ts → handler-CU9ZxaP9.d.ts} +2 -2
  228. package/dist/{handler-uWae09YN.d.ts.map → handler-CU9ZxaP9.d.ts.map} +1 -1
  229. package/dist/handler-CXY05zhR.d.ts +11 -0
  230. package/dist/handler-CXY05zhR.d.ts.map +1 -0
  231. package/dist/handler-D6OGs2Ok.d.cts +11 -0
  232. package/dist/handler-D6OGs2Ok.d.cts.map +1 -0
  233. package/dist/{handler-nILS77E9.js → handler-DdgXX0YP.js} +13 -8
  234. package/dist/handler-DdgXX0YP.js.map +1 -0
  235. package/dist/{handler-B08ITQl8.js → handler-Dv8J_Uro.js} +12 -7
  236. package/dist/handler-Dv8J_Uro.js.map +1 -0
  237. package/dist/{handler-BcRR_2MX.d.cts → handler-FxM1t6Wf.d.cts} +2 -2
  238. package/dist/{handler-BcRR_2MX.d.cts.map → handler-FxM1t6Wf.d.cts.map} +1 -1
  239. package/dist/{handler-DIiYPQGL.cjs → handler-L0cEG-0-.cjs} +13 -8
  240. package/dist/handler-L0cEG-0-.cjs.map +1 -0
  241. package/dist/index.cjs +84 -71
  242. package/dist/index.cjs.map +1 -1
  243. package/dist/index.js +84 -71
  244. package/dist/index.js.map +1 -1
  245. package/dist/internal/agents/callEmbeddedAgent.cjs +3 -2
  246. package/dist/internal/agents/callEmbeddedAgent.d.cts +2 -33
  247. package/dist/internal/agents/callEmbeddedAgent.d.ts +2 -33
  248. package/dist/internal/agents/callEmbeddedAgent.js +3 -2
  249. package/dist/internal/agents/openai-provider.cjs +4 -3
  250. package/dist/internal/agents/openai-provider.d.cts +11 -13
  251. package/dist/internal/agents/openai-provider.d.cts.map +1 -1
  252. package/dist/internal/agents/openai-provider.d.ts +11 -13
  253. package/dist/internal/agents/openai-provider.d.ts.map +1 -1
  254. package/dist/internal/agents/openai-provider.js +3 -2
  255. package/dist/internal/agents/tools/dataset-fields.cjs +11 -10
  256. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  257. package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
  258. package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -1
  259. package/dist/internal/agents/tools/dataset-fields.js +11 -10
  260. package/dist/internal/agents/tools/otel-semantics.cjs +11 -10
  261. package/dist/internal/agents/tools/otel-semantics.d.cts +4 -4
  262. package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
  263. package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -1
  264. package/dist/internal/agents/tools/otel-semantics.js +11 -10
  265. package/dist/internal/agents/tools/utils.cjs +10 -9
  266. package/dist/internal/agents/tools/utils.d.cts +1 -1
  267. package/dist/internal/agents/tools/utils.d.ts +1 -1
  268. package/dist/internal/agents/tools/utils.js +10 -9
  269. package/dist/internal/agents/tools/whoami.cjs +11 -10
  270. package/dist/internal/agents/tools/whoami.d.cts +4 -4
  271. package/dist/internal/agents/tools/whoami.d.ts +9 -9
  272. package/dist/internal/agents/tools/whoami.d.ts.map +1 -1
  273. package/dist/internal/agents/tools/whoami.js +11 -10
  274. package/dist/internal/constraint-helpers.cjs +1 -1
  275. package/dist/internal/constraint-helpers.d.cts +3 -2
  276. package/dist/internal/constraint-helpers.d.cts.map +1 -1
  277. package/dist/internal/constraint-helpers.d.ts +3 -2
  278. package/dist/internal/constraint-helpers.d.ts.map +1 -1
  279. package/dist/internal/constraint-helpers.js +1 -1
  280. package/dist/internal/error-handling.cjs +10 -9
  281. package/dist/internal/error-handling.d.cts +4 -4
  282. package/dist/internal/error-handling.d.ts +6 -6
  283. package/dist/internal/error-handling.js +10 -9
  284. package/dist/internal/fetch-utils.cjs +1 -1
  285. package/dist/internal/fetch-utils.js +1 -1
  286. package/dist/internal/formatting.cjs +2 -2
  287. package/dist/internal/formatting.d.cts +4 -4
  288. package/dist/internal/formatting.d.ts +6 -6
  289. package/dist/internal/formatting.js +2 -2
  290. package/dist/internal/issue-helpers.cjs +2 -2
  291. package/dist/internal/issue-helpers.d.cts +1 -1
  292. package/dist/internal/issue-helpers.d.ts +1 -1
  293. package/dist/internal/issue-helpers.js +2 -2
  294. package/dist/internal/test-fixtures.d.cts +2 -2
  295. package/dist/internal/test-fixtures.d.ts +2 -2
  296. package/dist/internal/tool-helpers/api.cjs +13 -11
  297. package/dist/internal/tool-helpers/api.d.cts +6 -5
  298. package/dist/internal/tool-helpers/api.d.cts.map +1 -1
  299. package/dist/internal/tool-helpers/api.d.ts +8 -7
  300. package/dist/internal/tool-helpers/api.d.ts.map +1 -1
  301. package/dist/internal/tool-helpers/api.js +13 -11
  302. package/dist/internal/tool-helpers/define.cjs +1 -1
  303. package/dist/internal/tool-helpers/define.d.cts +4 -3
  304. package/dist/internal/tool-helpers/define.d.cts.map +1 -1
  305. package/dist/internal/tool-helpers/define.d.ts +4 -3
  306. package/dist/internal/tool-helpers/define.d.ts.map +1 -1
  307. package/dist/internal/tool-helpers/define.js +1 -1
  308. package/dist/internal/tool-helpers/enhance-error.cjs +10 -9
  309. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  310. package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
  311. package/dist/internal/tool-helpers/enhance-error.js +10 -9
  312. package/dist/internal/tool-helpers/formatting.cjs +1 -1
  313. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  314. package/dist/internal/tool-helpers/formatting.d.ts +5 -5
  315. package/dist/internal/tool-helpers/formatting.js +1 -1
  316. package/dist/internal/tool-helpers/issue.cjs +5 -5
  317. package/dist/internal/tool-helpers/issue.d.cts +5 -5
  318. package/dist/internal/tool-helpers/issue.d.ts +7 -7
  319. package/dist/internal/tool-helpers/issue.js +5 -5
  320. package/dist/internal/tool-helpers/seer.cjs +1 -1
  321. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  322. package/dist/internal/tool-helpers/seer.d.ts +5 -5
  323. package/dist/internal/tool-helpers/seer.js +1 -1
  324. package/dist/internal/tool-helpers/validate-region-url.cjs +4 -3
  325. package/dist/internal/tool-helpers/validate-region-url.js +4 -3
  326. package/dist/{issue-helpers-DbPTv_qC.cjs → issue-helpers-D-hBnXTk.cjs} +2 -2
  327. package/dist/{issue-helpers-DbPTv_qC.cjs.map → issue-helpers-D-hBnXTk.cjs.map} +1 -1
  328. package/dist/{issue-helpers-bECziPOG.d.ts → issue-helpers-D4NRLqkR.d.ts} +1 -1
  329. package/dist/{issue-helpers-bECziPOG.d.ts.map → issue-helpers-D4NRLqkR.d.ts.map} +1 -1
  330. package/dist/{issue-helpers-8Bubch8E.js → issue-helpers-DtCbXiRZ.js} +2 -2
  331. package/dist/{issue-helpers-8Bubch8E.js.map → issue-helpers-DtCbXiRZ.js.map} +1 -1
  332. package/dist/{issue-helpers-CD46ia7_.d.cts → issue-helpers-ILmSPsJZ.d.cts} +1 -1
  333. package/dist/{issue-helpers-CD46ia7_.d.cts.map → issue-helpers-ILmSPsJZ.d.cts.map} +1 -1
  334. package/dist/{logging-PY270KtN.d.ts → logging-BgTqJ4mI.d.ts} +1 -1
  335. package/dist/{logging-PY270KtN.d.ts.map → logging-BgTqJ4mI.d.ts.map} +1 -1
  336. package/dist/{logging-CDYnh7ho.d.cts → logging-BjKioF_x.d.cts} +1 -1
  337. package/dist/{logging-CDYnh7ho.d.cts.map → logging-BjKioF_x.d.cts.map} +1 -1
  338. package/dist/{logging-DqqDTe02.js → logging-ChQnSEmD.js} +1 -1
  339. package/dist/{logging-DqqDTe02.js.map → logging-ChQnSEmD.js.map} +1 -1
  340. package/dist/{logging-CkAJKyq2.cjs → logging-DrbQ8weU.cjs} +1 -1
  341. package/dist/{logging-CkAJKyq2.cjs.map → logging-DrbQ8weU.cjs.map} +1 -1
  342. package/dist/openai-provider-BpAFXVih.js +48 -0
  343. package/dist/openai-provider-BpAFXVih.js.map +1 -0
  344. package/dist/openai-provider-CdGMI-ue.cjs +60 -0
  345. package/dist/openai-provider-CdGMI-ue.cjs.map +1 -0
  346. package/dist/{otel-semantics-CArUzarp.js → otel-semantics-CWWWmiNy.js} +2 -2
  347. package/dist/{otel-semantics-CArUzarp.js.map → otel-semantics-CWWWmiNy.js.map} +1 -1
  348. package/dist/{otel-semantics-onvZv7i9.cjs → otel-semantics-CgF1PqFd.cjs} +2 -2
  349. package/dist/{otel-semantics-onvZv7i9.cjs.map → otel-semantics-CgF1PqFd.cjs.map} +1 -1
  350. package/dist/{parse-8lpnm_2Z.js → parse-BvHK_nys.js} +24 -3
  351. package/dist/parse-BvHK_nys.js.map +1 -0
  352. package/dist/{parse-shlhKlaL.cjs → parse-vgBG5mXu.cjs} +24 -3
  353. package/dist/parse-vgBG5mXu.cjs.map +1 -0
  354. package/dist/{permissions-D5kR-bZw.cjs → permissions-Berbg2vC.cjs} +3 -5
  355. package/dist/permissions-Berbg2vC.cjs.map +1 -0
  356. package/dist/{permissions-40d2hxK-.d.ts → permissions-CiIVEs4_.d.ts} +2 -2
  357. package/dist/permissions-CiIVEs4_.d.ts.map +1 -0
  358. package/dist/{permissions-B1meXGie.d.cts → permissions-Cm5e34n2.d.cts} +2 -2
  359. package/dist/permissions-Cm5e34n2.d.cts.map +1 -0
  360. package/dist/{permissions-C_xHmYV4.js → permissions-DvkVlUJ1.js} +3 -5
  361. package/dist/permissions-DvkVlUJ1.js.map +1 -0
  362. package/dist/permissions.cjs +1 -1
  363. package/dist/permissions.d.cts +1 -1
  364. package/dist/permissions.d.ts +1 -1
  365. package/dist/permissions.js +1 -1
  366. package/dist/resolve-CrYQ5aF_.cjs +107 -0
  367. package/dist/resolve-CrYQ5aF_.cjs.map +1 -0
  368. package/dist/resolve-DQ-6eLec.js +90 -0
  369. package/dist/resolve-DQ-6eLec.js.map +1 -0
  370. package/dist/{schema-DoWJbcHt.cjs → schema-CGiILhan.cjs} +1 -1
  371. package/dist/{schema-DoWJbcHt.cjs.map → schema-CGiILhan.cjs.map} +1 -1
  372. package/dist/{schema-rwexXWFL.js → schema-ChlpIaqA.js} +3 -3
  373. package/dist/{schema-rwexXWFL.js.map → schema-ChlpIaqA.js.map} +1 -1
  374. package/dist/{schema-Cv_VNAHz.cjs → schema-DUU4CA0j.cjs} +3 -3
  375. package/dist/{schema-Cv_VNAHz.cjs.map → schema-DUU4CA0j.cjs.map} +1 -1
  376. package/dist/{schema-CuB-30t5.js → schema-DkZXVCQJ.js} +1 -1
  377. package/dist/{schema-CuB-30t5.js.map → schema-DkZXVCQJ.js.map} +1 -1
  378. package/dist/{schema-0uEmsoCr.d.ts → schema-Y6BzAUmc.d.cts} +9 -9
  379. package/dist/{schema-xhCkX5uD.d.cts.map → schema-Y6BzAUmc.d.cts.map} +1 -1
  380. package/dist/{schema-xhCkX5uD.d.cts → schema-xBO557xH.d.ts} +433 -433
  381. package/dist/{schema-0uEmsoCr.d.ts.map → schema-xBO557xH.d.ts.map} +1 -1
  382. package/dist/schema.cjs +4 -3
  383. package/dist/schema.js +4 -3
  384. package/dist/{search-docs-CTT1Bt1U.cjs → search-docs-Da7cAz8X.cjs} +10 -26
  385. package/dist/search-docs-Da7cAz8X.cjs.map +1 -0
  386. package/dist/{search-docs-B9qNTw49.js → search-docs-YYBTOWY5.js} +10 -26
  387. package/dist/search-docs-YYBTOWY5.js.map +1 -0
  388. package/dist/{seer-CderEQ-X.js → seer-CSFgx4AP.js} +1 -1
  389. package/dist/{seer-CderEQ-X.js.map → seer-CSFgx4AP.js.map} +1 -1
  390. package/dist/{seer-B63P5CPi.cjs → seer-sA1asAZs.cjs} +1 -1
  391. package/dist/{seer-B63P5CPi.cjs.map → seer-sA1asAZs.cjs.map} +1 -1
  392. package/dist/{sentry-Da9wc8eP.cjs → sentry-3DC3Kob2.cjs} +1 -1
  393. package/dist/{sentry-Da9wc8eP.cjs.map → sentry-3DC3Kob2.cjs.map} +1 -1
  394. package/dist/{sentry-De4G2HDR.d.cts → sentry-CfePWwtE.d.cts} +1 -1
  395. package/dist/sentry-CfePWwtE.d.cts.map +1 -0
  396. package/dist/{sentry-BhTMff8f.js → sentry-Cfj4OGMQ.js} +1 -1
  397. package/dist/{sentry-BhTMff8f.js.map → sentry-Cfj4OGMQ.js.map} +1 -1
  398. package/dist/{sentry-DZNWcvcy.d.ts → sentry-DKiJwGZX.d.ts} +1 -1
  399. package/dist/sentry-DKiJwGZX.d.ts.map +1 -0
  400. package/dist/server-BaovxxmS.js +335 -0
  401. package/dist/server-BaovxxmS.js.map +1 -0
  402. package/dist/server-KMgWcsoE.cjs +353 -0
  403. package/dist/server-KMgWcsoE.cjs.map +1 -0
  404. package/dist/server.cjs +63 -62
  405. package/dist/server.d.cts +14 -9
  406. package/dist/server.d.cts.map +1 -1
  407. package/dist/server.d.ts +14 -9
  408. package/dist/server.d.ts.map +1 -1
  409. package/dist/server.js +63 -62
  410. package/dist/skillDefinitions.cjs +53 -0
  411. package/dist/skillDefinitions.cjs.map +1 -0
  412. package/dist/skillDefinitions.d.cts +13 -0
  413. package/dist/skillDefinitions.d.cts.map +1 -0
  414. package/dist/skillDefinitions.d.ts +13 -0
  415. package/dist/skillDefinitions.d.ts.map +1 -0
  416. package/dist/skillDefinitions.js +52 -0
  417. package/dist/skillDefinitions.js.map +1 -0
  418. package/dist/skills-BmFl7P6V.js +94 -0
  419. package/dist/skills-BmFl7P6V.js.map +1 -0
  420. package/dist/skills-COOuBrrA.cjs +148 -0
  421. package/dist/skills-COOuBrrA.cjs.map +1 -0
  422. package/dist/skills-HlAeBq_E.d.cts +33 -0
  423. package/dist/skills-HlAeBq_E.d.cts.map +1 -0
  424. package/dist/skills-g0WCenTA.d.ts +33 -0
  425. package/dist/skills-g0WCenTA.d.ts.map +1 -0
  426. package/dist/skills.cjs +11 -0
  427. package/dist/skills.d.cts +2 -0
  428. package/dist/skills.d.ts +2 -0
  429. package/dist/skills.js +3 -0
  430. package/dist/{slug-validation-58wajHeL.js → slug-validation-Bkteg65O.js} +1 -1
  431. package/dist/{slug-validation-58wajHeL.js.map → slug-validation-Bkteg65O.js.map} +1 -1
  432. package/dist/{slug-validation-DMk8Dyuh.cjs → slug-validation-ByuBdbX_.cjs} +1 -1
  433. package/dist/{slug-validation-DMk8Dyuh.cjs.map → slug-validation-ByuBdbX_.cjs.map} +1 -1
  434. package/dist/{stdio-Uv0oXx1a.js → stdio-DHijjrp9.js} +14 -16
  435. package/dist/stdio-DHijjrp9.js.map +1 -0
  436. package/dist/{stdio-D_myxOG-.cjs → stdio-pNGJyuki.cjs} +14 -16
  437. package/dist/stdio-pNGJyuki.cjs.map +1 -0
  438. package/dist/telem/index.cjs +2 -2
  439. package/dist/telem/index.d.cts +2 -2
  440. package/dist/telem/index.d.ts +2 -2
  441. package/dist/telem/index.js +2 -2
  442. package/dist/telem/logging.cjs +1 -1
  443. package/dist/telem/logging.d.cts +1 -1
  444. package/dist/telem/logging.d.ts +1 -1
  445. package/dist/telem/logging.js +1 -1
  446. package/dist/telem/sentry.cjs +1 -1
  447. package/dist/telem/sentry.d.cts +1 -1
  448. package/dist/telem/sentry.d.ts +1 -1
  449. package/dist/telem/sentry.js +1 -1
  450. package/dist/test-setup.cjs +1 -1
  451. package/dist/test-setup.d.cts +3 -2
  452. package/dist/test-setup.d.cts.map +1 -1
  453. package/dist/test-setup.d.ts +3 -2
  454. package/dist/test-setup.d.ts.map +1 -1
  455. package/dist/test-setup.js +1 -1
  456. package/dist/test-utils/context.d.cts +3 -2
  457. package/dist/test-utils/context.d.cts.map +1 -1
  458. package/dist/test-utils/context.d.ts +3 -2
  459. package/dist/test-utils/context.d.ts.map +1 -1
  460. package/dist/toolDefinitions.cjs +25 -3
  461. package/dist/toolDefinitions.cjs.map +1 -1
  462. package/dist/toolDefinitions.d.cts +1 -1
  463. package/dist/toolDefinitions.d.ts +1 -1
  464. package/dist/toolDefinitions.js +25 -3
  465. package/dist/toolDefinitions.js.map +1 -1
  466. package/dist/tools/analyze-issue-with-seer.cjs +22 -20
  467. package/dist/tools/analyze-issue-with-seer.d.cts +4 -3
  468. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
  469. package/dist/tools/analyze-issue-with-seer.d.ts +4 -3
  470. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
  471. package/dist/tools/analyze-issue-with-seer.js +22 -20
  472. package/dist/tools/create-dsn.cjs +17 -15
  473. package/dist/tools/create-dsn.d.cts +4 -3
  474. package/dist/tools/create-dsn.d.cts.map +1 -1
  475. package/dist/tools/create-dsn.d.ts +4 -3
  476. package/dist/tools/create-dsn.d.ts.map +1 -1
  477. package/dist/tools/create-dsn.js +17 -15
  478. package/dist/tools/create-project.cjs +17 -15
  479. package/dist/tools/create-project.d.cts +4 -3
  480. package/dist/tools/create-project.d.cts.map +1 -1
  481. package/dist/tools/create-project.d.ts +4 -3
  482. package/dist/tools/create-project.d.ts.map +1 -1
  483. package/dist/tools/create-project.js +17 -15
  484. package/dist/tools/create-team.cjs +17 -15
  485. package/dist/tools/create-team.d.cts +4 -3
  486. package/dist/tools/create-team.d.cts.map +1 -1
  487. package/dist/tools/create-team.d.ts +4 -3
  488. package/dist/tools/create-team.d.ts.map +1 -1
  489. package/dist/tools/create-team.js +17 -15
  490. package/dist/tools/find-dsns.cjs +17 -15
  491. package/dist/tools/find-dsns.d.cts +8 -7
  492. package/dist/tools/find-dsns.d.ts +8 -7
  493. package/dist/tools/find-dsns.js +17 -15
  494. package/dist/tools/find-organizations.cjs +17 -15
  495. package/dist/tools/find-organizations.d.cts +6 -5
  496. package/dist/tools/find-organizations.d.ts +6 -5
  497. package/dist/tools/find-organizations.js +17 -15
  498. package/dist/tools/find-projects.cjs +17 -15
  499. package/dist/tools/find-projects.d.cts +8 -7
  500. package/dist/tools/find-projects.d.ts +8 -7
  501. package/dist/tools/find-projects.js +17 -15
  502. package/dist/tools/find-releases.cjs +17 -15
  503. package/dist/tools/find-releases.d.cts +4 -3
  504. package/dist/tools/find-releases.d.cts.map +1 -1
  505. package/dist/tools/find-releases.d.ts +4 -3
  506. package/dist/tools/find-releases.d.ts.map +1 -1
  507. package/dist/tools/find-releases.js +17 -15
  508. package/dist/tools/find-teams.cjs +17 -15
  509. package/dist/tools/find-teams.d.cts +8 -7
  510. package/dist/tools/find-teams.d.ts +8 -7
  511. package/dist/tools/find-teams.js +17 -15
  512. package/dist/tools/get-doc.cjs +12 -11
  513. package/dist/tools/get-doc.d.cts +4 -3
  514. package/dist/tools/get-doc.d.cts.map +1 -1
  515. package/dist/tools/get-doc.d.ts +4 -3
  516. package/dist/tools/get-doc.d.ts.map +1 -1
  517. package/dist/tools/get-doc.js +12 -11
  518. package/dist/tools/get-event-attachment.cjs +17 -15
  519. package/dist/tools/get-event-attachment.d.cts +10 -9
  520. package/dist/tools/get-event-attachment.d.ts +10 -9
  521. package/dist/tools/get-event-attachment.js +17 -15
  522. package/dist/tools/get-issue-details.cjs +22 -20
  523. package/dist/tools/get-issue-details.d.cts +4 -3
  524. package/dist/tools/get-issue-details.d.cts.map +1 -1
  525. package/dist/tools/get-issue-details.d.ts +4 -3
  526. package/dist/tools/get-issue-details.d.ts.map +1 -1
  527. package/dist/tools/get-issue-details.js +22 -20
  528. package/dist/tools/get-trace-details.cjs +17 -15
  529. package/dist/tools/get-trace-details.d.cts +8 -7
  530. package/dist/tools/get-trace-details.d.ts +8 -7
  531. package/dist/tools/get-trace-details.js +17 -15
  532. package/dist/tools/index.cjs +64 -57
  533. package/dist/tools/index.d.cts +82 -77
  534. package/dist/tools/index.d.cts.map +1 -1
  535. package/dist/tools/index.d.ts +82 -77
  536. package/dist/tools/index.d.ts.map +1 -1
  537. package/dist/tools/index.js +63 -56
  538. package/dist/tools/search-docs.cjs +16 -14
  539. package/dist/tools/search-docs.d.cts +4 -3
  540. package/dist/tools/search-docs.d.cts.map +1 -1
  541. package/dist/tools/search-docs.d.ts +4 -3
  542. package/dist/tools/search-docs.d.ts.map +1 -1
  543. package/dist/tools/search-docs.js +16 -14
  544. package/dist/tools/search-events/agent.cjs +17 -16
  545. package/dist/tools/search-events/agent.d.cts +4 -4
  546. package/dist/tools/search-events/agent.d.ts +6 -6
  547. package/dist/tools/search-events/agent.js +17 -16
  548. package/dist/tools/search-events/config.cjs +1 -1
  549. package/dist/tools/search-events/config.js +1 -1
  550. package/dist/tools/search-events/formatters.cjs +12 -11
  551. package/dist/tools/search-events/formatters.d.cts +5 -5
  552. package/dist/tools/search-events/formatters.d.ts +7 -7
  553. package/dist/tools/search-events/formatters.js +12 -11
  554. package/dist/tools/search-events/handler.cjs +26 -24
  555. package/dist/tools/search-events/handler.d.cts +5 -4
  556. package/dist/tools/search-events/handler.d.ts +5 -4
  557. package/dist/tools/search-events/handler.js +26 -24
  558. package/dist/tools/search-events/index.cjs +27 -25
  559. package/dist/tools/search-events/index.d.cts +9 -8
  560. package/dist/tools/search-events/index.d.ts +11 -10
  561. package/dist/tools/search-events/index.js +27 -25
  562. package/dist/tools/search-events/utils.cjs +11 -10
  563. package/dist/tools/search-events/utils.d.cts +5 -5
  564. package/dist/tools/search-events/utils.d.ts +7 -7
  565. package/dist/tools/search-events/utils.js +11 -10
  566. package/dist/tools/search-issues/agent.cjs +16 -15
  567. package/dist/tools/search-issues/agent.d.cts +4 -4
  568. package/dist/tools/search-issues/agent.d.ts +6 -6
  569. package/dist/tools/search-issues/agent.js +16 -15
  570. package/dist/tools/search-issues/config.cjs +1 -1
  571. package/dist/tools/search-issues/config.js +1 -1
  572. package/dist/tools/search-issues/formatters.cjs +2 -2
  573. package/dist/tools/search-issues/formatters.d.cts +3 -3
  574. package/dist/tools/search-issues/formatters.d.ts +5 -5
  575. package/dist/tools/search-issues/formatters.js +2 -2
  576. package/dist/tools/search-issues/handler.cjs +25 -23
  577. package/dist/tools/search-issues/handler.d.cts +5 -4
  578. package/dist/tools/search-issues/handler.d.ts +5 -4
  579. package/dist/tools/search-issues/handler.js +25 -23
  580. package/dist/tools/search-issues/index.cjs +26 -24
  581. package/dist/tools/search-issues/index.d.cts +9 -8
  582. package/dist/tools/search-issues/index.d.ts +11 -10
  583. package/dist/tools/search-issues/index.js +26 -24
  584. package/dist/tools/types.d.cts +4 -3
  585. package/dist/tools/types.d.ts +4 -3
  586. package/dist/tools/update-issue.cjs +22 -20
  587. package/dist/tools/update-issue.d.cts +11 -10
  588. package/dist/tools/update-issue.d.ts +11 -10
  589. package/dist/tools/update-issue.js +22 -20
  590. package/dist/tools/update-project.cjs +17 -15
  591. package/dist/tools/update-project.d.cts +4 -3
  592. package/dist/tools/update-project.d.cts.map +1 -1
  593. package/dist/tools/update-project.d.ts +4 -3
  594. package/dist/tools/update-project.d.ts.map +1 -1
  595. package/dist/tools/update-project.js +17 -15
  596. package/dist/tools/use-sentry/agent.cjs +8 -0
  597. package/dist/tools/use-sentry/agent.d.cts +3 -0
  598. package/dist/tools/use-sentry/agent.d.ts +3 -0
  599. package/dist/tools/use-sentry/agent.js +8 -0
  600. package/dist/tools/use-sentry/config.cjs +4 -0
  601. package/dist/tools/use-sentry/config.d.cts +21 -0
  602. package/dist/tools/use-sentry/config.d.cts.map +1 -0
  603. package/dist/tools/use-sentry/config.d.ts +21 -0
  604. package/dist/tools/use-sentry/config.d.ts.map +1 -0
  605. package/dist/tools/use-sentry/config.js +3 -0
  606. package/dist/tools/use-sentry/handler.cjs +65 -0
  607. package/dist/tools/use-sentry/handler.d.cts +6 -0
  608. package/dist/tools/use-sentry/handler.d.ts +6 -0
  609. package/dist/tools/use-sentry/handler.js +65 -0
  610. package/dist/tools/use-sentry/index.cjs +67 -0
  611. package/dist/tools/use-sentry/index.d.cts +8 -0
  612. package/dist/tools/use-sentry/index.d.ts +8 -0
  613. package/dist/tools/use-sentry/index.js +65 -0
  614. package/dist/tools/use-sentry/tool-wrapper.cjs +63 -0
  615. package/dist/tools/use-sentry/tool-wrapper.cjs.map +1 -0
  616. package/dist/tools/use-sentry/tool-wrapper.d.cts +119 -0
  617. package/dist/tools/use-sentry/tool-wrapper.d.cts.map +1 -0
  618. package/dist/tools/use-sentry/tool-wrapper.d.ts +119 -0
  619. package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -0
  620. package/dist/tools/use-sentry/tool-wrapper.js +62 -0
  621. package/dist/tools/use-sentry/tool-wrapper.js.map +1 -0
  622. package/dist/tools/whoami.cjs +15 -13
  623. package/dist/tools/whoami.d.cts +4 -3
  624. package/dist/tools/whoami.d.ts +4 -3
  625. package/dist/tools/whoami.js +15 -13
  626. package/dist/transports/stdio.cjs +2 -3
  627. package/dist/transports/stdio.d.cts +13 -11
  628. package/dist/transports/stdio.d.cts.map +1 -1
  629. package/dist/transports/stdio.d.ts +13 -11
  630. package/dist/transports/stdio.d.ts.map +1 -1
  631. package/dist/transports/stdio.js +2 -3
  632. package/dist/{types-DkmHqy15.d.cts → types-B_3dsqbN.d.cts} +5 -3
  633. package/dist/types-B_3dsqbN.d.cts.map +1 -0
  634. package/dist/{types-B9_8hSal.d.cts → types-BeIzCAF1.d.cts} +13 -2
  635. package/dist/types-BeIzCAF1.d.cts.map +1 -0
  636. package/dist/{types-BU11bcu2.d.ts → types-C70IdmF4.d.ts} +13 -2
  637. package/dist/types-C70IdmF4.d.ts.map +1 -0
  638. package/dist/{types-CtnbvcEw.d.cts → types-CLI02LNZ.d.cts} +2 -2
  639. package/dist/{types-CtnbvcEw.d.cts.map → types-CLI02LNZ.d.cts.map} +1 -1
  640. package/dist/{types-Z4mR2AFK.d.cts → types-CokRupPo.d.cts} +4 -2
  641. package/dist/types-CokRupPo.d.cts.map +1 -0
  642. package/dist/{types-4O1B8U0e.d.ts → types-DA9C6AdF.d.ts} +2 -2
  643. package/dist/{types-4O1B8U0e.d.ts.map → types-DA9C6AdF.d.ts.map} +1 -1
  644. package/dist/{types-NVsIso1A.d.ts → types-OrkP7cEA.d.ts} +4 -2
  645. package/dist/types-OrkP7cEA.d.ts.map +1 -0
  646. package/dist/{types-CZUp4Xzk.d.ts → types-u52qwG59.d.ts} +5 -3
  647. package/dist/types-u52qwG59.d.ts.map +1 -0
  648. package/dist/types.cjs.map +1 -1
  649. package/dist/types.d.cts +3 -2
  650. package/dist/types.d.ts +3 -2
  651. package/dist/types.js.map +1 -1
  652. package/dist/{update-issue-eELBq_Uy.cjs → update-issue-ADk9Bl3r.cjs} +8 -7
  653. package/dist/update-issue-ADk9Bl3r.cjs.map +1 -0
  654. package/dist/{update-issue-CoAkoO66.js → update-issue-B9Y1Qftw.js} +8 -7
  655. package/dist/update-issue-B9Y1Qftw.js.map +1 -0
  656. package/dist/{update-project-DMRBdOZ5.cjs → update-project-CanU1PTp.cjs} +7 -6
  657. package/dist/update-project-CanU1PTp.cjs.map +1 -0
  658. package/dist/{update-project-CuZlyBPN.js → update-project-CoVoAlvN.js} +7 -6
  659. package/dist/update-project-CoVoAlvN.js.map +1 -0
  660. package/dist/{url-utils-Bn5EoScr.cjs → url-utils-CbcNJVYS.cjs} +1 -1
  661. package/dist/{url-utils-Bn5EoScr.cjs.map → url-utils-CbcNJVYS.cjs.map} +1 -1
  662. package/dist/{url-utils-d9bPTnOl.js → url-utils-CfKwo6s5.js} +1 -1
  663. package/dist/{url-utils-d9bPTnOl.js.map → url-utils-CfKwo6s5.js.map} +1 -1
  664. package/dist/{usage-CP6e39yF.cjs → usage-CMWaPhZv.cjs} +14 -5
  665. package/dist/usage-CMWaPhZv.cjs.map +1 -0
  666. package/dist/{usage-CihInDyq.js → usage-CpguKuwi.js} +14 -5
  667. package/dist/usage-CpguKuwi.js.map +1 -0
  668. package/dist/utils/slug-validation.cjs +1 -1
  669. package/dist/utils/slug-validation.js +1 -1
  670. package/dist/utils/url-utils.cjs +1 -1
  671. package/dist/utils/url-utils.js +1 -1
  672. package/dist/{utils-DUJcA3eH.cjs → utils-B4iBngk1.cjs} +4 -4
  673. package/dist/{utils-DUJcA3eH.cjs.map → utils-B4iBngk1.cjs.map} +1 -1
  674. package/dist/{utils-CwvZS30K.js → utils-CaNeCYCH.js} +2 -2
  675. package/dist/{utils-CwvZS30K.js.map → utils-CaNeCYCH.js.map} +1 -1
  676. package/dist/{utils-DpeFMEgH.d.ts → utils-Cj4NLgWf.d.ts} +6 -6
  677. package/dist/{utils-DpeFMEgH.d.ts.map → utils-Cj4NLgWf.d.ts.map} +1 -1
  678. package/dist/{utils-C5DuiZoe.cjs → utils-Cr15-6aW.cjs} +2 -2
  679. package/dist/{utils-C5DuiZoe.cjs.map → utils-Cr15-6aW.cjs.map} +1 -1
  680. package/dist/{utils-DKgPcA6i.d.cts → utils-Cv3R2iOS.d.cts} +6 -6
  681. package/dist/{utils-DKgPcA6i.d.cts.map → utils-Cv3R2iOS.d.cts.map} +1 -1
  682. package/dist/{utils-iC0Uutcf.js → utils-DOb7bs5_.js} +4 -4
  683. package/dist/{utils-iC0Uutcf.js.map → utils-DOb7bs5_.js.map} +1 -1
  684. package/dist/{utils-HNrRwq-a.d.cts → utils-DfYLsLqN.d.cts} +1 -1
  685. package/dist/{utils-HNrRwq-a.d.cts.map → utils-DfYLsLqN.d.cts.map} +1 -1
  686. package/dist/{utils-DKQuo7b2.d.ts → utils-_4aPBcrG.d.ts} +4 -4
  687. package/dist/utils-_4aPBcrG.d.ts.map +1 -0
  688. package/dist/{validate-region-url-CaR6XWB_.js → validate-region-url-Bdokgz65.js} +3 -3
  689. package/dist/{validate-region-url-CaR6XWB_.js.map → validate-region-url-Bdokgz65.js.map} +1 -1
  690. package/dist/{validate-region-url-dzz6t54w.cjs → validate-region-url-BvT-IgKg.cjs} +3 -3
  691. package/dist/{validate-region-url-dzz6t54w.cjs.map → validate-region-url-BvT-IgKg.cjs.map} +1 -1
  692. package/dist/version-DZBMB6XD.cjs +19 -0
  693. package/dist/version-DZBMB6XD.cjs.map +1 -0
  694. package/dist/version-HXEfly4U.js +7 -0
  695. package/dist/version-HXEfly4U.js.map +1 -0
  696. package/dist/version.cjs +3 -2
  697. package/dist/version.d.cts +2 -1
  698. package/dist/version.d.cts.map +1 -1
  699. package/dist/version.d.ts +2 -1
  700. package/dist/version.d.ts.map +1 -1
  701. package/dist/version.js +2 -2
  702. package/dist/{whoami-D8-XCgVJ.js → whoami-BsX-LoXG.js} +2 -2
  703. package/dist/{whoami-D8-XCgVJ.js.map → whoami-BsX-LoXG.js.map} +1 -1
  704. package/dist/{whoami-DBlwuDZf.cjs → whoami-CZ02abcM.cjs} +5 -3
  705. package/dist/whoami-CZ02abcM.cjs.map +1 -0
  706. package/dist/{whoami-Bh_uOPqO.js → whoami-Cbo082cU.js} +5 -3
  707. package/dist/whoami-Cbo082cU.js.map +1 -0
  708. package/dist/{whoami-DBSqcCGl.cjs → whoami-DcSsmS02.cjs} +2 -2
  709. package/dist/{whoami-DBSqcCGl.cjs.map → whoami-DcSsmS02.cjs.map} +1 -1
  710. package/package.json +23 -8
  711. package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +0 -1
  712. package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +0 -1
  713. package/dist/callEmbeddedAgent-B_BMEB_u.js.map +0 -1
  714. package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +0 -1
  715. package/dist/client-C2TwbSm-.cjs.map +0 -1
  716. package/dist/client-CWgvrDHH.js.map +0 -1
  717. package/dist/context-storage-B8onP4Pw.cjs +0 -69
  718. package/dist/context-storage-B8onP4Pw.cjs.map +0 -1
  719. package/dist/context-storage-BRwdNVKx.js +0 -51
  720. package/dist/context-storage-BRwdNVKx.js.map +0 -1
  721. package/dist/create-dsn-Bx2s8Bik.js.map +0 -1
  722. package/dist/create-dsn-ggGt0lZf.cjs.map +0 -1
  723. package/dist/create-project-C0pm6zUK.js.map +0 -1
  724. package/dist/create-project-CZBklXm8.cjs.map +0 -1
  725. package/dist/create-team-BQIns3VD.js.map +0 -1
  726. package/dist/create-team-DmqKw2c1.cjs.map +0 -1
  727. package/dist/find-dsns-BPN8wnUr.js.map +0 -1
  728. package/dist/find-dsns-Ct6uFZMB.cjs.map +0 -1
  729. package/dist/find-organizations-BGI_WW2q.cjs.map +0 -1
  730. package/dist/find-organizations-DxH9SS3w.js.map +0 -1
  731. package/dist/find-projects-B80qSPpP.cjs.map +0 -1
  732. package/dist/find-projects-DOMBBYAP.js.map +0 -1
  733. package/dist/find-releases-CfZRMBvh.js.map +0 -1
  734. package/dist/find-releases-Cy-Q-Qje.cjs.map +0 -1
  735. package/dist/find-teams-BuH2ddaL.cjs.map +0 -1
  736. package/dist/find-teams-D5770X0I.js.map +0 -1
  737. package/dist/get-doc-D9Xq7et9.js.map +0 -1
  738. package/dist/get-doc-MxWNTA8R.cjs.map +0 -1
  739. package/dist/get-event-attachment-CrtS0QRV.cjs.map +0 -1
  740. package/dist/get-issue-details-Bvw1Xi8I.js.map +0 -1
  741. package/dist/get-issue-details-DTQ-jXyu.cjs.map +0 -1
  742. package/dist/get-trace-details-BL5_jvgs.js.map +0 -1
  743. package/dist/get-trace-details-iDp34mms.cjs.map +0 -1
  744. package/dist/handler-B08ITQl8.js.map +0 -1
  745. package/dist/handler-B7-KeBak.cjs.map +0 -1
  746. package/dist/handler-DIiYPQGL.cjs.map +0 -1
  747. package/dist/handler-nILS77E9.js.map +0 -1
  748. package/dist/internal/agents/callEmbeddedAgent.d.cts.map +0 -1
  749. package/dist/internal/agents/callEmbeddedAgent.d.ts.map +0 -1
  750. package/dist/internal/context-storage.cjs +0 -5
  751. package/dist/internal/context-storage.d.cts +0 -48
  752. package/dist/internal/context-storage.d.cts.map +0 -1
  753. package/dist/internal/context-storage.d.ts +0 -48
  754. package/dist/internal/context-storage.d.ts.map +0 -1
  755. package/dist/internal/context-storage.js +0 -3
  756. package/dist/openai-provider-BELCfis6.js +0 -29
  757. package/dist/openai-provider-BELCfis6.js.map +0 -1
  758. package/dist/openai-provider-CRxXeC9G.cjs +0 -41
  759. package/dist/openai-provider-CRxXeC9G.cjs.map +0 -1
  760. package/dist/parse-8lpnm_2Z.js.map +0 -1
  761. package/dist/parse-shlhKlaL.cjs.map +0 -1
  762. package/dist/permissions-40d2hxK-.d.ts.map +0 -1
  763. package/dist/permissions-B1meXGie.d.cts.map +0 -1
  764. package/dist/permissions-C_xHmYV4.js.map +0 -1
  765. package/dist/permissions-D5kR-bZw.cjs.map +0 -1
  766. package/dist/resolve-CBipUzux.cjs +0 -65
  767. package/dist/resolve-CBipUzux.cjs.map +0 -1
  768. package/dist/resolve-CZduTbDq.js +0 -54
  769. package/dist/resolve-CZduTbDq.js.map +0 -1
  770. package/dist/search-docs-B9qNTw49.js.map +0 -1
  771. package/dist/search-docs-CTT1Bt1U.cjs.map +0 -1
  772. package/dist/sentry-DZNWcvcy.d.ts.map +0 -1
  773. package/dist/sentry-De4G2HDR.d.cts.map +0 -1
  774. package/dist/server-B0jJJdAd.js +0 -157
  775. package/dist/server-B0jJJdAd.js.map +0 -1
  776. package/dist/server-Bk2YVj60.cjs +0 -163
  777. package/dist/server-Bk2YVj60.cjs.map +0 -1
  778. package/dist/stdio-D_myxOG-.cjs.map +0 -1
  779. package/dist/stdio-Uv0oXx1a.js.map +0 -1
  780. package/dist/tools-DcCN34Xz.cjs +0 -51
  781. package/dist/tools-DcCN34Xz.cjs.map +0 -1
  782. package/dist/tools-Du5wLts3.js +0 -46
  783. package/dist/tools-Du5wLts3.js.map +0 -1
  784. package/dist/types-B9_8hSal.d.cts.map +0 -1
  785. package/dist/types-BU11bcu2.d.ts.map +0 -1
  786. package/dist/types-CZUp4Xzk.d.ts.map +0 -1
  787. package/dist/types-DkmHqy15.d.cts.map +0 -1
  788. package/dist/types-NVsIso1A.d.ts.map +0 -1
  789. package/dist/types-Z4mR2AFK.d.cts.map +0 -1
  790. package/dist/update-issue-CoAkoO66.js.map +0 -1
  791. package/dist/update-issue-eELBq_Uy.cjs.map +0 -1
  792. package/dist/update-project-CuZlyBPN.js.map +0 -1
  793. package/dist/update-project-DMRBdOZ5.cjs.map +0 -1
  794. package/dist/usage-CP6e39yF.cjs.map +0 -1
  795. package/dist/usage-CihInDyq.js.map +0 -1
  796. package/dist/utils-DKQuo7b2.d.ts.map +0 -1
  797. package/dist/version-6dHij-Gk.js +0 -6
  798. package/dist/version-6dHij-Gk.js.map +0 -1
  799. package/dist/version-Cq6vA9Kc.cjs +0 -12
  800. package/dist/version-Cq6vA9Kc.cjs.map +0 -1
  801. package/dist/whoami-Bh_uOPqO.js.map +0 -1
  802. package/dist/whoami-DBlwuDZf.cjs.map +0 -1
  803. /package/dist/{api-client-BR5WolLe.js → api-client-BGgaBFuD.cjs} +0 -0
  804. /package/dist/{api-client-BsHWi0-I.cjs → api-client-CSLxiNP9.js} +0 -0
  805. /package/dist/{index-DZJ9s9rm.d.ts → index-NfFbnYt3.d.ts} +0 -0
  806. /package/dist/{issue-B7cgiWKp.cjs → issue-1C6txnk3.js} +0 -0
  807. /package/dist/{issue-BLm6gohl.js → issue-ChNk4cuO.cjs} +0 -0
  808. /package/dist/{search-events-Bc2a_R3A.cjs → search-events-B-MXKSB_.js} +0 -0
  809. /package/dist/{search-events-Bo5bAsOv.js → search-events-BrEw3wC-.cjs} +0 -0
  810. /package/dist/{search-issues-AaiYCZ6J.cjs → search-issues-C7Zs6rFB.cjs} +0 -0
  811. /package/dist/{search-issues-DVHuKDdB.js → search-issues-DUSkomYp.js} +0 -0
  812. /package/dist/{types-Bx1EKe0v.js → types-D670-rDz.js} +0 -0
  813. /package/dist/{types-D10T4PdD.cjs → types-n3wuZu5X.cjs} +0 -0
@@ -40,4 +40,4 @@ declare function agentTool<TParameters, TResult>(config: {
40
40
  //# sourceMappingURL=utils.d.ts.map
41
41
  //#endregion
42
42
  export { AgentToolResponse, agentTool };
43
- //# sourceMappingURL=utils-HNrRwq-a.d.cts.map
43
+ //# sourceMappingURL=utils-DfYLsLqN.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-HNrRwq-a.d.cts","names":[],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":[],"mappings":";;;;KAkBY;;WAED;AAFX,CAAA;AAqFA;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB;;cAEF,CAAA,CAAE,UAAU;oBACN,gBAAgB,QAAQ;IAC3C,KAAA,CAAA,KAAA,CAAA,CAAA,QAAA,aAAA,CAAA,CAAA,YAAA,cAAA,kBAAA,QAAA;kBAAA"}
1
+ {"version":3,"file":"utils-DfYLsLqN.d.cts","names":[],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":[],"mappings":";;;;KAkBY;;WAED;AAFX,CAAA;AAqFA;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB;;cAEF,CAAA,CAAE,UAAU;oBACN,gBAAgB,QAAQ;IAC3C,KAAA,CAAA,KAAA,CAAA,CAAA,QAAA,aAAA,CAAA,CAAA,YAAA,cAAA,kBAAA,QAAA;kBAAA"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import * as ai260 from "ai";
2
+ import * as ai63 from "ai";
3
3
 
4
4
  //#region src/internal/agents/tools/utils.d.ts
5
5
  type AgentToolResponse<T = unknown> = {
@@ -34,10 +34,10 @@ declare function agentTool<TParameters, TResult>(config: {
34
34
  description: string;
35
35
  parameters: z.ZodSchema<TParameters>;
36
36
  execute: (params: TParameters) => Promise<TResult>;
37
- }): ai260.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
- execute: (args: TParameters, options: ai260.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
37
+ }): ai63.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
+ execute: (args: TParameters, options: ai63.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
39
39
  };
40
40
  //# sourceMappingURL=utils.d.ts.map
41
41
  //#endregion
42
42
  export { AgentToolResponse, agentTool };
43
- //# sourceMappingURL=utils-DKQuo7b2.d.ts.map
43
+ //# sourceMappingURL=utils-_4aPBcrG.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-_4aPBcrG.d.ts","names":[],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":[],"mappings":";;;;KAkBY;;WAED;AAFX,CAAA;AAqFA;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB;;cAEF,CAAA,CAAE,UAAU;oBACN,gBAAgB,QAAQ;IAC3C,IAAA,CAAA,KAAA,CAAA,CAAA,QAAA,aAAA,CAAA,CAAA,YAAA,cAAA,kBAAA,QAAA;kBAAA"}
@@ -1,5 +1,5 @@
1
- import { SENTRY_ALLOWED_REGION_DOMAINS } from "./constants-BPM_OWt0.js";
2
- import { UserInputError } from "./errors-D_R568zP.js";
1
+ import { SENTRY_ALLOWED_REGION_DOMAINS } from "./constants-D8axTonA.js";
2
+ import { UserInputError } from "./errors-BXmNwD2K.js";
3
3
 
4
4
  //#region src/internal/tool-helpers/validate-region-url.ts
5
5
  /**
@@ -34,4 +34,4 @@ function validateRegionUrl(regionUrl, baseHost) {
34
34
 
35
35
  //#endregion
36
36
  export { validateRegionUrl };
37
- //# sourceMappingURL=validate-region-url-CaR6XWB_.js.map
37
+ //# sourceMappingURL=validate-region-url-Bdokgz65.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-region-url-CaR6XWB_.js","names":["regionUrl: string","baseHost: string","parsedUrl: URL"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAI,gBACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAI,gBACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,8BAA8B,IAAI,WAAW,CAChD,OAAM,IAAI,gBACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAK,8BAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
1
+ {"version":3,"file":"validate-region-url-Bdokgz65.js","names":["regionUrl: string","baseHost: string","parsedUrl: URL"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAI,gBACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAI,gBACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,8BAA8B,IAAI,WAAW,CAChD,OAAM,IAAI,gBACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAK,8BAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
@@ -1,5 +1,5 @@
1
- const require_constants = require('./constants-DJrjLmh5.cjs');
2
- const require_errors = require('./errors-BtJEw2Z-.cjs');
1
+ const require_constants = require('./constants-CgLLujFn.cjs');
2
+ const require_errors = require('./errors-umQzF_vW.cjs');
3
3
 
4
4
  //#region src/internal/tool-helpers/validate-region-url.ts
5
5
  /**
@@ -39,4 +39,4 @@ Object.defineProperty(exports, 'validateRegionUrl', {
39
39
  return validateRegionUrl;
40
40
  }
41
41
  });
42
- //# sourceMappingURL=validate-region-url-dzz6t54w.cjs.map
42
+ //# sourceMappingURL=validate-region-url-BvT-IgKg.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-region-url-dzz6t54w.cjs","names":["regionUrl: string","baseHost: string","parsedUrl: URL","UserInputError","SENTRY_ALLOWED_REGION_DOMAINS"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAIC,+BACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAIA,+BACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,gDAA8B,IAAI,WAAW,CAChD,OAAM,IAAIA,+BACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAKC,gDAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
1
+ {"version":3,"file":"validate-region-url-BvT-IgKg.cjs","names":["regionUrl: string","baseHost: string","parsedUrl: URL","UserInputError","SENTRY_ALLOWED_REGION_DOMAINS"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAIC,+BACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAIA,+BACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,gDAA8B,IAAI,WAAW,CAChD,OAAM,IAAIA,+BACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAKC,gDAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
@@ -0,0 +1,19 @@
1
+
2
+ //#region src/version.ts
3
+ const LIB_VERSION = typeof process !== "undefined" && "0.21.0" || "0.0.0";
4
+ const USER_AGENT = `sentry-mcp/${LIB_VERSION} (https://mcp.sentry.dev)`;
5
+
6
+ //#endregion
7
+ Object.defineProperty(exports, 'LIB_VERSION', {
8
+ enumerable: true,
9
+ get: function () {
10
+ return LIB_VERSION;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, 'USER_AGENT', {
14
+ enumerable: true,
15
+ get: function () {
16
+ return USER_AGENT;
17
+ }
18
+ });
19
+ //# sourceMappingURL=version-DZBMB6XD.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-DZBMB6XD.cjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n\nexport const USER_AGENT = `sentry-mcp/${LIB_VERSION} (https://mcp.sentry.dev)`;\n"],"mappings":";;AAAA,MAAa,qBACH,YAAY,2BACpB;AAEF,MAAa,cAAc,aAAa,YAAY"}
@@ -0,0 +1,7 @@
1
+ //#region src/version.ts
2
+ const LIB_VERSION = typeof process !== "undefined" && "0.21.0" || "0.0.0";
3
+ const USER_AGENT = `sentry-mcp/${LIB_VERSION} (https://mcp.sentry.dev)`;
4
+
5
+ //#endregion
6
+ export { LIB_VERSION, USER_AGENT };
7
+ //# sourceMappingURL=version-HXEfly4U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-HXEfly4U.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n\nexport const USER_AGENT = `sentry-mcp/${LIB_VERSION} (https://mcp.sentry.dev)`;\n"],"mappings":";AAAA,MAAa,qBACH,YAAY,2BACpB;AAEF,MAAa,cAAc,aAAa,YAAY"}
package/dist/version.cjs CHANGED
@@ -1,3 +1,4 @@
1
- const require_version = require('./version-Cq6vA9Kc.cjs');
1
+ const require_version = require('./version-DZBMB6XD.cjs');
2
2
 
3
- exports.LIB_VERSION = require_version.LIB_VERSION;
3
+ exports.LIB_VERSION = require_version.LIB_VERSION;
4
+ exports.USER_AGENT = require_version.USER_AGENT;
@@ -1,7 +1,8 @@
1
1
  //#region src/version.d.ts
2
2
  declare const LIB_VERSION: string;
3
+ declare const USER_AGENT: string;
3
4
  //# sourceMappingURL=version.d.ts.map
4
5
 
5
6
  //#endregion
6
- export { LIB_VERSION };
7
+ export { LIB_VERSION, USER_AGENT };
7
8
  //# sourceMappingURL=version.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.cts","names":[],"sources":["../src/version.ts"],"sourcesContent":[],"mappings":";cAAa;AAAb"}
1
+ {"version":3,"file":"version.d.cts","names":[],"sources":["../src/version.ts"],"sourcesContent":[],"mappings":";cAAa;AAAA,cAIA,UAFJ,EAAA,MAAA;AAET"}
package/dist/version.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  //#region src/version.d.ts
2
2
  declare const LIB_VERSION: string;
3
+ declare const USER_AGENT: string;
3
4
  //# sourceMappingURL=version.d.ts.map
4
5
 
5
6
  //#endregion
6
- export { LIB_VERSION };
7
+ export { LIB_VERSION, USER_AGENT };
7
8
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","names":[],"sources":["../src/version.ts"],"sourcesContent":[],"mappings":";cAAa;AAAb"}
1
+ {"version":3,"file":"version.d.ts","names":[],"sources":["../src/version.ts"],"sourcesContent":[],"mappings":";cAAa;AAAA,cAIA,UAFJ,EAAA,MAAA;AAET"}
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- import { LIB_VERSION } from "./version-6dHij-Gk.js";
1
+ import { LIB_VERSION, USER_AGENT } from "./version-HXEfly4U.js";
2
2
 
3
- export { LIB_VERSION };
3
+ export { LIB_VERSION, USER_AGENT };
@@ -1,4 +1,4 @@
1
- import { agentTool } from "./utils-iC0Uutcf.js";
1
+ import { agentTool } from "./utils-DOb7bs5_.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/internal/agents/tools/whoami.ts
@@ -31,4 +31,4 @@ function createWhoamiTool(options) {
31
31
 
32
32
  //#endregion
33
33
  export { createWhoamiTool, getCurrentUser };
34
- //# sourceMappingURL=whoami-D8-XCgVJ.js.map
34
+ //# sourceMappingURL=whoami-BsX-LoXG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-D8-XCgVJ.js","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,UAAU;EACf,aAAa;EACb,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
1
+ {"version":3,"file":"whoami-BsX-LoXG.js","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,UAAU;EACf,aAAa;EACb,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
@@ -1,5 +1,6 @@
1
- const require_define = require('./define-BfP4rFlE.cjs');
2
- const require_api = require('./api-CZD9zwQ-.cjs');
1
+ const require_skills = require('./skills-COOuBrrA.cjs');
2
+ const require_define = require('./define-CLp6EtpZ.cjs');
3
+ const require_api = require('./api-BkWv0o1h.cjs');
3
4
 
4
5
  //#region src/tools/whoami.ts
5
6
  var whoami_default = require_define.defineTool({
@@ -11,6 +12,7 @@ var whoami_default = require_define.defineTool({
11
12
  "- Get the user's name and email address."
12
13
  ].join("\n"),
13
14
  inputSchema: {},
15
+ requiredSkills: require_skills.ALL_SKILLS,
14
16
  requiredScopes: [],
15
17
  annotations: {
16
18
  readOnlyHint: true,
@@ -39,4 +41,4 @@ Object.defineProperty(exports, 'whoami_default', {
39
41
  return whoami_default;
40
42
  }
41
43
  });
42
- //# sourceMappingURL=whoami-DBlwuDZf.cjs.map
44
+ //# sourceMappingURL=whoami-CZ02abcM.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-CZ02abcM.cjs","names":["ALL_SKILLS","context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport { ALL_SKILLS } from \"../skills\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n requiredSkills: ALL_SKILLS, // Foundational tool - available to all skills\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;AAKA,qBAAe,0BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgBA;CAChB,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAG5C,MAAM,aAAa,kCAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
@@ -1,5 +1,6 @@
1
- import { defineTool } from "./define-2Lj8Lm1t.js";
2
- import { apiServiceFromContext } from "./api-CkLTFexT.js";
1
+ import { ALL_SKILLS } from "./skills-BmFl7P6V.js";
2
+ import { defineTool } from "./define-vA6uuVue.js";
3
+ import { apiServiceFromContext } from "./api-Cozv5F92.js";
3
4
 
4
5
  //#region src/tools/whoami.ts
5
6
  var whoami_default = defineTool({
@@ -11,6 +12,7 @@ var whoami_default = defineTool({
11
12
  "- Get the user's name and email address."
12
13
  ].join("\n"),
13
14
  inputSchema: {},
15
+ requiredSkills: ALL_SKILLS,
14
16
  requiredScopes: [],
15
17
  annotations: {
16
18
  readOnlyHint: true,
@@ -34,4 +36,4 @@ var whoami_default = defineTool({
34
36
 
35
37
  //#endregion
36
38
  export { whoami_default };
37
- //# sourceMappingURL=whoami-Bh_uOPqO.js.map
39
+ //# sourceMappingURL=whoami-Cbo082cU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-Cbo082cU.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport { ALL_SKILLS } from \"../skills\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n requiredSkills: ALL_SKILLS, // Foundational tool - available to all skills\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;AAKA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgB;CAChB,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_utils = require('./utils-DUJcA3eH.cjs');
2
+ const require_utils = require('./utils-B4iBngk1.cjs');
3
3
  const zod = require_chunk.__toESM(require("zod"));
4
4
 
5
5
  //#region src/internal/agents/tools/whoami.ts
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'getCurrentUser', {
43
43
  return getCurrentUser;
44
44
  }
45
45
  });
46
- //# sourceMappingURL=whoami-DBSqcCGl.cjs.map
46
+ //# sourceMappingURL=whoami-DcSsmS02.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-DBSqcCGl.cjs","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,wBAAU;EACf,aAAa;EACb,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
1
+ {"version":3,"file":"whoami-DcSsmS02.cjs","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,wBAAU;EACf,aAAa;EACb,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/mcp-server",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -57,6 +57,14 @@
57
57
  "types": "./dist/permissions.ts",
58
58
  "default": "./dist/permissions.js"
59
59
  },
60
+ "./skills": {
61
+ "types": "./dist/skills.ts",
62
+ "default": "./dist/skills.js"
63
+ },
64
+ "./tools": {
65
+ "types": "./dist/tools/index.ts",
66
+ "default": "./dist/tools/index.js"
67
+ },
60
68
  "./transports/stdio": {
61
69
  "types": "./dist/transports/stdio.ts",
62
70
  "default": "./dist/transports/stdio.js"
@@ -69,6 +77,10 @@
69
77
  "types": "./dist/toolDefinitions.ts",
70
78
  "default": "./dist/toolDefinitions.js"
71
79
  },
80
+ "./skillDefinitions": {
81
+ "types": "./dist/skillDefinitions.ts",
82
+ "default": "./dist/skillDefinitions.js"
83
+ },
72
84
  "./types": {
73
85
  "types": "./dist/types.ts",
74
86
  "default": "./dist/types.js"
@@ -93,21 +105,22 @@
93
105
  "types": "./dist/tools/search-issues/agent.ts",
94
106
  "default": "./dist/tools/search-issues/agent.js"
95
107
  },
108
+ "./tools/agent-tools": {
109
+ "types": "./dist/tools/agent-tools.ts",
110
+ "default": "./dist/tools/agent-tools.js"
111
+ },
96
112
  "./internal/agents/callEmbeddedAgent": {
97
113
  "types": "./dist/internal/agents/callEmbeddedAgent.ts",
98
114
  "default": "./dist/internal/agents/callEmbeddedAgent.js"
99
- },
100
- "./internal/context-storage": {
101
- "types": "./dist/internal/context-storage.ts",
102
- "default": "./dist/internal/context-storage.js"
103
115
  }
104
116
  },
105
117
  "devDependencies": {
106
118
  "msw": "^2.10.2",
119
+ "tiktoken": "^1.0.18",
107
120
  "yaml": "^2.6.1",
108
121
  "zod-to-json-schema": "^3.24.6",
109
- "@sentry/mcp-server-mocks": "0.19.0",
110
- "@sentry/mcp-server-tsconfig": "0.19.0"
122
+ "@sentry/mcp-server-tsconfig": "0.21.0",
123
+ "@sentry/mcp-server-mocks": "0.21.0"
111
124
  },
112
125
  "dependencies": {
113
126
  "@ai-sdk/openai": "^1.3.22",
@@ -131,6 +144,8 @@
131
144
  "test:watch": "pnpm run generate-definitions && vitest",
132
145
  "tsc": "tsc --noEmit",
133
146
  "generate-definitions": "tsx scripts/generate-definitions.ts",
134
- "generate-otel-namespaces": "tsx scripts/generate-otel-namespaces.ts"
147
+ "generate-otel-namespaces": "tsx scripts/generate-otel-namespaces.ts",
148
+ "measure-tokens": "tsx scripts/measure-token-cost.ts",
149
+ "validate-skills": "tsx scripts/validate-skills-mapping.ts"
135
150
  }
136
151
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze-issue-with-seer-CI8pvCnf.cjs","names":["context: ServerContext","SEER_MAX_RETRIES","SEER_INITIAL_RETRY_DELAY","ApiServerError","ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.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 { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredScopes: [\"seer\"],\n description: [\n \"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\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 let output = `# Seer Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze-issue-with-seer-DvuKEcbu.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.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 { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredScopes: [\"seer\"],\n description: [\n \"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\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 let output = `# Seer Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"callEmbeddedAgent-B_BMEB_u.js","names":["capturedToolCalls: ToolCall[]"],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":["import { generateText, Output } from \"ai\";\nimport { getOpenAIModel } from \"./openai-provider\";\nimport type { z } from \"zod\";\n\nexport type ToolCall = {\n toolName: string;\n args: any;\n};\n\ninterface EmbeddedAgentResult<T> {\n result: T;\n toolCalls: ToolCall[];\n}\n\n/**\n * Call an embedded agent with tool call capture\n * This is the standard way to call embedded AI agents within MCP tools\n *\n * Error handling:\n * - Errors are re-thrown for the calling agent to handle\n * - Each agent can implement its own error handling strategy\n */\nexport async function callEmbeddedAgent<T>({\n system,\n prompt,\n tools,\n schema,\n}: {\n system: string;\n prompt: string;\n tools: Record<string, any>;\n schema: z.ZodSchema<T>;\n}): Promise<EmbeddedAgentResult<T>> {\n const capturedToolCalls: ToolCall[] = [];\n\n const result = await generateText({\n model: getOpenAIModel(\"gpt-4o\"),\n system,\n prompt,\n tools,\n maxSteps: 5,\n experimental_output: Output.object({ schema }),\n onStepFinish: (event) => {\n if (event.toolCalls && event.toolCalls.length > 0) {\n for (const toolCall of event.toolCalls) {\n capturedToolCalls.push({\n toolName: toolCall.toolName,\n args: toolCall.args,\n });\n }\n }\n },\n });\n\n if (!result.experimental_output) {\n throw new Error(\"Failed to generate output\");\n }\n\n return {\n result: result.experimental_output as T,\n toolCalls: capturedToolCalls,\n };\n}\n"],"mappings":";;;;;;;;;;;;AAsBA,eAAsB,kBAAqB,EACzC,QACA,QACA,OACA,QAMD,EAAmC;CAClC,MAAMA,oBAAgC,CAAE;CAExC,MAAM,SAAS,MAAM,aAAa;EAChC,OAAO,eAAe,SAAS;EAC/B;EACA;EACA;EACA,UAAU;EACV,qBAAqB,OAAO,OAAO,EAAE,OAAQ,EAAC;EAC9C,cAAc,CAAC,UAAU;AACvB,OAAI,MAAM,aAAa,MAAM,UAAU,SAAS,EAC9C,MAAK,MAAM,YAAY,MAAM,UAC3B,mBAAkB,KAAK;IACrB,UAAU,SAAS;IACnB,MAAM,SAAS;GAChB,EAAC;EAGP;CACF,EAAC;AAEF,MAAK,OAAO,oBACV,OAAM,IAAI,MAAM;AAGlB,QAAO;EACL,QAAQ,OAAO;EACf,WAAW;CACZ;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"callEmbeddedAgent-BaGxBAdM.cjs","names":["capturedToolCalls: ToolCall[]"],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":["import { generateText, Output } from \"ai\";\nimport { getOpenAIModel } from \"./openai-provider\";\nimport type { z } from \"zod\";\n\nexport type ToolCall = {\n toolName: string;\n args: any;\n};\n\ninterface EmbeddedAgentResult<T> {\n result: T;\n toolCalls: ToolCall[];\n}\n\n/**\n * Call an embedded agent with tool call capture\n * This is the standard way to call embedded AI agents within MCP tools\n *\n * Error handling:\n * - Errors are re-thrown for the calling agent to handle\n * - Each agent can implement its own error handling strategy\n */\nexport async function callEmbeddedAgent<T>({\n system,\n prompt,\n tools,\n schema,\n}: {\n system: string;\n prompt: string;\n tools: Record<string, any>;\n schema: z.ZodSchema<T>;\n}): Promise<EmbeddedAgentResult<T>> {\n const capturedToolCalls: ToolCall[] = [];\n\n const result = await generateText({\n model: getOpenAIModel(\"gpt-4o\"),\n system,\n prompt,\n tools,\n maxSteps: 5,\n experimental_output: Output.object({ schema }),\n onStepFinish: (event) => {\n if (event.toolCalls && event.toolCalls.length > 0) {\n for (const toolCall of event.toolCalls) {\n capturedToolCalls.push({\n toolName: toolCall.toolName,\n args: toolCall.args,\n });\n }\n }\n },\n });\n\n if (!result.experimental_output) {\n throw new Error(\"Failed to generate output\");\n }\n\n return {\n result: result.experimental_output as T,\n toolCalls: capturedToolCalls,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAsBA,eAAsB,kBAAqB,EACzC,QACA,QACA,OACA,QAMD,EAAmC;CAClC,MAAMA,oBAAgC,CAAE;CAExC,MAAM,SAAS,MAAM,qBAAa;EAChC,OAAO,uCAAe,SAAS;EAC/B;EACA;EACA;EACA,UAAU;EACV,qBAAqB,UAAO,OAAO,EAAE,OAAQ,EAAC;EAC9C,cAAc,CAAC,UAAU;AACvB,OAAI,MAAM,aAAa,MAAM,UAAU,SAAS,EAC9C,MAAK,MAAM,YAAY,MAAM,UAC3B,mBAAkB,KAAK;IACrB,UAAU,SAAS;IACnB,MAAM,SAAS;GAChB,EAAC;EAGP;CACF,EAAC;AAEF,MAAK,OAAO,oBACV,OAAM,IAAI,MAAM;AAGlB,QAAO;EACL,QAAQ,OAAO;EACf,WAAW;CACZ;AACF"}