@sentry/mcp-server 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/README.md +4 -0
  2. package/dist/agent-tools/discover-dataset-fields.d.cts +3 -3
  3. package/dist/agent-tools/discover-dataset-fields.d.ts +6 -6
  4. package/dist/agent-tools/lookup-otel-semantics.d.cts +3 -3
  5. package/dist/agent-tools/lookup-otel-semantics.d.ts +6 -6
  6. package/dist/agent-tools/whoami.d.cts +3 -3
  7. package/dist/agent-tools/whoami.d.ts +6 -6
  8. package/dist/{analyze-issue-with-seer-Dw9iqvSk.cjs → analyze-issue-with-seer-ByoDTsq-.cjs} +2 -2
  9. package/dist/{analyze-issue-with-seer-Dw9iqvSk.cjs.map → analyze-issue-with-seer-ByoDTsq-.cjs.map} +1 -1
  10. package/dist/{analyze-issue-with-seer-DcSwrWrs.js → analyze-issue-with-seer-CpwtN4UA.js} +2 -2
  11. package/dist/{analyze-issue-with-seer-DcSwrWrs.js.map → analyze-issue-with-seer-CpwtN4UA.js.map} +1 -1
  12. package/dist/api-client/client.d.cts +3 -3
  13. package/dist/api-client/client.d.ts +3 -3
  14. package/dist/api-client/index.d.cts +3 -3
  15. package/dist/api-client/index.d.ts +3 -3
  16. package/dist/api-client/schema.d.cts +1 -1
  17. package/dist/api-client/schema.d.ts +1 -1
  18. package/dist/api-client/types.d.cts +2 -2
  19. package/dist/api-client/types.d.ts +2 -2
  20. package/dist/{client-C_dDreKj.d.ts → client-DLkUGS7r.d.ts} +4 -4
  21. package/dist/{client-C_dDreKj.d.ts.map → client-DLkUGS7r.d.ts.map} +1 -1
  22. package/dist/{client-CgS3tjJG.d.cts → client-DV68BdcS.d.cts} +2 -2
  23. package/dist/{client-CgS3tjJG.d.cts.map → client-DV68BdcS.d.cts.map} +1 -1
  24. package/dist/{constants-S7AU45oQ.js → constants-Fe-4NTUo.js} +6 -2
  25. package/dist/constants-Fe-4NTUo.js.map +1 -0
  26. package/dist/{constants-ClkMK29-.cjs → constants-wrEbre3j.cjs} +11 -1
  27. package/dist/constants-wrEbre3j.cjs.map +1 -0
  28. package/dist/constants.cjs +2 -1
  29. package/dist/constants.d.cts +5 -1
  30. package/dist/constants.d.cts.map +1 -1
  31. package/dist/constants.d.ts +5 -1
  32. package/dist/constants.d.ts.map +1 -1
  33. package/dist/constants.js +2 -2
  34. package/dist/{create-dsn-QDLdwhDO.js → create-dsn-BT3t-MDA.js} +2 -2
  35. package/dist/{create-dsn-QDLdwhDO.js.map → create-dsn-BT3t-MDA.js.map} +1 -1
  36. package/dist/{create-dsn-C6IPwoVO.cjs → create-dsn-Bgwi-Ygi.cjs} +2 -2
  37. package/dist/{create-dsn-C6IPwoVO.cjs.map → create-dsn-Bgwi-Ygi.cjs.map} +1 -1
  38. package/dist/{create-project-DdSF58TR.cjs → create-project-4R4aZMoc.cjs} +2 -2
  39. package/dist/{create-project-DdSF58TR.cjs.map → create-project-4R4aZMoc.cjs.map} +1 -1
  40. package/dist/{create-project-Cax3fWey.js → create-project-Ca1Sy1_F.js} +2 -2
  41. package/dist/{create-project-Cax3fWey.js.map → create-project-Ca1Sy1_F.js.map} +1 -1
  42. package/dist/{create-team-CXaLcylp.cjs → create-team-CSBXDcoD.cjs} +2 -2
  43. package/dist/{create-team-CXaLcylp.cjs.map → create-team-CSBXDcoD.cjs.map} +1 -1
  44. package/dist/{create-team-nm06goO5.js → create-team-D0dUl7Zo.js} +2 -2
  45. package/dist/{create-team-nm06goO5.js.map → create-team-D0dUl7Zo.js.map} +1 -1
  46. package/dist/{find-dsns-vQolGM7e.cjs → find-dsns-CkvahHwJ.cjs} +2 -2
  47. package/dist/{find-dsns-vQolGM7e.cjs.map → find-dsns-CkvahHwJ.cjs.map} +1 -1
  48. package/dist/{find-dsns-C3G5aBm1.js → find-dsns-DrNAfU_Q.js} +2 -2
  49. package/dist/{find-dsns-C3G5aBm1.js.map → find-dsns-DrNAfU_Q.js.map} +1 -1
  50. package/dist/{find-projects-B0NdOjBO.js → find-projects-CZCMck_0.js} +2 -2
  51. package/dist/{find-projects-B0NdOjBO.js.map → find-projects-CZCMck_0.js.map} +1 -1
  52. package/dist/{find-projects-xM2L0U1W.cjs → find-projects-Dh-1AK-m.cjs} +2 -2
  53. package/dist/{find-projects-xM2L0U1W.cjs.map → find-projects-Dh-1AK-m.cjs.map} +1 -1
  54. package/dist/{find-releases-BBTYr5Bx.cjs → find-releases-BsAkl--F.cjs} +2 -2
  55. package/dist/{find-releases-BBTYr5Bx.cjs.map → find-releases-BsAkl--F.cjs.map} +1 -1
  56. package/dist/{find-releases-BO2OF_uR.js → find-releases-Do_CywRr.js} +2 -2
  57. package/dist/{find-releases-BO2OF_uR.js.map → find-releases-Do_CywRr.js.map} +1 -1
  58. package/dist/{find-teams-CqUwp0EI.js → find-teams-BylQQ4FO.js} +2 -2
  59. package/dist/{find-teams-CqUwp0EI.js.map → find-teams-BylQQ4FO.js.map} +1 -1
  60. package/dist/{find-teams-B237Aq8U.cjs → find-teams-DXyzyQOy.cjs} +2 -2
  61. package/dist/{find-teams-B237Aq8U.cjs.map → find-teams-DXyzyQOy.cjs.map} +1 -1
  62. package/dist/{formatting-C80LN9iK.d.ts → formatting-C3qu84cm.d.ts} +4 -4
  63. package/dist/{formatting-C80LN9iK.d.ts.map → formatting-C3qu84cm.d.ts.map} +1 -1
  64. package/dist/{formatting-BxyhA4G3.d.cts → formatting-CmBYkI_e.d.cts} +4 -4
  65. package/dist/{formatting-BxyhA4G3.d.cts.map → formatting-CmBYkI_e.d.cts.map} +1 -1
  66. package/dist/{get-event-attachment-o0oH43Tv.cjs → get-event-attachment-BzhDeM6z.cjs} +2 -2
  67. package/dist/{get-event-attachment-o0oH43Tv.cjs.map → get-event-attachment-BzhDeM6z.cjs.map} +1 -1
  68. package/dist/{get-event-attachment-B-ElqztF.js → get-event-attachment-CVoMrETq.js} +2 -2
  69. package/dist/{get-event-attachment-B-ElqztF.js.map → get-event-attachment-CVoMrETq.js.map} +1 -1
  70. package/dist/{get-issue-details-CP_RyCpt.cjs → get-issue-details-C96fhps3.cjs} +2 -2
  71. package/dist/{get-issue-details-CP_RyCpt.cjs.map → get-issue-details-C96fhps3.cjs.map} +1 -1
  72. package/dist/{get-issue-details-CzroF7HR.js → get-issue-details-_uS_AZ_v.js} +2 -2
  73. package/dist/{get-issue-details-CzroF7HR.js.map → get-issue-details-_uS_AZ_v.js.map} +1 -1
  74. package/dist/{handler-BH_OLIbD.cjs → handler-7T1iMsQU.cjs} +2 -2
  75. package/dist/{handler-BH_OLIbD.cjs.map → handler-7T1iMsQU.cjs.map} +1 -1
  76. package/dist/{handler-aE_8mEm7.js → handler-B0bLvFFX.js} +2 -2
  77. package/dist/{handler-aE_8mEm7.js.map → handler-B0bLvFFX.js.map} +1 -1
  78. package/dist/{handler-O9fYgC9a.cjs → handler-DEjS3yks.cjs} +2 -2
  79. package/dist/{handler-O9fYgC9a.cjs.map → handler-DEjS3yks.cjs.map} +1 -1
  80. package/dist/{handler-ykkULTZ-.js → handler-DTN2HYXt.js} +2 -2
  81. package/dist/{handler-ykkULTZ-.js.map → handler-DTN2HYXt.js.map} +1 -1
  82. package/dist/index.cjs +33 -26
  83. package/dist/index.cjs.map +1 -1
  84. package/dist/index.js +33 -26
  85. package/dist/index.js.map +1 -1
  86. package/dist/internal/formatting.d.cts +4 -4
  87. package/dist/internal/formatting.d.ts +4 -4
  88. package/dist/internal/test-fixtures.d.cts +146 -146
  89. package/dist/internal/test-fixtures.d.cts.map +1 -1
  90. package/dist/internal/test-fixtures.d.ts +26 -26
  91. package/dist/internal/test-fixtures.d.ts.map +1 -1
  92. package/dist/{promptDefinitions-5V4-M69A.cjs → promptDefinitions-CWV8hsUX.cjs} +2 -2
  93. package/dist/{promptDefinitions-5V4-M69A.cjs.map → promptDefinitions-CWV8hsUX.cjs.map} +1 -1
  94. package/dist/{promptDefinitions-DyshsF51.js → promptDefinitions-DF8nuJVq.js} +2 -2
  95. package/dist/{promptDefinitions-DyshsF51.js.map → promptDefinitions-DF8nuJVq.js.map} +1 -1
  96. package/dist/promptDefinitions.cjs +3 -3
  97. package/dist/promptDefinitions.js +3 -3
  98. package/dist/{resources-TCvijqOA.cjs → resources-Dadvq5Fm.cjs} +2 -2
  99. package/dist/{resources-TCvijqOA.cjs.map → resources-Dadvq5Fm.cjs.map} +1 -1
  100. package/dist/{resources-CSxBC9gs.js → resources-jcFoc4JU.js} +2 -2
  101. package/dist/{resources-CSxBC9gs.js.map → resources-jcFoc4JU.js.map} +1 -1
  102. package/dist/resources.cjs +2 -2
  103. package/dist/resources.js +2 -2
  104. package/dist/{schema-DPL_hZXP.cjs → schema-BL3kwfOA.cjs} +2 -2
  105. package/dist/{schema-DPL_hZXP.cjs.map → schema-BL3kwfOA.cjs.map} +1 -1
  106. package/dist/{schema-Bv2fvxgy.js → schema-DMfkTR1l.js} +2 -2
  107. package/dist/{schema-Bv2fvxgy.js.map → schema-DMfkTR1l.js.map} +1 -1
  108. package/dist/{schema-BlkWypl3.d.ts → schema-DWmx8lgm.d.ts} +29 -29
  109. package/dist/{schema-BlkWypl3.d.ts.map → schema-DWmx8lgm.d.ts.map} +1 -1
  110. package/dist/{schema-CdDcpvrp.d.cts → schema-xbTf44Hn.d.cts} +227 -227
  111. package/dist/{schema-CdDcpvrp.d.cts.map → schema-xbTf44Hn.d.cts.map} +1 -1
  112. package/dist/schema.cjs +2 -2
  113. package/dist/schema.js +2 -2
  114. package/dist/{search-docs-ss09Dt0F.js → search-docs-DIm3ykOg.js} +2 -2
  115. package/dist/{search-docs-ss09Dt0F.js.map → search-docs-DIm3ykOg.js.map} +1 -1
  116. package/dist/{search-docs-CjIZDaD1.cjs → search-docs-EbjJuL9Q.cjs} +2 -2
  117. package/dist/{search-docs-CjIZDaD1.cjs.map → search-docs-EbjJuL9Q.cjs.map} +1 -1
  118. package/dist/{server-D78x_7Vz.js → server-CnJvaT0s.js} +10 -9
  119. package/dist/server-CnJvaT0s.js.map +1 -0
  120. package/dist/{server-DYFiTMLB.cjs → server-Dv9HxoRk.cjs} +10 -9
  121. package/dist/server-Dv9HxoRk.cjs.map +1 -0
  122. package/dist/server.cjs +22 -22
  123. package/dist/server.d.cts.map +1 -1
  124. package/dist/server.d.ts.map +1 -1
  125. package/dist/server.js +22 -22
  126. package/dist/{stdio-Be01KQkA.cjs → stdio-C6MAgHmA.cjs} +3 -3
  127. package/dist/{stdio-Be01KQkA.cjs.map → stdio-C6MAgHmA.cjs.map} +1 -1
  128. package/dist/{stdio-CDb2NHHD.js → stdio-DnAY4MSF.js} +3 -3
  129. package/dist/{stdio-CDb2NHHD.js.map → stdio-DnAY4MSF.js.map} +1 -1
  130. package/dist/tools/analyze-issue-with-seer.cjs +3 -3
  131. package/dist/tools/analyze-issue-with-seer.js +3 -3
  132. package/dist/tools/create-dsn.cjs +3 -3
  133. package/dist/tools/create-dsn.js +3 -3
  134. package/dist/tools/create-project.cjs +3 -3
  135. package/dist/tools/create-project.js +3 -3
  136. package/dist/tools/create-team.cjs +3 -3
  137. package/dist/tools/create-team.js +3 -3
  138. package/dist/tools/find-dsns.cjs +3 -3
  139. package/dist/tools/find-dsns.js +3 -3
  140. package/dist/tools/find-projects.cjs +3 -3
  141. package/dist/tools/find-projects.js +3 -3
  142. package/dist/tools/find-releases.cjs +3 -3
  143. package/dist/tools/find-releases.js +3 -3
  144. package/dist/tools/find-teams.cjs +3 -3
  145. package/dist/tools/find-teams.js +3 -3
  146. package/dist/tools/get-event-attachment.cjs +3 -3
  147. package/dist/tools/get-event-attachment.js +3 -3
  148. package/dist/tools/get-issue-details.cjs +3 -3
  149. package/dist/tools/get-issue-details.js +3 -3
  150. package/dist/tools/index.cjs +18 -18
  151. package/dist/tools/index.d.ts +68 -68
  152. package/dist/tools/index.js +18 -18
  153. package/dist/tools/search-docs.cjs +3 -3
  154. package/dist/tools/search-docs.js +3 -3
  155. package/dist/tools/search-events/agent.d.cts +3 -3
  156. package/dist/tools/search-events/agent.d.ts +3 -3
  157. package/dist/tools/search-events/formatters.d.cts +4 -4
  158. package/dist/tools/search-events/formatters.d.ts +4 -4
  159. package/dist/tools/search-events/handler.cjs +3 -3
  160. package/dist/tools/search-events/handler.js +3 -3
  161. package/dist/tools/search-events/index.cjs +3 -3
  162. package/dist/tools/search-events/index.js +3 -3
  163. package/dist/tools/search-events/utils.d.cts +4 -4
  164. package/dist/tools/search-events/utils.d.ts +4 -4
  165. package/dist/tools/search-issues/agent.d.cts +5 -5
  166. package/dist/tools/search-issues/agent.d.cts.map +1 -1
  167. package/dist/tools/search-issues/agent.d.ts +3 -3
  168. package/dist/tools/search-issues/formatters.d.cts +3 -3
  169. package/dist/tools/search-issues/formatters.d.ts +3 -3
  170. package/dist/tools/search-issues/handler.cjs +3 -3
  171. package/dist/tools/search-issues/handler.js +3 -3
  172. package/dist/tools/search-issues/index.cjs +3 -3
  173. package/dist/tools/search-issues/index.js +3 -3
  174. package/dist/tools/update-issue.cjs +3 -3
  175. package/dist/tools/update-issue.js +3 -3
  176. package/dist/tools/update-project.cjs +3 -3
  177. package/dist/tools/update-project.js +3 -3
  178. package/dist/tools/utils/api-utils.d.cts +3 -3
  179. package/dist/tools/utils/api-utils.d.ts +3 -3
  180. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  181. package/dist/tools/utils/formatting-utils.d.ts +3 -3
  182. package/dist/tools/utils/issue-utils.d.cts +4 -4
  183. package/dist/tools/utils/issue-utils.d.ts +4 -4
  184. package/dist/tools/utils/seer-utils.d.cts +3 -3
  185. package/dist/tools/utils/seer-utils.d.ts +3 -3
  186. package/dist/{tools-DvKm5uMs.js → tools-B0wbxDty.js} +16 -16
  187. package/dist/{tools-DvKm5uMs.js.map → tools-B0wbxDty.js.map} +1 -1
  188. package/dist/{tools-sQ2wM3Pi.cjs → tools-qfk-QAo0.cjs} +16 -16
  189. package/dist/{tools-sQ2wM3Pi.cjs.map → tools-qfk-QAo0.cjs.map} +1 -1
  190. package/dist/transports/stdio.cjs +23 -23
  191. package/dist/transports/stdio.js +23 -23
  192. package/dist/{types-BYtO24VE.d.cts → types-DE-njuHe.d.cts} +2 -2
  193. package/dist/{types-BYtO24VE.d.cts.map → types-DE-njuHe.d.cts.map} +1 -1
  194. package/dist/{types-B-8S69No.d.ts → types-DRywojVB.d.ts} +2 -2
  195. package/dist/{types-B-8S69No.d.ts.map → types-DRywojVB.d.ts.map} +1 -1
  196. package/dist/{update-issue-ndy2PF5G.js → update-issue-DoQYEQjf.js} +2 -2
  197. package/dist/{update-issue-ndy2PF5G.js.map → update-issue-DoQYEQjf.js.map} +1 -1
  198. package/dist/{update-issue-D77PudUi.cjs → update-issue-DqUsAuTd.cjs} +2 -2
  199. package/dist/{update-issue-D77PudUi.cjs.map → update-issue-DqUsAuTd.cjs.map} +1 -1
  200. package/dist/{update-project-Bxsi-BG_.js → update-project-C9CLxNfF.js} +2 -2
  201. package/dist/{update-project-Bxsi-BG_.js.map → update-project-C9CLxNfF.js.map} +1 -1
  202. package/dist/{update-project-DqECtbDA.cjs → update-project-DQu5PnE3.cjs} +2 -2
  203. package/dist/{update-project-DqECtbDA.cjs.map → update-project-DQu5PnE3.cjs.map} +1 -1
  204. package/dist/{utils-BwXbSgEI.d.ts → utils-CzV_Tz2C.d.ts} +2 -2
  205. package/dist/{utils-BwXbSgEI.d.ts.map → utils-CzV_Tz2C.d.ts.map} +1 -1
  206. package/dist/{utils-CtBGHj_N.d.cts → utils-Fm-dODdb.d.cts} +2 -2
  207. package/dist/{utils-CtBGHj_N.d.cts.map → utils-Fm-dODdb.d.cts.map} +1 -1
  208. package/dist/{version-CMS1IOUV.cjs → version-Bu9nGzm5.cjs} +2 -2
  209. package/dist/{version-CMS1IOUV.cjs.map → version-Bu9nGzm5.cjs.map} +1 -1
  210. package/dist/version-DvjTvYJs.js +6 -0
  211. package/dist/{version-Bj68uyCt.js.map → version-DvjTvYJs.js.map} +1 -1
  212. package/dist/version.cjs +1 -1
  213. package/dist/version.js +1 -1
  214. package/package.json +3 -3
  215. package/dist/constants-ClkMK29-.cjs.map +0 -1
  216. package/dist/constants-S7AU45oQ.js.map +0 -1
  217. package/dist/server-D78x_7Vz.js.map +0 -1
  218. package/dist/server-DYFiTMLB.cjs.map +0 -1
  219. package/dist/version-Bj68uyCt.js +0 -6
package/README.md CHANGED
@@ -6,6 +6,9 @@ This package is primarily for running the `stdio` MCP server. If you do not know
6
6
 
7
7
  <https://mcp.sentry.dev>
8
8
 
9
+ **Note:** Some tools require additional configuration:
10
+ - **AI-powered search tools** (`search_events` and `search_issues`): These tools use OpenAI to translate natural language queries into Sentry's query syntax. They require an `OPENAI_API_KEY` environment variable. Without this key, these specific tools will be unavailable, but all other tools will function normally.
11
+
9
12
  To utilize the `stdio` transport, you'll need to create an User Auth Token in Sentry with the necessary scopes. As of writing this is:
10
13
 
11
14
  ```
@@ -31,6 +34,7 @@ Note: You can also use environment variables:
31
34
  SENTRY_ACCESS_TOKEN=your-token
32
35
  SENTRY_HOST=sentry.example.com # Custom hostname
33
36
  SENTRY_URL=https://sentry.io # OR base URL (precedence over SENTRY_HOST)
37
+ OPENAI_API_KEY=your-openai-key # Required for AI-powered search tools (search_events, search_issues)
34
38
  ```
35
39
 
36
40
  The host configuration accepts two distinct formats:
@@ -1,6 +1,6 @@
1
- import "../schema-CdDcpvrp.cjs";
2
- import "../types-BYtO24VE.cjs";
3
- import { SentryApiService } from "../client-CgS3tjJG.cjs";
1
+ import "../schema-xbTf44Hn.cjs";
2
+ import "../types-DE-njuHe.cjs";
3
+ import { SentryApiService } from "../client-DV68BdcS.cjs";
4
4
  import "../index-BPSCxsMC.cjs";
5
5
  import * as ai2 from "ai";
6
6
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
- import "../schema-BlkWypl3.js";
2
- import "../types-B-8S69No.js";
3
- import { SentryApiService } from "../client-C_dDreKj.js";
1
+ import "../schema-DWmx8lgm.js";
2
+ import "../types-DRywojVB.js";
3
+ import { SentryApiService } from "../client-DLkUGS7r.js";
4
4
  import "../index-DE1muTvw.js";
5
5
  import { z } from "zod";
6
- import * as ai162 from "ai";
6
+ import * as ai157 from "ai";
7
7
 
8
8
  //#region src/agent-tools/discover-dataset-fields.d.ts
9
9
  type DatasetType = "events" | "errors" | "search_issues";
@@ -31,7 +31,7 @@ declare function discoverDatasetFields(apiService: SentryApiService, organizatio
31
31
  /**
32
32
  * Create a tool for discovering available fields in a dataset
33
33
  */
34
- declare function createDatasetFieldsTool(apiService: SentryApiService, organizationSlug: string, dataset: DatasetType, projectId?: string): ai162.Tool<z.ZodObject<{
34
+ declare function createDatasetFieldsTool(apiService: SentryApiService, organizationSlug: string, dataset: DatasetType, projectId?: string): ai157.Tool<z.ZodObject<{
35
35
  includeExamples: z.ZodBoolean;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  includeExamples: boolean;
@@ -40,7 +40,7 @@ declare function createDatasetFieldsTool(apiService: SentryApiService, organizat
40
40
  }>, DatasetFieldsResult> & {
41
41
  execute: (args: {
42
42
  includeExamples: boolean;
43
- }, options: ai162.ToolExecutionOptions) => PromiseLike<DatasetFieldsResult>;
43
+ }, options: ai157.ToolExecutionOptions) => PromiseLike<DatasetFieldsResult>;
44
44
  };
45
45
  /**
46
46
  * Get example values for common fields
@@ -1,6 +1,6 @@
1
- import "../schema-CdDcpvrp.cjs";
2
- import "../types-BYtO24VE.cjs";
3
- import { SentryApiService } from "../client-CgS3tjJG.cjs";
1
+ import "../schema-xbTf44Hn.cjs";
2
+ import "../types-DE-njuHe.cjs";
3
+ import { SentryApiService } from "../client-DV68BdcS.cjs";
4
4
  import "../index-BPSCxsMC.cjs";
5
5
  import * as ai4 from "ai";
6
6
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
- import "../schema-BlkWypl3.js";
2
- import "../types-B-8S69No.js";
3
- import { SentryApiService } from "../client-C_dDreKj.js";
1
+ import "../schema-DWmx8lgm.js";
2
+ import "../types-DRywojVB.js";
3
+ import { SentryApiService } from "../client-DLkUGS7r.js";
4
4
  import "../index-DE1muTvw.js";
5
5
  import { z } from "zod";
6
- import * as ai165 from "ai";
6
+ import * as ai161 from "ai";
7
7
 
8
8
  //#region src/agent-tools/lookup-otel-semantics.d.ts
9
9
  /**
@@ -13,7 +13,7 @@ declare function lookupOtelSemantics(namespace: string, searchTerm: string | und
13
13
  /**
14
14
  * Create the otel-semantics-lookup tool for AI agents
15
15
  */
16
- declare function createOtelLookupTool(apiService: SentryApiService, organizationSlug: string, projectId?: string): ai165.Tool<z.ZodObject<{
16
+ declare function createOtelLookupTool(apiService: SentryApiService, organizationSlug: string, projectId?: string): ai161.Tool<z.ZodObject<{
17
17
  namespace: z.ZodString;
18
18
  searchTerm: z.ZodOptional<z.ZodString>;
19
19
  dataset: z.ZodEnum<["spans", "errors", "logs"]>;
@@ -30,7 +30,7 @@ declare function createOtelLookupTool(apiService: SentryApiService, organization
30
30
  namespace: string;
31
31
  dataset: "spans" | "errors" | "logs";
32
32
  searchTerm?: string | undefined;
33
- }, options: ai165.ToolExecutionOptions) => PromiseLike<string>;
33
+ }, options: ai161.ToolExecutionOptions) => PromiseLike<string>;
34
34
  };
35
35
  //# sourceMappingURL=lookup-otel-semantics.d.ts.map
36
36
  //#endregion
@@ -1,6 +1,6 @@
1
- import "../schema-CdDcpvrp.cjs";
2
- import "../types-BYtO24VE.cjs";
3
- import { SentryApiService } from "../client-CgS3tjJG.cjs";
1
+ import "../schema-xbTf44Hn.cjs";
2
+ import "../types-DE-njuHe.cjs";
3
+ import { SentryApiService } from "../client-DV68BdcS.cjs";
4
4
  import "../index-BPSCxsMC.cjs";
5
5
  import * as ai6 from "ai";
6
6
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
- import "../schema-BlkWypl3.js";
2
- import "../types-B-8S69No.js";
3
- import { SentryApiService } from "../client-C_dDreKj.js";
1
+ import "../schema-DWmx8lgm.js";
2
+ import "../types-DRywojVB.js";
3
+ import { SentryApiService } from "../client-DLkUGS7r.js";
4
4
  import "../index-DE1muTvw.js";
5
5
  import { z } from "zod";
6
- import * as ai168 from "ai";
6
+ import * as ai165 from "ai";
7
7
 
8
8
  //#region src/agent-tools/whoami.d.ts
9
9
  interface WhoamiResult {
@@ -18,8 +18,8 @@ declare function getCurrentUser(apiService: SentryApiService): Promise<WhoamiRes
18
18
  /**
19
19
  * Create a tool for getting current user information
20
20
  */
21
- declare function createWhoamiTool(apiService: SentryApiService): ai168.Tool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, string> & {
22
- execute: (args: {}, options: ai168.ToolExecutionOptions) => PromiseLike<string>;
21
+ declare function createWhoamiTool(apiService: SentryApiService): ai165.Tool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, string> & {
22
+ execute: (args: {}, options: ai165.ToolExecutionOptions) => PromiseLike<string>;
23
23
  };
24
24
  //# sourceMappingURL=whoami.d.ts.map
25
25
 
@@ -2,7 +2,7 @@ const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
3
3
  const require_client = require('./client-CPrEfAwa.cjs');
4
4
  const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
5
- const require_schema = require('./schema-DPL_hZXP.cjs');
5
+ const require_schema = require('./schema-BL3kwfOA.cjs');
6
6
  const require_issue_helpers = require('./issue-helpers-s5fKLwJZ.cjs');
7
7
  const require_seer_utils = require('./seer-utils-C7Kv0gr8.cjs');
8
8
  const require_fetch_utils = require('./fetch-utils-DkcYwqBo.cjs');
@@ -199,4 +199,4 @@ Object.defineProperty(exports, 'analyze_issue_with_seer_default', {
199
199
  return analyze_issue_with_seer_default;
200
200
  }
201
201
  });
202
- //# sourceMappingURL=analyze-issue-with-seer-Dw9iqvSk.cjs.map
202
+ //# sourceMappingURL=analyze-issue-with-seer-ByoDTsq-.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-issue-with-seer-Dw9iqvSk.cjs","names":["context: ServerContext","SEER_MAX_RETRIES","SEER_INITIAL_RETRY_DELAY","ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"./utils/seer-utils\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on network errors or 5xx errors\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n // Retry on network/connection errors\n return true;\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;;AA0BA,sCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,qCACvB,MACE,WAAW,gBAAgB;GACzB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,YAAYC;GACZ,cAAcC;GACd,aAAa,CAAC,UAAU;AAEtB,QAAI,iBAAiBC,wBACnB,QAAO,MAAM,UAAU;AAGzB,WAAO;GACR;EACF,EACF;AAGD,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT,aAAa,OAAO;GACrB,EAAC;AACF,cAAW,gC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ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"./utils/seer-utils\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on network errors or 5xx errors\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n // Retry on network/connection errors\n return true;\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;;AA0BA,sCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,qCACvB,MACE,WAAW,gBAAgB;GACzB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,YAAYC;GACZ,cAAcC;GACd,aAAa,CAAC,UAAU;AAEtB,QAAI,iBAAiBC,wBACnB,QAAO,MAAM,UAAU;AAGzB,WAAO;GACR;EACF,EACF;AAGD,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT,aAAa,OAAO;GACrB,E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VC.js";
3
3
  import { apiServiceFromContext } from "./api-utils-BlUSO8xh.js";
4
- import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-Bv2fvxgy.js";
4
+ import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DMfkTR1l.js";
5
5
  import { parseIssueParams } from "./issue-helpers-CRx45FYG.js";
6
6
  import { SEER_INITIAL_RETRY_DELAY, SEER_MAX_RETRIES, SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isTerminalStatus } from "./seer-utils-NPHv8KYY.js";
7
7
  import { retryWithBackoff } from "./fetch-utils-C_Xj921x.js";
@@ -193,4 +193,4 @@ var analyze_issue_with_seer_default = defineTool({
193
193
 
194
194
  //#endregion
195
195
  export { analyze_issue_with_seer_default };
196
- //# sourceMappingURL=analyze-issue-with-seer-DcSwrWrs.js.map
196
+ //# sourceMappingURL=analyze-issue-with-seer-CpwtN4UA.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-issue-with-seer-DcSwrWrs.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"./utils/seer-utils\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on network errors or 5xx errors\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n // Retry on network/connection errors\n return true;\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;AA0BA,sCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,aAAa,EAC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AAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AAC3E,gBAAW;AACX,gBAAW;AACX,eAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,gBAAW;AACX,YAAO;IACR;AAGD,eAAW,6CAA6C,kBAAkB;GAC3E;EACF;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,qBAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,wBAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgD,eAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"analyze-issue-with-seer-CpwtN4UA.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"./utils/seer-utils\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on network errors or 5xx errors\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n // Retry on network/connection errors\n return true;\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n if (error instanceof ApiError) {\n return error.status >= 500;\n }\n return true;\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;AA0BA,sCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,aAAa,EACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM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C,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,gBAAW;AACX,YAAO;IACR;AAGD,eAAW,6CAA6C,kBAAkB;GAC3E;EACF;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,qBAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,wBAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgD,eAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
@@ -1,4 +1,4 @@
1
- import "../schema-CdDcpvrp.cjs";
2
- import "../types-BYtO24VE.cjs";
3
- import { ApiError, SentryApiService } from "../client-CgS3tjJG.cjs";
1
+ import "../schema-xbTf44Hn.cjs";
2
+ import "../types-DE-njuHe.cjs";
3
+ import { ApiError, SentryApiService } from "../client-DV68BdcS.cjs";
4
4
  export { ApiError, SentryApiService };
@@ -1,4 +1,4 @@
1
- import "../schema-BlkWypl3.js";
2
- import "../types-B-8S69No.js";
3
- import { ApiError, SentryApiService } from "../client-C_dDreKj.js";
1
+ import "../schema-DWmx8lgm.js";
2
+ import "../types-DRywojVB.js";
3
+ import { ApiError, SentryApiService } from "../client-DLkUGS7r.js";
4
4
  export { ApiError, SentryApiService };
@@ -1,5 +1,5 @@
1
- import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-CdDcpvrp.cjs";
2
- import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-BYtO24VE.cjs";
3
- import { ApiError, SentryApiService } from "../client-CgS3tjJG.cjs";
1
+ import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-xbTf44Hn.cjs";
2
+ import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-DE-njuHe.cjs";
3
+ import { ApiError, SentryApiService } from "../client-DV68BdcS.cjs";
4
4
  import "../index-BPSCxsMC.cjs";
5
5
  export { ApiError, ApiErrorSchema, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, User, UserRegionsSchema, UserSchema };
@@ -1,5 +1,5 @@
1
- import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-BlkWypl3.js";
2
- import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-B-8S69No.js";
3
- import { ApiError, SentryApiService } from "../client-C_dDreKj.js";
1
+ import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-DWmx8lgm.js";
2
+ import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-DRywojVB.js";
3
+ import { ApiError, SentryApiService } from "../client-DLkUGS7r.js";
4
4
  import "../index-DE1muTvw.js";
5
5
  export { ApiError, ApiErrorSchema, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, User, UserRegionsSchema, UserSchema };
@@ -1,2 +1,2 @@
1
- import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-CdDcpvrp.cjs";
1
+ import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-xbTf44Hn.cjs";
2
2
  export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
@@ -1,2 +1,2 @@
1
- import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-BlkWypl3.js";
1
+ import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-DWmx8lgm.js";
2
2
  export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
@@ -1,3 +1,3 @@
1
- import "../schema-CdDcpvrp.cjs";
2
- import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-BYtO24VE.cjs";
1
+ import "../schema-xbTf44Hn.cjs";
2
+ import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-DE-njuHe.cjs";
3
3
  export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
@@ -1,3 +1,3 @@
1
- import "../schema-BlkWypl3.js";
2
- import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-B-8S69No.js";
1
+ import "../schema-DWmx8lgm.js";
2
+ import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-DRywojVB.js";
3
3
  export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-B-8S69No.js";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-DRywojVB.js";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -644,12 +644,12 @@ declare class SentryApiService {
644
644
  query?: string;
645
645
  sortBy?: "last_seen" | "count";
646
646
  }, opts?: RequestOptions): Promise<{
647
+ issue: string;
647
648
  title: string;
648
649
  project: string;
649
- issue: string;
650
+ "issue.id": string | number;
650
651
  "count()": number;
651
652
  "last_seen()": string;
652
- "issue.id": string | number;
653
653
  }[]>;
654
654
  searchSpans({
655
655
  organizationSlug,
@@ -738,4 +738,4 @@ declare class SentryApiService {
738
738
  }
739
739
  //#endregion
740
740
  export { ApiError, SentryApiService };
741
- //# sourceMappingURL=client-C_dDreKj.d.ts.map
741
+ //# sourceMappingURL=client-DLkUGS7r.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-C_dDreKj.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AAiFA;AAmBC;AAkDD;;;;;;;;;;;;;AAspBM,cA3tBO,QAAA,SAAiB,KAAK,CA2tB7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KA5sBN,cAAA,GA6sBA;EAAO,IAqBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoTnB,cAt+BO,gBAAA,CAs+BP;EAAO,QACP,WAAA;EAAO,UACP,IAAA,EAAA,MAAA;EAAW,UACX,SAAA,EAAA,MAAA;EAAK;;;;;;;;;EA4EE,WACP,CAAA;IAAA,WAAA;IAAA;EAEG,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;YAgDd,iBACN,QAAQ;;;;;;;YAwBF,iBACN,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-BYtO24VE.cjs";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-DE-njuHe.cjs";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -738,4 +738,4 @@ declare class SentryApiService {
738
738
  }
739
739
  //#endregion
740
740
  export { ApiError, SentryApiService };
741
- //# sourceMappingURL=client-CgS3tjJG.d.cts.map
741
+ //# sourceMappingURL=client-DV68BdcS.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-CgS3tjJG.d.cts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AAiFA;AAmBC;AAkDD;;;;;;;;;;;;;AAspBM,cA3tBO,QAAA,SAAiB,KAAK,CA2tB7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KA5sBN,cAAA,GA6sBA;EAAO,IAqBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoTnB,cAt+BO,gBAAA,CAs+BP;EAAO,QACP,WAAA;EAAO,UACP,IAAA,EAAA,MAAA;EAAW,UACX,SAAA,EAAA,MAAA;EAAK;;;;;;;;;EA4EE,WACP,CAAA;IAAA,WAAA;IAAA;EAEG,CAFH,EAAA;IACA,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACA,IAAA,CAAA,EAAA,MAAA;EAAG,CAAA;EASgB;;;;;;;;EA6IA,OACZ,CAAA,IAAA,EAA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9
+ */
10
+ const MCP_SERVER_NAME = "Sentry MCP";
11
+ /**
8
12
  * Common Sentry platforms that have documentation available
9
13
  */
10
14
  const SENTRY_PLATFORMS_BASE = [
@@ -160,5 +164,5 @@ const SENTRY_FRAMEWORKS = {
160
164
  const SENTRY_GUIDES = [...SENTRY_PLATFORMS_BASE, ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) => guides.map((guide) => `${platform}/${guide}`))];
161
165
 
162
166
  //#endregion
163
- export { SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
164
- //# sourceMappingURL=constants-S7AU45oQ.js.map
167
+ export { MCP_SERVER_NAME, SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
168
+ //# sourceMappingURL=constants-Fe-4NTUo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-Fe-4NTUo.js","names":["SENTRY_FRAMEWORKS: Record<string, string[]>"],"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Constants for Sentry MCP server.\n *\n * Defines platform and framework combinations available in Sentry documentation.\n */\n\n/**\n * MCP Server identification\n */\nexport const MCP_SERVER_NAME = \"Sentry MCP\" as const;\n\n/**\n * Common Sentry platforms that have documentation available\n */\nexport const SENTRY_PLATFORMS_BASE = [\n \"javascript\",\n \"python\",\n \"java\",\n \"dotnet\",\n \"go\",\n \"php\",\n \"ruby\",\n \"android\",\n \"apple\",\n \"unity\",\n \"unreal\",\n \"rust\",\n \"elixir\",\n \"kotlin\",\n \"native\",\n \"dart\",\n \"godot\",\n \"nintendo-switch\",\n \"playstation\",\n \"powershell\",\n \"react-native\",\n \"xbox\",\n] as const;\n\n/**\n * Platform-specific frameworks that have Sentry guides\n */\nexport const SENTRY_FRAMEWORKS: Record<string, string[]> = {\n javascript: [\n \"nextjs\",\n \"react\",\n \"gatsby\",\n \"remix\",\n \"vue\",\n \"angular\",\n \"hono\",\n \"svelte\",\n \"express\",\n \"fastify\",\n \"astro\",\n \"bun\",\n \"capacitor\",\n \"cloudflare\",\n \"connect\",\n \"cordova\",\n \"deno\",\n \"electron\",\n \"ember\",\n \"nuxt\",\n \"solid\",\n \"solidstart\",\n \"sveltekit\",\n \"tanstack-react\",\n \"wasm\",\n \"node\",\n \"koa\",\n \"nestjs\",\n \"hapi\",\n ],\n python: [\n \"django\",\n \"flask\",\n \"fastapi\",\n \"celery\",\n \"tornado\",\n \"pyramid\",\n \"aiohttp\",\n \"anthropic\",\n \"airflow\",\n \"aws-lambda\",\n \"boto3\",\n \"bottle\",\n \"chalice\",\n \"dramatiq\",\n \"falcon\",\n \"langchain\",\n \"litestar\",\n \"logging\",\n \"loguru\",\n \"openai\",\n \"quart\",\n \"ray\",\n \"redis\",\n \"rq\",\n \"sanic\",\n \"sqlalchemy\",\n \"starlette\",\n ],\n dart: [\"flutter\"],\n dotnet: [\n \"aspnetcore\",\n \"maui\",\n \"wpf\",\n \"winforms\",\n \"aspnet\",\n \"aws-lambda\",\n \"azure-functions\",\n \"blazor-webassembly\",\n \"entityframework\",\n \"google-cloud-functions\",\n \"extensions-logging\",\n \"log4net\",\n \"nlog\",\n \"serilog\",\n \"uwp\",\n \"xamarin\",\n ],\n java: [\n \"spring\",\n \"spring-boot\",\n \"android\",\n \"jul\",\n \"log4j2\",\n \"logback\",\n \"servlet\",\n ],\n go: [\n \"echo\",\n \"fasthttp\",\n \"fiber\",\n \"gin\",\n \"http\",\n \"iris\",\n \"logrus\",\n \"negroni\",\n \"slog\",\n \"zerolog\",\n ],\n php: [\"laravel\", \"symfony\"],\n ruby: [\"delayed_job\", \"rack\", \"rails\", \"resque\", \"sidekiq\"],\n android: [\"kotlin\"],\n apple: [\"ios\", \"macos\", \"watchos\", \"tvos\", \"visionos\"],\n kotlin: [\"multiplatform\"],\n} as const;\n\n/**\n * All valid guides for Sentry docs search filtering.\n * A guide can be either a platform (e.g., 'javascript') or a platform/framework combination (e.g., 'javascript/nextjs').\n */\nexport const SENTRY_GUIDES = [\n // Base platforms\n ...SENTRY_PLATFORMS_BASE,\n // Platform/guide combinations\n ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) =>\n guides.map((guide) => `${platform}/${guide}`),\n ),\n] as const;\n"],"mappings":";;;;;;;;;AASA,MAAa,kBAAkB;;;;AAK/B,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;;;;AAKD,MAAaA,oBAA8C;CACzD,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,MAAM,CAAC,SAAU;CACjB,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,IAAI;EACF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,KAAK,CAAC,WAAW,SAAU;CAC3B,MAAM;EAAC;EAAe;EAAQ;EAAS;EAAU;CAAU;CAC3D,SAAS,CAAC,QAAS;CACnB,OAAO;EAAC;EAAO;EAAS;EAAW;EAAQ;CAAW;CACtD,QAAQ,CAAC,eAAgB;AAC1B;;;;;AAMD,MAAa,gBAAgB,CAE3B,GAAG,uBAEH,GAAG,OAAO,QAAQ,kBAAkB,CAAC,QAAQ,CAAC,CAAC,UAAU,OAAO,KAC9D,OAAO,IAAI,CAAC,aAAa,SAAS,GAAG,QAAQ,CAC9C,AACF"}
@@ -6,6 +6,10 @@
6
6
  * Defines platform and framework combinations available in Sentry documentation.
7
7
  */
8
8
  /**
9
+ * MCP Server identification
10
+ */
11
+ const MCP_SERVER_NAME = "Sentry MCP";
12
+ /**
9
13
  * Common Sentry platforms that have documentation available
10
14
  */
11
15
  const SENTRY_PLATFORMS_BASE = [
@@ -161,6 +165,12 @@ const SENTRY_FRAMEWORKS = {
161
165
  const SENTRY_GUIDES = [...SENTRY_PLATFORMS_BASE, ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) => guides.map((guide) => `${platform}/${guide}`))];
162
166
 
163
167
  //#endregion
168
+ Object.defineProperty(exports, 'MCP_SERVER_NAME', {
169
+ enumerable: true,
170
+ get: function () {
171
+ return MCP_SERVER_NAME;
172
+ }
173
+ });
164
174
  Object.defineProperty(exports, 'SENTRY_FRAMEWORKS', {
165
175
  enumerable: true,
166
176
  get: function () {
@@ -179,4 +189,4 @@ Object.defineProperty(exports, 'SENTRY_PLATFORMS_BASE', {
179
189
  return SENTRY_PLATFORMS_BASE;
180
190
  }
181
191
  });
182
- //# sourceMappingURL=constants-ClkMK29-.cjs.map
192
+ //# sourceMappingURL=constants-wrEbre3j.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-wrEbre3j.cjs","names":["SENTRY_FRAMEWORKS: Record<string, string[]>"],"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Constants for Sentry MCP server.\n *\n * Defines platform and framework combinations available in Sentry documentation.\n */\n\n/**\n * MCP Server identification\n */\nexport const MCP_SERVER_NAME = \"Sentry MCP\" as const;\n\n/**\n * Common Sentry platforms that have documentation available\n */\nexport const SENTRY_PLATFORMS_BASE = [\n \"javascript\",\n \"python\",\n \"java\",\n \"dotnet\",\n \"go\",\n \"php\",\n \"ruby\",\n \"android\",\n \"apple\",\n \"unity\",\n \"unreal\",\n \"rust\",\n \"elixir\",\n \"kotlin\",\n \"native\",\n \"dart\",\n \"godot\",\n \"nintendo-switch\",\n \"playstation\",\n \"powershell\",\n \"react-native\",\n \"xbox\",\n] as const;\n\n/**\n * Platform-specific frameworks that have Sentry guides\n */\nexport const SENTRY_FRAMEWORKS: Record<string, string[]> = {\n javascript: [\n \"nextjs\",\n \"react\",\n \"gatsby\",\n \"remix\",\n \"vue\",\n \"angular\",\n \"hono\",\n \"svelte\",\n \"express\",\n \"fastify\",\n \"astro\",\n \"bun\",\n \"capacitor\",\n \"cloudflare\",\n \"connect\",\n \"cordova\",\n \"deno\",\n \"electron\",\n \"ember\",\n \"nuxt\",\n \"solid\",\n \"solidstart\",\n \"sveltekit\",\n \"tanstack-react\",\n \"wasm\",\n \"node\",\n \"koa\",\n \"nestjs\",\n \"hapi\",\n ],\n python: [\n \"django\",\n \"flask\",\n \"fastapi\",\n \"celery\",\n \"tornado\",\n \"pyramid\",\n \"aiohttp\",\n \"anthropic\",\n \"airflow\",\n \"aws-lambda\",\n \"boto3\",\n \"bottle\",\n \"chalice\",\n \"dramatiq\",\n \"falcon\",\n \"langchain\",\n \"litestar\",\n \"logging\",\n \"loguru\",\n \"openai\",\n \"quart\",\n \"ray\",\n \"redis\",\n \"rq\",\n \"sanic\",\n \"sqlalchemy\",\n \"starlette\",\n ],\n dart: [\"flutter\"],\n dotnet: [\n \"aspnetcore\",\n \"maui\",\n \"wpf\",\n \"winforms\",\n \"aspnet\",\n \"aws-lambda\",\n \"azure-functions\",\n \"blazor-webassembly\",\n \"entityframework\",\n \"google-cloud-functions\",\n \"extensions-logging\",\n \"log4net\",\n \"nlog\",\n \"serilog\",\n \"uwp\",\n \"xamarin\",\n ],\n java: [\n \"spring\",\n \"spring-boot\",\n \"android\",\n \"jul\",\n \"log4j2\",\n \"logback\",\n \"servlet\",\n ],\n go: [\n \"echo\",\n \"fasthttp\",\n \"fiber\",\n \"gin\",\n \"http\",\n \"iris\",\n \"logrus\",\n \"negroni\",\n \"slog\",\n \"zerolog\",\n ],\n php: [\"laravel\", \"symfony\"],\n ruby: [\"delayed_job\", \"rack\", \"rails\", \"resque\", \"sidekiq\"],\n android: [\"kotlin\"],\n apple: [\"ios\", \"macos\", \"watchos\", \"tvos\", \"visionos\"],\n kotlin: [\"multiplatform\"],\n} as const;\n\n/**\n * All valid guides for Sentry docs search filtering.\n * A guide can be either a platform (e.g., 'javascript') or a platform/framework combination (e.g., 'javascript/nextjs').\n */\nexport const SENTRY_GUIDES = [\n // Base platforms\n ...SENTRY_PLATFORMS_BASE,\n // Platform/guide combinations\n ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) =>\n guides.map((guide) => `${platform}/${guide}`),\n ),\n] as const;\n"],"mappings":";;;;;;;;;;AASA,MAAa,kBAAkB;;;;AAK/B,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;;;;AAKD,MAAaA,oBAA8C;CACzD,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,MAAM,CAAC,SAAU;CACjB,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,IAAI;EACF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD;CACD,KAAK,CAAC,WAAW,SAAU;CAC3B,MAAM;EAAC;EAAe;EAAQ;EAAS;EAAU;CAAU;CAC3D,SAAS,CAAC,QAAS;CACnB,OAAO;EAAC;EAAO;EAAS;EAAW;EAAQ;CAAW;CACtD,QAAQ,CAAC,eAAgB;AAC1B;;;;;AAMD,MAAa,gBAAgB,CAE3B,GAAG,uBAEH,GAAG,OAAO,QAAQ,kBAAkB,CAAC,QAAQ,CAAC,CAAC,UAAU,OAAO,KAC9D,OAAO,IAAI,CAAC,aAAa,SAAS,GAAG,QAAQ,CAC9C,AACF"}
@@ -1,5 +1,6 @@
1
- const require_constants = require('./constants-ClkMK29-.cjs');
1
+ const require_constants = require('./constants-wrEbre3j.cjs');
2
2
 
3
+ exports.MCP_SERVER_NAME = require_constants.MCP_SERVER_NAME;
3
4
  exports.SENTRY_FRAMEWORKS = require_constants.SENTRY_FRAMEWORKS;
4
5
  exports.SENTRY_GUIDES = require_constants.SENTRY_GUIDES;
5
6
  exports.SENTRY_PLATFORMS_BASE = require_constants.SENTRY_PLATFORMS_BASE;
@@ -4,6 +4,10 @@
4
4
  *
5
5
  * Defines platform and framework combinations available in Sentry documentation.
6
6
  */
7
+ /**
8
+ * MCP Server identification
9
+ */
10
+ declare const MCP_SERVER_NAME: "Sentry MCP";
7
11
  /**
8
12
  * Common Sentry platforms that have documentation available
9
13
  */
@@ -19,5 +23,5 @@ declare const SENTRY_FRAMEWORKS: Record<string, string[]>;
19
23
  declare const SENTRY_GUIDES: readonly ["javascript", "python", "java", "dotnet", "go", "php", "ruby", "android", "apple", "unity", "unreal", "rust", "elixir", "kotlin", "native", "dart", "godot", "nintendo-switch", "playstation", "powershell", "react-native", "xbox", ...string[]];
20
24
  //# sourceMappingURL=constants.d.ts.map
21
25
  //#endregion
22
- export { SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
26
+ export { MCP_SERVER_NAME, SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
23
27
  //# sourceMappingURL=constants.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.cts","names":[],"sources":["../src/constants.ts"],"sourcesContent":[],"mappings":";;AASA;AA4BA;AAgHA;;;;;cA5Ia;;;;cA4BA,mBAAmB;;;;;cAgHnB"}
1
+ {"version":3,"file":"constants.d.cts","names":[],"sources":["../src/constants.ts"],"sourcesContent":[],"mappings":";;AASA;AAKA;AA4BA;AAgHA;;;;cAjJa;;;;cAKA;;;;cA4BA,mBAAmB;;;;;cAgHnB"}
@@ -4,6 +4,10 @@
4
4
  *
5
5
  * Defines platform and framework combinations available in Sentry documentation.
6
6
  */
7
+ /**
8
+ * MCP Server identification
9
+ */
10
+ declare const MCP_SERVER_NAME: "Sentry MCP";
7
11
  /**
8
12
  * Common Sentry platforms that have documentation available
9
13
  */
@@ -19,5 +23,5 @@ declare const SENTRY_FRAMEWORKS: Record<string, string[]>;
19
23
  declare const SENTRY_GUIDES: readonly ["javascript", "python", "java", "dotnet", "go", "php", "ruby", "android", "apple", "unity", "unreal", "rust", "elixir", "kotlin", "native", "dart", "godot", "nintendo-switch", "playstation", "powershell", "react-native", "xbox", ...string[]];
20
24
  //# sourceMappingURL=constants.d.ts.map
21
25
  //#endregion
22
- export { SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
26
+ export { MCP_SERVER_NAME, SENTRY_FRAMEWORKS, SENTRY_GUIDES, SENTRY_PLATFORMS_BASE };
23
27
  //# sourceMappingURL=constants.d.ts.map