@sentry/mcp-server 0.14.0 → 0.15.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 (176) hide show
  1. package/dist/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-BkVrrh28.cjs} +9 -16
  2. package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +1 -0
  3. package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-CoqsTklL.js} +9 -16
  4. package/dist/analyze-issue-with-seer-CoqsTklL.js.map +1 -0
  5. package/dist/api-client/client.d.cts +3 -3
  6. package/dist/api-client/client.d.ts +3 -3
  7. package/dist/api-client/index.d.cts +3 -3
  8. package/dist/api-client/index.d.ts +3 -3
  9. package/dist/api-client/schema.d.cts +1 -1
  10. package/dist/api-client/schema.d.ts +1 -1
  11. package/dist/api-client/types.d.cts +2 -2
  12. package/dist/api-client/types.d.ts +2 -2
  13. package/dist/{client-CILwfx6G.d.cts → client-CQ9Xe1aN.d.cts} +7 -7
  14. package/dist/{client-CILwfx6G.d.cts.map → client-CQ9Xe1aN.d.cts.map} +1 -1
  15. package/dist/{client-BCN17Wbp.d.ts → client-VCJp6Kcu.d.ts} +6 -6
  16. package/dist/{client-BCN17Wbp.d.ts.map → client-VCJp6Kcu.d.ts.map} +1 -1
  17. package/dist/{create-dsn-CDcL2DLD.js → create-dsn-D530I7Lr.js} +1 -1
  18. package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-D530I7Lr.js.map} +1 -1
  19. package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-Dz8nyTFw.cjs} +1 -1
  20. package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-Dz8nyTFw.cjs.map} +1 -1
  21. package/dist/{create-project-Bg5uDkc4.cjs → create-project-BxzRiryg.cjs} +2 -2
  22. package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-BxzRiryg.cjs.map} +1 -1
  23. package/dist/{create-project-DY5mFznV.js → create-project-K1od5Rhx.js} +2 -2
  24. package/dist/{create-project-DY5mFznV.js.map → create-project-K1od5Rhx.js.map} +1 -1
  25. package/dist/{create-team-5purh64V.cjs → create-team-CJhrccc1.cjs} +1 -1
  26. package/dist/{create-team-5purh64V.cjs.map → create-team-CJhrccc1.cjs.map} +1 -1
  27. package/dist/{create-team-C2R7EUC3.js → create-team-zHz00C6Q.js} +1 -1
  28. package/dist/{create-team-C2R7EUC3.js.map → create-team-zHz00C6Q.js.map} +1 -1
  29. package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BoEP0N7B.js} +1 -1
  30. package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BoEP0N7B.js.map} +1 -1
  31. package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-CK59RaUJ.cjs} +1 -1
  32. package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-CK59RaUJ.cjs.map} +1 -1
  33. package/dist/{find-errors-CuRm4PzL.js → find-errors-C3oUMeRi.js} +1 -1
  34. package/dist/{find-errors-CuRm4PzL.js.map → find-errors-C3oUMeRi.js.map} +1 -1
  35. package/dist/{find-errors-Drzv7hzM.cjs → find-errors-CB9NpSxG.cjs} +1 -1
  36. package/dist/{find-errors-Drzv7hzM.cjs.map → find-errors-CB9NpSxG.cjs.map} +1 -1
  37. package/dist/{find-transactions-DZCj81jP.js → find-transactions-BiBgg-AE.js} +1 -1
  38. package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-BiBgg-AE.js.map} +1 -1
  39. package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-DuZyqjhF.cjs} +1 -1
  40. package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-DuZyqjhF.cjs.map} +1 -1
  41. package/dist/{formatting-pUm38KOj.js → formatting-Bvyded57.js} +34 -2
  42. package/dist/formatting-Bvyded57.js.map +1 -0
  43. package/dist/{formatting-kdIeURER.d.ts → formatting-CcTK2X8V.d.cts} +7 -5
  44. package/dist/formatting-CcTK2X8V.d.cts.map +1 -0
  45. package/dist/{formatting-BlMiQa9i.cjs → formatting-D0Aki7rK.cjs} +33 -2
  46. package/dist/formatting-D0Aki7rK.cjs.map +1 -0
  47. package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
  48. package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
  49. package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
  50. package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
  51. package/dist/{formatting-CHh9Q_OW.d.cts → formatting-vtXxusbn.d.ts} +7 -5
  52. package/dist/formatting-vtXxusbn.d.ts.map +1 -0
  53. package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-C-ig2-3F.cjs} +1 -1
  54. package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-C-ig2-3F.cjs.map} +1 -1
  55. package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-DVCPpUMj.js} +1 -1
  56. package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-DVCPpUMj.js.map} +1 -1
  57. package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-Dcmzxknx.js} +23 -10
  58. package/dist/get-issue-details-Dcmzxknx.js.map +1 -0
  59. package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-lBrYR9yx.cjs} +23 -10
  60. package/dist/get-issue-details-lBrYR9yx.cjs.map +1 -0
  61. package/dist/index.cjs +21 -21
  62. package/dist/index.js +21 -21
  63. package/dist/internal/formatting.cjs +2 -1
  64. package/dist/internal/formatting.d.cts +4 -4
  65. package/dist/internal/formatting.d.ts +4 -4
  66. package/dist/internal/formatting.js +2 -1
  67. package/dist/internal/test-fixtures.d.cts +44 -44
  68. package/dist/internal/test-fixtures.d.cts.map +1 -1
  69. package/dist/internal/test-fixtures.d.ts +170 -170
  70. package/dist/internal/test-fixtures.d.ts.map +1 -1
  71. package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
  72. package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
  73. package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
  74. package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
  75. package/dist/logging.cjs +1 -1
  76. package/dist/logging.js +1 -1
  77. package/dist/{schema--5m4KI84.d.ts → schema-3NeMWRAm.d.cts} +452 -452
  78. package/dist/{schema-ya35hkEL.d.cts.map → schema-3NeMWRAm.d.cts.map} +1 -1
  79. package/dist/{schema-ya35hkEL.d.cts → schema-B3CzDGJk.d.ts} +401 -401
  80. package/dist/{schema--5m4KI84.d.ts.map → schema-B3CzDGJk.d.ts.map} +1 -1
  81. package/dist/schema.d.cts.map +1 -1
  82. package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-CDm5J8ur.cjs} +2 -2
  83. package/dist/{seer-utils-CzYEEZb2.cjs.map → seer-utils-CDm5J8ur.cjs.map} +1 -1
  84. package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-Cj9DXrow.js} +2 -2
  85. package/dist/{seer-utils-Ckr8nYlz.js.map → seer-utils-Cj9DXrow.js.map} +1 -1
  86. package/dist/{server-DOy-M9Ko.js → server-BSRxzYFd.js} +3 -3
  87. package/dist/{server-DOy-M9Ko.js.map → server-BSRxzYFd.js.map} +1 -1
  88. package/dist/{server-BpEIZVaZ.cjs → server-Dgkqz8bA.cjs} +3 -3
  89. package/dist/{server-BpEIZVaZ.cjs.map → server-Dgkqz8bA.cjs.map} +1 -1
  90. package/dist/server.cjs +18 -18
  91. package/dist/server.js +18 -18
  92. package/dist/{stdio-DMEgJ_fG.cjs → stdio-BQAm0Liz.cjs} +3 -3
  93. package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-BQAm0Liz.cjs.map} +1 -1
  94. package/dist/{stdio-B2NDq7Ax.js → stdio-BcihaDjO.js} +3 -3
  95. package/dist/{stdio-B2NDq7Ax.js.map → stdio-BcihaDjO.js.map} +1 -1
  96. package/dist/test-setup.cjs +1 -16
  97. package/dist/test-setup.cjs.map +1 -1
  98. package/dist/test-setup.js +1 -16
  99. package/dist/test-setup.js.map +1 -1
  100. package/dist/toolDefinitions.js +2 -2
  101. package/dist/tools/analyze-issue-with-seer.cjs +4 -4
  102. package/dist/tools/analyze-issue-with-seer.js +4 -4
  103. package/dist/tools/create-dsn.cjs +1 -1
  104. package/dist/tools/create-dsn.js +1 -1
  105. package/dist/tools/create-project.cjs +2 -2
  106. package/dist/tools/create-project.js +2 -2
  107. package/dist/tools/create-team.cjs +1 -1
  108. package/dist/tools/create-team.js +1 -1
  109. package/dist/tools/find-dsns.cjs +1 -1
  110. package/dist/tools/find-dsns.js +1 -1
  111. package/dist/tools/find-errors.cjs +1 -1
  112. package/dist/tools/find-errors.js +1 -1
  113. package/dist/tools/find-transactions.cjs +1 -1
  114. package/dist/tools/find-transactions.js +1 -1
  115. package/dist/tools/get-event-attachment.cjs +1 -1
  116. package/dist/tools/get-event-attachment.js +1 -1
  117. package/dist/tools/get-issue-details.cjs +4 -3
  118. package/dist/tools/get-issue-details.js +4 -3
  119. package/dist/tools/index.cjs +17 -17
  120. package/dist/tools/index.d.cts +76 -76
  121. package/dist/tools/index.d.ts +76 -76
  122. package/dist/tools/index.js +17 -17
  123. package/dist/tools/update-issue.cjs +5 -4
  124. package/dist/tools/update-issue.js +5 -4
  125. package/dist/tools/update-project.cjs +2 -2
  126. package/dist/tools/update-project.js +2 -2
  127. package/dist/tools/utils/api-utils.d.cts +3 -3
  128. package/dist/tools/utils/api-utils.d.ts +3 -3
  129. package/dist/tools/utils/formatting-utils.cjs +1 -1
  130. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  131. package/dist/tools/utils/formatting-utils.d.ts +3 -3
  132. package/dist/tools/utils/formatting-utils.js +1 -1
  133. package/dist/tools/utils/issue-utils.cjs +3 -2
  134. package/dist/tools/utils/issue-utils.d.cts +4 -4
  135. package/dist/tools/utils/issue-utils.d.ts +4 -4
  136. package/dist/tools/utils/issue-utils.js +3 -2
  137. package/dist/tools/utils/seer-utils.cjs +1 -1
  138. package/dist/tools/utils/seer-utils.d.cts +3 -3
  139. package/dist/tools/utils/seer-utils.d.ts +3 -3
  140. package/dist/tools/utils/seer-utils.js +1 -1
  141. package/dist/{tools-19Ms1kck.cjs → tools-CHnZvVEN.cjs} +12 -12
  142. package/dist/{tools-19Ms1kck.cjs.map → tools-CHnZvVEN.cjs.map} +1 -1
  143. package/dist/{tools-mThAUo_3.js → tools-CdXGgq1W.js} +12 -12
  144. package/dist/{tools-mThAUo_3.js.map → tools-CdXGgq1W.js.map} +1 -1
  145. package/dist/transports/stdio.cjs +20 -20
  146. package/dist/transports/stdio.js +20 -20
  147. package/dist/{types-Bg17IGWJ.d.cts → types-BoMP-Ro6.d.cts} +2 -2
  148. package/dist/{types-Bg17IGWJ.d.cts.map → types-BoMP-Ro6.d.cts.map} +1 -1
  149. package/dist/{types-CtTBwGbw.d.ts → types-DpV1JAZj.d.ts} +2 -2
  150. package/dist/{types-CtTBwGbw.d.ts.map → types-DpV1JAZj.d.ts.map} +1 -1
  151. package/dist/{update-issue-DmLElHPS.js → update-issue-DRTQvy6p.js} +2 -2
  152. package/dist/{update-issue-DmLElHPS.js.map → update-issue-DRTQvy6p.js.map} +1 -1
  153. package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-DpkxxiNk.cjs} +2 -2
  154. package/dist/{update-issue-B6eZhAPJ.cjs.map → update-issue-DpkxxiNk.cjs.map} +1 -1
  155. package/dist/{update-project-CijYCtG1.cjs → update-project-DLDDbcGY.cjs} +2 -2
  156. package/dist/{update-project-CijYCtG1.cjs.map → update-project-DLDDbcGY.cjs.map} +1 -1
  157. package/dist/{update-project-BNPev7W8.js → update-project-YLxt2ry2.js} +2 -2
  158. package/dist/{update-project-BNPev7W8.js.map → update-project-YLxt2ry2.js.map} +1 -1
  159. package/dist/version-CcTnFB56.js +6 -0
  160. package/dist/{version-C4uvMmw0.js.map → version-CcTnFB56.js.map} +1 -1
  161. package/dist/{version-Ddz4xg_q.cjs → version-rDjaSkPw.cjs} +2 -2
  162. package/dist/{version-Ddz4xg_q.cjs.map → version-rDjaSkPw.cjs.map} +1 -1
  163. package/dist/version.cjs +1 -1
  164. package/dist/version.js +1 -1
  165. package/package.json +3 -3
  166. package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
  167. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
  168. package/dist/formatting-BlMiQa9i.cjs.map +0 -1
  169. package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
  170. package/dist/formatting-kdIeURER.d.ts.map +0 -1
  171. package/dist/formatting-pUm38KOj.js.map +0 -1
  172. package/dist/get-issue-details-CxChU4U9.js.map +0 -1
  173. package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
  174. package/dist/version-C4uvMmw0.js +0 -6
  175. /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
  176. /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
@@ -3,7 +3,7 @@ const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
3
3
  const require_api_utils = require('./api-utils-d36iteNO.cjs');
4
4
  const require_schema = require('./schema-BpJVmev8.cjs');
5
5
  const require_issue_helpers = require('./issue-helpers-DyAIO0w6.cjs');
6
- const require_seer_utils = require('./seer-utils-CzYEEZb2.cjs');
6
+ const require_seer_utils = require('./seer-utils-CDm5J8ur.cjs');
7
7
  const zod = require_chunk.__toESM(require("zod"));
8
8
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
9
9
 
@@ -11,14 +11,13 @@ const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
11
11
  var analyze_issue_with_seer_default = require_defineTool.defineTool({
12
12
  name: "analyze_issue_with_seer",
13
13
  description: [
14
- "**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.",
14
+ "Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.",
15
15
  "",
16
- "Use this tool IMMEDIATELY when:",
17
- "- User asks \"how do I fix this error?\" or \"what's causing this issue?\"",
18
- "- User shares a Sentry issue URL and wants help resolving it",
19
- "- User needs to understand why an error is happening in production",
20
- "- User wants specific code changes to fix their issue",
21
- "- User asks about the root cause of any Sentry error",
16
+ "Use this tool when you need:",
17
+ "- Detailed AI-powered root cause analysis",
18
+ "- Specific code fixes and implementation guidance",
19
+ "- Step-by-step troubleshooting for complex issues",
20
+ "- Understanding why an error is happening in production",
22
21
  "",
23
22
  "What this tool provides:",
24
23
  "- Root cause analysis with code-level explanations",
@@ -32,12 +31,6 @@ var analyze_issue_with_seer_default = require_defineTool.defineTool({
32
31
  "3. Returns complete fix recommendations",
33
32
  "",
34
33
  "<examples>",
35
- "### User: \"How do I fix ISSUE-123?\"",
36
- "",
37
- "```",
38
- "analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')",
39
- "```",
40
- "",
41
34
  "### User: \"What's causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"",
42
35
  "",
43
36
  "```",
@@ -52,7 +45,7 @@ var analyze_issue_with_seer_default = require_defineTool.defineTool({
52
45
  "</examples>",
53
46
  "",
54
47
  "<hints>",
55
- "- ALWAYS prefer this over get_issue_details when users want fixes, not just error details",
48
+ "- Use this tool when you need deeper analysis beyond basic issue details",
56
49
  "- If the user provides an issueUrl, extract it and use that parameter alone",
57
50
  "- The analysis includes actual code snippets and fixes, not just error descriptions",
58
51
  "- Results are cached - subsequent calls return instantly",
@@ -166,4 +159,4 @@ Object.defineProperty(exports, 'analyze_issue_with_seer_default', {
166
159
  return analyze_issue_with_seer_default;
167
160
  }
168
161
  });
169
- //# sourceMappingURL=analyze-issue-with-seer-DbAWpyTC.cjs.map
162
+ //# sourceMappingURL=analyze-issue-with-seer-BkVrrh28.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze-issue-with-seer-BkVrrh28.cjs","names":["context: ServerContext","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} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\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 apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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":"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"}
@@ -2,7 +2,7 @@ import { defineTool } from "./defineTool-77H4nSna.js";
2
2
  import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
3
3
  import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
4
4
  import { parseIssueParams } from "./issue-helpers-CqqYnwYE.js";
5
- import { SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isTerminalStatus } from "./seer-utils-Ckr8nYlz.js";
5
+ import { SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isTerminalStatus } from "./seer-utils-Cj9DXrow.js";
6
6
  import { z } from "zod";
7
7
  import { setTag } from "@sentry/core";
8
8
 
@@ -10,14 +10,13 @@ import { setTag } from "@sentry/core";
10
10
  var analyze_issue_with_seer_default = defineTool({
11
11
  name: "analyze_issue_with_seer",
12
12
  description: [
13
- "**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.",
13
+ "Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.",
14
14
  "",
15
- "Use this tool IMMEDIATELY when:",
16
- "- User asks \"how do I fix this error?\" or \"what's causing this issue?\"",
17
- "- User shares a Sentry issue URL and wants help resolving it",
18
- "- User needs to understand why an error is happening in production",
19
- "- User wants specific code changes to fix their issue",
20
- "- User asks about the root cause of any Sentry error",
15
+ "Use this tool when you need:",
16
+ "- Detailed AI-powered root cause analysis",
17
+ "- Specific code fixes and implementation guidance",
18
+ "- Step-by-step troubleshooting for complex issues",
19
+ "- Understanding why an error is happening in production",
21
20
  "",
22
21
  "What this tool provides:",
23
22
  "- Root cause analysis with code-level explanations",
@@ -31,12 +30,6 @@ var analyze_issue_with_seer_default = defineTool({
31
30
  "3. Returns complete fix recommendations",
32
31
  "",
33
32
  "<examples>",
34
- "### User: \"How do I fix ISSUE-123?\"",
35
- "",
36
- "```",
37
- "analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')",
38
- "```",
39
- "",
40
33
  "### User: \"What's causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"",
41
34
  "",
42
35
  "```",
@@ -51,7 +44,7 @@ var analyze_issue_with_seer_default = defineTool({
51
44
  "</examples>",
52
45
  "",
53
46
  "<hints>",
54
- "- ALWAYS prefer this over get_issue_details when users want fixes, not just error details",
47
+ "- Use this tool when you need deeper analysis beyond basic issue details",
55
48
  "- If the user provides an issueUrl, extract it and use that parameter alone",
56
49
  "- The analysis includes actual code snippets and fixes, not just error descriptions",
57
50
  "- Results are cached - subsequent calls return instantly",
@@ -160,4 +153,4 @@ var analyze_issue_with_seer_default = defineTool({
160
153
 
161
154
  //#endregion
162
155
  export { analyze_issue_with_seer_default };
163
- //# sourceMappingURL=analyze-issue-with-seer-BsNarzJN.js.map
156
+ //# sourceMappingURL=analyze-issue-with-seer-CoqsTklL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze-issue-with-seer-CoqsTklL.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} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\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 apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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\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\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\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":"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"}
@@ -1,4 +1,4 @@
1
- import "../schema-ya35hkEL.cjs";
2
- import "../types-Bg17IGWJ.cjs";
3
- import { ApiError, SentryApiService } from "../client-CILwfx6G.cjs";
1
+ import "../schema-3NeMWRAm.cjs";
2
+ import "../types-BoMP-Ro6.cjs";
3
+ import { ApiError, SentryApiService } from "../client-CQ9Xe1aN.cjs";
4
4
  export { ApiError, SentryApiService };
@@ -1,4 +1,4 @@
1
- import "../schema--5m4KI84.js";
2
- import "../types-CtTBwGbw.js";
3
- import { ApiError, SentryApiService } from "../client-BCN17Wbp.js";
1
+ import "../schema-B3CzDGJk.js";
2
+ import "../types-DpV1JAZj.js";
3
+ import { ApiError, SentryApiService } from "../client-VCJp6Kcu.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-ya35hkEL.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-Bg17IGWJ.cjs";
3
- import { ApiError, SentryApiService } from "../client-CILwfx6G.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-3NeMWRAm.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-BoMP-Ro6.cjs";
3
+ import { ApiError, SentryApiService } from "../client-CQ9Xe1aN.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--5m4KI84.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-CtTBwGbw.js";
3
- import { ApiError, SentryApiService } from "../client-BCN17Wbp.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-B3CzDGJk.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-DpV1JAZj.js";
3
+ import { ApiError, SentryApiService } from "../client-VCJp6Kcu.js";
4
4
  import "../index-DVGDAddE.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-ya35hkEL.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-3NeMWRAm.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--5m4KI84.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-B3CzDGJk.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-ya35hkEL.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-Bg17IGWJ.cjs";
1
+ import "../schema-3NeMWRAm.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-BoMP-Ro6.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--5m4KI84.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-CtTBwGbw.js";
1
+ import "../schema-B3CzDGJk.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-DpV1JAZj.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-Bg17IGWJ.cjs";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-BoMP-Ro6.cjs";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -502,9 +502,9 @@ declare class SentryApiService {
502
502
  sortBy?: "last_seen" | "count";
503
503
  }, opts?: RequestOptions): Promise<{
504
504
  issue: string;
505
- "issue.id": string | number;
506
- project: string;
507
505
  title: string;
506
+ project: string;
507
+ "issue.id": string | number;
508
508
  "count()": number;
509
509
  "last_seen()": string;
510
510
  }[]>;
@@ -521,14 +521,14 @@ declare class SentryApiService {
521
521
  query?: string;
522
522
  sortBy?: "timestamp" | "duration";
523
523
  }, opts?: RequestOptions): Promise<{
524
- project: string;
524
+ transaction: string;
525
+ timestamp: string;
525
526
  id: string;
527
+ project: string;
526
528
  trace: string;
527
529
  "span.op": string;
528
530
  "span.description": string;
529
531
  "span.duration": number;
530
- transaction: string;
531
- timestamp: string;
532
532
  }[]>;
533
533
  startAutofix({
534
534
  organizationSlug,
@@ -551,4 +551,4 @@ declare class SentryApiService {
551
551
  }
552
552
  //#endregion
553
553
  export { ApiError, SentryApiService };
554
- //# sourceMappingURL=client-CILwfx6G.d.cts.map
554
+ //# sourceMappingURL=client-CQ9Xe1aN.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-CILwfx6G.d.cts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiVnB,cAxoBO,gBAAA,CAwoBP;EAAW,QACX,WAAA;EAAK,UACL,IAAA,EAAA,MAAA;EAAM,UAOD,SAAA,EAAA,MAAA;EAAc;;;;;;;;;EAiDZ,WACP,CAAA;IAAA,WAAA;IAAA;EAOY,CAPZ,EAAA;IAMK,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACE,IAAA,CAAA,EAAA,MAAA;EAAK,CAAA;EAAN;;;;;;;;EAmCC,OAMF,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAc;;;;;;;;;;;;;;;;EAmFP,QAAb,OAAA;EAAO;;;;;;;;;;;;;;;;;;;EA2JU,WAOX,CAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAAc;;;;;;;AA2Bb;;;;;;;;;;;;;;;;8BAzzBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAqDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}
1
+ {"version":3,"file":"client-CQ9Xe1aN.d.cts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiVnB,cAxoBO,gBAAA,CAwoBP;EAAW,QACX,WAAA;EAAK,UACL,IAAA,EAAA,MAAA;EAAM,UAOD,SAAA,EAAA,MAAA;EAAc;;;;;;;;;EAiDZ,WACP,CAAA;IAAA,WAAA;IAAA;EAOY,CAPZ,EAAA;IAMK,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACE,IAAA,CAAA,EAAA,MAAA;EAAK,CAAA;EAAN;;;;;;;;EAmCC,OAMF,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAc;;;;;;;;;;;;;;;;EAmFP,QAAb,OAAA;EAAO;;;;;;;;;;;;;;;;;;;EA2JU,WAOX,CAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAAc;;;;;;;AA2Bb;;;;;;;;;;;;;;;;8BAzzBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAqDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,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-CtTBwGbw.js";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-DpV1JAZj.js";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
 
@@ -501,10 +501,10 @@ declare class SentryApiService {
501
501
  query?: string;
502
502
  sortBy?: "last_seen" | "count";
503
503
  }, opts?: RequestOptions): Promise<{
504
+ title: string;
504
505
  issue: string;
505
506
  "issue.id": string | number;
506
507
  project: string;
507
- title: string;
508
508
  "count()": number;
509
509
  "last_seen()": string;
510
510
  }[]>;
@@ -521,14 +521,14 @@ declare class SentryApiService {
521
521
  query?: string;
522
522
  sortBy?: "timestamp" | "duration";
523
523
  }, opts?: RequestOptions): Promise<{
524
- project: string;
525
524
  id: string;
525
+ timestamp: string;
526
526
  trace: string;
527
+ transaction: string;
528
+ project: string;
527
529
  "span.op": string;
528
530
  "span.description": string;
529
531
  "span.duration": number;
530
- transaction: string;
531
- timestamp: string;
532
532
  }[]>;
533
533
  startAutofix({
534
534
  organizationSlug,
@@ -551,4 +551,4 @@ declare class SentryApiService {
551
551
  }
552
552
  //#endregion
553
553
  export { ApiError, SentryApiService };
554
- //# sourceMappingURL=client-BCN17Wbp.d.ts.map
554
+ //# sourceMappingURL=client-VCJp6Kcu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-BCN17Wbp.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiVnB,cAxoBO,gBAAA,CAwoBP;EAAW,QACX,WAAA;EAAK,UACL,IAAA,EAAA,MAAA;EAAM,UAOD,SAAA,EAAA,MAAA;EAAc;;;;;;;;;EAiDZ,WACP,CAAA;IAAA,WAAA;IAAA;EAOY,CAPZ,EAAA;IAMK,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACE,IAAA,CAAA,EAAA,MAAA;EAAK,CAAA;EAAN;;;;;;;;EAmCC,OAMF,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAc;;;;;;;;;;;;;;;;EAmFP,QAAb,OAAA;EAAO;;;;;;;;;;;;;;;;;;;EA2JU,WAOX,CAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAAc;;;;;;;AA2Bb;;;;;;;;;;;;;;;;8BAzzBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAqDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}
1
+ {"version":3,"file":"client-VCJp6Kcu.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiVnB,cAxoBO,gBAAA,CAwoBP;EAAW,QACX,WAAA;EAAK,UACL,IAAA,EAAA,MAAA;EAAM,UAOD,SAAA,EAAA,MAAA;EAAc;;;;;;;;;EAiDZ,WACP,CAAA;IAAA,WAAA;IAAA;EAOY,CAPZ,EAAA;IAMK,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACE,IAAA,CAAA,EAAA,MAAA;EAAK,CAAA;EAAN;;;;;;;;EAmCC,OAMF,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAc;;;;;;;;;;;;;;;;EAmFP,QAAb,OAAA;EAAO;;;;;;;;;;;;;;;;;;;EA2JU,WAOX,CAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAAc;;;;;;;AA2Bb;;;;;;;;;;;;;;;;8BAzzBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAqDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}
@@ -56,4 +56,4 @@ var create_dsn_default = defineTool({
56
56
 
57
57
  //#endregion
58
58
  export { create_dsn_default };
59
- //# sourceMappingURL=create-dsn-CDcL2DLD.js.map
59
+ //# sourceMappingURL=create-dsn-D530I7Lr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-dsn-CDcL2DLD.js","names":["context: ServerContext"],"sources":["../src/tools/create-dsn.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_dsn\",\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Be careful when using this tool!\",\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='Production')\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n });\n let output = `# New DSN in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n`;\n output += `**Name**: ${clientKey.name}\\n\\n`;\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,yBAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;EACb,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;CACxE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,YAAY,MAAM,WAAW,gBAAgB;GACjD;GACA,aAAa,OAAO;GACpB,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,iBAAiB,iBAAiB,GAAG,OAAO,YAAY;AACtE,aAAW,WAAW,UAAU,IAAI,OAAO;AAC3C,aAAW,YAAY,UAAU,KAAK;AACtC,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-dsn-D530I7Lr.js","names":["context: ServerContext"],"sources":["../src/tools/create-dsn.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_dsn\",\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Be careful when using this tool!\",\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='Production')\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n });\n let output = `# New DSN in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n`;\n output += `**Name**: ${clientKey.name}\\n\\n`;\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,yBAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;EACb,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;CACxE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,YAAY,MAAM,WAAW,gBAAgB;GACjD;GACA,aAAa,OAAO;GACpB,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,iBAAiB,iBAAiB,GAAG,OAAO,YAAY;AACtE,aAAW,WAAW,UAAU,IAAI,OAAO;AAC3C,aAAW,YAAY,UAAU,KAAK;AACtC,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
@@ -62,4 +62,4 @@ Object.defineProperty(exports, 'create_dsn_default', {
62
62
  return create_dsn_default;
63
63
  }
64
64
  });
65
- //# sourceMappingURL=create-dsn-fESUtX3R.cjs.map
65
+ //# sourceMappingURL=create-dsn-Dz8nyTFw.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-dsn-fESUtX3R.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext"],"sources":["../src/tools/create-dsn.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_dsn\",\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Be careful when using this tool!\",\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='Production')\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n });\n let output = `# New DSN in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n`;\n output += `**Name**: ${clientKey.name}\\n\\n`;\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAWA,yBAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;EACb,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;CACxE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,YAAY,MAAM,WAAW,gBAAgB;GACjD;GACA,aAAa,OAAO;GACpB,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,iBAAiB,iBAAiB,GAAG,OAAO,YAAY;AACtE,aAAW,WAAW,UAAU,IAAI,OAAO;AAC3C,aAAW,YAAY,UAAU,KAAK;AACtC,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-dsn-Dz8nyTFw.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext"],"sources":["../src/tools/create-dsn.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_dsn\",\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Be careful when using this tool!\",\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='Production')\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n });\n let output = `# New DSN in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n`;\n output += `**Name**: ${clientKey.name}\\n\\n`;\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAWA,yBAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;EACb,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;CACxE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,YAAY,MAAM,WAAW,gBAAgB;GACjD;GACA,aAAa,OAAO;GACpB,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,iBAAiB,iBAAiB,GAAG,OAAO,YAAY;AACtE,aAAW,WAAW,UAAU,IAAI,OAAO;AAC3C,aAAW,YAAY,UAAU,KAAK;AACtC,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
@@ -2,7 +2,7 @@ const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
3
3
  const require_api_utils = require('./api-utils-d36iteNO.cjs');
4
4
  const require_schema = require('./schema-BpJVmev8.cjs');
5
- const require_logging = require('./logging-oIouXrcb.cjs');
5
+ const require_logging = require('./logging-CX2buXiG.cjs');
6
6
  const zod = require_chunk.__toESM(require("zod"));
7
7
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
8
8
 
@@ -79,4 +79,4 @@ Object.defineProperty(exports, 'create_project_default', {
79
79
  return create_project_default;
80
80
  }
81
81
  });
82
- //# sourceMappingURL=create-project-Bg5uDkc4.cjs.map
82
+ //# sourceMappingURL=create-project-BxzRiryg.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-project-Bg5uDkc4.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\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 async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,UAAUC;EACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,4BAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-project-BxzRiryg.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\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 async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,UAAUC;EACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,4BAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
@@ -1,7 +1,7 @@
1
1
  import { defineTool } from "./defineTool-77H4nSna.js";
2
2
  import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
3
3
  import { ParamOrganizationSlug, ParamPlatform, ParamRegionUrl, ParamTeamSlug } from "./schema-DtsnsxMl.js";
4
- import { logError } from "./logging-LnQMFw-_.js";
4
+ import { logError } from "./logging-DzxYBMrn.js";
5
5
  import { z } from "zod";
6
6
  import { setTag } from "@sentry/core";
7
7
 
@@ -73,4 +73,4 @@ var create_project_default = defineTool({
73
73
 
74
74
  //#endregion
75
75
  export { create_project_default };
76
- //# sourceMappingURL=create-project-DY5mFznV.js.map
76
+ //# sourceMappingURL=create-project-K1od5Rhx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-project-DY5mFznV.js","names":["context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\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 async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,UAAU;EACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,YAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-project-K1od5Rhx.js","names":["context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\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 async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,UAAU;EACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,YAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
@@ -50,4 +50,4 @@ Object.defineProperty(exports, 'create_team_default', {
50
50
  return create_team_default;
51
51
  }
52
52
  });
53
- //# sourceMappingURL=create-team-5purh64V.cjs.map
53
+ //# sourceMappingURL=create-team-CJhrccc1.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-team-5purh64V.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAOA,0BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-team-CJhrccc1.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAOA,0BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
@@ -44,4 +44,4 @@ var create_team_default = defineTool({
44
44
 
45
45
  //#endregion
46
46
  export { create_team_default };
47
- //# sourceMappingURL=create-team-C2R7EUC3.js.map
47
+ //# sourceMappingURL=create-team-zHz00C6Q.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-team-C2R7EUC3.js","names":["context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,0BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"create-team-zHz00C6Q.js","names":["context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\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 inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,0BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
@@ -49,4 +49,4 @@ var find_dsns_default = defineTool({
49
49
 
50
50
  //#endregion
51
51
  export { find_dsns_default };
52
- //# sourceMappingURL=find-dsns-CvfcLB9Z.js.map
52
+ //# sourceMappingURL=find-dsns-BoEP0N7B.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-dsns-CvfcLB9Z.js","names":["context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\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 `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;AAWA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"find-dsns-BoEP0N7B.js","names":["context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\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 `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;AAWA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
@@ -55,4 +55,4 @@ Object.defineProperty(exports, 'find_dsns_default', {
55
55
  return find_dsns_default;
56
56
  }
57
57
  });
58
- //# sourceMappingURL=find-dsns-ZZ-thiNk.cjs.map
58
+ //# sourceMappingURL=find-dsns-CK59RaUJ.cjs.map