@sentry/mcp-server 0.3.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/api-client/client.cjs +2 -2
  2. package/dist/api-client/client.d.cts +3 -3
  3. package/dist/api-client/client.d.ts +3 -3
  4. package/dist/api-client/client.js +2 -2
  5. package/dist/api-client/client.test.cjs +2 -2
  6. package/dist/api-client/client.test.js +2 -2
  7. package/dist/api-client/index.cjs +6 -3
  8. package/dist/api-client/index.d.cts +4 -4
  9. package/dist/api-client/index.d.ts +4 -4
  10. package/dist/api-client/index.js +3 -3
  11. package/dist/api-client/schema.cjs +5 -2
  12. package/dist/api-client/schema.d.cts +2 -2
  13. package/dist/api-client/schema.d.ts +2 -2
  14. package/dist/api-client/schema.js +2 -2
  15. package/dist/api-client/types.d.cts +2 -2
  16. package/dist/api-client/types.d.ts +2 -2
  17. package/dist/{client-BKLE5Lkt.js → client-CpiyA8FR.js} +39 -36
  18. package/dist/client-CpiyA8FR.js.map +1 -0
  19. package/dist/{client-C_XfRSu3.cjs → client-GWxnTlSP.cjs} +39 -36
  20. package/dist/client-GWxnTlSP.cjs.map +1 -0
  21. package/dist/{client.d-DqhLulmH.d.cts → client.d-ar2BvC_o.d.cts} +23 -21
  22. package/dist/client.d-ar2BvC_o.d.cts.map +1 -0
  23. package/dist/{client.d-DHlu3a8d.d.ts → client.d-eUhyVsN_.d.ts} +22 -20
  24. package/dist/client.d-eUhyVsN_.d.ts.map +1 -0
  25. package/dist/index.cjs +13 -10
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.js +13 -10
  28. package/dist/index.js.map +1 -1
  29. package/dist/internal/formatting.d.cts +3 -3
  30. package/dist/internal/formatting.d.ts +3 -3
  31. package/dist/internal/issue-helpers.cjs +4 -2
  32. package/dist/internal/issue-helpers.d.cts +30 -1
  33. package/dist/internal/issue-helpers.d.cts.map +1 -1
  34. package/dist/internal/issue-helpers.d.ts +30 -1
  35. package/dist/internal/issue-helpers.d.ts.map +1 -1
  36. package/dist/internal/issue-helpers.js +2 -2
  37. package/dist/internal/issue-helpers.test.cjs +41 -1
  38. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  39. package/dist/internal/issue-helpers.test.js +41 -1
  40. package/dist/internal/issue-helpers.test.js.map +1 -1
  41. package/dist/issue-helpers-CdWMhVWJ.cjs +87 -0
  42. package/dist/issue-helpers-CdWMhVWJ.cjs.map +1 -0
  43. package/dist/{issue-helpers-C0kEdXOE.cjs → issue-helpers-Cx6bFCUv.js} +38 -9
  44. package/dist/issue-helpers-Cx6bFCUv.js.map +1 -0
  45. package/dist/{promptDefinitions-CaRMCDPI.js → promptDefinitions-C9aGYWZ6.js} +2 -2
  46. package/dist/{promptDefinitions-CaRMCDPI.js.map → promptDefinitions-C9aGYWZ6.js.map} +1 -1
  47. package/dist/{promptDefinitions-CVB4IyVf.cjs → promptDefinitions-OnJHLqrZ.cjs} +2 -2
  48. package/dist/{promptDefinitions-CVB4IyVf.cjs.map → promptDefinitions-OnJHLqrZ.cjs.map} +1 -1
  49. package/dist/promptDefinitions.cjs +2 -2
  50. package/dist/promptDefinitions.js +2 -2
  51. package/dist/{schema-Bc6_gUDA.cjs → schema-BnXdl41H.cjs} +71 -13
  52. package/dist/schema-BnXdl41H.cjs.map +1 -0
  53. package/dist/{schema-D1B8p0Ib.js → schema-BzPfPMq7.js} +54 -14
  54. package/dist/schema-BzPfPMq7.js.map +1 -0
  55. package/dist/{schema-BvloqMHW.cjs → schema-_xqdSRLo.cjs} +8 -1
  56. package/dist/{schema-BvloqMHW.cjs.map → schema-_xqdSRLo.cjs.map} +1 -1
  57. package/dist/{schema-k04PdSCK.js → schema-pZrPEvtp.js} +3 -2
  58. package/dist/{schema-k04PdSCK.js.map → schema-pZrPEvtp.js.map} +1 -1
  59. package/dist/schema.cjs +2 -1
  60. package/dist/{schema.d-BGUOiJ76.d.cts → schema.d-DJThZSuo.d.cts} +3001 -235
  61. package/dist/schema.d-DJThZSuo.d.cts.map +1 -0
  62. package/dist/{schema.d-CPAOqBrB.d.ts → schema.d-DwpHAZsi.d.ts} +2777 -11
  63. package/dist/schema.d-DwpHAZsi.d.ts.map +1 -0
  64. package/dist/schema.d.cts +2 -1
  65. package/dist/schema.d.cts.map +1 -1
  66. package/dist/schema.d.ts +2 -1
  67. package/dist/schema.d.ts.map +1 -1
  68. package/dist/schema.js +2 -2
  69. package/dist/{server-DQ_dBWQy.cjs → server-D-JY6wPp.cjs} +5 -5
  70. package/dist/{server-DQ_dBWQy.cjs.map → server-D-JY6wPp.cjs.map} +1 -1
  71. package/dist/{server-DHbbEoa2.js → server-oefnmsHZ.js} +5 -5
  72. package/dist/{server-DHbbEoa2.js.map → server-oefnmsHZ.js.map} +1 -1
  73. package/dist/server.cjs +8 -8
  74. package/dist/server.d.cts +2 -2
  75. package/dist/server.d.ts +2 -2
  76. package/dist/server.js +8 -8
  77. package/dist/stdio-B31CD06F.js +19 -0
  78. package/dist/stdio-B31CD06F.js.map +1 -0
  79. package/dist/{stdio-DFsA-33B.cjs → stdio-BsGPoQfx.cjs} +10 -7
  80. package/dist/stdio-BsGPoQfx.cjs.map +1 -0
  81. package/dist/test-setup.cjs +42 -5
  82. package/dist/test-setup.cjs.map +1 -1
  83. package/dist/test-setup.js +42 -5
  84. package/dist/test-setup.js.map +1 -1
  85. package/dist/{toolDefinitions-BJ0cyDce.cjs → toolDefinitions-C0t6Y5Su.cjs} +26 -5
  86. package/dist/toolDefinitions-C0t6Y5Su.cjs.map +1 -0
  87. package/dist/{toolDefinitions-L20Lv3AW.js → toolDefinitions-DB4pPvgy.js} +26 -5
  88. package/dist/toolDefinitions-DB4pPvgy.js.map +1 -0
  89. package/dist/toolDefinitions.cjs +2 -2
  90. package/dist/{toolDefinitions.d-C0zMvL9m.d.ts → toolDefinitions.d-C5JUBInb.d.ts} +16 -1
  91. package/dist/toolDefinitions.d-C5JUBInb.d.ts.map +1 -0
  92. package/dist/{toolDefinitions.d-Dx4q--0l.d.cts → toolDefinitions.d-CsT15_MF.d.cts} +16 -1
  93. package/dist/toolDefinitions.d-CsT15_MF.d.cts.map +1 -0
  94. package/dist/toolDefinitions.d.cts +1 -1
  95. package/dist/toolDefinitions.d.ts +1 -1
  96. package/dist/toolDefinitions.js +2 -2
  97. package/dist/toolDefinitions.test.cjs +2 -2
  98. package/dist/toolDefinitions.test.js +2 -2
  99. package/dist/{tools-B22b8Jjm.cjs → tools-Ck2CHZeM.cjs} +118 -101
  100. package/dist/tools-Ck2CHZeM.cjs.map +1 -0
  101. package/dist/{tools-CXgh-6Vh.js → tools-_Y9eV4LR.js} +118 -101
  102. package/dist/tools-_Y9eV4LR.js.map +1 -0
  103. package/dist/tools.cjs +4 -4
  104. package/dist/tools.d.cts +32 -75
  105. package/dist/tools.d.cts.map +1 -1
  106. package/dist/tools.d.ts +32 -75
  107. package/dist/tools.d.ts.map +1 -1
  108. package/dist/tools.js +4 -4
  109. package/dist/tools.test.cjs +53 -7
  110. package/dist/tools.test.cjs.map +1 -1
  111. package/dist/tools.test.js +53 -7
  112. package/dist/tools.test.js.map +1 -1
  113. package/dist/transports/stdio.cjs +9 -9
  114. package/dist/transports/stdio.d.cts +2 -2
  115. package/dist/transports/stdio.d.cts.map +1 -1
  116. package/dist/transports/stdio.d.ts +2 -2
  117. package/dist/transports/stdio.d.ts.map +1 -1
  118. package/dist/transports/stdio.js +9 -9
  119. package/dist/{types.d-CLP4B6Fv.d.ts → types.d-B-acZthg.d.ts} +2 -2
  120. package/dist/{types.d-CLP4B6Fv.d.ts.map → types.d-B-acZthg.d.ts.map} +1 -1
  121. package/dist/{types.d-DHI7S0mb.d.ts → types.d-BeKsSRmy.d.ts} +2 -2
  122. package/dist/{types.d-DHI7S0mb.d.ts.map → types.d-BeKsSRmy.d.ts.map} +1 -1
  123. package/dist/{types.d-DQGXrBBW.d.cts → types.d-BfhMPrt_.d.cts} +2 -2
  124. package/dist/{types.d-DQGXrBBW.d.cts.map → types.d-BfhMPrt_.d.cts.map} +1 -1
  125. package/dist/{types.d-DO95JHyL.d.cts → types.d-Z5OEf3rw.d.cts} +2 -2
  126. package/dist/{types.d-DO95JHyL.d.cts.map → types.d-Z5OEf3rw.d.cts.map} +1 -1
  127. package/dist/types.d.cts +2 -2
  128. package/dist/types.d.ts +2 -2
  129. package/dist/version-B5Fav38l.js +6 -0
  130. package/dist/version-B5Fav38l.js.map +1 -0
  131. package/dist/{version-NkgNAUSU.cjs → version-BFCcfCIj.cjs} +2 -2
  132. package/dist/version-BFCcfCIj.cjs.map +1 -0
  133. package/dist/version.cjs +1 -1
  134. package/dist/version.d.cts +1 -1
  135. package/dist/version.d.cts.map +1 -1
  136. package/dist/version.d.ts +1 -1
  137. package/dist/version.d.ts.map +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +3 -4
  140. package/dist/client-BKLE5Lkt.js.map +0 -1
  141. package/dist/client-C_XfRSu3.cjs.map +0 -1
  142. package/dist/client.d-DHlu3a8d.d.ts.map +0 -1
  143. package/dist/client.d-DqhLulmH.d.cts.map +0 -1
  144. package/dist/issue-helpers-C0kEdXOE.cjs.map +0 -1
  145. package/dist/issue-helpers-DFde36Zu.js +0 -32
  146. package/dist/issue-helpers-DFde36Zu.js.map +0 -1
  147. package/dist/schema-Bc6_gUDA.cjs.map +0 -1
  148. package/dist/schema-D1B8p0Ib.js.map +0 -1
  149. package/dist/schema.d-BGUOiJ76.d.cts.map +0 -1
  150. package/dist/schema.d-CPAOqBrB.d.ts.map +0 -1
  151. package/dist/stdio-9quCNGCH.js +0 -16
  152. package/dist/stdio-9quCNGCH.js.map +0 -1
  153. package/dist/stdio-DFsA-33B.cjs.map +0 -1
  154. package/dist/toolDefinitions-BJ0cyDce.cjs.map +0 -1
  155. package/dist/toolDefinitions-L20Lv3AW.js.map +0 -1
  156. package/dist/toolDefinitions.d-C0zMvL9m.d.ts.map +0 -1
  157. package/dist/toolDefinitions.d-Dx4q--0l.d.cts.map +0 -1
  158. package/dist/tools-B22b8Jjm.cjs.map +0 -1
  159. package/dist/tools-CXgh-6Vh.js.map +0 -1
  160. package/dist/version-Cmu_Jzgy.js +0 -6
  161. package/dist/version-Cmu_Jzgy.js.map +0 -1
  162. package/dist/version-NkgNAUSU.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-BtT13l48.cjs');
3
- const require_schema = require('./schema-BvloqMHW.cjs');
3
+ const require_schema = require('./schema-_xqdSRLo.cjs');
4
4
  const zod = require_chunk.__toESM(require("zod"));
5
5
 
6
6
  //#region src/toolDefinitions.ts
@@ -28,7 +28,10 @@ const TOOL_DEFINITIONS = [
28
28
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
29
29
  "</hints>"
30
30
  ].join("\n"),
31
- paramsSchema: { organizationSlug: require_schema.ParamOrganizationSlug.optional() }
31
+ paramsSchema: {
32
+ organizationSlug: require_schema.ParamOrganizationSlug.optional(),
33
+ regionUrl: require_schema.ParamRegionUrl.optional()
34
+ }
32
35
  },
33
36
  {
34
37
  name: "list_projects",
@@ -43,7 +46,10 @@ const TOOL_DEFINITIONS = [
43
46
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
44
47
  "</hints>"
45
48
  ].join("\n"),
46
- paramsSchema: { organizationSlug: require_schema.ParamOrganizationSlug.optional() }
49
+ paramsSchema: {
50
+ organizationSlug: require_schema.ParamOrganizationSlug.optional(),
51
+ regionUrl: require_schema.ParamRegionUrl.optional()
52
+ }
47
53
  },
48
54
  {
49
55
  name: "list_issues",
@@ -78,6 +84,7 @@ const TOOL_DEFINITIONS = [
78
84
  ].join("\n"),
79
85
  paramsSchema: {
80
86
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
87
+ regionUrl: require_schema.ParamRegionUrl.optional(),
81
88
  projectSlug: require_schema.ParamProjectSlug.optional(),
82
89
  query: require_schema.ParamQuery.optional(),
83
90
  sortBy: zod.z.enum([
@@ -104,6 +111,7 @@ const TOOL_DEFINITIONS = [
104
111
  ].join("\n"),
105
112
  paramsSchema: {
106
113
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
114
+ regionUrl: require_schema.ParamRegionUrl.optional(),
107
115
  projectSlug: require_schema.ParamProjectSlug.optional()
108
116
  }
109
117
  },
@@ -119,7 +127,10 @@ const TOOL_DEFINITIONS = [
119
127
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
120
128
  "</hints>"
121
129
  ].join("\n"),
122
- paramsSchema: { organizationSlug: require_schema.ParamOrganizationSlug.optional() }
130
+ paramsSchema: {
131
+ organizationSlug: require_schema.ParamOrganizationSlug.optional(),
132
+ regionUrl: require_schema.ParamRegionUrl.optional()
133
+ }
123
134
  },
124
135
  {
125
136
  name: "get_issue_summary",
@@ -138,6 +149,7 @@ const TOOL_DEFINITIONS = [
138
149
  ].join("\n"),
139
150
  paramsSchema: {
140
151
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
152
+ regionUrl: require_schema.ParamRegionUrl.optional(),
141
153
  issueId: require_schema.ParamIssueShortId.optional(),
142
154
  issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
143
155
  }
@@ -158,6 +170,7 @@ const TOOL_DEFINITIONS = [
158
170
  ].join("\n"),
159
171
  paramsSchema: {
160
172
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
173
+ regionUrl: require_schema.ParamRegionUrl.optional(),
161
174
  issueId: require_schema.ParamIssueShortId.optional(),
162
175
  issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
163
176
  }
@@ -198,6 +211,7 @@ const TOOL_DEFINITIONS = [
198
211
  ].join("\n"),
199
212
  paramsSchema: {
200
213
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
214
+ regionUrl: require_schema.ParamRegionUrl.optional(),
201
215
  projectSlug: require_schema.ParamProjectSlug.optional(),
202
216
  filename: zod.z.string().describe("The filename to search for errors in.").optional(),
203
217
  transaction: require_schema.ParamTransaction.optional(),
@@ -236,6 +250,7 @@ const TOOL_DEFINITIONS = [
236
250
  ].join("\n"),
237
251
  paramsSchema: {
238
252
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
253
+ regionUrl: require_schema.ParamRegionUrl.optional(),
239
254
  projectSlug: require_schema.ParamProjectSlug.optional(),
240
255
  transaction: require_schema.ParamTransaction.optional(),
241
256
  query: require_schema.ParamQuery.optional(),
@@ -256,6 +271,7 @@ const TOOL_DEFINITIONS = [
256
271
  ].join("\n"),
257
272
  paramsSchema: {
258
273
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
274
+ regionUrl: require_schema.ParamRegionUrl.optional(),
259
275
  name: zod.z.string().describe("The name of the team to create.")
260
276
  }
261
277
  },
@@ -283,6 +299,7 @@ const TOOL_DEFINITIONS = [
283
299
  ].join("\n"),
284
300
  paramsSchema: {
285
301
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
302
+ regionUrl: require_schema.ParamRegionUrl.optional(),
286
303
  teamSlug: zod.z.string().describe("The team's slug."),
287
304
  name: zod.z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
288
305
  platform: require_schema.ParamPlatform.optional()
@@ -312,6 +329,7 @@ const TOOL_DEFINITIONS = [
312
329
  ].join("\n"),
313
330
  paramsSchema: {
314
331
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
332
+ regionUrl: require_schema.ParamRegionUrl.optional(),
315
333
  projectSlug: zod.z.string().describe("The project's slug."),
316
334
  name: zod.z.string().describe("The name of the DSN to create.")
317
335
  }
@@ -331,6 +349,7 @@ const TOOL_DEFINITIONS = [
331
349
  ].join("\n"),
332
350
  paramsSchema: {
333
351
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
352
+ regionUrl: require_schema.ParamRegionUrl.optional(),
334
353
  projectSlug: zod.z.string().describe("The project's slug.")
335
354
  }
336
355
  },
@@ -362,6 +381,7 @@ const TOOL_DEFINITIONS = [
362
381
  ].join("\n"),
363
382
  paramsSchema: {
364
383
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
384
+ regionUrl: require_schema.ParamRegionUrl.optional(),
365
385
  issueId: require_schema.ParamIssueShortId.optional(),
366
386
  issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
367
387
  }
@@ -391,6 +411,7 @@ const TOOL_DEFINITIONS = [
391
411
  ].join("\n"),
392
412
  paramsSchema: {
393
413
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
414
+ regionUrl: require_schema.ParamRegionUrl.optional(),
394
415
  issueId: require_schema.ParamIssueShortId.optional(),
395
416
  issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
396
417
  }
@@ -404,4 +425,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
404
425
  return TOOL_DEFINITIONS;
405
426
  }
406
427
  });
407
- //# sourceMappingURL=toolDefinitions-BJ0cyDce.cjs.map
428
+ //# sourceMappingURL=toolDefinitions-C0t6Y5Su.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-C0t6Y5Su.cjs","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamTeamSlug,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n },\n {\n name: \"list_teams\" as const,\n description: [\n \"List all teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n },\n {\n name: \"list_releases\" as const,\n description: [\n \"List all releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"get_issue_summary\" as const,\n description: [\n \"Retrieve a summary of an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View a summary of an issue in Sentry\",\n \"\",\n \"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_issue_details\" as const,\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Investigate a specific production error\",\n \"- Access detailed error information and stacktraces from Sentry\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n },\n {\n name: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"search_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n },\n {\n name: \"create_team\" as const,\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().describe(\"The name of the team to create.\"),\n },\n },\n {\n name: \"create_project\" as const,\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().describe(\"The team's slug.\"),\n name: z\n .string()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n },\n {\n name: \"create_dsn\" as const,\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new DSN for a specific project\",\n \"\",\n \"<examples>\",\n \"### Create a new DSN for the 'my-project' project\",\n \"\",\n \"```\",\n \"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Default')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_dsns\" as const,\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_autofix\" as const,\n description: [\n \"Analyze an issue in Sentry, identify a root cause, and suggest a fix for it.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Determine the root cause of an issue.\",\n \"- Generate a plan for fixing an issue.\",\n \"- Implement a fix for an issue.\",\n \"\",\n \"This operation may take some time, so you should call `get_autofix_status()` to check the status of the analysis after you begin it.\",\n \"\",\n \"<examples>\",\n \"### Analyze and propose a fix for 'ISSUE-123' in Sentry\",\n \"\",\n \"```\",\n \"begin_autofix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_autofix_status\" as const,\n description: [\n \"Get the status of a root cause analysis for an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the root cause analysis for an issue.\",\n \"- Get the status of a fix for an issue.\",\n \"\",\n \"<examples>\",\n \"### Get the status of a fix for the 'ISSUE-123' issue\",\n \"\",\n \"```\",\n \"get_autofix_status(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;;;AAcA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,UAAU,MACP,QAAQ,CACR,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,MAAM,MAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,UAAU,MAAE,QAAQ,CAAC,SAAS,mBAAmB;GACjD,MAAM,MACH,QAAQ,CACR,SACC,oJACD;GACH,UAAU,6BAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,SAAS,sBAAsB;GACvD,MAAM,MAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,SAAS,sBAAsB;EACxD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
@@ -1,4 +1,4 @@
1
- import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamTransaction } from "./schema-k04PdSCK.js";
1
+ import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-pZrPEvtp.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/toolDefinitions.ts
@@ -26,7 +26,10 @@ const TOOL_DEFINITIONS = [
26
26
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
27
27
  "</hints>"
28
28
  ].join("\n"),
29
- paramsSchema: { organizationSlug: ParamOrganizationSlug.optional() }
29
+ paramsSchema: {
30
+ organizationSlug: ParamOrganizationSlug.optional(),
31
+ regionUrl: ParamRegionUrl.optional()
32
+ }
30
33
  },
31
34
  {
32
35
  name: "list_projects",
@@ -41,7 +44,10 @@ const TOOL_DEFINITIONS = [
41
44
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
42
45
  "</hints>"
43
46
  ].join("\n"),
44
- paramsSchema: { organizationSlug: ParamOrganizationSlug.optional() }
47
+ paramsSchema: {
48
+ organizationSlug: ParamOrganizationSlug.optional(),
49
+ regionUrl: ParamRegionUrl.optional()
50
+ }
45
51
  },
46
52
  {
47
53
  name: "list_issues",
@@ -76,6 +82,7 @@ const TOOL_DEFINITIONS = [
76
82
  ].join("\n"),
77
83
  paramsSchema: {
78
84
  organizationSlug: ParamOrganizationSlug.optional(),
85
+ regionUrl: ParamRegionUrl.optional(),
79
86
  projectSlug: ParamProjectSlug.optional(),
80
87
  query: ParamQuery.optional(),
81
88
  sortBy: z.enum([
@@ -102,6 +109,7 @@ const TOOL_DEFINITIONS = [
102
109
  ].join("\n"),
103
110
  paramsSchema: {
104
111
  organizationSlug: ParamOrganizationSlug.optional(),
112
+ regionUrl: ParamRegionUrl.optional(),
105
113
  projectSlug: ParamProjectSlug.optional()
106
114
  }
107
115
  },
@@ -117,7 +125,10 @@ const TOOL_DEFINITIONS = [
117
125
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
118
126
  "</hints>"
119
127
  ].join("\n"),
120
- paramsSchema: { organizationSlug: ParamOrganizationSlug.optional() }
128
+ paramsSchema: {
129
+ organizationSlug: ParamOrganizationSlug.optional(),
130
+ regionUrl: ParamRegionUrl.optional()
131
+ }
121
132
  },
122
133
  {
123
134
  name: "get_issue_summary",
@@ -136,6 +147,7 @@ const TOOL_DEFINITIONS = [
136
147
  ].join("\n"),
137
148
  paramsSchema: {
138
149
  organizationSlug: ParamOrganizationSlug.optional(),
150
+ regionUrl: ParamRegionUrl.optional(),
139
151
  issueId: ParamIssueShortId.optional(),
140
152
  issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
141
153
  }
@@ -156,6 +168,7 @@ const TOOL_DEFINITIONS = [
156
168
  ].join("\n"),
157
169
  paramsSchema: {
158
170
  organizationSlug: ParamOrganizationSlug.optional(),
171
+ regionUrl: ParamRegionUrl.optional(),
159
172
  issueId: ParamIssueShortId.optional(),
160
173
  issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
161
174
  }
@@ -196,6 +209,7 @@ const TOOL_DEFINITIONS = [
196
209
  ].join("\n"),
197
210
  paramsSchema: {
198
211
  organizationSlug: ParamOrganizationSlug.optional(),
212
+ regionUrl: ParamRegionUrl.optional(),
199
213
  projectSlug: ParamProjectSlug.optional(),
200
214
  filename: z.string().describe("The filename to search for errors in.").optional(),
201
215
  transaction: ParamTransaction.optional(),
@@ -234,6 +248,7 @@ const TOOL_DEFINITIONS = [
234
248
  ].join("\n"),
235
249
  paramsSchema: {
236
250
  organizationSlug: ParamOrganizationSlug.optional(),
251
+ regionUrl: ParamRegionUrl.optional(),
237
252
  projectSlug: ParamProjectSlug.optional(),
238
253
  transaction: ParamTransaction.optional(),
239
254
  query: ParamQuery.optional(),
@@ -254,6 +269,7 @@ const TOOL_DEFINITIONS = [
254
269
  ].join("\n"),
255
270
  paramsSchema: {
256
271
  organizationSlug: ParamOrganizationSlug.optional(),
272
+ regionUrl: ParamRegionUrl.optional(),
257
273
  name: z.string().describe("The name of the team to create.")
258
274
  }
259
275
  },
@@ -281,6 +297,7 @@ const TOOL_DEFINITIONS = [
281
297
  ].join("\n"),
282
298
  paramsSchema: {
283
299
  organizationSlug: ParamOrganizationSlug.optional(),
300
+ regionUrl: ParamRegionUrl.optional(),
284
301
  teamSlug: z.string().describe("The team's slug."),
285
302
  name: z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
286
303
  platform: ParamPlatform.optional()
@@ -310,6 +327,7 @@ const TOOL_DEFINITIONS = [
310
327
  ].join("\n"),
311
328
  paramsSchema: {
312
329
  organizationSlug: ParamOrganizationSlug.optional(),
330
+ regionUrl: ParamRegionUrl.optional(),
313
331
  projectSlug: z.string().describe("The project's slug."),
314
332
  name: z.string().describe("The name of the DSN to create.")
315
333
  }
@@ -329,6 +347,7 @@ const TOOL_DEFINITIONS = [
329
347
  ].join("\n"),
330
348
  paramsSchema: {
331
349
  organizationSlug: ParamOrganizationSlug.optional(),
350
+ regionUrl: ParamRegionUrl.optional(),
332
351
  projectSlug: z.string().describe("The project's slug.")
333
352
  }
334
353
  },
@@ -360,6 +379,7 @@ const TOOL_DEFINITIONS = [
360
379
  ].join("\n"),
361
380
  paramsSchema: {
362
381
  organizationSlug: ParamOrganizationSlug.optional(),
382
+ regionUrl: ParamRegionUrl.optional(),
363
383
  issueId: ParamIssueShortId.optional(),
364
384
  issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
365
385
  }
@@ -389,6 +409,7 @@ const TOOL_DEFINITIONS = [
389
409
  ].join("\n"),
390
410
  paramsSchema: {
391
411
  organizationSlug: ParamOrganizationSlug.optional(),
412
+ regionUrl: ParamRegionUrl.optional(),
392
413
  issueId: ParamIssueShortId.optional(),
393
414
  issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
394
415
  }
@@ -397,4 +418,4 @@ const TOOL_DEFINITIONS = [
397
418
 
398
419
  //#endregion
399
420
  export { TOOL_DEFINITIONS };
400
- //# sourceMappingURL=toolDefinitions-L20Lv3AW.js.map
421
+ //# sourceMappingURL=toolDefinitions-DB4pPvgy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-DB4pPvgy.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamTeamSlug,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n },\n {\n name: \"list_teams\" as const,\n description: [\n \"List all teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n },\n {\n name: \"list_releases\" as const,\n description: [\n \"List all releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"get_issue_summary\" as const,\n description: [\n \"Retrieve a summary of an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View a summary of an issue in Sentry\",\n \"\",\n \"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_issue_details\" as const,\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Investigate a specific production error\",\n \"- Access detailed error information and stacktraces from Sentry\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n },\n {\n name: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"search_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n },\n {\n name: \"create_team\" as const,\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().describe(\"The name of the team to create.\"),\n },\n },\n {\n name: \"create_project\" as const,\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().describe(\"The team's slug.\"),\n name: z\n .string()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n },\n {\n name: \"create_dsn\" as const,\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new DSN for a specific project\",\n \"\",\n \"<examples>\",\n \"### Create a new DSN for the 'my-project' project\",\n \"\",\n \"```\",\n \"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Default')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_dsns\" as const,\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_autofix\" as const,\n description: [\n \"Analyze an issue in Sentry, identify a root cause, and suggest a fix for it.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Determine the root cause of an issue.\",\n \"- Generate a plan for fixing an issue.\",\n \"- Implement a fix for an issue.\",\n \"\",\n \"This operation may take some time, so you should call `get_autofix_status()` to check the status of the analysis after you begin it.\",\n \"\",\n \"<examples>\",\n \"### Analyze and propose a fix for 'ISSUE-123' in Sentry\",\n \"\",\n \"```\",\n \"begin_autofix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_autofix_status\" as const,\n description: [\n \"Get the status of a root cause analysis for an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the root cause analysis for an issue.\",\n \"- Get the status of a fix for an issue.\",\n \"\",\n \"<examples>\",\n \"### Get the status of a fix for the 'ISSUE-123' issue\",\n \"\",\n \"```\",\n \"get_autofix_status(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;AAcA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,UAAU,EACP,QAAQ,CACR,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,UAAU,EAAE,QAAQ,CAAC,SAAS,mBAAmB;GACjD,MAAM,EACH,QAAQ,CACR,SACC,oJACD;GACH,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,SAAS,sBAAsB;GACvD,MAAM,EAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,SAAS,sBAAsB;EACxD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
@@ -1,4 +1,4 @@
1
- require('./schema-BvloqMHW.cjs');
2
- const require_toolDefinitions = require('./toolDefinitions-BJ0cyDce.cjs');
1
+ require('./schema-_xqdSRLo.cjs');
2
+ const require_toolDefinitions = require('./toolDefinitions-C0t6Y5Su.cjs');
3
3
 
4
4
  exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS
@@ -10,6 +10,7 @@ declare const TOOL_DEFINITIONS: ({
10
10
  description: string;
11
11
  paramsSchema: {
12
12
  organizationSlug: z.ZodOptional<z.ZodString>;
13
+ regionUrl: z.ZodOptional<z.ZodString>;
13
14
  projectSlug?: undefined;
14
15
  query?: undefined;
15
16
  sortBy?: undefined;
@@ -26,6 +27,7 @@ declare const TOOL_DEFINITIONS: ({
26
27
  description: string;
27
28
  paramsSchema: {
28
29
  organizationSlug: z.ZodOptional<z.ZodString>;
30
+ regionUrl: z.ZodOptional<z.ZodString>;
29
31
  projectSlug?: undefined;
30
32
  query?: undefined;
31
33
  sortBy?: undefined;
@@ -42,6 +44,7 @@ declare const TOOL_DEFINITIONS: ({
42
44
  description: string;
43
45
  paramsSchema: {
44
46
  organizationSlug: z.ZodOptional<z.ZodString>;
47
+ regionUrl: z.ZodOptional<z.ZodString>;
45
48
  projectSlug: z.ZodOptional<z.ZodString>;
46
49
  query: z.ZodOptional<z.ZodString>;
47
50
  sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
@@ -58,6 +61,7 @@ declare const TOOL_DEFINITIONS: ({
58
61
  description: string;
59
62
  paramsSchema: {
60
63
  organizationSlug: z.ZodOptional<z.ZodString>;
64
+ regionUrl: z.ZodOptional<z.ZodString>;
61
65
  projectSlug: z.ZodOptional<z.ZodString>;
62
66
  query?: undefined;
63
67
  sortBy?: undefined;
@@ -74,6 +78,7 @@ declare const TOOL_DEFINITIONS: ({
74
78
  description: string;
75
79
  paramsSchema: {
76
80
  organizationSlug: z.ZodOptional<z.ZodString>;
81
+ regionUrl: z.ZodOptional<z.ZodString>;
77
82
  projectSlug?: undefined;
78
83
  query?: undefined;
79
84
  sortBy?: undefined;
@@ -90,6 +95,7 @@ declare const TOOL_DEFINITIONS: ({
90
95
  description: string;
91
96
  paramsSchema: {
92
97
  organizationSlug: z.ZodOptional<z.ZodString>;
98
+ regionUrl: z.ZodOptional<z.ZodString>;
93
99
  issueId: z.ZodOptional<z.ZodString>;
94
100
  issueUrl: z.ZodOptional<z.ZodString>;
95
101
  projectSlug?: undefined;
@@ -106,6 +112,7 @@ declare const TOOL_DEFINITIONS: ({
106
112
  description: string;
107
113
  paramsSchema: {
108
114
  organizationSlug: z.ZodOptional<z.ZodString>;
115
+ regionUrl: z.ZodOptional<z.ZodString>;
109
116
  issueId: z.ZodOptional<z.ZodString>;
110
117
  issueUrl: z.ZodOptional<z.ZodString>;
111
118
  projectSlug?: undefined;
@@ -122,6 +129,7 @@ declare const TOOL_DEFINITIONS: ({
122
129
  description: string;
123
130
  paramsSchema: {
124
131
  organizationSlug: z.ZodOptional<z.ZodString>;
132
+ regionUrl: z.ZodOptional<z.ZodString>;
125
133
  projectSlug: z.ZodOptional<z.ZodString>;
126
134
  filename: z.ZodOptional<z.ZodString>;
127
135
  transaction: z.ZodOptional<z.ZodString>;
@@ -138,6 +146,7 @@ declare const TOOL_DEFINITIONS: ({
138
146
  description: string;
139
147
  paramsSchema: {
140
148
  organizationSlug: z.ZodOptional<z.ZodString>;
149
+ regionUrl: z.ZodOptional<z.ZodString>;
141
150
  projectSlug: z.ZodOptional<z.ZodString>;
142
151
  transaction: z.ZodOptional<z.ZodString>;
143
152
  query: z.ZodOptional<z.ZodString>;
@@ -154,6 +163,7 @@ declare const TOOL_DEFINITIONS: ({
154
163
  description: string;
155
164
  paramsSchema: {
156
165
  organizationSlug: z.ZodOptional<z.ZodString>;
166
+ regionUrl: z.ZodOptional<z.ZodString>;
157
167
  name: z.ZodString;
158
168
  projectSlug?: undefined;
159
169
  query?: undefined;
@@ -170,6 +180,7 @@ declare const TOOL_DEFINITIONS: ({
170
180
  description: string;
171
181
  paramsSchema: {
172
182
  organizationSlug: z.ZodOptional<z.ZodString>;
183
+ regionUrl: z.ZodOptional<z.ZodString>;
173
184
  teamSlug: z.ZodString;
174
185
  name: z.ZodString;
175
186
  platform: z.ZodOptional<z.ZodString>;
@@ -186,6 +197,7 @@ declare const TOOL_DEFINITIONS: ({
186
197
  description: string;
187
198
  paramsSchema: {
188
199
  organizationSlug: z.ZodOptional<z.ZodString>;
200
+ regionUrl: z.ZodOptional<z.ZodString>;
189
201
  projectSlug: z.ZodString;
190
202
  name: z.ZodString;
191
203
  query?: undefined;
@@ -202,6 +214,7 @@ declare const TOOL_DEFINITIONS: ({
202
214
  description: string;
203
215
  paramsSchema: {
204
216
  organizationSlug: z.ZodOptional<z.ZodString>;
217
+ regionUrl: z.ZodOptional<z.ZodString>;
205
218
  projectSlug: z.ZodString;
206
219
  query?: undefined;
207
220
  sortBy?: undefined;
@@ -218,6 +231,7 @@ declare const TOOL_DEFINITIONS: ({
218
231
  description: string;
219
232
  paramsSchema: {
220
233
  organizationSlug: z.ZodOptional<z.ZodString>;
234
+ regionUrl: z.ZodOptional<z.ZodString>;
221
235
  issueId: z.ZodOptional<z.ZodString>;
222
236
  issueUrl: z.ZodOptional<z.ZodString>;
223
237
  projectSlug?: undefined;
@@ -234,6 +248,7 @@ declare const TOOL_DEFINITIONS: ({
234
248
  description: string;
235
249
  paramsSchema: {
236
250
  organizationSlug: z.ZodOptional<z.ZodString>;
251
+ regionUrl: z.ZodOptional<z.ZodString>;
237
252
  issueId: z.ZodOptional<z.ZodString>;
238
253
  issueUrl: z.ZodOptional<z.ZodString>;
239
254
  projectSlug?: undefined;
@@ -249,4 +264,4 @@ declare const TOOL_DEFINITIONS: ({
249
264
 
250
265
  //# sourceMappingURL=toolDefinitions.d.ts.map
251
266
  export { TOOL_DEFINITIONS as TOOL_DEFINITIONS$1 };
252
- //# sourceMappingURL=toolDefinitions.d-C0zMvL9m.d.ts.map
267
+ //# sourceMappingURL=toolDefinitions.d-C5JUBInb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions.d-C5JUBInb.d.ts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAca;;EAAA,WAAA,EAAA,MA+bZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
@@ -10,6 +10,7 @@ declare const TOOL_DEFINITIONS: ({
10
10
  description: string;
11
11
  paramsSchema: {
12
12
  organizationSlug: z.ZodOptional<z.ZodString>;
13
+ regionUrl: z.ZodOptional<z.ZodString>;
13
14
  projectSlug?: undefined;
14
15
  query?: undefined;
15
16
  sortBy?: undefined;
@@ -26,6 +27,7 @@ declare const TOOL_DEFINITIONS: ({
26
27
  description: string;
27
28
  paramsSchema: {
28
29
  organizationSlug: z.ZodOptional<z.ZodString>;
30
+ regionUrl: z.ZodOptional<z.ZodString>;
29
31
  projectSlug?: undefined;
30
32
  query?: undefined;
31
33
  sortBy?: undefined;
@@ -42,6 +44,7 @@ declare const TOOL_DEFINITIONS: ({
42
44
  description: string;
43
45
  paramsSchema: {
44
46
  organizationSlug: z.ZodOptional<z.ZodString>;
47
+ regionUrl: z.ZodOptional<z.ZodString>;
45
48
  projectSlug: z.ZodOptional<z.ZodString>;
46
49
  query: z.ZodOptional<z.ZodString>;
47
50
  sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
@@ -58,6 +61,7 @@ declare const TOOL_DEFINITIONS: ({
58
61
  description: string;
59
62
  paramsSchema: {
60
63
  organizationSlug: z.ZodOptional<z.ZodString>;
64
+ regionUrl: z.ZodOptional<z.ZodString>;
61
65
  projectSlug: z.ZodOptional<z.ZodString>;
62
66
  query?: undefined;
63
67
  sortBy?: undefined;
@@ -74,6 +78,7 @@ declare const TOOL_DEFINITIONS: ({
74
78
  description: string;
75
79
  paramsSchema: {
76
80
  organizationSlug: z.ZodOptional<z.ZodString>;
81
+ regionUrl: z.ZodOptional<z.ZodString>;
77
82
  projectSlug?: undefined;
78
83
  query?: undefined;
79
84
  sortBy?: undefined;
@@ -90,6 +95,7 @@ declare const TOOL_DEFINITIONS: ({
90
95
  description: string;
91
96
  paramsSchema: {
92
97
  organizationSlug: z.ZodOptional<z.ZodString>;
98
+ regionUrl: z.ZodOptional<z.ZodString>;
93
99
  issueId: z.ZodOptional<z.ZodString>;
94
100
  issueUrl: z.ZodOptional<z.ZodString>;
95
101
  projectSlug?: undefined;
@@ -106,6 +112,7 @@ declare const TOOL_DEFINITIONS: ({
106
112
  description: string;
107
113
  paramsSchema: {
108
114
  organizationSlug: z.ZodOptional<z.ZodString>;
115
+ regionUrl: z.ZodOptional<z.ZodString>;
109
116
  issueId: z.ZodOptional<z.ZodString>;
110
117
  issueUrl: z.ZodOptional<z.ZodString>;
111
118
  projectSlug?: undefined;
@@ -122,6 +129,7 @@ declare const TOOL_DEFINITIONS: ({
122
129
  description: string;
123
130
  paramsSchema: {
124
131
  organizationSlug: z.ZodOptional<z.ZodString>;
132
+ regionUrl: z.ZodOptional<z.ZodString>;
125
133
  projectSlug: z.ZodOptional<z.ZodString>;
126
134
  filename: z.ZodOptional<z.ZodString>;
127
135
  transaction: z.ZodOptional<z.ZodString>;
@@ -138,6 +146,7 @@ declare const TOOL_DEFINITIONS: ({
138
146
  description: string;
139
147
  paramsSchema: {
140
148
  organizationSlug: z.ZodOptional<z.ZodString>;
149
+ regionUrl: z.ZodOptional<z.ZodString>;
141
150
  projectSlug: z.ZodOptional<z.ZodString>;
142
151
  transaction: z.ZodOptional<z.ZodString>;
143
152
  query: z.ZodOptional<z.ZodString>;
@@ -154,6 +163,7 @@ declare const TOOL_DEFINITIONS: ({
154
163
  description: string;
155
164
  paramsSchema: {
156
165
  organizationSlug: z.ZodOptional<z.ZodString>;
166
+ regionUrl: z.ZodOptional<z.ZodString>;
157
167
  name: z.ZodString;
158
168
  projectSlug?: undefined;
159
169
  query?: undefined;
@@ -170,6 +180,7 @@ declare const TOOL_DEFINITIONS: ({
170
180
  description: string;
171
181
  paramsSchema: {
172
182
  organizationSlug: z.ZodOptional<z.ZodString>;
183
+ regionUrl: z.ZodOptional<z.ZodString>;
173
184
  teamSlug: z.ZodString;
174
185
  name: z.ZodString;
175
186
  platform: z.ZodOptional<z.ZodString>;
@@ -186,6 +197,7 @@ declare const TOOL_DEFINITIONS: ({
186
197
  description: string;
187
198
  paramsSchema: {
188
199
  organizationSlug: z.ZodOptional<z.ZodString>;
200
+ regionUrl: z.ZodOptional<z.ZodString>;
189
201
  projectSlug: z.ZodString;
190
202
  name: z.ZodString;
191
203
  query?: undefined;
@@ -202,6 +214,7 @@ declare const TOOL_DEFINITIONS: ({
202
214
  description: string;
203
215
  paramsSchema: {
204
216
  organizationSlug: z.ZodOptional<z.ZodString>;
217
+ regionUrl: z.ZodOptional<z.ZodString>;
205
218
  projectSlug: z.ZodString;
206
219
  query?: undefined;
207
220
  sortBy?: undefined;
@@ -218,6 +231,7 @@ declare const TOOL_DEFINITIONS: ({
218
231
  description: string;
219
232
  paramsSchema: {
220
233
  organizationSlug: z.ZodOptional<z.ZodString>;
234
+ regionUrl: z.ZodOptional<z.ZodString>;
221
235
  issueId: z.ZodOptional<z.ZodString>;
222
236
  issueUrl: z.ZodOptional<z.ZodString>;
223
237
  projectSlug?: undefined;
@@ -234,6 +248,7 @@ declare const TOOL_DEFINITIONS: ({
234
248
  description: string;
235
249
  paramsSchema: {
236
250
  organizationSlug: z.ZodOptional<z.ZodString>;
251
+ regionUrl: z.ZodOptional<z.ZodString>;
237
252
  issueId: z.ZodOptional<z.ZodString>;
238
253
  issueUrl: z.ZodOptional<z.ZodString>;
239
254
  projectSlug?: undefined;
@@ -249,4 +264,4 @@ declare const TOOL_DEFINITIONS: ({
249
264
 
250
265
  //# sourceMappingURL=toolDefinitions.d.ts.map
251
266
  export { TOOL_DEFINITIONS };
252
- //# sourceMappingURL=toolDefinitions.d-Dx4q--0l.d.cts.map
267
+ //# sourceMappingURL=toolDefinitions.d-CsT15_MF.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions.d-CsT15_MF.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAca;;EAAA,WAAA,EAAA,MA+bZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}