@sentry/mcp-server 0.13.0 → 0.15.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 (336) hide show
  1. package/README.md +15 -2
  2. package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs → analyze-issue-with-seer-BkVrrh28.cjs} +10 -17
  3. package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +1 -0
  4. package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js → analyze-issue-with-seer-CoqsTklL.js} +10 -17
  5. package/dist/analyze-issue-with-seer-CoqsTklL.js.map +1 -0
  6. package/dist/api-client/client.cjs +1 -1
  7. package/dist/api-client/client.d.cts +3 -3
  8. package/dist/api-client/client.d.ts +3 -3
  9. package/dist/api-client/client.js +1 -1
  10. package/dist/api-client/index.cjs +1 -1
  11. package/dist/api-client/index.d.cts +3 -3
  12. package/dist/api-client/index.d.ts +4 -4
  13. package/dist/api-client/index.js +1 -1
  14. package/dist/api-client/schema.d.cts +1 -1
  15. package/dist/api-client/schema.d.ts +1 -1
  16. package/dist/api-client/types.d.cts +2 -2
  17. package/dist/api-client/types.d.ts +2 -2
  18. package/dist/{api-utils-BcB1cMXS.js → api-utils-C6QJAzFL.js} +4 -4
  19. package/dist/api-utils-C6QJAzFL.js.map +1 -0
  20. package/dist/{api-utils-BJS0CChW.cjs → api-utils-d36iteNO.cjs} +4 -4
  21. package/dist/api-utils-d36iteNO.cjs.map +1 -0
  22. package/dist/{client-Dae1ZwWb.d.cts → client-CQ9Xe1aN.d.cts} +17 -19
  23. package/dist/client-CQ9Xe1aN.d.cts.map +1 -0
  24. package/dist/{client-BbamPqV4.js → client-DOYWNvVM.js} +21 -12
  25. package/dist/client-DOYWNvVM.js.map +1 -0
  26. package/dist/{client-BNTsOycD.cjs → client-Dkw5iYu3.cjs} +21 -12
  27. package/dist/client-Dkw5iYu3.cjs.map +1 -0
  28. package/dist/{client-qyEu8fvj.d.ts → client-VCJp6Kcu.d.ts} +19 -21
  29. package/dist/client-VCJp6Kcu.d.ts.map +1 -0
  30. package/dist/{create-dsn-B3L8iWno.js → create-dsn-D530I7Lr.js} +2 -2
  31. package/dist/{create-dsn-B3L8iWno.js.map → create-dsn-D530I7Lr.js.map} +1 -1
  32. package/dist/{create-dsn-CVPtt_Es.cjs → create-dsn-Dz8nyTFw.cjs} +2 -2
  33. package/dist/{create-dsn-CVPtt_Es.cjs.map → create-dsn-Dz8nyTFw.cjs.map} +1 -1
  34. package/dist/{create-project-B_6a6okf.cjs → create-project-BxzRiryg.cjs} +3 -3
  35. package/dist/{create-project-B_6a6okf.cjs.map → create-project-BxzRiryg.cjs.map} +1 -1
  36. package/dist/{create-project-DdIXMvWI.js → create-project-K1od5Rhx.js} +3 -3
  37. package/dist/{create-project-DdIXMvWI.js.map → create-project-K1od5Rhx.js.map} +1 -1
  38. package/dist/{create-team-C1DP5Z1r.cjs → create-team-CJhrccc1.cjs} +2 -2
  39. package/dist/{create-team-C1DP5Z1r.cjs.map → create-team-CJhrccc1.cjs.map} +1 -1
  40. package/dist/{create-team-BarRdaZK.js → create-team-zHz00C6Q.js} +2 -2
  41. package/dist/{create-team-BarRdaZK.js.map → create-team-zHz00C6Q.js.map} +1 -1
  42. package/dist/{fetch-utils-B-a92ObC.d.ts → fetch-utils-Bv9WjUp0.d.ts} +1 -1
  43. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
  44. package/dist/{find-dsns-BPbblgrn.js → find-dsns-BoEP0N7B.js} +2 -2
  45. package/dist/{find-dsns-BPbblgrn.js.map → find-dsns-BoEP0N7B.js.map} +1 -1
  46. package/dist/{find-dsns-BDJWY6nZ.cjs → find-dsns-CK59RaUJ.cjs} +2 -2
  47. package/dist/{find-dsns-BDJWY6nZ.cjs.map → find-dsns-CK59RaUJ.cjs.map} +1 -1
  48. package/dist/{find-errors-B9wLxXA0.js → find-errors-C3oUMeRi.js} +2 -2
  49. package/dist/{find-errors-B9wLxXA0.js.map → find-errors-C3oUMeRi.js.map} +1 -1
  50. package/dist/{find-errors-DnFs3PaH.cjs → find-errors-CB9NpSxG.cjs} +2 -2
  51. package/dist/{find-errors-DnFs3PaH.cjs.map → find-errors-CB9NpSxG.cjs.map} +1 -1
  52. package/dist/{find-issues-CwPbwRXK.cjs → find-issues-C3uk59rn.cjs} +2 -2
  53. package/dist/{find-issues-CwPbwRXK.cjs.map → find-issues-C3uk59rn.cjs.map} +1 -1
  54. package/dist/{find-issues-BI1tI3cJ.js → find-issues-CAtNGBly.js} +2 -2
  55. package/dist/{find-issues-BI1tI3cJ.js.map → find-issues-CAtNGBly.js.map} +1 -1
  56. package/dist/{find-organizations-DqS6zoTK.cjs → find-organizations-BrdMfZRO.cjs} +2 -2
  57. package/dist/{find-organizations-DqS6zoTK.cjs.map → find-organizations-BrdMfZRO.cjs.map} +1 -1
  58. package/dist/{find-organizations-CdiouW48.js → find-organizations-ojXwWWzk.js} +2 -2
  59. package/dist/{find-organizations-CdiouW48.js.map → find-organizations-ojXwWWzk.js.map} +1 -1
  60. package/dist/{find-projects-Ba6cdX7n.cjs → find-projects-BZWhlYJh.cjs} +2 -2
  61. package/dist/{find-projects-Ba6cdX7n.cjs.map → find-projects-BZWhlYJh.cjs.map} +1 -1
  62. package/dist/{find-projects-Ccfxv47h.js → find-projects-fcLG4KpT.js} +2 -2
  63. package/dist/{find-projects-Ccfxv47h.js.map → find-projects-fcLG4KpT.js.map} +1 -1
  64. package/dist/{find-releases-CFoGytN-.js → find-releases-BUozr0Z-.js} +2 -2
  65. package/dist/{find-releases-CFoGytN-.js.map → find-releases-BUozr0Z-.js.map} +1 -1
  66. package/dist/{find-releases-CFl86XMT.cjs → find-releases-CZCVEOHZ.cjs} +2 -2
  67. package/dist/{find-releases-CFl86XMT.cjs.map → find-releases-CZCVEOHZ.cjs.map} +1 -1
  68. package/dist/{find-tags-h2o0BKWO.cjs → find-tags-Byk4d3oZ.cjs} +2 -2
  69. package/dist/{find-tags-h2o0BKWO.cjs.map → find-tags-Byk4d3oZ.cjs.map} +1 -1
  70. package/dist/{find-tags-ORtYLH5b.js → find-tags-d-wF1Se8.js} +2 -2
  71. package/dist/{find-tags-ORtYLH5b.js.map → find-tags-d-wF1Se8.js.map} +1 -1
  72. package/dist/{find-teams-hreVp1nw.js → find-teams-BZ118EIK.js} +2 -2
  73. package/dist/{find-teams-hreVp1nw.js.map → find-teams-BZ118EIK.js.map} +1 -1
  74. package/dist/{find-teams-DUcDfSOl.cjs → find-teams-CnU5x9rQ.cjs} +2 -2
  75. package/dist/{find-teams-DUcDfSOl.cjs.map → find-teams-CnU5x9rQ.cjs.map} +1 -1
  76. package/dist/{find-transactions-BehUqQYs.js → find-transactions-BiBgg-AE.js} +2 -2
  77. package/dist/{find-transactions-BehUqQYs.js.map → find-transactions-BiBgg-AE.js.map} +1 -1
  78. package/dist/{find-transactions-BkPscam3.cjs → find-transactions-DuZyqjhF.cjs} +2 -2
  79. package/dist/{find-transactions-BkPscam3.cjs.map → find-transactions-DuZyqjhF.cjs.map} +1 -1
  80. package/dist/{formatting-pUm38KOj.js → formatting-Bvyded57.js} +34 -2
  81. package/dist/formatting-Bvyded57.js.map +1 -0
  82. package/dist/{formatting-Di1X9Jn3.d.cts → formatting-CcTK2X8V.d.cts} +7 -5
  83. package/dist/formatting-CcTK2X8V.d.cts.map +1 -0
  84. package/dist/{formatting-BlMiQa9i.cjs → formatting-D0Aki7rK.cjs} +33 -2
  85. package/dist/formatting-D0Aki7rK.cjs.map +1 -0
  86. package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
  87. package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
  88. package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
  89. package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
  90. package/dist/{formatting-B-u5CbYn.d.ts → formatting-vtXxusbn.d.ts} +7 -5
  91. package/dist/formatting-vtXxusbn.d.ts.map +1 -0
  92. package/dist/{get-doc-AuAW_qr9.cjs → get-doc-DaTCenOE.cjs} +2 -2
  93. package/dist/{get-doc-AuAW_qr9.cjs.map → get-doc-DaTCenOE.cjs.map} +1 -1
  94. package/dist/{get-doc-BtxZOy7y.js → get-doc-YTiQznr1.js} +2 -2
  95. package/dist/{get-doc-BtxZOy7y.js.map → get-doc-YTiQznr1.js.map} +1 -1
  96. package/dist/{get-event-attachment-Bq5lkaKV.cjs → get-event-attachment-C-ig2-3F.cjs} +2 -2
  97. package/dist/{get-event-attachment-Bq5lkaKV.cjs.map → get-event-attachment-C-ig2-3F.cjs.map} +1 -1
  98. package/dist/{get-event-attachment-DwAl54zv.js → get-event-attachment-DVCPpUMj.js} +2 -2
  99. package/dist/{get-event-attachment-DwAl54zv.js.map → get-event-attachment-DVCPpUMj.js.map} +1 -1
  100. package/dist/{get-issue-details-DrpD5LlK.js → get-issue-details-Dcmzxknx.js} +24 -11
  101. package/dist/get-issue-details-Dcmzxknx.js.map +1 -0
  102. package/dist/{get-issue-details-qGwu18JX.cjs → get-issue-details-lBrYR9yx.cjs} +24 -11
  103. package/dist/get-issue-details-lBrYR9yx.cjs.map +1 -0
  104. package/dist/index.cjs +53 -42
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.js +53 -42
  107. package/dist/index.js.map +1 -1
  108. package/dist/internal/fetch-utils.d.ts +1 -1
  109. package/dist/internal/formatting.cjs +2 -1
  110. package/dist/internal/formatting.d.cts +4 -4
  111. package/dist/internal/formatting.d.ts +5 -5
  112. package/dist/internal/formatting.js +2 -1
  113. package/dist/internal/issue-helpers.d.ts +1 -1
  114. package/dist/internal/test-fixtures.d.cts +20 -20
  115. package/dist/internal/test-fixtures.d.ts +62 -62
  116. package/dist/internal/test-fixtures.d.ts.map +1 -1
  117. package/dist/{issue-helpers-BOn4g7rx.d.ts → issue-helpers-BJffpNoO.d.ts} +1 -1
  118. package/dist/{issue-helpers-BOn4g7rx.d.ts.map → issue-helpers-BJffpNoO.d.ts.map} +1 -1
  119. package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
  120. package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
  121. package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
  122. package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
  123. package/dist/logging.cjs +1 -1
  124. package/dist/logging.js +1 -1
  125. package/dist/{promptDefinitions-6xelipaz.d.ts → promptDefinitions-D3GTBGLr.d.ts} +1 -1
  126. package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
  127. package/dist/promptDefinitions.d.ts +1 -1
  128. package/dist/prompts.d.cts +1 -1
  129. package/dist/prompts.d.ts +2 -2
  130. package/dist/{schema-B5BpplNK.d.ts → schema-3NeMWRAm.d.cts} +273 -273
  131. package/dist/{schema-Dt-HKnd_.d.cts.map → schema-3NeMWRAm.d.cts.map} +1 -1
  132. package/dist/{schema-Dt-HKnd_.d.cts → schema-B3CzDGJk.d.ts} +303 -303
  133. package/dist/{schema-B5BpplNK.d.ts.map → schema-B3CzDGJk.d.ts.map} +1 -1
  134. package/dist/{search-docs-CrMdRDJy.js → search-docs-BLbB_GV2.js} +3 -3
  135. package/dist/search-docs-BLbB_GV2.js.map +1 -0
  136. package/dist/{search-docs-VhefTOOH.cjs → search-docs-D5Foht_0.cjs} +3 -3
  137. package/dist/search-docs-D5Foht_0.cjs.map +1 -0
  138. package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-CDm5J8ur.cjs} +2 -2
  139. package/dist/{seer-utils-CzYEEZb2.cjs.map → seer-utils-CDm5J8ur.cjs.map} +1 -1
  140. package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-Cj9DXrow.js} +2 -2
  141. package/dist/{seer-utils-Ckr8nYlz.js.map → seer-utils-Cj9DXrow.js.map} +1 -1
  142. package/dist/{server-DeuBftc5.js → server-BSRxzYFd.js} +4 -4
  143. package/dist/{server-DeuBftc5.js.map → server-BSRxzYFd.js.map} +1 -1
  144. package/dist/{server-CHG27fcn.cjs → server-Dgkqz8bA.cjs} +4 -4
  145. package/dist/{server-CHG27fcn.cjs.map → server-Dgkqz8bA.cjs.map} +1 -1
  146. package/dist/server.cjs +29 -29
  147. package/dist/server.d.cts +1 -1
  148. package/dist/server.d.ts +2 -2
  149. package/dist/server.js +29 -29
  150. package/dist/{stdio-BtVdTwx-.cjs → stdio-BQAm0Liz.cjs} +3 -3
  151. package/dist/{stdio-BtVdTwx-.cjs.map → stdio-BQAm0Liz.cjs.map} +1 -1
  152. package/dist/{stdio-DIuLW5EE.js → stdio-BcihaDjO.js} +3 -3
  153. package/dist/{stdio-DIuLW5EE.js.map → stdio-BcihaDjO.js.map} +1 -1
  154. package/dist/test-setup.cjs +1 -16
  155. package/dist/test-setup.cjs.map +1 -1
  156. package/dist/test-setup.js +1 -16
  157. package/dist/test-setup.js.map +1 -1
  158. package/dist/toolDefinitions.js +2 -2
  159. package/dist/tools/analyze-issue-with-seer.cjs +6 -6
  160. package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
  161. package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
  162. package/dist/tools/analyze-issue-with-seer.js +6 -6
  163. package/dist/tools/create-dsn.cjs +3 -3
  164. package/dist/tools/create-dsn.d.cts +2 -2
  165. package/dist/tools/create-dsn.d.ts +3 -3
  166. package/dist/tools/create-dsn.js +3 -3
  167. package/dist/tools/create-project.cjs +4 -4
  168. package/dist/tools/create-project.d.cts +2 -2
  169. package/dist/tools/create-project.d.ts +3 -3
  170. package/dist/tools/create-project.js +4 -4
  171. package/dist/tools/create-team.cjs +3 -3
  172. package/dist/tools/create-team.d.cts +2 -2
  173. package/dist/tools/create-team.d.ts +3 -3
  174. package/dist/tools/create-team.js +3 -3
  175. package/dist/tools/find-dsns.cjs +3 -3
  176. package/dist/tools/find-dsns.d.cts +2 -2
  177. package/dist/tools/find-dsns.d.ts +3 -3
  178. package/dist/tools/find-dsns.js +3 -3
  179. package/dist/tools/find-errors.cjs +3 -3
  180. package/dist/tools/find-errors.d.cts +2 -2
  181. package/dist/tools/find-errors.d.ts +3 -3
  182. package/dist/tools/find-errors.js +3 -3
  183. package/dist/tools/find-issues.cjs +3 -3
  184. package/dist/tools/find-issues.d.cts +2 -2
  185. package/dist/tools/find-issues.d.ts +3 -3
  186. package/dist/tools/find-issues.js +3 -3
  187. package/dist/tools/find-organizations.cjs +3 -3
  188. package/dist/tools/find-organizations.d.cts +2 -2
  189. package/dist/tools/find-organizations.d.ts +3 -3
  190. package/dist/tools/find-organizations.js +3 -3
  191. package/dist/tools/find-projects.cjs +3 -3
  192. package/dist/tools/find-projects.d.cts +2 -2
  193. package/dist/tools/find-projects.d.ts +3 -3
  194. package/dist/tools/find-projects.js +3 -3
  195. package/dist/tools/find-releases.cjs +3 -3
  196. package/dist/tools/find-releases.d.cts +2 -2
  197. package/dist/tools/find-releases.d.ts +3 -3
  198. package/dist/tools/find-releases.js +3 -3
  199. package/dist/tools/find-tags.cjs +3 -3
  200. package/dist/tools/find-tags.d.cts +2 -2
  201. package/dist/tools/find-tags.d.ts +3 -3
  202. package/dist/tools/find-tags.js +3 -3
  203. package/dist/tools/find-teams.cjs +3 -3
  204. package/dist/tools/find-teams.d.cts +2 -2
  205. package/dist/tools/find-teams.d.ts +3 -3
  206. package/dist/tools/find-teams.js +3 -3
  207. package/dist/tools/find-transactions.cjs +3 -3
  208. package/dist/tools/find-transactions.d.cts +2 -2
  209. package/dist/tools/find-transactions.d.ts +3 -3
  210. package/dist/tools/find-transactions.js +3 -3
  211. package/dist/tools/get-doc.cjs +2 -2
  212. package/dist/tools/get-doc.d.cts +2 -2
  213. package/dist/tools/get-doc.d.ts +3 -3
  214. package/dist/tools/get-doc.js +2 -2
  215. package/dist/tools/get-event-attachment.cjs +3 -3
  216. package/dist/tools/get-event-attachment.d.cts +2 -2
  217. package/dist/tools/get-event-attachment.d.ts +3 -3
  218. package/dist/tools/get-event-attachment.js +3 -3
  219. package/dist/tools/get-issue-details.cjs +6 -5
  220. package/dist/tools/get-issue-details.d.cts +2 -2
  221. package/dist/tools/get-issue-details.d.ts +3 -3
  222. package/dist/tools/get-issue-details.js +6 -5
  223. package/dist/tools/index.cjs +28 -28
  224. package/dist/tools/index.d.cts +2 -2
  225. package/dist/tools/index.d.ts +79 -79
  226. package/dist/tools/index.js +28 -28
  227. package/dist/tools/search-docs.cjs +2 -2
  228. package/dist/tools/search-docs.d.cts +2 -2
  229. package/dist/tools/search-docs.d.ts +3 -3
  230. package/dist/tools/search-docs.js +2 -2
  231. package/dist/tools/types.d.cts +2 -2
  232. package/dist/tools/types.d.ts +3 -3
  233. package/dist/tools/update-issue.cjs +7 -6
  234. package/dist/tools/update-issue.d.cts +2 -2
  235. package/dist/tools/update-issue.d.ts +3 -3
  236. package/dist/tools/update-issue.js +7 -6
  237. package/dist/tools/update-project.cjs +4 -4
  238. package/dist/tools/update-project.d.cts +2 -2
  239. package/dist/tools/update-project.d.ts +3 -3
  240. package/dist/tools/update-project.js +4 -4
  241. package/dist/tools/utils/api-utils.cjs +2 -2
  242. package/dist/tools/utils/api-utils.d.cts +5 -5
  243. package/dist/tools/utils/api-utils.d.ts +7 -7
  244. package/dist/tools/utils/api-utils.js +2 -2
  245. package/dist/tools/utils/defineTool.d.cts +2 -2
  246. package/dist/tools/utils/defineTool.d.ts +3 -3
  247. package/dist/tools/utils/fetch-utils.d.ts +1 -1
  248. package/dist/tools/utils/formatting-utils.cjs +1 -1
  249. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  250. package/dist/tools/utils/formatting-utils.d.ts +4 -4
  251. package/dist/tools/utils/formatting-utils.js +1 -1
  252. package/dist/tools/utils/issue-utils.cjs +3 -2
  253. package/dist/tools/utils/issue-utils.d.cts +4 -4
  254. package/dist/tools/utils/issue-utils.d.ts +6 -6
  255. package/dist/tools/utils/issue-utils.js +3 -2
  256. package/dist/tools/utils/seer-utils.cjs +1 -1
  257. package/dist/tools/utils/seer-utils.d.cts +3 -3
  258. package/dist/tools/utils/seer-utils.d.ts +4 -4
  259. package/dist/tools/utils/seer-utils.js +1 -1
  260. package/dist/tools/whoami.cjs +3 -3
  261. package/dist/tools/whoami.d.cts +2 -2
  262. package/dist/tools/whoami.d.ts +3 -3
  263. package/dist/tools/whoami.js +3 -3
  264. package/dist/{tools-BiZ7ZDKf.cjs → tools-CHnZvVEN.cjs} +21 -21
  265. package/dist/{tools-BiZ7ZDKf.cjs.map → tools-CHnZvVEN.cjs.map} +1 -1
  266. package/dist/{tools-DGF9GhbP.js → tools-CdXGgq1W.js} +21 -21
  267. package/dist/{tools-DGF9GhbP.js.map → tools-CdXGgq1W.js.map} +1 -1
  268. package/dist/transports/stdio.cjs +31 -31
  269. package/dist/transports/stdio.d.cts +1 -1
  270. package/dist/transports/stdio.d.ts +2 -2
  271. package/dist/transports/stdio.js +31 -31
  272. package/dist/{types-C3pRFQyA.d.cts → types-BoMP-Ro6.d.cts} +2 -2
  273. package/dist/{types-C3pRFQyA.d.cts.map → types-BoMP-Ro6.d.cts.map} +1 -1
  274. package/dist/{types-CYjev2Ep.d.cts → types-CUN-2OSS.d.cts} +3 -3
  275. package/dist/{types-CYjev2Ep.d.cts.map → types-CUN-2OSS.d.cts.map} +1 -1
  276. package/dist/{types-CZaMk5Yg.d.cts → types-D_mx318Q.d.cts} +2 -2
  277. package/dist/{types-CZaMk5Yg.d.cts.map → types-D_mx318Q.d.cts.map} +1 -1
  278. package/dist/{types-B2qOfefC.d.ts → types-DkJtNDXU.d.ts} +4 -4
  279. package/dist/{types-B2qOfefC.d.ts.map → types-DkJtNDXU.d.ts.map} +1 -1
  280. package/dist/{types-Br0saqtE.d.ts → types-DpV1JAZj.d.ts} +2 -2
  281. package/dist/{types-Br0saqtE.d.ts.map → types-DpV1JAZj.d.ts.map} +1 -1
  282. package/dist/{types-D5KkaSjc.d.ts → types-qB8a4WQT.d.ts} +2 -2
  283. package/dist/{types-D5KkaSjc.d.ts.map → types-qB8a4WQT.d.ts.map} +1 -1
  284. package/dist/types.d.cts +1 -1
  285. package/dist/types.d.ts +2 -2
  286. package/dist/{update-issue-DN80uuKU.js → update-issue-DRTQvy6p.js} +3 -3
  287. package/dist/{update-issue-DN80uuKU.js.map → update-issue-DRTQvy6p.js.map} +1 -1
  288. package/dist/{update-issue-Bz-u_Yaa.cjs → update-issue-DpkxxiNk.cjs} +3 -3
  289. package/dist/{update-issue-Bz-u_Yaa.cjs.map → update-issue-DpkxxiNk.cjs.map} +1 -1
  290. package/dist/{update-project-C7Xbmhqg.cjs → update-project-DLDDbcGY.cjs} +3 -3
  291. package/dist/{update-project-C7Xbmhqg.cjs.map → update-project-DLDDbcGY.cjs.map} +1 -1
  292. package/dist/{update-project-5j-SOHWU.js → update-project-YLxt2ry2.js} +3 -3
  293. package/dist/{update-project-5j-SOHWU.js.map → update-project-YLxt2ry2.js.map} +1 -1
  294. package/dist/url-utils-C9hykWmk.cjs +106 -0
  295. package/dist/url-utils-C9hykWmk.cjs.map +1 -0
  296. package/dist/url-utils-DvZYfzPM.js +82 -0
  297. package/dist/url-utils-DvZYfzPM.js.map +1 -0
  298. package/dist/utils/url-utils.cjs +6 -0
  299. package/dist/utils/url-utils.d.cts +37 -0
  300. package/dist/utils/url-utils.d.cts.map +1 -0
  301. package/dist/utils/url-utils.d.ts +37 -0
  302. package/dist/utils/url-utils.d.ts.map +1 -0
  303. package/dist/utils/url-utils.js +3 -0
  304. package/dist/version-CcTnFB56.js +6 -0
  305. package/dist/{version-DvMKCu-i.js.map → version-CcTnFB56.js.map} +1 -1
  306. package/dist/{version-Dyz6_b54.cjs → version-rDjaSkPw.cjs} +2 -2
  307. package/dist/{version-Dyz6_b54.cjs.map → version-rDjaSkPw.cjs.map} +1 -1
  308. package/dist/version.cjs +1 -1
  309. package/dist/version.js +1 -1
  310. package/dist/{whoami-qIbcECMA.cjs → whoami-CEgbTUqt.cjs} +2 -2
  311. package/dist/{whoami-qIbcECMA.cjs.map → whoami-CEgbTUqt.cjs.map} +1 -1
  312. package/dist/{whoami-raA70UBD.js → whoami-DesNZnaQ.js} +2 -2
  313. package/dist/{whoami-raA70UBD.js.map → whoami-DesNZnaQ.js.map} +1 -1
  314. package/package.json +3 -3
  315. package/dist/analyze-issue-with-seer-Bq3kefOr.cjs.map +0 -1
  316. package/dist/analyze-issue-with-seer-Dk0ZFwN8.js.map +0 -1
  317. package/dist/api-utils-BJS0CChW.cjs.map +0 -1
  318. package/dist/api-utils-BcB1cMXS.js.map +0 -1
  319. package/dist/client-BNTsOycD.cjs.map +0 -1
  320. package/dist/client-BbamPqV4.js.map +0 -1
  321. package/dist/client-Dae1ZwWb.d.cts.map +0 -1
  322. package/dist/client-qyEu8fvj.d.ts.map +0 -1
  323. package/dist/fetch-utils-B-a92ObC.d.ts.map +0 -1
  324. package/dist/formatting-B-u5CbYn.d.ts.map +0 -1
  325. package/dist/formatting-BlMiQa9i.cjs.map +0 -1
  326. package/dist/formatting-Di1X9Jn3.d.cts.map +0 -1
  327. package/dist/formatting-pUm38KOj.js.map +0 -1
  328. package/dist/get-issue-details-DrpD5LlK.js.map +0 -1
  329. package/dist/get-issue-details-qGwu18JX.cjs.map +0 -1
  330. package/dist/promptDefinitions-6xelipaz.d.ts.map +0 -1
  331. package/dist/search-docs-CrMdRDJy.js.map +0 -1
  332. package/dist/search-docs-VhefTOOH.cjs.map +0 -1
  333. package/dist/version-DvMKCu-i.js +0 -6
  334. /package/dist/{index-BrojxuhJ.d.ts → index-DVGDAddE.d.ts} +0 -0
  335. /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
  336. /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { UserInputError } from "./errors-CIoxzIug.js";
2
2
  import { defineTool } from "./defineTool-77H4nSna.js";
3
- import { apiServiceFromContext } from "./api-utils-BcB1cMXS.js";
3
+ import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
4
4
  import { ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamRegionUrl, ParamTeamSlug } from "./schema-DtsnsxMl.js";
5
- import { logError } from "./logging-LnQMFw-_.js";
5
+ import { logError } from "./logging-DzxYBMrn.js";
6
6
  import { z } from "zod";
7
7
  import { setTag } from "@sentry/core";
8
8
 
@@ -117,4 +117,4 @@ var update_project_default = defineTool({
117
117
 
118
118
  //#endregion
119
119
  export { update_project_default };
120
- //# sourceMappingURL=update-project-5j-SOHWU.js.map
120
+ //# sourceMappingURL=update-project-YLxt2ry2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-project-5j-SOHWU.js","names":["context: ServerContext","project: Project | undefined","updates: string[]"],"sources":["../src/tools/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport type { Project } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamPlatform,\n ParamTeamSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_project\",\n description: [\n \"Update project settings in Sentry, such as name, slug, platform, and team assignment.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Update a project's name or slug to fix onboarding mistakes\",\n \"- Change the platform assigned to a project\",\n \"- Update team assignment for a project\",\n \"\",\n \"<examples>\",\n \"### Update a project's name and slug\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\",\n \"```\",\n \"\",\n \"### Assign a project to a different team\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\",\n \"```\",\n \"\",\n \"### Update platform\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- Team assignment is handled separately from other project settings\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"- When updating the slug, the project will be accessible at the new slug after the update\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z.string().trim().describe(\"The new name for the project\").optional(),\n slug: z\n .string()\n .toLowerCase()\n .trim()\n .describe(\"The new slug for the project (must be unique)\")\n .optional(),\n platform: ParamPlatform.optional(),\n teamSlug: ParamTeamSlug.optional().describe(\n \"The team to assign this project to. Note: this will replace the current team assignment.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n // Handle team assignment separately if provided\n if (params.teamSlug) {\n setTag(\"team.slug\", params.teamSlug);\n try {\n await apiService.addTeamToProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n teamSlug: params.teamSlug,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n }\n\n // Update project settings if any are provided\n const hasProjectUpdates = params.name || params.slug || params.platform;\n\n let project: Project | undefined;\n if (hasProjectUpdates) {\n try {\n project = await apiService.updateProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n slug: params.slug,\n platform: params.platform,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n } else {\n // If only team assignment, fetch current project data for display\n const projects = await apiService.listProjects(organizationSlug);\n project = projects.find((p) => p.slug === params.projectSlug);\n if (!project) {\n throw new UserInputError(`Project ${params.projectSlug} not found`);\n }\n }\n\n let output = `# Updated Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (project.platform) {\n output += `**Platform**: ${project.platform}\\n`;\n }\n\n // Display what was updated\n const updates: string[] = [];\n if (params.name) updates.push(`name to \"${params.name}\"`);\n if (params.slug) updates.push(`slug to \"${params.slug}\"`);\n if (params.platform) updates.push(`platform to \"${params.platform}\"`);\n if (params.teamSlug)\n updates.push(`team assignment to \"${params.teamSlug}\"`);\n\n if (updates.length > 0) {\n output += `\\n## Updates Applied\\n`;\n output += updates.map((update) => `- Updated ${update}`).join(\"\\n\");\n output += `\\n`;\n }\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The project is now accessible at slug: \\`${project.slug}\\`\\n`;\n if (params.teamSlug) {\n output += `- The project is now assigned to the \\`${params.teamSlug}\\` team\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAgBA,6BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;EACb,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,+BAA+B,CAAC,UAAU;EAC3E,MAAM,EACH,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SAAS,gDAAgD,CACzD,UAAU;EACb,UAAU,cA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AC5B,MAAI,OAAO,KAAM,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,KAAM,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,SAAU,SAAQ,MAAM,eAAe,OAAO,SAAS,GAAG;AACrE,MAAI,OAAO,SACT,SAAQ,MAAM,sBAAsB,OAAO,SAAS,GAAG;AAEzD,MAAI,QAAQ,SAAS,GAAG;AACtB,cAAW;AACX,aAAU,QAAQ,IAAI,CAAC,YAAY,YAAY,SAAS,CAAC,KAAK,KAAK;AACnE,cAAW;EACZ;AAED,YAAU;AACV,aAAW,6CAA6C,QAAQ,KAAK;AACrE,MAAI,OAAO,SACT,YAAW,yCAAyC,OAAO,SAAS;AAEtE,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"update-project-YLxt2ry2.js","names":["context: ServerContext","project: Project | undefined","updates: string[]"],"sources":["../src/tools/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport type { Project } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamPlatform,\n ParamTeamSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_project\",\n description: [\n \"Update project settings in Sentry, such as name, slug, platform, and team assignment.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Update a project's name or slug to fix onboarding mistakes\",\n \"- Change the platform assigned to a project\",\n \"- Update team assignment for a project\",\n \"\",\n \"<examples>\",\n \"### Update a project's name and slug\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\",\n \"```\",\n \"\",\n \"### Assign a project to a different team\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\",\n \"```\",\n \"\",\n \"### Update platform\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- Team assignment is handled separately from other project settings\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"- When updating the slug, the project will be accessible at the new slug after the update\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z.string().trim().describe(\"The new name for the project\").optional(),\n slug: z\n .string()\n .toLowerCase()\n .trim()\n .describe(\"The new slug for the project (must be unique)\")\n .optional(),\n platform: ParamPlatform.optional(),\n teamSlug: ParamTeamSlug.optional().describe(\n \"The team to assign this project to. Note: this will replace the current team assignment.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n // Handle team assignment separately if provided\n if (params.teamSlug) {\n setTag(\"team.slug\", params.teamSlug);\n try {\n await apiService.addTeamToProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n teamSlug: params.teamSlug,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n }\n\n // Update project settings if any are provided\n const hasProjectUpdates = params.name || params.slug || params.platform;\n\n let project: Project | undefined;\n if (hasProjectUpdates) {\n try {\n project = await apiService.updateProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n slug: params.slug,\n platform: params.platform,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n } else {\n // If only team assignment, fetch current project data for display\n const projects = await apiService.listProjects(organizationSlug);\n project = projects.find((p) => p.slug === params.projectSlug);\n if (!project) {\n throw new UserInputError(`Project ${params.projectSlug} not found`);\n }\n }\n\n let output = `# Updated Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (project.platform) {\n output += `**Platform**: ${project.platform}\\n`;\n }\n\n // Display what was updated\n const updates: string[] = [];\n if (params.name) updates.push(`name to \"${params.name}\"`);\n if (params.slug) updates.push(`slug to \"${params.slug}\"`);\n if (params.platform) updates.push(`platform to \"${params.platform}\"`);\n if (params.teamSlug)\n updates.push(`team assignment to \"${params.teamSlug}\"`);\n\n if (updates.length > 0) {\n output += `\\n## Updates Applied\\n`;\n output += updates.map((update) => `- Updated ${update}`).join(\"\\n\");\n output += `\\n`;\n }\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The project is now accessible at slug: \\`${project.slug}\\`\\n`;\n if (params.teamSlug) {\n output += `- The project is now assigned to the \\`${params.teamSlug}\\` team\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAgBA,6BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;EACb,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,+BAA+B,CAAC,UAAU;EAC3E,MAAM,EACH,QA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I,QAAQ,SACV,YAAW,gBAAgB,QAAQ,SAAS;EAI9C,MAAMC,UAAoB,CAAE;AAC5B,MAAI,OAAO,KAAM,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,KAAM,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,SAAU,SAAQ,MAAM,eAAe,OAAO,SAAS,GAAG;AACrE,MAAI,OAAO,SACT,SAAQ,MAAM,sBAAsB,OAAO,SAAS,GAAG;AAEzD,MAAI,QAAQ,SAAS,GAAG;AACtB,cAAW;AACX,aAAU,QAAQ,IAAI,CAAC,YAAY,YAAY,SAAS,CAAC,KAAK,KAAK;AACnE,cAAW;EACZ;AAED,YAAU;AACV,aAAW,6CAA6C,QAAQ,KAAK;AACrE,MAAI,OAAO,SACT,YAAW,yCAAyC,OAAO,SAAS;AAEtE,SAAO;CACR;AACF,EAAC"}
@@ -0,0 +1,106 @@
1
+
2
+ //#region src/utils/url-utils.ts
3
+ /**
4
+ * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
5
+ * Throws an error if validation fails instead of exiting the process.
6
+ *
7
+ * @param host The hostname to validate
8
+ * @throws {Error} If the host contains a protocol
9
+ */
10
+ function _validateSentryHostInternal(host) {
11
+ if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
12
+ }
13
+ /**
14
+ * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
15
+ * Throws an error if validation fails instead of exiting the process.
16
+ *
17
+ * @param url The HTTPS URL to validate and parse
18
+ * @returns The extracted hostname from the URL
19
+ * @throws {Error} If the URL is invalid or not HTTPS
20
+ */
21
+ function _validateAndParseSentryUrlInternal(url) {
22
+ if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
23
+ try {
24
+ const parsedUrl = new URL(url);
25
+ return parsedUrl.host;
26
+ } catch (error) {
27
+ throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
28
+ }
29
+ }
30
+ /**
31
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
32
+ * Exits the process with error code 1 if validation fails (CLI behavior).
33
+ *
34
+ * @param host The hostname to validate
35
+ */
36
+ function validateSentryHost(host) {
37
+ try {
38
+ _validateSentryHostInternal(host);
39
+ } catch (error) {
40
+ console.error(`Error: ${error.message}`);
41
+ process.exit(1);
42
+ }
43
+ }
44
+ /**
45
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
46
+ * Exits the process with error code 1 if validation fails (CLI behavior).
47
+ *
48
+ * @param url The HTTPS URL to validate and parse
49
+ * @returns The extracted hostname from the URL
50
+ */
51
+ function validateAndParseSentryUrl(url) {
52
+ try {
53
+ return _validateAndParseSentryUrlInternal(url);
54
+ } catch (error) {
55
+ console.error(`Error: ${error.message}`);
56
+ process.exit(1);
57
+ }
58
+ }
59
+ /**
60
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
61
+ * Throws an error instead of exiting the process (for testing).
62
+ *
63
+ * @param host The hostname to validate
64
+ * @throws {Error} If the host contains a protocol
65
+ */
66
+ function validateSentryHostThrows(host) {
67
+ _validateSentryHostInternal(host);
68
+ }
69
+ /**
70
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
71
+ * Throws an error instead of exiting the process (for testing).
72
+ *
73
+ * @param url The HTTPS URL to validate and parse
74
+ * @returns The extracted hostname from the URL
75
+ * @throws {Error} If the URL is invalid or not HTTPS
76
+ */
77
+ function validateAndParseSentryUrlThrows(url) {
78
+ return _validateAndParseSentryUrlInternal(url);
79
+ }
80
+
81
+ //#endregion
82
+ Object.defineProperty(exports, 'validateAndParseSentryUrl', {
83
+ enumerable: true,
84
+ get: function () {
85
+ return validateAndParseSentryUrl;
86
+ }
87
+ });
88
+ Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
89
+ enumerable: true,
90
+ get: function () {
91
+ return validateAndParseSentryUrlThrows;
92
+ }
93
+ });
94
+ Object.defineProperty(exports, 'validateSentryHost', {
95
+ enumerable: true,
96
+ get: function () {
97
+ return validateSentryHost;
98
+ }
99
+ });
100
+ Object.defineProperty(exports, 'validateSentryHostThrows', {
101
+ enumerable: true,
102
+ get: function () {
103
+ return validateSentryHostThrows;
104
+ }
105
+ });
106
+ //# sourceMappingURL=url-utils-C9hykWmk.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils-C9hykWmk.cjs","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
@@ -0,0 +1,82 @@
1
+ //#region src/utils/url-utils.ts
2
+ /**
3
+ * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Throws an error if validation fails instead of exiting the process.
5
+ *
6
+ * @param host The hostname to validate
7
+ * @throws {Error} If the host contains a protocol
8
+ */
9
+ function _validateSentryHostInternal(host) {
10
+ if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
11
+ }
12
+ /**
13
+ * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
14
+ * Throws an error if validation fails instead of exiting the process.
15
+ *
16
+ * @param url The HTTPS URL to validate and parse
17
+ * @returns The extracted hostname from the URL
18
+ * @throws {Error} If the URL is invalid or not HTTPS
19
+ */
20
+ function _validateAndParseSentryUrlInternal(url) {
21
+ if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
22
+ try {
23
+ const parsedUrl = new URL(url);
24
+ return parsedUrl.host;
25
+ } catch (error) {
26
+ throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
27
+ }
28
+ }
29
+ /**
30
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
31
+ * Exits the process with error code 1 if validation fails (CLI behavior).
32
+ *
33
+ * @param host The hostname to validate
34
+ */
35
+ function validateSentryHost(host) {
36
+ try {
37
+ _validateSentryHostInternal(host);
38
+ } catch (error) {
39
+ console.error(`Error: ${error.message}`);
40
+ process.exit(1);
41
+ }
42
+ }
43
+ /**
44
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
45
+ * Exits the process with error code 1 if validation fails (CLI behavior).
46
+ *
47
+ * @param url The HTTPS URL to validate and parse
48
+ * @returns The extracted hostname from the URL
49
+ */
50
+ function validateAndParseSentryUrl(url) {
51
+ try {
52
+ return _validateAndParseSentryUrlInternal(url);
53
+ } catch (error) {
54
+ console.error(`Error: ${error.message}`);
55
+ process.exit(1);
56
+ }
57
+ }
58
+ /**
59
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
60
+ * Throws an error instead of exiting the process (for testing).
61
+ *
62
+ * @param host The hostname to validate
63
+ * @throws {Error} If the host contains a protocol
64
+ */
65
+ function validateSentryHostThrows(host) {
66
+ _validateSentryHostInternal(host);
67
+ }
68
+ /**
69
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
70
+ * Throws an error instead of exiting the process (for testing).
71
+ *
72
+ * @param url The HTTPS URL to validate and parse
73
+ * @returns The extracted hostname from the URL
74
+ * @throws {Error} If the URL is invalid or not HTTPS
75
+ */
76
+ function validateAndParseSentryUrlThrows(url) {
77
+ return _validateAndParseSentryUrlInternal(url);
78
+ }
79
+
80
+ //#endregion
81
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
82
+ //# sourceMappingURL=url-utils-DvZYfzPM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils-DvZYfzPM.js","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
@@ -0,0 +1,6 @@
1
+ const require_url_utils = require('../url-utils-C9hykWmk.cjs');
2
+
3
+ exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
4
+ exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
5
+ exports.validateSentryHost = require_url_utils.validateSentryHost;
6
+ exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;
@@ -0,0 +1,37 @@
1
+ //#region src/utils/url-utils.d.ts
2
+ /**
3
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Exits the process with error code 1 if validation fails (CLI behavior).
5
+ *
6
+ * @param host The hostname to validate
7
+ */
8
+ declare function validateSentryHost(host: string): void;
9
+ /**
10
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
11
+ * Exits the process with error code 1 if validation fails (CLI behavior).
12
+ *
13
+ * @param url The HTTPS URL to validate and parse
14
+ * @returns The extracted hostname from the URL
15
+ */
16
+ declare function validateAndParseSentryUrl(url: string): string;
17
+ /**
18
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
19
+ * Throws an error instead of exiting the process (for testing).
20
+ *
21
+ * @param host The hostname to validate
22
+ * @throws {Error} If the host contains a protocol
23
+ */
24
+ declare function validateSentryHostThrows(host: string): void;
25
+ /**
26
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
27
+ * Throws an error instead of exiting the process (for testing).
28
+ *
29
+ * @param url The HTTPS URL to validate and parse
30
+ * @returns The extracted hostname from the URL
31
+ * @throws {Error} If the URL is invalid or not HTTPS
32
+ */
33
+ declare function validateAndParseSentryUrlThrows(url: string): string;
34
+ //# sourceMappingURL=url-utils.d.ts.map
35
+ //#endregion
36
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
37
+ //# sourceMappingURL=url-utils.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
@@ -0,0 +1,37 @@
1
+ //#region src/utils/url-utils.d.ts
2
+ /**
3
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Exits the process with error code 1 if validation fails (CLI behavior).
5
+ *
6
+ * @param host The hostname to validate
7
+ */
8
+ declare function validateSentryHost(host: string): void;
9
+ /**
10
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
11
+ * Exits the process with error code 1 if validation fails (CLI behavior).
12
+ *
13
+ * @param url The HTTPS URL to validate and parse
14
+ * @returns The extracted hostname from the URL
15
+ */
16
+ declare function validateAndParseSentryUrl(url: string): string;
17
+ /**
18
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
19
+ * Throws an error instead of exiting the process (for testing).
20
+ *
21
+ * @param host The hostname to validate
22
+ * @throws {Error} If the host contains a protocol
23
+ */
24
+ declare function validateSentryHostThrows(host: string): void;
25
+ /**
26
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
27
+ * Throws an error instead of exiting the process (for testing).
28
+ *
29
+ * @param url The HTTPS URL to validate and parse
30
+ * @returns The extracted hostname from the URL
31
+ * @throws {Error} If the URL is invalid or not HTTPS
32
+ */
33
+ declare function validateAndParseSentryUrlThrows(url: string): string;
34
+ //# sourceMappingURL=url-utils.d.ts.map
35
+ //#endregion
36
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
37
+ //# sourceMappingURL=url-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
@@ -0,0 +1,3 @@
1
+ import { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows } from "../url-utils-DvZYfzPM.js";
2
+
3
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
@@ -0,0 +1,6 @@
1
+ //#region src/version.ts
2
+ const LIB_VERSION = typeof process !== "undefined" && "0.15.0" || "0.0.0";
3
+
4
+ //#endregion
5
+ export { LIB_VERSION };
6
+ //# sourceMappingURL=version-CcTnFB56.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-DvMKCu-i.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"],"mappings":";AAAA,MAAa,qBACH,YAAY,2BACpB"}
1
+ {"version":3,"file":"version-CcTnFB56.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"],"mappings":";AAAA,MAAa,qBACH,YAAY,2BACpB"}
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/version.ts
3
- const LIB_VERSION = typeof process !== "undefined" && "0.13.0" || "0.0.0";
3
+ const LIB_VERSION = typeof process !== "undefined" && "0.15.0" || "0.0.0";
4
4
 
5
5
  //#endregion
6
6
  Object.defineProperty(exports, 'LIB_VERSION', {
@@ -9,4 +9,4 @@ Object.defineProperty(exports, 'LIB_VERSION', {
9
9
  return LIB_VERSION;
10
10
  }
11
11
  });
12
- //# sourceMappingURL=version-Dyz6_b54.cjs.map
12
+ //# sourceMappingURL=version-rDjaSkPw.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-Dyz6_b54.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"],"mappings":";;AAAA,MAAa,qBACH,YAAY,2BACpB"}
1
+ {"version":3,"file":"version-rDjaSkPw.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"],"mappings":";;AAAA,MAAa,qBACH,YAAY,2BACpB"}
package/dist/version.cjs CHANGED
@@ -1,3 +1,3 @@
1
- const require_version = require('./version-Dyz6_b54.cjs');
1
+ const require_version = require('./version-rDjaSkPw.cjs');
2
2
 
3
3
  exports.LIB_VERSION = require_version.LIB_VERSION;
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- import { LIB_VERSION } from "./version-DvMKCu-i.js";
1
+ import { LIB_VERSION } from "./version-CcTnFB56.js";
2
2
 
3
3
  export { LIB_VERSION };
@@ -1,5 +1,5 @@
1
1
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
2
- const require_api_utils = require('./api-utils-BJS0CChW.cjs');
2
+ const require_api_utils = require('./api-utils-d36iteNO.cjs');
3
3
 
4
4
  //#region src/tools/whoami.ts
5
5
  var whoami_default = require_defineTool.defineTool({
@@ -25,4 +25,4 @@ Object.defineProperty(exports, 'whoami_default', {
25
25
  return whoami_default;
26
26
  }
27
27
  });
28
- //# sourceMappingURL=whoami-qIbcECMA.cjs.map
28
+ //# sourceMappingURL=whoami-CEgbTUqt.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-qIbcECMA.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\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 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 const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
1
+ {"version":3,"file":"whoami-CEgbTUqt.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\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 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 const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
@@ -1,5 +1,5 @@
1
1
  import { defineTool } from "./defineTool-77H4nSna.js";
2
- import { apiServiceFromContext } from "./api-utils-BcB1cMXS.js";
2
+ import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
3
3
 
4
4
  //#region src/tools/whoami.ts
5
5
  var whoami_default = defineTool({
@@ -20,4 +20,4 @@ var whoami_default = defineTool({
20
20
 
21
21
  //#endregion
22
22
  export { whoami_default };
23
- //# sourceMappingURL=whoami-raA70UBD.js.map
23
+ //# sourceMappingURL=whoami-DesNZnaQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-raA70UBD.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\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 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 const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
1
+ {"version":3,"file":"whoami-DesNZnaQ.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\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 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 const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/mcp-server",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -80,8 +80,8 @@
80
80
  "devDependencies": {
81
81
  "msw": "^2.10.2",
82
82
  "zod-to-json-schema": "^3.24.6",
83
- "@sentry/mcp-server-mocks": "0.13.0",
84
- "@sentry/mcp-server-tsconfig": "0.13.0"
83
+ "@sentry/mcp-server-mocks": "0.15.0",
84
+ "@sentry/mcp-server-tsconfig": "0.15.0"
85
85
  },
86
86
  "dependencies": {
87
87
  "@modelcontextprotocol/sdk": "^1.13.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze-issue-with-seer-Bq3kefOr.cjs","names":["context: ServerContext","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 \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\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: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\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 \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error 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 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 AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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":";;;;;;;;;;AAsBA,sCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,WAAW,gBAAgB;GAClD,kBAAkB;GAClB,SAAS;EACV,EAAC;AAGF,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT,aAAa,OAAO;GACrB,EAAC;AACF,cAAW,gCAAgC,YAAY,OAAO;AAG9D,S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CAAC,YACjB,WAAW,SAASC,yCAAsB;AAI5C,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS;GACV,EAAC;EACH;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,wCAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,2CAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgDD,kCAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze-issue-with-seer-Dk0ZFwN8.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 \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\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: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\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 \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error 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 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 AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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":";;;;;;;;;AAsBA,sCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAC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@@
1
- {"version":3,"file":"api-utils-BJS0CChW.cjs","names":["context: ServerContext","opts: { regionUrl?: string }","UserInputError","SentryApiService"],"sources":["../src/tools/utils/api-utils.ts"],"sourcesContent":["import { SentryApiService } from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.host;\n\n if (opts.regionUrl?.trim()) {\n try {\n const parsedUrl = new URL(opts.regionUrl);\n\n // Validate that the URL has a proper protocol\n if (![\"http:\", \"https:\"].includes(parsedUrl.protocol)) {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`,\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: ${opts.regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n host = parsedUrl.host;\n } catch (error) {\n if (error instanceof UserInputError) {\n throw error;\n }\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must be a valid URL.`,\n );\n }\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,CACxB,KAAI;EACF,MAAM,YAAY,IAAI,IAAI,KAAK;AAG/B,OAAK,CAAC,SAAS,QAAS,EAAC,SAAS,UAAU,SAAS,CACnD,OAAM,IAAIC,+BACP,8BAA8B,KAAK,UAAU;AAKlD,MAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,KAAK,UAAU;AAIlD,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,MAAI,iBAAiBA,8BACnB,OAAM;AAER,QAAM,IAAIA,+BACP,8BAA8B,KAAK,UAAU;CAEjD;AAGH,QAAO,IAAIC,gCAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-utils-BcB1cMXS.js","names":["context: ServerContext","opts: { regionUrl?: string }"],"sources":["../src/tools/utils/api-utils.ts"],"sourcesContent":["import { SentryApiService } from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.host;\n\n if (opts.regionUrl?.trim()) {\n try {\n const parsedUrl = new URL(opts.regionUrl);\n\n // Validate that the URL has a proper protocol\n if (![\"http:\", \"https:\"].includes(parsedUrl.protocol)) {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`,\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: ${opts.regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n host = parsedUrl.host;\n } catch (error) {\n if (error instanceof UserInputError) {\n throw error;\n }\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must be a valid URL.`,\n );\n }\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,CACxB,KAAI;EACF,MAAM,YAAY,IAAI,IAAI,KAAK;AAG/B,OAAK,CAAC,SAAS,QAAS,EAAC,SAAS,UAAU,SAAS,CACnD,OAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;AAKlD,MAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;AAIlD,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,MAAI,iBAAiB,eACnB,OAAM;AAER,QAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;CAEjD;AAGH,QAAO,IAAI,iBAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF"}