@sentry/mcp-server 0.21.0 → 0.22.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.
- package/dist/{agent-vFXI2vu1.js → agent-0WAnUgat.js} +7 -7
- package/dist/agent-0WAnUgat.js.map +1 -0
- package/dist/{agent-CuX9zpZq.d.ts → agent-BeTXxskw.d.ts} +12 -11
- package/dist/agent-BeTXxskw.d.ts.map +1 -0
- package/dist/{agent-_VPpnFmn.d.cts → agent-Bm5Hsfal.d.cts} +2 -2
- package/dist/{agent-_VPpnFmn.d.cts.map → agent-Bm5Hsfal.d.cts.map} +1 -1
- package/dist/{agent-CvjnNjVl.js → agent-C1Ros3Xx.js} +2 -2
- package/dist/{agent-CvjnNjVl.js.map → agent-C1Ros3Xx.js.map} +1 -1
- package/dist/{agent-BIhLK0w6.d.ts → agent-CJ6SVqAB.d.ts} +2 -2
- package/dist/{agent-BIhLK0w6.d.ts.map → agent-CJ6SVqAB.d.ts.map} +1 -1
- package/dist/{agent-DOraNng-.cjs → agent-Cm9hEq5d.cjs} +23 -13
- package/dist/agent-Cm9hEq5d.cjs.map +1 -0
- package/dist/{agent-CaZRIfIM.d.ts → agent-Cu85yHYm.d.ts} +25 -24
- package/dist/agent-Cu85yHYm.d.ts.map +1 -0
- package/dist/{agent-Bgg6nor6.cjs → agent-CyyRLYbF.cjs} +15 -9
- package/dist/agent-CyyRLYbF.cjs.map +1 -0
- package/dist/{agent-WO6BpLta.d.cts → agent-DYfi9MFV.d.cts} +29 -28
- package/dist/agent-DYfi9MFV.d.cts.map +1 -0
- package/dist/{agent-CzjC0wP8.js → agent-Dkgkv7Iz.js} +14 -10
- package/dist/agent-Dkgkv7Iz.js.map +1 -0
- package/dist/{agent-pad5p0Xr.cjs → agent-DtCRTWPZ.cjs} +3 -3
- package/dist/{agent-pad5p0Xr.cjs.map → agent-DtCRTWPZ.cjs.map} +1 -1
- package/dist/{agent-BePwIb80.d.cts → agent-TEZG63ug.d.cts} +12 -11
- package/dist/agent-TEZG63ug.d.cts.map +1 -0
- package/dist/{analyze-issue-with-seer-DHxMOCaf.cjs → analyze-issue-with-seer-B90r4g5J.cjs} +4 -4
- package/dist/{analyze-issue-with-seer-DHxMOCaf.cjs.map → analyze-issue-with-seer-B90r4g5J.cjs.map} +1 -1
- package/dist/{analyze-issue-with-seer-iXBAIlQL.js → analyze-issue-with-seer-Ji3KDm0O.js} +2 -2
- package/dist/{analyze-issue-with-seer-iXBAIlQL.js.map → analyze-issue-with-seer-Ji3KDm0O.js.map} +1 -1
- package/dist/{api-Cozv5F92.js → api-CBHyxA3Q.js} +2 -2
- package/dist/{api-Cozv5F92.js.map → api-CBHyxA3Q.js.map} +1 -1
- package/dist/{api-BkWv0o1h.cjs → api-CHgBJOv9.cjs} +2 -2
- package/dist/{api-BkWv0o1h.cjs.map → api-CHgBJOv9.cjs.map} +1 -1
- package/dist/api-client/client.cjs +4 -4
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/index.cjs +4 -4
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -2
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{callEmbeddedAgent-B24rpPzZ.d.cts → callEmbeddedAgent-BIfQ-_5T.d.ts} +4 -4
- package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts.map +1 -0
- package/dist/{callEmbeddedAgent-xTPNMk8s.cjs → callEmbeddedAgent-BPS472yg.cjs} +9 -4
- package/dist/callEmbeddedAgent-BPS472yg.cjs.map +1 -0
- package/dist/{callEmbeddedAgent-Dk48A2gz.d.ts → callEmbeddedAgent-CFHLQjFx.d.cts} +4 -4
- package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +1 -0
- package/dist/{callEmbeddedAgent-B51_9ycP.js → callEmbeddedAgent-DavTx3Qo.js} +8 -3
- package/dist/callEmbeddedAgent-DavTx3Qo.js.map +1 -0
- package/dist/{chunk-DWy1uDak.cjs → chunk-CUT6urMc.cjs} +0 -9
- package/dist/cli/parse.cjs +1 -1
- package/dist/{client-DeGFkGAD.d.cts → client-0n2-4zOO.d.cts} +7 -7
- package/dist/{client-DeGFkGAD.d.cts.map → client-0n2-4zOO.d.cts.map} +1 -1
- package/dist/{client-BSlwJcxe.js → client-B7hvqupZ.js} +2 -2
- package/dist/{client-BSlwJcxe.js.map → client-B7hvqupZ.js.map} +1 -1
- package/dist/{client-D1Oq6Udl.d.ts → client-ByOC8aCf.d.ts} +9 -9
- package/dist/{client-D1Oq6Udl.d.ts.map → client-ByOC8aCf.d.ts.map} +1 -1
- package/dist/{client-DlJ_23xq.cjs → client-cC79LUJ5.cjs} +4 -4
- package/dist/{client-DlJ_23xq.cjs.map → client-cC79LUJ5.cjs.map} +1 -1
- package/dist/{create-dsn-erDvHRvv.cjs → create-dsn-9yIHr10B.cjs} +4 -4
- package/dist/{create-dsn-erDvHRvv.cjs.map → create-dsn-9yIHr10B.cjs.map} +1 -1
- package/dist/{create-dsn-CzaN7V1p.js → create-dsn-p2Ep6zDn.js} +2 -2
- package/dist/{create-dsn-CzaN7V1p.js.map → create-dsn-p2Ep6zDn.js.map} +1 -1
- package/dist/{create-project-B9dyzzyz.cjs → create-project-BQQx1iLm.cjs} +5 -5
- package/dist/{create-project-B9dyzzyz.cjs.map → create-project-BQQx1iLm.cjs.map} +1 -1
- package/dist/{create-project-BvmA3Xm7.js → create-project-CN0UneBm.js} +2 -2
- package/dist/{create-project-BvmA3Xm7.js.map → create-project-CN0UneBm.js.map} +1 -1
- package/dist/{create-team-Bb0ajRQO.js → create-team-CzFrsVdw.js} +2 -2
- package/dist/{create-team-Bb0ajRQO.js.map → create-team-CzFrsVdw.js.map} +1 -1
- package/dist/{create-team-CWC7s6TS.cjs → create-team-DFSriKVL.cjs} +4 -4
- package/dist/{create-team-CWC7s6TS.cjs.map → create-team-DFSriKVL.cjs.map} +1 -1
- package/dist/{dataset-fields-Bo9Nbtdn.cjs → dataset-fields-Bp_g-sD6.cjs} +3 -3
- package/dist/{dataset-fields-Bo9Nbtdn.cjs.map → dataset-fields-Bp_g-sD6.cjs.map} +1 -1
- package/dist/{error-handling-19djRJdh.cjs → error-handling-FGjcJT8U.cjs} +2 -2
- package/dist/{error-handling-19djRJdh.cjs.map → error-handling-FGjcJT8U.cjs.map} +1 -1
- package/dist/{find-dsns-Bqafhzp5.js → find-dsns-BzfYjE06.js} +2 -2
- package/dist/{find-dsns-Bqafhzp5.js.map → find-dsns-BzfYjE06.js.map} +1 -1
- package/dist/{find-dsns-MMdOXURp.cjs → find-dsns-DhHHtvpj.cjs} +4 -4
- package/dist/{find-dsns-MMdOXURp.cjs.map → find-dsns-DhHHtvpj.cjs.map} +1 -1
- package/dist/{find-organizations-D80maEbK.cjs → find-organizations-7ooGnnmP.cjs} +3 -3
- package/dist/{find-organizations-D80maEbK.cjs.map → find-organizations-7ooGnnmP.cjs.map} +1 -1
- package/dist/{find-organizations-DV7Za1d0.js → find-organizations-BJFAElbh.js} +2 -2
- package/dist/{find-organizations-DV7Za1d0.js.map → find-organizations-BJFAElbh.js.map} +1 -1
- package/dist/{find-projects-KrMwC18K.cjs → find-projects-BpEGRZya.cjs} +4 -4
- package/dist/{find-projects-KrMwC18K.cjs.map → find-projects-BpEGRZya.cjs.map} +1 -1
- package/dist/{find-projects-Dcqw9Vyi.js → find-projects-E5CMFbwU.js} +2 -2
- package/dist/{find-projects-Dcqw9Vyi.js.map → find-projects-E5CMFbwU.js.map} +1 -1
- package/dist/{find-releases-CHDuNU2z.js → find-releases-DWWonhlV.js} +2 -2
- package/dist/{find-releases-CHDuNU2z.js.map → find-releases-DWWonhlV.js.map} +1 -1
- package/dist/{find-releases-BPS53QTy.cjs → find-releases-Du5euXKS.cjs} +4 -4
- package/dist/{find-releases-BPS53QTy.cjs.map → find-releases-Du5euXKS.cjs.map} +1 -1
- package/dist/{find-teams-DPdnW18Q.js → find-teams-BM4yWKe_.js} +2 -2
- package/dist/{find-teams-DPdnW18Q.js.map → find-teams-BM4yWKe_.js.map} +1 -1
- package/dist/{find-teams-DFl7ESVe.cjs → find-teams-Bp6-Iu62.cjs} +4 -4
- package/dist/{find-teams-DFl7ESVe.cjs.map → find-teams-Bp6-Iu62.cjs.map} +1 -1
- package/dist/{formatters-Bb4El3CZ.cjs → formatters-B6H5qTFe.cjs} +2 -2
- package/dist/{formatters-Bb4El3CZ.cjs.map → formatters-B6H5qTFe.cjs.map} +1 -1
- package/dist/{formatters-Bta1mFce.cjs → formatters-ObdzRwld.cjs} +3 -3
- package/dist/{formatters-Bta1mFce.cjs.map → formatters-ObdzRwld.cjs.map} +1 -1
- package/dist/{formatting-BWMTp6lM.d.cts → formatting-Bw0FWiCH.d.cts} +4 -4
- package/dist/{formatting-BWMTp6lM.d.cts.map → formatting-Bw0FWiCH.d.cts.map} +1 -1
- package/dist/{formatting-CSkVn9rJ.d.ts → formatting-ClM7RU4L.d.ts} +4 -4
- package/dist/{formatting-CSkVn9rJ.d.ts.map → formatting-ClM7RU4L.d.ts.map} +1 -1
- package/dist/{get-doc-CGOI0C0A.js → get-doc-CWhlUoJe.js} +2 -2
- package/dist/{get-doc-CGOI0C0A.js.map → get-doc-CWhlUoJe.js.map} +1 -1
- package/dist/{get-doc-BWKx48zK.cjs → get-doc-DsOaSMIe.cjs} +3 -3
- package/dist/{get-doc-BWKx48zK.cjs.map → get-doc-DsOaSMIe.cjs.map} +1 -1
- package/dist/{get-event-attachment-CMPD67lQ.cjs → get-event-attachment-CTF-k6op.cjs} +4 -4
- package/dist/{get-event-attachment-CMPD67lQ.cjs.map → get-event-attachment-CTF-k6op.cjs.map} +1 -1
- package/dist/{get-event-attachment-C5nefGca.js → get-event-attachment-DDvsu6IQ.js} +2 -2
- package/dist/{get-event-attachment-C5nefGca.js.map → get-event-attachment-DDvsu6IQ.js.map} +1 -1
- package/dist/{get-issue-details-y1io-npG.js → get-issue-details-Bsax2jTY.js} +2 -2
- package/dist/{get-issue-details-y1io-npG.js.map → get-issue-details-Bsax2jTY.js.map} +1 -1
- package/dist/{get-issue-details-BxJ_lQN8.cjs → get-issue-details-CIZSksmd.cjs} +5 -5
- package/dist/{get-issue-details-BxJ_lQN8.cjs.map → get-issue-details-CIZSksmd.cjs.map} +1 -1
- package/dist/{get-trace-details-C9gJYPip.cjs → get-trace-details-Bc9GgkSs.cjs} +4 -4
- package/dist/{get-trace-details-C9gJYPip.cjs.map → get-trace-details-Bc9GgkSs.cjs.map} +1 -1
- package/dist/{get-trace-details-BOBNimN0.js → get-trace-details-Bkilw5oH.js} +2 -2
- package/dist/{get-trace-details-BOBNimN0.js.map → get-trace-details-Bkilw5oH.js.map} +1 -1
- package/dist/{handler-CU9ZxaP9.d.ts → handler-CASDrJ7z.d.ts} +3 -3
- package/dist/{handler-CU9ZxaP9.d.ts.map → handler-CASDrJ7z.d.ts.map} +1 -1
- package/dist/{handler-7ABtxyRG.d.cts → handler-CZEMKP9p.d.cts} +3 -3
- package/dist/{handler-7ABtxyRG.d.cts.map → handler-CZEMKP9p.d.cts.map} +1 -1
- package/dist/{handler-L0cEG-0-.cjs → handler-ChOaafS-.cjs} +8 -8
- package/dist/handler-ChOaafS-.cjs.map +1 -0
- package/dist/{handler-FxM1t6Wf.d.cts → handler-CmTBmIt9.d.cts} +3 -3
- package/dist/{handler-FxM1t6Wf.d.cts.map → handler-CmTBmIt9.d.cts.map} +1 -1
- package/dist/{handler-BDPbWDvJ.d.ts → handler-Cs5DcdpF.d.ts} +3 -3
- package/dist/{handler-BDPbWDvJ.d.ts.map → handler-Cs5DcdpF.d.ts.map} +1 -1
- package/dist/{handler-CK_gY4IH.cjs → handler-DQbc5eAJ.cjs} +9 -9
- package/dist/handler-DQbc5eAJ.cjs.map +1 -0
- package/dist/{handler-Dv8J_Uro.js → handler-bf2qu8DQ.js} +5 -5
- package/dist/handler-bf2qu8DQ.js.map +1 -0
- package/dist/{handler-DdgXX0YP.js → handler-y6EMhG0y.js} +5 -5
- package/dist/handler-y6EMhG0y.js.map +1 -0
- package/dist/index.cjs +44 -44
- package/dist/index.js +29 -29
- package/dist/internal/agents/callEmbeddedAgent.cjs +4 -3
- package/dist/internal/agents/callEmbeddedAgent.d.cts +1 -1
- package/dist/internal/agents/callEmbeddedAgent.d.ts +1 -1
- package/dist/internal/agents/callEmbeddedAgent.js +4 -3
- package/dist/internal/agents/openai-provider.cjs +2 -2
- package/dist/internal/agents/openai-provider.js +2 -2
- package/dist/internal/agents/tools/dataset-fields.cjs +6 -6
- package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
- package/dist/internal/agents/tools/dataset-fields.d.ts +7 -7
- package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -1
- package/dist/internal/agents/tools/dataset-fields.js +2 -2
- package/dist/internal/agents/tools/otel-semantics.cjs +6 -6
- package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
- package/dist/internal/agents/tools/otel-semantics.d.ts +7 -7
- package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -1
- package/dist/internal/agents/tools/otel-semantics.js +2 -2
- package/dist/internal/agents/tools/utils.cjs +5 -5
- package/dist/internal/agents/tools/utils.d.cts +1 -1
- package/dist/internal/agents/tools/utils.d.ts +1 -1
- package/dist/internal/agents/tools/utils.js +2 -2
- package/dist/internal/agents/tools/whoami.cjs +6 -6
- package/dist/internal/agents/tools/whoami.d.cts +7 -7
- package/dist/internal/agents/tools/whoami.d.ts +7 -7
- package/dist/internal/agents/tools/whoami.d.ts.map +1 -1
- package/dist/internal/agents/tools/whoami.js +2 -2
- package/dist/internal/error-handling.cjs +5 -5
- package/dist/internal/error-handling.d.cts +3 -3
- package/dist/internal/error-handling.d.ts +3 -3
- package/dist/internal/error-handling.js +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/test-fixtures.d.cts +2 -2
- package/dist/internal/test-fixtures.d.ts +2 -2
- package/dist/internal/tool-helpers/api.cjs +5 -5
- package/dist/internal/tool-helpers/api.d.cts +3 -3
- package/dist/internal/tool-helpers/api.d.ts +3 -3
- package/dist/internal/tool-helpers/api.js +3 -3
- package/dist/internal/tool-helpers/enhance-error.cjs +4 -4
- package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
- package/dist/internal/tool-helpers/enhance-error.d.ts +3 -3
- package/dist/internal/tool-helpers/enhance-error.js +2 -2
- package/dist/internal/tool-helpers/formatting.d.cts +3 -3
- package/dist/internal/tool-helpers/formatting.d.ts +3 -3
- package/dist/internal/tool-helpers/issue.d.cts +4 -4
- package/dist/internal/tool-helpers/issue.d.ts +4 -4
- package/dist/internal/tool-helpers/seer.d.cts +3 -3
- package/dist/internal/tool-helpers/seer.d.ts +3 -3
- package/dist/{logging-DrbQ8weU.cjs → logging-C-ST7-Ow.cjs} +2 -2
- package/dist/{logging-DrbQ8weU.cjs.map → logging-C-ST7-Ow.cjs.map} +1 -1
- package/dist/{openai-provider-CdGMI-ue.cjs → openai-provider-B7uvGxoI.cjs} +3 -3
- package/dist/{openai-provider-CdGMI-ue.cjs.map → openai-provider-B7uvGxoI.cjs.map} +1 -1
- package/dist/{openai-provider-BpAFXVih.js → openai-provider-DphaqrmX.js} +2 -2
- package/dist/{openai-provider-BpAFXVih.js.map → openai-provider-DphaqrmX.js.map} +1 -1
- package/dist/{otel-semantics-CgF1PqFd.cjs → otel-semantics-n8_5Ib9C.cjs} +3 -3
- package/dist/{otel-semantics-CgF1PqFd.cjs.map → otel-semantics-n8_5Ib9C.cjs.map} +1 -1
- package/dist/{parse-vgBG5mXu.cjs → parse-Br-BwKdT.cjs} +2 -2
- package/dist/{parse-vgBG5mXu.cjs.map → parse-Br-BwKdT.cjs.map} +1 -1
- package/dist/{schema-DUU4CA0j.cjs → schema-BGVOjcD7.cjs} +3 -3
- package/dist/{schema-DUU4CA0j.cjs.map → schema-BGVOjcD7.cjs.map} +1 -1
- package/dist/{schema-Y6BzAUmc.d.cts → schema-Cp8XI7-D.d.ts} +347 -347
- package/dist/schema-Cp8XI7-D.d.ts.map +1 -0
- package/dist/{schema-xBO557xH.d.ts → schema-D5oT-Zi7.d.cts} +285 -285
- package/dist/{schema-Y6BzAUmc.d.cts.map → schema-D5oT-Zi7.d.cts.map} +1 -1
- package/dist/{schema-CGiILhan.cjs → schema-DE4JpUSi.cjs} +2 -2
- package/dist/{schema-CGiILhan.cjs.map → schema-DE4JpUSi.cjs.map} +1 -1
- package/dist/schema.cjs +2 -2
- package/dist/{search-docs-Da7cAz8X.cjs → search-docs-DdOFZY3t.cjs} +3 -3
- package/dist/{search-docs-Da7cAz8X.cjs.map → search-docs-DdOFZY3t.cjs.map} +1 -1
- package/dist/{server-KMgWcsoE.cjs → server-BQBA0VNe.cjs} +25 -25
- package/dist/{server-KMgWcsoE.cjs.map → server-BQBA0VNe.cjs.map} +1 -1
- package/dist/{server-BaovxxmS.js → server-BVqPcPfx.js} +21 -21
- package/dist/{server-BaovxxmS.js.map → server-BVqPcPfx.js.map} +1 -1
- package/dist/server.cjs +40 -40
- package/dist/server.js +27 -27
- package/dist/{slug-validation-ByuBdbX_.cjs → slug-validation-D5VJqMwH.cjs} +2 -2
- package/dist/{slug-validation-ByuBdbX_.cjs.map → slug-validation-D5VJqMwH.cjs.map} +1 -1
- package/dist/{stdio-pNGJyuki.cjs → stdio-DPvrKLnJ.cjs} +3 -3
- package/dist/{stdio-pNGJyuki.cjs.map → stdio-DPvrKLnJ.cjs.map} +1 -1
- package/dist/{stdio-DHijjrp9.js → stdio-YKMCj_QV.js} +2 -2
- package/dist/{stdio-DHijjrp9.js.map → stdio-YKMCj_QV.js.map} +1 -1
- package/dist/telem/index.cjs +1 -1
- package/dist/telem/logging.cjs +1 -1
- package/dist/test-setup.cjs +3 -51873
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1 -51899
- package/dist/test-setup.js.map +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +8 -8
- package/dist/tools/analyze-issue-with-seer.js +4 -4
- package/dist/tools/create-dsn.cjs +8 -8
- package/dist/tools/create-dsn.js +4 -4
- package/dist/tools/create-project.cjs +8 -8
- package/dist/tools/create-project.js +4 -4
- package/dist/tools/create-team.cjs +8 -8
- package/dist/tools/create-team.js +4 -4
- package/dist/tools/find-dsns.cjs +8 -8
- package/dist/tools/find-dsns.d.cts +4 -4
- package/dist/tools/find-dsns.d.ts +4 -4
- package/dist/tools/find-dsns.js +4 -4
- package/dist/tools/find-organizations.cjs +8 -8
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +2 -2
- package/dist/tools/find-organizations.js +4 -4
- package/dist/tools/find-projects.cjs +8 -8
- package/dist/tools/find-projects.d.cts +4 -4
- package/dist/tools/find-projects.d.ts +4 -4
- package/dist/tools/find-projects.js +4 -4
- package/dist/tools/find-releases.cjs +8 -8
- package/dist/tools/find-releases.js +4 -4
- package/dist/tools/find-teams.cjs +8 -8
- package/dist/tools/find-teams.d.cts +4 -4
- package/dist/tools/find-teams.d.ts +4 -4
- package/dist/tools/find-teams.js +4 -4
- package/dist/tools/get-doc.cjs +5 -5
- package/dist/tools/get-doc.js +3 -3
- package/dist/tools/get-event-attachment.cjs +8 -8
- package/dist/tools/get-event-attachment.d.cts +6 -6
- package/dist/tools/get-event-attachment.d.ts +6 -6
- package/dist/tools/get-event-attachment.js +4 -4
- package/dist/tools/get-issue-details.cjs +8 -8
- package/dist/tools/get-issue-details.js +4 -4
- package/dist/tools/get-trace-details.cjs +8 -8
- package/dist/tools/get-trace-details.d.cts +4 -4
- package/dist/tools/get-trace-details.d.ts +4 -4
- package/dist/tools/get-trace-details.js +4 -4
- package/dist/tools/index.cjs +40 -40
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.js +27 -27
- package/dist/tools/search-docs.cjs +7 -7
- package/dist/tools/search-docs.js +2 -2
- package/dist/tools/search-events/agent.cjs +13 -12
- package/dist/tools/search-events/agent.d.cts +5 -5
- package/dist/tools/search-events/agent.d.ts +5 -5
- package/dist/tools/search-events/agent.js +6 -6
- package/dist/tools/search-events/formatters.cjs +7 -7
- package/dist/tools/search-events/formatters.d.cts +5 -5
- package/dist/tools/search-events/formatters.d.ts +5 -5
- package/dist/tools/search-events/formatters.js +2 -2
- package/dist/tools/search-events/handler.cjs +16 -16
- package/dist/tools/search-events/handler.d.cts +1 -1
- package/dist/tools/search-events/handler.d.ts +1 -1
- package/dist/tools/search-events/handler.js +7 -7
- package/dist/tools/search-events/index.cjs +16 -16
- package/dist/tools/search-events/index.d.cts +5 -5
- package/dist/tools/search-events/index.d.ts +5 -5
- package/dist/tools/search-events/index.js +7 -7
- package/dist/tools/search-events/utils.cjs +6 -6
- package/dist/tools/search-events/utils.d.cts +5 -5
- package/dist/tools/search-events/utils.d.ts +5 -5
- package/dist/tools/search-events/utils.js +2 -2
- package/dist/tools/search-issues/agent.cjs +12 -11
- package/dist/tools/search-issues/agent.d.cts +5 -5
- package/dist/tools/search-issues/agent.d.ts +5 -5
- package/dist/tools/search-issues/agent.js +6 -6
- package/dist/tools/search-issues/formatters.cjs +1 -1
- package/dist/tools/search-issues/formatters.d.cts +3 -3
- package/dist/tools/search-issues/formatters.d.ts +3 -3
- package/dist/tools/search-issues/handler.cjs +15 -15
- package/dist/tools/search-issues/handler.d.cts +1 -1
- package/dist/tools/search-issues/handler.d.ts +1 -1
- package/dist/tools/search-issues/handler.js +7 -7
- package/dist/tools/search-issues/index.cjs +15 -15
- package/dist/tools/search-issues/index.d.cts +5 -5
- package/dist/tools/search-issues/index.d.ts +5 -5
- package/dist/tools/search-issues/index.js +7 -7
- package/dist/tools/update-issue.cjs +8 -8
- package/dist/tools/update-issue.d.cts +7 -7
- package/dist/tools/update-issue.d.ts +7 -7
- package/dist/tools/update-issue.js +4 -4
- package/dist/tools/update-project.cjs +8 -8
- package/dist/tools/update-project.js +4 -4
- package/dist/tools/use-sentry/agent.cjs +4 -4
- package/dist/tools/use-sentry/agent.d.cts +2 -2
- package/dist/tools/use-sentry/agent.d.ts +2 -2
- package/dist/tools/use-sentry/agent.js +4 -4
- package/dist/tools/use-sentry/handler.cjs +40 -40
- package/dist/tools/use-sentry/handler.js +27 -27
- package/dist/tools/use-sentry/index.cjs +40 -40
- package/dist/tools/use-sentry/index.d.cts +2 -2
- package/dist/tools/use-sentry/index.d.ts +2 -2
- package/dist/tools/use-sentry/index.js +27 -27
- package/dist/tools/use-sentry/tool-wrapper.cjs +6 -6
- package/dist/tools/use-sentry/tool-wrapper.d.cts +6 -6
- package/dist/tools/use-sentry/tool-wrapper.d.ts +6 -6
- package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -1
- package/dist/tools/use-sentry/tool-wrapper.js +2 -2
- package/dist/tools/whoami.cjs +6 -6
- package/dist/tools/whoami.js +4 -4
- package/dist/transports/stdio.cjs +2 -2
- package/dist/transports/stdio.js +2 -2
- package/dist/{types-CLI02LNZ.d.cts → types-CZI-5yyV.d.cts} +2 -2
- package/dist/{types-CLI02LNZ.d.cts.map → types-CZI-5yyV.d.cts.map} +1 -1
- package/dist/{types-DA9C6AdF.d.ts → types-WcBA7ZSQ.d.ts} +2 -2
- package/dist/{types-DA9C6AdF.d.ts.map → types-WcBA7ZSQ.d.ts.map} +1 -1
- package/dist/{update-issue-B9Y1Qftw.js → update-issue-B35n8MDT.js} +2 -2
- package/dist/{update-issue-B9Y1Qftw.js.map → update-issue-B35n8MDT.js.map} +1 -1
- package/dist/{update-issue-ADk9Bl3r.cjs → update-issue-DOVD2zXD.cjs} +4 -4
- package/dist/{update-issue-ADk9Bl3r.cjs.map → update-issue-DOVD2zXD.cjs.map} +1 -1
- package/dist/{update-project-CoVoAlvN.js → update-project-D361nWlU.js} +2 -2
- package/dist/{update-project-CoVoAlvN.js.map → update-project-D361nWlU.js.map} +1 -1
- package/dist/{update-project-CanU1PTp.cjs → update-project-DG3bwhNA.cjs} +5 -5
- package/dist/{update-project-CanU1PTp.cjs.map → update-project-DG3bwhNA.cjs.map} +1 -1
- package/dist/utils/slug-validation.cjs +1 -1
- package/dist/{utils-DfYLsLqN.d.cts → utils-Bzaer0D1.d.ts} +4 -4
- package/dist/utils-Bzaer0D1.d.ts.map +1 -0
- package/dist/{utils-Cv3R2iOS.d.cts → utils-C5oiuqkh.d.cts} +6 -6
- package/dist/{utils-Cv3R2iOS.d.cts.map → utils-C5oiuqkh.d.cts.map} +1 -1
- package/dist/{utils-_4aPBcrG.d.ts → utils-CAWsA9Cl.d.cts} +4 -4
- package/dist/{utils-DfYLsLqN.d.cts.map → utils-CAWsA9Cl.d.cts.map} +1 -1
- package/dist/{utils-Cr15-6aW.cjs → utils-CIt6Amml.cjs} +3 -3
- package/dist/{utils-Cr15-6aW.cjs.map → utils-CIt6Amml.cjs.map} +1 -1
- package/dist/{utils-Cj4NLgWf.d.ts → utils-CrKFhSC3.d.ts} +6 -6
- package/dist/{utils-Cj4NLgWf.d.ts.map → utils-CrKFhSC3.d.ts.map} +1 -1
- package/dist/{utils-B4iBngk1.cjs → utils-DJIwl8YR.cjs} +3 -3
- package/dist/{utils-B4iBngk1.cjs.map → utils-DJIwl8YR.cjs.map} +1 -1
- package/dist/{version-HXEfly4U.js → version-CCICHYna.js} +2 -2
- package/dist/{version-HXEfly4U.js.map → version-CCICHYna.js.map} +1 -1
- package/dist/{version-DZBMB6XD.cjs → version-CPcX-30c.cjs} +2 -2
- package/dist/{version-DZBMB6XD.cjs.map → version-CPcX-30c.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-DcSsmS02.cjs → whoami-9JymZ3NV.cjs} +3 -3
- package/dist/{whoami-DcSsmS02.cjs.map → whoami-9JymZ3NV.cjs.map} +1 -1
- package/dist/{whoami-CZ02abcM.cjs → whoami-CRF9Ws25.cjs} +2 -2
- package/dist/{whoami-CZ02abcM.cjs.map → whoami-CRF9Ws25.cjs.map} +1 -1
- package/dist/{whoami-Cbo082cU.js → whoami-DCZN-m7R.js} +2 -2
- package/dist/{whoami-Cbo082cU.js.map → whoami-DCZN-m7R.js.map} +1 -1
- package/package.json +5 -4
- package/dist/agent-BePwIb80.d.cts.map +0 -1
- package/dist/agent-Bgg6nor6.cjs.map +0 -1
- package/dist/agent-CaZRIfIM.d.ts.map +0 -1
- package/dist/agent-CuX9zpZq.d.ts.map +0 -1
- package/dist/agent-CzjC0wP8.js.map +0 -1
- package/dist/agent-DOraNng-.cjs.map +0 -1
- package/dist/agent-WO6BpLta.d.cts.map +0 -1
- package/dist/agent-vFXI2vu1.js.map +0 -1
- package/dist/callEmbeddedAgent-B24rpPzZ.d.cts.map +0 -1
- package/dist/callEmbeddedAgent-B51_9ycP.js.map +0 -1
- package/dist/callEmbeddedAgent-Dk48A2gz.d.ts.map +0 -1
- package/dist/callEmbeddedAgent-xTPNMk8s.cjs.map +0 -1
- package/dist/handler-CK_gY4IH.cjs.map +0 -1
- package/dist/handler-DdgXX0YP.js.map +0 -1
- package/dist/handler-Dv8J_Uro.js.map +0 -1
- package/dist/handler-L0cEG-0-.cjs.map +0 -1
- package/dist/schema-xBO557xH.d.ts.map +0 -1
- package/dist/utils-_4aPBcrG.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-BXmNwD2K.js";
|
|
2
2
|
import { defineTool } from "./define-vA6uuVue.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-
|
|
3
|
+
import { apiServiceFromContext } from "./api-CBHyxA3Q.js";
|
|
4
4
|
import { ParamOrganizationSlug, ParamRegionUrl, ParamSearchQuery } from "./schema-ChlpIaqA.js";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
6
6
|
|
|
@@ -53,4 +53,4 @@ var find_teams_default = defineTool({
|
|
|
53
53
|
|
|
54
54
|
//#endregion
|
|
55
55
|
export { find_teams_default };
|
|
56
|
-
//# sourceMappingURL=find-teams-
|
|
56
|
+
//# sourceMappingURL=find-teams-BM4yWKe_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-teams-
|
|
1
|
+
{"version":3,"file":"find-teams-BM4yWKe_.js","names":["context: ServerContext"],"sources":["../src/tools/find-teams.ts"],"sourcesContent":["import { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamSearchQuery,\n} from \"../schema\";\n\nconst RESULT_LIMIT = 25;\n\nexport default defineTool({\n name: \"find_teams\",\n requiredSkills: [\"inspect\", \"triage\", \"project-management\"], // Team viewing and management\n requiredScopes: [\"team:read\"],\n description: [\n \"Find teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View teams in a Sentry organization\",\n \"- Find a team's slug to aid other tool requests\",\n \"- Search for specific teams by name or slug\",\n \"\",\n `Returns up to ${RESULT_LIMIT} results. If you hit this limit, use the query parameter to narrow down results.`,\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n query: ParamSearchQuery.optional(),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const teams = await apiService.listTeams(organizationSlug, {\n query: params.query,\n });\n\n let output = `# Teams in **${organizationSlug}**\\n\\n`;\n\n if (params.query) {\n output += `**Search query:** \"${params.query}\"\\n\\n`;\n }\n\n if (teams.length === 0) {\n output += params.query\n ? `No teams found matching \"${params.query}\".\\n`\n : \"No teams found.\\n\";\n return output;\n }\n\n output += teams.map((team) => `- ${team.slug}\\n`).join(\"\");\n\n if (teams.length === RESULT_LIMIT) {\n output += `\\n---\\n\\n**Note:** Showing ${RESULT_LIMIT} results (maximum). There may be more teams available. Use the \\`query\\` parameter to search for specific teams.`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,MAAM,eAAe;AAErB,yBAAe,WAAW;CACxB,MAAM;CACN,gBAAgB;EAAC;EAAW;EAAU;CAAqB;CAC3D,gBAAgB,CAAC,WAAY;CAC7B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;GACC,gBAAgB,aAAa;CAC/B,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,OAAO,iBAAiB,UAAU;CACnC;CACD,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAI,eACR;AAIJ,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,QAAQ,MAAM,WAAW,UAAU,kBAAkB,EACzD,OAAO,OAAO,MACf,EAAC;EAEF,IAAI,UAAU,eAAe,iBAAiB;AAE9C,MAAI,OAAO,MACT,YAAW,qBAAqB,OAAO,MAAM;AAG/C,MAAI,MAAM,WAAW,GAAG;AACtB,aAAU,OAAO,SACZ,2BAA2B,OAAO,MAAM,QACzC;AACJ,UAAO;EACR;AAED,YAAU,MAAM,IAAI,CAAC,UAAU,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,GAAG;AAE1D,MAAI,MAAM,WAAW,aACnB,YAAW,6BAA6B,aAAa;AAGvD,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_errors = require('./errors-umQzF_vW.cjs');
|
|
3
3
|
const require_define = require('./define-CLp6EtpZ.cjs');
|
|
4
|
-
const require_api = require('./api-
|
|
5
|
-
const require_schema = require('./schema-
|
|
4
|
+
const require_api = require('./api-CHgBJOv9.cjs');
|
|
5
|
+
const require_schema = require('./schema-BGVOjcD7.cjs');
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
7
|
|
|
8
8
|
//#region src/tools/find-teams.ts
|
|
@@ -59,4 +59,4 @@ Object.defineProperty(exports, 'find_teams_default', {
|
|
|
59
59
|
return find_teams_default;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
//# sourceMappingURL=find-teams-
|
|
62
|
+
//# sourceMappingURL=find-teams-Bp6-Iu62.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-teams-
|
|
1
|
+
{"version":3,"file":"find-teams-Bp6-Iu62.cjs","names":["ParamOrganizationSlug","context: ServerContext","UserInputError"],"sources":["../src/tools/find-teams.ts"],"sourcesContent":["import { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamSearchQuery,\n} from \"../schema\";\n\nconst RESULT_LIMIT = 25;\n\nexport default defineTool({\n name: \"find_teams\",\n requiredSkills: [\"inspect\", \"triage\", \"project-management\"], // Team viewing and management\n requiredScopes: [\"team:read\"],\n description: [\n \"Find teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View teams in a Sentry organization\",\n \"- Find a team's slug to aid other tool requests\",\n \"- Search for specific teams by name or slug\",\n \"\",\n `Returns up to ${RESULT_LIMIT} results. If you hit this limit, use the query parameter to narrow down results.`,\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n query: ParamSearchQuery.optional(),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const teams = await apiService.listTeams(organizationSlug, {\n query: params.query,\n });\n\n let output = `# Teams in **${organizationSlug}**\\n\\n`;\n\n if (params.query) {\n output += `**Search query:** \"${params.query}\"\\n\\n`;\n }\n\n if (teams.length === 0) {\n output += params.query\n ? `No teams found matching \"${params.query}\".\\n`\n : \"No teams found.\\n\";\n return output;\n }\n\n output += teams.map((team) => `- ${team.slug}\\n`).join(\"\");\n\n if (teams.length === RESULT_LIMIT) {\n output += `\\n---\\n\\n**Note:** Showing ${RESULT_LIMIT} results (maximum). There may be more teams available. Use the \\`query\\` parameter to search for specific teams.`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAWA,MAAM,eAAe;AAErB,yBAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB;EAAC;EAAW;EAAU;CAAqB;CAC3D,gBAAgB,CAAC,WAAY;CAC7B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;GACC,gBAAgB,aAAa;CAC/B,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,OAAO,gCAAiB,UAAU;CACnC;CACD,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAIC,8BACR;AAIJ,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,QAAQ,MAAM,WAAW,UAAU,kBAAkB,EACzD,OAAO,OAAO,MACf,EAAC;EAEF,IAAI,UAAU,eAAe,iBAAiB;AAE9C,MAAI,OAAO,MACT,YAAW,qBAAqB,OAAO,MAAM;AAG/C,MAAI,MAAM,WAAW,GAAG;AACtB,aAAU,OAAO,SACZ,2BAA2B,OAAO,MAAM,QACzC;AACJ,UAAO;EACR;AAED,YAAU,MAAM,IAAI,CAAC,UAAU,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,GAAG;AAE1D,MAAI,MAAM,WAAW,aACnB,YAAW,6BAA6B,aAAa;AAGvD,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_url_utils = require('./url-utils-CbcNJVYS.cjs');
|
|
3
3
|
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
4
4
|
|
|
@@ -95,4 +95,4 @@ Object.defineProperty(exports, 'formatIssueResults', {
|
|
|
95
95
|
return formatIssueResults;
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
//# sourceMappingURL=formatters-
|
|
98
|
+
//# sourceMappingURL=formatters-B6H5qTFe.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters-
|
|
1
|
+
{"version":3,"file":"formatters-B6H5qTFe.cjs","names":["explanation: string","params: FormatIssueResultsParams","dateString?: string | null"],"sources":["../src/tools/search-issues/formatters.ts"],"sourcesContent":["import type { Issue } from \"../../api-client\";\nimport { getIssueUrl, getIssuesSearchUrl } from \"../../utils/url-utils\";\nimport * as Sentry from \"@sentry/node\";\n\n/**\n * Format an explanation for how a natural language query was translated\n */\nexport function formatExplanation(explanation: string): string {\n return `## How I interpreted your query\\n\\n${explanation}`;\n}\n\nexport interface FormatIssueResultsParams {\n issues: Issue[];\n organizationSlug: string;\n projectSlugOrId?: string;\n query?: string | null;\n regionUrl?: string;\n naturalLanguageQuery?: string;\n skipHeader?: boolean;\n}\n\n/**\n * Format issue search results for display\n */\nexport function formatIssueResults(params: FormatIssueResultsParams): string {\n const {\n issues,\n organizationSlug,\n projectSlugOrId,\n query,\n regionUrl,\n naturalLanguageQuery,\n skipHeader = false,\n } = params;\n\n const host = regionUrl ? new URL(regionUrl).host : \"sentry.io\";\n\n let output = \"\";\n\n // Skip header section if requested (when called from handler with includeExplanation)\n if (!skipHeader) {\n // Use natural language query in title if provided, otherwise fall back to org/project\n if (naturalLanguageQuery) {\n output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n } else {\n output = `# Issues in **${organizationSlug}`;\n if (projectSlugOrId) {\n output += `/${projectSlugOrId}`;\n }\n output += \"**\\n\\n\";\n }\n\n // Add display instructions for UI\n output += `⚠️ **IMPORTANT**: Display these issues as highlighted cards with status indicators, assignee info, and clickable Issue IDs.\\n\\n`;\n }\n\n if (issues.length === 0) {\n Sentry.logger.info(\n Sentry.logger\n .fmt`No issues found for query: ${naturalLanguageQuery || query}`,\n {\n query,\n organizationSlug,\n projectSlug: projectSlugOrId,\n naturalLanguageQuery,\n },\n );\n output += \"No issues found matching your search criteria.\\n\\n\";\n output += \"Try adjusting your search criteria or time range.\";\n return output;\n }\n\n // Generate search URL for viewing results\n const searchUrl = getIssuesSearchUrl(\n host,\n organizationSlug,\n query,\n projectSlugOrId,\n );\n\n // Add view link with emoji and guidance text (like search_events)\n output += `**View these results in Sentry**:\\n${searchUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n output += `Found **${issues.length}** issue${issues.length === 1 ? \"\" : \"s\"}:\\n\\n`;\n\n // Format each issue\n issues.forEach((issue, index) => {\n // Generate issue URL using the utility function\n const issueUrl = getIssueUrl(host, organizationSlug, issue.shortId);\n\n output += `## ${index + 1}. [${issue.shortId}](${issueUrl})\\n\\n`;\n output += `**${issue.title}**\\n\\n`;\n\n // Issue metadata\n // Issues don't have a level field in the API response\n output += `- **Status**: ${issue.status}\\n`;\n output += `- **Users**: ${issue.userCount || 0}\\n`;\n output += `- **Events**: ${issue.count || 0}\\n`;\n\n if (issue.assignedTo) {\n const assignee = issue.assignedTo;\n if (typeof assignee === \"string\") {\n output += `- **Assigned to**: ${assignee}\\n`;\n } else if (\n assignee &&\n typeof assignee === \"object\" &&\n \"name\" in assignee\n ) {\n output += `- **Assigned to**: ${assignee.name}\\n`;\n }\n }\n\n output += `- **First seen**: ${formatDate(issue.firstSeen)}\\n`;\n output += `- **Last seen**: ${formatDate(issue.lastSeen)}\\n`;\n\n if (issue.culprit) {\n output += `- **Culprit**: \\`${issue.culprit}\\`\\n`;\n }\n\n output += \"\\n\";\n });\n\n // Add next steps section (like search_events)\n output += \"## Next Steps\\n\\n\";\n output +=\n \"- Get more details about a specific issue: Use the Issue ID with get_issue_details\\n\";\n output +=\n \"- Update issue status: Use update_issue to resolve or assign issues\\n\";\n output +=\n \"- View event counts: Use search_events for aggregated statistics\\n\";\n\n return output;\n}\n\n/**\n * Format date for display\n */\nfunction formatDate(dateString?: string | null): string {\n if (!dateString) return \"N/A\";\n\n const date = new Date(dateString);\n const now = new Date();\n const diffMs = now.getTime() - date.getTime();\n const diffHours = Math.floor(diffMs / (1000 * 60 * 60));\n\n if (diffHours < 1) {\n const diffMinutes = Math.floor(diffMs / (1000 * 60));\n return `${diffMinutes} minute${diffMinutes === 1 ? \"\" : \"s\"} ago`;\n }\n if (diffHours < 24) {\n return `${diffHours} hour${diffHours === 1 ? \"\" : \"s\"} ago`;\n }\n const diffDays = Math.floor(diffHours / 24);\n if (diffDays < 30) {\n return `${diffDays} day${diffDays === 1 ? \"\" : \"s\"} ago`;\n }\n return date.toLocaleDateString();\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,kBAAkBA,aAA6B;AAC7D,SAAQ,qCAAqC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,mBAAmB,MAAM,QAAQ;AAG9C,YAAU;CACX,EAAC;AAGF,WAAU;AACV,WACE;AACF,WACE;AACF,WACE;AAEF,QAAO;AACR;;;;AAKD,SAAS,WAAWC,YAAoC;AACtD,MAAK,WAAY,QAAO;CAExB,MAAM,OAAO,IAAI,KAAK;CACtB,MAAM,sBAAM,IAAI;CAChB,MAAM,SAAS,IAAI,SAAS,GAAG,KAAK,SAAS;CAC7C,MAAM,YAAY,KAAK,MAAM,UAAU,MAAO,KAAK,IAAI;AAEvD,KAAI,YAAY,GAAG;EACjB,MAAM,cAAc,KAAK,MAAM,UAAU,MAAO,IAAI;AACpD,YAAU,YAAY,SAAS,gBAAgB,IAAI,KAAK,IAAI;CAC7D;AACD,KAAI,YAAY,GACd,WAAU,UAAU,OAAO,cAAc,IAAI,KAAK,IAAI;CAExD,MAAM,WAAW,KAAK,MAAM,YAAY,GAAG;AAC3C,KAAI,WAAW,GACb,WAAU,SAAS,MAAM,aAAa,IAAI,KAAK,IAAI;AAErD,QAAO,KAAK,oBAAoB;AACjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
2
|
-
const require_utils = require('./utils-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_utils = require('./utils-CIt6Amml.cjs');
|
|
3
3
|
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
4
4
|
|
|
5
5
|
//#region src/tools/search-events/formatters.ts
|
|
@@ -244,4 +244,4 @@ Object.defineProperty(exports, 'formatSpanResults', {
|
|
|
244
244
|
return formatSpanResults;
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
//# sourceMappingURL=formatters-
|
|
247
|
+
//# sourceMappingURL=formatters-ObdzRwld.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters-Bta1mFce.cjs","names":["explanation: string","params: FormatEventResultsParams","severityEmojis: Record<string, string>"],"sources":["../src/tools/search-events/formatters.ts"],"sourcesContent":["import type { SentryApiService } from \"../../api-client\";\nimport {\n type FlexibleEventData,\n getStringValue,\n isAggregateQuery,\n} from \"./utils\";\nimport * as Sentry from \"@sentry/node\";\n\n/**\n * Format an explanation for how a natural language query was translated\n */\nexport function formatExplanation(explanation: string): string {\n return `## How I interpreted your query\\n\\n${explanation}`;\n}\n\n/**\n * Common parameters for event formatters\n */\nexport interface FormatEventResultsParams {\n eventData: FlexibleEventData[];\n naturalLanguageQuery: string;\n includeExplanation?: boolean;\n apiService: SentryApiService;\n organizationSlug: string;\n explorerUrl: string;\n sentryQuery: string;\n fields: string[];\n explanation?: string;\n}\n\n/**\n * Format error event results for display\n */\nexport function formatErrorResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these errors as highlighted alert cards with color-coded severity levels and clickable Event IDs.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger\n .fmt`No error events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"errors\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? \"aggregate result\" : \"error\"}${eventData.length === 1 ? \"\" : \"s\"}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual errors, format with details\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"title\",\n \"issue\",\n \"project\",\n \"level\",\n \"error.type\",\n \"message\",\n \"culprit\",\n \"timestamp\",\n \"last_seen()\", // Aggregate field - when the issue was last seen\n \"count()\", // Aggregate field - total occurrences of this issue\n ];\n\n for (const event of eventData) {\n // Try to get a title from various possible fields\n const title =\n getStringValue(event, \"title\") ||\n getStringValue(event, \"message\") ||\n getStringValue(event, \"error.value\") ||\n \"Error Event\";\n\n output += `## ${title}\\n\\n`;\n\n // Display priority fields first if they exist\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"issue\" && typeof value === \"string\") {\n output += `**Issue ID**: ${value}\\n`;\n output += `**Issue URL**: ${apiService.getIssueUrl(organizationSlug, value)}\\n`;\n } else {\n output += `**${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields that weren't in the priority list\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `**${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- Get more details about a specific error: Use the Issue ID\\n\";\n output += \"- View error groups: Navigate to the Issues page in Sentry\\n\";\n output += \"- Set up alerts: Configure alert rules for these error patterns\\n\";\n\n return output;\n}\n\n/**\n * Format log event results for display\n */\nexport function formatLogResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these logs in console format with monospace font, color-coded severity (🔴 ERROR, 🟡 WARN, 🔵 INFO), and preserve timestamps.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger.fmt`No log events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"logs\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? \"aggregate result\" : \"log\"}${eventData.length === 1 ? \"\" : \"s\"}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual logs, format as console output\n output += \"```console\\n\";\n\n for (const event of eventData) {\n const timestamp = getStringValue(event, \"timestamp\", \"N/A\");\n const severity = getStringValue(event, \"severity\", \"info\");\n const message = getStringValue(event, \"message\", \"No message\");\n\n // Safely uppercase the severity\n const severityUpper = severity.toUpperCase();\n\n // Get severity emoji with proper typing\n const severityEmojis: Record<string, string> = {\n ERROR: \"🔴\",\n FATAL: \"🔴\",\n WARN: \"🟡\",\n WARNING: \"🟡\",\n INFO: \"🔵\",\n DEBUG: \"⚫\",\n TRACE: \"⚫\",\n };\n const severityEmoji = severityEmojis[severityUpper] || \"🔵\";\n\n // Standard log format with emoji and proper spacing\n output += `${timestamp} ${severityEmoji} [${severityUpper.padEnd(5)}] ${message}\\n`;\n }\n\n output += \"```\\n\\n\";\n\n // Add detailed metadata for each log entry\n output += \"## Log Details\\n\\n\";\n\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"message\",\n \"severity\",\n \"severity_number\",\n \"timestamp\",\n \"project\",\n \"trace\",\n \"sentry.item_id\",\n ];\n\n for (let i = 0; i < eventData.length; i++) {\n const event = eventData[i];\n\n output += `### Log ${i + 1}\\n`;\n\n // Display priority fields first\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"trace\" && typeof value === \"string\") {\n output += `- **Trace ID**: ${value}\\n`;\n output += `- **Trace URL**: ${apiService.getTraceUrl(organizationSlug, value)}\\n`;\n } else {\n output += `- **${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `- **${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- View related traces: Click on the Trace URL if available\\n\";\n output +=\n \"- Filter by severity: Adjust your query to focus on specific log levels\\n\";\n output += \"- Export logs: Use the Sentry web interface for bulk export\\n\";\n\n return output;\n}\n\n/**\n * Format span/trace event results for display\n */\nexport function formatSpanResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these traces as a performance timeline with duration bars and hierarchical span relationships.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger\n .fmt`No span events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"spans\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? `aggregate result${eventData.length === 1 ? \"\" : \"s\"}` : `trace${eventData.length === 1 ? \"\" : \"s\"}/span${eventData.length === 1 ? \"\" : \"s\"}`}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual spans, format with details\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"id\",\n \"span.op\",\n \"span.description\",\n \"transaction\",\n \"span.duration\",\n \"span.status\",\n \"trace\",\n \"project\",\n \"timestamp\",\n ];\n\n for (const event of eventData) {\n // Try to get a title from various possible fields\n const title =\n getStringValue(event, \"span.description\") ||\n getStringValue(event, \"transaction\") ||\n getStringValue(event, \"span.op\") ||\n \"Span\";\n\n output += `## ${title}\\n\\n`;\n\n // Display priority fields first\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"trace\" && typeof value === \"string\") {\n output += `**Trace ID**: ${value}\\n`;\n output += `**Trace URL**: ${apiService.getTraceUrl(organizationSlug, value)}\\n`;\n } else if (field === \"span.duration\" && typeof value === \"number\") {\n output += `**${field}**: ${value}ms\\n`;\n } else {\n output += `**${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `**${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- View the full trace: Click on the Trace URL above\\n\";\n output +=\n \"- Search for related spans: Modify your query to be more specific\\n\";\n output +=\n \"- Export data: Use the Sentry web interface for advanced analysis\\n\";\n\n return output;\n}\n"],"mappings":";;;;;;;;AAWA,SAAgB,kBAAkBA,aAA6B;AAC7D,SAAQ,qCAAqC;AAC9C;;;;AAoBD,SAAgB,mBAAmBC,QAA0C;CAC3E,MAAM,EACJ,WACA,sBACA,oBACA,YACA,kBACA,aACA,aACA,QACA,aACD,GAAG;CAEJ,IAAI,UAAU,wBAAwB,qBAAqB;AAG3D,KAAI,+BAAiB,OAAO,CAC1B,YAAW;KAEX,YAAW;AAGb,KAAI,sBAAsB,aAAa;AACrC,YAAU,kBAAkB,YAAY;AACxC,aAAW;CACZ;AAED,YAAW,qCAAqC,YAAY;AAC5D,YAAW;AAEX,KAAI,UAAU,WAAW,GAAG;AAC1B,gBAAO,OAAO,KACZ,cAAO,OACJ,IAAI,mCAAmC,wBAC1C;GACE,OAAO;GACC;GACU;GAClB,SAAS;EACV,EACF;AACD,aAAW;AACX,aAAW;AACX,SAAO;CACR;AAED,YAAW,QAAQ,UAAU,OAAO,GAAG,+BAAiB,OAAO,GAAG,qBAAqB,UAAU,UAAU,WAAW,IAAI,KAAK,IAAI;AAGnI,KAAI,+BAAiB,OAAO,EAAE;AAC5B,YAAU;AACV,YAAU,KAAK,UAAU,WAAW,MAAM,EAAE;AAC5C,YAAU;CACX,OAAM;EAGL,MAAM,iBAAiB;GACrB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;AAED,OAAK,MAAM,SAAS,WAAW;GAE7B,MA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W,iBAAiB,WAAW,YAAY,kBAAkB,MAAM,CAAC;IAC7E,WAAU,UAAU,0BAA0B,UAAU,SACvD,YAAW,IAAI,MAAM,MAAM,MAAM;QAEjC,YAAW,IAAI,MAAM,MAAM,MAAM;GAEpC;GAIH,MAAM,kBAAkB,IAAI,IAAI,CAAC,GAAG,gBAAgB,IAAK;AACzD,QAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,MAAM,CAC9C,MACG,gBAAgB,IAAI,IAAI,IACzB,UAAU,QACV,iBAEA,YAAW,IAAI,IAAI,MAAM,MAAM;AAInC,aAAU;EACX;CACF;AAED,WAAU;AACV,WAAU;AACV,WACE;AACF,WACE;AAEF,QAAO;AACR"}
|
|
1
|
+
{"version":3,"file":"formatters-ObdzRwld.cjs","names":["explanation: string","params: FormatEventResultsParams","severityEmojis: Record<string, string>"],"sources":["../src/tools/search-events/formatters.ts"],"sourcesContent":["import type { SentryApiService } from \"../../api-client\";\nimport {\n type FlexibleEventData,\n getStringValue,\n isAggregateQuery,\n} from \"./utils\";\nimport * as Sentry from \"@sentry/node\";\n\n/**\n * Format an explanation for how a natural language query was translated\n */\nexport function formatExplanation(explanation: string): string {\n return `## How I interpreted your query\\n\\n${explanation}`;\n}\n\n/**\n * Common parameters for event formatters\n */\nexport interface FormatEventResultsParams {\n eventData: FlexibleEventData[];\n naturalLanguageQuery: string;\n includeExplanation?: boolean;\n apiService: SentryApiService;\n organizationSlug: string;\n explorerUrl: string;\n sentryQuery: string;\n fields: string[];\n explanation?: string;\n}\n\n/**\n * Format error event results for display\n */\nexport function formatErrorResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these errors as highlighted alert cards with color-coded severity levels and clickable Event IDs.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger\n .fmt`No error events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"errors\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? \"aggregate result\" : \"error\"}${eventData.length === 1 ? \"\" : \"s\"}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual errors, format with details\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"title\",\n \"issue\",\n \"project\",\n \"level\",\n \"error.type\",\n \"message\",\n \"culprit\",\n \"timestamp\",\n \"last_seen()\", // Aggregate field - when the issue was last seen\n \"count()\", // Aggregate field - total occurrences of this issue\n ];\n\n for (const event of eventData) {\n // Try to get a title from various possible fields\n const title =\n getStringValue(event, \"title\") ||\n getStringValue(event, \"message\") ||\n getStringValue(event, \"error.value\") ||\n \"Error Event\";\n\n output += `## ${title}\\n\\n`;\n\n // Display priority fields first if they exist\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"issue\" && typeof value === \"string\") {\n output += `**Issue ID**: ${value}\\n`;\n output += `**Issue URL**: ${apiService.getIssueUrl(organizationSlug, value)}\\n`;\n } else {\n output += `**${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields that weren't in the priority list\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `**${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- Get more details about a specific error: Use the Issue ID\\n\";\n output += \"- View error groups: Navigate to the Issues page in Sentry\\n\";\n output += \"- Set up alerts: Configure alert rules for these error patterns\\n\";\n\n return output;\n}\n\n/**\n * Format log event results for display\n */\nexport function formatLogResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these logs in console format with monospace font, color-coded severity (🔴 ERROR, 🟡 WARN, 🔵 INFO), and preserve timestamps.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger.fmt`No log events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"logs\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? \"aggregate result\" : \"log\"}${eventData.length === 1 ? \"\" : \"s\"}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual logs, format as console output\n output += \"```console\\n\";\n\n for (const event of eventData) {\n const timestamp = getStringValue(event, \"timestamp\", \"N/A\");\n const severity = getStringValue(event, \"severity\", \"info\");\n const message = getStringValue(event, \"message\", \"No message\");\n\n // Safely uppercase the severity\n const severityUpper = severity.toUpperCase();\n\n // Get severity emoji with proper typing\n const severityEmojis: Record<string, string> = {\n ERROR: \"🔴\",\n FATAL: \"🔴\",\n WARN: \"🟡\",\n WARNING: \"🟡\",\n INFO: \"🔵\",\n DEBUG: \"⚫\",\n TRACE: \"⚫\",\n };\n const severityEmoji = severityEmojis[severityUpper] || \"🔵\";\n\n // Standard log format with emoji and proper spacing\n output += `${timestamp} ${severityEmoji} [${severityUpper.padEnd(5)}] ${message}\\n`;\n }\n\n output += \"```\\n\\n\";\n\n // Add detailed metadata for each log entry\n output += \"## Log Details\\n\\n\";\n\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"message\",\n \"severity\",\n \"severity_number\",\n \"timestamp\",\n \"project\",\n \"trace\",\n \"sentry.item_id\",\n ];\n\n for (let i = 0; i < eventData.length; i++) {\n const event = eventData[i];\n\n output += `### Log ${i + 1}\\n`;\n\n // Display priority fields first\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"trace\" && typeof value === \"string\") {\n output += `- **Trace ID**: ${value}\\n`;\n output += `- **Trace URL**: ${apiService.getTraceUrl(organizationSlug, value)}\\n`;\n } else {\n output += `- **${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `- **${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- View related traces: Click on the Trace URL if available\\n\";\n output +=\n \"- Filter by severity: Adjust your query to focus on specific log levels\\n\";\n output += \"- Export logs: Use the Sentry web interface for bulk export\\n\";\n\n return output;\n}\n\n/**\n * Format span/trace event results for display\n */\nexport function formatSpanResults(params: FormatEventResultsParams): string {\n const {\n eventData,\n naturalLanguageQuery,\n includeExplanation,\n apiService,\n organizationSlug,\n explorerUrl,\n sentryQuery,\n fields,\n explanation,\n } = params;\n\n let output = `# Search Results for \"${naturalLanguageQuery}\"\\n\\n`;\n\n // Check if this is an aggregate query and adjust display instructions\n if (isAggregateQuery(fields)) {\n output += `⚠️ **IMPORTANT**: Display these aggregate results as a data table with proper column alignment and formatting.\\n\\n`;\n } else {\n output += `⚠️ **IMPORTANT**: Display these traces as a performance timeline with duration bars and hierarchical span relationships.\\n\\n`;\n }\n\n if (includeExplanation && explanation) {\n output += formatExplanation(explanation);\n output += `\\n\\n`;\n }\n\n output += `**View these results in Sentry**:\\n${explorerUrl}\\n`;\n output += `_Please share this link with the user to view the search results in their Sentry dashboard._\\n\\n`;\n\n if (eventData.length === 0) {\n Sentry.logger.info(\n Sentry.logger\n .fmt`No span events found for query: ${naturalLanguageQuery}`,\n {\n query: sentryQuery,\n fields: fields,\n organizationSlug: organizationSlug,\n dataset: \"spans\",\n },\n );\n output += `No results found.\\n\\n`;\n output += `Try being more specific or using different terms in your search.\\n`;\n return output;\n }\n\n output += `Found ${eventData.length} ${isAggregateQuery(fields) ? `aggregate result${eventData.length === 1 ? \"\" : \"s\"}` : `trace${eventData.length === 1 ? \"\" : \"s\"}/span${eventData.length === 1 ? \"\" : \"s\"}`}:\\n\\n`;\n\n // For aggregate queries, just output the raw data - the agent will format it as a table\n if (isAggregateQuery(fields)) {\n output += \"```json\\n\";\n output += JSON.stringify(eventData, null, 2);\n output += \"\\n```\\n\\n\";\n } else {\n // For individual spans, format with details\n // Define priority fields that should appear first if present\n const priorityFields = [\n \"id\",\n \"span.op\",\n \"span.description\",\n \"transaction\",\n \"span.duration\",\n \"span.status\",\n \"trace\",\n \"project\",\n \"timestamp\",\n ];\n\n for (const event of eventData) {\n // Try to get a title from various possible fields\n const title =\n getStringValue(event, \"span.description\") ||\n getStringValue(event, \"transaction\") ||\n getStringValue(event, \"span.op\") ||\n \"Span\";\n\n output += `## ${title}\\n\\n`;\n\n // Display priority fields first\n for (const field of priorityFields) {\n if (\n field in event &&\n event[field] !== null &&\n event[field] !== undefined\n ) {\n const value = event[field];\n\n if (field === \"trace\" && typeof value === \"string\") {\n output += `**Trace ID**: ${value}\\n`;\n output += `**Trace URL**: ${apiService.getTraceUrl(organizationSlug, value)}\\n`;\n } else if (field === \"span.duration\" && typeof value === \"number\") {\n output += `**${field}**: ${value}ms\\n`;\n } else {\n output += `**${field}**: ${value}\\n`;\n }\n }\n }\n\n // Display any additional fields\n const displayedFields = new Set([...priorityFields, \"id\"]);\n for (const [key, value] of Object.entries(event)) {\n if (\n !displayedFields.has(key) &&\n value !== null &&\n value !== undefined\n ) {\n output += `**${key}**: ${value}\\n`;\n }\n }\n\n output += \"\\n\";\n }\n }\n\n output += \"## Next Steps\\n\\n\";\n output += \"- View the full trace: Click on the Trace URL above\\n\";\n output +=\n \"- Search for related spans: Modify your query to be more specific\\n\";\n output +=\n \"- Export data: Use the Sentry web interface for advanced analysis\\n\";\n\n return output;\n}\n"],"mappings":";;;;;;;;AAWA,SAAgB,kBAAkBA,aAA6B;AAC7D,SAAQ,qCAAqC;AAC9C;;;;AAoBD,SAAgB,mBAAmBC,QAA0C;CAC3E,MAAM,EACJ,WACA,sBACA,oBACA,YACA,kBACA,aACA,aACA,QACA,aACD,GAAG;CAEJ,IAAI,UAAU,wBAAwB,qBAAqB;AAG3D,KAAI,+BAAiB,OAAO,CAC1B,YAAW;KAEX,YAAW;AAGb,KAAI,sBAAsB,aAAa;AACrC,YAAU,kBAAkB,YAAY;AACxC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,OAAO,UAAU,WAAW,IAAI,KAAK,MAAM;AAGhN,KAAI,+BAAiB,OAAO,EAAE;AAC5B,YAAU;AACV,YAAU,KAAK,UAAU,WAAW,MAAM,EAAE;AAC5C,YAAU;CACX,OAAM;EAGL,MAAM,iBAAiB;GACrB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD;AAED,OAAK,MAAM,SAAS,WAAW;GAE7B,MAAM,QACJ,6BAAe,OAAO,mBAAmB,IACzC,6BAAe,OAAO,cAAc,IACpC,6BAAe,OAAO,UAAU,IAChC;AAEF,cAAW,KAAK,MAAM;AAGtB,QAAK,MAAM,SAAS,eAClB,KACE,SAAS,SACT,MAAM,WAAW,QACjB,MAAM,mBACN;IACA,MAAM,QAAQ,MAAM;AAEpB,QAAI,UAAU,kBAAkB,UAAU,UAAU;AAClD,gBAAW,gBAAgB,MAAM;AACjC,gBAAW,iBAAiB,WAAW,YAAY,kBAAkB,MAAM,CAAC;IAC7E,WAAU,UAAU,0BAA0B,UAAU,SACvD,YAAW,IAAI,MAAM,MAAM,MAAM;QAEjC,YAAW,IAAI,MAAM,MAAM,MAAM;GAEpC;GAIH,MAAM,kBAAkB,IAAI,IAAI,CAAC,GAAG,gBAAgB,IAAK;AACzD,QAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,MAAM,CAC9C,MACG,gBAAgB,IAAI,IAAI,IACzB,UAAU,QACV,iBAEA,YAAW,IAAI,IAAI,MAAM,MAAM;AAInC,aAAU;EACX;CACF;AAED,WAAU;AACV,WAAU;AACV,WACE;AACF,WACE;AAEF,QAAO;AACR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FrameInterface } from "./schema-
|
|
2
|
-
import { AutofixRunState, Event, Issue, Trace } from "./types-
|
|
3
|
-
import { SentryApiService } from "./client-
|
|
1
|
+
import { FrameInterface } from "./schema-D5oT-Zi7.cjs";
|
|
2
|
+
import { AutofixRunState, Event, Issue, Trace } from "./types-CZI-5yyV.cjs";
|
|
3
|
+
import { SentryApiService } from "./client-0n2-4zOO.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/formatting.d.ts
|
|
@@ -51,4 +51,4 @@ declare function formatIssueOutput({
|
|
|
51
51
|
//# sourceMappingURL=formatting.d.ts.map
|
|
52
52
|
//#endregion
|
|
53
53
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
54
|
-
//# sourceMappingURL=formatting-
|
|
54
|
+
//# sourceMappingURL=formatting-Bw0FWiCH.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting-
|
|
1
|
+
{"version":3,"file":"formatting-Bw0FWiCH.d.cts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FrameInterface } from "./schema-
|
|
2
|
-
import { AutofixRunState, Event, Issue, Trace } from "./types-
|
|
3
|
-
import { SentryApiService } from "./client-
|
|
1
|
+
import { FrameInterface } from "./schema-Cp8XI7-D.js";
|
|
2
|
+
import { AutofixRunState, Event, Issue, Trace } from "./types-WcBA7ZSQ.js";
|
|
3
|
+
import { SentryApiService } from "./client-ByOC8aCf.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/formatting.d.ts
|
|
@@ -51,4 +51,4 @@ declare function formatIssueOutput({
|
|
|
51
51
|
//# sourceMappingURL=formatting.d.ts.map
|
|
52
52
|
//#endregion
|
|
53
53
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
54
|
-
//# sourceMappingURL=formatting-
|
|
54
|
+
//# sourceMappingURL=formatting-ClM7RU4L.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting-
|
|
1
|
+
{"version":3,"file":"formatting-ClM7RU4L.d.ts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA2FgB;AAqEhB;;;;AAG4B;AAs3C5B;;;AAEE,iBAj8Cc,iBAAA,CAi8Cd,KAAA,EAh8CO,CAAA,CAAE,KAg8CT,CAAA,OAh8CsB,cAg8CtB,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;;;;;;;;AAWmB,iBAt4CL,iBAAA,CAs4CK,KAAA,EAr4CZ,KAq4CY,EAAA,QAAA,EAAA;EAAK,gBAAA,CAAA,EAn4CH,KAm4CG;;;;;;;;;iBAbV,iBAAA;;;;;;;;;SASP;SACA;cACK;iBACG;qBACI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-BXmNwD2K.js";
|
|
2
2
|
import { defineTool } from "./define-vA6uuVue.js";
|
|
3
3
|
import { ApiError } from "./errors-DUEMWOr1.js";
|
|
4
|
-
import { USER_AGENT } from "./version-
|
|
4
|
+
import { USER_AGENT } from "./version-CCICHYna.js";
|
|
5
5
|
import { fetchWithTimeout } from "./fetch-utils-C6qSgZai.js";
|
|
6
6
|
import { setTag } from "@sentry/core";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -84,4 +84,4 @@ var get_doc_default = defineTool({
|
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
86
|
export { get_doc_default };
|
|
87
|
-
//# sourceMappingURL=get-doc-
|
|
87
|
+
//# sourceMappingURL=get-doc-CWhlUoJe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-
|
|
1
|
+
{"version":3,"file":"get-doc-CWhlUoJe.js","names":["context: ServerContext"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { fetchWithTimeout } from \"../internal/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\nimport { USER_AGENT } from \"../version\";\n\nexport default defineTool({\n name: \"get_doc\",\n requiredSkills: [\"docs\"], // Only available in docs skill\n requiredScopes: [], // No Sentry API scopes required - authorization via 'docs' skill\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": USER_AGENT,\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return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ACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_errors = require('./errors-umQzF_vW.cjs');
|
|
3
3
|
const require_define = require('./define-CLp6EtpZ.cjs');
|
|
4
4
|
const require_errors$1 = require('./errors-DWysOIMw.cjs');
|
|
5
|
-
const require_version = require('./version-
|
|
5
|
+
const require_version = require('./version-CPcX-30c.cjs');
|
|
6
6
|
const require_fetch_utils = require('./fetch-utils-DRgOJp3e.cjs');
|
|
7
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
8
|
const zod = require_chunk.__toESM(require("zod"));
|
|
@@ -90,4 +90,4 @@ Object.defineProperty(exports, 'get_doc_default', {
|
|
|
90
90
|
return get_doc_default;
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
//# sourceMappingURL=get-doc-
|
|
93
|
+
//# sourceMappingURL=get-doc-DsOaSMIe.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-
|
|
1
|
+
{"version":3,"file":"get-doc-DsOaSMIe.cjs","names":["context: ServerContext","UserInputError","USER_AGENT","ApiError"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { fetchWithTimeout } from \"../internal/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\nimport { USER_AGENT } from \"../version\";\n\nexport default defineTool({\n name: \"get_doc\",\n requiredSkills: [\"docs\"], // Only available in docs skill\n requiredScopes: [], // No Sentry API scopes required - authorization via 'docs' skill\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": USER_AGENT,\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AASA,sBAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,MAAO;CACxB,gBAAgB,CAAE;CAClB,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,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,4BAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAIC,8BACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAIA,+BACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,qCACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAcC;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAIC,2BACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_define = require('./define-CLp6EtpZ.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
4
|
-
const require_schema = require('./schema-
|
|
3
|
+
const require_api = require('./api-CHgBJOv9.cjs');
|
|
4
|
+
const require_schema = require('./schema-BGVOjcD7.cjs');
|
|
5
5
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
6
|
|
|
7
7
|
//#region src/tools/get-event-attachment.ts
|
|
@@ -147,4 +147,4 @@ Object.defineProperty(exports, 'get_event_attachment_default', {
|
|
|
147
147
|
return get_event_attachment_default;
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
//# sourceMappingURL=get-event-attachment-
|
|
150
|
+
//# sourceMappingURL=get-event-attachment-CTF-k6op.cjs.map
|
package/dist/{get-event-attachment-CMPD67lQ.cjs.map → get-event-attachment-CTF-k6op.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-CTF-k6op.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n requiredSkills: [\"inspect\"], // Only available in inspect skill\n requiredScopes: [\"event:read\"],\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;;AAiBA,mCAAe,0BAAW;CACxB,MAA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OAAO,YAAY,cAAc,OAAO,QAAQ,mBAAmB,WAAW,GAAG;EAClL,EAAC;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./define-vA6uuVue.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-
|
|
2
|
+
import { apiServiceFromContext } from "./api-CBHyxA3Q.js";
|
|
3
3
|
import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-ChlpIaqA.js";
|
|
4
4
|
import { setTag } from "@sentry/core";
|
|
5
5
|
|
|
@@ -141,4 +141,4 @@ var get_event_attachment_default = defineTool({
|
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { get_event_attachment_default };
|
|
144
|
-
//# sourceMappingURL=get-event-attachment-
|
|
144
|
+
//# sourceMappingURL=get-event-attachment-DDvsu6IQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-DDvsu6IQ.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n requiredSkills: [\"inspect\"], // Only available in inspect skill\n requiredScopes: [\"event:read\"],\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;AAiBA,mCAAe,WAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,SAAU;CAC3B,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,aAAa;EACb,SAAS;EACT,cAAc,kBAAkB,UAAU;EAC1C,WAAW,eAAe,UAAU;CACrC;CACD,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,SAAO,qBAAqB,OAAO,iBAAiB;AAGpD,MAAI,OAAO,cAAc;GACvB,MAAM,aAAa,MAAM,WAAW,mBAAmB;IACrD,kBAAkB,OAAO;IACzB,aAAa,OAAO;IACpB,SAAS,OAAO;IAChB,cAAc,OAAO;GACtB,EAAC;GAEF,MAAMC,eACJ,CAAE;GACJ,MAAM,YAAY,WAAW,WAAW,UAAU,WAAW,QAAQ;AAErE,OAAI,UAAU;IACZ,MAAM,UAAU,WAAW,WAAW,UAAU,WAAW,SAAS;IAGpE,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AY;AAE7C,MAAI,YAAY,WAAW,GAAG;AAC5B,aAAU;AACV,UAAO;EACR;AAED,aAAW,QAAQ,YAAY,OAAO;AAEtC,cAAY,QAAQ,CAAC,YAAY,UAAU;AACzC,cAAW,gBAAgB,QAAQ,EAAE;AACrC,cAAW,UAAU,WAAW,GAAG;AACnC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW,iBAAiB,WAAW,SAAS;AAChD,cAAW,eAAe,WAAW,YAAY;AACjD,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW;AACX,cAAW,2CAA2C,OAAO,iBAAiB,kBAAkB,OAAO,YAAY,cAAc,OAAO,QAAQ,mBAAmB,WAAW,GAAG;EAClL,EAAC;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -2,7 +2,7 @@ import { UserInputError } from "./errors-BXmNwD2K.js";
|
|
|
2
2
|
import { defineTool } from "./define-vA6uuVue.js";
|
|
3
3
|
import { logError } from "./logging-ChQnSEmD.js";
|
|
4
4
|
import { ApiNotFoundError } from "./errors-DUEMWOr1.js";
|
|
5
|
-
import { apiServiceFromContext } from "./api-
|
|
5
|
+
import { apiServiceFromContext } from "./api-CBHyxA3Q.js";
|
|
6
6
|
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-ChlpIaqA.js";
|
|
7
7
|
import { parseIssueParams } from "./issue-helpers-DtCbXiRZ.js";
|
|
8
8
|
import { formatIssueOutput } from "./formatting-BEgp4WO_.js";
|
|
@@ -192,4 +192,4 @@ function shouldFetchTraceForEvent(event) {
|
|
|
192
192
|
|
|
193
193
|
//#endregion
|
|
194
194
|
export { get_issue_details_default };
|
|
195
|
-
//# sourceMappingURL=get-issue-details-
|
|
195
|
+
//# sourceMappingURL=get-issue-details-Bsax2jTY.js.map
|