@sentry/mcp-server 0.23.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (813) hide show
  1. package/dist/{chunk-CUT6urMc.cjs → chunk-DoeelZqw.cjs} +21 -0
  2. package/dist/cli/parse.cjs +1 -1
  3. package/dist/cli/parse.d.cts +1 -3
  4. package/dist/cli/parse.d.cts.map +1 -1
  5. package/dist/cli/parse.d.ts +1 -3
  6. package/dist/cli/parse.d.ts.map +1 -1
  7. package/dist/cli/parse.js +1 -1
  8. package/dist/cli/resolve.cjs +1 -5
  9. package/dist/cli/resolve.d.cts +1 -3
  10. package/dist/cli/resolve.d.cts.map +1 -1
  11. package/dist/cli/resolve.d.ts +1 -3
  12. package/dist/cli/resolve.d.ts.map +1 -1
  13. package/dist/cli/resolve.js +1 -5
  14. package/dist/cli/types.d.cts +1 -3
  15. package/dist/cli/types.d.ts +1 -3
  16. package/dist/cli/usage.cjs +1 -1
  17. package/dist/cli/usage.d.cts +2 -2
  18. package/dist/cli/usage.d.ts +2 -2
  19. package/dist/cli/usage.js +1 -1
  20. package/dist/config-Bs1p6XwV.js +3 -0
  21. package/dist/config-DFewJLVx.cjs +6 -0
  22. package/dist/{config-jAHLRqMZ.js → config-DtimzxvV-BItTrGiz.js} +3 -306
  23. package/dist/config-DtimzxvV-BItTrGiz.js.map +1 -0
  24. package/dist/{config-2JTOC4-d.cjs → config-DtimzxvV-D3ccpxhQ.cjs} +2 -311
  25. package/dist/config-DtimzxvV-D3ccpxhQ.cjs.map +1 -0
  26. package/dist/index.cjs +21355 -77
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.js +21379 -69
  29. package/dist/index.js.map +1 -1
  30. package/dist/{parse-Br-BwKdT.cjs → parse-By6nDBNs.cjs} +2 -2
  31. package/dist/{parse-Br-BwKdT.cjs.map → parse-By6nDBNs.cjs.map} +1 -1
  32. package/dist/{parse-BvHK_nys.js → parse-Dn9XeQSj.js} +1 -1
  33. package/dist/{parse-BvHK_nys.js.map → parse-Dn9XeQSj.js.map} +1 -1
  34. package/dist/resolve-BCdS4js5.js +590 -0
  35. package/dist/resolve-BCdS4js5.js.map +1 -0
  36. package/dist/resolve-BMmRdCFJ.cjs +692 -0
  37. package/dist/resolve-BMmRdCFJ.cjs.map +1 -0
  38. package/dist/{stdio-2BaHF2h-.js → stdio-232a22j4.js} +7 -3
  39. package/dist/stdio-232a22j4.js.map +1 -0
  40. package/dist/{stdio-DL-ID7Q4.cjs → stdio-aCI9XyaI.cjs} +20 -4
  41. package/dist/stdio-aCI9XyaI.cjs.map +1 -0
  42. package/dist/transports/stdio.cjs +1 -2
  43. package/dist/transports/stdio.d.cts +1 -3
  44. package/dist/transports/stdio.d.cts.map +1 -1
  45. package/dist/transports/stdio.d.ts +1 -3
  46. package/dist/transports/stdio.d.ts.map +1 -1
  47. package/dist/transports/stdio.js +1 -2
  48. package/dist/{types-BeIzCAF1.d.cts → types-CM88pHH_.d.ts} +3 -3
  49. package/dist/{types-C70IdmF4.d.ts.map → types-CM88pHH_.d.ts.map} +1 -1
  50. package/dist/{types-C70IdmF4.d.ts → types-CnLRMjvf.d.cts} +3 -3
  51. package/dist/{types-BeIzCAF1.d.cts.map → types-CnLRMjvf.d.cts.map} +1 -1
  52. package/dist/{usage-CpguKuwi.js → usage-DMGbIpV-.js} +1 -1
  53. package/dist/usage-DMGbIpV-.js.map +1 -0
  54. package/dist/{usage-CMWaPhZv.cjs → usage-iwGZsu3a.cjs} +1 -1
  55. package/dist/usage-iwGZsu3a.cjs.map +1 -0
  56. package/package.json +19 -104
  57. package/README.md +0 -121
  58. package/dist/agent-9s0S2VUD.js +0 -43
  59. package/dist/agent-9s0S2VUD.js.map +0 -1
  60. package/dist/agent-BI-VWYjJ.d.ts +0 -93
  61. package/dist/agent-BI-VWYjJ.d.ts.map +0 -1
  62. package/dist/agent-Bm5Hsfal.d.cts +0 -32
  63. package/dist/agent-Bm5Hsfal.d.cts.map +0 -1
  64. package/dist/agent-BmPRmM9x.d.cts +0 -93
  65. package/dist/agent-BmPRmM9x.d.cts.map +0 -1
  66. package/dist/agent-BsCC60AU.js +0 -64
  67. package/dist/agent-BsCC60AU.js.map +0 -1
  68. package/dist/agent-CJ6SVqAB.d.ts +0 -32
  69. package/dist/agent-CJ6SVqAB.d.ts.map +0 -1
  70. package/dist/agent-CirZFiaJ.cjs +0 -55
  71. package/dist/agent-CirZFiaJ.cjs.map +0 -1
  72. package/dist/agent-CnHO6uyy.cjs +0 -76
  73. package/dist/agent-CnHO6uyy.cjs.map +0 -1
  74. package/dist/agent-D8Mz9ung.d.cts +0 -35
  75. package/dist/agent-D8Mz9ung.d.cts.map +0 -1
  76. package/dist/agent-DD0p64Dq.js +0 -29
  77. package/dist/agent-DD0p64Dq.js.map +0 -1
  78. package/dist/agent-DQdvMLcG.d.ts +0 -35
  79. package/dist/agent-DQdvMLcG.d.ts.map +0 -1
  80. package/dist/agent-DaUNg6Ut.cjs +0 -35
  81. package/dist/agent-DaUNg6Ut.cjs.map +0 -1
  82. package/dist/analyze-issue-with-seer-6OwT1RJP.js +0 -200
  83. package/dist/analyze-issue-with-seer-6OwT1RJP.js.map +0 -1
  84. package/dist/analyze-issue-with-seer-wsCEFdZs.cjs +0 -206
  85. package/dist/analyze-issue-with-seer-wsCEFdZs.cjs.map +0 -1
  86. package/dist/api-BCICbJoI.js +0 -63
  87. package/dist/api-BCICbJoI.js.map +0 -1
  88. package/dist/api-CfzBwheo.cjs +0 -80
  89. package/dist/api-CfzBwheo.cjs.map +0 -1
  90. package/dist/api-client/client.cjs +0 -9
  91. package/dist/api-client/client.d.cts +0 -4
  92. package/dist/api-client/client.d.ts +0 -4
  93. package/dist/api-client/client.js +0 -9
  94. package/dist/api-client/errors.cjs +0 -11
  95. package/dist/api-client/errors.d.cts +0 -2
  96. package/dist/api-client/errors.d.ts +0 -2
  97. package/dist/api-client/errors.js +0 -3
  98. package/dist/api-client/index.cjs +0 -70
  99. package/dist/api-client/index.d.cts +0 -6
  100. package/dist/api-client/index.d.ts +0 -6
  101. package/dist/api-client/index.js +0 -11
  102. package/dist/api-client/schema.cjs +0 -52
  103. package/dist/api-client/schema.d.cts +0 -2
  104. package/dist/api-client/schema.d.ts +0 -2
  105. package/dist/api-client/schema.js +0 -3
  106. package/dist/api-client/types.cjs +0 -1
  107. package/dist/api-client/types.d.cts +0 -3
  108. package/dist/api-client/types.d.ts +0 -3
  109. package/dist/api-client/types.js +0 -1
  110. package/dist/api-client-BGgaBFuD.cjs +0 -0
  111. package/dist/api-client-CSLxiNP9.js +0 -0
  112. package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts +0 -34
  113. package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts.map +0 -1
  114. package/dist/callEmbeddedAgent-CFHLQjFx.d.cts +0 -34
  115. package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +0 -1
  116. package/dist/callEmbeddedAgent-COB8Jrcn.cjs +0 -51
  117. package/dist/callEmbeddedAgent-COB8Jrcn.cjs.map +0 -1
  118. package/dist/callEmbeddedAgent-rEUWAl2g.js +0 -45
  119. package/dist/callEmbeddedAgent-rEUWAl2g.js.map +0 -1
  120. package/dist/client-8_aKE-B-.d.cts +0 -844
  121. package/dist/client-8_aKE-B-.d.cts.map +0 -1
  122. package/dist/client-BGVY6gBL.d.ts +0 -844
  123. package/dist/client-BGVY6gBL.d.ts.map +0 -1
  124. package/dist/client-Be1DR1al.js +0 -1098
  125. package/dist/client-Be1DR1al.js.map +0 -1
  126. package/dist/client-DSxCsnqO.cjs +0 -1103
  127. package/dist/client-DSxCsnqO.cjs.map +0 -1
  128. package/dist/config-2JTOC4-d.cjs.map +0 -1
  129. package/dist/config-BFaJp4hW.js +0 -74
  130. package/dist/config-BFaJp4hW.js.map +0 -1
  131. package/dist/config-BMLvvgGQ.cjs +0 -37
  132. package/dist/config-BMLvvgGQ.cjs.map +0 -1
  133. package/dist/config-BacDkkdz.cjs +0 -80
  134. package/dist/config-BacDkkdz.cjs.map +0 -1
  135. package/dist/config-Dh25cVhL.js +0 -25
  136. package/dist/config-Dh25cVhL.js.map +0 -1
  137. package/dist/config-jAHLRqMZ.js.map +0 -1
  138. package/dist/constants-CgLLujFn.cjs +0 -220
  139. package/dist/constants-CgLLujFn.cjs.map +0 -1
  140. package/dist/constants-D8axTonA.js +0 -184
  141. package/dist/constants-D8axTonA.js.map +0 -1
  142. package/dist/constants.cjs +0 -10
  143. package/dist/constants.d.cts +0 -36
  144. package/dist/constants.d.cts.map +0 -1
  145. package/dist/constants.d.ts +0 -36
  146. package/dist/constants.d.ts.map +0 -1
  147. package/dist/constants.js +0 -4
  148. package/dist/constraint-helpers-CBddlAo8.js +0 -64
  149. package/dist/constraint-helpers-CBddlAo8.js.map +0 -1
  150. package/dist/constraint-helpers-UEovDW_M.cjs +0 -76
  151. package/dist/constraint-helpers-UEovDW_M.cjs.map +0 -1
  152. package/dist/create-dsn-C5vd9Btg.cjs +0 -74
  153. package/dist/create-dsn-C5vd9Btg.cjs.map +0 -1
  154. package/dist/create-dsn-DBqCDM_6.js +0 -68
  155. package/dist/create-dsn-DBqCDM_6.js.map +0 -1
  156. package/dist/create-project-BsN4Q0cl.js +0 -86
  157. package/dist/create-project-BsN4Q0cl.js.map +0 -1
  158. package/dist/create-project-D4W66CxU.cjs +0 -92
  159. package/dist/create-project-D4W66CxU.cjs.map +0 -1
  160. package/dist/create-team-DUBAEGGr.js +0 -63
  161. package/dist/create-team-DUBAEGGr.js.map +0 -1
  162. package/dist/create-team-DV6XmZkb.cjs +0 -69
  163. package/dist/create-team-DV6XmZkb.cjs.map +0 -1
  164. package/dist/dataset-fields-Bp_g-sD6.cjs +0 -179
  165. package/dist/dataset-fields-Bp_g-sD6.cjs.map +0 -1
  166. package/dist/dataset-fields-dZ43jEgF.js +0 -155
  167. package/dist/dataset-fields-dZ43jEgF.js.map +0 -1
  168. package/dist/define-CLp6EtpZ.cjs +0 -14
  169. package/dist/define-CLp6EtpZ.cjs.map +0 -1
  170. package/dist/define-vA6uuVue.js +0 -8
  171. package/dist/define-vA6uuVue.js.map +0 -1
  172. package/dist/enhance-error-BULHg3Tl.js +0 -32
  173. package/dist/enhance-error-BULHg3Tl.js.map +0 -1
  174. package/dist/enhance-error-vihkdCX5.cjs +0 -37
  175. package/dist/enhance-error-vihkdCX5.cjs.map +0 -1
  176. package/dist/error-handling-CLnyY1TR.js +0 -97
  177. package/dist/error-handling-CLnyY1TR.js.map +0 -1
  178. package/dist/error-handling-FGjcJT8U.cjs +0 -132
  179. package/dist/error-handling-FGjcJT8U.cjs.map +0 -1
  180. package/dist/errors-BXmNwD2K.js +0 -26
  181. package/dist/errors-BXmNwD2K.js.map +0 -1
  182. package/dist/errors-BYClKbv4.d.cts +0 -20
  183. package/dist/errors-BYClKbv4.d.cts.map +0 -1
  184. package/dist/errors-Cn4l-BlC.d.ts +0 -20
  185. package/dist/errors-Cn4l-BlC.d.ts.map +0 -1
  186. package/dist/errors-CyAWBU2S.d.ts +0 -126
  187. package/dist/errors-CyAWBU2S.d.ts.map +0 -1
  188. package/dist/errors-DMiENfq7.d.cts +0 -126
  189. package/dist/errors-DMiENfq7.d.cts.map +0 -1
  190. package/dist/errors-DUEMWOr1.js +0 -217
  191. package/dist/errors-DUEMWOr1.js.map +0 -1
  192. package/dist/errors-DWysOIMw.cjs +0 -271
  193. package/dist/errors-DWysOIMw.cjs.map +0 -1
  194. package/dist/errors-umQzF_vW.cjs +0 -38
  195. package/dist/errors-umQzF_vW.cjs.map +0 -1
  196. package/dist/errors.cjs +0 -4
  197. package/dist/errors.d.cts +0 -2
  198. package/dist/errors.d.ts +0 -2
  199. package/dist/errors.js +0 -3
  200. package/dist/fetch-utils-C6qSgZai.js +0 -52
  201. package/dist/fetch-utils-C6qSgZai.js.map +0 -1
  202. package/dist/fetch-utils-DRgOJp3e.cjs +0 -64
  203. package/dist/fetch-utils-DRgOJp3e.cjs.map +0 -1
  204. package/dist/find-dsns-BabAfVEt.cjs +0 -64
  205. package/dist/find-dsns-BabAfVEt.cjs.map +0 -1
  206. package/dist/find-dsns-C-Q6yJT5.js +0 -58
  207. package/dist/find-dsns-C-Q6yJT5.js.map +0 -1
  208. package/dist/find-organizations-Bo-JdU-R.js +0 -59
  209. package/dist/find-organizations-Bo-JdU-R.js.map +0 -1
  210. package/dist/find-organizations-CEEqa1an.cjs +0 -64
  211. package/dist/find-organizations-CEEqa1an.cjs.map +0 -1
  212. package/dist/find-projects-BWyvosHM.cjs +0 -59
  213. package/dist/find-projects-BWyvosHM.cjs.map +0 -1
  214. package/dist/find-projects-zM4CM_xX.js +0 -53
  215. package/dist/find-projects-zM4CM_xX.js.map +0 -1
  216. package/dist/find-releases-DMJrj5wz.cjs +0 -105
  217. package/dist/find-releases-DMJrj5wz.cjs.map +0 -1
  218. package/dist/find-releases-DzdGLPSN.js +0 -99
  219. package/dist/find-releases-DzdGLPSN.js.map +0 -1
  220. package/dist/find-teams-CR_hdlun.js +0 -56
  221. package/dist/find-teams-CR_hdlun.js.map +0 -1
  222. package/dist/find-teams-lOqS_719.cjs +0 -62
  223. package/dist/find-teams-lOqS_719.cjs.map +0 -1
  224. package/dist/formatters-B6H5qTFe.cjs +0 -98
  225. package/dist/formatters-B6H5qTFe.cjs.map +0 -1
  226. package/dist/formatters-BOJNlDKG.js +0 -223
  227. package/dist/formatters-BOJNlDKG.js.map +0 -1
  228. package/dist/formatters-C9MhdNDX.js +0 -86
  229. package/dist/formatters-C9MhdNDX.js.map +0 -1
  230. package/dist/formatters-ObdzRwld.cjs +0 -247
  231. package/dist/formatters-ObdzRwld.cjs.map +0 -1
  232. package/dist/formatting-BatGC-29.cjs +0 -984
  233. package/dist/formatting-BatGC-29.cjs.map +0 -1
  234. package/dist/formatting-Bm1GxhEu.d.ts +0 -54
  235. package/dist/formatting-Bm1GxhEu.d.ts.map +0 -1
  236. package/dist/formatting-C6hyL-Yv.cjs +0 -20
  237. package/dist/formatting-C6hyL-Yv.cjs.map +0 -1
  238. package/dist/formatting-DJFcfTJG.js +0 -14
  239. package/dist/formatting-DJFcfTJG.js.map +0 -1
  240. package/dist/formatting-DUODx6N5.js +0 -967
  241. package/dist/formatting-DUODx6N5.js.map +0 -1
  242. package/dist/formatting-GZdM57wq.d.cts +0 -54
  243. package/dist/formatting-GZdM57wq.d.cts.map +0 -1
  244. package/dist/get-doc-CbVw4ada.cjs +0 -93
  245. package/dist/get-doc-CbVw4ada.cjs.map +0 -1
  246. package/dist/get-doc-FuILofQP.js +0 -87
  247. package/dist/get-doc-FuILofQP.js.map +0 -1
  248. package/dist/get-event-attachment-DuyBT68p.cjs +0 -150
  249. package/dist/get-event-attachment-DuyBT68p.cjs.map +0 -1
  250. package/dist/get-event-attachment-Dzg2R7ng.js +0 -144
  251. package/dist/get-event-attachment-Dzg2R7ng.js.map +0 -1
  252. package/dist/get-issue-details-BY7S1YyX.cjs +0 -201
  253. package/dist/get-issue-details-BY7S1YyX.cjs.map +0 -1
  254. package/dist/get-issue-details-BxJzOzFQ.js +0 -195
  255. package/dist/get-issue-details-BxJzOzFQ.js.map +0 -1
  256. package/dist/get-trace-details-DD0p3apU.cjs +0 -313
  257. package/dist/get-trace-details-DD0p3apU.cjs.map +0 -1
  258. package/dist/get-trace-details-Dv2FB534.js +0 -307
  259. package/dist/get-trace-details-Dv2FB534.js.map +0 -1
  260. package/dist/handler-0iIvlYwy.d.cts +0 -11
  261. package/dist/handler-0iIvlYwy.d.cts.map +0 -1
  262. package/dist/handler-8JzODzam.d.cts +0 -15
  263. package/dist/handler-8JzODzam.d.cts.map +0 -1
  264. package/dist/handler-9UUkphzv.d.ts +0 -15
  265. package/dist/handler-9UUkphzv.d.ts.map +0 -1
  266. package/dist/handler-BfTAwyrq.js +0 -153
  267. package/dist/handler-BfTAwyrq.js.map +0 -1
  268. package/dist/handler-BhjeSo2N.js +0 -132
  269. package/dist/handler-BhjeSo2N.js.map +0 -1
  270. package/dist/handler-BjTPOR8v.cjs +0 -138
  271. package/dist/handler-BjTPOR8v.cjs.map +0 -1
  272. package/dist/handler-C5Tgh1wj.cjs +0 -159
  273. package/dist/handler-C5Tgh1wj.cjs.map +0 -1
  274. package/dist/handler-ClZBIn0B.d.cts +0 -15
  275. package/dist/handler-ClZBIn0B.d.cts.map +0 -1
  276. package/dist/handler-CmAbLcaV.d.ts +0 -15
  277. package/dist/handler-CmAbLcaV.d.ts.map +0 -1
  278. package/dist/handler-DbUy8Z54.d.ts +0 -11
  279. package/dist/handler-DbUy8Z54.d.ts.map +0 -1
  280. package/dist/index-CmCelmEL.d.cts +0 -1
  281. package/dist/index-NfFbnYt3.d.ts +0 -1
  282. package/dist/internal/agents/callEmbeddedAgent.cjs +0 -6
  283. package/dist/internal/agents/callEmbeddedAgent.d.cts +0 -2
  284. package/dist/internal/agents/callEmbeddedAgent.d.ts +0 -2
  285. package/dist/internal/agents/callEmbeddedAgent.js +0 -6
  286. package/dist/internal/agents/openai-provider.cjs +0 -5
  287. package/dist/internal/agents/openai-provider.d.cts +0 -22
  288. package/dist/internal/agents/openai-provider.d.cts.map +0 -1
  289. package/dist/internal/agents/openai-provider.d.ts +0 -22
  290. package/dist/internal/agents/openai-provider.d.ts.map +0 -1
  291. package/dist/internal/agents/openai-provider.js +0 -4
  292. package/dist/internal/agents/tools/dataset-fields.cjs +0 -16
  293. package/dist/internal/agents/tools/dataset-fields.d.cts +0 -58
  294. package/dist/internal/agents/tools/dataset-fields.d.cts.map +0 -1
  295. package/dist/internal/agents/tools/dataset-fields.d.ts +0 -58
  296. package/dist/internal/agents/tools/dataset-fields.d.ts.map +0 -1
  297. package/dist/internal/agents/tools/dataset-fields.js +0 -13
  298. package/dist/internal/agents/tools/otel-semantics.cjs +0 -14
  299. package/dist/internal/agents/tools/otel-semantics.d.cts +0 -41
  300. package/dist/internal/agents/tools/otel-semantics.d.cts.map +0 -1
  301. package/dist/internal/agents/tools/otel-semantics.d.ts +0 -41
  302. package/dist/internal/agents/tools/otel-semantics.d.ts.map +0 -1
  303. package/dist/internal/agents/tools/otel-semantics.js +0 -13
  304. package/dist/internal/agents/tools/utils.cjs +0 -12
  305. package/dist/internal/agents/tools/utils.d.cts +0 -2
  306. package/dist/internal/agents/tools/utils.d.ts +0 -2
  307. package/dist/internal/agents/tools/utils.js +0 -12
  308. package/dist/internal/agents/tools/whoami.cjs +0 -14
  309. package/dist/internal/agents/tools/whoami.d.cts +0 -33
  310. package/dist/internal/agents/tools/whoami.d.cts.map +0 -1
  311. package/dist/internal/agents/tools/whoami.d.ts +0 -33
  312. package/dist/internal/agents/tools/whoami.d.ts.map +0 -1
  313. package/dist/internal/agents/tools/whoami.js +0 -13
  314. package/dist/internal/constraint-helpers.cjs +0 -4
  315. package/dist/internal/constraint-helpers.d.cts +0 -54
  316. package/dist/internal/constraint-helpers.d.cts.map +0 -1
  317. package/dist/internal/constraint-helpers.d.ts +0 -54
  318. package/dist/internal/constraint-helpers.d.ts.map +0 -1
  319. package/dist/internal/constraint-helpers.js +0 -3
  320. package/dist/internal/error-handling.cjs +0 -17
  321. package/dist/internal/error-handling.d.cts +0 -40
  322. package/dist/internal/error-handling.d.cts.map +0 -1
  323. package/dist/internal/error-handling.d.ts +0 -40
  324. package/dist/internal/error-handling.d.ts.map +0 -1
  325. package/dist/internal/error-handling.js +0 -12
  326. package/dist/internal/fetch-utils.cjs +0 -4
  327. package/dist/internal/fetch-utils.d.cts +0 -33
  328. package/dist/internal/fetch-utils.d.cts.map +0 -1
  329. package/dist/internal/fetch-utils.d.ts +0 -33
  330. package/dist/internal/fetch-utils.d.ts.map +0 -1
  331. package/dist/internal/fetch-utils.js +0 -3
  332. package/dist/internal/formatting.cjs +0 -7
  333. package/dist/internal/formatting.d.cts +0 -7
  334. package/dist/internal/formatting.d.ts +0 -7
  335. package/dist/internal/formatting.js +0 -5
  336. package/dist/internal/issue-helpers.cjs +0 -6
  337. package/dist/internal/issue-helpers.d.cts +0 -2
  338. package/dist/internal/issue-helpers.d.ts +0 -2
  339. package/dist/internal/issue-helpers.js +0 -4
  340. package/dist/internal/test-fixtures.cjs +0 -224
  341. package/dist/internal/test-fixtures.cjs.map +0 -1
  342. package/dist/internal/test-fixtures.d.cts +0 -130
  343. package/dist/internal/test-fixtures.d.cts.map +0 -1
  344. package/dist/internal/test-fixtures.d.ts +0 -130
  345. package/dist/internal/test-fixtures.d.ts.map +0 -1
  346. package/dist/internal/test-fixtures.js +0 -215
  347. package/dist/internal/test-fixtures.js.map +0 -1
  348. package/dist/internal/tool-helpers/api.cjs +0 -17
  349. package/dist/internal/tool-helpers/api.d.cts +0 -42
  350. package/dist/internal/tool-helpers/api.d.cts.map +0 -1
  351. package/dist/internal/tool-helpers/api.d.ts +0 -42
  352. package/dist/internal/tool-helpers/api.d.ts.map +0 -1
  353. package/dist/internal/tool-helpers/api.js +0 -15
  354. package/dist/internal/tool-helpers/define.cjs +0 -3
  355. package/dist/internal/tool-helpers/define.d.cts +0 -13
  356. package/dist/internal/tool-helpers/define.d.cts.map +0 -1
  357. package/dist/internal/tool-helpers/define.d.ts +0 -13
  358. package/dist/internal/tool-helpers/define.d.ts.map +0 -1
  359. package/dist/internal/tool-helpers/define.js +0 -3
  360. package/dist/internal/tool-helpers/enhance-error.cjs +0 -12
  361. package/dist/internal/tool-helpers/enhance-error.d.cts +0 -29
  362. package/dist/internal/tool-helpers/enhance-error.d.cts.map +0 -1
  363. package/dist/internal/tool-helpers/enhance-error.d.ts +0 -29
  364. package/dist/internal/tool-helpers/enhance-error.d.ts.map +0 -1
  365. package/dist/internal/tool-helpers/enhance-error.js +0 -12
  366. package/dist/internal/tool-helpers/formatting.cjs +0 -3
  367. package/dist/internal/tool-helpers/formatting.d.cts +0 -16
  368. package/dist/internal/tool-helpers/formatting.d.cts.map +0 -1
  369. package/dist/internal/tool-helpers/formatting.d.ts +0 -16
  370. package/dist/internal/tool-helpers/formatting.d.ts.map +0 -1
  371. package/dist/internal/tool-helpers/formatting.js +0 -3
  372. package/dist/internal/tool-helpers/issue.cjs +0 -9
  373. package/dist/internal/tool-helpers/issue.d.cts +0 -8
  374. package/dist/internal/tool-helpers/issue.d.ts +0 -8
  375. package/dist/internal/tool-helpers/issue.js +0 -8
  376. package/dist/internal/tool-helpers/seer.cjs +0 -11
  377. package/dist/internal/tool-helpers/seer.d.cts +0 -31
  378. package/dist/internal/tool-helpers/seer.d.cts.map +0 -1
  379. package/dist/internal/tool-helpers/seer.d.ts +0 -31
  380. package/dist/internal/tool-helpers/seer.d.ts.map +0 -1
  381. package/dist/internal/tool-helpers/seer.js +0 -3
  382. package/dist/internal/tool-helpers/validate-region-url.cjs +0 -6
  383. package/dist/internal/tool-helpers/validate-region-url.d.cts +0 -20
  384. package/dist/internal/tool-helpers/validate-region-url.d.cts.map +0 -1
  385. package/dist/internal/tool-helpers/validate-region-url.d.ts +0 -20
  386. package/dist/internal/tool-helpers/validate-region-url.d.ts.map +0 -1
  387. package/dist/internal/tool-helpers/validate-region-url.js +0 -6
  388. package/dist/issue-1C6txnk3.js +0 -0
  389. package/dist/issue-ChNk4cuO.cjs +0 -0
  390. package/dist/issue-helpers-D-hBnXTk.cjs +0 -97
  391. package/dist/issue-helpers-D-hBnXTk.cjs.map +0 -1
  392. package/dist/issue-helpers-D4NRLqkR.d.ts +0 -52
  393. package/dist/issue-helpers-D4NRLqkR.d.ts.map +0 -1
  394. package/dist/issue-helpers-DtCbXiRZ.js +0 -80
  395. package/dist/issue-helpers-DtCbXiRZ.js.map +0 -1
  396. package/dist/issue-helpers-ILmSPsJZ.d.cts +0 -52
  397. package/dist/issue-helpers-ILmSPsJZ.d.cts.map +0 -1
  398. package/dist/logging-BgTqJ4mI.d.ts +0 -31
  399. package/dist/logging-BgTqJ4mI.d.ts.map +0 -1
  400. package/dist/logging-BjKioF_x.d.cts +0 -31
  401. package/dist/logging-BjKioF_x.d.cts.map +0 -1
  402. package/dist/logging-C-ST7-Ow.cjs +0 -298
  403. package/dist/logging-C-ST7-Ow.cjs.map +0 -1
  404. package/dist/logging-ChQnSEmD.js +0 -256
  405. package/dist/logging-ChQnSEmD.js.map +0 -1
  406. package/dist/openai-provider-BsMAb6zY.js +0 -48
  407. package/dist/openai-provider-BsMAb6zY.js.map +0 -1
  408. package/dist/openai-provider-BycgrQgi.cjs +0 -60
  409. package/dist/openai-provider-BycgrQgi.cjs.map +0 -1
  410. package/dist/otel-semantics-CWWWmiNy.js +0 -5070
  411. package/dist/otel-semantics-CWWWmiNy.js.map +0 -1
  412. package/dist/otel-semantics-n8_5Ib9C.cjs +0 -5082
  413. package/dist/otel-semantics-n8_5Ib9C.cjs.map +0 -1
  414. package/dist/permissions-Berbg2vC.cjs +0 -209
  415. package/dist/permissions-Berbg2vC.cjs.map +0 -1
  416. package/dist/permissions-CiIVEs4_.d.ts +0 -79
  417. package/dist/permissions-CiIVEs4_.d.ts.map +0 -1
  418. package/dist/permissions-Cm5e34n2.d.cts +0 -79
  419. package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
  420. package/dist/permissions-DvkVlUJ1.js +0 -155
  421. package/dist/permissions-DvkVlUJ1.js.map +0 -1
  422. package/dist/permissions.cjs +0 -11
  423. package/dist/permissions.d.cts +0 -2
  424. package/dist/permissions.d.ts +0 -2
  425. package/dist/permissions.js +0 -3
  426. package/dist/resolve-CrYQ5aF_.cjs +0 -107
  427. package/dist/resolve-CrYQ5aF_.cjs.map +0 -1
  428. package/dist/resolve-DQ-6eLec.js +0 -90
  429. package/dist/resolve-DQ-6eLec.js.map +0 -1
  430. package/dist/schema-1xQ4asuW.cjs +0 -801
  431. package/dist/schema-1xQ4asuW.cjs.map +0 -1
  432. package/dist/schema-BGVOjcD7.cjs +0 -141
  433. package/dist/schema-BGVOjcD7.cjs.map +0 -1
  434. package/dist/schema-CZXkkfj-.d.cts +0 -16950
  435. package/dist/schema-CZXkkfj-.d.cts.map +0 -1
  436. package/dist/schema-Cfvy5rTy.d.ts +0 -16950
  437. package/dist/schema-Cfvy5rTy.d.ts.map +0 -1
  438. package/dist/schema-ChlpIaqA.js +0 -39
  439. package/dist/schema-ChlpIaqA.js.map +0 -1
  440. package/dist/schema-oeFNxyo_.js +0 -501
  441. package/dist/schema-oeFNxyo_.js.map +0 -1
  442. package/dist/schema.cjs +0 -22
  443. package/dist/schema.d.cts +0 -34
  444. package/dist/schema.d.cts.map +0 -1
  445. package/dist/schema.d.ts +0 -34
  446. package/dist/schema.d.ts.map +0 -1
  447. package/dist/schema.js +0 -6
  448. package/dist/search-docs-C5x-ZRhd.cjs +0 -97
  449. package/dist/search-docs-C5x-ZRhd.cjs.map +0 -1
  450. package/dist/search-docs-UCe9oXQt.js +0 -91
  451. package/dist/search-docs-UCe9oXQt.js.map +0 -1
  452. package/dist/search-events-B-MXKSB_.js +0 -0
  453. package/dist/search-events-BrEw3wC-.cjs +0 -0
  454. package/dist/search-issues-C7Zs6rFB.cjs +0 -0
  455. package/dist/search-issues-DUSkomYp.js +0 -0
  456. package/dist/seer-CSFgx4AP.js +0 -89
  457. package/dist/seer-CSFgx4AP.js.map +0 -1
  458. package/dist/seer-sA1asAZs.cjs +0 -143
  459. package/dist/seer-sA1asAZs.cjs.map +0 -1
  460. package/dist/sentry-3DC3Kob2.cjs +0 -110
  461. package/dist/sentry-3DC3Kob2.cjs.map +0 -1
  462. package/dist/sentry-CfePWwtE.d.cts +0 -9
  463. package/dist/sentry-CfePWwtE.d.cts.map +0 -1
  464. package/dist/sentry-Cfj4OGMQ.js +0 -104
  465. package/dist/sentry-Cfj4OGMQ.js.map +0 -1
  466. package/dist/sentry-DKiJwGZX.d.ts +0 -9
  467. package/dist/sentry-DKiJwGZX.d.ts.map +0 -1
  468. package/dist/server-BbJwtfJr.js +0 -336
  469. package/dist/server-BbJwtfJr.js.map +0 -1
  470. package/dist/server-OW--pQOQ.cjs +0 -354
  471. package/dist/server-OW--pQOQ.cjs.map +0 -1
  472. package/dist/server.cjs +0 -65
  473. package/dist/server.d.cts +0 -59
  474. package/dist/server.d.cts.map +0 -1
  475. package/dist/server.d.ts +0 -59
  476. package/dist/server.d.ts.map +0 -1
  477. package/dist/server.js +0 -65
  478. package/dist/skillDefinitions.cjs +0 -258
  479. package/dist/skillDefinitions.cjs.map +0 -1
  480. package/dist/skillDefinitions.d.cts +0 -18
  481. package/dist/skillDefinitions.d.cts.map +0 -1
  482. package/dist/skillDefinitions.d.ts +0 -18
  483. package/dist/skillDefinitions.d.ts.map +0 -1
  484. package/dist/skillDefinitions.js +0 -257
  485. package/dist/skillDefinitions.js.map +0 -1
  486. package/dist/skills-BmFl7P6V.js +0 -94
  487. package/dist/skills-BmFl7P6V.js.map +0 -1
  488. package/dist/skills-COOuBrrA.cjs +0 -148
  489. package/dist/skills-COOuBrrA.cjs.map +0 -1
  490. package/dist/skills-HlAeBq_E.d.cts +0 -33
  491. package/dist/skills-HlAeBq_E.d.cts.map +0 -1
  492. package/dist/skills-g0WCenTA.d.ts +0 -33
  493. package/dist/skills-g0WCenTA.d.ts.map +0 -1
  494. package/dist/skills.cjs +0 -11
  495. package/dist/skills.d.cts +0 -2
  496. package/dist/skills.d.ts +0 -2
  497. package/dist/skills.js +0 -3
  498. package/dist/slug-validation-Bkteg65O.js +0 -93
  499. package/dist/slug-validation-Bkteg65O.js.map +0 -1
  500. package/dist/slug-validation-D5VJqMwH.cjs +0 -111
  501. package/dist/slug-validation-D5VJqMwH.cjs.map +0 -1
  502. package/dist/stdio-2BaHF2h-.js.map +0 -1
  503. package/dist/stdio-DL-ID7Q4.cjs.map +0 -1
  504. package/dist/telem/index.cjs +0 -10
  505. package/dist/telem/index.d.cts +0 -3
  506. package/dist/telem/index.d.ts +0 -3
  507. package/dist/telem/index.js +0 -4
  508. package/dist/telem/logging.cjs +0 -9
  509. package/dist/telem/logging.d.cts +0 -2
  510. package/dist/telem/logging.d.ts +0 -2
  511. package/dist/telem/logging.js +0 -3
  512. package/dist/telem/sentry.cjs +0 -3
  513. package/dist/telem/sentry.d.cts +0 -2
  514. package/dist/telem/sentry.d.ts +0 -2
  515. package/dist/telem/sentry.js +0 -3
  516. package/dist/test-setup.cjs +0 -56
  517. package/dist/test-setup.cjs.map +0 -1
  518. package/dist/test-setup.d.cts +0 -33
  519. package/dist/test-setup.d.cts.map +0 -1
  520. package/dist/test-setup.d.ts +0 -33
  521. package/dist/test-setup.d.ts.map +0 -1
  522. package/dist/test-setup.js +0 -55
  523. package/dist/test-setup.js.map +0 -1
  524. package/dist/test-utils/context.cjs +0 -32
  525. package/dist/test-utils/context.cjs.map +0 -1
  526. package/dist/test-utils/context.d.cts +0 -18
  527. package/dist/test-utils/context.d.cts.map +0 -1
  528. package/dist/test-utils/context.d.ts +0 -18
  529. package/dist/test-utils/context.d.ts.map +0 -1
  530. package/dist/test-utils/context.js +0 -30
  531. package/dist/test-utils/context.js.map +0 -1
  532. package/dist/toolDefinitions.cjs +0 -838
  533. package/dist/toolDefinitions.cjs.map +0 -1
  534. package/dist/toolDefinitions.d.cts +0 -13
  535. package/dist/toolDefinitions.d.cts.map +0 -1
  536. package/dist/toolDefinitions.d.ts +0 -13
  537. package/dist/toolDefinitions.d.ts.map +0 -1
  538. package/dist/toolDefinitions.js +0 -837
  539. package/dist/toolDefinitions.js.map +0 -1
  540. package/dist/tools/analyze-issue-with-seer.cjs +0 -24
  541. package/dist/tools/analyze-issue-with-seer.d.cts +0 -17
  542. package/dist/tools/analyze-issue-with-seer.d.cts.map +0 -1
  543. package/dist/tools/analyze-issue-with-seer.d.ts +0 -17
  544. package/dist/tools/analyze-issue-with-seer.d.ts.map +0 -1
  545. package/dist/tools/analyze-issue-with-seer.js +0 -24
  546. package/dist/tools/create-dsn.cjs +0 -19
  547. package/dist/tools/create-dsn.d.cts +0 -16
  548. package/dist/tools/create-dsn.d.cts.map +0 -1
  549. package/dist/tools/create-dsn.d.ts +0 -16
  550. package/dist/tools/create-dsn.d.ts.map +0 -1
  551. package/dist/tools/create-dsn.js +0 -19
  552. package/dist/tools/create-project.cjs +0 -19
  553. package/dist/tools/create-project.d.cts +0 -17
  554. package/dist/tools/create-project.d.cts.map +0 -1
  555. package/dist/tools/create-project.d.ts +0 -17
  556. package/dist/tools/create-project.d.ts.map +0 -1
  557. package/dist/tools/create-project.js +0 -19
  558. package/dist/tools/create-team.cjs +0 -19
  559. package/dist/tools/create-team.d.cts +0 -15
  560. package/dist/tools/create-team.d.cts.map +0 -1
  561. package/dist/tools/create-team.d.ts +0 -15
  562. package/dist/tools/create-team.d.ts.map +0 -1
  563. package/dist/tools/create-team.js +0 -19
  564. package/dist/tools/find-dsns.cjs +0 -19
  565. package/dist/tools/find-dsns.d.cts +0 -15
  566. package/dist/tools/find-dsns.d.cts.map +0 -1
  567. package/dist/tools/find-dsns.d.ts +0 -15
  568. package/dist/tools/find-dsns.d.ts.map +0 -1
  569. package/dist/tools/find-dsns.js +0 -19
  570. package/dist/tools/find-organizations.cjs +0 -19
  571. package/dist/tools/find-organizations.d.cts +0 -13
  572. package/dist/tools/find-organizations.d.cts.map +0 -1
  573. package/dist/tools/find-organizations.d.ts +0 -13
  574. package/dist/tools/find-organizations.d.ts.map +0 -1
  575. package/dist/tools/find-organizations.js +0 -19
  576. package/dist/tools/find-projects.cjs +0 -19
  577. package/dist/tools/find-projects.d.cts +0 -15
  578. package/dist/tools/find-projects.d.cts.map +0 -1
  579. package/dist/tools/find-projects.d.ts +0 -15
  580. package/dist/tools/find-projects.d.ts.map +0 -1
  581. package/dist/tools/find-projects.js +0 -19
  582. package/dist/tools/find-releases.cjs +0 -19
  583. package/dist/tools/find-releases.d.cts +0 -16
  584. package/dist/tools/find-releases.d.cts.map +0 -1
  585. package/dist/tools/find-releases.d.ts +0 -16
  586. package/dist/tools/find-releases.d.ts.map +0 -1
  587. package/dist/tools/find-releases.js +0 -19
  588. package/dist/tools/find-teams.cjs +0 -19
  589. package/dist/tools/find-teams.d.cts +0 -15
  590. package/dist/tools/find-teams.d.cts.map +0 -1
  591. package/dist/tools/find-teams.d.ts +0 -15
  592. package/dist/tools/find-teams.d.ts.map +0 -1
  593. package/dist/tools/find-teams.js +0 -19
  594. package/dist/tools/get-doc.cjs +0 -14
  595. package/dist/tools/get-doc.d.cts +0 -13
  596. package/dist/tools/get-doc.d.cts.map +0 -1
  597. package/dist/tools/get-doc.d.ts +0 -13
  598. package/dist/tools/get-doc.d.ts.map +0 -1
  599. package/dist/tools/get-doc.js +0 -14
  600. package/dist/tools/get-event-attachment.cjs +0 -19
  601. package/dist/tools/get-event-attachment.d.cts +0 -17
  602. package/dist/tools/get-event-attachment.d.cts.map +0 -1
  603. package/dist/tools/get-event-attachment.d.ts +0 -17
  604. package/dist/tools/get-event-attachment.d.ts.map +0 -1
  605. package/dist/tools/get-event-attachment.js +0 -19
  606. package/dist/tools/get-issue-details.cjs +0 -24
  607. package/dist/tools/get-issue-details.d.cts +0 -17
  608. package/dist/tools/get-issue-details.d.cts.map +0 -1
  609. package/dist/tools/get-issue-details.d.ts +0 -17
  610. package/dist/tools/get-issue-details.d.ts.map +0 -1
  611. package/dist/tools/get-issue-details.js +0 -24
  612. package/dist/tools/get-trace-details.cjs +0 -19
  613. package/dist/tools/get-trace-details.d.cts +0 -15
  614. package/dist/tools/get-trace-details.d.cts.map +0 -1
  615. package/dist/tools/get-trace-details.d.ts +0 -15
  616. package/dist/tools/get-trace-details.d.ts.map +0 -1
  617. package/dist/tools/get-trace-details.js +0 -19
  618. package/dist/tools/index.cjs +0 -65
  619. package/dist/tools/index.d.cts +0 -129
  620. package/dist/tools/index.d.cts.map +0 -1
  621. package/dist/tools/index.d.ts +0 -129
  622. package/dist/tools/index.d.ts.map +0 -1
  623. package/dist/tools/index.js +0 -65
  624. package/dist/tools/search-docs.cjs +0 -18
  625. package/dist/tools/search-docs.d.cts +0 -15
  626. package/dist/tools/search-docs.d.cts.map +0 -1
  627. package/dist/tools/search-docs.d.ts +0 -15
  628. package/dist/tools/search-docs.d.ts.map +0 -1
  629. package/dist/tools/search-docs.js +0 -18
  630. package/dist/tools/search-events/agent.cjs +0 -20
  631. package/dist/tools/search-events/agent.d.cts +0 -7
  632. package/dist/tools/search-events/agent.d.ts +0 -7
  633. package/dist/tools/search-events/agent.js +0 -19
  634. package/dist/tools/search-events/config.cjs +0 -8
  635. package/dist/tools/search-events/config.d.cts +0 -132
  636. package/dist/tools/search-events/config.d.cts.map +0 -1
  637. package/dist/tools/search-events/config.d.ts +0 -132
  638. package/dist/tools/search-events/config.d.ts.map +0 -1
  639. package/dist/tools/search-events/config.js +0 -3
  640. package/dist/tools/search-events/formatters.cjs +0 -17
  641. package/dist/tools/search-events/formatters.d.cts +0 -43
  642. package/dist/tools/search-events/formatters.d.cts.map +0 -1
  643. package/dist/tools/search-events/formatters.d.ts +0 -43
  644. package/dist/tools/search-events/formatters.d.ts.map +0 -1
  645. package/dist/tools/search-events/formatters.js +0 -14
  646. package/dist/tools/search-events/handler.cjs +0 -28
  647. package/dist/tools/search-events/handler.d.cts +0 -6
  648. package/dist/tools/search-events/handler.d.ts +0 -6
  649. package/dist/tools/search-events/handler.js +0 -28
  650. package/dist/tools/search-events/index.cjs +0 -31
  651. package/dist/tools/search-events/index.d.cts +0 -12
  652. package/dist/tools/search-events/index.d.ts +0 -12
  653. package/dist/tools/search-events/index.js +0 -29
  654. package/dist/tools/search-events/utils.cjs +0 -17
  655. package/dist/tools/search-events/utils.d.cts +0 -8
  656. package/dist/tools/search-events/utils.d.ts +0 -8
  657. package/dist/tools/search-events/utils.js +0 -13
  658. package/dist/tools/search-issues/agent.cjs +0 -19
  659. package/dist/tools/search-issues/agent.d.cts +0 -7
  660. package/dist/tools/search-issues/agent.d.ts +0 -7
  661. package/dist/tools/search-issues/agent.js +0 -18
  662. package/dist/tools/search-issues/config.cjs +0 -3
  663. package/dist/tools/search-issues/config.d.cts +0 -9
  664. package/dist/tools/search-issues/config.d.cts.map +0 -1
  665. package/dist/tools/search-issues/config.d.ts +0 -9
  666. package/dist/tools/search-issues/config.d.ts.map +0 -1
  667. package/dist/tools/search-issues/config.js +0 -3
  668. package/dist/tools/search-issues/formatters.cjs +0 -5
  669. package/dist/tools/search-issues/formatters.d.cts +0 -28
  670. package/dist/tools/search-issues/formatters.d.cts.map +0 -1
  671. package/dist/tools/search-issues/formatters.d.ts +0 -28
  672. package/dist/tools/search-issues/formatters.d.ts.map +0 -1
  673. package/dist/tools/search-issues/formatters.js +0 -4
  674. package/dist/tools/search-issues/handler.cjs +0 -27
  675. package/dist/tools/search-issues/handler.d.cts +0 -6
  676. package/dist/tools/search-issues/handler.d.ts +0 -6
  677. package/dist/tools/search-issues/handler.js +0 -27
  678. package/dist/tools/search-issues/index.cjs +0 -30
  679. package/dist/tools/search-issues/index.d.cts +0 -12
  680. package/dist/tools/search-issues/index.d.ts +0 -12
  681. package/dist/tools/search-issues/index.js +0 -28
  682. package/dist/tools/types.cjs +0 -0
  683. package/dist/tools/types.d.cts +0 -5
  684. package/dist/tools/types.d.ts +0 -5
  685. package/dist/tools/types.js +0 -0
  686. package/dist/tools/update-issue.cjs +0 -24
  687. package/dist/tools/update-issue.d.cts +0 -18
  688. package/dist/tools/update-issue.d.cts.map +0 -1
  689. package/dist/tools/update-issue.d.ts +0 -18
  690. package/dist/tools/update-issue.d.ts.map +0 -1
  691. package/dist/tools/update-issue.js +0 -24
  692. package/dist/tools/update-project.cjs +0 -19
  693. package/dist/tools/update-project.d.cts +0 -19
  694. package/dist/tools/update-project.d.cts.map +0 -1
  695. package/dist/tools/update-project.d.ts +0 -19
  696. package/dist/tools/update-project.d.ts.map +0 -1
  697. package/dist/tools/update-project.js +0 -19
  698. package/dist/tools/use-sentry/agent.cjs +0 -8
  699. package/dist/tools/use-sentry/agent.d.cts +0 -3
  700. package/dist/tools/use-sentry/agent.d.ts +0 -3
  701. package/dist/tools/use-sentry/agent.js +0 -8
  702. package/dist/tools/use-sentry/config.cjs +0 -4
  703. package/dist/tools/use-sentry/config.d.cts +0 -21
  704. package/dist/tools/use-sentry/config.d.cts.map +0 -1
  705. package/dist/tools/use-sentry/config.d.ts +0 -21
  706. package/dist/tools/use-sentry/config.d.ts.map +0 -1
  707. package/dist/tools/use-sentry/config.js +0 -3
  708. package/dist/tools/use-sentry/handler.cjs +0 -65
  709. package/dist/tools/use-sentry/handler.d.cts +0 -6
  710. package/dist/tools/use-sentry/handler.d.ts +0 -6
  711. package/dist/tools/use-sentry/handler.js +0 -65
  712. package/dist/tools/use-sentry/index.cjs +0 -67
  713. package/dist/tools/use-sentry/index.d.cts +0 -8
  714. package/dist/tools/use-sentry/index.d.ts +0 -8
  715. package/dist/tools/use-sentry/index.js +0 -65
  716. package/dist/tools/use-sentry/tool-wrapper.cjs +0 -63
  717. package/dist/tools/use-sentry/tool-wrapper.cjs.map +0 -1
  718. package/dist/tools/use-sentry/tool-wrapper.d.cts +0 -119
  719. package/dist/tools/use-sentry/tool-wrapper.d.cts.map +0 -1
  720. package/dist/tools/use-sentry/tool-wrapper.d.ts +0 -119
  721. package/dist/tools/use-sentry/tool-wrapper.d.ts.map +0 -1
  722. package/dist/tools/use-sentry/tool-wrapper.js +0 -62
  723. package/dist/tools/use-sentry/tool-wrapper.js.map +0 -1
  724. package/dist/tools/whoami.cjs +0 -17
  725. package/dist/tools/whoami.d.cts +0 -10
  726. package/dist/tools/whoami.d.cts.map +0 -1
  727. package/dist/tools/whoami.d.ts +0 -10
  728. package/dist/tools/whoami.d.ts.map +0 -1
  729. package/dist/tools/whoami.js +0 -17
  730. package/dist/types-B_3dsqbN.d.cts +0 -38
  731. package/dist/types-B_3dsqbN.d.cts.map +0 -1
  732. package/dist/types-Cet6uyS6.d.ts +0 -41
  733. package/dist/types-Cet6uyS6.d.ts.map +0 -1
  734. package/dist/types-CokRupPo.d.cts +0 -33
  735. package/dist/types-CokRupPo.d.cts.map +0 -1
  736. package/dist/types-D1CEiyup.d.cts +0 -41
  737. package/dist/types-D1CEiyup.d.cts.map +0 -1
  738. package/dist/types-D670-rDz.js +0 -0
  739. package/dist/types-OrkP7cEA.d.ts +0 -33
  740. package/dist/types-OrkP7cEA.d.ts.map +0 -1
  741. package/dist/types-n3wuZu5X.cjs +0 -0
  742. package/dist/types-u52qwG59.d.ts +0 -38
  743. package/dist/types-u52qwG59.d.ts.map +0 -1
  744. package/dist/types.cjs +0 -16
  745. package/dist/types.cjs.map +0 -1
  746. package/dist/types.d.cts +0 -4
  747. package/dist/types.d.ts +0 -4
  748. package/dist/types.js +0 -15
  749. package/dist/types.js.map +0 -1
  750. package/dist/update-issue-BGm8g4G0.js +0 -118
  751. package/dist/update-issue-BGm8g4G0.js.map +0 -1
  752. package/dist/update-issue-Dx2EZ5pY.cjs +0 -124
  753. package/dist/update-issue-Dx2EZ5pY.cjs.map +0 -1
  754. package/dist/update-project-B0clXxii.js +0 -128
  755. package/dist/update-project-B0clXxii.js.map +0 -1
  756. package/dist/update-project-BJkzcapF.cjs +0 -134
  757. package/dist/update-project-BJkzcapF.cjs.map +0 -1
  758. package/dist/url-utils-CbcNJVYS.cjs +0 -235
  759. package/dist/url-utils-CbcNJVYS.cjs.map +0 -1
  760. package/dist/url-utils-CfKwo6s5.js +0 -175
  761. package/dist/url-utils-CfKwo6s5.js.map +0 -1
  762. package/dist/usage-CMWaPhZv.cjs.map +0 -1
  763. package/dist/usage-CpguKuwi.js.map +0 -1
  764. package/dist/utils/slug-validation.cjs +0 -5
  765. package/dist/utils/slug-validation.d.cts +0 -51
  766. package/dist/utils/slug-validation.d.cts.map +0 -1
  767. package/dist/utils/slug-validation.d.ts +0 -51
  768. package/dist/utils/slug-validation.d.ts.map +0 -1
  769. package/dist/utils/slug-validation.js +0 -3
  770. package/dist/utils/url-utils.cjs +0 -12
  771. package/dist/utils/url-utils.d.cts +0 -87
  772. package/dist/utils/url-utils.d.cts.map +0 -1
  773. package/dist/utils/url-utils.d.ts +0 -87
  774. package/dist/utils/url-utils.d.ts.map +0 -1
  775. package/dist/utils/url-utils.js +0 -3
  776. package/dist/utils-C7sQWgE3.d.cts +0 -39
  777. package/dist/utils-C7sQWgE3.d.cts.map +0 -1
  778. package/dist/utils-CIt6Amml.cjs +0 -124
  779. package/dist/utils-CIt6Amml.cjs.map +0 -1
  780. package/dist/utils-CaNeCYCH.js +0 -94
  781. package/dist/utils-CaNeCYCH.js.map +0 -1
  782. package/dist/utils-CmH2wxA_.d.ts +0 -39
  783. package/dist/utils-CmH2wxA_.d.ts.map +0 -1
  784. package/dist/utils-DJIwl8YR.cjs +0 -96
  785. package/dist/utils-DJIwl8YR.cjs.map +0 -1
  786. package/dist/utils-DOb7bs5_.js +0 -90
  787. package/dist/utils-DOb7bs5_.js.map +0 -1
  788. package/dist/utils-R15EJutP.d.ts +0 -43
  789. package/dist/utils-R15EJutP.d.ts.map +0 -1
  790. package/dist/utils-RPc9DHgJ.d.cts +0 -43
  791. package/dist/utils-RPc9DHgJ.d.cts.map +0 -1
  792. package/dist/validate-region-url-Bdokgz65.js +0 -37
  793. package/dist/validate-region-url-Bdokgz65.js.map +0 -1
  794. package/dist/validate-region-url-BvT-IgKg.cjs +0 -42
  795. package/dist/validate-region-url-BvT-IgKg.cjs.map +0 -1
  796. package/dist/version-CaFsr_xb.cjs +0 -19
  797. package/dist/version-CaFsr_xb.cjs.map +0 -1
  798. package/dist/version-DY1nl1TZ.js +0 -7
  799. package/dist/version-DY1nl1TZ.js.map +0 -1
  800. package/dist/version.cjs +0 -4
  801. package/dist/version.d.cts +0 -8
  802. package/dist/version.d.cts.map +0 -1
  803. package/dist/version.d.ts +0 -8
  804. package/dist/version.d.ts.map +0 -1
  805. package/dist/version.js +0 -3
  806. package/dist/whoami-9JymZ3NV.cjs +0 -46
  807. package/dist/whoami-9JymZ3NV.cjs.map +0 -1
  808. package/dist/whoami-BsX-LoXG.js +0 -34
  809. package/dist/whoami-BsX-LoXG.js.map +0 -1
  810. package/dist/whoami-DRDjyhDL.cjs +0 -44
  811. package/dist/whoami-DRDjyhDL.cjs.map +0 -1
  812. package/dist/whoami-FliA3IrX.js +0 -39
  813. package/dist/whoami-FliA3IrX.js.map +0 -1
@@ -1,235 +0,0 @@
1
-
2
- //#region src/utils/url-utils.ts
3
- /**
4
- * Determines if a Sentry instance is SaaS or self-hosted based on the host.
5
- * @param host The Sentry host (e.g., "sentry.io" or "sentry.company.com")
6
- * @returns true if SaaS instance, false if self-hosted
7
- */
8
- function isSentryHost(host) {
9
- return host === "sentry.io" || host.endsWith(".sentry.io");
10
- }
11
- /**
12
- * Generates a Sentry issue URL.
13
- * @param host The Sentry host (may include regional subdomain for API access)
14
- * @param organizationSlug Organization identifier
15
- * @param issueId Issue identifier (e.g., "PROJECT-123")
16
- * @returns The complete issue URL
17
- */
18
- function getIssueUrl(host, organizationSlug, issueId) {
19
- const isSaas = isSentryHost(host);
20
- const webHost = isSaas ? "sentry.io" : host;
21
- return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
22
- }
23
- /**
24
- * Generates a Sentry issues search URL.
25
- * @param host The Sentry host (may include regional subdomain for API access)
26
- * @param organizationSlug Organization identifier
27
- * @param query Optional search query
28
- * @param projectSlugOrId Optional project slug or ID
29
- * @returns The complete issues search URL
30
- */
31
- function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
32
- const isSaas = isSentryHost(host);
33
- const webHost = isSaas ? "sentry.io" : host;
34
- let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
35
- const params = new URLSearchParams();
36
- if (projectSlugOrId) params.append("project", projectSlugOrId);
37
- if (query) params.append("query", query);
38
- const queryString = params.toString();
39
- if (queryString) url += `?${queryString}`;
40
- return url;
41
- }
42
- /**
43
- * Generates a Sentry trace URL for performance investigation.
44
- * @param host The Sentry host (may include regional subdomain for API access)
45
- * @param organizationSlug Organization identifier
46
- * @param traceId Trace identifier
47
- * @returns The complete trace URL
48
- */
49
- function getTraceUrl(host, organizationSlug, traceId) {
50
- const isSaas = isSentryHost(host);
51
- const webHost = isSaas ? "sentry.io" : host;
52
- return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
53
- }
54
- /**
55
- * Generates a Sentry events explorer URL.
56
- * @param host The Sentry host (may include regional subdomain for API access)
57
- * @param organizationSlug Organization identifier
58
- * @param query Search query
59
- * @param dataset Dataset type
60
- * @param projectSlug Optional project slug
61
- * @param fields Optional fields to display
62
- * @returns The complete events explorer URL
63
- */
64
- function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
65
- const isSaas = isSentryHost(host);
66
- const webHost = isSaas ? "sentry.io" : host;
67
- let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
68
- const params = new URLSearchParams();
69
- params.append("query", query);
70
- params.append("dataset", dataset);
71
- params.append("layout", "table");
72
- if (projectSlug) params.append("project", projectSlug);
73
- if (fields && fields.length > 0) for (const field of fields) params.append("field", field);
74
- url += `?${params.toString()}`;
75
- return url;
76
- }
77
- /**
78
- * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
79
- * Throws an error if validation fails instead of exiting the process.
80
- *
81
- * @param host The hostname to validate
82
- * @throws {Error} If the host contains a protocol
83
- */
84
- function _validateSentryHostInternal(host) {
85
- if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
86
- }
87
- /**
88
- * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
89
- * Throws an error if validation fails instead of exiting the process.
90
- *
91
- * @param url The HTTPS URL to validate and parse
92
- * @returns The extracted hostname from the URL
93
- * @throws {Error} If the URL is invalid or not HTTPS
94
- */
95
- function _validateAndParseSentryUrlInternal(url) {
96
- if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
97
- try {
98
- const parsedUrl = new URL(url);
99
- return parsedUrl.host;
100
- } catch (error) {
101
- throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
102
- }
103
- }
104
- /**
105
- * Validates that a SENTRY_HOST value contains only hostname (no protocol).
106
- * Exits the process with error code 1 if validation fails (CLI behavior).
107
- *
108
- * @param host The hostname to validate
109
- */
110
- function validateSentryHost(host) {
111
- try {
112
- _validateSentryHostInternal(host);
113
- } catch (error) {
114
- console.error(`Error: ${error.message}`);
115
- process.exit(1);
116
- }
117
- }
118
- /**
119
- * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
120
- * Exits the process with error code 1 if validation fails (CLI behavior).
121
- *
122
- * @param url The HTTPS URL to validate and parse
123
- * @returns The extracted hostname from the URL
124
- */
125
- function validateAndParseSentryUrl(url) {
126
- try {
127
- return _validateAndParseSentryUrlInternal(url);
128
- } catch (error) {
129
- console.error(`Error: ${error.message}`);
130
- process.exit(1);
131
- }
132
- }
133
- /**
134
- * Validates that a SENTRY_HOST value contains only hostname (no protocol).
135
- * Throws an error instead of exiting the process (for testing).
136
- *
137
- * @param host The hostname to validate
138
- * @throws {Error} If the host contains a protocol
139
- */
140
- function validateSentryHostThrows(host) {
141
- _validateSentryHostInternal(host);
142
- }
143
- /**
144
- * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
145
- * Throws an error instead of exiting the process (for testing).
146
- *
147
- * @param url The HTTPS URL to validate and parse
148
- * @returns The extracted hostname from the URL
149
- * @throws {Error} If the URL is invalid or not HTTPS
150
- */
151
- function validateAndParseSentryUrlThrows(url) {
152
- return _validateAndParseSentryUrlInternal(url);
153
- }
154
- /**
155
- * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
156
- *
157
- * @param url The URL to validate and normalize
158
- * @returns The normalized URL string
159
- * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
160
- */
161
- function validateOpenAiBaseUrlThrows(url) {
162
- const trimmed = url.trim();
163
- if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
164
- let parsed;
165
- try {
166
- parsed = new URL(trimmed);
167
- } catch (error) {
168
- throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
169
- }
170
- if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
171
- return parsed.toString();
172
- }
173
-
174
- //#endregion
175
- Object.defineProperty(exports, 'getEventsExplorerUrl', {
176
- enumerable: true,
177
- get: function () {
178
- return getEventsExplorerUrl;
179
- }
180
- });
181
- Object.defineProperty(exports, 'getIssueUrl', {
182
- enumerable: true,
183
- get: function () {
184
- return getIssueUrl;
185
- }
186
- });
187
- Object.defineProperty(exports, 'getIssuesSearchUrl', {
188
- enumerable: true,
189
- get: function () {
190
- return getIssuesSearchUrl;
191
- }
192
- });
193
- Object.defineProperty(exports, 'getTraceUrl', {
194
- enumerable: true,
195
- get: function () {
196
- return getTraceUrl;
197
- }
198
- });
199
- Object.defineProperty(exports, 'isSentryHost', {
200
- enumerable: true,
201
- get: function () {
202
- return isSentryHost;
203
- }
204
- });
205
- Object.defineProperty(exports, 'validateAndParseSentryUrl', {
206
- enumerable: true,
207
- get: function () {
208
- return validateAndParseSentryUrl;
209
- }
210
- });
211
- Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
212
- enumerable: true,
213
- get: function () {
214
- return validateAndParseSentryUrlThrows;
215
- }
216
- });
217
- Object.defineProperty(exports, 'validateOpenAiBaseUrlThrows', {
218
- enumerable: true,
219
- get: function () {
220
- return validateOpenAiBaseUrlThrows;
221
- }
222
- });
223
- Object.defineProperty(exports, 'validateSentryHost', {
224
- enumerable: true,
225
- get: function () {
226
- return validateSentryHost;
227
- }
228
- });
229
- Object.defineProperty(exports, 'validateSentryHostThrows', {
230
- enumerable: true,
231
- get: function () {
232
- return validateSentryHostThrows;
233
- }
234
- });
235
- //# sourceMappingURL=url-utils-CbcNJVYS.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-utils-CbcNJVYS.cjs","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
@@ -1,175 +0,0 @@
1
- //#region src/utils/url-utils.ts
2
- /**
3
- * Determines if a Sentry instance is SaaS or self-hosted based on the host.
4
- * @param host The Sentry host (e.g., "sentry.io" or "sentry.company.com")
5
- * @returns true if SaaS instance, false if self-hosted
6
- */
7
- function isSentryHost(host) {
8
- return host === "sentry.io" || host.endsWith(".sentry.io");
9
- }
10
- /**
11
- * Generates a Sentry issue URL.
12
- * @param host The Sentry host (may include regional subdomain for API access)
13
- * @param organizationSlug Organization identifier
14
- * @param issueId Issue identifier (e.g., "PROJECT-123")
15
- * @returns The complete issue URL
16
- */
17
- function getIssueUrl(host, organizationSlug, issueId) {
18
- const isSaas = isSentryHost(host);
19
- const webHost = isSaas ? "sentry.io" : host;
20
- return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
21
- }
22
- /**
23
- * Generates a Sentry issues search URL.
24
- * @param host The Sentry host (may include regional subdomain for API access)
25
- * @param organizationSlug Organization identifier
26
- * @param query Optional search query
27
- * @param projectSlugOrId Optional project slug or ID
28
- * @returns The complete issues search URL
29
- */
30
- function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
31
- const isSaas = isSentryHost(host);
32
- const webHost = isSaas ? "sentry.io" : host;
33
- let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
34
- const params = new URLSearchParams();
35
- if (projectSlugOrId) params.append("project", projectSlugOrId);
36
- if (query) params.append("query", query);
37
- const queryString = params.toString();
38
- if (queryString) url += `?${queryString}`;
39
- return url;
40
- }
41
- /**
42
- * Generates a Sentry trace URL for performance investigation.
43
- * @param host The Sentry host (may include regional subdomain for API access)
44
- * @param organizationSlug Organization identifier
45
- * @param traceId Trace identifier
46
- * @returns The complete trace URL
47
- */
48
- function getTraceUrl(host, organizationSlug, traceId) {
49
- const isSaas = isSentryHost(host);
50
- const webHost = isSaas ? "sentry.io" : host;
51
- return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
52
- }
53
- /**
54
- * Generates a Sentry events explorer URL.
55
- * @param host The Sentry host (may include regional subdomain for API access)
56
- * @param organizationSlug Organization identifier
57
- * @param query Search query
58
- * @param dataset Dataset type
59
- * @param projectSlug Optional project slug
60
- * @param fields Optional fields to display
61
- * @returns The complete events explorer URL
62
- */
63
- function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
64
- const isSaas = isSentryHost(host);
65
- const webHost = isSaas ? "sentry.io" : host;
66
- let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
67
- const params = new URLSearchParams();
68
- params.append("query", query);
69
- params.append("dataset", dataset);
70
- params.append("layout", "table");
71
- if (projectSlug) params.append("project", projectSlug);
72
- if (fields && fields.length > 0) for (const field of fields) params.append("field", field);
73
- url += `?${params.toString()}`;
74
- return url;
75
- }
76
- /**
77
- * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
78
- * Throws an error if validation fails instead of exiting the process.
79
- *
80
- * @param host The hostname to validate
81
- * @throws {Error} If the host contains a protocol
82
- */
83
- function _validateSentryHostInternal(host) {
84
- if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
85
- }
86
- /**
87
- * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
88
- * Throws an error if validation fails instead of exiting the process.
89
- *
90
- * @param url The HTTPS URL to validate and parse
91
- * @returns The extracted hostname from the URL
92
- * @throws {Error} If the URL is invalid or not HTTPS
93
- */
94
- function _validateAndParseSentryUrlInternal(url) {
95
- if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
96
- try {
97
- const parsedUrl = new URL(url);
98
- return parsedUrl.host;
99
- } catch (error) {
100
- throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
101
- }
102
- }
103
- /**
104
- * Validates that a SENTRY_HOST value contains only hostname (no protocol).
105
- * Exits the process with error code 1 if validation fails (CLI behavior).
106
- *
107
- * @param host The hostname to validate
108
- */
109
- function validateSentryHost(host) {
110
- try {
111
- _validateSentryHostInternal(host);
112
- } catch (error) {
113
- console.error(`Error: ${error.message}`);
114
- process.exit(1);
115
- }
116
- }
117
- /**
118
- * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
119
- * Exits the process with error code 1 if validation fails (CLI behavior).
120
- *
121
- * @param url The HTTPS URL to validate and parse
122
- * @returns The extracted hostname from the URL
123
- */
124
- function validateAndParseSentryUrl(url) {
125
- try {
126
- return _validateAndParseSentryUrlInternal(url);
127
- } catch (error) {
128
- console.error(`Error: ${error.message}`);
129
- process.exit(1);
130
- }
131
- }
132
- /**
133
- * Validates that a SENTRY_HOST value contains only hostname (no protocol).
134
- * Throws an error instead of exiting the process (for testing).
135
- *
136
- * @param host The hostname to validate
137
- * @throws {Error} If the host contains a protocol
138
- */
139
- function validateSentryHostThrows(host) {
140
- _validateSentryHostInternal(host);
141
- }
142
- /**
143
- * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
144
- * Throws an error instead of exiting the process (for testing).
145
- *
146
- * @param url The HTTPS URL to validate and parse
147
- * @returns The extracted hostname from the URL
148
- * @throws {Error} If the URL is invalid or not HTTPS
149
- */
150
- function validateAndParseSentryUrlThrows(url) {
151
- return _validateAndParseSentryUrlInternal(url);
152
- }
153
- /**
154
- * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
155
- *
156
- * @param url The URL to validate and normalize
157
- * @returns The normalized URL string
158
- * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
159
- */
160
- function validateOpenAiBaseUrlThrows(url) {
161
- const trimmed = url.trim();
162
- if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
163
- let parsed;
164
- try {
165
- parsed = new URL(trimmed);
166
- } catch (error) {
167
- throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
168
- }
169
- if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
170
- return parsed.toString();
171
- }
172
-
173
- //#endregion
174
- export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
175
- //# sourceMappingURL=url-utils-CfKwo6s5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-utils-CfKwo6s5.js","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-CMWaPhZv.cjs","names":["packageName: string","defaultScopes: ReadonlyArray<Scope>","allScopes: ReadonlyArray<Scope>","defaultSkills: ReadonlyArray<Skill>","allSkills: ReadonlyArray<Skill>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\nimport type { Skill } from \"../skills\";\n\nexport function buildUsage(\n packageName: string,\n defaultScopes: ReadonlyArray<Scope>,\n allScopes: ReadonlyArray<Scope>,\n defaultSkills: ReadonlyArray<Skill>,\n allSkills: ReadonlyArray<Skill>,\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 --openai-model <model> Override OpenAI model (default: gpt-5, reasoning effort: low)\n --agent Agent mode: only expose use_sentry tool (for AI agents)\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nSkill controls (recommended):\n --skills <list> Specify which skills to grant (default: all skills)\n\nAll skills: ${allSkills.join(\", \")}\n\nScope controls (legacy - deprecated, use skills instead):\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefault scopes: ${defaultScopes.join(\", \")}\nAll scopes: ${allScopes.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --skills=inspect,triage\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-model=o1-mini\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";;AAGA,SAAgB,WACdA,aACAC,eACAC,WACAC,eACAC,WACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;cAmBjB,UAAU,KAAK,KAAK,CAAC;;;;;;;kBAOjB,cAAc,KAAK,KAAK,CAAC;cAC7B,UAAU,KAAK,KAAK,CAAC;;;IAG/B,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-CpguKuwi.js","names":["packageName: string","defaultScopes: ReadonlyArray<Scope>","allScopes: ReadonlyArray<Scope>","defaultSkills: ReadonlyArray<Skill>","allSkills: ReadonlyArray<Skill>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\nimport type { Skill } from \"../skills\";\n\nexport function buildUsage(\n packageName: string,\n defaultScopes: ReadonlyArray<Scope>,\n allScopes: ReadonlyArray<Scope>,\n defaultSkills: ReadonlyArray<Skill>,\n allSkills: ReadonlyArray<Skill>,\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 --openai-model <model> Override OpenAI model (default: gpt-5, reasoning effort: low)\n --agent Agent mode: only expose use_sentry tool (for AI agents)\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nSkill controls (recommended):\n --skills <list> Specify which skills to grant (default: all skills)\n\nAll skills: ${allSkills.join(\", \")}\n\nScope controls (legacy - deprecated, use skills instead):\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefault scopes: ${defaultScopes.join(\", \")}\nAll scopes: ${allScopes.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --skills=inspect,triage\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-model=o1-mini\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";AAGA,SAAgB,WACdA,aACAC,eACAC,WACAC,eACAC,WACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;cAmBjB,UAAU,KAAK,KAAK,CAAC;;;;;;;kBAOjB,cAAc,KAAK,KAAK,CAAC;cAC7B,UAAU,KAAK,KAAK,CAAC;;;IAG/B,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
@@ -1,5 +0,0 @@
1
- const require_slug_validation = require('../slug-validation-D5VJqMwH.cjs');
2
-
3
- exports.isNumericId = require_slug_validation.isNumericId;
4
- exports.validateSlug = require_slug_validation.validateSlug;
5
- exports.validateSlugOrId = require_slug_validation.validateSlugOrId;
@@ -1,51 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/utils/slug-validation.d.ts
4
-
5
- /**
6
- * Helper to check if a string is a numeric ID.
7
- */
8
- declare function isNumericId(value: string): boolean;
9
- /**
10
- * Validates a slug to prevent path traversal and injection attacks.
11
- * Designed to be used with Zod's superRefine() method.
12
- *
13
- * @example
14
- * ```typescript
15
- * const OrganizationSlug = z.string()
16
- * .toLowerCase()
17
- * .trim()
18
- * .superRefine(validateSlug)
19
- * .describe("Organization slug");
20
- *
21
- * const TeamSlug = z.string()
22
- * .toLowerCase()
23
- * .trim()
24
- * .superRefine(validateSlug)
25
- * .describe("Team slug");
26
- * ```
27
- */
28
- declare function validateSlug(val: string, ctx: z.RefinementCtx): void;
29
- /**
30
- * Validates a parameter that can be either a slug or numeric ID.
31
- * Designed to be used with Zod's superRefine() method.
32
- *
33
- * @example
34
- * ```typescript
35
- * const ProjectSlugOrId = z.string()
36
- * .toLowerCase()
37
- * .trim()
38
- * .superRefine(validateSlugOrId)
39
- * .describe("Project slug or numeric ID");
40
- *
41
- * const IssueSlugOrId = z.string()
42
- * .trim()
43
- * .superRefine(validateSlugOrId)
44
- * .describe("Issue slug or numeric ID");
45
- * ```
46
- */
47
- declare function validateSlugOrId(val: string, ctx: z.RefinementCtx): void;
48
- //# sourceMappingURL=slug-validation.d.ts.map
49
- //#endregion
50
- export { isNumericId, validateSlug, validateSlugOrId };
51
- //# sourceMappingURL=slug-validation.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slug-validation.d.cts","names":[],"sources":["../../src/utils/slug-validation.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAsBgB,WAAA;;;;;;;;;;;;;;;;;;;;iBA6BA,YAAA,mBAA+B,CAAA,CAAE;;;;;;;;;;;;;;;;;;;iBA+CjC,gBAAA,mBAAmC,CAAA,CAAE"}
@@ -1,51 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/utils/slug-validation.d.ts
4
-
5
- /**
6
- * Helper to check if a string is a numeric ID.
7
- */
8
- declare function isNumericId(value: string): boolean;
9
- /**
10
- * Validates a slug to prevent path traversal and injection attacks.
11
- * Designed to be used with Zod's superRefine() method.
12
- *
13
- * @example
14
- * ```typescript
15
- * const OrganizationSlug = z.string()
16
- * .toLowerCase()
17
- * .trim()
18
- * .superRefine(validateSlug)
19
- * .describe("Organization slug");
20
- *
21
- * const TeamSlug = z.string()
22
- * .toLowerCase()
23
- * .trim()
24
- * .superRefine(validateSlug)
25
- * .describe("Team slug");
26
- * ```
27
- */
28
- declare function validateSlug(val: string, ctx: z.RefinementCtx): void;
29
- /**
30
- * Validates a parameter that can be either a slug or numeric ID.
31
- * Designed to be used with Zod's superRefine() method.
32
- *
33
- * @example
34
- * ```typescript
35
- * const ProjectSlugOrId = z.string()
36
- * .toLowerCase()
37
- * .trim()
38
- * .superRefine(validateSlugOrId)
39
- * .describe("Project slug or numeric ID");
40
- *
41
- * const IssueSlugOrId = z.string()
42
- * .trim()
43
- * .superRefine(validateSlugOrId)
44
- * .describe("Issue slug or numeric ID");
45
- * ```
46
- */
47
- declare function validateSlugOrId(val: string, ctx: z.RefinementCtx): void;
48
- //# sourceMappingURL=slug-validation.d.ts.map
49
- //#endregion
50
- export { isNumericId, validateSlug, validateSlugOrId };
51
- //# sourceMappingURL=slug-validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slug-validation.d.ts","names":[],"sources":["../../src/utils/slug-validation.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAsBgB,WAAA;;;;;;;;;;;;;;;;;;;;iBA6BA,YAAA,mBAA+B,CAAA,CAAE;;;;;;;;;;;;;;;;;;;iBA+CjC,gBAAA,mBAAmC,CAAA,CAAE"}
@@ -1,3 +0,0 @@
1
- import { isNumericId, validateSlug, validateSlugOrId } from "../slug-validation-Bkteg65O.js";
2
-
3
- export { isNumericId, validateSlug, validateSlugOrId };
@@ -1,12 +0,0 @@
1
- const require_url_utils = require('../url-utils-CbcNJVYS.cjs');
2
-
3
- exports.getEventsExplorerUrl = require_url_utils.getEventsExplorerUrl;
4
- exports.getIssueUrl = require_url_utils.getIssueUrl;
5
- exports.getIssuesSearchUrl = require_url_utils.getIssuesSearchUrl;
6
- exports.getTraceUrl = require_url_utils.getTraceUrl;
7
- exports.isSentryHost = require_url_utils.isSentryHost;
8
- exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
9
- exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
10
- exports.validateOpenAiBaseUrlThrows = require_url_utils.validateOpenAiBaseUrlThrows;
11
- exports.validateSentryHost = require_url_utils.validateSentryHost;
12
- exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;