@sentry/mcp-server 0.19.0 → 0.20.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 (412) hide show
  1. package/dist/{agent-ADO0sPxf.d.cts → agent-4SliQ-uj.d.cts} +2 -2
  2. package/dist/{agent-ADO0sPxf.d.cts.map → agent-4SliQ-uj.d.cts.map} +1 -1
  3. package/dist/{agent-CbJ6lvV3.cjs → agent-BMCJjVaJ.cjs} +2 -2
  4. package/dist/{agent-CbJ6lvV3.cjs.map → agent-BMCJjVaJ.cjs.map} +1 -1
  5. package/dist/agent-BbMg6UEA.d.cts +32 -0
  6. package/dist/agent-BbMg6UEA.d.cts.map +1 -0
  7. package/dist/{agent-DXya3Bcy.js → agent-CRc61dcC.js} +2 -2
  8. package/dist/{agent-DXya3Bcy.js.map → agent-CRc61dcC.js.map} +1 -1
  9. package/dist/{agent-BA98dlM7.d.cts → agent-D-dMHrZ1.d.cts} +2 -2
  10. package/dist/{agent-BA98dlM7.d.cts.map → agent-D-dMHrZ1.d.cts.map} +1 -1
  11. package/dist/agent-DT4ic52w.cjs +35 -0
  12. package/dist/agent-DT4ic52w.cjs.map +1 -0
  13. package/dist/{agent-DhHtOQmP.d.ts → agent-D_WfZ67H.d.ts} +2 -2
  14. package/dist/{agent-DhHtOQmP.d.ts.map → agent-D_WfZ67H.d.ts.map} +1 -1
  15. package/dist/agent-Dnr67ykA.d.ts +32 -0
  16. package/dist/agent-Dnr67ykA.d.ts.map +1 -0
  17. package/dist/{agent-D9DV11tZ.d.ts → agent-DoYdEiCJ.d.ts} +4 -4
  18. package/dist/{agent-D9DV11tZ.d.ts.map → agent-DoYdEiCJ.d.ts.map} +1 -1
  19. package/dist/{agent-D7MuFRwE.cjs → agent-DzfX6_dM.cjs} +2 -2
  20. package/dist/{agent-D7MuFRwE.cjs.map → agent-DzfX6_dM.cjs.map} +1 -1
  21. package/dist/{agent-BL7Xae0U.js → agent-FoPk5psd.js} +2 -2
  22. package/dist/{agent-BL7Xae0U.js.map → agent-FoPk5psd.js.map} +1 -1
  23. package/dist/agent-tLRcGXXr.js +29 -0
  24. package/dist/agent-tLRcGXXr.js.map +1 -0
  25. package/dist/agent-tools-1J_Oub8P.cjs +20 -0
  26. package/dist/agent-tools-1J_Oub8P.cjs.map +1 -0
  27. package/dist/agent-tools-DodmjvZn.js +15 -0
  28. package/dist/agent-tools-DodmjvZn.js.map +1 -0
  29. package/dist/api-client/client.d.cts +3 -3
  30. package/dist/api-client/client.d.ts +3 -3
  31. package/dist/api-client/errors.d.ts +1 -1
  32. package/dist/api-client/index.d.cts +3 -3
  33. package/dist/api-client/index.d.ts +5 -5
  34. package/dist/api-client/schema.d.cts +1 -1
  35. package/dist/api-client/schema.d.ts +1 -1
  36. package/dist/api-client/types.d.cts +2 -2
  37. package/dist/api-client/types.d.ts +2 -2
  38. package/dist/{callEmbeddedAgent-B_BMEB_u.js → callEmbeddedAgent-BSnzLPfW.js} +4 -3
  39. package/dist/callEmbeddedAgent-BSnzLPfW.js.map +1 -0
  40. package/dist/callEmbeddedAgent-D83njSgs.d.cts +34 -0
  41. package/dist/callEmbeddedAgent-D83njSgs.d.cts.map +1 -0
  42. package/dist/{callEmbeddedAgent-BaGxBAdM.cjs → callEmbeddedAgent-KKTSTD7W.cjs} +4 -3
  43. package/dist/callEmbeddedAgent-KKTSTD7W.cjs.map +1 -0
  44. package/dist/callEmbeddedAgent-RskCqVav.d.ts +34 -0
  45. package/dist/callEmbeddedAgent-RskCqVav.d.ts.map +1 -0
  46. package/dist/cli/parse.cjs +1 -1
  47. package/dist/cli/parse.d.cts +1 -1
  48. package/dist/cli/parse.d.cts.map +1 -1
  49. package/dist/cli/parse.d.ts +2 -2
  50. package/dist/cli/parse.d.ts.map +1 -1
  51. package/dist/cli/parse.js +1 -1
  52. package/dist/cli/resolve.cjs +2 -2
  53. package/dist/cli/resolve.d.cts +1 -1
  54. package/dist/cli/resolve.d.ts +2 -2
  55. package/dist/cli/resolve.js +2 -2
  56. package/dist/cli/types.d.cts +1 -1
  57. package/dist/cli/types.d.ts +2 -2
  58. package/dist/cli/usage.cjs +1 -1
  59. package/dist/cli/usage.d.ts +1 -1
  60. package/dist/cli/usage.js +1 -1
  61. package/dist/{client-C_fNdaX8.d.cts → client-DeGFkGAD.d.cts} +2 -2
  62. package/dist/{client-C_fNdaX8.d.cts.map → client-DeGFkGAD.d.cts.map} +1 -1
  63. package/dist/{client-VVhTv_ej.d.ts → client-njqQAP-R.d.ts} +2 -2
  64. package/dist/{client-VVhTv_ej.d.ts.map → client-njqQAP-R.d.ts.map} +1 -1
  65. package/dist/config-CTRUv0J3.js +25 -0
  66. package/dist/config-CTRUv0J3.js.map +1 -0
  67. package/dist/config-ClFI6orZ.cjs +37 -0
  68. package/dist/config-ClFI6orZ.cjs.map +1 -0
  69. package/dist/{constraint-helpers-Bey-Pii6.js → constraint-helpers-0jgp7p3K.js} +1 -1
  70. package/dist/{constraint-helpers-Bey-Pii6.js.map → constraint-helpers-0jgp7p3K.js.map} +1 -1
  71. package/dist/{constraint-helpers-BqcuWXad.cjs → constraint-helpers-BJPdGLZ3.cjs} +1 -1
  72. package/dist/{constraint-helpers-BqcuWXad.cjs.map → constraint-helpers-BJPdGLZ3.cjs.map} +1 -1
  73. package/dist/{error-handling-R4SJQ7n0.js → error-handling-D_4c-JgK.js} +1 -1
  74. package/dist/{error-handling-R4SJQ7n0.js.map → error-handling-D_4c-JgK.js.map} +1 -1
  75. package/dist/{error-handling-CxV2m_Dr.cjs → error-handling-ZVmZRXZb.cjs} +1 -1
  76. package/dist/{error-handling-CxV2m_Dr.cjs.map → error-handling-ZVmZRXZb.cjs.map} +1 -1
  77. package/dist/{errors-JbBt1G2l.d.ts → errors-CyAWBU2S.d.ts} +1 -1
  78. package/dist/{errors-JbBt1G2l.d.ts.map → errors-CyAWBU2S.d.ts.map} +1 -1
  79. package/dist/{errors-Bvit2_Qs.d.ts → errors-D9WEvbBw.d.ts} +1 -1
  80. package/dist/{errors-Bvit2_Qs.d.ts.map → errors-D9WEvbBw.d.ts.map} +1 -1
  81. package/dist/errors.d.ts +1 -1
  82. package/dist/{formatting-ar_6QZRE.d.ts → formatting-D5u7lYGU.d.ts} +4 -4
  83. package/dist/{formatting-ar_6QZRE.d.ts.map → formatting-D5u7lYGU.d.ts.map} +1 -1
  84. package/dist/{formatting-FJne_W9i.d.cts → formatting-iJThzXT4.d.cts} +4 -4
  85. package/dist/{formatting-FJne_W9i.d.cts.map → formatting-iJThzXT4.d.cts.map} +1 -1
  86. package/dist/{get-issue-details-Bvw1Xi8I.js → get-issue-details-CucQ2nf7.js} +11 -5
  87. package/dist/get-issue-details-CucQ2nf7.js.map +1 -0
  88. package/dist/{get-issue-details-DTQ-jXyu.cjs → get-issue-details-lQmdKAfJ.cjs} +11 -5
  89. package/dist/get-issue-details-lQmdKAfJ.cjs.map +1 -0
  90. package/dist/{handler-uWae09YN.d.ts → handler-ABnXxpHJ.d.ts} +2 -2
  91. package/dist/{handler-uWae09YN.d.ts.map → handler-ABnXxpHJ.d.ts.map} +1 -1
  92. package/dist/{handler-nILS77E9.js → handler-B3-dKrMX.js} +2 -2
  93. package/dist/{handler-nILS77E9.js.map → handler-B3-dKrMX.js.map} +1 -1
  94. package/dist/{handler-BcRR_2MX.d.cts → handler-BT1XWqc_.d.cts} +2 -2
  95. package/dist/{handler-BcRR_2MX.d.cts.map → handler-BT1XWqc_.d.cts.map} +1 -1
  96. package/dist/{handler-LaesAQaD.d.cts → handler-CGUL1Gvj.d.cts} +2 -2
  97. package/dist/{handler-LaesAQaD.d.cts.map → handler-CGUL1Gvj.d.cts.map} +1 -1
  98. package/dist/{handler-CdSvAOl6.d.ts → handler-CT6BNjub.d.ts} +2 -2
  99. package/dist/{handler-CdSvAOl6.d.ts.map → handler-CT6BNjub.d.ts.map} +1 -1
  100. package/dist/handler-D8I4qhcy.d.ts +11 -0
  101. package/dist/handler-D8I4qhcy.d.ts.map +1 -0
  102. package/dist/handler-DxsxiLrw.d.cts +11 -0
  103. package/dist/handler-DxsxiLrw.d.cts.map +1 -0
  104. package/dist/{handler-B7-KeBak.cjs → handler-Fsqncg_W.cjs} +2 -2
  105. package/dist/{handler-B7-KeBak.cjs.map → handler-Fsqncg_W.cjs.map} +1 -1
  106. package/dist/{handler-B08ITQl8.js → handler-JBRPTNfu.js} +2 -2
  107. package/dist/{handler-B08ITQl8.js.map → handler-JBRPTNfu.js.map} +1 -1
  108. package/dist/{handler-DIiYPQGL.cjs → handler-TWOoomKr.cjs} +2 -2
  109. package/dist/{handler-DIiYPQGL.cjs.map → handler-TWOoomKr.cjs.map} +1 -1
  110. package/dist/index.cjs +30 -20
  111. package/dist/index.cjs.map +1 -1
  112. package/dist/index.js +30 -20
  113. package/dist/index.js.map +1 -1
  114. package/dist/internal/agents/callEmbeddedAgent.cjs +2 -2
  115. package/dist/internal/agents/callEmbeddedAgent.d.cts +2 -33
  116. package/dist/internal/agents/callEmbeddedAgent.d.ts +2 -33
  117. package/dist/internal/agents/callEmbeddedAgent.js +2 -2
  118. package/dist/internal/agents/openai-provider.cjs +1 -1
  119. package/dist/internal/agents/openai-provider.d.cts +8 -2
  120. package/dist/internal/agents/openai-provider.d.cts.map +1 -1
  121. package/dist/internal/agents/openai-provider.d.ts +8 -2
  122. package/dist/internal/agents/openai-provider.d.ts.map +1 -1
  123. package/dist/internal/agents/openai-provider.js +1 -1
  124. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  125. package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
  126. package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
  127. package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
  128. package/dist/internal/agents/tools/utils.d.cts +1 -1
  129. package/dist/internal/agents/tools/utils.d.ts +1 -1
  130. package/dist/internal/agents/tools/whoami.d.cts +7 -7
  131. package/dist/internal/agents/tools/whoami.d.ts +9 -9
  132. package/dist/internal/constraint-helpers.cjs +1 -1
  133. package/dist/internal/constraint-helpers.d.cts +1 -1
  134. package/dist/internal/constraint-helpers.d.ts +2 -2
  135. package/dist/internal/constraint-helpers.js +1 -1
  136. package/dist/internal/error-handling.cjs +1 -1
  137. package/dist/internal/error-handling.d.cts +3 -3
  138. package/dist/internal/error-handling.d.ts +6 -6
  139. package/dist/internal/error-handling.js +1 -1
  140. package/dist/internal/formatting.d.cts +4 -4
  141. package/dist/internal/formatting.d.ts +6 -6
  142. package/dist/internal/issue-helpers.d.cts +1 -1
  143. package/dist/internal/issue-helpers.d.ts +1 -1
  144. package/dist/internal/test-fixtures.d.cts +2 -2
  145. package/dist/internal/test-fixtures.d.ts +2 -2
  146. package/dist/internal/tool-helpers/api.d.cts +4 -4
  147. package/dist/internal/tool-helpers/api.d.ts +7 -7
  148. package/dist/internal/tool-helpers/define.d.cts +2 -2
  149. package/dist/internal/tool-helpers/define.d.ts +3 -3
  150. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  151. package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
  152. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  153. package/dist/internal/tool-helpers/formatting.d.ts +5 -5
  154. package/dist/internal/tool-helpers/issue.d.cts +5 -5
  155. package/dist/internal/tool-helpers/issue.d.ts +7 -7
  156. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  157. package/dist/internal/tool-helpers/seer.d.ts +5 -5
  158. package/dist/{issue-helpers-bECziPOG.d.ts → issue-helpers-BUtEHFKi.d.ts} +1 -1
  159. package/dist/{issue-helpers-bECziPOG.d.ts.map → issue-helpers-BUtEHFKi.d.ts.map} +1 -1
  160. package/dist/{issue-helpers-CD46ia7_.d.cts → issue-helpers-Cyxq87SP.d.cts} +1 -1
  161. package/dist/{issue-helpers-CD46ia7_.d.cts.map → issue-helpers-Cyxq87SP.d.cts.map} +1 -1
  162. package/dist/{logging-CDYnh7ho.d.cts → logging-99Uppado.d.cts} +1 -1
  163. package/dist/{logging-CDYnh7ho.d.cts.map → logging-99Uppado.d.cts.map} +1 -1
  164. package/dist/{logging-PY270KtN.d.ts → logging-BWajuCoz.d.ts} +1 -1
  165. package/dist/{logging-PY270KtN.d.ts.map → logging-BWajuCoz.d.ts.map} +1 -1
  166. package/dist/{openai-provider-BELCfis6.js → openai-provider-CqpHDwSr.js} +11 -8
  167. package/dist/openai-provider-CqpHDwSr.js.map +1 -0
  168. package/dist/{openai-provider-CRxXeC9G.cjs → openai-provider-DhSY7kTj.cjs} +11 -8
  169. package/dist/openai-provider-DhSY7kTj.cjs.map +1 -0
  170. package/dist/{parse-shlhKlaL.cjs → parse-BOPxttSm.cjs} +4 -1
  171. package/dist/parse-BOPxttSm.cjs.map +1 -0
  172. package/dist/{parse-8lpnm_2Z.js → parse-Da0oa8W8.js} +4 -1
  173. package/dist/parse-Da0oa8W8.js.map +1 -0
  174. package/dist/{permissions-40d2hxK-.d.ts → permissions-BBgPgD70.d.ts} +1 -1
  175. package/dist/{permissions-40d2hxK-.d.ts.map → permissions-BBgPgD70.d.ts.map} +1 -1
  176. package/dist/{permissions-D5kR-bZw.cjs → permissions-CpuEzSxz.cjs} +1 -1
  177. package/dist/{permissions-D5kR-bZw.cjs.map → permissions-CpuEzSxz.cjs.map} +1 -1
  178. package/dist/{permissions-C_xHmYV4.js → permissions-xBjHy6Qx.js} +1 -1
  179. package/dist/{permissions-C_xHmYV4.js.map → permissions-xBjHy6Qx.js.map} +1 -1
  180. package/dist/permissions.cjs +1 -1
  181. package/dist/permissions.d.ts +1 -1
  182. package/dist/permissions.js +1 -1
  183. package/dist/{resolve-CZduTbDq.js → resolve-C95FW12c.js} +2 -2
  184. package/dist/{resolve-CZduTbDq.js.map → resolve-C95FW12c.js.map} +1 -1
  185. package/dist/{resolve-CBipUzux.cjs → resolve-D6Cfnjdj.cjs} +2 -2
  186. package/dist/{resolve-CBipUzux.cjs.map → resolve-D6Cfnjdj.cjs.map} +1 -1
  187. package/dist/{schema-0uEmsoCr.d.ts → schema-BogGdbdV.d.ts} +9 -9
  188. package/dist/{schema-0uEmsoCr.d.ts.map → schema-BogGdbdV.d.ts.map} +1 -1
  189. package/dist/{schema-xhCkX5uD.d.cts → schema-Y6BzAUmc.d.cts} +289 -289
  190. package/dist/{schema-xhCkX5uD.d.cts.map → schema-Y6BzAUmc.d.cts.map} +1 -1
  191. package/dist/{sentry-DZNWcvcy.d.ts → sentry-Bgt0wrtI.d.ts} +1 -1
  192. package/dist/sentry-Bgt0wrtI.d.ts.map +1 -0
  193. package/dist/{sentry-De4G2HDR.d.cts → sentry-DAPJGZoR.d.cts} +1 -1
  194. package/dist/sentry-DAPJGZoR.d.cts.map +1 -0
  195. package/dist/server-CDG3HfVV.js +264 -0
  196. package/dist/server-CDG3HfVV.js.map +1 -0
  197. package/dist/server-J1RALwYS.cjs +282 -0
  198. package/dist/server-J1RALwYS.cjs.map +1 -0
  199. package/dist/server.cjs +14 -14
  200. package/dist/server.d.cts +10 -8
  201. package/dist/server.d.cts.map +1 -1
  202. package/dist/server.d.ts +11 -9
  203. package/dist/server.d.ts.map +1 -1
  204. package/dist/server.js +14 -14
  205. package/dist/{stdio-Uv0oXx1a.js → stdio-BfZ7eu3Q.js} +14 -16
  206. package/dist/stdio-BfZ7eu3Q.js.map +1 -0
  207. package/dist/{stdio-D_myxOG-.cjs → stdio-CV8Yynj8.cjs} +14 -16
  208. package/dist/stdio-CV8Yynj8.cjs.map +1 -0
  209. package/dist/telem/index.d.cts +2 -2
  210. package/dist/telem/index.d.ts +2 -2
  211. package/dist/telem/logging.d.cts +1 -1
  212. package/dist/telem/logging.d.ts +1 -1
  213. package/dist/telem/sentry.d.cts +1 -1
  214. package/dist/telem/sentry.d.ts +1 -1
  215. package/dist/test-setup.cjs +1 -1
  216. package/dist/test-setup.d.cts +1 -1
  217. package/dist/test-setup.d.ts +2 -2
  218. package/dist/test-setup.js +1 -1
  219. package/dist/test-utils/context.d.cts +1 -1
  220. package/dist/test-utils/context.d.ts +2 -2
  221. package/dist/toolDefinitions.cjs +23 -1
  222. package/dist/toolDefinitions.cjs.map +1 -1
  223. package/dist/toolDefinitions.d.ts +1 -1
  224. package/dist/toolDefinitions.js +23 -1
  225. package/dist/toolDefinitions.js.map +1 -1
  226. package/dist/tools/agent-tools.cjs +65 -0
  227. package/dist/tools/agent-tools.d.cts +25 -0
  228. package/dist/tools/agent-tools.d.cts.map +1 -0
  229. package/dist/tools/agent-tools.d.ts +25 -0
  230. package/dist/tools/agent-tools.d.ts.map +1 -0
  231. package/dist/tools/agent-tools.js +65 -0
  232. package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
  233. package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
  234. package/dist/tools/create-dsn.d.cts +2 -2
  235. package/dist/tools/create-dsn.d.ts +3 -3
  236. package/dist/tools/create-project.d.cts +2 -2
  237. package/dist/tools/create-project.d.ts +3 -3
  238. package/dist/tools/create-team.d.cts +2 -2
  239. package/dist/tools/create-team.d.ts +3 -3
  240. package/dist/tools/find-dsns.d.cts +6 -6
  241. package/dist/tools/find-dsns.d.ts +7 -7
  242. package/dist/tools/find-organizations.d.cts +4 -4
  243. package/dist/tools/find-organizations.d.ts +5 -5
  244. package/dist/tools/find-projects.d.cts +6 -6
  245. package/dist/tools/find-projects.d.ts +7 -7
  246. package/dist/tools/find-releases.d.cts +2 -2
  247. package/dist/tools/find-releases.d.ts +3 -3
  248. package/dist/tools/find-teams.d.cts +6 -6
  249. package/dist/tools/find-teams.d.ts +7 -7
  250. package/dist/tools/get-doc.d.cts +2 -2
  251. package/dist/tools/get-doc.d.ts +3 -3
  252. package/dist/tools/get-event-attachment.d.cts +8 -8
  253. package/dist/tools/get-event-attachment.d.ts +9 -9
  254. package/dist/tools/get-issue-details.cjs +1 -1
  255. package/dist/tools/get-issue-details.d.cts +2 -2
  256. package/dist/tools/get-issue-details.d.ts +3 -3
  257. package/dist/tools/get-issue-details.js +1 -1
  258. package/dist/tools/get-trace-details.d.cts +6 -6
  259. package/dist/tools/get-trace-details.d.ts +7 -7
  260. package/dist/tools/index.cjs +15 -9
  261. package/dist/tools/index.d.cts +80 -76
  262. package/dist/tools/index.d.cts.map +1 -1
  263. package/dist/tools/index.d.ts +81 -77
  264. package/dist/tools/index.d.ts.map +1 -1
  265. package/dist/tools/index.js +14 -8
  266. package/dist/tools/search-docs.d.cts +2 -2
  267. package/dist/tools/search-docs.d.ts +3 -3
  268. package/dist/tools/search-events/agent.cjs +3 -3
  269. package/dist/tools/search-events/agent.d.cts +4 -4
  270. package/dist/tools/search-events/agent.d.ts +6 -6
  271. package/dist/tools/search-events/agent.js +3 -3
  272. package/dist/tools/search-events/formatters.d.cts +5 -5
  273. package/dist/tools/search-events/formatters.d.ts +7 -7
  274. package/dist/tools/search-events/handler.cjs +4 -4
  275. package/dist/tools/search-events/handler.d.cts +3 -3
  276. package/dist/tools/search-events/handler.d.ts +4 -4
  277. package/dist/tools/search-events/handler.js +4 -4
  278. package/dist/tools/search-events/index.cjs +4 -4
  279. package/dist/tools/search-events/index.d.cts +7 -7
  280. package/dist/tools/search-events/index.d.ts +10 -10
  281. package/dist/tools/search-events/index.js +4 -4
  282. package/dist/tools/search-events/utils.d.cts +5 -5
  283. package/dist/tools/search-events/utils.d.ts +7 -7
  284. package/dist/tools/search-issues/agent.cjs +3 -3
  285. package/dist/tools/search-issues/agent.d.cts +4 -4
  286. package/dist/tools/search-issues/agent.d.ts +6 -6
  287. package/dist/tools/search-issues/agent.js +3 -3
  288. package/dist/tools/search-issues/formatters.d.cts +3 -3
  289. package/dist/tools/search-issues/formatters.d.ts +5 -5
  290. package/dist/tools/search-issues/handler.cjs +4 -4
  291. package/dist/tools/search-issues/handler.d.cts +3 -3
  292. package/dist/tools/search-issues/handler.d.ts +4 -4
  293. package/dist/tools/search-issues/handler.js +4 -4
  294. package/dist/tools/search-issues/index.cjs +4 -4
  295. package/dist/tools/search-issues/index.d.cts +7 -7
  296. package/dist/tools/search-issues/index.d.ts +10 -10
  297. package/dist/tools/search-issues/index.js +4 -4
  298. package/dist/tools/types.d.cts +2 -2
  299. package/dist/tools/types.d.ts +3 -3
  300. package/dist/tools/update-issue.d.cts +9 -9
  301. package/dist/tools/update-issue.d.ts +10 -10
  302. package/dist/tools/update-project.d.cts +2 -2
  303. package/dist/tools/update-project.d.ts +3 -3
  304. package/dist/tools/use-sentry/agent.cjs +7 -0
  305. package/dist/tools/use-sentry/agent.d.cts +3 -0
  306. package/dist/tools/use-sentry/agent.d.ts +3 -0
  307. package/dist/tools/use-sentry/agent.js +7 -0
  308. package/dist/tools/use-sentry/config.cjs +4 -0
  309. package/dist/tools/use-sentry/config.d.cts +21 -0
  310. package/dist/tools/use-sentry/config.d.cts.map +1 -0
  311. package/dist/tools/use-sentry/config.d.ts +21 -0
  312. package/dist/tools/use-sentry/config.d.ts.map +1 -0
  313. package/dist/tools/use-sentry/config.js +3 -0
  314. package/dist/tools/use-sentry/handler.cjs +64 -0
  315. package/dist/tools/use-sentry/handler.d.cts +5 -0
  316. package/dist/tools/use-sentry/handler.d.ts +5 -0
  317. package/dist/tools/use-sentry/handler.js +64 -0
  318. package/dist/tools/use-sentry/index.cjs +66 -0
  319. package/dist/tools/use-sentry/index.d.cts +7 -0
  320. package/dist/tools/use-sentry/index.d.ts +7 -0
  321. package/dist/tools/use-sentry/index.js +64 -0
  322. package/dist/tools/use-sentry/tool-wrapper.cjs +62 -0
  323. package/dist/tools/use-sentry/tool-wrapper.cjs.map +1 -0
  324. package/dist/tools/use-sentry/tool-wrapper.d.cts +118 -0
  325. package/dist/tools/use-sentry/tool-wrapper.d.cts.map +1 -0
  326. package/dist/tools/use-sentry/tool-wrapper.d.ts +118 -0
  327. package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -0
  328. package/dist/tools/use-sentry/tool-wrapper.js +61 -0
  329. package/dist/tools/use-sentry/tool-wrapper.js.map +1 -0
  330. package/dist/tools/whoami.d.cts +2 -2
  331. package/dist/tools/whoami.d.ts +3 -3
  332. package/dist/transports/stdio.cjs +2 -3
  333. package/dist/transports/stdio.d.cts +11 -10
  334. package/dist/transports/stdio.d.cts.map +1 -1
  335. package/dist/transports/stdio.d.ts +12 -11
  336. package/dist/transports/stdio.d.ts.map +1 -1
  337. package/dist/transports/stdio.js +2 -3
  338. package/dist/{types-BU11bcu2.d.ts → types-B3T3_E4s.d.ts} +4 -2
  339. package/dist/types-B3T3_E4s.d.ts.map +1 -0
  340. package/dist/{types-DkmHqy15.d.cts → types-BeQSPXek.d.cts} +2 -2
  341. package/dist/{types-DkmHqy15.d.cts.map → types-BeQSPXek.d.cts.map} +1 -1
  342. package/dist/{types-CZUp4Xzk.d.ts → types-Bu5blaB3.d.ts} +3 -3
  343. package/dist/{types-CZUp4Xzk.d.ts.map → types-Bu5blaB3.d.ts.map} +1 -1
  344. package/dist/{types-CtnbvcEw.d.cts → types-CLI02LNZ.d.cts} +2 -2
  345. package/dist/{types-CtnbvcEw.d.cts.map → types-CLI02LNZ.d.cts.map} +1 -1
  346. package/dist/{types-Z4mR2AFK.d.cts → types-DNr8xzOR.d.cts} +1 -1
  347. package/dist/{types-Z4mR2AFK.d.cts.map → types-DNr8xzOR.d.cts.map} +1 -1
  348. package/dist/{types-NVsIso1A.d.ts → types-DjbiyvLT.d.ts} +2 -2
  349. package/dist/{types-NVsIso1A.d.ts.map → types-DjbiyvLT.d.ts.map} +1 -1
  350. package/dist/{types-4O1B8U0e.d.ts → types-DoT0an28.d.ts} +2 -2
  351. package/dist/{types-4O1B8U0e.d.ts.map → types-DoT0an28.d.ts.map} +1 -1
  352. package/dist/{types-B9_8hSal.d.cts → types-jjNLngoj.d.cts} +3 -1
  353. package/dist/types-jjNLngoj.d.cts.map +1 -0
  354. package/dist/types.d.cts +1 -1
  355. package/dist/types.d.ts +2 -2
  356. package/dist/{usage-CP6e39yF.cjs → usage-BV4cegeX.cjs} +2 -1
  357. package/dist/usage-BV4cegeX.cjs.map +1 -0
  358. package/dist/{usage-CihInDyq.js → usage-DLck8shg.js} +2 -1
  359. package/dist/usage-DLck8shg.js.map +1 -0
  360. package/dist/{utils-DKQuo7b2.d.ts → utils-BV58GdRy.d.ts} +4 -4
  361. package/dist/{utils-DKQuo7b2.d.ts.map → utils-BV58GdRy.d.ts.map} +1 -1
  362. package/dist/{utils-DKgPcA6i.d.cts → utils-DlTCMJUW.d.cts} +6 -6
  363. package/dist/{utils-DKgPcA6i.d.cts.map → utils-DlTCMJUW.d.cts.map} +1 -1
  364. package/dist/{utils-DpeFMEgH.d.ts → utils-gp7BwMLy.d.ts} +6 -6
  365. package/dist/{utils-DpeFMEgH.d.ts.map → utils-gp7BwMLy.d.ts.map} +1 -1
  366. package/dist/{utils-HNrRwq-a.d.cts → utils-yxWhi9hG.d.cts} +4 -4
  367. package/dist/{utils-HNrRwq-a.d.cts.map → utils-yxWhi9hG.d.cts.map} +1 -1
  368. package/dist/version-BaA5pxTW.js +6 -0
  369. package/dist/{version-6dHij-Gk.js.map → version-BaA5pxTW.js.map} +1 -1
  370. package/dist/{version-Cq6vA9Kc.cjs → version-CdN5Kpjv.cjs} +2 -2
  371. package/dist/{version-Cq6vA9Kc.cjs.map → version-CdN5Kpjv.cjs.map} +1 -1
  372. package/dist/version.cjs +1 -1
  373. package/dist/version.js +1 -1
  374. package/package.json +10 -8
  375. package/dist/callEmbeddedAgent-B_BMEB_u.js.map +0 -1
  376. package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +0 -1
  377. package/dist/context-storage-B8onP4Pw.cjs +0 -69
  378. package/dist/context-storage-B8onP4Pw.cjs.map +0 -1
  379. package/dist/context-storage-BRwdNVKx.js +0 -51
  380. package/dist/context-storage-BRwdNVKx.js.map +0 -1
  381. package/dist/get-issue-details-Bvw1Xi8I.js.map +0 -1
  382. package/dist/get-issue-details-DTQ-jXyu.cjs.map +0 -1
  383. package/dist/internal/agents/callEmbeddedAgent.d.cts.map +0 -1
  384. package/dist/internal/agents/callEmbeddedAgent.d.ts.map +0 -1
  385. package/dist/internal/context-storage.cjs +0 -5
  386. package/dist/internal/context-storage.d.cts +0 -48
  387. package/dist/internal/context-storage.d.cts.map +0 -1
  388. package/dist/internal/context-storage.d.ts +0 -48
  389. package/dist/internal/context-storage.d.ts.map +0 -1
  390. package/dist/internal/context-storage.js +0 -3
  391. package/dist/openai-provider-BELCfis6.js.map +0 -1
  392. package/dist/openai-provider-CRxXeC9G.cjs.map +0 -1
  393. package/dist/parse-8lpnm_2Z.js.map +0 -1
  394. package/dist/parse-shlhKlaL.cjs.map +0 -1
  395. package/dist/sentry-DZNWcvcy.d.ts.map +0 -1
  396. package/dist/sentry-De4G2HDR.d.cts.map +0 -1
  397. package/dist/server-B0jJJdAd.js +0 -157
  398. package/dist/server-B0jJJdAd.js.map +0 -1
  399. package/dist/server-Bk2YVj60.cjs +0 -163
  400. package/dist/server-Bk2YVj60.cjs.map +0 -1
  401. package/dist/stdio-D_myxOG-.cjs.map +0 -1
  402. package/dist/stdio-Uv0oXx1a.js.map +0 -1
  403. package/dist/tools-DcCN34Xz.cjs +0 -51
  404. package/dist/tools-DcCN34Xz.cjs.map +0 -1
  405. package/dist/tools-Du5wLts3.js +0 -46
  406. package/dist/tools-Du5wLts3.js.map +0 -1
  407. package/dist/types-B9_8hSal.d.cts.map +0 -1
  408. package/dist/types-BU11bcu2.d.ts.map +0 -1
  409. package/dist/usage-CP6e39yF.cjs.map +0 -1
  410. package/dist/usage-CihInDyq.js.map +0 -1
  411. package/dist/version-6dHij-Gk.js +0 -6
  412. /package/dist/{index-DZJ9s9rm.d.ts → index-NfFbnYt3.d.ts} +0 -0
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { Tool } from "ai";
3
+
4
+ //#region src/internal/agents/callEmbeddedAgent.d.ts
5
+ type ToolCall = {
6
+ toolName: string;
7
+ args: unknown;
8
+ };
9
+ interface EmbeddedAgentResult<T> {
10
+ result: T;
11
+ toolCalls: ToolCall[];
12
+ }
13
+ /**
14
+ * Call an embedded agent with tool call capture
15
+ * This is the standard way to call embedded AI agents within MCP tools
16
+ *
17
+ * Error handling:
18
+ * - Errors are re-thrown for the calling agent to handle
19
+ * - Each agent can implement its own error handling strategy
20
+ */
21
+ declare function callEmbeddedAgent<T>({
22
+ system,
23
+ prompt,
24
+ tools,
25
+ schema
26
+ }: {
27
+ system: string;
28
+ prompt: string;
29
+ tools: Record<string, Tool>;
30
+ schema: z.ZodSchema<T>;
31
+ }): Promise<EmbeddedAgentResult<T>>;
32
+ //#endregion
33
+ export { ToolCall, callEmbeddedAgent };
34
+ //# sourceMappingURL=callEmbeddedAgent-D83njSgs.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callEmbeddedAgent-D83njSgs.d.cts","names":[],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":[],"mappings":";;;;KAIY,QAAA;;EAAA,IAAA,EAAA,OAAQ;AAGlB,CAAA;UAEQ,mBAAmB,CAAA,CAAA,CAAA,CAAA;EAAA,MACnB,EAAA,CAAA;EAAC,SACE,EAAA,QAAA,EAAA;AAAQ;AAWrB;;;;;;;;AASsB,iBATA,iBASA,CAAA,CAAA,CAAA,CAAA;EAAA,MAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AACX,CADW,EAAA;EAAC,MAAX,EAAA,MAAA;EAAS,MACW,EAAA,MAAA;EAAC,KAArB,EAFH,MAEG,CAAA,MAAA,EAFY,IAEZ,CAAA;EAAmB,MAA3B,EADM,CAAA,CAAE,SACR,CADkB,CAClB,CAAA;AAAO,CAAA,CAAA,EAAP,OAAO,CAAC,mBAAD,CAAqB,CAArB,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_openai_provider = require('./openai-provider-CRxXeC9G.cjs');
2
+ const require_openai_provider = require('./openai-provider-DhSY7kTj.cjs');
3
3
  const ai = require_chunk.__toESM(require("ai"));
4
4
 
5
5
  //#region src/internal/agents/callEmbeddedAgent.ts
@@ -14,11 +14,12 @@ const ai = require_chunk.__toESM(require("ai"));
14
14
  async function callEmbeddedAgent({ system, prompt, tools, schema }) {
15
15
  const capturedToolCalls = [];
16
16
  const result = await (0, ai.generateText)({
17
- model: require_openai_provider.getOpenAIModel("gpt-4o"),
17
+ model: require_openai_provider.getOpenAIModel(),
18
18
  system,
19
19
  prompt,
20
20
  tools,
21
21
  maxSteps: 5,
22
+ temperature: 1,
22
23
  experimental_output: ai.Output.object({ schema }),
23
24
  onStepFinish: (event) => {
24
25
  if (event.toolCalls && event.toolCalls.length > 0) for (const toolCall of event.toolCalls) capturedToolCalls.push({
@@ -41,4 +42,4 @@ Object.defineProperty(exports, 'callEmbeddedAgent', {
41
42
  return callEmbeddedAgent;
42
43
  }
43
44
  });
44
- //# sourceMappingURL=callEmbeddedAgent-BaGxBAdM.cjs.map
45
+ //# sourceMappingURL=callEmbeddedAgent-KKTSTD7W.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callEmbeddedAgent-KKTSTD7W.cjs","names":["capturedToolCalls: ToolCall[]"],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":["import { generateText, Output, type Tool } from \"ai\";\nimport { getOpenAIModel } from \"./openai-provider\";\nimport type { z } from \"zod\";\n\nexport type ToolCall = {\n toolName: string;\n args: unknown;\n};\n\ninterface EmbeddedAgentResult<T> {\n result: T;\n toolCalls: ToolCall[];\n}\n\n/**\n * Call an embedded agent with tool call capture\n * This is the standard way to call embedded AI agents within MCP tools\n *\n * Error handling:\n * - Errors are re-thrown for the calling agent to handle\n * - Each agent can implement its own error handling strategy\n */\nexport async function callEmbeddedAgent<T>({\n system,\n prompt,\n tools,\n schema,\n}: {\n system: string;\n prompt: string;\n tools: Record<string, Tool>;\n schema: z.ZodSchema<T>;\n}): Promise<EmbeddedAgentResult<T>> {\n const capturedToolCalls: ToolCall[] = [];\n\n const result = await generateText({\n model: getOpenAIModel(), // Uses configured default model (gpt-5)\n system,\n prompt,\n tools,\n maxSteps: 5,\n temperature: 1, // GPT-5 only supports temperature of 1\n experimental_output: Output.object({ schema }),\n onStepFinish: (event) => {\n if (event.toolCalls && event.toolCalls.length > 0) {\n for (const toolCall of event.toolCalls) {\n capturedToolCalls.push({\n toolName: toolCall.toolName,\n args: toolCall.args,\n });\n }\n }\n },\n });\n\n if (!result.experimental_output) {\n throw new Error(\"Failed to generate output\");\n }\n\n return {\n result: result.experimental_output as T,\n toolCalls: capturedToolCalls,\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAsBA,eAAsB,kBAAqB,EACzC,QACA,QACA,OACA,QAMD,EAAmC;CAClC,MAAMA,oBAAgC,CAAE;CAExC,MAAM,SAAS,MAAM,qBAAa;EAChC,OAAO,wCAAgB;EACvB;EACA;EACA;EACA,UAAU;EACV,aAAa;EACb,qBAAqB,UAAO,OAAO,EAAE,OAAQ,EAAC;EAC9C,cAAc,CAAC,UAAU;AACvB,OAAI,MAAM,aAAa,MAAM,UAAU,SAAS,EAC9C,MAAK,MAAM,YAAY,MAAM,UAC3B,mBAAkB,KAAK;IACrB,UAAU,SAAS;IACnB,MAAM,SAAS;GAChB,EAAC;EAGP;CACF,EAAC;AAEF,MAAK,OAAO,oBACV,OAAM,IAAI,MAAM;AAGlB,QAAO;EACL,QAAQ,OAAO;EACf,WAAW;CACZ;AACF"}
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { Tool } from "ai";
3
+
4
+ //#region src/internal/agents/callEmbeddedAgent.d.ts
5
+ type ToolCall = {
6
+ toolName: string;
7
+ args: unknown;
8
+ };
9
+ interface EmbeddedAgentResult<T> {
10
+ result: T;
11
+ toolCalls: ToolCall[];
12
+ }
13
+ /**
14
+ * Call an embedded agent with tool call capture
15
+ * This is the standard way to call embedded AI agents within MCP tools
16
+ *
17
+ * Error handling:
18
+ * - Errors are re-thrown for the calling agent to handle
19
+ * - Each agent can implement its own error handling strategy
20
+ */
21
+ declare function callEmbeddedAgent<T>({
22
+ system,
23
+ prompt,
24
+ tools,
25
+ schema
26
+ }: {
27
+ system: string;
28
+ prompt: string;
29
+ tools: Record<string, Tool>;
30
+ schema: z.ZodSchema<T>;
31
+ }): Promise<EmbeddedAgentResult<T>>;
32
+ //#endregion
33
+ export { ToolCall, callEmbeddedAgent };
34
+ //# sourceMappingURL=callEmbeddedAgent-RskCqVav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callEmbeddedAgent-RskCqVav.d.ts","names":[],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":[],"mappings":";;;;KAIY,QAAA;;EAAA,IAAA,EAAA,OAAQ;AAGlB,CAAA;UAEQ,mBAAmB,CAAA,CAAA,CAAA,CAAA;EAAA,MACnB,EAAA,CAAA;EAAC,SACE,EAAA,QAAA,EAAA;AAAQ;AAWrB;;;;;;;;AASsB,iBATA,iBASA,CAAA,CAAA,CAAA,CAAA;EAAA,MAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AACX,CADW,EAAA;EAAC,MAAX,EAAA,MAAA;EAAS,MACW,EAAA,MAAA;EAAC,KAArB,EAFH,MAEG,CAAA,MAAA,EAFY,IAEZ,CAAA;EAAmB,MAA3B,EADM,CAAA,CAAE,SACR,CADkB,CAClB,CAAA;AAAO,CAAA,CAAA,EAAP,OAAO,CAAC,mBAAD,CAAqB,CAArB,CAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- const require_parse = require('../parse-shlhKlaL.cjs');
1
+ const require_parse = require('../parse-BOPxttSm.cjs');
2
2
 
3
3
  exports.merge = require_parse.merge;
4
4
  exports.parseArgv = require_parse.parseArgv;
@@ -1,5 +1,5 @@
1
1
  import "../permissions-B1meXGie.cjs";
2
- import { CliArgs, EnvArgs, MergedArgs } from "../types-B9_8hSal.cjs";
2
+ import { CliArgs, EnvArgs, MergedArgs } from "../types-jjNLngoj.cjs";
3
3
 
4
4
  //#region src/cli/parse.d.ts
5
5
  declare function parseArgv(argv: string[]): CliArgs;
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.cts","names":[],"sources":["../../src/cli/parse.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,SAAA,kBAA2B;iBA+D3B,QAAA,MAAc,MAAA,CAAO,aAAa;iBAalC,KAAA,MAAW,cAAc,UAAU;AA5EnD"}
1
+ {"version":3,"file":"parse.d.cts","names":[],"sources":["../../src/cli/parse.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,SAAA,kBAA2B;iBAiE3B,QAAA,MAAc,MAAA,CAAO,aAAa;iBAalC,KAAA,MAAW,cAAc,UAAU;AA9EnD"}
@@ -1,5 +1,5 @@
1
- import "../permissions-40d2hxK-.js";
2
- import { CliArgs, EnvArgs, MergedArgs } from "../types-BU11bcu2.js";
1
+ import "../permissions-BBgPgD70.js";
2
+ import { CliArgs, EnvArgs, MergedArgs } from "../types-B3T3_E4s.js";
3
3
 
4
4
  //#region src/cli/parse.d.ts
5
5
  declare function parseArgv(argv: string[]): CliArgs;
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","names":[],"sources":["../../src/cli/parse.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,SAAA,kBAA2B;iBA+D3B,QAAA,MAAc,MAAA,CAAO,aAAa;iBAalC,KAAA,MAAW,cAAc,UAAU;AA5EnD"}
1
+ {"version":3,"file":"parse.d.ts","names":[],"sources":["../../src/cli/parse.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,SAAA,kBAA2B;iBAiE3B,QAAA,MAAc,MAAA,CAAO,aAAa;iBAalC,KAAA,MAAW,cAAc,UAAU;AA9EnD"}
package/dist/cli/parse.js CHANGED
@@ -1,3 +1,3 @@
1
- import { merge, parseArgv, parseEnv } from "../parse-8lpnm_2Z.js";
1
+ import { merge, parseArgv, parseEnv } from "../parse-Da0oa8W8.js";
2
2
 
3
3
  export { merge, parseArgv, parseEnv };
@@ -1,7 +1,7 @@
1
1
  require('../constants-DJrjLmh5.cjs');
2
2
  require('../url-utils-Bn5EoScr.cjs');
3
- require('../permissions-D5kR-bZw.cjs');
4
- const require_resolve = require('../resolve-CBipUzux.cjs');
3
+ require('../permissions-CpuEzSxz.cjs');
4
+ const require_resolve = require('../resolve-D6Cfnjdj.cjs');
5
5
 
6
6
  exports.finalize = require_resolve.finalize;
7
7
  exports.formatInvalid = require_resolve.formatInvalid;
@@ -1,5 +1,5 @@
1
1
  import "../permissions-B1meXGie.cjs";
2
- import { MergedArgs, ResolvedConfig } from "../types-B9_8hSal.cjs";
2
+ import { MergedArgs, ResolvedConfig } from "../types-jjNLngoj.cjs";
3
3
 
4
4
  //#region src/cli/resolve.d.ts
5
5
  declare function formatInvalid(invalid: string[], envName?: string): string;
@@ -1,5 +1,5 @@
1
- import "../permissions-40d2hxK-.js";
2
- import { MergedArgs, ResolvedConfig } from "../types-BU11bcu2.js";
1
+ import "../permissions-BBgPgD70.js";
2
+ import { MergedArgs, ResolvedConfig } from "../types-B3T3_E4s.js";
3
3
 
4
4
  //#region src/cli/resolve.d.ts
5
5
  declare function formatInvalid(invalid: string[], envName?: string): string;
@@ -1,6 +1,6 @@
1
1
  import "../constants-BPM_OWt0.js";
2
2
  import "../url-utils-d9bPTnOl.js";
3
- import "../permissions-C_xHmYV4.js";
4
- import { finalize, formatInvalid } from "../resolve-CZduTbDq.js";
3
+ import "../permissions-xBjHy6Qx.js";
4
+ import { finalize, formatInvalid } from "../resolve-C95FW12c.js";
5
5
 
6
6
  export { finalize, formatInvalid };
@@ -1,3 +1,3 @@
1
1
  import "../permissions-B1meXGie.cjs";
2
- import { CliArgs, EnvArgs, MergedArgs, ResolvedConfig } from "../types-B9_8hSal.cjs";
2
+ import { CliArgs, EnvArgs, MergedArgs, ResolvedConfig } from "../types-jjNLngoj.cjs";
3
3
  export { CliArgs, EnvArgs, MergedArgs, ResolvedConfig };
@@ -1,3 +1,3 @@
1
- import "../permissions-40d2hxK-.js";
2
- import { CliArgs, EnvArgs, MergedArgs, ResolvedConfig } from "../types-BU11bcu2.js";
1
+ import "../permissions-BBgPgD70.js";
2
+ import { CliArgs, EnvArgs, MergedArgs, ResolvedConfig } from "../types-B3T3_E4s.js";
3
3
  export { CliArgs, EnvArgs, MergedArgs, ResolvedConfig };
@@ -1,3 +1,3 @@
1
- const require_usage = require('../usage-CP6e39yF.cjs');
1
+ const require_usage = require('../usage-BV4cegeX.cjs');
2
2
 
3
3
  exports.buildUsage = require_usage.buildUsage;
@@ -1,4 +1,4 @@
1
- import { Scope } from "../permissions-40d2hxK-.js";
1
+ import { Scope } from "../permissions-BBgPgD70.js";
2
2
 
3
3
  //#region src/cli/usage.d.ts
4
4
  declare function buildUsage(packageName: string, defaults: ReadonlyArray<Scope>, all: ReadonlyArray<Scope>): string;
package/dist/cli/usage.js CHANGED
@@ -1,3 +1,3 @@
1
- import { buildUsage } from "../usage-CihInDyq.js";
1
+ import { buildUsage } from "../usage-DLck8shg.js";
2
2
 
3
3
  export { buildUsage };
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, Trace, TraceMeta, User } from "./types-CtnbvcEw.cjs";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, Trace, TraceMeta, User } from "./types-CLI02LNZ.cjs";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -834,4 +834,4 @@ declare class SentryApiService {
834
834
  }
835
835
  //#endregion
836
836
  export { SentryApiService };
837
- //# sourceMappingURL=client-C_fNdaX8.d.cts.map
837
+ //# sourceMappingURL=client-DeGFkGAD.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-C_fNdaX8.d.cts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AAqDiB;AAmFjB;;;;;;;;;;;;;;KAhDK,cAAA,GA8yBA;EAAO,IAyBN,CAAA,EAAA,MAAA;CAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyEF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4IF,iBACN,QAAQ;;;;;;;YA8BF,iBACN,QAAQ;;;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;YAmCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAqBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAmDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAgDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAsDd,iBAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoOd,iBAAc;;;;;;;;;;;YAgDd,iBACN,QAAQ;;;;;;;YAwBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmDF,iBACN,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, Trace, TraceMeta, User } from "./types-4O1B8U0e.js";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, Trace, TraceMeta, User } from "./types-DoT0an28.js";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -834,4 +834,4 @@ declare class SentryApiService {
834
834
  }
835
835
  //#endregion
836
836
  export { SentryApiService };
837
- //# sourceMappingURL=client-VVhTv_ej.d.ts.map
837
+ //# sourceMappingURL=client-njqQAP-R.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-VVhTv_ej.d.ts","names":[],"sources":["../src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ACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiEF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyEF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4IF,iBACN,QAAQ;;;;;;;YA8BF,iBACN,QAAQ;;;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;YAmCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAqBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAmDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAgDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAsDd,iBAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoOd,iBAAc;;;;;;;;;;;YAgDd,iBACN,QAAQ;;;;;;;YAwBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmDF,iBACN,QAAQ"}
@@ -0,0 +1,25 @@
1
+ //#region src/tools/use-sentry/config.ts
2
+ /**
3
+ * Configuration for the use_sentry embedded agent.
4
+ *
5
+ * This agent translates natural language requests into Sentry operations
6
+ * by intelligently calling available Sentry MCP tools.
7
+ */
8
+ /**
9
+ * System prompt for the embedded agent.
10
+ */
11
+ const systemPrompt = `You are an agent responsible for assisting users on accessing information from Sentry (sentry.io) via MCP tools.
12
+
13
+ ALWAYS evaluate which tools are the most appropriate to use based on the user's prompt. You ALWAYS use tools to answer questions. Evaluating the tool descriptions and parameters thoroughly to answer the user's prompt.
14
+
15
+ The user may include various parameters to pass to those tools in their prompt. You MUST treat URLs as parameters for tool calls, as well as recognizing <organizationSlug>/<projectSlug> notation.
16
+
17
+ You MUST return tool results directly without interpreting them.`;
18
+ /**
19
+ * Additional configuration for the agent.
20
+ */
21
+ const agentConfig = { maxSteps: 10 };
22
+
23
+ //#endregion
24
+ export { agentConfig, systemPrompt };
25
+ //# sourceMappingURL=config-CTRUv0J3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-CTRUv0J3.js","names":[],"sources":["../src/tools/use-sentry/config.ts"],"sourcesContent":["/**\n * Configuration for the use_sentry embedded agent.\n *\n * This agent translates natural language requests into Sentry operations\n * by intelligently calling available Sentry MCP tools.\n */\n\n/**\n * System prompt for the embedded agent.\n */\nexport const systemPrompt = `You are an agent responsible for assisting users on accessing information from Sentry (sentry.io) via MCP tools.\n\nALWAYS evaluate which tools are the most appropriate to use based on the user's prompt. You ALWAYS use tools to answer questions. Evaluating the tool descriptions and parameters thoroughly to answer the user's prompt.\n\nThe user may include various parameters to pass to those tools in their prompt. You MUST treat URLs as parameters for tool calls, as well as recognizing <organizationSlug>/<projectSlug> notation.\n\nYou MUST return tool results directly without interpreting them.`;\n\n/**\n * Additional configuration for the agent.\n */\nexport const agentConfig = {\n maxSteps: 10, // Allow more steps for complex multi-tool operations\n};\n"],"mappings":";;;;;;;;;;AAUA,MAAa,gBAAgB;;;;;;;;;;AAW7B,MAAa,cAAc,EACzB,UAAU,GACX"}
@@ -0,0 +1,37 @@
1
+
2
+ //#region src/tools/use-sentry/config.ts
3
+ /**
4
+ * Configuration for the use_sentry embedded agent.
5
+ *
6
+ * This agent translates natural language requests into Sentry operations
7
+ * by intelligently calling available Sentry MCP tools.
8
+ */
9
+ /**
10
+ * System prompt for the embedded agent.
11
+ */
12
+ const systemPrompt = `You are an agent responsible for assisting users on accessing information from Sentry (sentry.io) via MCP tools.
13
+
14
+ ALWAYS evaluate which tools are the most appropriate to use based on the user's prompt. You ALWAYS use tools to answer questions. Evaluating the tool descriptions and parameters thoroughly to answer the user's prompt.
15
+
16
+ The user may include various parameters to pass to those tools in their prompt. You MUST treat URLs as parameters for tool calls, as well as recognizing <organizationSlug>/<projectSlug> notation.
17
+
18
+ You MUST return tool results directly without interpreting them.`;
19
+ /**
20
+ * Additional configuration for the agent.
21
+ */
22
+ const agentConfig = { maxSteps: 10 };
23
+
24
+ //#endregion
25
+ Object.defineProperty(exports, 'agentConfig', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return agentConfig;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, 'systemPrompt', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return systemPrompt;
35
+ }
36
+ });
37
+ //# sourceMappingURL=config-ClFI6orZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-ClFI6orZ.cjs","names":[],"sources":["../src/tools/use-sentry/config.ts"],"sourcesContent":["/**\n * Configuration for the use_sentry embedded agent.\n *\n * This agent translates natural language requests into Sentry operations\n * by intelligently calling available Sentry MCP tools.\n */\n\n/**\n * System prompt for the embedded agent.\n */\nexport const systemPrompt = `You are an agent responsible for assisting users on accessing information from Sentry (sentry.io) via MCP tools.\n\nALWAYS evaluate which tools are the most appropriate to use based on the user's prompt. You ALWAYS use tools to answer questions. Evaluating the tool descriptions and parameters thoroughly to answer the user's prompt.\n\nThe user may include various parameters to pass to those tools in their prompt. You MUST treat URLs as parameters for tool calls, as well as recognizing <organizationSlug>/<projectSlug> notation.\n\nYou MUST return tool results directly without interpreting them.`;\n\n/**\n * Additional configuration for the agent.\n */\nexport const agentConfig = {\n maxSteps: 10, // Allow more steps for complex multi-tool operations\n};\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,gBAAgB;;;;;;;;;;AAW7B,MAAa,cAAc,EACzB,UAAU,GACX"}
@@ -61,4 +61,4 @@ function getConstraintParametersToInject(constraints, toolInputSchema) {
61
61
 
62
62
  //#endregion
63
63
  export { getConstraintKeysToFilter, getConstraintParametersToInject };
64
- //# sourceMappingURL=constraint-helpers-Bey-Pii6.js.map
64
+ //# sourceMappingURL=constraint-helpers-0jgp7p3K.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constraint-helpers-Bey-Pii6.js","names":["constraints: Constraints & Record<string, string | null | undefined>","toolInputSchema: Record<string, z.ZodType>","keys: string[]","entries: [string, string][]"],"sources":["../src/internal/constraint-helpers.ts"],"sourcesContent":["/**\n * Constraint application helpers for MCP server configuration.\n *\n * These functions handle the logic for filtering tool schemas and injecting\n * constraint parameters, including support for parameter aliases (e.g., projectSlug → projectSlugOrId).\n */\nimport type { Constraints } from \"../types\";\nimport type { z } from \"zod\";\n\n/**\n * Determines which tool parameter keys should be filtered out of the schema\n * because they will be injected from constraints.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the alias will be applied UNLESS projectSlugOrId\n * is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Array of parameter keys that should be filtered from the schema\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const keys = getConstraintKeysToFilter(constraints, schema);\n * // Returns: [\"organizationSlug\", \"projectSlugOrId\"]\n * // projectSlugOrId is included because projectSlug constraint will map to it\n * ```\n */\nexport function getConstraintKeysToFilter(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): string[] {\n return Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const keys: string[] = [];\n\n // If this constraint key exists in the schema, include it\n if (key in toolInputSchema) {\n keys.push(key);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only add the alias to filter if projectSlugOrId isn't being explicitly constrained\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n keys.push(\"projectSlugOrId\");\n }\n\n return keys;\n });\n}\n\n/**\n * Builds the constraint parameters that should be injected into tool calls.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the constraint value will be injected as\n * projectSlugOrId UNLESS projectSlugOrId is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Object mapping parameter names to constraint values\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const params = getConstraintParametersToInject(constraints, schema);\n * // Returns: { organizationSlug: \"my-org\", projectSlugOrId: \"my-project\" }\n * // projectSlug constraint is injected as projectSlugOrId parameter\n * ```\n */\nexport function getConstraintParametersToInject(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const entries: [string, string][] = [];\n\n // If this constraint key exists in the schema, add it\n if (key in toolInputSchema) {\n entries.push([key, value]);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only apply alias if the target parameter isn't already being constrained with a truthy value\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n entries.push([\"projectSlugOrId\", value]);\n }\n\n return entries;\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,0BACdA,aACAC,iBACU;AACV,QAAO,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AAC3D,OAAK,MAAO,QAAO,CAAE;EAErB,MAAMC,OAAiB,CAAE;AAGzB,MAAI,OAAO,gBACT,MAAK,KAAK,IAAI;AAKhB,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,MAAK,KAAK,kBAAkB;AAG9B,SAAO;CACR,EAAC;AACH;;;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,gCACdF,aACAC,iBACwB;AACxB,QAAO,OAAO,YACZ,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AACpD,OAAK,MAAO,QAAO,CAAE;EAErB,MAAME,UAA8B,CAAE;AAGtC,MAAI,OAAO,gBACT,SAAQ,KAAK,CAAC,KAAK,KAAM,EAAC;AAK5B,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,SAAQ,KAAK,CAAC,mBAAmB,KAAM,EAAC;AAG1C,SAAO;CACR,EAAC,CACH;AACF"}
1
+ {"version":3,"file":"constraint-helpers-0jgp7p3K.js","names":["constraints: Constraints & Record<string, string | null | undefined>","toolInputSchema: Record<string, z.ZodType>","keys: string[]","entries: [string, string][]"],"sources":["../src/internal/constraint-helpers.ts"],"sourcesContent":["/**\n * Constraint application helpers for MCP server configuration.\n *\n * These functions handle the logic for filtering tool schemas and injecting\n * constraint parameters, including support for parameter aliases (e.g., projectSlug → projectSlugOrId).\n */\nimport type { Constraints } from \"../types\";\nimport type { z } from \"zod\";\n\n/**\n * Determines which tool parameter keys should be filtered out of the schema\n * because they will be injected from constraints.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the alias will be applied UNLESS projectSlugOrId\n * is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Array of parameter keys that should be filtered from the schema\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const keys = getConstraintKeysToFilter(constraints, schema);\n * // Returns: [\"organizationSlug\", \"projectSlugOrId\"]\n * // projectSlugOrId is included because projectSlug constraint will map to it\n * ```\n */\nexport function getConstraintKeysToFilter(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): string[] {\n return Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const keys: string[] = [];\n\n // If this constraint key exists in the schema, include it\n if (key in toolInputSchema) {\n keys.push(key);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only add the alias to filter if projectSlugOrId isn't being explicitly constrained\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n keys.push(\"projectSlugOrId\");\n }\n\n return keys;\n });\n}\n\n/**\n * Builds the constraint parameters that should be injected into tool calls.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the constraint value will be injected as\n * projectSlugOrId UNLESS projectSlugOrId is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Object mapping parameter names to constraint values\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const params = getConstraintParametersToInject(constraints, schema);\n * // Returns: { organizationSlug: \"my-org\", projectSlugOrId: \"my-project\" }\n * // projectSlug constraint is injected as projectSlugOrId parameter\n * ```\n */\nexport function getConstraintParametersToInject(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const entries: [string, string][] = [];\n\n // If this constraint key exists in the schema, add it\n if (key in toolInputSchema) {\n entries.push([key, value]);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only apply alias if the target parameter isn't already being constrained with a truthy value\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n entries.push([\"projectSlugOrId\", value]);\n }\n\n return entries;\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,0BACdA,aACAC,iBACU;AACV,QAAO,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AAC3D,OAAK,MAAO,QAAO,CAAE;EAErB,MAAMC,OAAiB,CAAE;AAGzB,MAAI,OAAO,gBACT,MAAK,KAAK,IAAI;AAKhB,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,MAAK,KAAK,kBAAkB;AAG9B,SAAO;CACR,EAAC;AACH;;;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,gCACdF,aACAC,iBACwB;AACxB,QAAO,OAAO,YACZ,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AACpD,OAAK,MAAO,QAAO,CAAE;EAErB,MAAME,UAA8B,CAAE;AAGtC,MAAI,OAAO,gBACT,SAAQ,KAAK,CAAC,KAAK,KAAM,EAAC;AAK5B,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,SAAQ,KAAK,CAAC,mBAAmB,KAAM,EAAC;AAG1C,SAAO;CACR,EAAC,CACH;AACF"}
@@ -73,4 +73,4 @@ Object.defineProperty(exports, 'getConstraintParametersToInject', {
73
73
  return getConstraintParametersToInject;
74
74
  }
75
75
  });
76
- //# sourceMappingURL=constraint-helpers-BqcuWXad.cjs.map
76
+ //# sourceMappingURL=constraint-helpers-BJPdGLZ3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constraint-helpers-BqcuWXad.cjs","names":["constraints: Constraints & Record<string, string | null | undefined>","toolInputSchema: Record<string, z.ZodType>","keys: string[]","entries: [string, string][]"],"sources":["../src/internal/constraint-helpers.ts"],"sourcesContent":["/**\n * Constraint application helpers for MCP server configuration.\n *\n * These functions handle the logic for filtering tool schemas and injecting\n * constraint parameters, including support for parameter aliases (e.g., projectSlug → projectSlugOrId).\n */\nimport type { Constraints } from \"../types\";\nimport type { z } from \"zod\";\n\n/**\n * Determines which tool parameter keys should be filtered out of the schema\n * because they will be injected from constraints.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the alias will be applied UNLESS projectSlugOrId\n * is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Array of parameter keys that should be filtered from the schema\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const keys = getConstraintKeysToFilter(constraints, schema);\n * // Returns: [\"organizationSlug\", \"projectSlugOrId\"]\n * // projectSlugOrId is included because projectSlug constraint will map to it\n * ```\n */\nexport function getConstraintKeysToFilter(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): string[] {\n return Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const keys: string[] = [];\n\n // If this constraint key exists in the schema, include it\n if (key in toolInputSchema) {\n keys.push(key);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only add the alias to filter if projectSlugOrId isn't being explicitly constrained\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n keys.push(\"projectSlugOrId\");\n }\n\n return keys;\n });\n}\n\n/**\n * Builds the constraint parameters that should be injected into tool calls.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the constraint value will be injected as\n * projectSlugOrId UNLESS projectSlugOrId is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Object mapping parameter names to constraint values\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const params = getConstraintParametersToInject(constraints, schema);\n * // Returns: { organizationSlug: \"my-org\", projectSlugOrId: \"my-project\" }\n * // projectSlug constraint is injected as projectSlugOrId parameter\n * ```\n */\nexport function getConstraintParametersToInject(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const entries: [string, string][] = [];\n\n // If this constraint key exists in the schema, add it\n if (key in toolInputSchema) {\n entries.push([key, value]);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only apply alias if the target parameter isn't already being constrained with a truthy value\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n entries.push([\"projectSlugOrId\", value]);\n }\n\n return entries;\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,0BACdA,aACAC,iBACU;AACV,QAAO,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AAC3D,OAAK,MAAO,QAAO,CAAE;EAErB,MAAMC,OAAiB,CAAE;AAGzB,MAAI,OAAO,gBACT,MAAK,KAAK,IAAI;AAKhB,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,MAAK,KAAK,kBAAkB;AAG9B,SAAO;CACR,EAAC;AACH;;;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,gCACdF,aACAC,iBACwB;AACxB,QAAO,OAAO,YACZ,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AACpD,OAAK,MAAO,QAAO,CAAE;EAErB,MAAME,UAA8B,CAAE;AAGtC,MAAI,OAAO,gBACT,SAAQ,KAAK,CAAC,KAAK,KAAM,EAAC;AAK5B,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,SAAQ,KAAK,CAAC,mBAAmB,KAAM,EAAC;AAG1C,SAAO;CACR,EAAC,CACH;AACF"}
1
+ {"version":3,"file":"constraint-helpers-BJPdGLZ3.cjs","names":["constraints: Constraints & Record<string, string | null | undefined>","toolInputSchema: Record<string, z.ZodType>","keys: string[]","entries: [string, string][]"],"sources":["../src/internal/constraint-helpers.ts"],"sourcesContent":["/**\n * Constraint application helpers for MCP server configuration.\n *\n * These functions handle the logic for filtering tool schemas and injecting\n * constraint parameters, including support for parameter aliases (e.g., projectSlug → projectSlugOrId).\n */\nimport type { Constraints } from \"../types\";\nimport type { z } from \"zod\";\n\n/**\n * Determines which tool parameter keys should be filtered out of the schema\n * because they will be injected from constraints.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the alias will be applied UNLESS projectSlugOrId\n * is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Array of parameter keys that should be filtered from the schema\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const keys = getConstraintKeysToFilter(constraints, schema);\n * // Returns: [\"organizationSlug\", \"projectSlugOrId\"]\n * // projectSlugOrId is included because projectSlug constraint will map to it\n * ```\n */\nexport function getConstraintKeysToFilter(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): string[] {\n return Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const keys: string[] = [];\n\n // If this constraint key exists in the schema, include it\n if (key in toolInputSchema) {\n keys.push(key);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only add the alias to filter if projectSlugOrId isn't being explicitly constrained\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n keys.push(\"projectSlugOrId\");\n }\n\n return keys;\n });\n}\n\n/**\n * Builds the constraint parameters that should be injected into tool calls.\n *\n * Handles parameter aliases: when a projectSlug constraint exists and the tool\n * has a projectSlugOrId parameter, the constraint value will be injected as\n * projectSlugOrId UNLESS projectSlugOrId is explicitly constrained with a truthy value.\n *\n * @param constraints - The active constraints (org, project, region)\n * @param toolInputSchema - The tool's input schema definition\n * @returns Object mapping parameter names to constraint values\n *\n * @example\n * ```typescript\n * const constraints = { projectSlug: \"my-project\", organizationSlug: \"my-org\" };\n * const schema = { organizationSlug: z.string(), projectSlugOrId: z.string() };\n * const params = getConstraintParametersToInject(constraints, schema);\n * // Returns: { organizationSlug: \"my-org\", projectSlugOrId: \"my-project\" }\n * // projectSlug constraint is injected as projectSlugOrId parameter\n * ```\n */\nexport function getConstraintParametersToInject(\n constraints: Constraints & Record<string, string | null | undefined>,\n toolInputSchema: Record<string, z.ZodType>,\n): Record<string, string> {\n return Object.fromEntries(\n Object.entries(constraints).flatMap(([key, value]) => {\n if (!value) return [];\n\n const entries: [string, string][] = [];\n\n // If this constraint key exists in the schema, add it\n if (key in toolInputSchema) {\n entries.push([key, value]);\n }\n\n // Special handling: projectSlug constraint can also apply to projectSlugOrId parameter\n // Only apply alias if the target parameter isn't already being constrained with a truthy value\n if (\n key === \"projectSlug\" &&\n \"projectSlugOrId\" in toolInputSchema &&\n !(\"projectSlugOrId\" in constraints && constraints.projectSlugOrId)\n ) {\n entries.push([\"projectSlugOrId\", value]);\n }\n\n return entries;\n }),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,0BACdA,aACAC,iBACU;AACV,QAAO,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AAC3D,OAAK,MAAO,QAAO,CAAE;EAErB,MAAMC,OAAiB,CAAE;AAGzB,MAAI,OAAO,gBACT,MAAK,KAAK,IAAI;AAKhB,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,MAAK,KAAK,kBAAkB;AAG9B,SAAO;CACR,EAAC;AACH;;;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,gCACdF,aACAC,iBACwB;AACxB,QAAO,OAAO,YACZ,OAAO,QAAQ,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,MAAM,KAAK;AACpD,OAAK,MAAO,QAAO,CAAE;EAErB,MAAME,UAA8B,CAAE;AAGtC,MAAI,OAAO,gBACT,SAAQ,KAAK,CAAC,KAAK,KAAM,EAAC;AAK5B,MACE,QAAQ,iBACR,qBAAqB,qBACnB,qBAAqB,eAAe,YAAY,iBAElD,SAAQ,KAAK,CAAC,mBAAmB,KAAM,EAAC;AAG1C,SAAO;CACR,EAAC,CACH;AACF"}
@@ -94,4 +94,4 @@ async function formatErrorForUser(error) {
94
94
 
95
95
  //#endregion
96
96
  export { formatErrorForUser, isApiClientError, isApiError, isApiServerError, isConfigurationError, isUserInputError };
97
- //# sourceMappingURL=error-handling-R4SJQ7n0.js.map
97
+ //# sourceMappingURL=error-handling-D_4c-JgK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-handling-R4SJQ7n0.js","names":["error: unknown","eventId"],"sources":["../src/internal/error-handling.ts"],"sourcesContent":["import { UserInputError, ConfigurationError } from \"../errors\";\nimport { ApiError, ApiClientError, ApiServerError } from \"../api-client\";\nimport { logIssue } from \"../telem/logging\";\n\n/**\n * Type guard to identify user input validation errors.\n */\nexport function isUserInputError(error: unknown): error is UserInputError {\n return error instanceof UserInputError;\n}\n\n/**\n * Type guard to identify configuration errors.\n */\nexport function isConfigurationError(\n error: unknown,\n): error is ConfigurationError {\n return error instanceof ConfigurationError;\n}\n\n/**\n * Type guard to identify API errors.\n */\nexport function isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify API client errors (4xx).\n */\nexport function isApiClientError(error: unknown): error is ApiClientError {\n return error instanceof ApiClientError;\n}\n\n/**\n * Type guard to identify API server errors (5xx).\n */\nexport function isApiServerError(error: unknown): error is ApiServerError {\n return error instanceof ApiServerError;\n}\n\n/**\n * Format an error for user display with markdown formatting.\n * This is used by tool handlers to format errors for MCP responses.\n *\n * SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.\n * We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.\n */\nexport async function formatErrorForUser(error: unknown): Promise<string> {\n if (isUserInputError(error)) {\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\n error.message,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n if (isConfigurationError(error)) {\n return [\n \"**Configuration Error**\",\n \"There appears to be a configuration issue with your setup.\",\n error.message,\n `Please check your environment configuration and try again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiClientError (4xx) - user input errors, should NOT be logged to Sentry\n if (isApiClientError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Input Error**\",\n statusText,\n error.toUserMessage(),\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiServerError (5xx) - system errors, SHOULD be logged to Sentry\n if (isApiServerError(error)) {\n const eventId = logIssue(error);\n const statusText = error.status\n ? `There was an HTTP ${error.status} server error with the Sentry API.`\n : \"There was a server error.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `**Event ID**: ${eventId}`,\n `Please contact support with this Event ID if the problem persists.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle generic ApiError (shouldn't happen with new hierarchy, but just in case)\n if (isApiError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logIssue(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ]\n .filter(Boolean)\n .join(\"\\n\\n\");\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,qBACdA,OAC6B;AAC7B,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,WAAWA,OAAmC;AAC5D,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;;;;;AASD,eAAsB,mBAAmBA,OAAiC;AACxE,KAAI,iBAAiB,MAAM,CACzB,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAGhB,KAAI,qBAAqB,MAAM,CAC7B,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAIhB,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;GACA,MAAM,eAAe;IACpB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAMC,YAAU,SAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,sCAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR,gBAAgBA;IAChB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,SAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EACE,OAAO,QAAQ,CACf,KAAK,OAAO;AAChB"}
1
+ {"version":3,"file":"error-handling-D_4c-JgK.js","names":["error: unknown","eventId"],"sources":["../src/internal/error-handling.ts"],"sourcesContent":["import { UserInputError, ConfigurationError } from \"../errors\";\nimport { ApiError, ApiClientError, ApiServerError } from \"../api-client\";\nimport { logIssue } from \"../telem/logging\";\n\n/**\n * Type guard to identify user input validation errors.\n */\nexport function isUserInputError(error: unknown): error is UserInputError {\n return error instanceof UserInputError;\n}\n\n/**\n * Type guard to identify configuration errors.\n */\nexport function isConfigurationError(\n error: unknown,\n): error is ConfigurationError {\n return error instanceof ConfigurationError;\n}\n\n/**\n * Type guard to identify API errors.\n */\nexport function isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify API client errors (4xx).\n */\nexport function isApiClientError(error: unknown): error is ApiClientError {\n return error instanceof ApiClientError;\n}\n\n/**\n * Type guard to identify API server errors (5xx).\n */\nexport function isApiServerError(error: unknown): error is ApiServerError {\n return error instanceof ApiServerError;\n}\n\n/**\n * Format an error for user display with markdown formatting.\n * This is used by tool handlers to format errors for MCP responses.\n *\n * SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.\n * We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.\n */\nexport async function formatErrorForUser(error: unknown): Promise<string> {\n if (isUserInputError(error)) {\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\n error.message,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n if (isConfigurationError(error)) {\n return [\n \"**Configuration Error**\",\n \"There appears to be a configuration issue with your setup.\",\n error.message,\n `Please check your environment configuration and try again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiClientError (4xx) - user input errors, should NOT be logged to Sentry\n if (isApiClientError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Input Error**\",\n statusText,\n error.toUserMessage(),\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiServerError (5xx) - system errors, SHOULD be logged to Sentry\n if (isApiServerError(error)) {\n const eventId = logIssue(error);\n const statusText = error.status\n ? `There was an HTTP ${error.status} server error with the Sentry API.`\n : \"There was a server error.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `**Event ID**: ${eventId}`,\n `Please contact support with this Event ID if the problem persists.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle generic ApiError (shouldn't happen with new hierarchy, but just in case)\n if (isApiError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logIssue(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ]\n .filter(Boolean)\n .join(\"\\n\\n\");\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,qBACdA,OAC6B;AAC7B,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,WAAWA,OAAmC;AAC5D,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;AAKD,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiB;AACzB;;;;;;;;AASD,eAAsB,mBAAmBA,OAAiC;AACxE,KAAI,iBAAiB,MAAM,CACzB,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAGhB,KAAI,qBAAqB,MAAM,CAC7B,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAIhB,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;GACA,MAAM,eAAe;IACpB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAMC,YAAU,SAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,sCAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR,gBAAgBA;IAChB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,SAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EACE,OAAO,QAAQ,CACf,KAAK,OAAO;AAChB"}
@@ -129,4 +129,4 @@ Object.defineProperty(exports, 'isUserInputError', {
129
129
  return isUserInputError;
130
130
  }
131
131
  });
132
- //# sourceMappingURL=error-handling-CxV2m_Dr.cjs.map
132
+ //# sourceMappingURL=error-handling-ZVmZRXZb.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-handling-CxV2m_Dr.cjs","names":["error: unknown","UserInputError","ConfigurationError","ApiError","ApiClientError","ApiServerError","eventId"],"sources":["../src/internal/error-handling.ts"],"sourcesContent":["import { UserInputError, ConfigurationError } from \"../errors\";\nimport { ApiError, ApiClientError, ApiServerError } from \"../api-client\";\nimport { logIssue } from \"../telem/logging\";\n\n/**\n * Type guard to identify user input validation errors.\n */\nexport function isUserInputError(error: unknown): error is UserInputError {\n return error instanceof UserInputError;\n}\n\n/**\n * Type guard to identify configuration errors.\n */\nexport function isConfigurationError(\n error: unknown,\n): error is ConfigurationError {\n return error instanceof ConfigurationError;\n}\n\n/**\n * Type guard to identify API errors.\n */\nexport function isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify API client errors (4xx).\n */\nexport function isApiClientError(error: unknown): error is ApiClientError {\n return error instanceof ApiClientError;\n}\n\n/**\n * Type guard to identify API server errors (5xx).\n */\nexport function isApiServerError(error: unknown): error is ApiServerError {\n return error instanceof ApiServerError;\n}\n\n/**\n * Format an error for user display with markdown formatting.\n * This is used by tool handlers to format errors for MCP responses.\n *\n * SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.\n * We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.\n */\nexport async function formatErrorForUser(error: unknown): Promise<string> {\n if (isUserInputError(error)) {\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\n error.message,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n if (isConfigurationError(error)) {\n return [\n \"**Configuration Error**\",\n \"There appears to be a configuration issue with your setup.\",\n error.message,\n `Please check your environment configuration and try again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiClientError (4xx) - user input errors, should NOT be logged to Sentry\n if (isApiClientError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Input Error**\",\n statusText,\n error.toUserMessage(),\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiServerError (5xx) - system errors, SHOULD be logged to Sentry\n if (isApiServerError(error)) {\n const eventId = logIssue(error);\n const statusText = error.status\n ? `There was an HTTP ${error.status} server error with the Sentry API.`\n : \"There was a server error.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `**Event ID**: ${eventId}`,\n `Please contact support with this Event ID if the problem persists.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle generic ApiError (shouldn't happen with new hierarchy, but just in case)\n if (isApiError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logIssue(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ]\n .filter(Boolean)\n .join(\"\\n\\n\");\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiBC;AACzB;;;;AAKD,SAAgB,qBACdD,OAC6B;AAC7B,QAAO,iBAAiBE;AACzB;;;;AAKD,SAAgB,WAAWF,OAAmC;AAC5D,QAAO,iBAAiBG;AACzB;;;;AAKD,SAAgB,iBAAiBH,OAAyC;AACxE,QAAO,iBAAiBI;AACzB;;;;AAKD,SAAgB,iBAAiBJ,OAAyC;AACxE,QAAO,iBAAiBK;AACzB;;;;;;;;AASD,eAAsB,mBAAmBL,OAAiC;AACxE,KAAI,iBAAiB,MAAM,CACzB,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAGhB,KAAI,qBAAqB,MAAM,CAC7B,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAIhB,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;GACA,MAAM,eAAe;IACpB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAMM,YAAU,yBAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,sCAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR,gBAAgBA;IAChB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,yBAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EACE,OAAO,QAAQ,CACf,KAAK,OAAO;AAChB"}
1
+ {"version":3,"file":"error-handling-ZVmZRXZb.cjs","names":["error: unknown","UserInputError","ConfigurationError","ApiError","ApiClientError","ApiServerError","eventId"],"sources":["../src/internal/error-handling.ts"],"sourcesContent":["import { UserInputError, ConfigurationError } from \"../errors\";\nimport { ApiError, ApiClientError, ApiServerError } from \"../api-client\";\nimport { logIssue } from \"../telem/logging\";\n\n/**\n * Type guard to identify user input validation errors.\n */\nexport function isUserInputError(error: unknown): error is UserInputError {\n return error instanceof UserInputError;\n}\n\n/**\n * Type guard to identify configuration errors.\n */\nexport function isConfigurationError(\n error: unknown,\n): error is ConfigurationError {\n return error instanceof ConfigurationError;\n}\n\n/**\n * Type guard to identify API errors.\n */\nexport function isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify API client errors (4xx).\n */\nexport function isApiClientError(error: unknown): error is ApiClientError {\n return error instanceof ApiClientError;\n}\n\n/**\n * Type guard to identify API server errors (5xx).\n */\nexport function isApiServerError(error: unknown): error is ApiServerError {\n return error instanceof ApiServerError;\n}\n\n/**\n * Format an error for user display with markdown formatting.\n * This is used by tool handlers to format errors for MCP responses.\n *\n * SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.\n * We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.\n */\nexport async function formatErrorForUser(error: unknown): Promise<string> {\n if (isUserInputError(error)) {\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\n error.message,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n if (isConfigurationError(error)) {\n return [\n \"**Configuration Error**\",\n \"There appears to be a configuration issue with your setup.\",\n error.message,\n `Please check your environment configuration and try again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiClientError (4xx) - user input errors, should NOT be logged to Sentry\n if (isApiClientError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Input Error**\",\n statusText,\n error.toUserMessage(),\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle ApiServerError (5xx) - system errors, SHOULD be logged to Sentry\n if (isApiServerError(error)) {\n const eventId = logIssue(error);\n const statusText = error.status\n ? `There was an HTTP ${error.status} server error with the Sentry API.`\n : \"There was a server error.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `**Event ID**: ${eventId}`,\n `Please contact support with this Event ID if the problem persists.`,\n ].join(\"\\n\\n\");\n }\n\n // Handle generic ApiError (shouldn't happen with new hierarchy, but just in case)\n if (isApiError(error)) {\n const statusText = error.status\n ? `There was an HTTP ${error.status} error with your request to the Sentry API.`\n : \"There was an error with your request.\";\n\n return [\n \"**Error**\",\n statusText,\n `${error.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logIssue(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ]\n .filter(Boolean)\n .join(\"\\n\\n\");\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,iBAAiBA,OAAyC;AACxE,QAAO,iBAAiBC;AACzB;;;;AAKD,SAAgB,qBACdD,OAC6B;AAC7B,QAAO,iBAAiBE;AACzB;;;;AAKD,SAAgB,WAAWF,OAAmC;AAC5D,QAAO,iBAAiBG;AACzB;;;;AAKD,SAAgB,iBAAiBH,OAAyC;AACxE,QAAO,iBAAiBI;AACzB;;;;AAKD,SAAgB,iBAAiBJ,OAAyC;AACxE,QAAO,iBAAiBK;AACzB;;;;;;;;AASD,eAAsB,mBAAmBL,OAAiC;AACxE,KAAI,iBAAiB,MAAM,CACzB,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAGhB,KAAI,qBAAqB,MAAM,CAC7B,QAAO;EACL;EACA;EACA,MAAM;GACL;CACF,EAAC,KAAK,OAAO;AAIhB,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;GACA,MAAM,eAAe;IACpB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAMM,YAAU,yBAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,sCAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR,gBAAgBA;IAChB;EACF,EAAC,KAAK,OAAO;CACf;AAGD,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa,MAAM,UACpB,oBAAoB,MAAM,OAAO,+CAClC;AAEJ,SAAO;GACL;GACA;MACG,MAAM;IACR;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,yBAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EACE,OAAO,QAAQ,CACf,KAAK,OAAO;AAChB"}
@@ -123,4 +123,4 @@ declare function createApiError(message: string, status: number, detail?: string
123
123
  //# sourceMappingURL=errors.d.ts.map
124
124
  //#endregion
125
125
  export { ApiAuthenticationError, ApiClientError, ApiError, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, createApiError };
126
- //# sourceMappingURL=errors-JbBt1G2l.d.ts.map
126
+ //# sourceMappingURL=errors-CyAWBU2S.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-JbBt1G2l.d.ts","names":[],"sources":["../src/api-client/errors.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAmBA;AAwFA;AA0BA;AAkBA;;;;;AAAsD;AAkBtD;AAYA;AAiBA;AAgCA;;;cAtOa,QAAA,SAAiB,KAAK;;;;;;;;;;;cAmBtB,cAAA,SAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwF/B,kBAAA,SAA2B,cAAc;;;;;;;;;;;cA0BzC,gBAAA,SAAyB,cAAc;;;;;;;;;cAkBvC,kBAAA,SAA2B,cAAA;8BAMD;+GAAA;;;;;;cAY1B,sBAAA,SAA+B,cAAc;;;;;;;cAY7C,iBAAA,SAA0B,cAAc;;;;;;;;cAiBxC,cAAA,SAAuB,QAAQ;;;;;;;;;;;;;;;;iBAgC5B,cAAA,4EAKb"}
1
+ {"version":3,"file":"errors-CyAWBU2S.d.ts","names":[],"sources":["../src/api-client/errors.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAmBA;AAwFA;AA0BA;AAkBA;;;;;AAAsD;AAkBtD;AAYA;AAiBA;AAgCA;;;cAtOa,QAAA,SAAiB,KAAK;;;;;;;;;;;cAmBtB,cAAA,SAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwF/B,kBAAA,SAA2B,cAAc;;;;;;;;;;;cA0BzC,gBAAA,SAAyB,cAAc;;;;;;;;;cAkBvC,kBAAA,SAA2B,cAAA;8BAMD;+GAAA;;;;;;cAY1B,sBAAA,SAA+B,cAAc;;;;;;;cAY7C,iBAAA,SAA0B,cAAc;;;;;;;;cAiBxC,cAAA,SAAuB,QAAQ;;;;;;;;;;;;;;;;iBAgC5B,cAAA,4EAKb"}
@@ -17,4 +17,4 @@ declare class ConfigurationError extends Error {
17
17
  //# sourceMappingURL=errors.d.ts.map
18
18
  //#endregion
19
19
  export { ConfigurationError, UserInputError };
20
- //# sourceMappingURL=errors-Bvit2_Qs.d.ts.map
20
+ //# sourceMappingURL=errors-D9WEvbBw.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-Bvit2_Qs.d.ts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;AAAoC,cAAvB,cAAA,SAAuB,KAAA,CAAA;EAAK,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EACA,YADA;AAYzC;;;;AAA6C;;cAAhC,kBAAA,SAA2B,KAAA;yCACC"}
1
+ {"version":3,"file":"errors-D9WEvbBw.d.ts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;AAAoC,cAAvB,cAAA,SAAuB,KAAA,CAAA;EAAK,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EACA,YADA;AAYzC;;;;AAA6C;;cAAhC,kBAAA,SAA2B,KAAA;yCACC"}
package/dist/errors.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ConfigurationError, UserInputError } from "./errors-Bvit2_Qs.js";
1
+ import { ConfigurationError, UserInputError } from "./errors-D9WEvbBw.js";
2
2
  export { ConfigurationError, UserInputError };
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "./schema-0uEmsoCr.js";
2
- import { AutofixRunState, Event, Issue, Trace } from "./types-4O1B8U0e.js";
3
- import { SentryApiService } from "./client-VVhTv_ej.js";
1
+ import { FrameInterface } from "./schema-BogGdbdV.js";
2
+ import { AutofixRunState, Event, Issue, Trace } from "./types-DoT0an28.js";
3
+ import { SentryApiService } from "./client-njqQAP-R.js";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/internal/formatting.d.ts
@@ -51,4 +51,4 @@ declare function formatIssueOutput({
51
51
  //# sourceMappingURL=formatting.d.ts.map
52
52
  //#endregion
53
53
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
54
- //# sourceMappingURL=formatting-ar_6QZRE.d.ts.map
54
+ //# sourceMappingURL=formatting-D5u7lYGU.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-ar_6QZRE.d.ts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}
1
+ {"version":3,"file":"formatting-D5u7lYGU.d.ts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "./schema-xhCkX5uD.cjs";
2
- import { AutofixRunState, Event, Issue, Trace } from "./types-CtnbvcEw.cjs";
3
- import { SentryApiService } from "./client-C_fNdaX8.cjs";
1
+ import { FrameInterface } from "./schema-Y6BzAUmc.cjs";
2
+ import { AutofixRunState, Event, Issue, Trace } from "./types-CLI02LNZ.cjs";
3
+ import { SentryApiService } from "./client-DeGFkGAD.cjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/internal/formatting.d.ts
@@ -51,4 +51,4 @@ declare function formatIssueOutput({
51
51
  //# sourceMappingURL=formatting.d.ts.map
52
52
  //#endregion
53
53
  export { formatEventOutput, formatFrameHeader, formatIssueOutput };
54
- //# sourceMappingURL=formatting-FJne_W9i.d.cts.map
54
+ //# sourceMappingURL=formatting-iJThzXT4.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-FJne_W9i.d.cts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}
1
+ {"version":3,"file":"formatting-iJThzXT4.d.cts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}