@sentry/mcp-server 0.22.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-YKMCj_QV.js → stdio-232a22j4.js} +7 -3
  39. package/dist/stdio-232a22j4.js.map +1 -0
  40. package/dist/{stdio-DPvrKLnJ.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 -112
  58. package/dist/agent-0WAnUgat.js +0 -43
  59. package/dist/agent-0WAnUgat.js.map +0 -1
  60. package/dist/agent-BeTXxskw.d.ts +0 -35
  61. package/dist/agent-BeTXxskw.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-C1Ros3Xx.js +0 -29
  65. package/dist/agent-C1Ros3Xx.js.map +0 -1
  66. package/dist/agent-CJ6SVqAB.d.ts +0 -32
  67. package/dist/agent-CJ6SVqAB.d.ts.map +0 -1
  68. package/dist/agent-Cm9hEq5d.cjs +0 -76
  69. package/dist/agent-Cm9hEq5d.cjs.map +0 -1
  70. package/dist/agent-Cu85yHYm.d.ts +0 -93
  71. package/dist/agent-Cu85yHYm.d.ts.map +0 -1
  72. package/dist/agent-CyyRLYbF.cjs +0 -55
  73. package/dist/agent-CyyRLYbF.cjs.map +0 -1
  74. package/dist/agent-DYfi9MFV.d.cts +0 -93
  75. package/dist/agent-DYfi9MFV.d.cts.map +0 -1
  76. package/dist/agent-Dkgkv7Iz.js +0 -64
  77. package/dist/agent-Dkgkv7Iz.js.map +0 -1
  78. package/dist/agent-DtCRTWPZ.cjs +0 -35
  79. package/dist/agent-DtCRTWPZ.cjs.map +0 -1
  80. package/dist/agent-TEZG63ug.d.cts +0 -35
  81. package/dist/agent-TEZG63ug.d.cts.map +0 -1
  82. package/dist/analyze-issue-with-seer-B90r4g5J.cjs +0 -206
  83. package/dist/analyze-issue-with-seer-B90r4g5J.cjs.map +0 -1
  84. package/dist/analyze-issue-with-seer-Ji3KDm0O.js +0 -200
  85. package/dist/analyze-issue-with-seer-Ji3KDm0O.js.map +0 -1
  86. package/dist/api-CBHyxA3Q.js +0 -63
  87. package/dist/api-CBHyxA3Q.js.map +0 -1
  88. package/dist/api-CHgBJOv9.cjs +0 -80
  89. package/dist/api-CHgBJOv9.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 -67
  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 -49
  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-BPS472yg.cjs +0 -50
  115. package/dist/callEmbeddedAgent-BPS472yg.cjs.map +0 -1
  116. package/dist/callEmbeddedAgent-CFHLQjFx.d.cts +0 -34
  117. package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +0 -1
  118. package/dist/callEmbeddedAgent-DavTx3Qo.js +0 -44
  119. package/dist/callEmbeddedAgent-DavTx3Qo.js.map +0 -1
  120. package/dist/client-0n2-4zOO.d.cts +0 -837
  121. package/dist/client-0n2-4zOO.d.cts.map +0 -1
  122. package/dist/client-B7hvqupZ.js +0 -1081
  123. package/dist/client-B7hvqupZ.js.map +0 -1
  124. package/dist/client-ByOC8aCf.d.ts +0 -837
  125. package/dist/client-ByOC8aCf.d.ts.map +0 -1
  126. package/dist/client-cC79LUJ5.cjs +0 -1086
  127. package/dist/client-cC79LUJ5.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-9yIHr10B.cjs +0 -74
  153. package/dist/create-dsn-9yIHr10B.cjs.map +0 -1
  154. package/dist/create-dsn-p2Ep6zDn.js +0 -68
  155. package/dist/create-dsn-p2Ep6zDn.js.map +0 -1
  156. package/dist/create-project-BQQx1iLm.cjs +0 -92
  157. package/dist/create-project-BQQx1iLm.cjs.map +0 -1
  158. package/dist/create-project-CN0UneBm.js +0 -86
  159. package/dist/create-project-CN0UneBm.js.map +0 -1
  160. package/dist/create-team-CzFrsVdw.js +0 -63
  161. package/dist/create-team-CzFrsVdw.js.map +0 -1
  162. package/dist/create-team-DFSriKVL.cjs +0 -69
  163. package/dist/create-team-DFSriKVL.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-BzfYjE06.js +0 -58
  205. package/dist/find-dsns-BzfYjE06.js.map +0 -1
  206. package/dist/find-dsns-DhHHtvpj.cjs +0 -64
  207. package/dist/find-dsns-DhHHtvpj.cjs.map +0 -1
  208. package/dist/find-organizations-7ooGnnmP.cjs +0 -64
  209. package/dist/find-organizations-7ooGnnmP.cjs.map +0 -1
  210. package/dist/find-organizations-BJFAElbh.js +0 -59
  211. package/dist/find-organizations-BJFAElbh.js.map +0 -1
  212. package/dist/find-projects-BpEGRZya.cjs +0 -59
  213. package/dist/find-projects-BpEGRZya.cjs.map +0 -1
  214. package/dist/find-projects-E5CMFbwU.js +0 -53
  215. package/dist/find-projects-E5CMFbwU.js.map +0 -1
  216. package/dist/find-releases-DWWonhlV.js +0 -99
  217. package/dist/find-releases-DWWonhlV.js.map +0 -1
  218. package/dist/find-releases-Du5euXKS.cjs +0 -105
  219. package/dist/find-releases-Du5euXKS.cjs.map +0 -1
  220. package/dist/find-teams-BM4yWKe_.js +0 -56
  221. package/dist/find-teams-BM4yWKe_.js.map +0 -1
  222. package/dist/find-teams-Bp6-Iu62.cjs +0 -62
  223. package/dist/find-teams-Bp6-Iu62.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-5u-ZFz8H.cjs +0 -897
  233. package/dist/formatting-5u-ZFz8H.cjs.map +0 -1
  234. package/dist/formatting-BEgp4WO_.js +0 -880
  235. package/dist/formatting-BEgp4WO_.js.map +0 -1
  236. package/dist/formatting-Bw0FWiCH.d.cts +0 -54
  237. package/dist/formatting-Bw0FWiCH.d.cts.map +0 -1
  238. package/dist/formatting-C6hyL-Yv.cjs +0 -20
  239. package/dist/formatting-C6hyL-Yv.cjs.map +0 -1
  240. package/dist/formatting-ClM7RU4L.d.ts +0 -54
  241. package/dist/formatting-ClM7RU4L.d.ts.map +0 -1
  242. package/dist/formatting-DJFcfTJG.js +0 -14
  243. package/dist/formatting-DJFcfTJG.js.map +0 -1
  244. package/dist/get-doc-CWhlUoJe.js +0 -87
  245. package/dist/get-doc-CWhlUoJe.js.map +0 -1
  246. package/dist/get-doc-DsOaSMIe.cjs +0 -93
  247. package/dist/get-doc-DsOaSMIe.cjs.map +0 -1
  248. package/dist/get-event-attachment-CTF-k6op.cjs +0 -150
  249. package/dist/get-event-attachment-CTF-k6op.cjs.map +0 -1
  250. package/dist/get-event-attachment-DDvsu6IQ.js +0 -144
  251. package/dist/get-event-attachment-DDvsu6IQ.js.map +0 -1
  252. package/dist/get-issue-details-Bsax2jTY.js +0 -195
  253. package/dist/get-issue-details-Bsax2jTY.js.map +0 -1
  254. package/dist/get-issue-details-CIZSksmd.cjs +0 -201
  255. package/dist/get-issue-details-CIZSksmd.cjs.map +0 -1
  256. package/dist/get-trace-details-Bc9GgkSs.cjs +0 -313
  257. package/dist/get-trace-details-Bc9GgkSs.cjs.map +0 -1
  258. package/dist/get-trace-details-Bkilw5oH.js +0 -307
  259. package/dist/get-trace-details-Bkilw5oH.js.map +0 -1
  260. package/dist/handler-CASDrJ7z.d.ts +0 -15
  261. package/dist/handler-CASDrJ7z.d.ts.map +0 -1
  262. package/dist/handler-CXY05zhR.d.ts +0 -11
  263. package/dist/handler-CXY05zhR.d.ts.map +0 -1
  264. package/dist/handler-CZEMKP9p.d.cts +0 -15
  265. package/dist/handler-CZEMKP9p.d.cts.map +0 -1
  266. package/dist/handler-ChOaafS-.cjs +0 -159
  267. package/dist/handler-ChOaafS-.cjs.map +0 -1
  268. package/dist/handler-CmTBmIt9.d.cts +0 -15
  269. package/dist/handler-CmTBmIt9.d.cts.map +0 -1
  270. package/dist/handler-Cs5DcdpF.d.ts +0 -15
  271. package/dist/handler-Cs5DcdpF.d.ts.map +0 -1
  272. package/dist/handler-D6OGs2Ok.d.cts +0 -11
  273. package/dist/handler-D6OGs2Ok.d.cts.map +0 -1
  274. package/dist/handler-DQbc5eAJ.cjs +0 -138
  275. package/dist/handler-DQbc5eAJ.cjs.map +0 -1
  276. package/dist/handler-bf2qu8DQ.js +0 -132
  277. package/dist/handler-bf2qu8DQ.js.map +0 -1
  278. package/dist/handler-y6EMhG0y.js +0 -153
  279. package/dist/handler-y6EMhG0y.js.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 -6
  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 -4
  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 -8
  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 -7
  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-B7uvGxoI.cjs +0 -60
  407. package/dist/openai-provider-B7uvGxoI.cjs.map +0 -1
  408. package/dist/openai-provider-DphaqrmX.js +0 -48
  409. package/dist/openai-provider-DphaqrmX.js.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-BGVOjcD7.cjs +0 -141
  431. package/dist/schema-BGVOjcD7.cjs.map +0 -1
  432. package/dist/schema-ChlpIaqA.js +0 -39
  433. package/dist/schema-ChlpIaqA.js.map +0 -1
  434. package/dist/schema-Cp8XI7-D.d.ts +0 -14379
  435. package/dist/schema-Cp8XI7-D.d.ts.map +0 -1
  436. package/dist/schema-D5oT-Zi7.d.cts +0 -14379
  437. package/dist/schema-D5oT-Zi7.d.cts.map +0 -1
  438. package/dist/schema-DE4JpUSi.cjs +0 -744
  439. package/dist/schema-DE4JpUSi.cjs.map +0 -1
  440. package/dist/schema-DkZXVCQJ.js +0 -462
  441. package/dist/schema-DkZXVCQJ.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-DdOFZY3t.cjs +0 -97
  449. package/dist/search-docs-DdOFZY3t.cjs.map +0 -1
  450. package/dist/search-docs-YYBTOWY5.js +0 -91
  451. package/dist/search-docs-YYBTOWY5.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-BQBA0VNe.cjs +0 -353
  469. package/dist/server-BQBA0VNe.cjs.map +0 -1
  470. package/dist/server-BVqPcPfx.js +0 -335
  471. package/dist/server-BVqPcPfx.js.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 -53
  479. package/dist/skillDefinitions.cjs.map +0 -1
  480. package/dist/skillDefinitions.d.cts +0 -13
  481. package/dist/skillDefinitions.d.cts.map +0 -1
  482. package/dist/skillDefinitions.d.ts +0 -13
  483. package/dist/skillDefinitions.d.ts.map +0 -1
  484. package/dist/skillDefinitions.js +0 -52
  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-DPvrKLnJ.cjs.map +0 -1
  503. package/dist/stdio-YKMCj_QV.js.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 -724
  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 -723
  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-CZI-5yyV.d.cts +0 -40
  733. package/dist/types-CZI-5yyV.d.cts.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-D670-rDz.js +0 -0
  737. package/dist/types-OrkP7cEA.d.ts +0 -33
  738. package/dist/types-OrkP7cEA.d.ts.map +0 -1
  739. package/dist/types-WcBA7ZSQ.d.ts +0 -40
  740. package/dist/types-WcBA7ZSQ.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-B35n8MDT.js +0 -118
  751. package/dist/update-issue-B35n8MDT.js.map +0 -1
  752. package/dist/update-issue-DOVD2zXD.cjs +0 -124
  753. package/dist/update-issue-DOVD2zXD.cjs.map +0 -1
  754. package/dist/update-project-D361nWlU.js +0 -128
  755. package/dist/update-project-D361nWlU.js.map +0 -1
  756. package/dist/update-project-DG3bwhNA.cjs +0 -134
  757. package/dist/update-project-DG3bwhNA.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-Bzaer0D1.d.ts +0 -43
  777. package/dist/utils-Bzaer0D1.d.ts.map +0 -1
  778. package/dist/utils-C5oiuqkh.d.cts +0 -39
  779. package/dist/utils-C5oiuqkh.d.cts.map +0 -1
  780. package/dist/utils-CAWsA9Cl.d.cts +0 -43
  781. package/dist/utils-CAWsA9Cl.d.cts.map +0 -1
  782. package/dist/utils-CIt6Amml.cjs +0 -124
  783. package/dist/utils-CIt6Amml.cjs.map +0 -1
  784. package/dist/utils-CaNeCYCH.js +0 -94
  785. package/dist/utils-CaNeCYCH.js.map +0 -1
  786. package/dist/utils-CrKFhSC3.d.ts +0 -39
  787. package/dist/utils-CrKFhSC3.d.ts.map +0 -1
  788. package/dist/utils-DJIwl8YR.cjs +0 -96
  789. package/dist/utils-DJIwl8YR.cjs.map +0 -1
  790. package/dist/utils-DOb7bs5_.js +0 -90
  791. package/dist/utils-DOb7bs5_.js.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-CCICHYna.js +0 -7
  797. package/dist/version-CCICHYna.js.map +0 -1
  798. package/dist/version-CPcX-30c.cjs +0 -19
  799. package/dist/version-CPcX-30c.cjs.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-CRF9Ws25.cjs +0 -44
  811. package/dist/whoami-CRF9Ws25.cjs.map +0 -1
  812. package/dist/whoami-DCZN-m7R.js +0 -39
  813. package/dist/whoami-DCZN-m7R.js.map +0 -1
@@ -1,897 +0,0 @@
1
- const require_seer = require('./seer-sA1asAZs.cjs');
2
-
3
- //#region src/internal/formatting.ts
4
- const LANGUAGE_EXTENSIONS = {
5
- ".java": "java",
6
- ".py": "python",
7
- ".js": "javascript",
8
- ".jsx": "javascript",
9
- ".ts": "javascript",
10
- ".tsx": "javascript",
11
- ".rb": "ruby",
12
- ".php": "php"
13
- };
14
- const LANGUAGE_MODULE_PATTERNS = [[/^(java\.|com\.|org\.)/, "java"]];
15
- /**
16
- * Detects the programming language of a stack frame based on the file extension.
17
- * Falls back to the platform parameter if no filename is available or extension is unrecognized.
18
- *
19
- * @param frame - The stack frame containing file and location information
20
- * @param platform - Optional platform hint to use as fallback
21
- * @returns The detected language or platform fallback or "unknown"
22
- */
23
- function detectLanguage(frame, platform) {
24
- if (frame.filename) {
25
- const ext = frame.filename.toLowerCase().match(/\.[^.]+$/)?.[0];
26
- if (ext && LANGUAGE_EXTENSIONS[ext]) return LANGUAGE_EXTENSIONS[ext];
27
- }
28
- if (frame.module) {
29
- for (const [pattern, language] of LANGUAGE_MODULE_PATTERNS) if (pattern.test(frame.module)) return language;
30
- }
31
- return platform || "unknown";
32
- }
33
- /**
34
- * Formats a stack frame into a language-specific string representation.
35
- * Different languages have different conventions for displaying stack traces.
36
- *
37
- * @param frame - The stack frame to format
38
- * @param frameIndex - Optional frame index for languages that display frame numbers
39
- * @param platform - Optional platform hint for language detection fallback
40
- * @returns Formatted stack frame string
41
- */
42
- function formatFrameHeader(frame, frameIndex, platform) {
43
- const language = detectLanguage(frame, platform);
44
- switch (language) {
45
- case "java": {
46
- const className = frame.module || "UnknownClass";
47
- const method = frame.function || "<unknown>";
48
- const source = frame.filename || "Unknown Source";
49
- const location = frame.lineNo ? `:${frame.lineNo}` : "";
50
- return `at ${className}.${method}(${source}${location})`;
51
- }
52
- case "python": {
53
- const file = frame.filename || frame.absPath || frame.module || "<unknown>";
54
- const func = frame.function || "<module>";
55
- const line = frame.lineNo ? `, line ${frame.lineNo}` : "";
56
- return ` File "${file}"${line}, in ${func}`;
57
- }
58
- case "javascript": return `${[
59
- frame.filename,
60
- frame.lineNo,
61
- frame.colNo
62
- ].filter((i) => !!i).join(":")}${frame.function ? ` (${frame.function})` : ""}`;
63
- case "ruby": {
64
- const file = frame.filename || frame.module || "<unknown>";
65
- const func = frame.function ? ` \`${frame.function}\`` : "";
66
- const line = frame.lineNo ? `:${frame.lineNo}:in` : "";
67
- return ` from ${file}${line}${func}`;
68
- }
69
- case "php": {
70
- const file = frame.filename || "<unknown>";
71
- const line = frame.lineNo ? `(${frame.lineNo})` : "";
72
- const func = frame.function || "<unknown>";
73
- const prefix = frameIndex !== void 0 ? `#${frameIndex} ` : "";
74
- return `${prefix}${file}${line}: ${func}()`;
75
- }
76
- default: {
77
- const func = frame.function || "<unknown>";
78
- const location = frame.filename || frame.module || "<unknown>";
79
- const line = frame.lineNo ? `:${frame.lineNo}` : "";
80
- const col = frame.colNo != null ? `:${frame.colNo}` : "";
81
- return ` at ${func} (${location}${line}${col})`;
82
- }
83
- }
84
- }
85
- /**
86
- * Formats a Sentry event into a structured markdown output.
87
- * Includes error messages, stack traces, request info, and contextual data.
88
- *
89
- * @param event - The Sentry event to format
90
- * @param options - Additional formatting context
91
- * @returns Formatted markdown string
92
- */
93
- function formatEventOutput(event, options) {
94
- let output = "";
95
- const messageEntry = event.entries.find((e) => e.type === "message");
96
- const exceptionEntry = event.entries.find((e) => e.type === "exception");
97
- const threadsEntry = event.entries.find((e) => e.type === "threads");
98
- const requestEntry = event.entries.find((e) => e.type === "request");
99
- const spansEntry = event.entries.find((e) => e.type === "spans");
100
- if (messageEntry) output += formatMessageInterfaceOutput(event, messageEntry.data);
101
- if (exceptionEntry) output += formatExceptionInterfaceOutput(event, exceptionEntry.data);
102
- else if (threadsEntry) output += formatThreadsInterfaceOutput(event, threadsEntry.data);
103
- if (requestEntry) output += formatRequestInterfaceOutput(event, requestEntry.data);
104
- if (event.type === "transaction") output += formatPerformanceIssueOutput(event, spansEntry?.data, options);
105
- output += formatTags(event.tags);
106
- output += formatContext(event.context);
107
- output += formatContexts(event.contexts);
108
- return output;
109
- }
110
- /**
111
- * Extracts the context line matching the frame's line number for inline display.
112
- * This is used in the full stacktrace view to show the actual line of code
113
- * that caused the error inline with the stack frame.
114
- *
115
- * @param frame - The stack frame containing context lines
116
- * @returns The line of code at the frame's line number, or empty string if not available
117
- */
118
- function renderInlineContext(frame) {
119
- if (!frame.context?.length || !frame.lineNo) return "";
120
- const contextLine = frame.context.find(([lineNo]) => lineNo === frame.lineNo);
121
- return contextLine ? `\n${contextLine[1]}` : "";
122
- }
123
- /**
124
- * Renders an enhanced view of a stack frame with context lines and variables.
125
- * Used for the "Most Relevant Frame" section to provide detailed information
126
- * about the most relevant application frame where the error occurred.
127
- *
128
- * @param frame - The stack frame to render with enhanced information
129
- * @param event - The Sentry event containing platform information for language detection
130
- * @returns Formatted string with frame header, context lines, and variables table
131
- */
132
- function renderEnhancedFrame(frame, event) {
133
- const parts = [];
134
- parts.push("**Most Relevant Frame:**");
135
- parts.push("─────────────────────");
136
- parts.push(formatFrameHeader(frame, void 0, event.platform));
137
- if (frame.context?.length) {
138
- const contextLines = renderContextLines(frame);
139
- if (contextLines) {
140
- parts.push("");
141
- parts.push(contextLines);
142
- }
143
- }
144
- if (frame.vars && Object.keys(frame.vars).length > 0) {
145
- parts.push("");
146
- parts.push(renderVariablesTable(frame.vars));
147
- }
148
- return parts.join("\n");
149
- }
150
- function formatExceptionInterfaceOutput(event, data) {
151
- const parts = [];
152
- const exceptions = data.values || (data.value ? [data.value] : []);
153
- if (exceptions.length === 0) return "";
154
- const isChained = exceptions.length > 1;
155
- [...exceptions].reverse().forEach((exception, index) => {
156
- if (!exception) return;
157
- if (isChained && index > 0) {
158
- parts.push("");
159
- parts.push(getExceptionChainMessage(event.platform || null, index, exceptions.length));
160
- parts.push("");
161
- }
162
- const exceptionTitle = `${exception.type}${exception.value ? `: ${exception.value}` : ""}`;
163
- parts.push(index === 0 ? "### Error" : `### ${exceptionTitle}`);
164
- parts.push("");
165
- if (index === 0) {
166
- parts.push("```");
167
- parts.push(exceptionTitle);
168
- parts.push("```");
169
- parts.push("");
170
- }
171
- if (!exception.stacktrace || !exception.stacktrace.frames) {
172
- parts.push("**Stacktrace:**");
173
- parts.push("```");
174
- parts.push("No stacktrace available");
175
- parts.push("```");
176
- return;
177
- }
178
- const frames = exception.stacktrace.frames;
179
- if (index === 0) {
180
- const firstInAppFrame = findFirstInAppFrame(frames);
181
- if (firstInAppFrame && (firstInAppFrame.context?.length || firstInAppFrame.vars)) {
182
- parts.push(renderEnhancedFrame(firstInAppFrame, event));
183
- parts.push("");
184
- parts.push("**Full Stacktrace:**");
185
- parts.push("────────────────");
186
- } else parts.push("**Stacktrace:**");
187
- } else parts.push("**Stacktrace:**");
188
- parts.push("```");
189
- parts.push(frames.map((frame) => {
190
- const header = formatFrameHeader(frame, void 0, event.platform);
191
- const context = renderInlineContext(frame);
192
- return `${header}${context}`;
193
- }).join("\n"));
194
- parts.push("```");
195
- });
196
- parts.push("");
197
- parts.push("");
198
- return parts.join("\n");
199
- }
200
- /**
201
- * Get the appropriate exception chain message based on the platform
202
- */
203
- function getExceptionChainMessage(platform, index, totalExceptions) {
204
- const defaultMessage = "**During handling of the above exception, another exception occurred:**";
205
- if (!platform) return defaultMessage;
206
- switch (platform.toLowerCase()) {
207
- case "python": return "**During handling of the above exception, another exception occurred:**";
208
- case "java": return "**Caused by:**";
209
- case "csharp":
210
- case "dotnet": return "**---> Inner Exception:**";
211
- case "ruby": return "**Caused by:**";
212
- case "go": return "**Wrapped error:**";
213
- case "rust": return `**Caused by (${index}):**`;
214
- default: return defaultMessage;
215
- }
216
- }
217
- function formatRequestInterfaceOutput(event, data) {
218
- if (!data.method || !data.url) return "";
219
- return `### HTTP Request\n\n**Method:** ${data.method}\n**URL:** ${data.url}\n\n`;
220
- }
221
- function formatMessageInterfaceOutput(event, data) {
222
- if (!data.formatted && !data.message) return "";
223
- const message = data.formatted || data.message || "";
224
- return `### Error\n\n\`\`\`\n${message}\n\`\`\`\n\n`;
225
- }
226
- function formatThreadsInterfaceOutput(event, data) {
227
- if (!data.values || data.values.length === 0) return "";
228
- const crashedThread = data.values.find((t) => t.crashed);
229
- if (!crashedThread?.stacktrace?.frames) return "";
230
- const parts = [];
231
- if (crashedThread.name) {
232
- parts.push(`**Thread** (${crashedThread.name})`);
233
- parts.push("");
234
- }
235
- const frames = crashedThread.stacktrace.frames;
236
- const firstInAppFrame = findFirstInAppFrame(frames);
237
- if (firstInAppFrame && (firstInAppFrame.context?.length || firstInAppFrame.vars)) {
238
- parts.push(renderEnhancedFrame(firstInAppFrame, event));
239
- parts.push("");
240
- parts.push("**Full Stacktrace:**");
241
- parts.push("────────────────");
242
- } else parts.push("**Stacktrace:**");
243
- parts.push("```");
244
- parts.push(frames.map((frame) => {
245
- const header = formatFrameHeader(frame, void 0, event.platform);
246
- const context = renderInlineContext(frame);
247
- return `${header}${context}`;
248
- }).join("\n"));
249
- parts.push("```");
250
- parts.push("");
251
- return parts.join("\n");
252
- }
253
- /**
254
- * Renders surrounding source code context for a stack frame.
255
- * Shows a window of code lines around the error line with visual indicators.
256
- *
257
- * @param frame - The stack frame containing context lines
258
- * @param contextSize - Number of lines to show before and after the error line (default: 3)
259
- * @returns Formatted context lines with line numbers and arrow indicator for the error line
260
- */
261
- function renderContextLines(frame, contextSize = 3) {
262
- if (!frame.context || frame.context.length === 0 || !frame.lineNo) return "";
263
- const lines = [];
264
- const errorLine = frame.lineNo;
265
- const maxLineNoWidth = Math.max(...frame.context.map(([lineNo]) => lineNo.toString().length));
266
- for (const [lineNo, code] of frame.context) {
267
- const isErrorLine = lineNo === errorLine;
268
- const lineNoStr = lineNo.toString().padStart(maxLineNoWidth, " ");
269
- if (Math.abs(lineNo - errorLine) <= contextSize) if (isErrorLine) lines.push(` → ${lineNoStr} │ ${code}`);
270
- else lines.push(` ${lineNoStr} │ ${code}`);
271
- }
272
- return lines.join("\n");
273
- }
274
- /**
275
- * Formats a variable value for display in the variables table.
276
- * Handles different types appropriately and safely, converting complex objects
277
- * to readable representations and handling edge cases like circular references.
278
- *
279
- * @param value - The variable value to format (can be any type)
280
- * @param maxLength - Maximum length for stringified objects/arrays (default: 80)
281
- * @returns Human-readable string representation of the value
282
- */
283
- function formatVariableValue(value, maxLength = 80) {
284
- try {
285
- if (typeof value === "string") return `"${value}"`;
286
- if (value === null) return "null";
287
- if (value === void 0) return "undefined";
288
- if (typeof value === "object") {
289
- const stringified = JSON.stringify(value);
290
- if (stringified.length > maxLength) {
291
- const truncateAt = maxLength - 6;
292
- let truncated = stringified.substring(0, truncateAt);
293
- const lastComma = truncated.lastIndexOf(",");
294
- if (lastComma > 0) truncated = truncated.substring(0, lastComma);
295
- if (Array.isArray(value)) return `${truncated}, ...]`;
296
- return `${truncated}, ...}`;
297
- }
298
- return stringified;
299
- }
300
- return String(value);
301
- } catch {
302
- return `<${typeof value}>`;
303
- }
304
- }
305
- /**
306
- * Renders a table of local variables in a tree-like format.
307
- * Uses box-drawing characters to create a visual hierarchy of variables
308
- * and their values at the point where the error occurred.
309
- *
310
- * @param vars - Object containing variable names as keys and their values
311
- * @returns Formatted variables table with tree-style prefix characters
312
- */
313
- function renderVariablesTable(vars) {
314
- const entries = Object.entries(vars);
315
- if (entries.length === 0) return "";
316
- const lines = ["Local Variables:"];
317
- const lastIndex = entries.length - 1;
318
- entries.forEach(([key, value], index) => {
319
- const prefix = index === lastIndex ? "└─" : "├─";
320
- const valueStr = formatVariableValue(value);
321
- lines.push(`${prefix} ${key}: ${valueStr}`);
322
- });
323
- return lines.join("\n");
324
- }
325
- /**
326
- * Finds the first application frame (in_app) in a stack trace.
327
- * Searches from the bottom of the stack (oldest frame) to find the first
328
- * frame that belongs to the user's application code rather than libraries.
329
- *
330
- * @param frames - Array of stack frames, typically in reverse chronological order
331
- * @returns The first in-app frame found, or undefined if none exist
332
- */
333
- function findFirstInAppFrame(frames) {
334
- for (let i = frames.length - 1; i >= 0; i--) if (frames[i].inApp === true) return frames[i];
335
- return void 0;
336
- }
337
- /**
338
- * Constants for performance issue formatting
339
- */
340
- const MAX_SPANS_IN_TREE = 10;
341
- /**
342
- * Safely parse a number from a string, returning a default if invalid
343
- */
344
- function safeParseInt(value, defaultValue) {
345
- if (typeof value === "number") return value;
346
- if (typeof value === "string") {
347
- const parsed = Number.parseInt(value, 10);
348
- return Number.isNaN(parsed) ? defaultValue : parsed;
349
- }
350
- return defaultValue;
351
- }
352
- function normalizeSpanId(value) {
353
- if (typeof value === "string" && value) return value;
354
- return void 0;
355
- }
356
- function getSpanIdentifier(span) {
357
- if (span.span_id !== void 0) return normalizeSpanId(span.span_id);
358
- if (span.id !== void 0) return normalizeSpanId(span.id);
359
- return void 0;
360
- }
361
- function getSpanDurationMs(span) {
362
- if (typeof span.timestamp === "number" && typeof span.start_timestamp === "number") {
363
- const deltaSeconds = span.timestamp - span.start_timestamp;
364
- if (Number.isFinite(deltaSeconds) && deltaSeconds >= 0) return deltaSeconds * 1e3;
365
- }
366
- if (typeof span.duration === "number" && Number.isFinite(span.duration)) return span.duration >= 0 ? span.duration : 0;
367
- return 0;
368
- }
369
- function normalizeIdArray(values) {
370
- if (!Array.isArray(values)) return [];
371
- return values.map((value) => normalizeSpanId(value)).filter((value) => value !== void 0);
372
- }
373
- function isValidSpanArray(value) {
374
- return Array.isArray(value);
375
- }
376
- /**
377
- * Get the repeating span descriptions from evidence data.
378
- * Prefers repeatingSpansCompact (more concise) over repeatingSpans (verbose).
379
- */
380
- function getRepeatingSpanLines(evidenceData) {
381
- if (Array.isArray(evidenceData.repeatingSpansCompact) && evidenceData.repeatingSpansCompact.length > 0) return evidenceData.repeatingSpansCompact.map((s) => typeof s === "string" ? s.trim() : "").filter((s) => s.length > 0);
382
- if (Array.isArray(evidenceData.repeatingSpans) && evidenceData.repeatingSpans.length > 0) return evidenceData.repeatingSpans.map((s) => typeof s === "string" ? s.trim() : "").filter((s) => s.length > 0);
383
- return [];
384
- }
385
- function isTraceSpan(node) {
386
- if (node === null || typeof node !== "object") return false;
387
- const candidate = node;
388
- return candidate.event_type === "span" && typeof candidate.event_id === "string";
389
- }
390
- function buildTraceSpanTree(trace, parentSpanIds, offenderSpanIds, maxSpans) {
391
- const offenderSet = new Set(offenderSpanIds);
392
- const spanMap = /* @__PURE__ */ new Map();
393
- function indexSpan(span) {
394
- const spanId = normalizeSpanId(span.additional_attributes?.span_id) || span.event_id;
395
- if (spanId && spanId.length > 0) spanMap.set(spanId, span);
396
- for (const child of span.children ?? []) if (isTraceSpan(child)) indexSpan(child);
397
- }
398
- for (const node of trace) if (isTraceSpan(node)) indexSpan(node);
399
- const roots = [];
400
- const budget = {
401
- count: 0,
402
- limit: maxSpans
403
- };
404
- for (const parentId of parentSpanIds) {
405
- const span = spanMap.get(parentId);
406
- if (!span) continue;
407
- const perfSpan = convertTraceSpanToPerformanceSpan(span, offenderSet, budget, 0);
408
- if (perfSpan) roots.push(perfSpan);
409
- if (budget.count >= budget.limit) break;
410
- }
411
- if (roots.length === 0 && offenderSpanIds.length > 0) for (const offenderId of offenderSpanIds) {
412
- const span = spanMap.get(offenderId);
413
- if (!span) continue;
414
- const perfSpan = convertTraceSpanToPerformanceSpan(span, offenderSet, budget, 0);
415
- if (perfSpan) roots.push(perfSpan);
416
- if (budget.count >= budget.limit) break;
417
- }
418
- if (roots.length === 0) return [];
419
- return renderPerformanceSpanTree(roots);
420
- }
421
- function convertTraceSpanToPerformanceSpan(span, offenderSet, budget, level) {
422
- if (budget.count >= budget.limit) return null;
423
- budget.count += 1;
424
- const spanId = normalizeSpanId(span.additional_attributes?.span_id) || span.event_id;
425
- const performanceSpan = {
426
- span_id: spanId,
427
- op: span.op || "unknown",
428
- description: formatTraceSpanDescription(span),
429
- duration: getTraceSpanDurationMs(span),
430
- is_n1_query: offenderSet.has(spanId),
431
- children: [],
432
- level
433
- };
434
- for (const child of span.children ?? []) {
435
- if (!isTraceSpan(child)) continue;
436
- if (budget.count >= budget.limit) break;
437
- const childSpan = convertTraceSpanToPerformanceSpan(child, offenderSet, budget, level + 1);
438
- if (childSpan) performanceSpan.children.push(childSpan);
439
- if (budget.count >= budget.limit) break;
440
- }
441
- return performanceSpan;
442
- }
443
- function formatTraceSpanDescription(span) {
444
- if (span.name && span.name.trim().length > 0) return span.name.trim();
445
- if (span.description && span.description.trim().length > 0) return span.description.trim();
446
- if (span.op && span.op.trim().length > 0) return span.op.trim();
447
- return "unnamed";
448
- }
449
- function getTraceSpanDurationMs(span) {
450
- if (typeof span.duration === "number" && span.duration >= 0) return span.duration;
451
- if (typeof span.end_timestamp === "number" && typeof span.start_timestamp === "number") {
452
- const deltaSeconds = span.end_timestamp - span.start_timestamp;
453
- if (Number.isFinite(deltaSeconds) && deltaSeconds >= 0) return deltaSeconds * 1e3;
454
- }
455
- return 0;
456
- }
457
- function buildOffenderSummaries(spans, offenderSpanIds) {
458
- if (offenderSpanIds.length === 0) return [];
459
- const spanMap = /* @__PURE__ */ new Map();
460
- for (const span of spans) {
461
- const identifier = getSpanIdentifier(span);
462
- if (identifier) spanMap.set(identifier, span);
463
- }
464
- const summaries = [];
465
- for (const offenderId of offenderSpanIds) {
466
- const span = spanMap.get(offenderId);
467
- if (span) {
468
- const description = span.description || span.op || `Span ${offenderId}`;
469
- const duration = getSpanDurationMs(span);
470
- const durationLabel = duration > 0 ? ` (${Math.round(duration)}ms)` : "";
471
- summaries.push(`${description}${durationLabel} [${offenderId}] [N+1]`);
472
- } else summaries.push(`Span ${offenderId} [N+1]`);
473
- }
474
- return summaries;
475
- }
476
- /**
477
- * Renders a hierarchical tree of performance spans using box-drawing characters.
478
- * Highlights N+1 queries with a special indicator.
479
- *
480
- * @param spans - Array of selected performance spans
481
- * @returns Array of formatted strings representing the tree
482
- */
483
- function renderPerformanceSpanTree(spans) {
484
- const lines = [];
485
- function renderSpan(span, prefix = "", isLast = true) {
486
- const connector = prefix === "" ? "" : isLast ? "└─ " : "├─ ";
487
- const displayName = span.description?.trim() || span.op || "unnamed";
488
- const shortId = span.span_id ? span.span_id.substring(0, 8) : "unknown";
489
- const durationDisplay = span.duration > 0 ? `${Math.round(span.duration)}ms` : "unknown";
490
- const metadataParts = [shortId];
491
- if (span.op && span.op !== "default") metadataParts.push(span.op);
492
- metadataParts.push(durationDisplay);
493
- const line = `${prefix}${connector}${displayName} [${metadataParts.join(" · ")}]${span.is_n1_query ? " [N+1]" : ""}`;
494
- lines.push(line);
495
- for (let i = 0; i < span.children.length; i++) {
496
- const child = span.children[i];
497
- const isLastChild = i === span.children.length - 1;
498
- const childPrefix = prefix + (isLast ? " " : "│ ");
499
- renderSpan(child, childPrefix, isLastChild);
500
- }
501
- }
502
- for (let i = 0; i < spans.length; i++) {
503
- const span = spans[i];
504
- const isLastRoot = i === spans.length - 1;
505
- renderSpan(span, "", isLastRoot);
506
- }
507
- return lines;
508
- }
509
- function selectN1QuerySpans(spans, evidence, maxSpans = MAX_SPANS_IN_TREE) {
510
- const selected = [];
511
- let spanCount = 0;
512
- const offenderSpanIds = normalizeIdArray(evidence.offenderSpanIds);
513
- const parentSpanIds = normalizeIdArray(evidence.parentSpanIds);
514
- let parentSpan = null;
515
- if (parentSpanIds.length > 0) {
516
- const parent = spans.find((span) => {
517
- const identifier = getSpanIdentifier(span);
518
- return identifier ? parentSpanIds.includes(identifier) : false;
519
- });
520
- if (parent) {
521
- parentSpan = {
522
- span_id: getSpanIdentifier(parent) ?? "unknown",
523
- op: parent.op || "unknown",
524
- description: parent.description || evidence.parentSpan || "Parent Operation",
525
- duration: getSpanDurationMs(parent),
526
- is_n1_query: false,
527
- children: [],
528
- level: 0
529
- };
530
- selected.push(parentSpan);
531
- spanCount += 1;
532
- }
533
- }
534
- if (offenderSpanIds.length > 0) {
535
- const offenderSet = new Set(offenderSpanIds);
536
- const offenderSpans = spans.filter((span) => {
537
- const identifier = getSpanIdentifier(span);
538
- return identifier ? offenderSet.has(identifier) : false;
539
- }).slice(0, Math.max(0, maxSpans - spanCount));
540
- for (const span of offenderSpans) {
541
- const perfSpan = {
542
- span_id: getSpanIdentifier(span) ?? "unknown",
543
- op: span.op || "db.query",
544
- description: span.description || "Database Query",
545
- duration: getSpanDurationMs(span),
546
- is_n1_query: true,
547
- children: [],
548
- level: parentSpan ? 1 : 0
549
- };
550
- if (parentSpan) parentSpan.children.push(perfSpan);
551
- else selected.push(perfSpan);
552
- spanCount += 1;
553
- if (spanCount >= maxSpans) break;
554
- }
555
- }
556
- return selected;
557
- }
558
- /**
559
- * Known Sentry performance issue types that we handle.
560
- *
561
- * NOTE: We intentionally only implement formatters for high-value performance issues
562
- * that provide complex insights. Not all issue types need custom formatting - many
563
- * can rely on the generic evidenceDisplay fields that Sentry provides.
564
- *
565
- * Currently fully implemented:
566
- * - N+1 query detection (DB and API)
567
- *
568
- * Partially implemented:
569
- * - Slow DB queries (shows parent span only)
570
- *
571
- * Not implemented (lower priority):
572
- * - Asset-related issues (render blocking, uncompressed, large payloads)
573
- * - File I/O issues
574
- * - Consecutive queries
575
- */
576
- const KNOWN_PERFORMANCE_ISSUE_TYPES = {
577
- N_PLUS_ONE_DB_QUERIES: "performance_n_plus_one_db_queries",
578
- N_PLUS_ONE_API_CALLS: "performance_n_plus_one_api_calls",
579
- SLOW_DB_QUERY: "performance_slow_db_query",
580
- RENDER_BLOCKING_ASSET: "performance_render_blocking_asset",
581
- CONSECUTIVE_DB_QUERIES: "performance_consecutive_db_queries",
582
- FILE_IO_MAIN_THREAD: "performance_file_io_main_thread",
583
- M_N_PLUS_ONE_DB_QUERIES: "performance_m_n_plus_one_db_queries",
584
- UNCOMPRESSED_ASSET: "performance_uncompressed_asset",
585
- LARGE_HTTP_PAYLOAD: "performance_large_http_payload"
586
- };
587
- /**
588
- * Map numeric occurrence types to issue types (from Sentry's codebase).
589
- *
590
- * Sentry uses numeric type IDs internally in the occurrence data structure,
591
- * but string issue types in the UI and other APIs. This mapping converts
592
- * between them.
593
- *
594
- * Source: sentry/static/app/types/group.tsx in Sentry's codebase
595
- * Range: 1xxx = transaction-based performance issues
596
- * 2xxx = profile-based performance issues
597
- */
598
- const OCCURRENCE_TYPE_TO_ISSUE_TYPE = {
599
- 1001: KNOWN_PERFORMANCE_ISSUE_TYPES.SLOW_DB_QUERY,
600
- 1004: KNOWN_PERFORMANCE_ISSUE_TYPES.RENDER_BLOCKING_ASSET,
601
- 1006: KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_DB_QUERIES,
602
- 1906: KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_DB_QUERIES,
603
- 1007: KNOWN_PERFORMANCE_ISSUE_TYPES.CONSECUTIVE_DB_QUERIES,
604
- 1008: KNOWN_PERFORMANCE_ISSUE_TYPES.FILE_IO_MAIN_THREAD,
605
- 1009: "performance_consecutive_http",
606
- 1010: KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_API_CALLS,
607
- 1910: KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_API_CALLS,
608
- 1012: KNOWN_PERFORMANCE_ISSUE_TYPES.UNCOMPRESSED_ASSET,
609
- 1013: "performance_db_main_thread",
610
- 1015: KNOWN_PERFORMANCE_ISSUE_TYPES.LARGE_HTTP_PAYLOAD,
611
- 1016: "performance_http_overhead"
612
- };
613
- /**
614
- * Formats N+1 query issue evidence data.
615
- *
616
- * N+1 queries are a common performance anti-pattern where code executes
617
- * 1 query to get a list of items, then N additional queries (one per item)
618
- * instead of using a single JOIN or batch query.
619
- *
620
- * Evidence fields we use:
621
- * - parentSpan: The operation that triggered the N+1 queries
622
- * - repeatingSpansCompact/repeatingSpans: The query pattern being repeated
623
- * - numberRepeatingSpans: How many times the query was executed
624
- * - offenderSpanIds: IDs of the actual span instances
625
- * - parentSpanIds: IDs of parent spans for tree visualization
626
- */
627
- function formatN1QueryEvidence(evidenceData, spansData, performanceTrace) {
628
- const parts = [];
629
- if (evidenceData.parentSpan) {
630
- parts.push("**Parent Operation:**");
631
- parts.push(`${evidenceData.parentSpan}`);
632
- parts.push("");
633
- }
634
- const repeatingLines = getRepeatingSpanLines(evidenceData);
635
- if (repeatingLines.length > 0) {
636
- parts.push("### Repeated Database Queries");
637
- parts.push("");
638
- const queryCount = evidenceData.numberRepeatingSpans ? safeParseInt(evidenceData.numberRepeatingSpans, 0) : evidenceData.numPatternRepetitions || evidenceData.offenderSpanIds?.length || 0;
639
- if (queryCount > 0) parts.push(`**Query executed ${queryCount} times:**`);
640
- if (repeatingLines.length === 1) {
641
- parts.push("```sql");
642
- parts.push(repeatingLines[0]);
643
- parts.push("```");
644
- parts.push("");
645
- } else {
646
- parts.push("**Repeated operations:**");
647
- for (const line of repeatingLines) parts.push(`- ${line}`);
648
- parts.push("");
649
- }
650
- }
651
- const parentSpanIds = normalizeIdArray(evidenceData.parentSpanIds);
652
- const offenderSpanIds = normalizeIdArray(evidenceData.offenderSpanIds);
653
- const traceLines = performanceTrace ? buildTraceSpanTree(performanceTrace, parentSpanIds, offenderSpanIds, MAX_SPANS_IN_TREE) : [];
654
- if (traceLines.length > 0) {
655
- parts.push(`### Span Tree (Limited to ${MAX_SPANS_IN_TREE} spans)`);
656
- parts.push("");
657
- parts.push("```");
658
- parts.push(...traceLines);
659
- parts.push("```");
660
- parts.push("");
661
- } else {
662
- const spanTree = isValidSpanArray(spansData) ? selectN1QuerySpans(spansData, evidenceData, MAX_SPANS_IN_TREE) : [];
663
- if (spanTree.length > 0) {
664
- parts.push(`### Span Tree (Limited to ${MAX_SPANS_IN_TREE} spans)`);
665
- parts.push("");
666
- parts.push("```");
667
- parts.push(...renderPerformanceSpanTree(spanTree));
668
- parts.push("```");
669
- parts.push("");
670
- } else if (isValidSpanArray(spansData)) {
671
- const offenderSummaries = buildOffenderSummaries(spansData, offenderSpanIds);
672
- if (offenderSummaries.length > 0) {
673
- parts.push("### Offending Spans");
674
- parts.push("");
675
- for (const summary of offenderSummaries) parts.push(`- ${summary}`);
676
- }
677
- }
678
- }
679
- return parts.join("\n");
680
- }
681
- /**
682
- * Formats slow DB query issue evidence data.
683
- *
684
- * Currently only partially implemented - shows parent span information.
685
- * Full implementation would show query duration, explain plan, etc.
686
- *
687
- * This is lower priority as the generic evidenceDisplay fields usually
688
- * provide sufficient information for slow query issues.
689
- */
690
- function formatSlowDbQueryEvidence(evidenceData, spansData) {
691
- const parts = [];
692
- if (evidenceData.parentSpan) {
693
- parts.push("**Parent Operation:**");
694
- parts.push(`${evidenceData.parentSpan}`);
695
- parts.push("");
696
- }
697
- console.warn("[formatSlowDbQueryEvidence] Evidence data rendering not yet fully implemented");
698
- return parts.join("\n");
699
- }
700
- /**
701
- * Formats performance issue details from transaction events based on the issue type.
702
- *
703
- * This is the main dispatcher for performance issue formatting. It:
704
- * 1. Detects the issue type from occurrence data (numeric or string)
705
- * 2. Calls the appropriate type-specific formatter if implemented
706
- * 3. Falls back to generic evidenceDisplay fields for unimplemented types
707
- * 4. Provides span analysis fallback for events without occurrence data
708
- *
709
- * The occurrence data structure comes from Sentry's performance issue detection
710
- * and contains evidence about what triggered the issue.
711
- *
712
- * @param event - The transaction event containing performance issue data
713
- * @param spansData - The spans data from the event entries
714
- * @returns Formatted markdown string with performance issue details
715
- */
716
- function formatPerformanceIssueOutput(event, spansData, options) {
717
- const parts = [];
718
- const occurrence = event.occurrence;
719
- if (!occurrence) return "";
720
- let issueType;
721
- if (typeof occurrence.type === "number") issueType = OCCURRENCE_TYPE_TO_ISSUE_TYPE[occurrence.type];
722
- else issueType = occurrence.issueType || occurrence.type;
723
- const evidenceData = occurrence.evidenceData;
724
- if (evidenceData) switch (issueType) {
725
- case KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_DB_QUERIES:
726
- case KNOWN_PERFORMANCE_ISSUE_TYPES.N_PLUS_ONE_API_CALLS:
727
- case KNOWN_PERFORMANCE_ISSUE_TYPES.M_N_PLUS_ONE_DB_QUERIES: {
728
- const result = formatN1QueryEvidence(evidenceData, spansData, options?.performanceTrace);
729
- if (result) parts.push(result);
730
- break;
731
- }
732
- case KNOWN_PERFORMANCE_ISSUE_TYPES.SLOW_DB_QUERY: {
733
- const result = formatSlowDbQueryEvidence(evidenceData, spansData);
734
- if (result) parts.push(result);
735
- break;
736
- }
737
- default: if (issueType) console.warn(`[formatPerformanceIssueOutput] No custom formatter for issue type: ${issueType}`);
738
- }
739
- if (evidenceData?.transactionName) {
740
- parts.push("**Transaction:**");
741
- parts.push(`${evidenceData.transactionName}`);
742
- parts.push("");
743
- }
744
- if (occurrence.evidenceDisplay?.length > 0) {
745
- for (const display of occurrence.evidenceDisplay) if (display.important) {
746
- parts.push(`**${display.name}:**`);
747
- parts.push(`${display.value}`);
748
- parts.push("");
749
- }
750
- }
751
- return parts.length > 0 ? `${parts.join("\n")}\n` : "";
752
- }
753
- function formatTags(tags) {
754
- if (!tags || tags.length === 0) return "";
755
- return `### Tags\n\n${tags.map((tag) => `**${tag.key}**: ${tag.value}`).join("\n")}\n\n`;
756
- }
757
- function formatContext(context) {
758
- if (!context || Object.keys(context).length === 0) return "";
759
- return `### Extra Data\n\nAdditional data attached to this event.\n\n${Object.entries(context).map(([key, value]) => {
760
- return `**${key}**: ${JSON.stringify(value, void 0, 2)}`;
761
- }).join("\n")}\n\n`;
762
- }
763
- function formatContexts(contexts) {
764
- if (!contexts || Object.keys(contexts).length === 0) return "";
765
- return `### Additional Context\n\nThese are additional context provided by the user when they're instrumenting their application.\n\n${Object.entries(contexts).map(([name, data]) => `**${name}**\n${Object.entries(data).filter(([key, _]) => key !== "type").map(([key, value]) => {
766
- return `${key}: ${JSON.stringify(value, void 0, 2)}`;
767
- }).join("\n")}`).join("\n\n")}\n\n`;
768
- }
769
- /**
770
- * Formats a brief Seer analysis summary for inclusion in issue details.
771
- * Shows current status and high-level insights, prompting to use analyze_issue_with_seer for full details.
772
- *
773
- * @param autofixState - The autofix state containing Seer analysis data
774
- * @param organizationSlug - The organization slug for the issue
775
- * @param issueId - The issue ID (shortId)
776
- * @returns Formatted markdown string with Seer summary, or empty string if no analysis exists
777
- */
778
- function formatSeerSummary(autofixState, organizationSlug, issueId) {
779
- if (!autofixState || !autofixState.autofix) return "";
780
- const { autofix } = autofixState;
781
- const parts = [];
782
- parts.push("## Seer Analysis");
783
- parts.push("");
784
- const statusDisplay = require_seer.getStatusDisplayName(autofix.status);
785
- if (!require_seer.isTerminalStatus(autofix.status)) {
786
- parts.push(`**Status:** ${statusDisplay}`);
787
- parts.push("");
788
- }
789
- if (autofix.steps.length > 0) {
790
- const completedSteps = autofix.steps.filter((step) => step.status === "COMPLETED");
791
- const solutionStep = completedSteps.find((step) => step.type === "solution");
792
- if (solutionStep) {
793
- const solutionDescription = solutionStep.description;
794
- if (solutionDescription && typeof solutionDescription === "string" && solutionDescription.trim()) {
795
- parts.push("**Summary:**");
796
- parts.push(solutionDescription.trim());
797
- } else {
798
- const solutionOutput = require_seer.getOutputForAutofixStep(solutionStep);
799
- const lines = solutionOutput.split("\n");
800
- const firstParagraph = lines.find((line) => line.trim().length > 50 && !line.startsWith("#") && !line.startsWith("*"));
801
- if (firstParagraph) {
802
- parts.push("**Summary:**");
803
- parts.push(firstParagraph.trim());
804
- }
805
- }
806
- } else if (completedSteps.length > 0) {
807
- const rootCauseStep = completedSteps.find((step) => step.type === "root_cause_analysis");
808
- if (rootCauseStep) {
809
- const typedStep = rootCauseStep;
810
- if (typedStep.causes && typedStep.causes.length > 0 && typedStep.causes[0].description) {
811
- parts.push("**Root Cause Identified:**");
812
- parts.push(typedStep.causes[0].description.trim());
813
- }
814
- } else parts.push(`**Progress:** ${completedSteps.length} of ${autofix.steps.length} steps completed`);
815
- }
816
- } else if (require_seer.isTerminalStatus(autofix.status)) {
817
- if (autofix.status === "FAILED" || autofix.status === "ERROR") parts.push("**Status:** Analysis failed.");
818
- else if (autofix.status === "CANCELLED") parts.push("**Status:** Analysis was cancelled.");
819
- else if (autofix.status === "NEED_MORE_INFORMATION" || autofix.status === "WAITING_FOR_USER_RESPONSE") parts.push("**Status:** Analysis paused - additional information needed.");
820
- } else parts.push("Analysis has started but no results yet.");
821
- if (autofix.steps.length > 0 && require_seer.isTerminalStatus(autofix.status)) {
822
- if (autofix.status === "FAILED" || autofix.status === "ERROR") {
823
- parts.push("");
824
- parts.push("**Status:** Analysis failed.");
825
- } else if (autofix.status === "CANCELLED") {
826
- parts.push("");
827
- parts.push("**Status:** Analysis was cancelled.");
828
- } else if (autofix.status === "NEED_MORE_INFORMATION" || autofix.status === "WAITING_FOR_USER_RESPONSE") {
829
- parts.push("");
830
- parts.push("**Status:** Analysis paused - additional information needed.");
831
- }
832
- }
833
- parts.push("");
834
- parts.push(`**Note:** For detailed root cause analysis and solutions, call \`analyze_issue_with_seer(organizationSlug='${organizationSlug}', issueId='${issueId}')\``);
835
- return `${parts.join("\n")}\n\n`;
836
- }
837
- /**
838
- * Formats a Sentry issue with its latest event into comprehensive markdown output.
839
- * Includes issue metadata, event details, and usage instructions.
840
- *
841
- * @param params - Object containing organization slug, issue, event, and API service
842
- * @returns Formatted markdown string with complete issue information
843
- */
844
- function formatIssueOutput({ organizationSlug, issue, event, apiService, autofixState, performanceTrace }) {
845
- let output = `# Issue ${issue.shortId} in **${organizationSlug}**\n\n`;
846
- const isPerformanceIssue = issue.issueType?.startsWith("performance_") || issue.issueCategory === "performance";
847
- if (isPerformanceIssue && issue.metadata) {
848
- const issueTitle = issue.metadata.title || issue.title;
849
- output += `**Description**: ${issueTitle}\n`;
850
- if (issue.metadata.location) output += `**Location**: ${issue.metadata.location}\n`;
851
- if (issue.metadata.value) output += `**Query Pattern**: \`${issue.metadata.value}\`\n`;
852
- } else {
853
- output += `**Description**: ${issue.title}\n`;
854
- output += `**Culprit**: ${issue.culprit}\n`;
855
- }
856
- output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\n`;
857
- output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\n`;
858
- output += `**Occurrences**: ${issue.count}\n`;
859
- output += `**Users Impacted**: ${issue.userCount}\n`;
860
- output += `**Status**: ${issue.status}\n`;
861
- output += `**Platform**: ${issue.platform}\n`;
862
- output += `**Project**: ${issue.project.name}\n`;
863
- output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\n`;
864
- output += "\n";
865
- output += "## Event Details\n\n";
866
- output += `**Event ID**: ${event.id}\n`;
867
- if (event.type === "error" || event.type === "default") output += `**Occurred At**: ${new Date(event.dateCreated).toISOString()}\n`;
868
- if (event.message) output += `**Message**:\n${event.message}\n`;
869
- output += "\n";
870
- output += formatEventOutput(event, { performanceTrace });
871
- if (autofixState) output += formatSeerSummary(autofixState, organizationSlug, issue.shortId);
872
- output += "# Using this information\n\n";
873
- output += `- You can reference the IssueID in commit messages (e.g. \`Fixes ${issue.shortId}\`) to automatically close the issue when the commit is merged.\n`;
874
- output += "- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\n";
875
- return output;
876
- }
877
-
878
- //#endregion
879
- Object.defineProperty(exports, 'formatEventOutput', {
880
- enumerable: true,
881
- get: function () {
882
- return formatEventOutput;
883
- }
884
- });
885
- Object.defineProperty(exports, 'formatFrameHeader', {
886
- enumerable: true,
887
- get: function () {
888
- return formatFrameHeader;
889
- }
890
- });
891
- Object.defineProperty(exports, 'formatIssueOutput', {
892
- enumerable: true,
893
- get: function () {
894
- return formatIssueOutput;
895
- }
896
- });
897
- //# sourceMappingURL=formatting-5u-ZFz8H.cjs.map