@sentry/mcp-server 0.15.0 → 0.17.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 (612) hide show
  1. package/dist/agent-COgY789I.js +225 -0
  2. package/dist/agent-COgY789I.js.map +1 -0
  3. package/dist/agent-Cody_f0d.cjs +59 -0
  4. package/dist/agent-Cody_f0d.cjs.map +1 -0
  5. package/dist/agent-DZRRChrO.js +53 -0
  6. package/dist/agent-DZRRChrO.js.map +1 -0
  7. package/dist/agent-DpCCnhh5.cjs +231 -0
  8. package/dist/agent-DpCCnhh5.cjs.map +1 -0
  9. package/dist/agent-tools/discover-dataset-fields.cjs +6 -0
  10. package/dist/agent-tools/discover-dataset-fields.d.cts +59 -0
  11. package/dist/agent-tools/discover-dataset-fields.d.cts.map +1 -0
  12. package/dist/agent-tools/discover-dataset-fields.d.ts +59 -0
  13. package/dist/agent-tools/discover-dataset-fields.d.ts.map +1 -0
  14. package/dist/agent-tools/discover-dataset-fields.js +3 -0
  15. package/dist/agent-tools/lookup-otel-semantics.cjs +5 -0
  16. package/dist/agent-tools/lookup-otel-semantics.d.cts +38 -0
  17. package/dist/agent-tools/lookup-otel-semantics.d.cts.map +1 -0
  18. package/dist/agent-tools/lookup-otel-semantics.d.ts +38 -0
  19. package/dist/agent-tools/lookup-otel-semantics.d.ts.map +1 -0
  20. package/dist/agent-tools/lookup-otel-semantics.js +4 -0
  21. package/dist/agent-tools/whoami.cjs +4 -0
  22. package/dist/agent-tools/whoami.d.cts +28 -0
  23. package/dist/agent-tools/whoami.d.cts.map +1 -0
  24. package/dist/agent-tools/whoami.d.ts +28 -0
  25. package/dist/agent-tools/whoami.d.ts.map +1 -0
  26. package/dist/agent-tools/whoami.js +3 -0
  27. package/dist/{analyze-issue-with-seer-CoqsTklL.js → analyze-issue-with-seer-DcSwrWrs.js} +51 -11
  28. package/dist/analyze-issue-with-seer-DcSwrWrs.js.map +1 -0
  29. package/dist/{analyze-issue-with-seer-BkVrrh28.cjs → analyze-issue-with-seer-Dw9iqvSk.cjs} +51 -11
  30. package/dist/analyze-issue-with-seer-Dw9iqvSk.cjs.map +1 -0
  31. package/dist/api-client/client.cjs +4 -2
  32. package/dist/api-client/client.d.cts +3 -3
  33. package/dist/api-client/client.d.ts +3 -3
  34. package/dist/api-client/client.js +4 -2
  35. package/dist/api-client/index.cjs +6 -4
  36. package/dist/api-client/index.d.cts +3 -3
  37. package/dist/api-client/index.d.ts +4 -4
  38. package/dist/api-client/index.js +6 -4
  39. package/dist/api-client/schema.cjs +1 -1
  40. package/dist/api-client/schema.d.cts +1 -1
  41. package/dist/api-client/schema.d.ts +1 -1
  42. package/dist/api-client/schema.js +1 -1
  43. package/dist/api-client/types.cjs +1 -1
  44. package/dist/api-client/types.d.cts +2 -2
  45. package/dist/api-client/types.d.ts +2 -2
  46. package/dist/api-client/types.js +1 -1
  47. package/dist/api-utils-BlUSO8xh.js +68 -0
  48. package/dist/api-utils-BlUSO8xh.js.map +1 -0
  49. package/dist/api-utils-DFWUfQ83.cjs +85 -0
  50. package/dist/api-utils-DFWUfQ83.cjs.map +1 -0
  51. package/dist/{client-Dkw5iYu3.cjs → client-CPrEfAwa.cjs} +403 -58
  52. package/dist/client-CPrEfAwa.cjs.map +1 -0
  53. package/dist/{client-CQ9Xe1aN.d.cts → client-C_dDreKj.d.ts} +198 -11
  54. package/dist/client-C_dDreKj.d.ts.map +1 -0
  55. package/dist/{client-VCJp6Kcu.d.ts → client-CgS3tjJG.d.cts} +198 -11
  56. package/dist/client-CgS3tjJG.d.cts.map +1 -0
  57. package/dist/{client-DOYWNvVM.js → client-MaVV1gVC.js} +403 -58
  58. package/dist/client-MaVV1gVC.js.map +1 -0
  59. package/dist/config-BUmDxVLS.js +52 -0
  60. package/dist/config-BUmDxVLS.js.map +1 -0
  61. package/dist/config-BvtWiL3I.js +449 -0
  62. package/dist/config-BvtWiL3I.js.map +1 -0
  63. package/dist/config-CD-5FpOO.cjs +479 -0
  64. package/dist/config-CD-5FpOO.cjs.map +1 -0
  65. package/dist/config-FWsgDbm7.cjs +58 -0
  66. package/dist/config-FWsgDbm7.cjs.map +1 -0
  67. package/dist/{create-dsn-Dz8nyTFw.cjs → create-dsn-C6IPwoVO.cjs} +12 -10
  68. package/dist/create-dsn-C6IPwoVO.cjs.map +1 -0
  69. package/dist/{create-dsn-D530I7Lr.js → create-dsn-QDLdwhDO.js} +12 -10
  70. package/dist/create-dsn-QDLdwhDO.js.map +1 -0
  71. package/dist/{create-project-K1od5Rhx.js → create-project-Cax3fWey.js} +14 -11
  72. package/dist/create-project-Cax3fWey.js.map +1 -0
  73. package/dist/{create-project-BxzRiryg.cjs → create-project-DdSF58TR.cjs} +14 -11
  74. package/dist/create-project-DdSF58TR.cjs.map +1 -0
  75. package/dist/{create-team-CJhrccc1.cjs → create-team-CXaLcylp.cjs} +14 -5
  76. package/dist/{create-team-CJhrccc1.cjs.map → create-team-CXaLcylp.cjs.map} +1 -1
  77. package/dist/{create-team-zHz00C6Q.js → create-team-nm06goO5.js} +14 -5
  78. package/dist/{create-team-zHz00C6Q.js.map → create-team-nm06goO5.js.map} +1 -1
  79. package/dist/discover-dataset-fields-BEnyqPSq.js +156 -0
  80. package/dist/discover-dataset-fields-BEnyqPSq.js.map +1 -0
  81. package/dist/discover-dataset-fields-Cl7HpVkm.cjs +180 -0
  82. package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +1 -0
  83. package/dist/errors-BtJEw2Z-.cjs +38 -0
  84. package/dist/errors-BtJEw2Z-.cjs.map +1 -0
  85. package/dist/errors-D_R568zP.js +26 -0
  86. package/dist/errors-D_R568zP.js.map +1 -0
  87. package/dist/errors.cjs +2 -1
  88. package/dist/errors.d.cts +10 -2
  89. package/dist/errors.d.cts.map +1 -1
  90. package/dist/errors.d.ts +10 -2
  91. package/dist/errors.d.ts.map +1 -1
  92. package/dist/errors.js +2 -2
  93. package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
  94. package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
  95. package/dist/fetch-utils-C_Xj921x.js +52 -0
  96. package/dist/fetch-utils-C_Xj921x.js.map +1 -0
  97. package/dist/fetch-utils-DkcYwqBo.cjs +64 -0
  98. package/dist/fetch-utils-DkcYwqBo.cjs.map +1 -0
  99. package/dist/fetch-utils-JDZw4XaU.d.ts +33 -0
  100. package/dist/fetch-utils-JDZw4XaU.d.ts.map +1 -0
  101. package/dist/{find-dsns-BoEP0N7B.js → find-dsns-C3G5aBm1.js} +3 -3
  102. package/dist/{find-dsns-BoEP0N7B.js.map → find-dsns-C3G5aBm1.js.map} +1 -1
  103. package/dist/{find-dsns-CK59RaUJ.cjs → find-dsns-vQolGM7e.cjs} +3 -3
  104. package/dist/{find-dsns-CK59RaUJ.cjs.map → find-dsns-vQolGM7e.cjs.map} +1 -1
  105. package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-BDtHkcFV.cjs} +3 -3
  106. package/dist/find-organizations-BDtHkcFV.cjs.map +1 -0
  107. package/dist/{find-organizations-ojXwWWzk.js → find-organizations-Cs1GvZtJ.js} +3 -3
  108. package/dist/find-organizations-Cs1GvZtJ.js.map +1 -0
  109. package/dist/{find-projects-fcLG4KpT.js → find-projects-B0NdOjBO.js} +4 -4
  110. package/dist/{find-projects-fcLG4KpT.js.map → find-projects-B0NdOjBO.js.map} +1 -1
  111. package/dist/{find-projects-BZWhlYJh.cjs → find-projects-xM2L0U1W.cjs} +4 -4
  112. package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-xM2L0U1W.cjs.map} +1 -1
  113. package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-BBTYr5Bx.cjs} +3 -3
  114. package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-BBTYr5Bx.cjs.map} +1 -1
  115. package/dist/{find-releases-BUozr0Z-.js → find-releases-BO2OF_uR.js} +3 -3
  116. package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BO2OF_uR.js.map} +1 -1
  117. package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-B237Aq8U.cjs} +4 -4
  118. package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-B237Aq8U.cjs.map} +1 -1
  119. package/dist/{find-teams-BZ118EIK.js → find-teams-CqUwp0EI.js} +4 -4
  120. package/dist/{find-teams-BZ118EIK.js.map → find-teams-CqUwp0EI.js.map} +1 -1
  121. package/dist/formatters-B3ONbRhI.js +79 -0
  122. package/dist/formatters-B3ONbRhI.js.map +1 -0
  123. package/dist/formatters-CfeBjhXZ.cjs +235 -0
  124. package/dist/formatters-CfeBjhXZ.cjs.map +1 -0
  125. package/dist/formatters-DSYXBiQx.js +217 -0
  126. package/dist/formatters-DSYXBiQx.js.map +1 -0
  127. package/dist/formatters-DbqofIoy.cjs +85 -0
  128. package/dist/formatters-DbqofIoy.cjs.map +1 -0
  129. package/dist/{formatting-CcTK2X8V.d.cts → formatting-BxyhA4G3.d.cts} +4 -4
  130. package/dist/formatting-BxyhA4G3.d.cts.map +1 -0
  131. package/dist/{formatting-D0Aki7rK.cjs → formatting-C180PVwd.cjs} +3 -3
  132. package/dist/formatting-C180PVwd.cjs.map +1 -0
  133. package/dist/{formatting-vtXxusbn.d.ts → formatting-C80LN9iK.d.ts} +4 -4
  134. package/dist/formatting-C80LN9iK.d.ts.map +1 -0
  135. package/dist/{formatting-Bvyded57.js → formatting-DIvCVunN.js} +3 -3
  136. package/dist/formatting-DIvCVunN.js.map +1 -0
  137. package/dist/{formatting-utils-DgOyTl-m.js → formatting-utils-C3sej5ER.js} +1 -1
  138. package/dist/{formatting-utils-DgOyTl-m.js.map → formatting-utils-C3sej5ER.js.map} +1 -1
  139. package/dist/{formatting-utils-m9R5bsRU.cjs → formatting-utils-DDz14xeB.cjs} +1 -1
  140. package/dist/{formatting-utils-m9R5bsRU.cjs.map → formatting-utils-DDz14xeB.cjs.map} +1 -1
  141. package/dist/{get-doc-DaTCenOE.cjs → get-doc-BfMg0GIa.cjs} +4 -4
  142. package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-BfMg0GIa.cjs.map} +1 -1
  143. package/dist/{get-doc-YTiQznr1.js → get-doc-DyqJe6TP.js} +4 -4
  144. package/dist/{get-doc-YTiQznr1.js.map → get-doc-DyqJe6TP.js.map} +1 -1
  145. package/dist/{get-event-attachment-DVCPpUMj.js → get-event-attachment-B-ElqztF.js} +3 -3
  146. package/dist/{get-event-attachment-DVCPpUMj.js.map → get-event-attachment-B-ElqztF.js.map} +1 -1
  147. package/dist/{get-event-attachment-C-ig2-3F.cjs → get-event-attachment-o0oH43Tv.cjs} +3 -3
  148. package/dist/{get-event-attachment-C-ig2-3F.cjs.map → get-event-attachment-o0oH43Tv.cjs.map} +1 -1
  149. package/dist/{get-issue-details-lBrYR9yx.cjs → get-issue-details-CP_RyCpt.cjs} +27 -20
  150. package/dist/get-issue-details-CP_RyCpt.cjs.map +1 -0
  151. package/dist/{get-issue-details-Dcmzxknx.js → get-issue-details-CzroF7HR.js} +27 -20
  152. package/dist/get-issue-details-CzroF7HR.js.map +1 -0
  153. package/dist/handler-BGhr9FJM.d.cts +15 -0
  154. package/dist/handler-BGhr9FJM.d.cts.map +1 -0
  155. package/dist/handler-BH_OLIbD.cjs +152 -0
  156. package/dist/handler-BH_OLIbD.cjs.map +1 -0
  157. package/dist/handler-BPPTAi7I.d.ts +15 -0
  158. package/dist/handler-BPPTAi7I.d.ts.map +1 -0
  159. package/dist/handler-BZ3hKPb8.d.cts +15 -0
  160. package/dist/handler-BZ3hKPb8.d.cts.map +1 -0
  161. package/dist/handler-O9fYgC9a.cjs +114 -0
  162. package/dist/handler-O9fYgC9a.cjs.map +1 -0
  163. package/dist/handler-aE_8mEm7.js +146 -0
  164. package/dist/handler-aE_8mEm7.js.map +1 -0
  165. package/dist/handler-cUB6XcUV.d.ts +15 -0
  166. package/dist/handler-cUB6XcUV.d.ts.map +1 -0
  167. package/dist/handler-ykkULTZ-.js +108 -0
  168. package/dist/handler-ykkULTZ-.js.map +1 -0
  169. package/dist/index.cjs +54 -44
  170. package/dist/index.cjs.map +1 -1
  171. package/dist/index.js +54 -44
  172. package/dist/index.js.map +1 -1
  173. package/dist/internal/fetch-utils.cjs +3 -2
  174. package/dist/internal/fetch-utils.d.cts +2 -2
  175. package/dist/internal/fetch-utils.d.ts +2 -2
  176. package/dist/internal/fetch-utils.js +2 -2
  177. package/dist/internal/formatting.cjs +2 -2
  178. package/dist/internal/formatting.d.cts +4 -4
  179. package/dist/internal/formatting.d.ts +5 -5
  180. package/dist/internal/formatting.js +2 -2
  181. package/dist/internal/issue-helpers.cjs +2 -1
  182. package/dist/internal/issue-helpers.d.ts +1 -1
  183. package/dist/internal/issue-helpers.js +2 -1
  184. package/dist/internal/test-fixtures.d.cts +164 -164
  185. package/dist/internal/test-fixtures.d.cts.map +1 -1
  186. package/dist/internal/test-fixtures.d.ts +38 -38
  187. package/dist/internal/test-fixtures.d.ts.map +1 -1
  188. package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-CRx45FYG.js} +15 -19
  189. package/dist/issue-helpers-CRx45FYG.js.map +1 -0
  190. package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
  191. package/dist/{issue-helpers-BJffpNoO.d.ts → issue-helpers-D1_Uqr-F.d.ts} +1 -1
  192. package/dist/issue-helpers-D1_Uqr-F.d.ts.map +1 -0
  193. package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-s5fKLwJZ.cjs} +14 -19
  194. package/dist/issue-helpers-s5fKLwJZ.cjs.map +1 -0
  195. package/dist/{logging-CX2buXiG.cjs → logging-BpL53bY6.cjs} +1 -1
  196. package/dist/{logging-CX2buXiG.cjs.map → logging-BpL53bY6.cjs.map} +1 -1
  197. package/dist/{logging-DzxYBMrn.js → logging-tGU_SYcA.js} +1 -1
  198. package/dist/{logging-DzxYBMrn.js.map → logging-tGU_SYcA.js.map} +1 -1
  199. package/dist/logging.cjs +1 -1
  200. package/dist/logging.js +1 -1
  201. package/dist/lookup-otel-semantics-BbriXZAx.cjs +5088 -0
  202. package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +1 -0
  203. package/dist/lookup-otel-semantics-Dt667kdR.js +5076 -0
  204. package/dist/lookup-otel-semantics-Dt667kdR.js.map +1 -0
  205. package/dist/{promptDefinitions-C29BWGYg.cjs → promptDefinitions-5V4-M69A.cjs} +2 -2
  206. package/dist/{promptDefinitions-C29BWGYg.cjs.map → promptDefinitions-5V4-M69A.cjs.map} +1 -1
  207. package/dist/{promptDefinitions-D3GTBGLr.d.ts → promptDefinitions-DehpwJfn.d.ts} +1 -1
  208. package/dist/promptDefinitions-DehpwJfn.d.ts.map +1 -0
  209. package/dist/{promptDefinitions-CSKE8T0a.js → promptDefinitions-DyshsF51.js} +2 -2
  210. package/dist/{promptDefinitions-CSKE8T0a.js.map → promptDefinitions-DyshsF51.js.map} +1 -1
  211. package/dist/promptDefinitions.cjs +2 -2
  212. package/dist/promptDefinitions.d.ts +1 -1
  213. package/dist/promptDefinitions.js +2 -2
  214. package/dist/{prompts-Df3i1XSB.cjs → prompts-BTtNbKQR.cjs} +7 -5
  215. package/dist/prompts-BTtNbKQR.cjs.map +1 -0
  216. package/dist/{prompts-C8Y9w5c4.js → prompts-CYcvIxWR.js} +7 -5
  217. package/dist/prompts-CYcvIxWR.js.map +1 -0
  218. package/dist/prompts.cjs +2 -2
  219. package/dist/prompts.d.cts +1 -1
  220. package/dist/prompts.d.cts.map +1 -1
  221. package/dist/prompts.d.ts +2 -2
  222. package/dist/prompts.d.ts.map +1 -1
  223. package/dist/prompts.js +2 -2
  224. package/dist/resources-CSxBC9gs.js +60 -0
  225. package/dist/resources-CSxBC9gs.js.map +1 -0
  226. package/dist/resources-TCvijqOA.cjs +72 -0
  227. package/dist/resources-TCvijqOA.cjs.map +1 -0
  228. package/dist/resources.cjs +2 -2
  229. package/dist/resources.d.cts.map +1 -1
  230. package/dist/resources.d.ts.map +1 -1
  231. package/dist/resources.js +2 -2
  232. package/dist/{schema-3NeMWRAm.d.cts → schema-BlkWypl3.d.ts} +155 -155
  233. package/dist/schema-BlkWypl3.d.ts.map +1 -0
  234. package/dist/{schema-DtsnsxMl.js → schema-Bv2fvxgy.js} +2 -2
  235. package/dist/{schema-DtsnsxMl.js.map → schema-Bv2fvxgy.js.map} +1 -1
  236. package/dist/{schema-B_cMyyJJ.cjs → schema-C0LznFvu.cjs} +4 -4
  237. package/dist/schema-C0LznFvu.cjs.map +1 -0
  238. package/dist/{schema-WDk5Yqww.js → schema-CcFmBoEf.js} +4 -4
  239. package/dist/schema-CcFmBoEf.js.map +1 -0
  240. package/dist/{schema-B3CzDGJk.d.ts → schema-CdDcpvrp.d.cts} +375 -375
  241. package/dist/schema-CdDcpvrp.d.cts.map +1 -0
  242. package/dist/{schema-BpJVmev8.cjs → schema-DPL_hZXP.cjs} +2 -2
  243. package/dist/{schema-BpJVmev8.cjs.map → schema-DPL_hZXP.cjs.map} +1 -1
  244. package/dist/schema.cjs +1 -1
  245. package/dist/schema.js +1 -1
  246. package/dist/{search-docs-D5Foht_0.cjs → search-docs-CjIZDaD1.cjs} +4 -4
  247. package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-CjIZDaD1.cjs.map} +1 -1
  248. package/dist/{search-docs-BLbB_GV2.js → search-docs-ss09Dt0F.js} +4 -4
  249. package/dist/{search-docs-BLbB_GV2.js.map → search-docs-ss09Dt0F.js.map} +1 -1
  250. package/dist/search-issues-BFgCvRYe.js +0 -0
  251. package/dist/search-issues-Biu64RkQ.cjs +0 -0
  252. package/dist/{seer-utils-CDm5J8ur.cjs → seer-utils-C7Kv0gr8.cjs} +15 -1
  253. package/dist/seer-utils-C7Kv0gr8.cjs.map +1 -0
  254. package/dist/{seer-utils-Cj9DXrow.js → seer-utils-NPHv8KYY.js} +4 -2
  255. package/dist/seer-utils-NPHv8KYY.js.map +1 -0
  256. package/dist/{server-BSRxzYFd.js → server-D78x_7Vz.js} +80 -26
  257. package/dist/server-D78x_7Vz.js.map +1 -0
  258. package/dist/{server-Dgkqz8bA.cjs → server-DYFiTMLB.cjs} +80 -26
  259. package/dist/server-DYFiTMLB.cjs.map +1 -0
  260. package/dist/server.cjs +52 -40
  261. package/dist/server.d.cts +4 -2
  262. package/dist/server.d.cts.map +1 -1
  263. package/dist/server.d.ts +5 -3
  264. package/dist/server.d.ts.map +1 -1
  265. package/dist/server.js +52 -40
  266. package/dist/{stdio-BQAm0Liz.cjs → stdio-Be01KQkA.cjs} +3 -3
  267. package/dist/{stdio-BQAm0Liz.cjs.map → stdio-Be01KQkA.cjs.map} +1 -1
  268. package/dist/{stdio-BcihaDjO.js → stdio-CDb2NHHD.js} +3 -3
  269. package/dist/{stdio-BcihaDjO.js.map → stdio-CDb2NHHD.js.map} +1 -1
  270. package/dist/test-setup.cjs +371 -0
  271. package/dist/test-setup.cjs.map +1 -1
  272. package/dist/test-setup.js +371 -0
  273. package/dist/test-setup.js.map +1 -1
  274. package/dist/toolDefinitions.cjs +184 -0
  275. package/dist/toolDefinitions.cjs.map +1 -0
  276. package/dist/toolDefinitions.d.cts +13 -0
  277. package/dist/toolDefinitions.d.cts.map +1 -0
  278. package/dist/toolDefinitions.d.ts +8 -20
  279. package/dist/toolDefinitions.d.ts.map +1 -0
  280. package/dist/toolDefinitions.js +183 -1059
  281. package/dist/toolDefinitions.js.map +1 -0
  282. package/dist/tools/analyze-issue-with-seer.cjs +14 -12
  283. package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
  284. package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
  285. package/dist/tools/analyze-issue-with-seer.js +14 -12
  286. package/dist/tools/create-dsn.cjs +9 -8
  287. package/dist/tools/create-dsn.d.cts +2 -2
  288. package/dist/tools/create-dsn.d.ts +3 -3
  289. package/dist/tools/create-dsn.js +9 -8
  290. package/dist/tools/create-project.cjs +10 -9
  291. package/dist/tools/create-project.d.cts +2 -2
  292. package/dist/tools/create-project.d.ts +3 -3
  293. package/dist/tools/create-project.js +10 -9
  294. package/dist/tools/create-team.cjs +9 -8
  295. package/dist/tools/create-team.d.cts +2 -2
  296. package/dist/tools/create-team.d.ts +3 -3
  297. package/dist/tools/create-team.js +9 -8
  298. package/dist/tools/find-dsns.cjs +9 -8
  299. package/dist/tools/find-dsns.d.cts +2 -2
  300. package/dist/tools/find-dsns.d.ts +3 -3
  301. package/dist/tools/find-dsns.js +9 -8
  302. package/dist/tools/find-organizations.cjs +8 -7
  303. package/dist/tools/find-organizations.d.cts +2 -2
  304. package/dist/tools/find-organizations.d.ts +3 -3
  305. package/dist/tools/find-organizations.js +8 -7
  306. package/dist/tools/find-projects.cjs +9 -8
  307. package/dist/tools/find-projects.d.cts +2 -2
  308. package/dist/tools/find-projects.d.ts +3 -3
  309. package/dist/tools/find-projects.js +9 -8
  310. package/dist/tools/find-releases.cjs +9 -8
  311. package/dist/tools/find-releases.d.cts +2 -2
  312. package/dist/tools/find-releases.d.ts +3 -3
  313. package/dist/tools/find-releases.js +9 -8
  314. package/dist/tools/find-teams.cjs +9 -8
  315. package/dist/tools/find-teams.d.cts +2 -2
  316. package/dist/tools/find-teams.d.ts +3 -3
  317. package/dist/tools/find-teams.js +9 -8
  318. package/dist/tools/get-doc.cjs +9 -8
  319. package/dist/tools/get-doc.d.cts +2 -2
  320. package/dist/tools/get-doc.d.ts +3 -3
  321. package/dist/tools/get-doc.js +9 -8
  322. package/dist/tools/get-event-attachment.cjs +9 -8
  323. package/dist/tools/get-event-attachment.d.cts +2 -2
  324. package/dist/tools/get-event-attachment.d.ts +3 -3
  325. package/dist/tools/get-event-attachment.js +9 -8
  326. package/dist/tools/get-issue-details.cjs +13 -12
  327. package/dist/tools/get-issue-details.d.cts +2 -2
  328. package/dist/tools/get-issue-details.d.ts +3 -3
  329. package/dist/tools/get-issue-details.js +13 -12
  330. package/dist/tools/index.cjs +47 -36
  331. package/dist/tools/index.d.cts +74 -86
  332. package/dist/tools/index.d.cts.map +1 -1
  333. package/dist/tools/index.d.ts +15 -27
  334. package/dist/tools/index.d.ts.map +1 -1
  335. package/dist/tools/index.js +47 -36
  336. package/dist/tools/search-docs.cjs +10 -8
  337. package/dist/tools/search-docs.d.cts +2 -2
  338. package/dist/tools/search-docs.d.ts +3 -3
  339. package/dist/tools/search-docs.js +10 -8
  340. package/dist/tools/search-events/agent.cjs +8 -0
  341. package/dist/tools/search-events/agent.d.cts +43 -0
  342. package/dist/tools/search-events/agent.d.cts.map +1 -0
  343. package/dist/tools/search-events/agent.d.ts +43 -0
  344. package/dist/tools/search-events/agent.d.ts.map +1 -0
  345. package/dist/tools/search-events/agent.js +8 -0
  346. package/dist/tools/search-events/config.cjs +7 -0
  347. package/dist/tools/search-events/config.d.cts +131 -0
  348. package/dist/tools/search-events/config.d.cts.map +1 -0
  349. package/dist/tools/search-events/config.d.ts +131 -0
  350. package/dist/tools/search-events/config.d.ts.map +1 -0
  351. package/dist/tools/search-events/config.js +3 -0
  352. package/dist/tools/search-events/formatters.cjs +8 -0
  353. package/dist/tools/search-events/formatters.d.cts +32 -0
  354. package/dist/tools/search-events/formatters.d.cts.map +1 -0
  355. package/dist/tools/search-events/formatters.d.ts +32 -0
  356. package/dist/tools/search-events/formatters.d.ts.map +1 -0
  357. package/dist/tools/search-events/formatters.js +6 -0
  358. package/dist/tools/search-events/handler.cjs +20 -0
  359. package/dist/tools/search-events/handler.d.cts +5 -0
  360. package/dist/tools/search-events/handler.d.ts +5 -0
  361. package/dist/tools/search-events/handler.js +20 -0
  362. package/dist/tools/search-events/index.cjs +21 -0
  363. package/dist/tools/search-events/index.d.cts +5 -0
  364. package/dist/tools/search-events/index.d.ts +5 -0
  365. package/dist/tools/search-events/index.js +21 -0
  366. package/dist/tools/search-events/utils.cjs +9 -0
  367. package/dist/tools/search-events/utils.d.cts +6 -0
  368. package/dist/tools/search-events/utils.d.ts +6 -0
  369. package/dist/tools/search-events/utils.js +5 -0
  370. package/dist/tools/search-issues/agent.cjs +7 -0
  371. package/dist/tools/search-issues/agent.d.cts +33 -0
  372. package/dist/tools/search-issues/agent.d.cts.map +1 -0
  373. package/dist/tools/search-issues/agent.d.ts +33 -0
  374. package/dist/tools/search-issues/agent.d.ts.map +1 -0
  375. package/dist/tools/search-issues/agent.js +7 -0
  376. package/dist/tools/search-issues/config.cjs +3 -0
  377. package/dist/tools/search-issues/config.d.cts +9 -0
  378. package/dist/tools/search-issues/config.d.cts.map +1 -0
  379. package/dist/tools/search-issues/config.d.ts +9 -0
  380. package/dist/tools/search-issues/config.d.ts.map +1 -0
  381. package/dist/tools/search-issues/config.js +3 -0
  382. package/dist/tools/search-issues/formatters.cjs +4 -0
  383. package/dist/tools/search-issues/formatters.d.cts +15 -0
  384. package/dist/tools/search-issues/formatters.d.cts.map +1 -0
  385. package/dist/tools/search-issues/formatters.d.ts +15 -0
  386. package/dist/tools/search-issues/formatters.d.ts.map +1 -0
  387. package/dist/tools/search-issues/formatters.js +4 -0
  388. package/dist/tools/search-issues/handler.cjs +18 -0
  389. package/dist/tools/search-issues/handler.d.cts +5 -0
  390. package/dist/tools/search-issues/handler.d.ts +5 -0
  391. package/dist/tools/search-issues/handler.js +18 -0
  392. package/dist/tools/search-issues/index.cjs +19 -0
  393. package/dist/tools/search-issues/index.d.cts +5 -0
  394. package/dist/tools/search-issues/index.d.ts +5 -0
  395. package/dist/tools/search-issues/index.js +19 -0
  396. package/dist/tools/types.d.cts +2 -2
  397. package/dist/tools/types.d.ts +3 -3
  398. package/dist/tools/update-issue.cjs +14 -13
  399. package/dist/tools/update-issue.d.cts +2 -2
  400. package/dist/tools/update-issue.d.ts +3 -3
  401. package/dist/tools/update-issue.js +14 -13
  402. package/dist/tools/update-project.cjs +10 -9
  403. package/dist/tools/update-project.d.cts +2 -2
  404. package/dist/tools/update-project.d.ts +3 -3
  405. package/dist/tools/update-project.js +10 -9
  406. package/dist/tools/utils/api-utils.cjs +10 -7
  407. package/dist/tools/utils/api-utils.d.cts +23 -6
  408. package/dist/tools/utils/api-utils.d.cts.map +1 -1
  409. package/dist/tools/utils/api-utils.d.ts +25 -8
  410. package/dist/tools/utils/api-utils.d.ts.map +1 -1
  411. package/dist/tools/utils/api-utils.js +8 -7
  412. package/dist/tools/utils/defineTool.d.cts +2 -2
  413. package/dist/tools/utils/defineTool.d.ts +3 -3
  414. package/dist/tools/utils/fetch-utils.cjs +4 -3
  415. package/dist/tools/utils/fetch-utils.d.cts +2 -2
  416. package/dist/tools/utils/fetch-utils.d.ts +2 -2
  417. package/dist/tools/utils/fetch-utils.js +3 -3
  418. package/dist/tools/utils/formatting-utils.cjs +1 -1
  419. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  420. package/dist/tools/utils/formatting-utils.d.ts +4 -4
  421. package/dist/tools/utils/formatting-utils.js +1 -1
  422. package/dist/tools/utils/issue-utils.cjs +5 -4
  423. package/dist/tools/utils/issue-utils.d.cts +4 -4
  424. package/dist/tools/utils/issue-utils.d.ts +6 -6
  425. package/dist/tools/utils/issue-utils.js +5 -4
  426. package/dist/tools/utils/seer-utils.cjs +3 -1
  427. package/dist/tools/utils/seer-utils.d.cts +6 -4
  428. package/dist/tools/utils/seer-utils.d.cts.map +1 -1
  429. package/dist/tools/utils/seer-utils.d.ts +7 -5
  430. package/dist/tools/utils/seer-utils.d.ts.map +1 -1
  431. package/dist/tools/utils/seer-utils.js +2 -2
  432. package/dist/tools/whoami.cjs +8 -7
  433. package/dist/tools/whoami.d.cts +2 -2
  434. package/dist/tools/whoami.d.ts +3 -3
  435. package/dist/tools/whoami.js +8 -7
  436. package/dist/tools-DvKm5uMs.js +44 -0
  437. package/dist/tools-DvKm5uMs.js.map +1 -0
  438. package/dist/tools-sQ2wM3Pi.cjs +49 -0
  439. package/dist/tools-sQ2wM3Pi.cjs.map +1 -0
  440. package/dist/transports/stdio.cjs +53 -42
  441. package/dist/transports/stdio.d.cts +1 -1
  442. package/dist/transports/stdio.d.ts +2 -2
  443. package/dist/transports/stdio.js +53 -42
  444. package/dist/types-6zHoEWAx.js +0 -0
  445. package/dist/{types-DpV1JAZj.d.ts → types-B-8S69No.d.ts} +2 -2
  446. package/dist/{types-DpV1JAZj.d.ts.map → types-B-8S69No.d.ts.map} +1 -1
  447. package/dist/{types-qB8a4WQT.d.ts → types-BOcoP3Na.d.ts} +2 -2
  448. package/dist/{types-qB8a4WQT.d.ts.map → types-BOcoP3Na.d.ts.map} +1 -1
  449. package/dist/{types-CUN-2OSS.d.cts → types-BV-G5sBp.d.cts} +4 -2
  450. package/dist/{types-CUN-2OSS.d.cts.map → types-BV-G5sBp.d.cts.map} +1 -1
  451. package/dist/{types-BoMP-Ro6.d.cts → types-BYtO24VE.d.cts} +2 -2
  452. package/dist/{types-BoMP-Ro6.d.cts.map → types-BYtO24VE.d.cts.map} +1 -1
  453. package/dist/{types-DkJtNDXU.d.ts → types-C1Fih0eQ.d.ts} +5 -3
  454. package/dist/{types-DkJtNDXU.d.ts.map → types-C1Fih0eQ.d.ts.map} +1 -1
  455. package/dist/types-DdloOYgD.cjs +0 -0
  456. package/dist/{types-D_mx318Q.d.cts → types-aOEJ0KgQ.d.cts} +2 -2
  457. package/dist/{types-D_mx318Q.d.cts.map → types-aOEJ0KgQ.d.cts.map} +1 -1
  458. package/dist/types.d.cts +1 -1
  459. package/dist/types.d.ts +2 -2
  460. package/dist/{update-issue-DpkxxiNk.cjs → update-issue-D77PudUi.cjs} +20 -13
  461. package/dist/update-issue-D77PudUi.cjs.map +1 -0
  462. package/dist/{update-issue-DRTQvy6p.js → update-issue-ndy2PF5G.js} +20 -13
  463. package/dist/update-issue-ndy2PF5G.js.map +1 -0
  464. package/dist/{update-project-YLxt2ry2.js → update-project-Bxsi-BG_.js} +5 -5
  465. package/dist/{update-project-YLxt2ry2.js.map → update-project-Bxsi-BG_.js.map} +1 -1
  466. package/dist/{update-project-DLDDbcGY.cjs → update-project-DqECtbDA.cjs} +5 -5
  467. package/dist/{update-project-DLDDbcGY.cjs.map → update-project-DqECtbDA.cjs.map} +1 -1
  468. package/dist/url-utils-IqgSmI-B.js +152 -0
  469. package/dist/url-utils-IqgSmI-B.js.map +1 -0
  470. package/dist/url-utils-vJo2ER5v.cjs +206 -0
  471. package/dist/url-utils-vJo2ER5v.cjs.map +1 -0
  472. package/dist/utils/url-utils.cjs +6 -1
  473. package/dist/utils/url-utils.d.cts +43 -1
  474. package/dist/utils/url-utils.d.cts.map +1 -1
  475. package/dist/utils/url-utils.d.ts +43 -1
  476. package/dist/utils/url-utils.d.ts.map +1 -1
  477. package/dist/utils/url-utils.js +2 -2
  478. package/dist/utils-BwXbSgEI.d.ts +35 -0
  479. package/dist/utils-BwXbSgEI.d.ts.map +1 -0
  480. package/dist/utils-CqbeJfE1.cjs +138 -0
  481. package/dist/utils-CqbeJfE1.cjs.map +1 -0
  482. package/dist/utils-CtBGHj_N.d.cts +35 -0
  483. package/dist/utils-CtBGHj_N.d.cts.map +1 -0
  484. package/dist/utils-OgYE-imr.js +108 -0
  485. package/dist/utils-OgYE-imr.js.map +1 -0
  486. package/dist/version-Bj68uyCt.js +6 -0
  487. package/dist/{version-CcTnFB56.js.map → version-Bj68uyCt.js.map} +1 -1
  488. package/dist/{version-rDjaSkPw.cjs → version-CMS1IOUV.cjs} +2 -2
  489. package/dist/{version-rDjaSkPw.cjs.map → version-CMS1IOUV.cjs.map} +1 -1
  490. package/dist/version.cjs +1 -1
  491. package/dist/version.js +1 -1
  492. package/dist/{whoami-CEgbTUqt.cjs → whoami-BOJHfdih.cjs} +2 -2
  493. package/dist/{whoami-CEgbTUqt.cjs.map → whoami-BOJHfdih.cjs.map} +1 -1
  494. package/dist/{whoami-DesNZnaQ.js → whoami-Bswhb72a.js} +2 -2
  495. package/dist/{whoami-DesNZnaQ.js.map → whoami-Bswhb72a.js.map} +1 -1
  496. package/dist/whoami-CoZJKpys.cjs +44 -0
  497. package/dist/whoami-CoZJKpys.cjs.map +1 -0
  498. package/dist/whoami-xBAWvzG4.js +32 -0
  499. package/dist/whoami-xBAWvzG4.js.map +1 -0
  500. package/package.json +14 -7
  501. package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +0 -1
  502. package/dist/analyze-issue-with-seer-CoqsTklL.js.map +0 -1
  503. package/dist/api-utils-C6QJAzFL.js +0 -31
  504. package/dist/api-utils-C6QJAzFL.js.map +0 -1
  505. package/dist/api-utils-d36iteNO.cjs +0 -36
  506. package/dist/api-utils-d36iteNO.cjs.map +0 -1
  507. package/dist/client-CQ9Xe1aN.d.cts.map +0 -1
  508. package/dist/client-DOYWNvVM.js.map +0 -1
  509. package/dist/client-Dkw5iYu3.cjs.map +0 -1
  510. package/dist/client-VCJp6Kcu.d.ts.map +0 -1
  511. package/dist/create-dsn-D530I7Lr.js.map +0 -1
  512. package/dist/create-dsn-Dz8nyTFw.cjs.map +0 -1
  513. package/dist/create-project-BxzRiryg.cjs.map +0 -1
  514. package/dist/create-project-K1od5Rhx.js.map +0 -1
  515. package/dist/errors-CIoxzIug.js +0 -15
  516. package/dist/errors-CIoxzIug.js.map +0 -1
  517. package/dist/errors-YmiXLOyx.cjs +0 -21
  518. package/dist/errors-YmiXLOyx.cjs.map +0 -1
  519. package/dist/fetch-utils-BMKjO-cc.js +0 -29
  520. package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
  521. package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
  522. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
  523. package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
  524. package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
  525. package/dist/fetch-utils-oab6uNp3.cjs +0 -35
  526. package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
  527. package/dist/find-errors-C3oUMeRi.js +0 -91
  528. package/dist/find-errors-C3oUMeRi.js.map +0 -1
  529. package/dist/find-errors-CB9NpSxG.cjs +0 -97
  530. package/dist/find-errors-CB9NpSxG.cjs.map +0 -1
  531. package/dist/find-issues-C3uk59rn.cjs +0 -98
  532. package/dist/find-issues-C3uk59rn.cjs.map +0 -1
  533. package/dist/find-issues-CAtNGBly.js +0 -92
  534. package/dist/find-issues-CAtNGBly.js.map +0 -1
  535. package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
  536. package/dist/find-organizations-ojXwWWzk.js.map +0 -1
  537. package/dist/find-tags-Byk4d3oZ.cjs +0 -45
  538. package/dist/find-tags-Byk4d3oZ.cjs.map +0 -1
  539. package/dist/find-tags-d-wF1Se8.js +0 -39
  540. package/dist/find-tags-d-wF1Se8.js.map +0 -1
  541. package/dist/find-transactions-BiBgg-AE.js +0 -83
  542. package/dist/find-transactions-BiBgg-AE.js.map +0 -1
  543. package/dist/find-transactions-DuZyqjhF.cjs +0 -89
  544. package/dist/find-transactions-DuZyqjhF.cjs.map +0 -1
  545. package/dist/formatting-Bvyded57.js.map +0 -1
  546. package/dist/formatting-CcTK2X8V.d.cts.map +0 -1
  547. package/dist/formatting-D0Aki7rK.cjs.map +0 -1
  548. package/dist/formatting-vtXxusbn.d.ts.map +0 -1
  549. package/dist/get-issue-details-Dcmzxknx.js.map +0 -1
  550. package/dist/get-issue-details-lBrYR9yx.cjs.map +0 -1
  551. package/dist/issue-helpers-BJffpNoO.d.ts.map +0 -1
  552. package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
  553. package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
  554. package/dist/promptDefinitions-D3GTBGLr.d.ts.map +0 -1
  555. package/dist/prompts-C8Y9w5c4.js.map +0 -1
  556. package/dist/prompts-Df3i1XSB.cjs.map +0 -1
  557. package/dist/resources-BHF8a1ZB.js +0 -92
  558. package/dist/resources-BHF8a1ZB.js.map +0 -1
  559. package/dist/resources-BM_YQGcb.cjs +0 -104
  560. package/dist/resources-BM_YQGcb.cjs.map +0 -1
  561. package/dist/schema-3NeMWRAm.d.cts.map +0 -1
  562. package/dist/schema-B3CzDGJk.d.ts.map +0 -1
  563. package/dist/schema-B_cMyyJJ.cjs.map +0 -1
  564. package/dist/schema-WDk5Yqww.js.map +0 -1
  565. package/dist/seer-utils-CDm5J8ur.cjs.map +0 -1
  566. package/dist/seer-utils-Cj9DXrow.js.map +0 -1
  567. package/dist/server-BSRxzYFd.js.map +0 -1
  568. package/dist/server-Dgkqz8bA.cjs.map +0 -1
  569. package/dist/tools/find-errors.cjs +0 -12
  570. package/dist/tools/find-errors.d.cts +0 -18
  571. package/dist/tools/find-errors.d.cts.map +0 -1
  572. package/dist/tools/find-errors.d.ts +0 -18
  573. package/dist/tools/find-errors.d.ts.map +0 -1
  574. package/dist/tools/find-errors.js +0 -12
  575. package/dist/tools/find-issues.cjs +0 -12
  576. package/dist/tools/find-issues.d.cts +0 -16
  577. package/dist/tools/find-issues.d.cts.map +0 -1
  578. package/dist/tools/find-issues.d.ts +0 -16
  579. package/dist/tools/find-issues.d.ts.map +0 -1
  580. package/dist/tools/find-issues.js +0 -12
  581. package/dist/tools/find-tags.cjs +0 -12
  582. package/dist/tools/find-tags.d.cts +0 -13
  583. package/dist/tools/find-tags.d.cts.map +0 -1
  584. package/dist/tools/find-tags.d.ts +0 -13
  585. package/dist/tools/find-tags.d.ts.map +0 -1
  586. package/dist/tools/find-tags.js +0 -12
  587. package/dist/tools/find-transactions.cjs +0 -12
  588. package/dist/tools/find-transactions.d.cts +0 -17
  589. package/dist/tools/find-transactions.d.cts.map +0 -1
  590. package/dist/tools/find-transactions.d.ts +0 -17
  591. package/dist/tools/find-transactions.d.ts.map +0 -1
  592. package/dist/tools/find-transactions.js +0 -12
  593. package/dist/tools-CHnZvVEN.cjs +0 -53
  594. package/dist/tools-CHnZvVEN.cjs.map +0 -1
  595. package/dist/tools-CdXGgq1W.js +0 -48
  596. package/dist/tools-CdXGgq1W.js.map +0 -1
  597. package/dist/update-issue-DRTQvy6p.js.map +0 -1
  598. package/dist/update-issue-DpkxxiNk.cjs.map +0 -1
  599. package/dist/url-utils-C9hykWmk.cjs +0 -106
  600. package/dist/url-utils-C9hykWmk.cjs.map +0 -1
  601. package/dist/url-utils-DvZYfzPM.js +0 -82
  602. package/dist/url-utils-DvZYfzPM.js.map +0 -1
  603. package/dist/version-CcTnFB56.js +0 -6
  604. /package/dist/{api-client-CL1WDkw9.cjs → api-client-BWt6M7ij.cjs} +0 -0
  605. /package/dist/{api-client-ChL_0F2u.js → api-client-CNv_hbPO.js} +0 -0
  606. /package/dist/{fetch-utils-C0F4eH6S.cjs → fetch-utils-BqMx2KQr.js} +0 -0
  607. /package/dist/{fetch-utils-DlPjrSk2.js → fetch-utils-DeZcERfe.cjs} +0 -0
  608. /package/dist/{index-DVGDAddE.d.ts → index-DE1muTvw.d.ts} +0 -0
  609. /package/dist/{issue-utils-BbCfbiY8.js → issue-utils-BVAB6I-Z.js} +0 -0
  610. /package/dist/{issue-utils-DMKiif6C.cjs → issue-utils-pdbo-5LW.cjs} +0 -0
  611. /package/dist/{types-CCHsZshF.js → search-events-BBFPuvRq.cjs} +0 -0
  612. /package/dist/{types-MYBaygjr.cjs → search-events-bV3-kK78.js} +0 -0
@@ -1,12 +0,0 @@
1
- import "../constants-S7AU45oQ.js";
2
- import "../errors-CIoxzIug.js";
3
- import "../defineTool-77H4nSna.js";
4
- import "../schema-WDk5Yqww.js";
5
- import "../client-DOYWNvVM.js";
6
- import "../types-CCHsZshF.js";
7
- import "../api-client-ChL_0F2u.js";
8
- import "../api-utils-C6QJAzFL.js";
9
- import "../schema-DtsnsxMl.js";
10
- import { find_issues_default } from "../find-issues-CAtNGBly.js";
11
-
12
- export { find_issues_default as default };
@@ -1,12 +0,0 @@
1
- require('../constants-ClkMK29-.cjs');
2
- require('../errors-YmiXLOyx.cjs');
3
- require('../defineTool-lWNTzWl_.cjs');
4
- require('../schema-B_cMyyJJ.cjs');
5
- require('../client-Dkw5iYu3.cjs');
6
- require('../types-MYBaygjr.cjs');
7
- require('../api-client-CL1WDkw9.cjs');
8
- require('../api-utils-d36iteNO.cjs');
9
- require('../schema-BpJVmev8.cjs');
10
- const require_find_tags = require('../find-tags-Byk4d3oZ.cjs');
11
-
12
- module.exports = require_find_tags.find_tags_default;
@@ -1,13 +0,0 @@
1
- import "../promptDefinitions-CVHtYaj8.cjs";
2
- import "../types-CUN-2OSS.cjs";
3
- import { ToolConfig } from "../types-D_mx318Q.cjs";
4
- import { z } from "zod";
5
-
6
- //#region src/tools/find-tags.d.ts
7
- declare const _default: ToolConfig<{
8
- organizationSlug: z.ZodString;
9
- regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
- }>;
11
- //#endregion
12
- export { _default as default };
13
- //# sourceMappingURL=find-tags.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-tags.d.cts","names":[],"sources":["../../src/tools/find-tags.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB"}
@@ -1,13 +0,0 @@
1
- import "../promptDefinitions-D3GTBGLr.js";
2
- import "../types-DkJtNDXU.js";
3
- import { ToolConfig } from "../types-qB8a4WQT.js";
4
- import { z } from "zod";
5
-
6
- //#region src/tools/find-tags.d.ts
7
- declare const _default: ToolConfig<{
8
- organizationSlug: z.ZodString;
9
- regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
- }>;
11
- //#endregion
12
- export { _default as default };
13
- //# sourceMappingURL=find-tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-tags.d.ts","names":[],"sources":["../../src/tools/find-tags.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB"}
@@ -1,12 +0,0 @@
1
- import "../constants-S7AU45oQ.js";
2
- import "../errors-CIoxzIug.js";
3
- import "../defineTool-77H4nSna.js";
4
- import "../schema-WDk5Yqww.js";
5
- import "../client-DOYWNvVM.js";
6
- import "../types-CCHsZshF.js";
7
- import "../api-client-ChL_0F2u.js";
8
- import "../api-utils-C6QJAzFL.js";
9
- import "../schema-DtsnsxMl.js";
10
- import { find_tags_default } from "../find-tags-d-wF1Se8.js";
11
-
12
- export { find_tags_default as default };
@@ -1,12 +0,0 @@
1
- require('../constants-ClkMK29-.cjs');
2
- require('../errors-YmiXLOyx.cjs');
3
- require('../defineTool-lWNTzWl_.cjs');
4
- require('../schema-B_cMyyJJ.cjs');
5
- require('../client-Dkw5iYu3.cjs');
6
- require('../types-MYBaygjr.cjs');
7
- require('../api-client-CL1WDkw9.cjs');
8
- require('../api-utils-d36iteNO.cjs');
9
- require('../schema-BpJVmev8.cjs');
10
- const require_find_transactions = require('../find-transactions-DuZyqjhF.cjs');
11
-
12
- module.exports = require_find_transactions.find_transactions_default;
@@ -1,17 +0,0 @@
1
- import "../promptDefinitions-CVHtYaj8.cjs";
2
- import "../types-CUN-2OSS.cjs";
3
- import { ToolConfig } from "../types-D_mx318Q.cjs";
4
- import { z } from "zod";
5
-
6
- //#region src/tools/find-transactions.d.ts
7
- declare const _default: ToolConfig<{
8
- organizationSlug: z.ZodString;
9
- regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
- projectSlug: z.ZodOptional<z.ZodString>;
11
- transaction: z.ZodOptional<z.ZodString>;
12
- query: z.ZodOptional<z.ZodString>;
13
- sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
14
- }>;
15
- //#endregion
16
- export { _default as default };
17
- //# sourceMappingURL=find-transactions.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-transactions.d.cts","names":[],"sources":["../../src/tools/find-transactions.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB;;;;;EAAA,KAAA,eAAA,YAAA,CAAA"}
@@ -1,17 +0,0 @@
1
- import "../promptDefinitions-D3GTBGLr.js";
2
- import "../types-DkJtNDXU.js";
3
- import { ToolConfig } from "../types-qB8a4WQT.js";
4
- import { z } from "zod";
5
-
6
- //#region src/tools/find-transactions.d.ts
7
- declare const _default: ToolConfig<{
8
- organizationSlug: z.ZodString;
9
- regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
- projectSlug: z.ZodOptional<z.ZodString>;
11
- transaction: z.ZodOptional<z.ZodString>;
12
- query: z.ZodOptional<z.ZodString>;
13
- sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
14
- }>;
15
- //#endregion
16
- export { _default as default };
17
- //# sourceMappingURL=find-transactions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-transactions.d.ts","names":[],"sources":["../../src/tools/find-transactions.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB;;;;;EAAA,KAAA,eAAA,YAAA,CAAA"}
@@ -1,12 +0,0 @@
1
- import "../constants-S7AU45oQ.js";
2
- import "../errors-CIoxzIug.js";
3
- import "../defineTool-77H4nSna.js";
4
- import "../schema-WDk5Yqww.js";
5
- import "../client-DOYWNvVM.js";
6
- import "../types-CCHsZshF.js";
7
- import "../api-client-ChL_0F2u.js";
8
- import "../api-utils-C6QJAzFL.js";
9
- import "../schema-DtsnsxMl.js";
10
- import { find_transactions_default } from "../find-transactions-BiBgg-AE.js";
11
-
12
- export { find_transactions_default as default };
@@ -1,53 +0,0 @@
1
- const require_whoami = require('./whoami-CEgbTUqt.cjs');
2
- const require_find_organizations = require('./find-organizations-BrdMfZRO.cjs');
3
- const require_find_teams = require('./find-teams-CnU5x9rQ.cjs');
4
- const require_find_projects = require('./find-projects-BZWhlYJh.cjs');
5
- const require_find_issues = require('./find-issues-C3uk59rn.cjs');
6
- const require_find_releases = require('./find-releases-CZCVEOHZ.cjs');
7
- const require_find_tags = require('./find-tags-Byk4d3oZ.cjs');
8
- const require_get_issue_details = require('./get-issue-details-lBrYR9yx.cjs');
9
- const require_get_event_attachment = require('./get-event-attachment-C-ig2-3F.cjs');
10
- const require_update_issue = require('./update-issue-DpkxxiNk.cjs');
11
- const require_find_errors = require('./find-errors-CB9NpSxG.cjs');
12
- const require_find_transactions = require('./find-transactions-DuZyqjhF.cjs');
13
- const require_create_team = require('./create-team-CJhrccc1.cjs');
14
- const require_create_project = require('./create-project-BxzRiryg.cjs');
15
- const require_update_project = require('./update-project-DLDDbcGY.cjs');
16
- const require_create_dsn = require('./create-dsn-Dz8nyTFw.cjs');
17
- const require_find_dsns = require('./find-dsns-CK59RaUJ.cjs');
18
- const require_analyze_issue_with_seer = require('./analyze-issue-with-seer-BkVrrh28.cjs');
19
- const require_search_docs = require('./search-docs-D5Foht_0.cjs');
20
- const require_get_doc = require('./get-doc-DaTCenOE.cjs');
21
-
22
- //#region src/tools/index.ts
23
- var tools_default = {
24
- whoami: require_whoami.whoami_default,
25
- find_organizations: require_find_organizations.find_organizations_default,
26
- find_teams: require_find_teams.find_teams_default,
27
- find_projects: require_find_projects.find_projects_default,
28
- find_issues: require_find_issues.find_issues_default,
29
- find_releases: require_find_releases.find_releases_default,
30
- find_tags: require_find_tags.find_tags_default,
31
- get_issue_details: require_get_issue_details.get_issue_details_default,
32
- get_event_attachment: require_get_event_attachment.get_event_attachment_default,
33
- update_issue: require_update_issue.update_issue_default,
34
- find_errors: require_find_errors.find_errors_default,
35
- find_transactions: require_find_transactions.find_transactions_default,
36
- create_team: require_create_team.create_team_default,
37
- create_project: require_create_project.create_project_default,
38
- update_project: require_update_project.update_project_default,
39
- create_dsn: require_create_dsn.create_dsn_default,
40
- find_dsns: require_find_dsns.find_dsns_default,
41
- analyze_issue_with_seer: require_analyze_issue_with_seer.analyze_issue_with_seer_default,
42
- search_docs: require_search_docs.search_docs_default,
43
- get_doc: require_get_doc.get_doc_default
44
- };
45
-
46
- //#endregion
47
- Object.defineProperty(exports, 'tools_default', {
48
- enumerable: true,
49
- get: function () {
50
- return tools_default;
51
- }
52
- });
53
- //# sourceMappingURL=tools-CHnZvVEN.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools-CHnZvVEN.cjs","names":["findOrganizations","findTeams","findProjects","findIssues","findReleases","findTags","getIssueDetails","getEventAttachment","updateIssue","findErrors","findTransactions","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findIssues from \"./find-issues\";\nimport findReleases from \"./find-releases\";\nimport findTags from \"./find-tags\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport findErrors from \"./find-errors\";\nimport findTransactions from \"./find-transactions\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_issues: findIssues,\n find_releases: findReleases,\n find_tags: findTags,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n find_errors: findErrors,\n find_transactions: findTransactions,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,aAAaC;CACb,eAAeC;CACf,WAAWC;CACX,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,aAAaC;CACb,mBAAmBC;CACnB,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;AACV"}
@@ -1,48 +0,0 @@
1
- import { whoami_default } from "./whoami-DesNZnaQ.js";
2
- import { find_organizations_default } from "./find-organizations-ojXwWWzk.js";
3
- import { find_teams_default } from "./find-teams-BZ118EIK.js";
4
- import { find_projects_default } from "./find-projects-fcLG4KpT.js";
5
- import { find_issues_default } from "./find-issues-CAtNGBly.js";
6
- import { find_releases_default } from "./find-releases-BUozr0Z-.js";
7
- import { find_tags_default } from "./find-tags-d-wF1Se8.js";
8
- import { get_issue_details_default } from "./get-issue-details-Dcmzxknx.js";
9
- import { get_event_attachment_default } from "./get-event-attachment-DVCPpUMj.js";
10
- import { update_issue_default } from "./update-issue-DRTQvy6p.js";
11
- import { find_errors_default } from "./find-errors-C3oUMeRi.js";
12
- import { find_transactions_default } from "./find-transactions-BiBgg-AE.js";
13
- import { create_team_default } from "./create-team-zHz00C6Q.js";
14
- import { create_project_default } from "./create-project-K1od5Rhx.js";
15
- import { update_project_default } from "./update-project-YLxt2ry2.js";
16
- import { create_dsn_default } from "./create-dsn-D530I7Lr.js";
17
- import { find_dsns_default } from "./find-dsns-BoEP0N7B.js";
18
- import { analyze_issue_with_seer_default } from "./analyze-issue-with-seer-CoqsTklL.js";
19
- import { search_docs_default } from "./search-docs-BLbB_GV2.js";
20
- import { get_doc_default } from "./get-doc-YTiQznr1.js";
21
-
22
- //#region src/tools/index.ts
23
- var tools_default = {
24
- whoami: whoami_default,
25
- find_organizations: find_organizations_default,
26
- find_teams: find_teams_default,
27
- find_projects: find_projects_default,
28
- find_issues: find_issues_default,
29
- find_releases: find_releases_default,
30
- find_tags: find_tags_default,
31
- get_issue_details: get_issue_details_default,
32
- get_event_attachment: get_event_attachment_default,
33
- update_issue: update_issue_default,
34
- find_errors: find_errors_default,
35
- find_transactions: find_transactions_default,
36
- create_team: create_team_default,
37
- create_project: create_project_default,
38
- update_project: update_project_default,
39
- create_dsn: create_dsn_default,
40
- find_dsns: find_dsns_default,
41
- analyze_issue_with_seer: analyze_issue_with_seer_default,
42
- search_docs: search_docs_default,
43
- get_doc: get_doc_default
44
- };
45
-
46
- //#endregion
47
- export { tools_default };
48
- //# sourceMappingURL=tools-CdXGgq1W.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools-CdXGgq1W.js","names":["findOrganizations","findTeams","findProjects","findIssues","findReleases","findTags","getIssueDetails","getEventAttachment","updateIssue","findErrors","findTransactions","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findIssues from \"./find-issues\";\nimport findReleases from \"./find-releases\";\nimport findTags from \"./find-tags\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport findErrors from \"./find-errors\";\nimport findTransactions from \"./find-transactions\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_issues: findIssues,\n find_releases: findReleases,\n find_tags: findTags,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n find_errors: findErrors,\n find_transactions: findTransactions,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,aAAaC;CACb,eAAeC;CACf,WAAWC;CACX,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,aAAaC;CACb,mBAAmBC;CACnB,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;AACV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-issue-DRTQvy6p.js","names":["context: ServerContext"],"sources":["../src/tools/update-issue.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 { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')\",\n \"```\",\n \"\",\n \"### Resolve an issue and assign it to yourself\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // Get current issue details first\n const currentIssue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Update the issue\n const updatedIssue = await apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n });\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAiBA,2BAAe,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;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,QAAQ,iBAAiB,UAAU;EACnC,YAAY,gBAAgB,UAAU;CACvC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,eACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAI,eACR;AAKJ,OAAK,OAAO,WAAW,OAAO,WAC5B,OAAM,IAAI,eACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,SAAO,qBAAqB,QAAQ;EAGpC,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C,kBAAkB;GAClB,SAAS;EACV,EAAC;EAGF,MAAM,eAAe,MAAM,WAAW,YAAY;GAChD,kBAAkB;GAClB,SAAS;GACT,QAAQ,OAAO;GACf,YAAY,OAAO;EACpB,EAAC;EAEF,IAAI,UAAU,UAAU,aAAa,QAAQ,gBAAgB,QAAQ;AACrE,aAAW,aAAa,aAAa,MAAM;AAC3C,aAAW,WAAW,WAAW,YAAY,SAAS,aAAa,QAAQ,CAAC;AAG5E,YAAU;AAEV,MAAI,OAAO,UAAU,aAAa,WAAW,OAAO,OAClD,YAAW,cAAc,aAAa,OAAO,OAAO,OAAO,OAAO;AAGpE,MAAI,OAAO,YAAY;GACrB,MAAM,cAAc,iBAAiB,aAAa,cAAc,KAAK;GACrE,MAAM,cACJ,OAAO,eAAe,OAAO,QAAQ,OAAO;AAC9C,cAAW,mBAAmB,YAAY,OAAO,YAAY;EAC9D;AAED,YAAU;AACV,aAAW,cAAc,aAAa,OAAO;EAC7C,MAAM,kBAAkB,iBAAiB,aAAa,cAAc,KAAK;AACzE,aAAW,mBAAmB,gBAAgB;AAE9C,YAAU;AACV,aAAW;AACX,aAAW,gFAAgF,QAAQ,cAAc,aAAa,QAAQ;AAEtI,MAAI,OAAO,WAAW,WACpB,YAAW;WACF,OAAO,WAAW,UAC3B,YAAW;AAGb,SAAO;CACR;AACF,EAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-issue-DpkxxiNk.cjs","names":["context: ServerContext","UserInputError"],"sources":["../src/tools/update-issue.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 { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')\",\n \"```\",\n \"\",\n \"### Resolve an issue and assign it to yourself\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // Get current issue details first\n const currentIssue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Update the issue\n const updatedIssue = await apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n });\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAiBA,2BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,QAAQ,gCAAiB,UAAU;EACnC,YAAY,+BAAgB,UAAU;CACvC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAIC,8BACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAIA,8BACR;AAKJ,OAAK,OAAO,WAAW,OAAO,WAC5B,OAAM,IAAIA,8BACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAGpC,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C,kBAAkB;GAClB,SAAS;EACV,EAAC;EAGF,MAAM,eAAe,MAAM,WAAW,YAAY;GAChD,kBAAkB;GAClB,SAAS;GACT,QAAQ,OAAO;GACf,YAAY,OAAO;EACpB,EAAC;EAEF,IAAI,UAAU,UAAU,aAAa,QAAQ,gBAAgB,QAAQ;AACrE,aAAW,aAAa,aAAa,MAAM;AAC3C,aAAW,WAAW,WAAW,YAAY,SAAS,aAAa,QAAQ,CAAC;AAG5E,YAAU;AAEV,MAAI,OAAO,UAAU,aAAa,WAAW,OAAO,OAClD,YAAW,cAAc,aAAa,OAAO,OAAO,OAAO,OAAO;AAGpE,MAAI,OAAO,YAAY;GACrB,MAAM,cAAc,0CAAiB,aAAa,cAAc,KAAK;GACrE,MAAM,cACJ,OAAO,eAAe,OAAO,QAAQ,OAAO;AAC9C,cAAW,mBAAmB,YAAY,OAAO,YAAY;EAC9D;AAED,YAAU;AACV,aAAW,cAAc,aAAa,OAAO;EAC7C,MAAM,kBAAkB,0CAAiB,aAAa,cAAc,KAAK;AACzE,aAAW,mBAAmB,gBAAgB;AAE9C,YAAU;AACV,aAAW;AACX,aAAW,gFAAgF,QAAQ,cAAc,aAAa,QAAQ;AAEtI,MAAI,OAAO,WAAW,WACpB,YAAW;WACF,OAAO,WAAW,UAC3B,YAAW;AAGb,SAAO;CACR;AACF,EAAC"}
@@ -1,106 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,82 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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