@sentry/mcp-server 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/dist/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-B8ZWokLV.cjs} +57 -24
  2. package/dist/analyze-issue-with-seer-B8ZWokLV.cjs.map +1 -0
  3. package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-szIqv1_I.js} +57 -24
  4. package/dist/analyze-issue-with-seer-szIqv1_I.js.map +1 -0
  5. package/dist/api-client/client.cjs +2 -1
  6. package/dist/api-client/client.d.cts +3 -3
  7. package/dist/api-client/client.d.ts +3 -3
  8. package/dist/api-client/client.js +2 -1
  9. package/dist/api-client/index.cjs +2 -1
  10. package/dist/api-client/index.d.cts +3 -3
  11. package/dist/api-client/index.d.ts +3 -3
  12. package/dist/api-client/index.js +2 -1
  13. package/dist/api-client/schema.d.cts +1 -1
  14. package/dist/api-client/schema.d.ts +1 -1
  15. package/dist/api-client/types.d.cts +2 -2
  16. package/dist/api-client/types.d.ts +2 -2
  17. package/dist/api-utils-B-9vnzoA.cjs +86 -0
  18. package/dist/api-utils-B-9vnzoA.cjs.map +1 -0
  19. package/dist/api-utils-CHRiLf2Y.js +69 -0
  20. package/dist/api-utils-CHRiLf2Y.js.map +1 -0
  21. package/dist/{client-Dkw5iYu3.cjs → client-C_lwH0jz.cjs} +102 -51
  22. package/dist/client-C_lwH0jz.cjs.map +1 -0
  23. package/dist/{client-CILwfx6G.d.cts → client-D8vrUp2k.d.cts} +39 -7
  24. package/dist/client-D8vrUp2k.d.cts.map +1 -0
  25. package/dist/{client-BCN17Wbp.d.ts → client-h32L1Hx5.d.ts} +39 -7
  26. package/dist/client-h32L1Hx5.d.ts.map +1 -0
  27. package/dist/{client-DOYWNvVM.js → client-pyNUFaLN.js} +102 -51
  28. package/dist/client-pyNUFaLN.js.map +1 -0
  29. package/dist/{create-dsn-CDcL2DLD.js → create-dsn-CEEytIa4.js} +2 -2
  30. package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-CEEytIa4.js.map} +1 -1
  31. package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-CI7MSiQu.cjs} +2 -2
  32. package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-CI7MSiQu.cjs.map} +1 -1
  33. package/dist/{create-project-DY5mFznV.js → create-project-CoV1e-vp.js} +3 -3
  34. package/dist/{create-project-DY5mFznV.js.map → create-project-CoV1e-vp.js.map} +1 -1
  35. package/dist/{create-project-Bg5uDkc4.cjs → create-project-DnLKRG1p.cjs} +3 -3
  36. package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-DnLKRG1p.cjs.map} +1 -1
  37. package/dist/{create-team-5purh64V.cjs → create-team-DKpKxVIY.cjs} +2 -2
  38. package/dist/{create-team-5purh64V.cjs.map → create-team-DKpKxVIY.cjs.map} +1 -1
  39. package/dist/{create-team-C2R7EUC3.js → create-team-HWN88CJQ.js} +2 -2
  40. package/dist/{create-team-C2R7EUC3.js.map → create-team-HWN88CJQ.js.map} +1 -1
  41. package/dist/errors-BtJEw2Z-.cjs +38 -0
  42. package/dist/errors-BtJEw2Z-.cjs.map +1 -0
  43. package/dist/errors-D_R568zP.js +26 -0
  44. package/dist/errors-D_R568zP.js.map +1 -0
  45. package/dist/errors.cjs +2 -1
  46. package/dist/errors.d.cts +10 -2
  47. package/dist/errors.d.cts.map +1 -1
  48. package/dist/errors.d.ts +10 -2
  49. package/dist/errors.d.ts.map +1 -1
  50. package/dist/errors.js +2 -2
  51. package/dist/fetch-utils-B0CB5xLM.d.ts +33 -0
  52. package/dist/fetch-utils-B0CB5xLM.d.ts.map +1 -0
  53. package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
  54. package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
  55. package/dist/fetch-utils-SuGtrQRz.cjs +64 -0
  56. package/dist/fetch-utils-SuGtrQRz.cjs.map +1 -0
  57. package/dist/fetch-utils-gHZdOZV2.js +52 -0
  58. package/dist/fetch-utils-gHZdOZV2.js.map +1 -0
  59. package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BB9dQP0b.js} +2 -2
  60. package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BB9dQP0b.js.map} +1 -1
  61. package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-vriZSwr7.cjs} +2 -2
  62. package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-vriZSwr7.cjs.map} +1 -1
  63. package/dist/{find-errors-Drzv7hzM.cjs → find-errors-BQFHuBHi.cjs} +6 -3
  64. package/dist/find-errors-BQFHuBHi.cjs.map +1 -0
  65. package/dist/{find-errors-CuRm4PzL.js → find-errors-CSPsT-Jp.js} +6 -3
  66. package/dist/find-errors-CSPsT-Jp.js.map +1 -0
  67. package/dist/{find-issues-C3uk59rn.cjs → find-issues-BG80wLZw.cjs} +7 -4
  68. package/dist/find-issues-BG80wLZw.cjs.map +1 -0
  69. package/dist/{find-issues-CAtNGBly.js → find-issues-DoUD8vP0.js} +7 -4
  70. package/dist/find-issues-DoUD8vP0.js.map +1 -0
  71. package/dist/{find-organizations-ojXwWWzk.js → find-organizations-BILg1hUb.js} +3 -3
  72. package/dist/find-organizations-BILg1hUb.js.map +1 -0
  73. package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-Cx5vCj4j.cjs} +3 -3
  74. package/dist/find-organizations-Cx5vCj4j.cjs.map +1 -0
  75. package/dist/{find-projects-BZWhlYJh.cjs → find-projects-CN99WBex.cjs} +3 -3
  76. package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-CN99WBex.cjs.map} +1 -1
  77. package/dist/{find-projects-fcLG4KpT.js → find-projects-CgCj2_eq.js} +3 -3
  78. package/dist/{find-projects-fcLG4KpT.js.map → find-projects-CgCj2_eq.js.map} +1 -1
  79. package/dist/{find-releases-BUozr0Z-.js → find-releases-BsQF3wc5.js} +2 -2
  80. package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BsQF3wc5.js.map} +1 -1
  81. package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-Cm11xU5S.cjs} +2 -2
  82. package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-Cm11xU5S.cjs.map} +1 -1
  83. package/dist/{find-tags-d-wF1Se8.js → find-tags-BRaa2i-r.js} +2 -2
  84. package/dist/{find-tags-d-wF1Se8.js.map → find-tags-BRaa2i-r.js.map} +1 -1
  85. package/dist/{find-tags-Byk4d3oZ.cjs → find-tags-BjibTJBm.cjs} +2 -2
  86. package/dist/{find-tags-Byk4d3oZ.cjs.map → find-tags-BjibTJBm.cjs.map} +1 -1
  87. package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-CS443jRa.cjs} +3 -3
  88. package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-CS443jRa.cjs.map} +1 -1
  89. package/dist/{find-teams-BZ118EIK.js → find-teams-XgUg8Nj5.js} +3 -3
  90. package/dist/{find-teams-BZ118EIK.js.map → find-teams-XgUg8Nj5.js.map} +1 -1
  91. package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-B0s_rr0H.cjs} +2 -2
  92. package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-B0s_rr0H.cjs.map} +1 -1
  93. package/dist/{find-transactions-DZCj81jP.js → find-transactions-Cob_B_3u.js} +2 -2
  94. package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-Cob_B_3u.js.map} +1 -1
  95. package/dist/{formatting-BlMiQa9i.cjs → formatting-AXU4XsjJ.cjs} +33 -2
  96. package/dist/formatting-AXU4XsjJ.cjs.map +1 -0
  97. package/dist/{formatting-CHh9Q_OW.d.cts → formatting-DnSI0DHf.d.ts} +7 -5
  98. package/dist/formatting-DnSI0DHf.d.ts.map +1 -0
  99. package/dist/{formatting-pUm38KOj.js → formatting-WGc5qrhv.js} +34 -2
  100. package/dist/formatting-WGc5qrhv.js.map +1 -0
  101. package/dist/{formatting-kdIeURER.d.ts → formatting-aGQ7M_2w.d.cts} +7 -5
  102. package/dist/formatting-aGQ7M_2w.d.cts.map +1 -0
  103. package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
  104. package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
  105. package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
  106. package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
  107. package/dist/{get-doc-DaTCenOE.cjs → get-doc-ByXR3EWc.cjs} +4 -4
  108. package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-ByXR3EWc.cjs.map} +1 -1
  109. package/dist/{get-doc-YTiQznr1.js → get-doc-C1IEG2pH.js} +4 -4
  110. package/dist/{get-doc-YTiQznr1.js.map → get-doc-C1IEG2pH.js.map} +1 -1
  111. package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-CuGUfVAD.cjs} +2 -2
  112. package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-CuGUfVAD.cjs.map} +1 -1
  113. package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-N11gSV23.js} +2 -2
  114. package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-N11gSV23.js.map} +1 -1
  115. package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-BrEGybe0.js} +30 -14
  116. package/dist/get-issue-details-BrEGybe0.js.map +1 -0
  117. package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-EklkHsWi.cjs} +30 -14
  118. package/dist/get-issue-details-EklkHsWi.cjs.map +1 -0
  119. package/dist/index.cjs +37 -37
  120. package/dist/index.js +37 -37
  121. package/dist/internal/fetch-utils.cjs +3 -2
  122. package/dist/internal/fetch-utils.d.cts +2 -2
  123. package/dist/internal/fetch-utils.d.ts +2 -2
  124. package/dist/internal/fetch-utils.js +2 -2
  125. package/dist/internal/formatting.cjs +2 -1
  126. package/dist/internal/formatting.d.cts +4 -4
  127. package/dist/internal/formatting.d.ts +4 -4
  128. package/dist/internal/formatting.js +2 -1
  129. package/dist/internal/issue-helpers.cjs +2 -1
  130. package/dist/internal/issue-helpers.js +2 -1
  131. package/dist/internal/test-fixtures.d.cts +38 -38
  132. package/dist/internal/test-fixtures.d.cts.map +1 -1
  133. package/dist/internal/test-fixtures.d.ts +170 -170
  134. package/dist/internal/test-fixtures.d.ts.map +1 -1
  135. package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -1
  136. package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
  137. package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-D2p1Gkgm.js} +15 -19
  138. package/dist/issue-helpers-D2p1Gkgm.js.map +1 -0
  139. package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-DvsTfq9u.cjs} +14 -19
  140. package/dist/issue-helpers-DvsTfq9u.cjs.map +1 -0
  141. package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
  142. package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
  143. package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
  144. package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
  145. package/dist/logging.cjs +1 -1
  146. package/dist/logging.js +1 -1
  147. package/dist/{prompts-C8Y9w5c4.js → prompts-Cuwmybyc.js} +2 -2
  148. package/dist/{prompts-C8Y9w5c4.js.map → prompts-Cuwmybyc.js.map} +1 -1
  149. package/dist/{prompts-Df3i1XSB.cjs → prompts-uWAbMvLe.cjs} +2 -2
  150. package/dist/{prompts-Df3i1XSB.cjs.map → prompts-uWAbMvLe.cjs.map} +1 -1
  151. package/dist/prompts.cjs +2 -2
  152. package/dist/prompts.js +2 -2
  153. package/dist/{resources-BM_YQGcb.cjs → resources-BlgeiG6C.cjs} +2 -2
  154. package/dist/{resources-BM_YQGcb.cjs.map → resources-BlgeiG6C.cjs.map} +1 -1
  155. package/dist/{resources-BHF8a1ZB.js → resources-CwWOjB8_.js} +2 -2
  156. package/dist/{resources-BHF8a1ZB.js.map → resources-CwWOjB8_.js.map} +1 -1
  157. package/dist/resources.cjs +2 -2
  158. package/dist/resources.js +2 -2
  159. package/dist/{schema--5m4KI84.d.ts → schema-BW_fxx99.d.cts} +559 -559
  160. package/dist/{schema-ya35hkEL.d.cts.map → schema-BW_fxx99.d.cts.map} +1 -1
  161. package/dist/{schema-ya35hkEL.d.cts → schema-DkWOa2-c.d.ts} +428 -428
  162. package/dist/{schema--5m4KI84.d.ts.map → schema-DkWOa2-c.d.ts.map} +1 -1
  163. package/dist/{search-docs-BLbB_GV2.js → search-docs-BKUeMSyn.js} +3 -3
  164. package/dist/{search-docs-BLbB_GV2.js.map → search-docs-BKUeMSyn.js.map} +1 -1
  165. package/dist/{search-docs-D5Foht_0.cjs → search-docs-Cr-gyE5m.cjs} +3 -3
  166. package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-Cr-gyE5m.cjs.map} +1 -1
  167. package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-BdE7DddW.js} +5 -3
  168. package/dist/seer-utils-BdE7DddW.js.map +1 -0
  169. package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-BvdVTH85.cjs} +16 -2
  170. package/dist/seer-utils-BvdVTH85.cjs.map +1 -0
  171. package/dist/{server-BpEIZVaZ.cjs → server-9IEGGN8V.cjs} +41 -25
  172. package/dist/{server-DOy-M9Ko.js.map → server-9IEGGN8V.cjs.map} +1 -1
  173. package/dist/{server-DOy-M9Ko.js → server-BhNrW6bw.js} +41 -25
  174. package/dist/server-BhNrW6bw.js.map +1 -0
  175. package/dist/server.cjs +34 -34
  176. package/dist/server.d.cts.map +1 -1
  177. package/dist/server.d.ts.map +1 -1
  178. package/dist/server.js +34 -34
  179. package/dist/{stdio-B2NDq7Ax.js → stdio-CQmibRBR.js} +3 -3
  180. package/dist/{stdio-B2NDq7Ax.js.map → stdio-CQmibRBR.js.map} +1 -1
  181. package/dist/{stdio-DMEgJ_fG.cjs → stdio-mw-fEjO4.cjs} +3 -3
  182. package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-mw-fEjO4.cjs.map} +1 -1
  183. package/dist/test-setup.cjs +1 -16
  184. package/dist/test-setup.cjs.map +1 -1
  185. package/dist/test-setup.js +1 -16
  186. package/dist/test-setup.js.map +1 -1
  187. package/dist/toolDefinitions.js +2 -2
  188. package/dist/tools/analyze-issue-with-seer.cjs +9 -8
  189. package/dist/tools/analyze-issue-with-seer.js +9 -8
  190. package/dist/tools/create-dsn.cjs +4 -4
  191. package/dist/tools/create-dsn.js +4 -4
  192. package/dist/tools/create-project.cjs +5 -5
  193. package/dist/tools/create-project.js +5 -5
  194. package/dist/tools/create-team.cjs +4 -4
  195. package/dist/tools/create-team.js +4 -4
  196. package/dist/tools/find-dsns.cjs +4 -4
  197. package/dist/tools/find-dsns.js +4 -4
  198. package/dist/tools/find-errors.cjs +4 -4
  199. package/dist/tools/find-errors.js +4 -4
  200. package/dist/tools/find-issues.cjs +4 -4
  201. package/dist/tools/find-issues.js +4 -4
  202. package/dist/tools/find-organizations.cjs +4 -4
  203. package/dist/tools/find-organizations.js +4 -4
  204. package/dist/tools/find-projects.cjs +4 -4
  205. package/dist/tools/find-projects.js +4 -4
  206. package/dist/tools/find-releases.cjs +4 -4
  207. package/dist/tools/find-releases.js +4 -4
  208. package/dist/tools/find-tags.cjs +4 -4
  209. package/dist/tools/find-tags.js +4 -4
  210. package/dist/tools/find-teams.cjs +4 -4
  211. package/dist/tools/find-teams.js +4 -4
  212. package/dist/tools/find-transactions.cjs +4 -4
  213. package/dist/tools/find-transactions.js +4 -4
  214. package/dist/tools/get-doc.cjs +4 -4
  215. package/dist/tools/get-doc.js +4 -4
  216. package/dist/tools/get-event-attachment.cjs +4 -4
  217. package/dist/tools/get-event-attachment.js +4 -4
  218. package/dist/tools/get-issue-details.cjs +8 -7
  219. package/dist/tools/get-issue-details.js +8 -7
  220. package/dist/tools/index.cjs +31 -31
  221. package/dist/tools/index.d.cts +76 -76
  222. package/dist/tools/index.d.ts +76 -76
  223. package/dist/tools/index.js +31 -31
  224. package/dist/tools/search-docs.cjs +4 -3
  225. package/dist/tools/search-docs.js +4 -3
  226. package/dist/tools/update-issue.cjs +9 -8
  227. package/dist/tools/update-issue.js +9 -8
  228. package/dist/tools/update-project.cjs +5 -5
  229. package/dist/tools/update-project.js +5 -5
  230. package/dist/tools/utils/api-utils.cjs +6 -4
  231. package/dist/tools/utils/api-utils.d.cts +22 -5
  232. package/dist/tools/utils/api-utils.d.cts.map +1 -1
  233. package/dist/tools/utils/api-utils.d.ts +22 -5
  234. package/dist/tools/utils/api-utils.d.ts.map +1 -1
  235. package/dist/tools/utils/api-utils.js +4 -4
  236. package/dist/tools/utils/fetch-utils.cjs +3 -2
  237. package/dist/tools/utils/fetch-utils.d.cts +2 -2
  238. package/dist/tools/utils/fetch-utils.d.ts +2 -2
  239. package/dist/tools/utils/fetch-utils.js +2 -2
  240. package/dist/tools/utils/formatting-utils.cjs +1 -1
  241. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  242. package/dist/tools/utils/formatting-utils.d.ts +3 -3
  243. package/dist/tools/utils/formatting-utils.js +1 -1
  244. package/dist/tools/utils/issue-utils.cjs +5 -3
  245. package/dist/tools/utils/issue-utils.d.cts +4 -4
  246. package/dist/tools/utils/issue-utils.d.ts +4 -4
  247. package/dist/tools/utils/issue-utils.js +5 -3
  248. package/dist/tools/utils/seer-utils.cjs +3 -1
  249. package/dist/tools/utils/seer-utils.d.cts +6 -4
  250. package/dist/tools/utils/seer-utils.d.cts.map +1 -1
  251. package/dist/tools/utils/seer-utils.d.ts +6 -4
  252. package/dist/tools/utils/seer-utils.d.ts.map +1 -1
  253. package/dist/tools/utils/seer-utils.js +2 -2
  254. package/dist/tools/whoami.cjs +4 -4
  255. package/dist/tools/whoami.js +4 -4
  256. package/dist/tools-AYbI0sEf.js +48 -0
  257. package/dist/{tools-mThAUo_3.js.map → tools-AYbI0sEf.js.map} +1 -1
  258. package/dist/{tools-19Ms1kck.cjs → tools-CwQFlJzn.cjs} +21 -21
  259. package/dist/{tools-19Ms1kck.cjs.map → tools-CwQFlJzn.cjs.map} +1 -1
  260. package/dist/transports/stdio.cjs +36 -36
  261. package/dist/transports/stdio.js +36 -36
  262. package/dist/{types-Bg17IGWJ.d.cts → types-BAbu4Vzx.d.cts} +2 -2
  263. package/dist/{types-Bg17IGWJ.d.cts.map → types-BAbu4Vzx.d.cts.map} +1 -1
  264. package/dist/{types-CtTBwGbw.d.ts → types-CoY5KVni.d.ts} +2 -2
  265. package/dist/{types-CtTBwGbw.d.ts.map → types-CoY5KVni.d.ts.map} +1 -1
  266. package/dist/{update-issue-DmLElHPS.js → update-issue-ClbiTLyL.js} +13 -7
  267. package/dist/update-issue-ClbiTLyL.js.map +1 -0
  268. package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-_4vzwHfZ.cjs} +13 -7
  269. package/dist/update-issue-_4vzwHfZ.cjs.map +1 -0
  270. package/dist/{update-project-CijYCtG1.cjs → update-project-2EEnezbZ.cjs} +4 -4
  271. package/dist/{update-project-CijYCtG1.cjs.map → update-project-2EEnezbZ.cjs.map} +1 -1
  272. package/dist/{update-project-BNPev7W8.js → update-project-CExfO7tG.js} +4 -4
  273. package/dist/{update-project-BNPev7W8.js.map → update-project-CExfO7tG.js.map} +1 -1
  274. package/dist/version-3e1twbPm.js +6 -0
  275. package/dist/{version-C4uvMmw0.js.map → version-3e1twbPm.js.map} +1 -1
  276. package/dist/{version-Ddz4xg_q.cjs → version-Cp9p-38J.cjs} +2 -2
  277. package/dist/{version-Ddz4xg_q.cjs.map → version-Cp9p-38J.cjs.map} +1 -1
  278. package/dist/version.cjs +1 -1
  279. package/dist/version.js +1 -1
  280. package/dist/{whoami-DesNZnaQ.js → whoami-DhoaHHY5.js} +2 -2
  281. package/dist/{whoami-DesNZnaQ.js.map → whoami-DhoaHHY5.js.map} +1 -1
  282. package/dist/{whoami-CEgbTUqt.cjs → whoami-m0N5F6BN.cjs} +2 -2
  283. package/dist/{whoami-CEgbTUqt.cjs.map → whoami-m0N5F6BN.cjs.map} +1 -1
  284. package/package.json +3 -3
  285. package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
  286. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
  287. package/dist/api-utils-C6QJAzFL.js +0 -31
  288. package/dist/api-utils-C6QJAzFL.js.map +0 -1
  289. package/dist/api-utils-d36iteNO.cjs +0 -36
  290. package/dist/api-utils-d36iteNO.cjs.map +0 -1
  291. package/dist/client-BCN17Wbp.d.ts.map +0 -1
  292. package/dist/client-CILwfx6G.d.cts.map +0 -1
  293. package/dist/client-DOYWNvVM.js.map +0 -1
  294. package/dist/client-Dkw5iYu3.cjs.map +0 -1
  295. package/dist/errors-CIoxzIug.js +0 -15
  296. package/dist/errors-CIoxzIug.js.map +0 -1
  297. package/dist/errors-YmiXLOyx.cjs +0 -21
  298. package/dist/errors-YmiXLOyx.cjs.map +0 -1
  299. package/dist/fetch-utils-BMKjO-cc.js +0 -29
  300. package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
  301. package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
  302. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
  303. package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
  304. package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
  305. package/dist/fetch-utils-oab6uNp3.cjs +0 -35
  306. package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
  307. package/dist/find-errors-CuRm4PzL.js.map +0 -1
  308. package/dist/find-errors-Drzv7hzM.cjs.map +0 -1
  309. package/dist/find-issues-C3uk59rn.cjs.map +0 -1
  310. package/dist/find-issues-CAtNGBly.js.map +0 -1
  311. package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
  312. package/dist/find-organizations-ojXwWWzk.js.map +0 -1
  313. package/dist/formatting-BlMiQa9i.cjs.map +0 -1
  314. package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
  315. package/dist/formatting-kdIeURER.d.ts.map +0 -1
  316. package/dist/formatting-pUm38KOj.js.map +0 -1
  317. package/dist/get-issue-details-CxChU4U9.js.map +0 -1
  318. package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
  319. package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
  320. package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
  321. package/dist/seer-utils-Ckr8nYlz.js.map +0 -1
  322. package/dist/seer-utils-CzYEEZb2.cjs.map +0 -1
  323. package/dist/server-BpEIZVaZ.cjs.map +0 -1
  324. package/dist/tools-mThAUo_3.js +0 -48
  325. package/dist/update-issue-B6eZhAPJ.cjs.map +0 -1
  326. package/dist/update-issue-DmLElHPS.js.map +0 -1
  327. package/dist/version-C4uvMmw0.js +0 -6
  328. /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
  329. /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"test-fixtures.d.ts","names":[],"sources":["../../src/internal/test-fixtures.ts"],"sourcesContent":[],"mappings":";;;;;KASK,KAAA,GAAQ,CAAA,CAAE,aAAa;KACvB,cAAA,GAAiB,CAAA,CAAE,aAAa;AAJP,KAKzB,MAAA,GAAS,CAAA,CAAE,KAFN,CAAA,OAEmB,iBAFnB,CAAA;KAGL,UAAA,GAHK;EAAA,MAAkB,EAGA,KAHA,EAAA;CAAc;AAAtB;AAAA;;;AACE,iBAUN,WAAA,CAVQ,SAAA,CAAA,EAUe,OAVf,CAUuB,KAVvB,CAAA,CAAA,EAUqC,KAVrC;AAAK,cAoBhB,cApBgB,EAAA;EACxB,MAAA,EAAA,CAAM,SAAA,CAAA,EAoBW,OApBX,CAoBm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src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAgBA;AAmEA;AAyBA;;;;;AAGkB;;;;;;;iBA/FF,cAAA;;;;;;;;;;;;iBAmEA,YAAA;;;;;;;;iBAyBA,gBAAA"}
1
+ {"version":3,"file":"issue-helpers-BJffpNoO.d.ts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAqEA;AAoCA;;;;;AAGkB;;;;;;;iBA5GF,cAAA;;;;;;;;;;;;iBAqEA,YAAA;;;;;;;;iBAoCA,gBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"issue-helpers-Cz01Ipvl.d.cts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAgBA;AAmEA;AAyBA;;;;;AAGkB;;;;;;;iBA/FF,cAAA;;;;;;;;;;;;iBAmEA,YAAA;;;;;;;;iBAyBA,gBAAA"}
1
+ {"version":3,"file":"issue-helpers-Cz01Ipvl.d.cts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAqEA;AAoCA;;;;;AAGkB;;;;;;;iBA5GF,cAAA;;;;;;;;;;;;iBAqEA,YAAA;;;;;;;;iBAoCA,gBAAA"}
@@ -1,13 +1,7 @@
1
+ import { UserInputError } from "./errors-D_R568zP.js";
2
+
1
3
  //#region src/internal/issue-helpers.ts
2
4
  /**
3
- * Issue parameter parsing and validation utilities.
4
- *
5
- * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
6
- * extracts organization and issue identifiers, and validates issue ID formats.
7
- * Provides robust parsing for LLM-generated parameters that may contain formatting
8
- * inconsistencies.
9
- */
10
- /**
11
5
  * Extracts the Sentry issue ID and organization slug from a full URL
12
6
  *
13
7
  * @param url - A full Sentry issue URL
@@ -15,18 +9,18 @@
15
9
  * @throws Error if the input is invalid
16
10
  */
17
11
  function extractIssueId(url) {
18
- if (!url || typeof url !== "string") throw new Error("Invalid Sentry issue URL. URL must be a non-empty string.");
19
- if (!url.startsWith("http://") && !url.startsWith("https://")) throw new Error("Invalid Sentry issue URL. Must start with http:// or https://");
12
+ if (!url || typeof url !== "string") throw new UserInputError("Invalid Sentry issue URL. URL must be a non-empty string.");
13
+ if (!url.startsWith("http://") && !url.startsWith("https://")) throw new UserInputError("Invalid Sentry issue URL. Must start with http:// or https://");
20
14
  let parsedUrl;
21
15
  try {
22
16
  parsedUrl = new URL(url);
23
17
  } catch (error) {
24
- throw new Error(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
18
+ throw new UserInputError(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
25
19
  }
26
20
  const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
27
- if (pathParts.length < 2 || !pathParts.includes("issues")) throw new Error("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
21
+ if (pathParts.length < 2 || !pathParts.includes("issues")) throw new UserInputError("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
28
22
  const issueId = pathParts[pathParts.indexOf("issues") + 1];
29
- if (!issueId) throw new Error("Unable to determine issue ID from URL.");
23
+ if (!issueId) throw new UserInputError("Unable to determine issue ID from URL.");
30
24
  let organizationSlug;
31
25
  if (pathParts.includes("organizations")) organizationSlug = pathParts[pathParts.indexOf("organizations") + 1];
32
26
  else if (pathParts.length > 1 && pathParts[0] !== "issues") organizationSlug = pathParts[0];
@@ -34,7 +28,7 @@ function extractIssueId(url) {
34
28
  const hostParts = parsedUrl.hostname.split(".");
35
29
  if (hostParts.length > 2 && hostParts[0] !== "www") organizationSlug = hostParts[0];
36
30
  }
37
- if (!organizationSlug) throw new Error("Invalid Sentry issue URL. Could not determine organization.");
31
+ if (!organizationSlug) throw new UserInputError("Invalid Sentry issue URL. Could not determine organization.");
38
32
  return {
39
33
  issueId,
40
34
  organizationSlug
@@ -49,10 +43,12 @@ function extractIssueId(url) {
49
43
  * @returns The parsed issue ID
50
44
  */
51
45
  function parseIssueId(issueId) {
46
+ if (!issueId.trim()) throw new UserInputError("Issue ID cannot be empty");
52
47
  let finalIssueId = issueId;
53
48
  finalIssueId = finalIssueId.replace(/[^\w-]/g, "");
54
- const validFormatRegex = /^(\d+|[A-Za-z][\w-]*-[A-Za-z0-9]+)$/;
55
- if (!validFormatRegex.test(finalIssueId)) throw new Error(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
49
+ if (!finalIssueId) throw new UserInputError("Issue ID cannot be empty after removing special characters");
50
+ const validFormatRegex = /^(\d+|[A-Za-z0-9][\w-]*-[A-Za-z0-9]+)$/;
51
+ if (!validFormatRegex.test(finalIssueId)) throw new UserInputError(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
56
52
  return finalIssueId;
57
53
  }
58
54
  /**
@@ -71,14 +67,14 @@ function parseIssueParams({ issueUrl, issueId, organizationSlug }) {
71
67
  issueId: parseIssueId(resolved.issueId)
72
68
  };
73
69
  }
74
- if (!organizationSlug) throw new Error("Organization slug is required");
70
+ if (!organizationSlug) throw new UserInputError("Organization slug is required");
75
71
  if (issueId) return {
76
72
  organizationSlug,
77
73
  issueId: parseIssueId(issueId)
78
74
  };
79
- throw new Error("Either issueId or issueUrl must be provided");
75
+ throw new UserInputError("Either issueId or issueUrl must be provided");
80
76
  }
81
77
 
82
78
  //#endregion
83
79
  export { extractIssueId, parseIssueId, parseIssueParams };
84
- //# sourceMappingURL=issue-helpers-CqqYnwYE.js.map
80
+ //# sourceMappingURL=issue-helpers-D2p1Gkgm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issue-helpers-D2p1Gkgm.js","names":["url: string","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\nimport { UserInputError } from \"../errors\";\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new UserInputError(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new UserInputError(\n `Invalid Sentry issue URL. Unable to parse URL: ${url}`,\n );\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new UserInputError(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n if (!issueId.trim()) {\n throw new UserInputError(\"Issue ID cannot be empty\");\n }\n\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n if (!finalIssueId) {\n throw new UserInputError(\n \"Issue ID cannot be empty after removing special characters\",\n );\n }\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n // Allow project codes to start with alphanumeric characters (including numbers)\n const validFormatRegex = /^(\\d+|[A-Za-z0-9][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new UserInputError(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new UserInputError(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,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,GAAG;GACH,SAAS,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAI,eAAe;AAG3B,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAI,eAAe;AAC1B"}
@@ -1,14 +1,7 @@
1
+ const require_errors = require('./errors-BtJEw2Z-.cjs');
1
2
 
2
3
  //#region src/internal/issue-helpers.ts
3
4
  /**
4
- * Issue parameter parsing and validation utilities.
5
- *
6
- * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
7
- * extracts organization and issue identifiers, and validates issue ID formats.
8
- * Provides robust parsing for LLM-generated parameters that may contain formatting
9
- * inconsistencies.
10
- */
11
- /**
12
5
  * Extracts the Sentry issue ID and organization slug from a full URL
13
6
  *
14
7
  * @param url - A full Sentry issue URL
@@ -16,18 +9,18 @@
16
9
  * @throws Error if the input is invalid
17
10
  */
18
11
  function extractIssueId(url) {
19
- if (!url || typeof url !== "string") throw new Error("Invalid Sentry issue URL. URL must be a non-empty string.");
20
- if (!url.startsWith("http://") && !url.startsWith("https://")) throw new Error("Invalid Sentry issue URL. Must start with http:// or https://");
12
+ if (!url || typeof url !== "string") throw new require_errors.UserInputError("Invalid Sentry issue URL. URL must be a non-empty string.");
13
+ if (!url.startsWith("http://") && !url.startsWith("https://")) throw new require_errors.UserInputError("Invalid Sentry issue URL. Must start with http:// or https://");
21
14
  let parsedUrl;
22
15
  try {
23
16
  parsedUrl = new URL(url);
24
17
  } catch (error) {
25
- throw new Error(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
18
+ throw new require_errors.UserInputError(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
26
19
  }
27
20
  const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
28
- if (pathParts.length < 2 || !pathParts.includes("issues")) throw new Error("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
21
+ if (pathParts.length < 2 || !pathParts.includes("issues")) throw new require_errors.UserInputError("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
29
22
  const issueId = pathParts[pathParts.indexOf("issues") + 1];
30
- if (!issueId) throw new Error("Unable to determine issue ID from URL.");
23
+ if (!issueId) throw new require_errors.UserInputError("Unable to determine issue ID from URL.");
31
24
  let organizationSlug;
32
25
  if (pathParts.includes("organizations")) organizationSlug = pathParts[pathParts.indexOf("organizations") + 1];
33
26
  else if (pathParts.length > 1 && pathParts[0] !== "issues") organizationSlug = pathParts[0];
@@ -35,7 +28,7 @@ function extractIssueId(url) {
35
28
  const hostParts = parsedUrl.hostname.split(".");
36
29
  if (hostParts.length > 2 && hostParts[0] !== "www") organizationSlug = hostParts[0];
37
30
  }
38
- if (!organizationSlug) throw new Error("Invalid Sentry issue URL. Could not determine organization.");
31
+ if (!organizationSlug) throw new require_errors.UserInputError("Invalid Sentry issue URL. Could not determine organization.");
39
32
  return {
40
33
  issueId,
41
34
  organizationSlug
@@ -50,10 +43,12 @@ function extractIssueId(url) {
50
43
  * @returns The parsed issue ID
51
44
  */
52
45
  function parseIssueId(issueId) {
46
+ if (!issueId.trim()) throw new require_errors.UserInputError("Issue ID cannot be empty");
53
47
  let finalIssueId = issueId;
54
48
  finalIssueId = finalIssueId.replace(/[^\w-]/g, "");
55
- const validFormatRegex = /^(\d+|[A-Za-z][\w-]*-[A-Za-z0-9]+)$/;
56
- if (!validFormatRegex.test(finalIssueId)) throw new Error(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
49
+ if (!finalIssueId) throw new require_errors.UserInputError("Issue ID cannot be empty after removing special characters");
50
+ const validFormatRegex = /^(\d+|[A-Za-z0-9][\w-]*-[A-Za-z0-9]+)$/;
51
+ if (!validFormatRegex.test(finalIssueId)) throw new require_errors.UserInputError(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
57
52
  return finalIssueId;
58
53
  }
59
54
  /**
@@ -72,12 +67,12 @@ function parseIssueParams({ issueUrl, issueId, organizationSlug }) {
72
67
  issueId: parseIssueId(resolved.issueId)
73
68
  };
74
69
  }
75
- if (!organizationSlug) throw new Error("Organization slug is required");
70
+ if (!organizationSlug) throw new require_errors.UserInputError("Organization slug is required");
76
71
  if (issueId) return {
77
72
  organizationSlug,
78
73
  issueId: parseIssueId(issueId)
79
74
  };
80
- throw new Error("Either issueId or issueUrl must be provided");
75
+ throw new require_errors.UserInputError("Either issueId or issueUrl must be provided");
81
76
  }
82
77
 
83
78
  //#endregion
@@ -99,4 +94,4 @@ Object.defineProperty(exports, 'parseIssueParams', {
99
94
  return parseIssueParams;
100
95
  }
101
96
  });
102
- //# sourceMappingURL=issue-helpers-DyAIO0w6.cjs.map
97
+ //# sourceMappingURL=issue-helpers-DvsTfq9u.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issue-helpers-DvsTfq9u.cjs","names":["url: string","UserInputError","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\nimport { UserInputError } from \"../errors\";\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new UserInputError(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new UserInputError(\n `Invalid Sentry issue URL. Unable to parse URL: ${url}`,\n );\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new UserInputError(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n if (!issueId.trim()) {\n throw new UserInputError(\"Issue ID cannot be empty\");\n }\n\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n if (!finalIssueId) {\n throw new UserInputError(\n \"Issue ID cannot be empty after removing special characters\",\n );\n }\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n // Allow project codes to start with alphanumeric characters (including numbers)\n const validFormatRegex = /^(\\d+|[A-Za-z0-9][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new UserInputError(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new UserInputError(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAIC,8BACR;AAIJ,MAAK,IAAI,WAAW,UAAU,KAAK,IAAI,WAAW,WAAW,CAC3D,OAAM,IAAIA,8BACR;CAIJ,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,SAAQ,OAAO;AACd,QAAM,IAAID,+BACP,iDAAiD;CAErD;CAED,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AAC/D,KAAI,UAAU,SAAS,MAAM,UAAU,SAAS,SAAS,CACvD,OAAM,IAAIA,8BACR;CAIJ,MAAM,UAAU,UAAU,UAAU,QAAQ,SAAS,GAAG;AACxD,MAAK,QACH,OAAM,IAAIA,8BAAe;CAI3B,IAAIE;AACJ,KAAI,UAAU,SAAS,gBAAgB,CACrC,oBAAmB,UAAU,UAAU,QAAQ,gBAAgB,GAAG;UACzD,UAAU,SAAS,KAAK,UAAU,OAAO,SAElD,oBAAmB,UAAU;MACxB;EAEL,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI;AAC/C,MAAI,UAAU,SAAS,KAAK,UAAU,OAAO,MAC3C,oBAAmB,UAAU;CAEhC;AAED,MAAK,iBACH,OAAM,IAAIF,8BACR;AAIJ,QAAO;EAAE;EAAS;CAAkB;AACrC;;;;;;;;;AAUD,SAAgB,aAAaG,SAAiB;AAC5C,MAAK,QAAQ,MAAM,CACjB,OAAM,IAAIH,8BAAe;CAG3B,IAAI,eAAe;AAEnB,gBAAe,aAAa,QAAQ,WAAW,GAAG;AAElD,MAAK,aACH,OAAM,IAAIA,8BACR;CAOJ,MAAM,mBAAmB;AAEzB,MAAK,iBAAiB,KAAK,aAAa,CACtC,OAAM,IAAIA,+BACP,4BAA4B,aAAa;AAI9C,QAAO;AACR;;;;;;;;AASD,SAAgB,iBAAiB,EAC/B,UACA,SACA,kBAKD,EAGC;AACA,KAAI,UAAU;EACZ,MAAM,WAAW,eAAe,SAAS;AACzC,OAAK,SACH,OAAM,IAAI,MACR;AAGJ,SAAO;GACL,GAAG;GACH,SAAS,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAIA,8BAAe;AAG3B,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAIA,8BAAe;AAC1B"}
@@ -28,4 +28,4 @@ Object.defineProperty(exports, 'logError', {
28
28
  return logError;
29
29
  }
30
30
  });
31
- //# sourceMappingURL=logging-oIouXrcb.cjs.map
31
+ //# sourceMappingURL=logging-CX2buXiG.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"logging-oIouXrcb.cjs","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,6BAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,kCAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,oCAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
1
+ {"version":3,"file":"logging-CX2buXiG.cjs","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,6BAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,kCAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,oCAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
@@ -22,4 +22,4 @@ function logError(error, contexts, attachments) {
22
22
 
23
23
  //#endregion
24
24
  export { logError };
25
- //# sourceMappingURL=logging-LnQMFw-_.js.map
25
+ //# sourceMappingURL=logging-DzxYBMrn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logging-LnQMFw-_.js","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,UAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,eAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,iBAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
1
+ {"version":3,"file":"logging-DzxYBMrn.js","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,UAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,eAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,iBAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
package/dist/logging.cjs CHANGED
@@ -1,3 +1,3 @@
1
- const require_logging = require('./logging-oIouXrcb.cjs');
1
+ const require_logging = require('./logging-CX2buXiG.cjs');
2
2
 
3
3
  exports.logError = require_logging.logError;
package/dist/logging.js CHANGED
@@ -1,3 +1,3 @@
1
- import { logError } from "./logging-LnQMFw-_.js";
1
+ import { logError } from "./logging-DzxYBMrn.js";
2
2
 
3
3
  export { logError };
@@ -1,4 +1,4 @@
1
- import { UserInputError } from "./errors-CIoxzIug.js";
1
+ import { UserInputError } from "./errors-D_R568zP.js";
2
2
 
3
3
  //#region src/prompts.ts
4
4
  const PROMPT_HANDLERS = {
@@ -31,4 +31,4 @@ const PROMPT_HANDLERS = {
31
31
 
32
32
  //#endregion
33
33
  export { PROMPT_HANDLERS };
34
- //# sourceMappingURL=prompts-C8Y9w5c4.js.map
34
+ //# sourceMappingURL=prompts-Cuwmybyc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-C8Y9w5c4.js","names":["issueMessage: string"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAI,eACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
1
+ {"version":3,"file":"prompts-Cuwmybyc.js","names":["issueMessage: string"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAI,eACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
@@ -1,4 +1,4 @@
1
- const require_errors = require('./errors-YmiXLOyx.cjs');
1
+ const require_errors = require('./errors-BtJEw2Z-.cjs');
2
2
 
3
3
  //#region src/prompts.ts
4
4
  const PROMPT_HANDLERS = {
@@ -36,4 +36,4 @@ Object.defineProperty(exports, 'PROMPT_HANDLERS', {
36
36
  return PROMPT_HANDLERS;
37
37
  }
38
38
  });
39
- //# sourceMappingURL=prompts-Df3i1XSB.cjs.map
39
+ //# sourceMappingURL=prompts-uWAbMvLe.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-Df3i1XSB.cjs","names":["issueMessage: string","UserInputError"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAIC,8BACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
1
+ {"version":3,"file":"prompts-uWAbMvLe.cjs","names":["issueMessage: string","UserInputError"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAIC,8BACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
package/dist/prompts.cjs CHANGED
@@ -1,4 +1,4 @@
1
- require('./errors-YmiXLOyx.cjs');
2
- const require_prompts = require('./prompts-Df3i1XSB.cjs');
1
+ require('./errors-BtJEw2Z-.cjs');
2
+ const require_prompts = require('./prompts-uWAbMvLe.cjs');
3
3
 
4
4
  exports.PROMPT_HANDLERS = require_prompts.PROMPT_HANDLERS;
package/dist/prompts.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./errors-CIoxzIug.js";
2
- import { PROMPT_HANDLERS } from "./prompts-C8Y9w5c4.js";
1
+ import "./errors-D_R568zP.js";
2
+ import { PROMPT_HANDLERS } from "./prompts-Cuwmybyc.js";
3
3
 
4
4
  export { PROMPT_HANDLERS };
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_constants = require('./constants-ClkMK29-.cjs');
3
- const require_errors = require('./errors-YmiXLOyx.cjs');
3
+ const require_errors = require('./errors-BtJEw2Z-.cjs');
4
4
  const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
5
5
 
6
6
  //#region src/resources.ts
@@ -101,4 +101,4 @@ Object.defineProperty(exports, 'isTemplateResource', {
101
101
  return isTemplateResource;
102
102
  }
103
103
  });
104
- //# sourceMappingURL=resources-BM_YQGcb.cjs.map
104
+ //# sourceMappingURL=resources-BlgeiG6C.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-BM_YQGcb.cjs","names":["resource: ResourceConfig","ResourceTemplate","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","UserInputError","RESOURCES: ResourceConfig[]","SENTRY_FRAMEWORKS"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoBC;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eAAe,qBACbC,KACAC,QAC6B;CAC7B,MAAM,MAAM,IAAI;CAChB,MAAM,UAAU,IAAI;CACpB,MAAM,UAAU,MAAM,sBAAsB,QAAQ;AACpD,QAAO,EACL,UAAU,CACR;EACO;EACL,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;;;;;;;;AASD,eAAe,kBACbD,KACAC,QAC6B;CAG7B,MAAM,UAAU,IAAI,SAAS,QAAQ,OAAO,GAAG,CAAC;CAChD,MAAM,WAAW,IAAI,SAAS;CAE9B,MAAM,WAAW,MAAM,MAAM,OAAO,EAClC,SAAS,EACP,cAAc,oBACf,EACF,EAAC;AACF,MAAK,SAAS,IAAI;AAChB,MAAI,SAAS,WAAW,IACtB,OAAM,IAAIC,+BACP,oCAAoC,IAAI,SAAS;AAGtD,QAAM,IAAI,OACP,+BAA+B,SAAS,OAAO,GAAG,SAAS;CAE/D;CAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAErC,QAAO,EACL,UAAU,CACR;EACE,KAAK,IAAI,UAAU;EACnB,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;AAeD,MAAaC,YAA8B;CACzC;EACE,MAAM;EACN,KAAK;EACL,UAAU;EACV,aACE;EACF,SAAS;CACV;CAED;EACE,MAAM;EACN,UAAU,IAAIL,0DACZ,gDACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,wCAAsB,IAAI,CAAC,cAAc;GAClD,MAAM,mCAAmC,SAAS;GAClD,SAAS,SAAS;GAClB,cAAc,+BAA+B;GAC7C,UAAU;EACX,GAAE,CACJ,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;CACD;EACE,MAAM;EACN,UAAU,IAAIA,0DACZ,mEACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,OAAO,QAAQM,oCAAkB,CAAC,QAC3C,CAAC,CAAC,UAAU,WAAW,KACrB,WAAW,IAAI,CAAC,eAAe;GAC7B,MAAM,mCAAmC,SAAS,UAAU,UAAU;GACtE,SAAS,SAAS,GAAG,UAAU;GAC/B,cAAc,+BAA+B,UAAU,MAAM;GAC7D,UAAU;EACX,GAAE,CACN,CACF,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;AACF"}
1
+ {"version":3,"file":"resources-BlgeiG6C.cjs","names":["resource: ResourceConfig","ResourceTemplate","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","UserInputError","RESOURCES: ResourceConfig[]","SENTRY_FRAMEWORKS"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoBC;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eAAe,qBACbC,KACAC,QAC6B;CAC7B,MAAM,MAAM,IAAI;CAChB,MAAM,UAAU,IAAI;CACpB,MAAM,UAAU,MAAM,sBAAsB,QAAQ;AACpD,QAAO,EACL,UAAU,CACR;EACO;EACL,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;;;;;;;;AASD,eAAe,kBACbD,KACAC,QAC6B;CAG7B,MAAM,UAAU,IAAI,SAAS,QAAQ,OAAO,GAAG,CAAC;CAChD,MAAM,WAAW,IAAI,SAAS;CAE9B,MAAM,WAAW,MAAM,MAAM,OAAO,EAClC,SAAS,EACP,cAAc,oBACf,EACF,EAAC;AACF,MAAK,SAAS,IAAI;AAChB,MAAI,SAAS,WAAW,IACtB,OAAM,IAAIC,+BACP,oCAAoC,IAAI,SAAS;AAGtD,QAAM,IAAI,OACP,+BAA+B,SAAS,OAAO,GAAG,SAAS;CAE/D;CAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAErC,QAAO,EACL,UAAU,CACR;EACE,KAAK,IAAI,UAAU;EACnB,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;AAeD,MAAaC,YAA8B;CACzC;EACE,MAAM;EACN,KAAK;EACL,UAAU;EACV,aACE;EACF,SAAS;CACV;CAED;EACE,MAAM;EACN,UAAU,IAAIL,0DACZ,gDACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,wCAAsB,IAAI,CAAC,cAAc;GAClD,MAAM,mCAAmC,SAAS;GAClD,SAAS,SAAS;GAClB,cAAc,+BAA+B;GAC7C,UAAU;EACX,GAAE,CACJ,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;CACD;EACE,MAAM;EACN,UAAU,IAAIA,0DACZ,mEACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,OAAO,QAAQM,oCAAkB,CAAC,QAC3C,CAAC,CAAC,UAAU,WAAW,KACrB,WAAW,IAAI,CAAC,eAAe;GAC7B,MAAM,mCAAmC,SAAS,UAAU,UAAU;GACtE,SAAS,SAAS,GAAG,UAAU;GAC/B,cAAc,+BAA+B,UAAU,MAAM;GAC7D,UAAU;EACX,GAAE,CACN,CACF,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { SENTRY_FRAMEWORKS, SENTRY_PLATFORMS_BASE } from "./constants-S7AU45oQ.js";
2
- import { UserInputError } from "./errors-CIoxzIug.js";
2
+ import { UserInputError } from "./errors-D_R568zP.js";
3
3
  import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
 
5
5
  //#region src/resources.ts
@@ -89,4 +89,4 @@ const RESOURCES = [
89
89
 
90
90
  //#endregion
91
91
  export { RESOURCES, isTemplateResource };
92
- //# sourceMappingURL=resources-BHF8a1ZB.js.map
92
+ //# sourceMappingURL=resources-CwWOjB8_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-BHF8a1ZB.js","names":["resource: ResourceConfig","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","RESOURCES: ResourceConfig[]"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoB;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eAAe,qBACbC,KACAC,QAC6B;CAC7B,MAAM,MAAM,IAAI;CAChB,MAAM,UAAU,IAAI;CACpB,MAAM,UAAU,MAAM,sBAAsB,QAAQ;AACpD,QAAO,EACL,UA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{"version":3,"file":"resources-CwWOjB8_.js","names":["resource: ResourceConfig","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","RESOURCES: ResourceConfig[]"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoB;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eA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AG,UAAU;GAC/B,cAAc,+BAA+B,UAAU,MAAM;GAC7D,UAAU;EACX,GAAE,CACN,CACF,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;AACF"}
@@ -1,6 +1,6 @@
1
1
  require('./constants-ClkMK29-.cjs');
2
- require('./errors-YmiXLOyx.cjs');
3
- const require_resources = require('./resources-BM_YQGcb.cjs');
2
+ require('./errors-BtJEw2Z-.cjs');
3
+ const require_resources = require('./resources-BlgeiG6C.cjs');
4
4
 
5
5
  exports.RESOURCES = require_resources.RESOURCES;
6
6
  exports.isTemplateResource = require_resources.isTemplateResource;
package/dist/resources.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./constants-S7AU45oQ.js";
2
- import "./errors-CIoxzIug.js";
3
- import { RESOURCES, isTemplateResource } from "./resources-BHF8a1ZB.js";
2
+ import "./errors-D_R568zP.js";
3
+ import { RESOURCES, isTemplateResource } from "./resources-CwWOjB8_.js";
4
4
 
5
5
  export { RESOURCES, isTemplateResource };