@sentry/mcp-server 0.18.0 → 0.19.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 (809) hide show
  1. package/README.md +19 -10
  2. package/dist/{agent-DD6nYWBQ.d.cts → agent-ADO0sPxf.d.cts} +2 -2
  3. package/dist/{agent-DD6nYWBQ.d.cts.map → agent-ADO0sPxf.d.cts.map} +1 -1
  4. package/dist/{agent-DAlB2lDx.d.cts → agent-BA98dlM7.d.cts} +2 -2
  5. package/dist/{agent-DAlB2lDx.d.cts.map → agent-BA98dlM7.d.cts.map} +1 -1
  6. package/dist/{agent-CP5e4nTv.js → agent-BL7Xae0U.js} +6 -6
  7. package/dist/{agent-CP5e4nTv.js.map → agent-BL7Xae0U.js.map} +1 -1
  8. package/dist/{agent-D9xBrLvD.cjs → agent-CbJ6lvV3.cjs} +5 -5
  9. package/dist/{agent-D9xBrLvD.cjs.map → agent-CbJ6lvV3.cjs.map} +1 -1
  10. package/dist/{agent-BF4d0oSb.cjs → agent-D7MuFRwE.cjs} +6 -6
  11. package/dist/{agent-BF4d0oSb.cjs.map → agent-D7MuFRwE.cjs.map} +1 -1
  12. package/dist/{agent-xEtb_OFK.d.ts → agent-D9DV11tZ.d.ts} +4 -4
  13. package/dist/{agent-xEtb_OFK.d.ts.map → agent-D9DV11tZ.d.ts.map} +1 -1
  14. package/dist/{agent-DzpIyyqs.js → agent-DXya3Bcy.js} +5 -5
  15. package/dist/{agent-DzpIyyqs.js.map → agent-DXya3Bcy.js.map} +1 -1
  16. package/dist/{agent-UxF0J0wb.d.ts → agent-DhHtOQmP.d.ts} +6 -6
  17. package/dist/{agent-UxF0J0wb.d.ts.map → agent-DhHtOQmP.d.ts.map} +1 -1
  18. package/dist/{analyze-issue-with-seer-Cf0jCiKP.cjs → analyze-issue-with-seer-CI8pvCnf.cjs} +16 -11
  19. package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +1 -0
  20. package/dist/{analyze-issue-with-seer-DqwczSTV.js → analyze-issue-with-seer-DvuKEcbu.js} +16 -11
  21. package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +1 -0
  22. package/dist/{api-D9yO5I-i.cjs → api-CZD9zwQ-.cjs} +4 -4
  23. package/dist/{api-D9yO5I-i.cjs.map → api-CZD9zwQ-.cjs.map} +1 -1
  24. package/dist/{api-mjnGhOW2.js → api-CkLTFexT.js} +4 -4
  25. package/dist/{api-mjnGhOW2.js.map → api-CkLTFexT.js.map} +1 -1
  26. package/dist/api-client/client.cjs +5 -4
  27. package/dist/api-client/client.d.cts +3 -3
  28. package/dist/api-client/client.d.ts +3 -3
  29. package/dist/api-client/client.js +5 -4
  30. package/dist/api-client/errors.cjs +1 -1
  31. package/dist/api-client/errors.d.ts +1 -1
  32. package/dist/api-client/errors.js +1 -1
  33. package/dist/api-client/index.cjs +8 -6
  34. package/dist/api-client/index.d.cts +4 -4
  35. package/dist/api-client/index.d.ts +6 -6
  36. package/dist/api-client/index.js +8 -7
  37. package/dist/api-client/schema.cjs +2 -1
  38. package/dist/api-client/schema.d.cts +2 -2
  39. package/dist/api-client/schema.d.ts +2 -2
  40. package/dist/api-client/schema.js +2 -2
  41. package/dist/api-client/types.cjs +1 -1
  42. package/dist/api-client/types.d.cts +3 -3
  43. package/dist/api-client/types.d.ts +3 -3
  44. package/dist/api-client/types.js +1 -1
  45. package/dist/{callEmbeddedAgent-C0pC9du1.js → callEmbeddedAgent-B_BMEB_u.js} +3 -3
  46. package/dist/callEmbeddedAgent-B_BMEB_u.js.map +1 -0
  47. package/dist/{callEmbeddedAgent-BRz60bxa.cjs → callEmbeddedAgent-BaGxBAdM.cjs} +3 -3
  48. package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +1 -0
  49. package/dist/cli/parse.cjs +1 -1
  50. package/dist/cli/parse.d.cts +2 -2
  51. package/dist/cli/parse.d.cts.map +1 -1
  52. package/dist/cli/parse.d.ts +2 -2
  53. package/dist/cli/parse.d.ts.map +1 -1
  54. package/dist/cli/parse.js +1 -1
  55. package/dist/cli/resolve.cjs +3 -3
  56. package/dist/cli/resolve.d.cts +2 -2
  57. package/dist/cli/resolve.d.cts.map +1 -1
  58. package/dist/cli/resolve.d.ts +2 -2
  59. package/dist/cli/resolve.d.ts.map +1 -1
  60. package/dist/cli/resolve.js +3 -3
  61. package/dist/cli/types.d.cts +2 -2
  62. package/dist/cli/types.d.ts +2 -2
  63. package/dist/cli/usage.cjs +1 -1
  64. package/dist/cli/usage.d.cts +1 -1
  65. package/dist/cli/usage.d.ts +1 -1
  66. package/dist/cli/usage.js +1 -1
  67. package/dist/{client-AVVG7J24.cjs → client-C2TwbSm-.cjs} +75 -19
  68. package/dist/client-C2TwbSm-.cjs.map +1 -0
  69. package/dist/{client-BqrNpqZW.js → client-CWgvrDHH.js} +75 -19
  70. package/dist/client-CWgvrDHH.js.map +1 -0
  71. package/dist/{client-B0wezrpt.d.cts → client-C_fNdaX8.d.cts} +23 -11
  72. package/dist/client-C_fNdaX8.d.cts.map +1 -0
  73. package/dist/{client-D-KqRd94.d.ts → client-VVhTv_ej.d.ts} +24 -12
  74. package/dist/client-VVhTv_ej.d.ts.map +1 -0
  75. package/dist/{config-CqdBCqLx.js → config-BMC-126h.js} +1 -1
  76. package/dist/{config-CqdBCqLx.js.map → config-BMC-126h.js.map} +1 -1
  77. package/dist/{config-DsvSjPCG.cjs → config-CllFlx5w.cjs} +1 -1
  78. package/dist/{config-DsvSjPCG.cjs.map → config-CllFlx5w.cjs.map} +1 -1
  79. package/dist/{config-DFt-16ni.cjs → config-DbQP60oo.cjs} +1 -1
  80. package/dist/{config-DFt-16ni.cjs.map → config-DbQP60oo.cjs.map} +1 -1
  81. package/dist/{config-DDf8XyZs.js → config-DlhHLHjD.js} +1 -1
  82. package/dist/{config-DDf8XyZs.js.map → config-DlhHLHjD.js.map} +1 -1
  83. package/dist/constraint-helpers-Bey-Pii6.js +64 -0
  84. package/dist/constraint-helpers-Bey-Pii6.js.map +1 -0
  85. package/dist/constraint-helpers-BqcuWXad.cjs +76 -0
  86. package/dist/constraint-helpers-BqcuWXad.cjs.map +1 -0
  87. package/dist/context-storage-B8onP4Pw.cjs +69 -0
  88. package/dist/context-storage-B8onP4Pw.cjs.map +1 -0
  89. package/dist/context-storage-BRwdNVKx.js +51 -0
  90. package/dist/context-storage-BRwdNVKx.js.map +1 -0
  91. package/dist/{create-dsn-BhshlP7l.js → create-dsn-Bx2s8Bik.js} +9 -4
  92. package/dist/create-dsn-Bx2s8Bik.js.map +1 -0
  93. package/dist/{create-dsn-DaHidLhE.cjs → create-dsn-ggGt0lZf.cjs} +9 -4
  94. package/dist/create-dsn-ggGt0lZf.cjs.map +1 -0
  95. package/dist/{create-project-C3laecaU.js → create-project-C0pm6zUK.js} +11 -6
  96. package/dist/create-project-C0pm6zUK.js.map +1 -0
  97. package/dist/{create-project-xszOpGTC.cjs → create-project-CZBklXm8.cjs} +11 -6
  98. package/dist/create-project-CZBklXm8.cjs.map +1 -0
  99. package/dist/{create-team-CTN-DxOE.js → create-team-BQIns3VD.js} +9 -4
  100. package/dist/create-team-BQIns3VD.js.map +1 -0
  101. package/dist/{create-team-DmnJHSIx.cjs → create-team-DmqKw2c1.cjs} +9 -4
  102. package/dist/create-team-DmqKw2c1.cjs.map +1 -0
  103. package/dist/{dataset-fields-DacS0qF0.cjs → dataset-fields-C0m-vwNH.cjs} +2 -2
  104. package/dist/{dataset-fields-DacS0qF0.cjs.map → dataset-fields-C0m-vwNH.cjs.map} +1 -1
  105. package/dist/{dataset-fields-By43SxJp.js → dataset-fields-C1o_cZrM.js} +2 -2
  106. package/dist/{dataset-fields-By43SxJp.js.map → dataset-fields-C1o_cZrM.js.map} +1 -1
  107. package/dist/{enhance-error-C7AVt85N.js → enhance-error-D3QfZOhm.js} +2 -2
  108. package/dist/{enhance-error-C7AVt85N.js.map → enhance-error-D3QfZOhm.js.map} +1 -1
  109. package/dist/{enhance-error-CAREhbDf.cjs → enhance-error-DzXrKg85.cjs} +2 -2
  110. package/dist/{enhance-error-CAREhbDf.cjs.map → enhance-error-DzXrKg85.cjs.map} +1 -1
  111. package/dist/{error-handling-qfa1BeDb.cjs → error-handling-CxV2m_Dr.cjs} +5 -5
  112. package/dist/error-handling-CxV2m_Dr.cjs.map +1 -0
  113. package/dist/{error-handling-efwohgKv.js → error-handling-R4SJQ7n0.js} +5 -5
  114. package/dist/error-handling-R4SJQ7n0.js.map +1 -0
  115. package/dist/{errors-CNTY5dED.cjs → errors-Bmqdg5Q6.cjs} +1 -1
  116. package/dist/{errors-CNTY5dED.cjs.map → errors-Bmqdg5Q6.cjs.map} +1 -1
  117. package/dist/{errors-Cn4l-BlC.d.ts → errors-Bvit2_Qs.d.ts} +1 -1
  118. package/dist/{errors-Cn4l-BlC.d.ts.map → errors-Bvit2_Qs.d.ts.map} +1 -1
  119. package/dist/{errors-Dr7Q6mD5.js → errors-CQZ-QlOB.js} +1 -1
  120. package/dist/{errors-Dr7Q6mD5.js.map → errors-CQZ-QlOB.js.map} +1 -1
  121. package/dist/{errors-bxPCd8AO.d.ts → errors-JbBt1G2l.d.ts} +1 -1
  122. package/dist/{errors-bxPCd8AO.d.ts.map → errors-JbBt1G2l.d.ts.map} +1 -1
  123. package/dist/errors.d.ts +1 -1
  124. package/dist/{fetch-utils-DRWItYjp.js → fetch-utils-BetJhSli.js} +1 -1
  125. package/dist/{fetch-utils-DRWItYjp.js.map → fetch-utils-BetJhSli.js.map} +1 -1
  126. package/dist/{fetch-utils-bHWZV7j9.cjs → fetch-utils-Cp3P-Ai3.cjs} +1 -1
  127. package/dist/{fetch-utils-bHWZV7j9.cjs.map → fetch-utils-Cp3P-Ai3.cjs.map} +1 -1
  128. package/dist/{find-dsns-U4CCcoTv.js → find-dsns-BPN8wnUr.js} +7 -3
  129. package/dist/find-dsns-BPN8wnUr.js.map +1 -0
  130. package/dist/{find-dsns-D0l3siyF.cjs → find-dsns-Ct6uFZMB.cjs} +7 -3
  131. package/dist/find-dsns-Ct6uFZMB.cjs.map +1 -0
  132. package/dist/{find-organizations-Ca-zpAlI.cjs → find-organizations-BGI_WW2q.cjs} +18 -7
  133. package/dist/find-organizations-BGI_WW2q.cjs.map +1 -0
  134. package/dist/{find-organizations-HUZFa8ZA.js → find-organizations-DxH9SS3w.js} +18 -7
  135. package/dist/find-organizations-DxH9SS3w.js.map +1 -0
  136. package/dist/{find-projects-CWNLthwg.cjs → find-projects-B80qSPpP.cjs} +19 -8
  137. package/dist/find-projects-B80qSPpP.cjs.map +1 -0
  138. package/dist/{find-projects-Dy1_O9L0.js → find-projects-DOMBBYAP.js} +19 -8
  139. package/dist/find-projects-DOMBBYAP.js.map +1 -0
  140. package/dist/{find-releases-DN_BfQM2.js → find-releases-CfZRMBvh.js} +8 -4
  141. package/dist/find-releases-CfZRMBvh.js.map +1 -0
  142. package/dist/{find-releases-BtazPcQH.cjs → find-releases-Cy-Q-Qje.cjs} +8 -4
  143. package/dist/find-releases-Cy-Q-Qje.cjs.map +1 -0
  144. package/dist/{find-teams-_zAHPVGx.cjs → find-teams-BuH2ddaL.cjs} +19 -8
  145. package/dist/find-teams-BuH2ddaL.cjs.map +1 -0
  146. package/dist/find-teams-D5770X0I.js +51 -0
  147. package/dist/find-teams-D5770X0I.js.map +1 -0
  148. package/dist/{formatters-DJSiRyVi.js → formatters-B9XiCNZ_.js} +2 -2
  149. package/dist/{formatters-DJSiRyVi.js.map → formatters-B9XiCNZ_.js.map} +1 -1
  150. package/dist/{formatters-Bzx0sr5R.cjs → formatters-CkbVfXEE.cjs} +2 -2
  151. package/dist/{formatters-Bzx0sr5R.cjs.map → formatters-CkbVfXEE.cjs.map} +1 -1
  152. package/dist/{formatters-CCZdBmLd.cjs → formatters-DMlTJcHW.cjs} +2 -2
  153. package/dist/{formatters-CCZdBmLd.cjs.map → formatters-DMlTJcHW.cjs.map} +1 -1
  154. package/dist/{formatters-DJM9_F3A.js → formatters-MEWHZ83Y.js} +2 -2
  155. package/dist/{formatters-DJM9_F3A.js.map → formatters-MEWHZ83Y.js.map} +1 -1
  156. package/dist/{formatting-CfpTtZLo.js → formatting-CAQbf0su.js} +1 -1
  157. package/dist/{formatting-CfpTtZLo.js.map → formatting-CAQbf0su.js.map} +1 -1
  158. package/dist/{formatting-CqmsvuAY.cjs → formatting-Cu1Skk_Y.cjs} +444 -10
  159. package/dist/formatting-Cu1Skk_Y.cjs.map +1 -0
  160. package/dist/{formatting-BjCK9XwW.js → formatting-DytLf-hH.js} +444 -10
  161. package/dist/formatting-DytLf-hH.js.map +1 -0
  162. package/dist/{formatting-CJKoPqjy.cjs → formatting-EM76FrY3.cjs} +1 -1
  163. package/dist/{formatting-CJKoPqjy.cjs.map → formatting-EM76FrY3.cjs.map} +1 -1
  164. package/dist/{formatting-l3qx5d7L.d.ts → formatting-FJne_W9i.d.cts} +11 -6
  165. package/dist/formatting-FJne_W9i.d.cts.map +1 -0
  166. package/dist/{formatting-XMmhMjRz.d.cts → formatting-ar_6QZRE.d.ts} +11 -6
  167. package/dist/formatting-ar_6QZRE.d.ts.map +1 -0
  168. package/dist/{get-doc-JDwOkY2j.js → get-doc-D9Xq7et9.js} +8 -4
  169. package/dist/get-doc-D9Xq7et9.js.map +1 -0
  170. package/dist/{get-doc-Euz6NiM3.cjs → get-doc-MxWNTA8R.cjs} +8 -4
  171. package/dist/get-doc-MxWNTA8R.cjs.map +1 -0
  172. package/dist/{get-event-attachment-pIJmUfFE.js → get-event-attachment-B_BzSfcE.js} +7 -3
  173. package/dist/get-event-attachment-B_BzSfcE.js.map +1 -0
  174. package/dist/{get-event-attachment-DvpQ-dEP.cjs → get-event-attachment-CrtS0QRV.cjs} +7 -3
  175. package/dist/get-event-attachment-CrtS0QRV.cjs.map +1 -0
  176. package/dist/{get-issue-details-B1PDMmMY.js → get-issue-details-Bvw1Xi8I.js} +50 -10
  177. package/dist/get-issue-details-Bvw1Xi8I.js.map +1 -0
  178. package/dist/{get-issue-details-BH75EnNk.cjs → get-issue-details-DTQ-jXyu.cjs} +50 -10
  179. package/dist/get-issue-details-DTQ-jXyu.cjs.map +1 -0
  180. package/dist/{get-trace-details-CaK0JMf4.js → get-trace-details-BL5_jvgs.js} +7 -3
  181. package/dist/get-trace-details-BL5_jvgs.js.map +1 -0
  182. package/dist/{get-trace-details-Bksygq21.cjs → get-trace-details-iDp34mms.cjs} +7 -3
  183. package/dist/get-trace-details-iDp34mms.cjs.map +1 -0
  184. package/dist/{handler-DyBdUYam.js → handler-B08ITQl8.js} +10 -6
  185. package/dist/handler-B08ITQl8.js.map +1 -0
  186. package/dist/{handler-C0zOOLbO.cjs → handler-B7-KeBak.cjs} +10 -6
  187. package/dist/handler-B7-KeBak.cjs.map +1 -0
  188. package/dist/{handler-DSYbwPgv.d.cts → handler-BcRR_2MX.d.cts} +2 -2
  189. package/dist/{handler-DSYbwPgv.d.cts.map → handler-BcRR_2MX.d.cts.map} +1 -1
  190. package/dist/{handler-CcbbXK_f.d.ts → handler-CdSvAOl6.d.ts} +2 -2
  191. package/dist/{handler-CcbbXK_f.d.ts.map → handler-CdSvAOl6.d.ts.map} +1 -1
  192. package/dist/{handler-cy5oD28N.cjs → handler-DIiYPQGL.cjs} +11 -7
  193. package/dist/handler-DIiYPQGL.cjs.map +1 -0
  194. package/dist/{handler-RV4XhU8F.d.cts → handler-LaesAQaD.d.cts} +2 -2
  195. package/dist/{handler-RV4XhU8F.d.cts.map → handler-LaesAQaD.d.cts.map} +1 -1
  196. package/dist/{handler-BbqDy4DA.js → handler-nILS77E9.js} +11 -7
  197. package/dist/handler-nILS77E9.js.map +1 -0
  198. package/dist/{handler-Ct9Z_sTZ.d.ts → handler-uWae09YN.d.ts} +2 -2
  199. package/dist/{handler-Ct9Z_sTZ.d.ts.map → handler-uWae09YN.d.ts.map} +1 -1
  200. package/dist/index.cjs +72 -76
  201. package/dist/index.cjs.map +1 -1
  202. package/dist/index.js +71 -75
  203. package/dist/index.js.map +1 -1
  204. package/dist/internal/agents/callEmbeddedAgent.cjs +2 -1
  205. package/dist/internal/agents/callEmbeddedAgent.js +2 -1
  206. package/dist/internal/agents/openai-provider.cjs +4 -0
  207. package/dist/internal/agents/openai-provider.d.cts +24 -0
  208. package/dist/internal/agents/openai-provider.d.cts.map +1 -0
  209. package/dist/internal/agents/openai-provider.d.ts +24 -0
  210. package/dist/internal/agents/openai-provider.d.ts.map +1 -0
  211. package/dist/internal/agents/openai-provider.js +3 -0
  212. package/dist/internal/agents/tools/dataset-fields.cjs +9 -9
  213. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  214. package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
  215. package/dist/internal/agents/tools/dataset-fields.js +9 -9
  216. package/dist/internal/agents/tools/otel-semantics.cjs +9 -9
  217. package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
  218. package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
  219. package/dist/internal/agents/tools/otel-semantics.js +9 -9
  220. package/dist/internal/agents/tools/utils.cjs +8 -8
  221. package/dist/internal/agents/tools/utils.d.cts +1 -1
  222. package/dist/internal/agents/tools/utils.d.ts +1 -1
  223. package/dist/internal/agents/tools/utils.js +8 -8
  224. package/dist/internal/agents/tools/whoami.cjs +9 -9
  225. package/dist/internal/agents/tools/whoami.d.cts +7 -7
  226. package/dist/internal/agents/tools/whoami.d.ts +9 -9
  227. package/dist/internal/agents/tools/whoami.js +9 -9
  228. package/dist/internal/constraint-helpers.cjs +4 -0
  229. package/dist/internal/constraint-helpers.d.cts +53 -0
  230. package/dist/internal/constraint-helpers.d.cts.map +1 -0
  231. package/dist/internal/constraint-helpers.d.ts +53 -0
  232. package/dist/internal/constraint-helpers.d.ts.map +1 -0
  233. package/dist/internal/constraint-helpers.js +3 -0
  234. package/dist/internal/context-storage.cjs +5 -0
  235. package/dist/internal/context-storage.d.cts +48 -0
  236. package/dist/internal/context-storage.d.cts.map +1 -0
  237. package/dist/internal/context-storage.d.ts +48 -0
  238. package/dist/internal/context-storage.d.ts.map +1 -0
  239. package/dist/internal/context-storage.js +3 -0
  240. package/dist/internal/error-handling.cjs +8 -8
  241. package/dist/internal/error-handling.d.cts +3 -3
  242. package/dist/internal/error-handling.d.ts +6 -6
  243. package/dist/internal/error-handling.js +8 -8
  244. package/dist/internal/fetch-utils.cjs +1 -1
  245. package/dist/internal/fetch-utils.js +1 -1
  246. package/dist/internal/formatting.cjs +2 -2
  247. package/dist/internal/formatting.d.cts +4 -4
  248. package/dist/internal/formatting.d.ts +6 -6
  249. package/dist/internal/formatting.js +2 -2
  250. package/dist/internal/issue-helpers.cjs +1 -1
  251. package/dist/internal/issue-helpers.d.cts +1 -1
  252. package/dist/internal/issue-helpers.d.ts +1 -1
  253. package/dist/internal/issue-helpers.js +1 -1
  254. package/dist/internal/test-fixtures.cjs +12 -2
  255. package/dist/internal/test-fixtures.cjs.map +1 -1
  256. package/dist/internal/test-fixtures.d.cts +35 -2133
  257. package/dist/internal/test-fixtures.d.cts.map +1 -1
  258. package/dist/internal/test-fixtures.d.ts +35 -2133
  259. package/dist/internal/test-fixtures.d.ts.map +1 -1
  260. package/dist/internal/test-fixtures.js +12 -2
  261. package/dist/internal/test-fixtures.js.map +1 -1
  262. package/dist/internal/tool-helpers/api.cjs +9 -8
  263. package/dist/internal/tool-helpers/api.d.cts +5 -6
  264. package/dist/internal/tool-helpers/api.d.cts.map +1 -1
  265. package/dist/internal/tool-helpers/api.d.ts +7 -8
  266. package/dist/internal/tool-helpers/api.d.ts.map +1 -1
  267. package/dist/internal/tool-helpers/api.js +9 -8
  268. package/dist/internal/tool-helpers/define.d.cts +3 -4
  269. package/dist/internal/tool-helpers/define.d.cts.map +1 -1
  270. package/dist/internal/tool-helpers/define.d.ts +3 -4
  271. package/dist/internal/tool-helpers/define.d.ts.map +1 -1
  272. package/dist/internal/tool-helpers/enhance-error.cjs +8 -7
  273. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  274. package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
  275. package/dist/internal/tool-helpers/enhance-error.js +8 -7
  276. package/dist/internal/tool-helpers/formatting.cjs +1 -1
  277. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  278. package/dist/internal/tool-helpers/formatting.d.ts +5 -5
  279. package/dist/internal/tool-helpers/formatting.js +1 -1
  280. package/dist/internal/tool-helpers/issue.cjs +4 -4
  281. package/dist/internal/tool-helpers/issue.d.cts +5 -5
  282. package/dist/internal/tool-helpers/issue.d.ts +7 -7
  283. package/dist/internal/tool-helpers/issue.js +4 -4
  284. package/dist/internal/tool-helpers/seer.cjs +1 -1
  285. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  286. package/dist/internal/tool-helpers/seer.d.ts +5 -5
  287. package/dist/internal/tool-helpers/seer.js +1 -1
  288. package/dist/internal/tool-helpers/validate-region-url.cjs +1 -1
  289. package/dist/internal/tool-helpers/validate-region-url.js +1 -1
  290. package/dist/{issue-helpers-Bjp6xu5H.js → issue-helpers-8Bubch8E.js} +1 -1
  291. package/dist/{issue-helpers-Bjp6xu5H.js.map → issue-helpers-8Bubch8E.js.map} +1 -1
  292. package/dist/{issue-helpers-Cf6mvHG1.d.cts → issue-helpers-CD46ia7_.d.cts} +1 -1
  293. package/dist/{issue-helpers-Cf6mvHG1.d.cts.map → issue-helpers-CD46ia7_.d.cts.map} +1 -1
  294. package/dist/{issue-helpers-1qxzc7ww.cjs → issue-helpers-DbPTv_qC.cjs} +1 -1
  295. package/dist/{issue-helpers-1qxzc7ww.cjs.map → issue-helpers-DbPTv_qC.cjs.map} +1 -1
  296. package/dist/{issue-helpers-kwhe1ipy.d.ts → issue-helpers-bECziPOG.d.ts} +1 -1
  297. package/dist/{issue-helpers-kwhe1ipy.d.ts.map → issue-helpers-bECziPOG.d.ts.map} +1 -1
  298. package/dist/logging-CDYnh7ho.d.cts +31 -0
  299. package/dist/logging-CDYnh7ho.d.cts.map +1 -0
  300. package/dist/logging-CkAJKyq2.cjs +298 -0
  301. package/dist/logging-CkAJKyq2.cjs.map +1 -0
  302. package/dist/logging-DqqDTe02.js +256 -0
  303. package/dist/logging-DqqDTe02.js.map +1 -0
  304. package/dist/logging-PY270KtN.d.ts +31 -0
  305. package/dist/logging-PY270KtN.d.ts.map +1 -0
  306. package/dist/openai-provider-BELCfis6.js +29 -0
  307. package/dist/openai-provider-BELCfis6.js.map +1 -0
  308. package/dist/openai-provider-CRxXeC9G.cjs +41 -0
  309. package/dist/openai-provider-CRxXeC9G.cjs.map +1 -0
  310. package/dist/{otel-semantics-BFRGhf6y.js → otel-semantics-CArUzarp.js} +2 -2
  311. package/dist/{otel-semantics-BFRGhf6y.js.map → otel-semantics-CArUzarp.js.map} +1 -1
  312. package/dist/{otel-semantics-CkUpXWEJ.cjs → otel-semantics-onvZv7i9.cjs} +2 -2
  313. package/dist/{otel-semantics-CkUpXWEJ.cjs.map → otel-semantics-onvZv7i9.cjs.map} +1 -1
  314. package/dist/{parse-C3tRlsy-.js → parse-8lpnm_2Z.js} +4 -1
  315. package/dist/parse-8lpnm_2Z.js.map +1 -0
  316. package/dist/{parse-CeFc4xnt.cjs → parse-shlhKlaL.cjs} +4 -1
  317. package/dist/parse-shlhKlaL.cjs.map +1 -0
  318. package/dist/{permissions-C-q0Y5bL.d.ts → permissions-40d2hxK-.d.ts} +2 -2
  319. package/dist/permissions-40d2hxK-.d.ts.map +1 -0
  320. package/dist/{permissions-Cm5e34n2.d.cts → permissions-B1meXGie.d.cts} +2 -2
  321. package/dist/permissions-B1meXGie.d.cts.map +1 -0
  322. package/dist/{permissions-DRdH39Fe.js → permissions-C_xHmYV4.js} +5 -3
  323. package/dist/permissions-C_xHmYV4.js.map +1 -0
  324. package/dist/{permissions-DuDYuCjy.cjs → permissions-D5kR-bZw.cjs} +5 -3
  325. package/dist/permissions-D5kR-bZw.cjs.map +1 -0
  326. package/dist/permissions.cjs +1 -1
  327. package/dist/permissions.d.cts +1 -1
  328. package/dist/permissions.d.ts +1 -1
  329. package/dist/permissions.js +1 -1
  330. package/dist/{resolve-CAtC1wN-.cjs → resolve-CBipUzux.cjs} +5 -3
  331. package/dist/resolve-CBipUzux.cjs.map +1 -0
  332. package/dist/{resolve-B_Fq13Dk.js → resolve-CZduTbDq.js} +5 -3
  333. package/dist/resolve-CZduTbDq.js.map +1 -0
  334. package/dist/{schema-ChvpDxUk.d.cts → schema-0uEmsoCr.d.ts} +2512 -211
  335. package/dist/schema-0uEmsoCr.d.ts.map +1 -0
  336. package/dist/{schema-D1CzTJXB.js → schema-CuB-30t5.js} +38 -6
  337. package/dist/schema-CuB-30t5.js.map +1 -0
  338. package/dist/{schema-BUBkkdUa.cjs → schema-Cv_VNAHz.cjs} +8 -1
  339. package/dist/schema-Cv_VNAHz.cjs.map +1 -0
  340. package/dist/{schema-CbXlt1rW.cjs → schema-DoWJbcHt.cjs} +43 -5
  341. package/dist/schema-DoWJbcHt.cjs.map +1 -0
  342. package/dist/{schema-DPJO5nkQ.js → schema-rwexXWFL.js} +3 -2
  343. package/dist/schema-rwexXWFL.js.map +1 -0
  344. package/dist/{schema-DOY22v1Q.d.ts → schema-xhCkX5uD.d.cts} +2766 -465
  345. package/dist/schema-xhCkX5uD.d.cts.map +1 -0
  346. package/dist/schema.cjs +2 -1
  347. package/dist/schema.d.cts +2 -1
  348. package/dist/schema.d.cts.map +1 -1
  349. package/dist/schema.d.ts +2 -1
  350. package/dist/schema.d.ts.map +1 -1
  351. package/dist/schema.js +2 -2
  352. package/dist/{search-docs-CpAlMLs8.js → search-docs-B9qNTw49.js} +8 -4
  353. package/dist/search-docs-B9qNTw49.js.map +1 -0
  354. package/dist/{search-docs-CH6-1H9_.cjs → search-docs-CTT1Bt1U.cjs} +8 -4
  355. package/dist/search-docs-CTT1Bt1U.cjs.map +1 -0
  356. package/dist/{seer-retC9dFI.cjs → seer-B63P5CPi.cjs} +1 -1
  357. package/dist/{seer-retC9dFI.cjs.map → seer-B63P5CPi.cjs.map} +1 -1
  358. package/dist/{seer-DLvrFQPo.js → seer-CderEQ-X.js} +1 -1
  359. package/dist/{seer-DLvrFQPo.js.map → seer-CderEQ-X.js.map} +1 -1
  360. package/dist/sentry-BhTMff8f.js +104 -0
  361. package/dist/sentry-BhTMff8f.js.map +1 -0
  362. package/dist/sentry-DZNWcvcy.d.ts +9 -0
  363. package/dist/sentry-DZNWcvcy.d.ts.map +1 -0
  364. package/dist/sentry-Da9wc8eP.cjs +110 -0
  365. package/dist/sentry-Da9wc8eP.cjs.map +1 -0
  366. package/dist/sentry-De4G2HDR.d.cts +9 -0
  367. package/dist/sentry-De4G2HDR.d.cts.map +1 -0
  368. package/dist/server-B0jJJdAd.js +157 -0
  369. package/dist/server-B0jJJdAd.js.map +1 -0
  370. package/dist/server-Bk2YVj60.cjs +163 -0
  371. package/dist/server-Bk2YVj60.cjs.map +1 -0
  372. package/dist/server.cjs +59 -61
  373. package/dist/server.d.cts +32 -19
  374. package/dist/server.d.cts.map +1 -1
  375. package/dist/server.d.ts +32 -19
  376. package/dist/server.d.ts.map +1 -1
  377. package/dist/server.js +59 -61
  378. package/dist/{stdio-CJnMOUAU.cjs → stdio-D_myxOG-.cjs} +17 -15
  379. package/dist/stdio-D_myxOG-.cjs.map +1 -0
  380. package/dist/{stdio-DB9muOi8.js → stdio-Uv0oXx1a.js} +17 -15
  381. package/dist/stdio-Uv0oXx1a.js.map +1 -0
  382. package/dist/telem/index.cjs +10 -0
  383. package/dist/telem/index.d.cts +3 -0
  384. package/dist/telem/index.d.ts +3 -0
  385. package/dist/telem/index.js +4 -0
  386. package/dist/telem/logging.cjs +9 -0
  387. package/dist/telem/logging.d.cts +2 -0
  388. package/dist/telem/logging.d.ts +2 -0
  389. package/dist/telem/logging.js +3 -0
  390. package/dist/telem/sentry.cjs +3 -0
  391. package/dist/telem/sentry.d.cts +2 -0
  392. package/dist/telem/sentry.d.ts +2 -0
  393. package/dist/telem/sentry.js +3 -0
  394. package/dist/test-setup.cjs +367 -147
  395. package/dist/test-setup.cjs.map +1 -1
  396. package/dist/test-setup.d.cts +2 -3
  397. package/dist/test-setup.d.cts.map +1 -1
  398. package/dist/test-setup.d.ts +2 -3
  399. package/dist/test-setup.d.ts.map +1 -1
  400. package/dist/test-setup.js +367 -147
  401. package/dist/test-setup.js.map +1 -1
  402. package/dist/test-utils/context.d.cts +2 -3
  403. package/dist/test-utils/context.d.cts.map +1 -1
  404. package/dist/test-utils/context.d.ts +2 -3
  405. package/dist/test-utils/context.d.ts.map +1 -1
  406. package/dist/toolDefinitions.cjs +636 -127
  407. package/dist/toolDefinitions.cjs.map +1 -1
  408. package/dist/toolDefinitions.d.cts +5 -5
  409. package/dist/toolDefinitions.d.cts.map +1 -1
  410. package/dist/toolDefinitions.d.ts +5 -5
  411. package/dist/toolDefinitions.d.ts.map +1 -1
  412. package/dist/toolDefinitions.js +636 -127
  413. package/dist/toolDefinitions.js.map +1 -1
  414. package/dist/tools/analyze-issue-with-seer.cjs +16 -15
  415. package/dist/tools/analyze-issue-with-seer.d.cts +3 -4
  416. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
  417. package/dist/tools/analyze-issue-with-seer.d.ts +3 -4
  418. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
  419. package/dist/tools/analyze-issue-with-seer.js +16 -15
  420. package/dist/tools/create-dsn.cjs +11 -10
  421. package/dist/tools/create-dsn.d.cts +3 -4
  422. package/dist/tools/create-dsn.d.cts.map +1 -1
  423. package/dist/tools/create-dsn.d.ts +3 -4
  424. package/dist/tools/create-dsn.d.ts.map +1 -1
  425. package/dist/tools/create-dsn.js +11 -10
  426. package/dist/tools/create-project.cjs +11 -11
  427. package/dist/tools/create-project.d.cts +3 -4
  428. package/dist/tools/create-project.d.cts.map +1 -1
  429. package/dist/tools/create-project.d.ts +3 -4
  430. package/dist/tools/create-project.d.ts.map +1 -1
  431. package/dist/tools/create-project.js +11 -11
  432. package/dist/tools/create-team.cjs +11 -10
  433. package/dist/tools/create-team.d.cts +3 -4
  434. package/dist/tools/create-team.d.cts.map +1 -1
  435. package/dist/tools/create-team.d.ts +3 -4
  436. package/dist/tools/create-team.d.ts.map +1 -1
  437. package/dist/tools/create-team.js +11 -10
  438. package/dist/tools/find-dsns.cjs +11 -10
  439. package/dist/tools/find-dsns.d.cts +7 -8
  440. package/dist/tools/find-dsns.d.ts +7 -8
  441. package/dist/tools/find-dsns.js +11 -10
  442. package/dist/tools/find-organizations.cjs +12 -9
  443. package/dist/tools/find-organizations.d.cts +7 -5
  444. package/dist/tools/find-organizations.d.ts +7 -5
  445. package/dist/tools/find-organizations.js +12 -9
  446. package/dist/tools/find-projects.cjs +11 -10
  447. package/dist/tools/find-projects.d.cts +7 -7
  448. package/dist/tools/find-projects.d.ts +7 -7
  449. package/dist/tools/find-projects.js +11 -10
  450. package/dist/tools/find-releases.cjs +11 -10
  451. package/dist/tools/find-releases.d.cts +3 -4
  452. package/dist/tools/find-releases.d.cts.map +1 -1
  453. package/dist/tools/find-releases.d.ts +3 -4
  454. package/dist/tools/find-releases.d.ts.map +1 -1
  455. package/dist/tools/find-releases.js +11 -10
  456. package/dist/tools/find-teams.cjs +11 -10
  457. package/dist/tools/find-teams.d.cts +7 -7
  458. package/dist/tools/find-teams.d.ts +7 -7
  459. package/dist/tools/find-teams.js +11 -10
  460. package/dist/tools/get-doc.cjs +9 -8
  461. package/dist/tools/get-doc.d.cts +3 -4
  462. package/dist/tools/get-doc.d.cts.map +1 -1
  463. package/dist/tools/get-doc.d.ts +3 -4
  464. package/dist/tools/get-doc.d.ts.map +1 -1
  465. package/dist/tools/get-doc.js +9 -8
  466. package/dist/tools/get-event-attachment.cjs +11 -10
  467. package/dist/tools/get-event-attachment.d.cts +9 -10
  468. package/dist/tools/get-event-attachment.d.ts +9 -10
  469. package/dist/tools/get-event-attachment.js +11 -10
  470. package/dist/tools/get-issue-details.cjs +16 -15
  471. package/dist/tools/get-issue-details.d.cts +3 -4
  472. package/dist/tools/get-issue-details.d.cts.map +1 -1
  473. package/dist/tools/get-issue-details.d.ts +3 -4
  474. package/dist/tools/get-issue-details.d.ts.map +1 -1
  475. package/dist/tools/get-issue-details.js +16 -15
  476. package/dist/tools/get-trace-details.cjs +11 -10
  477. package/dist/tools/get-trace-details.d.cts +7 -8
  478. package/dist/tools/get-trace-details.d.ts +7 -8
  479. package/dist/tools/get-trace-details.js +11 -10
  480. package/dist/tools/index.cjs +52 -51
  481. package/dist/tools/index.d.cts +79 -76
  482. package/dist/tools/index.d.cts.map +1 -1
  483. package/dist/tools/index.d.ts +79 -76
  484. package/dist/tools/index.d.ts.map +1 -1
  485. package/dist/tools/index.js +52 -51
  486. package/dist/tools/search-docs.cjs +10 -9
  487. package/dist/tools/search-docs.d.cts +3 -4
  488. package/dist/tools/search-docs.d.cts.map +1 -1
  489. package/dist/tools/search-docs.d.ts +3 -4
  490. package/dist/tools/search-docs.d.ts.map +1 -1
  491. package/dist/tools/search-docs.js +10 -9
  492. package/dist/tools/search-events/agent.cjs +15 -14
  493. package/dist/tools/search-events/agent.d.cts +4 -4
  494. package/dist/tools/search-events/agent.d.ts +6 -6
  495. package/dist/tools/search-events/agent.js +15 -14
  496. package/dist/tools/search-events/config.cjs +1 -1
  497. package/dist/tools/search-events/config.js +1 -1
  498. package/dist/tools/search-events/formatters.cjs +10 -10
  499. package/dist/tools/search-events/formatters.d.cts +5 -5
  500. package/dist/tools/search-events/formatters.d.ts +7 -7
  501. package/dist/tools/search-events/formatters.js +10 -10
  502. package/dist/tools/search-events/handler.cjs +20 -19
  503. package/dist/tools/search-events/handler.d.cts +4 -5
  504. package/dist/tools/search-events/handler.d.ts +4 -5
  505. package/dist/tools/search-events/handler.js +20 -19
  506. package/dist/tools/search-events/index.cjs +21 -20
  507. package/dist/tools/search-events/index.d.cts +8 -9
  508. package/dist/tools/search-events/index.d.ts +10 -11
  509. package/dist/tools/search-events/index.js +21 -20
  510. package/dist/tools/search-events/utils.cjs +9 -9
  511. package/dist/tools/search-events/utils.d.cts +5 -5
  512. package/dist/tools/search-events/utils.d.ts +7 -7
  513. package/dist/tools/search-events/utils.js +9 -9
  514. package/dist/tools/search-issues/agent.cjs +14 -13
  515. package/dist/tools/search-issues/agent.d.cts +4 -4
  516. package/dist/tools/search-issues/agent.d.ts +6 -6
  517. package/dist/tools/search-issues/agent.js +14 -13
  518. package/dist/tools/search-issues/config.cjs +1 -1
  519. package/dist/tools/search-issues/config.js +1 -1
  520. package/dist/tools/search-issues/formatters.cjs +2 -2
  521. package/dist/tools/search-issues/formatters.d.cts +3 -3
  522. package/dist/tools/search-issues/formatters.d.ts +5 -5
  523. package/dist/tools/search-issues/formatters.js +2 -2
  524. package/dist/tools/search-issues/handler.cjs +19 -18
  525. package/dist/tools/search-issues/handler.d.cts +4 -5
  526. package/dist/tools/search-issues/handler.d.ts +4 -5
  527. package/dist/tools/search-issues/handler.js +19 -18
  528. package/dist/tools/search-issues/index.cjs +20 -19
  529. package/dist/tools/search-issues/index.d.cts +8 -9
  530. package/dist/tools/search-issues/index.d.ts +10 -11
  531. package/dist/tools/search-issues/index.js +20 -19
  532. package/dist/tools/types.d.cts +3 -4
  533. package/dist/tools/types.d.ts +3 -4
  534. package/dist/tools/update-issue.cjs +16 -15
  535. package/dist/tools/update-issue.d.cts +10 -11
  536. package/dist/tools/update-issue.d.ts +10 -11
  537. package/dist/tools/update-issue.js +16 -15
  538. package/dist/tools/update-project.cjs +11 -11
  539. package/dist/tools/update-project.d.cts +3 -4
  540. package/dist/tools/update-project.d.cts.map +1 -1
  541. package/dist/tools/update-project.d.ts +3 -4
  542. package/dist/tools/update-project.d.ts.map +1 -1
  543. package/dist/tools/update-project.js +11 -11
  544. package/dist/tools/whoami.cjs +10 -9
  545. package/dist/tools/whoami.d.cts +3 -4
  546. package/dist/tools/whoami.d.ts +3 -4
  547. package/dist/tools/whoami.js +10 -9
  548. package/dist/{tools-UZ_biJKC.cjs → tools-DcCN34Xz.cjs} +20 -20
  549. package/dist/{tools-UZ_biJKC.cjs.map → tools-DcCN34Xz.cjs.map} +1 -1
  550. package/dist/{tools-BiCRxQiY.js → tools-Du5wLts3.js} +20 -20
  551. package/dist/{tools-BiCRxQiY.js.map → tools-Du5wLts3.js.map} +1 -1
  552. package/dist/transports/stdio.cjs +3 -65
  553. package/dist/transports/stdio.d.cts +12 -9
  554. package/dist/transports/stdio.d.cts.map +1 -1
  555. package/dist/transports/stdio.d.ts +12 -9
  556. package/dist/transports/stdio.d.ts.map +1 -1
  557. package/dist/transports/stdio.js +3 -65
  558. package/dist/{types-B4nOfch5.d.cts → types-4O1B8U0e.d.ts} +9 -4
  559. package/dist/types-4O1B8U0e.d.ts.map +1 -0
  560. package/dist/{types-DTp1ajTT.d.ts → types-B9_8hSal.d.cts} +5 -2
  561. package/dist/types-B9_8hSal.d.cts.map +1 -0
  562. package/dist/{types-DLRWzl3K.d.cts → types-BU11bcu2.d.ts} +5 -2
  563. package/dist/types-BU11bcu2.d.ts.map +1 -0
  564. package/dist/{types-o23QqDgk.d.cts → types-CZUp4Xzk.d.ts} +10 -5
  565. package/dist/types-CZUp4Xzk.d.ts.map +1 -0
  566. package/dist/{types-ryM3umix.d.ts → types-CtnbvcEw.d.cts} +9 -4
  567. package/dist/types-CtnbvcEw.d.cts.map +1 -0
  568. package/dist/{types-s3ChfOM9.d.ts → types-DkmHqy15.d.cts} +10 -5
  569. package/dist/types-DkmHqy15.d.cts.map +1 -0
  570. package/dist/types-NVsIso1A.d.ts +31 -0
  571. package/dist/types-NVsIso1A.d.ts.map +1 -0
  572. package/dist/types-Z4mR2AFK.d.cts +31 -0
  573. package/dist/types-Z4mR2AFK.d.cts.map +1 -0
  574. package/dist/types.cjs +16 -0
  575. package/dist/types.cjs.map +1 -0
  576. package/dist/types.d.cts +3 -4
  577. package/dist/types.d.ts +3 -4
  578. package/dist/types.js +15 -0
  579. package/dist/types.js.map +1 -0
  580. package/dist/{update-issue-nq8D_YUe.js → update-issue-CoAkoO66.js} +11 -5
  581. package/dist/update-issue-CoAkoO66.js.map +1 -0
  582. package/dist/{update-issue-CD-kp2dt.cjs → update-issue-eELBq_Uy.cjs} +11 -5
  583. package/dist/update-issue-eELBq_Uy.cjs.map +1 -0
  584. package/dist/{update-project-DvJfmSmX.js → update-project-CuZlyBPN.js} +13 -7
  585. package/dist/update-project-CuZlyBPN.js.map +1 -0
  586. package/dist/{update-project-B_OLM4Ky.cjs → update-project-DMRBdOZ5.cjs} +13 -7
  587. package/dist/update-project-DMRBdOZ5.cjs.map +1 -0
  588. package/dist/{url-utils-0OheI87i.cjs → url-utils-Bn5EoScr.cjs} +26 -1
  589. package/dist/url-utils-Bn5EoScr.cjs.map +1 -0
  590. package/dist/{url-utils-DF8NBCyH.js → url-utils-d9bPTnOl.js} +21 -2
  591. package/dist/url-utils-d9bPTnOl.js.map +1 -0
  592. package/dist/usage-CP6e39yF.cjs +39 -0
  593. package/dist/usage-CP6e39yF.cjs.map +1 -0
  594. package/dist/usage-CihInDyq.js +33 -0
  595. package/dist/usage-CihInDyq.js.map +1 -0
  596. package/dist/utils/url-utils.cjs +2 -1
  597. package/dist/utils/url-utils.d.cts +9 -1
  598. package/dist/utils/url-utils.d.cts.map +1 -1
  599. package/dist/utils/url-utils.d.ts +9 -1
  600. package/dist/utils/url-utils.d.ts.map +1 -1
  601. package/dist/utils/url-utils.js +2 -2
  602. package/dist/{utils-DQ69VZrK.cjs → utils-C5DuiZoe.cjs} +2 -2
  603. package/dist/{utils-DQ69VZrK.cjs.map → utils-C5DuiZoe.cjs.map} +1 -1
  604. package/dist/{utils-CP4vAzfv.js → utils-CwvZS30K.js} +2 -2
  605. package/dist/{utils-CP4vAzfv.js.map → utils-CwvZS30K.js.map} +1 -1
  606. package/dist/{utils-Cw6O1ztc.d.ts → utils-DKQuo7b2.d.ts} +4 -4
  607. package/dist/utils-DKQuo7b2.d.ts.map +1 -0
  608. package/dist/{utils-Ddvt3CBZ.d.cts → utils-DKgPcA6i.d.cts} +6 -6
  609. package/dist/{utils-Ddvt3CBZ.d.cts.map → utils-DKgPcA6i.d.cts.map} +1 -1
  610. package/dist/{utils-BOPpU4-H.cjs → utils-DUJcA3eH.cjs} +16 -7
  611. package/dist/utils-DUJcA3eH.cjs.map +1 -0
  612. package/dist/{utils-DA-V9B-n.d.ts → utils-DpeFMEgH.d.ts} +6 -6
  613. package/dist/{utils-DA-V9B-n.d.ts.map → utils-DpeFMEgH.d.ts.map} +1 -1
  614. package/dist/{utils-OyJ8CB2S.d.cts → utils-HNrRwq-a.d.cts} +4 -4
  615. package/dist/utils-HNrRwq-a.d.cts.map +1 -0
  616. package/dist/{utils-K1XhlGf4.js → utils-iC0Uutcf.js} +16 -7
  617. package/dist/utils-iC0Uutcf.js.map +1 -0
  618. package/dist/{validate-region-url-DTUtqFky.js → validate-region-url-CaR6XWB_.js} +1 -1
  619. package/dist/{validate-region-url-DTUtqFky.js.map → validate-region-url-CaR6XWB_.js.map} +1 -1
  620. package/dist/{validate-region-url-BhxxcBgE.cjs → validate-region-url-dzz6t54w.cjs} +1 -1
  621. package/dist/{validate-region-url-BhxxcBgE.cjs.map → validate-region-url-dzz6t54w.cjs.map} +1 -1
  622. package/dist/version-6dHij-Gk.js +6 -0
  623. package/dist/{version-CaDh5TML.js.map → version-6dHij-Gk.js.map} +1 -1
  624. package/dist/{version-DB2IM9qM.cjs → version-Cq6vA9Kc.cjs} +2 -2
  625. package/dist/{version-DB2IM9qM.cjs.map → version-Cq6vA9Kc.cjs.map} +1 -1
  626. package/dist/version.cjs +1 -1
  627. package/dist/version.js +1 -1
  628. package/dist/{whoami-qCGsRPRm.js → whoami-Bh_uOPqO.js} +6 -2
  629. package/dist/whoami-Bh_uOPqO.js.map +1 -0
  630. package/dist/{whoami-bRIfclYF.js → whoami-D8-XCgVJ.js} +2 -2
  631. package/dist/{whoami-bRIfclYF.js.map → whoami-D8-XCgVJ.js.map} +1 -1
  632. package/dist/{whoami-DCgOyVnW.cjs → whoami-DBSqcCGl.cjs} +2 -2
  633. package/dist/{whoami-DCgOyVnW.cjs.map → whoami-DBSqcCGl.cjs.map} +1 -1
  634. package/dist/{whoami-BdiVu0Wr.cjs → whoami-DBlwuDZf.cjs} +6 -2
  635. package/dist/whoami-DBlwuDZf.cjs.map +1 -0
  636. package/package.json +29 -27
  637. package/dist/about-CDAN_HuU.js +0 -136
  638. package/dist/about-CDAN_HuU.js.map +0 -1
  639. package/dist/about-CteXVo1Q.d.ts +0 -10
  640. package/dist/about-CteXVo1Q.d.ts.map +0 -1
  641. package/dist/about-CwQvsGSc.d.cts +0 -10
  642. package/dist/about-CwQvsGSc.d.cts.map +0 -1
  643. package/dist/about-aDGhlM6f.cjs +0 -142
  644. package/dist/about-aDGhlM6f.cjs.map +0 -1
  645. package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +0 -1
  646. package/dist/analyze-issue-with-seer-DqwczSTV.js.map +0 -1
  647. package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +0 -1
  648. package/dist/callEmbeddedAgent-C0pC9du1.js.map +0 -1
  649. package/dist/client-AVVG7J24.cjs.map +0 -1
  650. package/dist/client-B0wezrpt.d.cts.map +0 -1
  651. package/dist/client-BqrNpqZW.js.map +0 -1
  652. package/dist/client-D-KqRd94.d.ts.map +0 -1
  653. package/dist/create-dsn-BhshlP7l.js.map +0 -1
  654. package/dist/create-dsn-DaHidLhE.cjs.map +0 -1
  655. package/dist/create-project-C3laecaU.js.map +0 -1
  656. package/dist/create-project-xszOpGTC.cjs.map +0 -1
  657. package/dist/create-team-CTN-DxOE.js.map +0 -1
  658. package/dist/create-team-DmnJHSIx.cjs.map +0 -1
  659. package/dist/error-handling-efwohgKv.js.map +0 -1
  660. package/dist/error-handling-qfa1BeDb.cjs.map +0 -1
  661. package/dist/find-dsns-D0l3siyF.cjs.map +0 -1
  662. package/dist/find-dsns-U4CCcoTv.js.map +0 -1
  663. package/dist/find-organizations-Ca-zpAlI.cjs.map +0 -1
  664. package/dist/find-organizations-HUZFa8ZA.js.map +0 -1
  665. package/dist/find-projects-CWNLthwg.cjs.map +0 -1
  666. package/dist/find-projects-Dy1_O9L0.js.map +0 -1
  667. package/dist/find-releases-BtazPcQH.cjs.map +0 -1
  668. package/dist/find-releases-DN_BfQM2.js.map +0 -1
  669. package/dist/find-teams-CRVT4KOg.js +0 -40
  670. package/dist/find-teams-CRVT4KOg.js.map +0 -1
  671. package/dist/find-teams-_zAHPVGx.cjs.map +0 -1
  672. package/dist/formatting-BjCK9XwW.js.map +0 -1
  673. package/dist/formatting-CqmsvuAY.cjs.map +0 -1
  674. package/dist/formatting-XMmhMjRz.d.cts.map +0 -1
  675. package/dist/formatting-l3qx5d7L.d.ts.map +0 -1
  676. package/dist/get-doc-Euz6NiM3.cjs.map +0 -1
  677. package/dist/get-doc-JDwOkY2j.js.map +0 -1
  678. package/dist/get-event-attachment-DvpQ-dEP.cjs.map +0 -1
  679. package/dist/get-event-attachment-pIJmUfFE.js.map +0 -1
  680. package/dist/get-issue-details-B1PDMmMY.js.map +0 -1
  681. package/dist/get-issue-details-BH75EnNk.cjs.map +0 -1
  682. package/dist/get-trace-details-Bksygq21.cjs.map +0 -1
  683. package/dist/get-trace-details-CaK0JMf4.js.map +0 -1
  684. package/dist/handler-BbqDy4DA.js.map +0 -1
  685. package/dist/handler-C0zOOLbO.cjs.map +0 -1
  686. package/dist/handler-DyBdUYam.js.map +0 -1
  687. package/dist/handler-cy5oD28N.cjs.map +0 -1
  688. package/dist/internal/sentry-scrubbing.cjs +0 -6
  689. package/dist/internal/sentry-scrubbing.d.cts +0 -28
  690. package/dist/internal/sentry-scrubbing.d.cts.map +0 -1
  691. package/dist/internal/sentry-scrubbing.d.ts +0 -28
  692. package/dist/internal/sentry-scrubbing.d.ts.map +0 -1
  693. package/dist/internal/sentry-scrubbing.js +0 -3
  694. package/dist/logging-CBMxr4i2.js +0 -25
  695. package/dist/logging-CBMxr4i2.js.map +0 -1
  696. package/dist/logging-rvUPDKax.cjs +0 -31
  697. package/dist/logging-rvUPDKax.cjs.map +0 -1
  698. package/dist/logging.cjs +0 -3
  699. package/dist/logging.d.cts +0 -37
  700. package/dist/logging.d.cts.map +0 -1
  701. package/dist/logging.d.ts +0 -37
  702. package/dist/logging.d.ts.map +0 -1
  703. package/dist/logging.js +0 -3
  704. package/dist/parse-C3tRlsy-.js.map +0 -1
  705. package/dist/parse-CeFc4xnt.cjs.map +0 -1
  706. package/dist/permissions-C-q0Y5bL.d.ts.map +0 -1
  707. package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
  708. package/dist/permissions-DRdH39Fe.js.map +0 -1
  709. package/dist/permissions-DuDYuCjy.cjs.map +0 -1
  710. package/dist/promptDefinitions-02aQWFKD.cjs +0 -37
  711. package/dist/promptDefinitions-02aQWFKD.cjs.map +0 -1
  712. package/dist/promptDefinitions-ImFNiWkX.d.cts +0 -34
  713. package/dist/promptDefinitions-ImFNiWkX.d.cts.map +0 -1
  714. package/dist/promptDefinitions-Y-mt2_IM.d.ts +0 -34
  715. package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +0 -1
  716. package/dist/promptDefinitions-wR6u6ZJE.js +0 -31
  717. package/dist/promptDefinitions-wR6u6ZJE.js.map +0 -1
  718. package/dist/promptDefinitions.cjs +0 -6
  719. package/dist/promptDefinitions.d.cts +0 -2
  720. package/dist/promptDefinitions.d.ts +0 -2
  721. package/dist/promptDefinitions.js +0 -6
  722. package/dist/prompts-BwZJaywH.cjs +0 -41
  723. package/dist/prompts-BwZJaywH.cjs.map +0 -1
  724. package/dist/prompts-DCJ0XraB.js +0 -36
  725. package/dist/prompts-DCJ0XraB.js.map +0 -1
  726. package/dist/prompts.cjs +0 -4
  727. package/dist/prompts.d.cts +0 -31
  728. package/dist/prompts.d.cts.map +0 -1
  729. package/dist/prompts.d.ts +0 -31
  730. package/dist/prompts.d.ts.map +0 -1
  731. package/dist/prompts.js +0 -4
  732. package/dist/resolve-B_Fq13Dk.js.map +0 -1
  733. package/dist/resolve-CAtC1wN-.cjs.map +0 -1
  734. package/dist/resources/about.cjs +0 -3
  735. package/dist/resources/about.d.cts +0 -2
  736. package/dist/resources/about.d.ts +0 -2
  737. package/dist/resources/about.js +0 -3
  738. package/dist/resources/index.cjs +0 -4
  739. package/dist/resources/index.d.cts +0 -2
  740. package/dist/resources/index.d.ts +0 -2
  741. package/dist/resources/index.js +0 -4
  742. package/dist/resources-B4ropjfD.cjs +0 -94
  743. package/dist/resources-B4ropjfD.cjs.map +0 -1
  744. package/dist/resources-DaEUMw3Y.js +0 -82
  745. package/dist/resources-DaEUMw3Y.js.map +0 -1
  746. package/dist/resources.cjs +0 -8
  747. package/dist/resources.d.cts +0 -37
  748. package/dist/resources.d.cts.map +0 -1
  749. package/dist/resources.d.ts +0 -37
  750. package/dist/resources.d.ts.map +0 -1
  751. package/dist/resources.js +0 -7
  752. package/dist/schema-BUBkkdUa.cjs.map +0 -1
  753. package/dist/schema-CbXlt1rW.cjs.map +0 -1
  754. package/dist/schema-ChvpDxUk.d.cts.map +0 -1
  755. package/dist/schema-D1CzTJXB.js.map +0 -1
  756. package/dist/schema-DOY22v1Q.d.ts.map +0 -1
  757. package/dist/schema-DPJO5nkQ.js.map +0 -1
  758. package/dist/search-docs-CH6-1H9_.cjs.map +0 -1
  759. package/dist/search-docs-CpAlMLs8.js.map +0 -1
  760. package/dist/sentry-scrubbing-BrjExjlM.js +0 -94
  761. package/dist/sentry-scrubbing-BrjExjlM.js.map +0 -1
  762. package/dist/sentry-scrubbing-CDcE4n-D.cjs +0 -118
  763. package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +0 -1
  764. package/dist/server-BjizUxVR.js +0 -238
  765. package/dist/server-BjizUxVR.js.map +0 -1
  766. package/dist/server-RKq8MlNM.cjs +0 -244
  767. package/dist/server-RKq8MlNM.cjs.map +0 -1
  768. package/dist/stdio-CJnMOUAU.cjs.map +0 -1
  769. package/dist/stdio-DB9muOi8.js.map +0 -1
  770. package/dist/types-B4nOfch5.d.cts.map +0 -1
  771. package/dist/types-CKPddlfS.cjs +0 -0
  772. package/dist/types-Cy4S5lN-.js +0 -0
  773. package/dist/types-DLRWzl3K.d.cts.map +0 -1
  774. package/dist/types-DTp1ajTT.d.ts.map +0 -1
  775. package/dist/types-Dj36Sq2V.d.cts +0 -41
  776. package/dist/types-Dj36Sq2V.d.cts.map +0 -1
  777. package/dist/types-m-t7jx2f.d.ts +0 -41
  778. package/dist/types-m-t7jx2f.d.ts.map +0 -1
  779. package/dist/types-o23QqDgk.d.cts.map +0 -1
  780. package/dist/types-ryM3umix.d.ts.map +0 -1
  781. package/dist/types-s3ChfOM9.d.ts.map +0 -1
  782. package/dist/update-issue-CD-kp2dt.cjs.map +0 -1
  783. package/dist/update-issue-nq8D_YUe.js.map +0 -1
  784. package/dist/update-project-B_OLM4Ky.cjs.map +0 -1
  785. package/dist/update-project-DvJfmSmX.js.map +0 -1
  786. package/dist/url-utils-0OheI87i.cjs.map +0 -1
  787. package/dist/url-utils-DF8NBCyH.js.map +0 -1
  788. package/dist/usage-Do2a2NJi.cjs +0 -44
  789. package/dist/usage-Do2a2NJi.cjs.map +0 -1
  790. package/dist/usage-OGOjVeAz.js +0 -38
  791. package/dist/usage-OGOjVeAz.js.map +0 -1
  792. package/dist/utils-BOPpU4-H.cjs.map +0 -1
  793. package/dist/utils-Cw6O1ztc.d.ts.map +0 -1
  794. package/dist/utils-K1XhlGf4.js.map +0 -1
  795. package/dist/utils-OyJ8CB2S.d.cts.map +0 -1
  796. package/dist/version-CaDh5TML.js +0 -6
  797. package/dist/whoami-BdiVu0Wr.cjs.map +0 -1
  798. package/dist/whoami-qCGsRPRm.js.map +0 -1
  799. /package/dist/{api-client-T99a5Vta.js → api-client-BR5WolLe.js} +0 -0
  800. /package/dist/{api-client-_2QFWf0d.cjs → api-client-BsHWi0-I.cjs} +0 -0
  801. /package/dist/{index-DCwqskfg.d.ts → index-DZJ9s9rm.d.ts} +0 -0
  802. /package/dist/{issue-DKr8zNay.js → issue-B7cgiWKp.cjs} +0 -0
  803. /package/dist/{issue-DrgpqPbF.cjs → issue-BLm6gohl.js} +0 -0
  804. /package/dist/{resources-BlsH_EDg.cjs → search-events-Bc2a_R3A.cjs} +0 -0
  805. /package/dist/{resources-U-u5ze91.js → search-events-Bo5bAsOv.js} +0 -0
  806. /package/dist/{search-events-CUvQ_Jch.js → search-issues-AaiYCZ6J.cjs} +0 -0
  807. /package/dist/{search-events-DSY2Z_Eh.cjs → search-issues-DVHuKDdB.js} +0 -0
  808. /package/dist/{search-issues-BOmdyuUf.js → types-Bx1EKe0v.js} +0 -0
  809. /package/dist/{search-issues-BxO2JE3D.cjs → types-D10T4PdD.cjs} +0 -0
@@ -0,0 +1,33 @@
1
+ //#region src/cli/usage.ts
2
+ function buildUsage(packageName, defaults, all) {
3
+ return `Usage: ${packageName} --access-token=<token> [--host=<host>]
4
+
5
+ Required:
6
+ --access-token <token> Sentry User Auth Token with API access
7
+
8
+ Common optional flags:
9
+ --host <host> Change Sentry host (self-hosted)
10
+ --sentry-dsn <dsn> Override DSN used for telemetry reporting
11
+ --openai-base-url <url> Override OpenAI API base URL for embedded agents
12
+
13
+ Session constraints:
14
+ --organization-slug <slug> Force all calls to an organization
15
+ --project-slug <slug> Optional project constraint
16
+
17
+ Scope controls:
18
+ --scopes <list> Override default scopes
19
+ --add-scopes <list> Add scopes to defaults
20
+ --all-scopes Grant every available scope
21
+
22
+ Defaults: ${defaults.join(", ")}
23
+ All scopes: ${all.join(", ")}
24
+
25
+ Examples:
26
+ ${packageName} --access-token=TOKEN
27
+ ${packageName} --access-token=TOKEN --host=sentry.example.com
28
+ ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;
29
+ }
30
+
31
+ //#endregion
32
+ export { buildUsage };
33
+ //# sourceMappingURL=usage-CihInDyq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-CihInDyq.js","names":["packageName: string","defaults: ReadonlyArray<Scope>","all: ReadonlyArray<Scope>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\n\nexport function buildUsage(\n packageName: string,\n defaults: ReadonlyArray<Scope>,\n all: ReadonlyArray<Scope>,\n): string {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>]\n\nRequired:\n --access-token <token> Sentry User Auth Token with API access\n\nCommon optional flags:\n --host <host> Change Sentry host (self-hosted)\n --sentry-dsn <dsn> Override DSN used for telemetry reporting\n --openai-base-url <url> Override OpenAI API base URL for embedded agents\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nScope controls:\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefaults: ${defaults.join(\", \")}\nAll scopes: ${all.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";AAEA,SAAgB,WACdA,aACAC,UACAC,KACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;YAmBnB,SAAS,KAAK,KAAK,CAAC;cAClB,IAAI,KAAK,KAAK,CAAC;;;IAGzB,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
@@ -1,4 +1,4 @@
1
- const require_url_utils = require('../url-utils-0OheI87i.cjs');
1
+ const require_url_utils = require('../url-utils-Bn5EoScr.cjs');
2
2
 
3
3
  exports.getEventsExplorerUrl = require_url_utils.getEventsExplorerUrl;
4
4
  exports.getIssueUrl = require_url_utils.getIssueUrl;
@@ -7,5 +7,6 @@ exports.getTraceUrl = require_url_utils.getTraceUrl;
7
7
  exports.isSentryHost = require_url_utils.isSentryHost;
8
8
  exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
9
9
  exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
10
+ exports.validateOpenAiBaseUrlThrows = require_url_utils.validateOpenAiBaseUrlThrows;
10
11
  exports.validateSentryHost = require_url_utils.validateSentryHost;
11
12
  exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;
@@ -73,7 +73,15 @@ declare function validateSentryHostThrows(host: string): void;
73
73
  * @throws {Error} If the URL is invalid or not HTTPS
74
74
  */
75
75
  declare function validateAndParseSentryUrlThrows(url: string): string;
76
+ /**
77
+ * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
78
+ *
79
+ * @param url The URL to validate and normalize
80
+ * @returns The normalized URL string
81
+ * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
82
+ */
83
+ declare function validateOpenAiBaseUrlThrows(url: string): string;
76
84
  //# sourceMappingURL=url-utils.d.ts.map
77
85
  //#endregion
78
- export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
86
+ export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
79
87
  //# sourceMappingURL=url-utils.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;;;;iBAhNgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
1
+ {"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;AAWA;;;iBA3NgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA;;;;;;;;iBAWA,2BAAA"}
@@ -73,7 +73,15 @@ declare function validateSentryHostThrows(host: string): void;
73
73
  * @throws {Error} If the URL is invalid or not HTTPS
74
74
  */
75
75
  declare function validateAndParseSentryUrlThrows(url: string): string;
76
+ /**
77
+ * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
78
+ *
79
+ * @param url The URL to validate and normalize
80
+ * @returns The normalized URL string
81
+ * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
82
+ */
83
+ declare function validateOpenAiBaseUrlThrows(url: string): string;
76
84
  //# sourceMappingURL=url-utils.d.ts.map
77
85
  //#endregion
78
- export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
86
+ export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
79
87
  //# sourceMappingURL=url-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;;;;iBAhNgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
1
+ {"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;AAWA;;;iBA3NgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA;;;;;;;;iBAWA,2BAAA"}
@@ -1,3 +1,3 @@
1
- import { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows } from "../url-utils-DF8NBCyH.js";
1
+ import { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows } from "../url-utils-d9bPTnOl.js";
2
2
 
3
- export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
3
+ export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_utils = require('./utils-BOPpU4-H.cjs');
2
+ const require_utils = require('./utils-DUJcA3eH.cjs');
3
3
  const zod = require_chunk.__toESM(require("zod"));
4
4
 
5
5
  //#region src/tools/search-events/utils.ts
@@ -121,4 +121,4 @@ Object.defineProperty(exports, 'isAggregateQuery', {
121
121
  return isAggregateQuery;
122
122
  }
123
123
  });
124
- //# sourceMappingURL=utils-DQ69VZrK.cjs.map
124
+ //# sourceMappingURL=utils-C5DuiZoe.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-DQ69VZrK.cjs","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"utils-C5DuiZoe.cjs","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { agentTool } from "./utils-K1XhlGf4.js";
1
+ import { agentTool } from "./utils-iC0Uutcf.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/tools/search-events/utils.ts
@@ -91,4 +91,4 @@ Use this information to construct appropriate queries for the ${dataset} dataset
91
91
 
92
92
  //#endregion
93
93
  export { createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
94
- //# sourceMappingURL=utils-CP4vAzfv.js.map
94
+ //# sourceMappingURL=utils-CwvZS30K.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-CP4vAzfv.js","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":";;;;AAQA,SAAgB,eACdA,OACAC,KACA,eAAe,IACP;CACR,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW,QAAQ;AAC5C;AAGD,SAAgB,eACdD,OACAC,KACoB;CACpB,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW;AACpC;AAGD,SAAgB,iBAAiBC,QAA2B;AAC1D,QAAO,OAAO,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI,IAAI,MAAM,SAAS,IAAI,CAAC;AAC1E;AAGD,eAAsB,sBACpBC,YACAC,kBACAC,SACAC,WACAC,YAIC;CACD,MAAMC,mBAA2C,CAAE;CACnD,MAAMC,aAAkD,CAAE;AAE1D,KAAI,YAAY,UAAU;EAGxB,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C;GACA,SAAS;GACT,SAAS;GACT,aAAa;GACb,UAAU;GACV,iBAAiB;EAClB,EAAC;AAEF,OAAK,MAAM,OAAO,aAChB,KAAI,IAAI,QAAQ,IAAI,IAAI,WAAW,UAAU,CAC3C,kBAAiB,IAAI,OAAO,IAAI,QAAQ,IAAI;CAGjD,OAAM;EAEL,MAAM,WAAW,YAAY,SAAS,SAAS;EAC/C,MAAM,qBAAqB,MAAM,WAAW,wBAAwB;GAClE;GACA;GACA,SAAS;GACT,aAAa;EACd,EAAC;AAEF,OAAK,MAAM,QAAQ,mBACjB,KAAI,KAAK,QAAQ,KAAK,IAAI,WAAW,UAAU,EAAE;AAC/C,oBAAiB,KAAK,OAAO,KAAK,QAAQ,KAAK;AAE/C,OAAI,KAAK,SAAS,KAAK,SAAS,YAAY,KAAK,SAAS,UACxD,YAAW,KAAK,OAAO,KAAK;EAE/B;CAEJ;AAED,QAAO;EAAE,YAAY;EAAkB;CAAY;AACpD;;;;;AAMD,SAAgB,4BAA4BC,SAIzC;CACD,MAAM,EAAE,YAAY,kBAAkB,WAAW,GAAG;AACpD,QAAO,UAAU;EACf,aACE;EACF,YAAY,EAAE,OAAO,EACnB,SAAS,EACN,KAAK;GAAC;GAAS;GAAU;EAAO,EAAC,CACjC,SAAS,sCAAsC,CACnD,EAAC;EACF,SAAS,OAAO,EAAE,SAAS,KAAK;GAC9B,MAAM,EACJ,oBACA,gBACA,oBACA,gBACD,GAAG,MAAM,OAAO;GAMjB,MAAM,EAAE,YAAY,kBAAkB,YAAY,GAChD,MAAM,sBACJ,YACA,kBACA,SACA,UACD;GAGH,MAAM,YAAY;IAChB,GAAG;IACH,GAAG,eAAe;IAClB,GAAG;GACJ;GAED,MAAM,oBAAoB,mBAAmB;GAG7C,MAAM,gBAAgB,EAAE,GAAG,WAAY;GACvC,MAAM,sBAAsB,eAAe,4BAAY,IAAI;AAC3D,QAAK,MAAM,SAAS,oBAClB,eAAc,SAAS;AAGzB,WAAQ,WAAW,QAAQ;;oBAEb,OAAO,KAAK,UAAU,CAAC,OAAO;EAChD,OAAO,QAAQ,UAAU,CACxB,MAAM,GAAG,GAAG,CACZ,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,IAAI,IAAI,OAAO,CACzC,KAAK,KAAK,CAAC;EACZ,OAAO,KAAK,UAAU,CAAC,SAAS,MAAM,YAAY,OAAO,KAAK,UAAU,CAAC,SAAS,GAAG,gBAAgB,GAAG;;yBAEjF,QAAQ;EAC/B,kBAAkB,MAAM,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC;;;EAGxD,OAAO,QAAQ,cAAc,CAC5B,MAAM,GAAG,GAAG,CACZ,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,IAAI,IAAI,OAAO,CACzC,KAAK,KAAK,CAAC;EACZ,OAAO,KAAK,cAAc,CAAC,SAAS,MAAM,YAAY,OAAO,KAAK,cAAc,CAAC,SAAS,GAAG,gBAAgB,GAAG;;;;gEAIlD,QAAQ;EACnE;CACF,EAAC;AACH"}
1
+ {"version":3,"file":"utils-CwvZS30K.js","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import * as ai262 from "ai";
2
+ import * as ai260 from "ai";
3
3
 
4
4
  //#region src/internal/agents/tools/utils.d.ts
5
5
  type AgentToolResponse<T = unknown> = {
@@ -34,10 +34,10 @@ declare function agentTool<TParameters, TResult>(config: {
34
34
  description: string;
35
35
  parameters: z.ZodSchema<TParameters>;
36
36
  execute: (params: TParameters) => Promise<TResult>;
37
- }): ai262.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
- execute: (args: TParameters, options: ai262.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
37
+ }): ai260.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
+ execute: (args: TParameters, options: ai260.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
39
39
  };
40
40
  //# sourceMappingURL=utils.d.ts.map
41
41
  //#endregion
42
42
  export { AgentToolResponse, agentTool };
43
- //# sourceMappingURL=utils-Cw6O1ztc.d.ts.map
43
+ //# sourceMappingURL=utils-DKQuo7b2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-DKQuo7b2.d.ts","names":[],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":[],"mappings":";;;;KAkBY;;WAED;AAFX,CAAA;AAqFA;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB;;cAEF,CAAA,CAAE,UAAU;oBACN,gBAAgB,QAAQ;IAC3C,KAAA,CAAA,KAAA,CAAA,CAAA,QAAA,aAAA,CAAA,CAAA,YAAA,cAAA,kBAAA,QAAA;kBAAA"}
@@ -1,7 +1,7 @@
1
- import { SentryApiService } from "./client-B0wezrpt.cjs";
2
- import { AgentToolResponse } from "./utils-OyJ8CB2S.cjs";
1
+ import { SentryApiService } from "./client-C_fNdaX8.cjs";
2
+ import { AgentToolResponse } from "./utils-HNrRwq-a.cjs";
3
3
  import { z } from "zod";
4
- import * as ai229 from "ai";
4
+ import * as ai257 from "ai";
5
5
 
6
6
  //#region src/tools/search-events/utils.d.ts
7
7
  type FlexibleEventData = Record<string, unknown>;
@@ -24,16 +24,16 @@ declare function createDatasetAttributesTool(options: {
24
24
  apiService: SentryApiService;
25
25
  organizationSlug: string;
26
26
  projectId?: string;
27
- }): ai229.Tool<z.ZodType<{
27
+ }): ai257.Tool<z.ZodType<{
28
28
  dataset: "spans" | "logs" | "errors";
29
29
  }, z.ZodTypeDef, {
30
30
  dataset: "spans" | "logs" | "errors";
31
31
  }>, AgentToolResponse<string>> & {
32
32
  execute: (args: {
33
33
  dataset: "spans" | "logs" | "errors";
34
- }, options: ai229.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
34
+ }, options: ai257.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
35
35
  };
36
36
  //# sourceMappingURL=utils.d.ts.map
37
37
  //#endregion
38
38
  export { FlexibleEventData, createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
39
- //# sourceMappingURL=utils-Ddvt3CBZ.d.cts.map
39
+ //# sourceMappingURL=utils-DKgPcA6i.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-Ddvt3CBZ.d.cts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,QAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"utils-DKgPcA6i.d.cts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,QAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,KAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_errors = require('./errors-BtJEw2Z-.cjs');
3
- const require_errors$1 = require('./errors-CNTY5dED.cjs');
4
- const require_logging = require('./logging-rvUPDKax.cjs');
3
+ const require_logging = require('./logging-CkAJKyq2.cjs');
4
+ const require_errors$1 = require('./errors-Bmqdg5Q6.cjs');
5
5
  const zod = require_chunk.__toESM(require("zod"));
6
6
  const ai = require_chunk.__toESM(require("ai"));
7
7
 
@@ -22,20 +22,29 @@ const AgentToolResponseSchema = zod.z.object({
22
22
  */
23
23
  function handleAgentToolError(error) {
24
24
  if (error instanceof require_errors.UserInputError) {
25
- console.warn(`[agent-tool] ${error.message}`);
25
+ require_logging.logWarn(error, {
26
+ loggerScope: ["agent-tools", "user-input"],
27
+ contexts: { agentTool: { errorType: "UserInputError" } }
28
+ });
26
29
  return { error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.` };
27
30
  }
28
31
  if (error instanceof require_errors$1.ApiClientError) {
29
32
  const message = error.toUserMessage();
30
- console.warn(`[agent-tool] ${message}`);
33
+ require_logging.logWarn(message, {
34
+ loggerScope: ["agent-tools", "api-client"],
35
+ contexts: { agentTool: {
36
+ errorType: error.name,
37
+ status: error.status ?? null
38
+ } }
39
+ });
31
40
  return { error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.` };
32
41
  }
33
42
  if (error instanceof require_errors$1.ApiServerError) {
34
- const eventId$1 = require_logging.logError(error);
43
+ const eventId$1 = require_logging.logIssue(error);
35
44
  const statusText = error.status ? ` (${error.status})` : "";
36
45
  return { error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId$1}. This is a system error that cannot be resolved by retrying.` };
37
46
  }
38
- const eventId = require_logging.logError(error);
47
+ const eventId = require_logging.logIssue(error);
39
48
  return { error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.` };
40
49
  }
41
50
  /**
@@ -84,4 +93,4 @@ Object.defineProperty(exports, 'agentTool', {
84
93
  return agentTool;
85
94
  }
86
95
  });
87
- //# sourceMappingURL=utils-BOPpU4-H.cjs.map
96
+ //# sourceMappingURL=utils-DUJcA3eH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-DUJcA3eH.cjs","names":["error: unknown","UserInputError","ApiClientError","ApiServerError","eventId","config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}","params: TParameters"],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":["import { tool } from \"ai\";\nimport { z } from \"zod\";\nimport { UserInputError } from \"../../../errors\";\nimport { ApiClientError, ApiServerError } from \"../../../api-client\";\nimport { logIssue, logWarn } from \"../../../telem/logging\";\n\n/**\n * Standard response schema for all embedded agent tools.\n * Tools return either an error message or the result data, never both.\n */\nconst AgentToolResponseSchema = z.object({\n error: z\n .string()\n .optional()\n .describe(\"Error message if the operation failed\"),\n result: z.unknown().optional().describe(\"The successful result data\"),\n});\n\nexport type AgentToolResponse<T = unknown> = {\n error?: string;\n result?: T;\n};\n\n/**\n * Handles errors from agent tool execution and returns appropriate error messages.\n *\n * SECURITY: Only returns trusted error messages to prevent prompt injection.\n * We trust: Sentry API errors, our own UserInputError messages, and system templates.\n */\nfunction handleAgentToolError<T>(error: unknown): AgentToolResponse<T> {\n if (error instanceof UserInputError) {\n // Log UserInputError for Sentry logging (as log, not exception)\n logWarn(error, {\n loggerScope: [\"agent-tools\", \"user-input\"],\n contexts: {\n agentTool: {\n errorType: \"UserInputError\",\n },\n },\n });\n return {\n error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiClientError) {\n // Log ApiClientError for Sentry logging (as log, not exception)\n const message = error.toUserMessage();\n logWarn(message, {\n loggerScope: [\"agent-tools\", \"api-client\"],\n contexts: {\n agentTool: {\n errorType: error.name,\n status: error.status ?? null,\n },\n },\n });\n return {\n error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiServerError) {\n // Log server errors to Sentry and get Event ID\n const eventId = logIssue(error);\n const statusText = error.status ? ` (${error.status})` : \"\";\n return {\n error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n }\n\n // Log unexpected errors to Sentry and return safe generic message\n // SECURITY: Don't return untrusted error messages that could enable prompt injection\n const eventId = logIssue(error);\n return {\n error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n}\n\n/**\n * Creates an embedded agent tool with automatic error handling and schema wrapping.\n *\n * This wrapper:\n * - Maintains the same API as the AI SDK's tool() function\n * - Automatically wraps the result schema with error/result structure\n * - Handles all error types and returns them as structured responses\n * - Preserves type inference from the original tool implementation\n *\n * @example\n * ```typescript\n * export function createMyTool(apiService: SentryApiService) {\n * return agentTool({\n * description: \"My tool description\",\n * parameters: z.object({ param: z.string() }),\n * execute: async (params) => {\n * // Tool implementation that might throw errors\n * const result = await apiService.someMethod(params);\n * return result; // Original return type preserved\n * }\n * });\n * }\n * ```\n */\nexport function agentTool<TParameters, TResult>(config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}) {\n // Infer the result type from the execute function's return type\n type InferredResult = Awaited<ReturnType<typeof config.execute>>;\n\n return tool({\n description: config.description,\n parameters: config.parameters,\n execute: async (\n params: TParameters,\n ): Promise<AgentToolResponse<InferredResult>> => {\n try {\n const result = await config.execute(params);\n return { result };\n } catch (error) {\n return handleAgentToolError<InferredResult>(error);\n }\n },\n });\n}\n"],"mappings":";;;;;;;;;;;;AAUA,MAAM,0BAA0B,MAAE,OAAO;CACvC,OAAO,MACJ,QAAQ,CACR,UAAU,CACV,SAAS,wCAAwC;CACpD,QAAQ,MAAE,SAAS,CAAC,UAAU,CAAC,SAAS,6BAA6B;AACtE,EAAC;;;;;;;AAaF,SAAS,qBAAwBA,OAAsC;AACrE,KAAI,iBAAiBC,+BAAgB;AAEnC,0BAAQ,OAAO;GACb,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW,EACT,WAAW,iBACZ,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,MAAM,QAAQ,+EACtC;CACF;AAED,KAAI,iBAAiBC,iCAAgB;EAEnC,MAAM,UAAU,MAAM,eAAe;AACrC,0BAAQ,SAAS;GACf,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW;IACT,WAAW,MAAM;IACjB,QAAQ,MAAM,UAAU;GACzB,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,QAAQ,+EAChC;CACF;AAED,KAAI,iBAAiBC,iCAAgB;EAEnC,MAAMC,YAAU,yBAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UAAU,IAAI,MAAM,OAAO,KAAK;AACzD,SAAO,EACL,QAAQ,cAAc,WAAW,IAAI,MAAM,QAAQ,cAAcA,UAAQ,+DAC1E;CACF;CAID,MAAM,UAAU,yBAAS,MAAM;AAC/B,QAAO,EACL,QAAQ,wDAAwD,QAAQ,+DACzE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;AA0BD,SAAgB,UAAgCC,QAI7C;AAID,QAAO,aAAK;EACV,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,SAAS,OACPC,WAC+C;AAC/C,OAAI;IACF,MAAM,SAAS,MAAM,OAAO,QAAQ,OAAO;AAC3C,WAAO,EAAE,OAAQ;GAClB,SAAQ,OAAO;AACd,WAAO,qBAAqC,MAAM;GACnD;EACF;CACF,EAAC;AACH"}
@@ -1,7 +1,7 @@
1
- import { SentryApiService } from "./client-D-KqRd94.js";
2
- import { AgentToolResponse } from "./utils-Cw6O1ztc.js";
1
+ import { SentryApiService } from "./client-VVhTv_ej.js";
2
+ import { AgentToolResponse } from "./utils-DKQuo7b2.js";
3
3
  import { z } from "zod";
4
- import * as ai247 from "ai";
4
+ import * as ai238 from "ai";
5
5
 
6
6
  //#region src/tools/search-events/utils.d.ts
7
7
  type FlexibleEventData = Record<string, unknown>;
@@ -24,16 +24,16 @@ declare function createDatasetAttributesTool(options: {
24
24
  apiService: SentryApiService;
25
25
  organizationSlug: string;
26
26
  projectId?: string;
27
- }): ai247.Tool<z.ZodType<{
27
+ }): ai238.Tool<z.ZodType<{
28
28
  dataset: "spans" | "logs" | "errors";
29
29
  }, z.ZodTypeDef, {
30
30
  dataset: "spans" | "logs" | "errors";
31
31
  }>, AgentToolResponse<string>> & {
32
32
  execute: (args: {
33
33
  dataset: "spans" | "logs" | "errors";
34
- }, options: ai247.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
34
+ }, options: ai238.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
35
35
  };
36
36
  //# sourceMappingURL=utils.d.ts.map
37
37
  //#endregion
38
38
  export { FlexibleEventData, createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
39
- //# sourceMappingURL=utils-DA-V9B-n.d.ts.map
39
+ //# sourceMappingURL=utils-DpeFMEgH.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-DA-V9B-n.d.ts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,QAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"utils-DpeFMEgH.d.ts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,QAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,MAAA,GAAA,QAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,KAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import * as ai241 from "ai";
2
+ import * as ai268 from "ai";
3
3
 
4
4
  //#region src/internal/agents/tools/utils.d.ts
5
5
  type AgentToolResponse<T = unknown> = {
@@ -34,10 +34,10 @@ declare function agentTool<TParameters, TResult>(config: {
34
34
  description: string;
35
35
  parameters: z.ZodSchema<TParameters>;
36
36
  execute: (params: TParameters) => Promise<TResult>;
37
- }): ai241.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
- execute: (args: TParameters, options: ai241.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
37
+ }): ai268.Tool<z.ZodType<TParameters, z.ZodTypeDef, TParameters>, AgentToolResponse<Awaited<TResult>>> & {
38
+ execute: (args: TParameters, options: ai268.ToolExecutionOptions) => PromiseLike<AgentToolResponse<Awaited<TResult>>>;
39
39
  };
40
40
  //# sourceMappingURL=utils.d.ts.map
41
41
  //#endregion
42
42
  export { AgentToolResponse, agentTool };
43
- //# sourceMappingURL=utils-OyJ8CB2S.d.cts.map
43
+ //# sourceMappingURL=utils-HNrRwq-a.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-HNrRwq-a.d.cts","names":[],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":[],"mappings":";;;;KAkBY;;WAED;AAFX,CAAA;AAqFA;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB;;cAEF,CAAA,CAAE,UAAU;oBACN,gBAAgB,QAAQ;IAC3C,KAAA,CAAA,KAAA,CAAA,CAAA,QAAA,aAAA,CAAA,CAAA,YAAA,cAAA,kBAAA,QAAA;kBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { UserInputError } from "./errors-D_R568zP.js";
2
- import { ApiClientError, ApiServerError } from "./errors-Dr7Q6mD5.js";
3
- import { logError } from "./logging-CBMxr4i2.js";
2
+ import { logIssue, logWarn } from "./logging-DqqDTe02.js";
3
+ import { ApiClientError, ApiServerError } from "./errors-CQZ-QlOB.js";
4
4
  import { z } from "zod";
5
5
  import { tool } from "ai";
6
6
 
@@ -21,20 +21,29 @@ const AgentToolResponseSchema = z.object({
21
21
  */
22
22
  function handleAgentToolError(error) {
23
23
  if (error instanceof UserInputError) {
24
- console.warn(`[agent-tool] ${error.message}`);
24
+ logWarn(error, {
25
+ loggerScope: ["agent-tools", "user-input"],
26
+ contexts: { agentTool: { errorType: "UserInputError" } }
27
+ });
25
28
  return { error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.` };
26
29
  }
27
30
  if (error instanceof ApiClientError) {
28
31
  const message = error.toUserMessage();
29
- console.warn(`[agent-tool] ${message}`);
32
+ logWarn(message, {
33
+ loggerScope: ["agent-tools", "api-client"],
34
+ contexts: { agentTool: {
35
+ errorType: error.name,
36
+ status: error.status ?? null
37
+ } }
38
+ });
30
39
  return { error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.` };
31
40
  }
32
41
  if (error instanceof ApiServerError) {
33
- const eventId$1 = logError(error);
42
+ const eventId$1 = logIssue(error);
34
43
  const statusText = error.status ? ` (${error.status})` : "";
35
44
  return { error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId$1}. This is a system error that cannot be resolved by retrying.` };
36
45
  }
37
- const eventId = logError(error);
46
+ const eventId = logIssue(error);
38
47
  return { error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.` };
39
48
  }
40
49
  /**
@@ -78,4 +87,4 @@ function agentTool(config) {
78
87
 
79
88
  //#endregion
80
89
  export { agentTool };
81
- //# sourceMappingURL=utils-K1XhlGf4.js.map
90
+ //# sourceMappingURL=utils-iC0Uutcf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-iC0Uutcf.js","names":["error: unknown","eventId","config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}","params: TParameters"],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":["import { tool } from \"ai\";\nimport { z } from \"zod\";\nimport { UserInputError } from \"../../../errors\";\nimport { ApiClientError, ApiServerError } from \"../../../api-client\";\nimport { logIssue, logWarn } from \"../../../telem/logging\";\n\n/**\n * Standard response schema for all embedded agent tools.\n * Tools return either an error message or the result data, never both.\n */\nconst AgentToolResponseSchema = z.object({\n error: z\n .string()\n .optional()\n .describe(\"Error message if the operation failed\"),\n result: z.unknown().optional().describe(\"The successful result data\"),\n});\n\nexport type AgentToolResponse<T = unknown> = {\n error?: string;\n result?: T;\n};\n\n/**\n * Handles errors from agent tool execution and returns appropriate error messages.\n *\n * SECURITY: Only returns trusted error messages to prevent prompt injection.\n * We trust: Sentry API errors, our own UserInputError messages, and system templates.\n */\nfunction handleAgentToolError<T>(error: unknown): AgentToolResponse<T> {\n if (error instanceof UserInputError) {\n // Log UserInputError for Sentry logging (as log, not exception)\n logWarn(error, {\n loggerScope: [\"agent-tools\", \"user-input\"],\n contexts: {\n agentTool: {\n errorType: \"UserInputError\",\n },\n },\n });\n return {\n error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiClientError) {\n // Log ApiClientError for Sentry logging (as log, not exception)\n const message = error.toUserMessage();\n logWarn(message, {\n loggerScope: [\"agent-tools\", \"api-client\"],\n contexts: {\n agentTool: {\n errorType: error.name,\n status: error.status ?? null,\n },\n },\n });\n return {\n error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiServerError) {\n // Log server errors to Sentry and get Event ID\n const eventId = logIssue(error);\n const statusText = error.status ? ` (${error.status})` : \"\";\n return {\n error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n }\n\n // Log unexpected errors to Sentry and return safe generic message\n // SECURITY: Don't return untrusted error messages that could enable prompt injection\n const eventId = logIssue(error);\n return {\n error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n}\n\n/**\n * Creates an embedded agent tool with automatic error handling and schema wrapping.\n *\n * This wrapper:\n * - Maintains the same API as the AI SDK's tool() function\n * - Automatically wraps the result schema with error/result structure\n * - Handles all error types and returns them as structured responses\n * - Preserves type inference from the original tool implementation\n *\n * @example\n * ```typescript\n * export function createMyTool(apiService: SentryApiService) {\n * return agentTool({\n * description: \"My tool description\",\n * parameters: z.object({ param: z.string() }),\n * execute: async (params) => {\n * // Tool implementation that might throw errors\n * const result = await apiService.someMethod(params);\n * return result; // Original return type preserved\n * }\n * });\n * }\n * ```\n */\nexport function agentTool<TParameters, TResult>(config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}) {\n // Infer the result type from the execute function's return type\n type InferredResult = Awaited<ReturnType<typeof config.execute>>;\n\n return tool({\n description: config.description,\n parameters: config.parameters,\n execute: async (\n params: TParameters,\n ): Promise<AgentToolResponse<InferredResult>> => {\n try {\n const result = await config.execute(params);\n return { result };\n } catch (error) {\n return handleAgentToolError<InferredResult>(error);\n }\n },\n });\n}\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,0BAA0B,EAAE,OAAO;CACvC,OAAO,EACJ,QAAQ,CACR,UAAU,CACV,SAAS,wCAAwC;CACpD,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS,6BAA6B;AACtE,EAAC;;;;;;;AAaF,SAAS,qBAAwBA,OAAsC;AACrE,KAAI,iBAAiB,gBAAgB;AAEnC,UAAQ,OAAO;GACb,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW,EACT,WAAW,iBACZ,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,MAAM,QAAQ,+EACtC;CACF;AAED,KAAI,iBAAiB,gBAAgB;EAEnC,MAAM,UAAU,MAAM,eAAe;AACrC,UAAQ,SAAS;GACf,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW;IACT,WAAW,MAAM;IACjB,QAAQ,MAAM,UAAU;GACzB,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,QAAQ,+EAChC;CACF;AAED,KAAI,iBAAiB,gBAAgB;EAEnC,MAAMC,YAAU,SAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UAAU,IAAI,MAAM,OAAO,KAAK;AACzD,SAAO,EACL,QAAQ,cAAc,WAAW,IAAI,MAAM,QAAQ,cAAcA,UAAQ,+DAC1E;CACF;CAID,MAAM,UAAU,SAAS,MAAM;AAC/B,QAAO,EACL,QAAQ,wDAAwD,QAAQ,+DACzE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;AA0BD,SAAgB,UAAgCC,QAI7C;AAID,QAAO,KAAK;EACV,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,SAAS,OACPC,WAC+C;AAC/C,OAAI;IACF,MAAM,SAAS,MAAM,OAAO,QAAQ,OAAO;AAC3C,WAAO,EAAE,OAAQ;GAClB,SAAQ,OAAO;AACd,WAAO,qBAAqC,MAAM;GACnD;EACF;CACF,EAAC;AACH"}
@@ -34,4 +34,4 @@ function validateRegionUrl(regionUrl, baseHost) {
34
34
 
35
35
  //#endregion
36
36
  export { validateRegionUrl };
37
- //# sourceMappingURL=validate-region-url-DTUtqFky.js.map
37
+ //# sourceMappingURL=validate-region-url-CaR6XWB_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-region-url-DTUtqFky.js","names":["regionUrl: string","baseHost: string","parsedUrl: URL"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAI,gBACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAI,gBACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,8BAA8B,IAAI,WAAW,CAChD,OAAM,IAAI,gBACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAK,8BAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
1
+ {"version":3,"file":"validate-region-url-CaR6XWB_.js","names":["regionUrl: string","baseHost: string","parsedUrl: URL"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAI,gBACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAI,gBACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,8BAA8B,IAAI,WAAW,CAChD,OAAM,IAAI,gBACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAK,8BAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
@@ -39,4 +39,4 @@ Object.defineProperty(exports, 'validateRegionUrl', {
39
39
  return validateRegionUrl;
40
40
  }
41
41
  });
42
- //# sourceMappingURL=validate-region-url-BhxxcBgE.cjs.map
42
+ //# sourceMappingURL=validate-region-url-dzz6t54w.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-region-url-BhxxcBgE.cjs","names":["regionUrl: string","baseHost: string","parsedUrl: URL","UserInputError","SENTRY_ALLOWED_REGION_DOMAINS"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAIC,+BACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAIA,+BACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,gDAA8B,IAAI,WAAW,CAChD,OAAM,IAAIA,+BACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAKC,gDAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
1
+ {"version":3,"file":"validate-region-url-dzz6t54w.cjs","names":["regionUrl: string","baseHost: string","parsedUrl: URL","UserInputError","SENTRY_ALLOWED_REGION_DOMAINS"],"sources":["../src/internal/tool-helpers/validate-region-url.ts"],"sourcesContent":["import { UserInputError } from \"../../errors\";\nimport { SENTRY_ALLOWED_REGION_DOMAINS } from \"../../constants\";\n\n/**\n * Validates that a regionUrl is valid.\n * Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.\n *\n * Rules:\n * 1. By default, only the base host itself is allowed as regionUrl\n * 2. For other domains, they must be in SENTRY_ALLOWED_REGION_DOMAINS\n * 3. Protocol MUST be HTTPS for security\n *\n * @param regionUrl - The region URL to validate\n * @param baseHost - The base host to validate against\n * @returns The validated host if valid\n * @throws {UserInputError} If the regionUrl is invalid or not allowed\n */\nexport function validateRegionUrl(regionUrl: string, baseHost: string): string {\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(regionUrl);\n } catch {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must be a valid URL.`,\n );\n }\n\n // Validate protocol - MUST be HTTPS for security\n if (parsedUrl.protocol !== \"https:\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. Must use HTTPS protocol for security.`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n const regionHost = parsedUrl.host.toLowerCase();\n const baseLower = baseHost.toLowerCase();\n\n // First, allow if it's the same as the base host\n if (regionHost === baseLower) {\n return regionHost;\n }\n\n // Otherwise, check against the allowlist\n if (!SENTRY_ALLOWED_REGION_DOMAINS.has(regionHost)) {\n throw new UserInputError(\n `Invalid regionUrl: ${regionUrl}. The domain '${regionHost}' is not allowed. Allowed domains are: ${Array.from(SENTRY_ALLOWED_REGION_DOMAINS).join(\", \")}`,\n );\n }\n\n return regionHost;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkBA,WAAmBC,UAA0B;CAC7E,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,QAAO;AACN,QAAM,IAAIC,+BACP,8BAA8B,UAAU;CAE5C;AAGD,KAAI,UAAU,aAAa,SACzB,OAAM,IAAIA,+BACP,8BAA8B,UAAU;AAK7C,KAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,UAAU;CAI7C,MAAM,aAAa,UAAU,KAAK,aAAa;CAC/C,MAAM,YAAY,SAAS,aAAa;AAGxC,KAAI,eAAe,UACjB,QAAO;AAIT,MAAK,gDAA8B,IAAI,WAAW,CAChD,OAAM,IAAIA,+BACP,qBAAqB,UAAU,gBAAgB,WAAW,yCAAyC,MAAM,KAAKC,gDAA8B,CAAC,KAAK,KAAK;AAI5J,QAAO;AACR"}
@@ -0,0 +1,6 @@
1
+ //#region src/version.ts
2
+ const LIB_VERSION = typeof process !== "undefined" && "0.19.0" || "0.0.0";
3
+
4
+ //#endregion
5
+ export { LIB_VERSION };
6
+ //# sourceMappingURL=version-6dHij-Gk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-CaDh5TML.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-6dHij-Gk.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.18.0" || "0.0.0";
3
+ const LIB_VERSION = typeof process !== "undefined" && "0.19.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-DB2IM9qM.cjs.map
12
+ //# sourceMappingURL=version-Cq6vA9Kc.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-DB2IM9qM.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-Cq6vA9Kc.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-DB2IM9qM.cjs');
1
+ const require_version = require('./version-Cq6vA9Kc.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-CaDh5TML.js";
1
+ import { LIB_VERSION } from "./version-6dHij-Gk.js";
2
2
 
3
3
  export { LIB_VERSION };