@sentry/mcp-server 0.21.0 → 0.23.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/README.md +9 -0
- package/dist/{agent-vFXI2vu1.js → agent-9s0S2VUD.js} +7 -7
- package/dist/agent-9s0S2VUD.js.map +1 -0
- package/dist/{agent-CaZRIfIM.d.ts → agent-BI-VWYjJ.d.ts} +25 -24
- package/dist/agent-BI-VWYjJ.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-WO6BpLta.d.cts → agent-BmPRmM9x.d.cts} +29 -28
- package/dist/agent-BmPRmM9x.d.cts.map +1 -0
- package/dist/{agent-CzjC0wP8.js → agent-BsCC60AU.js} +14 -10
- package/dist/agent-BsCC60AU.js.map +1 -0
- 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-Bgg6nor6.cjs → agent-CirZFiaJ.cjs} +15 -9
- package/dist/agent-CirZFiaJ.cjs.map +1 -0
- package/dist/{agent-DOraNng-.cjs → agent-CnHO6uyy.cjs} +23 -13
- package/dist/agent-CnHO6uyy.cjs.map +1 -0
- package/dist/{agent-CuX9zpZq.d.ts → agent-D8Mz9ung.d.cts} +12 -11
- package/dist/agent-D8Mz9ung.d.cts.map +1 -0
- package/dist/{agent-CvjnNjVl.js → agent-DD0p64Dq.js} +2 -2
- package/dist/{agent-CvjnNjVl.js.map → agent-DD0p64Dq.js.map} +1 -1
- package/dist/{agent-BePwIb80.d.cts → agent-DQdvMLcG.d.ts} +12 -11
- package/dist/agent-DQdvMLcG.d.ts.map +1 -0
- package/dist/{agent-pad5p0Xr.cjs → agent-DaUNg6Ut.cjs} +3 -3
- package/dist/{agent-pad5p0Xr.cjs.map → agent-DaUNg6Ut.cjs.map} +1 -1
- package/dist/{analyze-issue-with-seer-iXBAIlQL.js → analyze-issue-with-seer-6OwT1RJP.js} +3 -3
- package/dist/analyze-issue-with-seer-6OwT1RJP.js.map +1 -0
- package/dist/{analyze-issue-with-seer-DHxMOCaf.cjs → analyze-issue-with-seer-wsCEFdZs.cjs} +5 -5
- package/dist/{analyze-issue-with-seer-iXBAIlQL.js.map → analyze-issue-with-seer-wsCEFdZs.cjs.map} +1 -1
- package/dist/{api-Cozv5F92.js → api-BCICbJoI.js} +2 -2
- package/dist/{api-Cozv5F92.js.map → api-BCICbJoI.js.map} +1 -1
- package/dist/{api-BkWv0o1h.cjs → api-CfzBwheo.cjs} +2 -2
- package/dist/{api-BkWv0o1h.cjs.map → api-CfzBwheo.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 +3 -3
- package/dist/api-client/index.cjs +7 -4
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +4 -4
- package/dist/api-client/schema.cjs +4 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- 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-Dk48A2gz.d.ts → callEmbeddedAgent-CFHLQjFx.d.cts} +4 -4
- package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +1 -0
- package/dist/{callEmbeddedAgent-xTPNMk8s.cjs → callEmbeddedAgent-COB8Jrcn.cjs} +10 -4
- package/dist/callEmbeddedAgent-COB8Jrcn.cjs.map +1 -0
- package/dist/{callEmbeddedAgent-B51_9ycP.js → callEmbeddedAgent-rEUWAl2g.js} +9 -3
- package/dist/callEmbeddedAgent-rEUWAl2g.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-8_aKE-B-.d.cts} +24 -17
- package/dist/client-8_aKE-B-.d.cts.map +1 -0
- package/dist/{client-D1Oq6Udl.d.ts → client-BGVY6gBL.d.ts} +25 -18
- package/dist/client-BGVY6gBL.d.ts.map +1 -0
- package/dist/{client-BSlwJcxe.js → client-Be1DR1al.js} +33 -16
- package/dist/client-Be1DR1al.js.map +1 -0
- package/dist/{client-DlJ_23xq.cjs → client-DSxCsnqO.cjs} +33 -16
- package/dist/client-DSxCsnqO.cjs.map +1 -0
- package/dist/{create-dsn-erDvHRvv.cjs → create-dsn-C5vd9Btg.cjs} +7 -7
- package/dist/create-dsn-C5vd9Btg.cjs.map +1 -0
- package/dist/{create-dsn-CzaN7V1p.js → create-dsn-DBqCDM_6.js} +5 -5
- package/dist/create-dsn-DBqCDM_6.js.map +1 -0
- package/dist/{create-project-BvmA3Xm7.js → create-project-BsN4Q0cl.js} +6 -6
- package/dist/create-project-BsN4Q0cl.js.map +1 -0
- package/dist/{create-project-B9dyzzyz.cjs → create-project-D4W66CxU.cjs} +9 -9
- package/dist/create-project-D4W66CxU.cjs.map +1 -0
- package/dist/{create-team-Bb0ajRQO.js → create-team-DUBAEGGr.js} +4 -4
- package/dist/create-team-DUBAEGGr.js.map +1 -0
- package/dist/{create-team-CWC7s6TS.cjs → create-team-DV6XmZkb.cjs} +6 -6
- package/dist/create-team-DV6XmZkb.cjs.map +1 -0
- 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-MMdOXURp.cjs → find-dsns-BabAfVEt.cjs} +5 -5
- package/dist/find-dsns-BabAfVEt.cjs.map +1 -0
- package/dist/{find-dsns-Bqafhzp5.js → find-dsns-C-Q6yJT5.js} +3 -3
- package/dist/find-dsns-C-Q6yJT5.js.map +1 -0
- package/dist/{find-organizations-DV7Za1d0.js → find-organizations-Bo-JdU-R.js} +3 -3
- package/dist/{find-organizations-D80maEbK.cjs.map → find-organizations-Bo-JdU-R.js.map} +1 -1
- package/dist/{find-organizations-D80maEbK.cjs → find-organizations-CEEqa1an.cjs} +4 -4
- package/dist/find-organizations-CEEqa1an.cjs.map +1 -0
- package/dist/{find-projects-KrMwC18K.cjs → find-projects-BWyvosHM.cjs} +6 -6
- package/dist/find-projects-BWyvosHM.cjs.map +1 -0
- package/dist/{find-projects-Dcqw9Vyi.js → find-projects-zM4CM_xX.js} +4 -4
- package/dist/find-projects-zM4CM_xX.js.map +1 -0
- package/dist/{find-releases-BPS53QTy.cjs → find-releases-DMJrj5wz.cjs} +7 -7
- package/dist/find-releases-DMJrj5wz.cjs.map +1 -0
- package/dist/{find-releases-CHDuNU2z.js → find-releases-DzdGLPSN.js} +5 -5
- package/dist/find-releases-DzdGLPSN.js.map +1 -0
- package/dist/{find-teams-DPdnW18Q.js → find-teams-CR_hdlun.js} +4 -4
- package/dist/find-teams-CR_hdlun.js.map +1 -0
- package/dist/{find-teams-DFl7ESVe.cjs → find-teams-lOqS_719.cjs} +6 -6
- package/dist/find-teams-lOqS_719.cjs.map +1 -0
- 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-5u-ZFz8H.cjs → formatting-BatGC-29.cjs} +89 -2
- package/dist/formatting-BatGC-29.cjs.map +1 -0
- package/dist/{formatting-CSkVn9rJ.d.ts → formatting-Bm1GxhEu.d.ts} +4 -4
- package/dist/formatting-Bm1GxhEu.d.ts.map +1 -0
- package/dist/{formatting-BEgp4WO_.js → formatting-DUODx6N5.js} +89 -2
- package/dist/formatting-DUODx6N5.js.map +1 -0
- package/dist/{formatting-BWMTp6lM.d.cts → formatting-GZdM57wq.d.cts} +4 -4
- package/dist/formatting-GZdM57wq.d.cts.map +1 -0
- package/dist/{get-doc-BWKx48zK.cjs → get-doc-CbVw4ada.cjs} +3 -3
- package/dist/{get-doc-BWKx48zK.cjs.map → get-doc-CbVw4ada.cjs.map} +1 -1
- package/dist/{get-doc-CGOI0C0A.js → get-doc-FuILofQP.js} +2 -2
- package/dist/{get-doc-CGOI0C0A.js.map → get-doc-FuILofQP.js.map} +1 -1
- package/dist/{get-event-attachment-CMPD67lQ.cjs → get-event-attachment-DuyBT68p.cjs} +6 -6
- package/dist/get-event-attachment-DuyBT68p.cjs.map +1 -0
- package/dist/{get-event-attachment-C5nefGca.js → get-event-attachment-Dzg2R7ng.js} +4 -4
- package/dist/get-event-attachment-Dzg2R7ng.js.map +1 -0
- package/dist/{get-issue-details-BxJ_lQN8.cjs → get-issue-details-BY7S1YyX.cjs} +9 -9
- package/dist/get-issue-details-BY7S1YyX.cjs.map +1 -0
- package/dist/{get-issue-details-y1io-npG.js → get-issue-details-BxJzOzFQ.js} +6 -6
- package/dist/get-issue-details-BxJzOzFQ.js.map +1 -0
- package/dist/{get-trace-details-C9gJYPip.cjs → get-trace-details-DD0p3apU.cjs} +7 -7
- package/dist/get-trace-details-DD0p3apU.cjs.map +1 -0
- package/dist/{get-trace-details-BOBNimN0.js → get-trace-details-Dv2FB534.js} +5 -5
- package/dist/get-trace-details-Dv2FB534.js.map +1 -0
- package/dist/{handler-D6OGs2Ok.d.cts → handler-0iIvlYwy.d.cts} +2 -2
- package/dist/handler-0iIvlYwy.d.cts.map +1 -0
- package/dist/handler-8JzODzam.d.cts +15 -0
- package/dist/handler-8JzODzam.d.cts.map +1 -0
- package/dist/handler-9UUkphzv.d.ts +15 -0
- package/dist/handler-9UUkphzv.d.ts.map +1 -0
- package/dist/{handler-DdgXX0YP.js → handler-BfTAwyrq.js} +11 -11
- package/dist/handler-BfTAwyrq.js.map +1 -0
- package/dist/{handler-Dv8J_Uro.js → handler-BhjeSo2N.js} +10 -10
- package/dist/handler-BhjeSo2N.js.map +1 -0
- package/dist/{handler-CK_gY4IH.cjs → handler-BjTPOR8v.cjs} +14 -14
- package/dist/handler-BjTPOR8v.cjs.map +1 -0
- package/dist/{handler-L0cEG-0-.cjs → handler-C5Tgh1wj.cjs} +14 -14
- package/dist/handler-C5Tgh1wj.cjs.map +1 -0
- package/dist/handler-ClZBIn0B.d.cts +15 -0
- package/dist/handler-ClZBIn0B.d.cts.map +1 -0
- package/dist/handler-CmAbLcaV.d.ts +15 -0
- package/dist/handler-CmAbLcaV.d.ts.map +1 -0
- package/dist/{handler-CXY05zhR.d.ts → handler-DbUy8Z54.d.ts} +2 -2
- package/dist/handler-DbUy8Z54.d.ts.map +1 -0
- package/dist/index.cjs +45 -45
- package/dist/index.js +32 -32
- 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 +4 -4
- package/dist/internal/agents/tools/dataset-fields.js +3 -3
- package/dist/internal/agents/tools/otel-semantics.cjs +6 -6
- package/dist/internal/agents/tools/otel-semantics.d.cts +10 -10
- package/dist/internal/agents/tools/otel-semantics.d.cts.map +1 -1
- package/dist/internal/agents/tools/otel-semantics.d.ts +10 -10
- package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -1
- package/dist/internal/agents/tools/otel-semantics.js +3 -3
- 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 +3 -3
- 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.js +3 -3
- 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 +3 -3
- package/dist/internal/formatting.cjs +2 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.js +2 -1
- 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 +4 -4
- 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 +3 -3
- 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.cjs +2 -1
- 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/issue.js +2 -1
- 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-BpAFXVih.js → openai-provider-BsMAb6zY.js} +2 -2
- package/dist/{openai-provider-BpAFXVih.js.map → openai-provider-BsMAb6zY.js.map} +1 -1
- package/dist/{openai-provider-CdGMI-ue.cjs → openai-provider-BycgrQgi.cjs} +3 -3
- package/dist/{openai-provider-CdGMI-ue.cjs.map → openai-provider-BycgrQgi.cjs.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-CGiILhan.cjs → schema-1xQ4asuW.cjs} +65 -8
- package/dist/schema-1xQ4asuW.cjs.map +1 -0
- 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-CZXkkfj-.d.cts} +3444 -873
- package/dist/schema-CZXkkfj-.d.cts.map +1 -0
- package/dist/{schema-xBO557xH.d.ts → schema-Cfvy5rTy.d.ts} +3511 -940
- package/dist/schema-Cfvy5rTy.d.ts.map +1 -0
- package/dist/{schema-DkZXVCQJ.js → schema-oeFNxyo_.js} +47 -8
- package/dist/schema-oeFNxyo_.js.map +1 -0
- package/dist/schema.cjs +2 -2
- package/dist/{search-docs-Da7cAz8X.cjs → search-docs-C5x-ZRhd.cjs} +5 -5
- package/dist/{search-docs-Da7cAz8X.cjs.map → search-docs-C5x-ZRhd.cjs.map} +1 -1
- package/dist/{search-docs-YYBTOWY5.js → search-docs-UCe9oXQt.js} +3 -3
- package/dist/{search-docs-YYBTOWY5.js.map → search-docs-UCe9oXQt.js.map} +1 -1
- package/dist/{server-BaovxxmS.js → server-BbJwtfJr.js} +24 -23
- package/dist/server-BbJwtfJr.js.map +1 -0
- package/dist/{server-KMgWcsoE.cjs → server-OW--pQOQ.cjs} +27 -26
- package/dist/server-OW--pQOQ.cjs.map +1 -0
- package/dist/server.cjs +41 -41
- package/dist/server.js +30 -30
- package/dist/skillDefinitions.cjs +210 -5
- package/dist/skillDefinitions.cjs.map +1 -1
- package/dist/skillDefinitions.d.cts +5 -0
- package/dist/skillDefinitions.d.cts.map +1 -1
- package/dist/skillDefinitions.d.ts +5 -0
- package/dist/skillDefinitions.d.ts.map +1 -1
- package/dist/skillDefinitions.js +210 -5
- package/dist/skillDefinitions.js.map +1 -1
- 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-DHijjrp9.js → stdio-2BaHF2h-.js} +2 -2
- package/dist/{stdio-DHijjrp9.js.map → stdio-2BaHF2h-.js.map} +1 -1
- package/dist/{stdio-pNGJyuki.cjs → stdio-DL-ID7Q4.cjs} +3 -3
- package/dist/{stdio-pNGJyuki.cjs.map → stdio-DL-ID7Q4.cjs.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/toolDefinitions.cjs +307 -193
- package/dist/toolDefinitions.cjs.map +1 -1
- package/dist/toolDefinitions.js +307 -193
- package/dist/toolDefinitions.js.map +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +9 -9
- package/dist/tools/analyze-issue-with-seer.d.cts +1 -1
- package/dist/tools/analyze-issue-with-seer.d.ts +1 -1
- package/dist/tools/analyze-issue-with-seer.js +6 -6
- package/dist/tools/create-dsn.cjs +8 -8
- package/dist/tools/create-dsn.d.cts +1 -1
- package/dist/tools/create-dsn.d.ts +1 -1
- package/dist/tools/create-dsn.js +5 -5
- package/dist/tools/create-project.cjs +8 -8
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +2 -2
- package/dist/tools/create-project.js +5 -5
- package/dist/tools/create-team.cjs +8 -8
- package/dist/tools/create-team.d.cts +1 -1
- package/dist/tools/create-team.d.ts +1 -1
- package/dist/tools/create-team.js +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/dist/tools/find-releases.cjs +8 -8
- package/dist/tools/find-releases.d.cts +3 -3
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +5 -5
- 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 +5 -5
- package/dist/tools/get-doc.cjs +5 -5
- package/dist/tools/get-doc.js +4 -4
- 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 +5 -5
- package/dist/tools/get-issue-details.cjs +9 -9
- package/dist/tools/get-issue-details.d.cts +1 -1
- package/dist/tools/get-issue-details.d.ts +1 -1
- package/dist/tools/get-issue-details.js +6 -6
- 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 +5 -5
- package/dist/tools/index.cjs +41 -41
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +30 -30
- package/dist/tools/search-docs.cjs +7 -7
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +2 -2
- package/dist/tools/search-docs.js +4 -4
- 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 +7 -7
- 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 +3 -3
- 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 +8 -8
- 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 +8 -8
- 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 +3 -3
- 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 +7 -7
- 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 +8 -8
- 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 +8 -8
- package/dist/tools/update-issue.cjs +9 -9
- package/dist/tools/update-issue.d.cts +7 -7
- package/dist/tools/update-issue.d.ts +7 -7
- package/dist/tools/update-issue.js +6 -6
- package/dist/tools/update-project.cjs +8 -8
- package/dist/tools/update-project.d.cts +5 -5
- package/dist/tools/update-project.d.cts.map +1 -1
- package/dist/tools/update-project.d.ts +5 -5
- package/dist/tools/update-project.d.ts.map +1 -1
- package/dist/tools/update-project.js +5 -5
- 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 +41 -41
- package/dist/tools/use-sentry/handler.d.cts +1 -1
- package/dist/tools/use-sentry/handler.d.ts +1 -1
- package/dist/tools/use-sentry/handler.js +30 -30
- package/dist/tools/use-sentry/index.cjs +41 -41
- package/dist/tools/use-sentry/index.d.cts +3 -3
- package/dist/tools/use-sentry/index.d.ts +3 -3
- package/dist/tools/use-sentry/index.js +30 -30
- 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.cts.map +1 -1
- package/dist/tools/use-sentry/tool-wrapper.d.ts +6 -6
- package/dist/tools/use-sentry/tool-wrapper.js +3 -3
- package/dist/tools/whoami.cjs +6 -6
- package/dist/tools/whoami.js +5 -5
- package/dist/transports/stdio.cjs +2 -2
- package/dist/transports/stdio.js +2 -2
- package/dist/{types-CLI02LNZ.d.cts → types-Cet6uyS6.d.ts} +5 -4
- package/dist/types-Cet6uyS6.d.ts.map +1 -0
- package/dist/{types-DA9C6AdF.d.ts → types-D1CEiyup.d.cts} +5 -4
- package/dist/types-D1CEiyup.d.cts.map +1 -0
- package/dist/{update-issue-B9Y1Qftw.js → update-issue-BGm8g4G0.js} +3 -3
- package/dist/update-issue-BGm8g4G0.js.map +1 -0
- package/dist/{update-issue-ADk9Bl3r.cjs → update-issue-Dx2EZ5pY.cjs} +5 -5
- package/dist/update-issue-Dx2EZ5pY.cjs.map +1 -0
- package/dist/{update-project-CoVoAlvN.js → update-project-B0clXxii.js} +7 -7
- package/dist/update-project-B0clXxii.js.map +1 -0
- package/dist/{update-project-CanU1PTp.cjs → update-project-BJkzcapF.cjs} +10 -10
- package/dist/update-project-BJkzcapF.cjs.map +1 -0
- package/dist/utils/slug-validation.cjs +1 -1
- package/dist/{utils-Cv3R2iOS.d.cts → utils-C7sQWgE3.d.cts} +9 -9
- package/dist/{utils-Cv3R2iOS.d.cts.map → utils-C7sQWgE3.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-CmH2wxA_.d.ts} +9 -9
- package/dist/{utils-Cj4NLgWf.d.ts.map → utils-CmH2wxA_.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/{utils-_4aPBcrG.d.ts → utils-R15EJutP.d.ts} +4 -4
- package/dist/{utils-_4aPBcrG.d.ts.map → utils-R15EJutP.d.ts.map} +1 -1
- package/dist/{utils-DfYLsLqN.d.cts → utils-RPc9DHgJ.d.cts} +4 -4
- package/dist/{utils-DfYLsLqN.d.cts.map → utils-RPc9DHgJ.d.cts.map} +1 -1
- package/dist/{version-DZBMB6XD.cjs → version-CaFsr_xb.cjs} +2 -2
- package/dist/{version-DZBMB6XD.cjs.map → version-CaFsr_xb.cjs.map} +1 -1
- package/dist/{version-HXEfly4U.js → version-DY1nl1TZ.js} +2 -2
- package/dist/{version-HXEfly4U.js.map → version-DY1nl1TZ.js.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-DRDjyhDL.cjs} +2 -2
- package/dist/{whoami-CZ02abcM.cjs.map → whoami-DRDjyhDL.cjs.map} +1 -1
- package/dist/{whoami-Cbo082cU.js → whoami-FliA3IrX.js} +2 -2
- package/dist/{whoami-Cbo082cU.js.map → whoami-FliA3IrX.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/analyze-issue-with-seer-DHxMOCaf.cjs.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/client-BSlwJcxe.js.map +0 -1
- package/dist/client-D1Oq6Udl.d.ts.map +0 -1
- package/dist/client-DeGFkGAD.d.cts.map +0 -1
- package/dist/client-DlJ_23xq.cjs.map +0 -1
- package/dist/create-dsn-CzaN7V1p.js.map +0 -1
- package/dist/create-dsn-erDvHRvv.cjs.map +0 -1
- package/dist/create-project-B9dyzzyz.cjs.map +0 -1
- package/dist/create-project-BvmA3Xm7.js.map +0 -1
- package/dist/create-team-Bb0ajRQO.js.map +0 -1
- package/dist/create-team-CWC7s6TS.cjs.map +0 -1
- package/dist/find-dsns-Bqafhzp5.js.map +0 -1
- package/dist/find-dsns-MMdOXURp.cjs.map +0 -1
- package/dist/find-organizations-DV7Za1d0.js.map +0 -1
- package/dist/find-projects-Dcqw9Vyi.js.map +0 -1
- package/dist/find-projects-KrMwC18K.cjs.map +0 -1
- package/dist/find-releases-BPS53QTy.cjs.map +0 -1
- package/dist/find-releases-CHDuNU2z.js.map +0 -1
- package/dist/find-teams-DFl7ESVe.cjs.map +0 -1
- package/dist/find-teams-DPdnW18Q.js.map +0 -1
- package/dist/formatting-5u-ZFz8H.cjs.map +0 -1
- package/dist/formatting-BEgp4WO_.js.map +0 -1
- package/dist/formatting-BWMTp6lM.d.cts.map +0 -1
- package/dist/formatting-CSkVn9rJ.d.ts.map +0 -1
- package/dist/get-event-attachment-C5nefGca.js.map +0 -1
- package/dist/get-event-attachment-CMPD67lQ.cjs.map +0 -1
- package/dist/get-issue-details-BxJ_lQN8.cjs.map +0 -1
- package/dist/get-issue-details-y1io-npG.js.map +0 -1
- package/dist/get-trace-details-BOBNimN0.js.map +0 -1
- package/dist/get-trace-details-C9gJYPip.cjs.map +0 -1
- package/dist/handler-7ABtxyRG.d.cts +0 -15
- package/dist/handler-7ABtxyRG.d.cts.map +0 -1
- package/dist/handler-BDPbWDvJ.d.ts +0 -15
- package/dist/handler-BDPbWDvJ.d.ts.map +0 -1
- package/dist/handler-CK_gY4IH.cjs.map +0 -1
- package/dist/handler-CU9ZxaP9.d.ts +0 -15
- package/dist/handler-CU9ZxaP9.d.ts.map +0 -1
- package/dist/handler-CXY05zhR.d.ts.map +0 -1
- package/dist/handler-D6OGs2Ok.d.cts.map +0 -1
- package/dist/handler-DdgXX0YP.js.map +0 -1
- package/dist/handler-Dv8J_Uro.js.map +0 -1
- package/dist/handler-FxM1t6Wf.d.cts +0 -15
- package/dist/handler-FxM1t6Wf.d.cts.map +0 -1
- package/dist/handler-L0cEG-0-.cjs.map +0 -1
- package/dist/schema-CGiILhan.cjs.map +0 -1
- package/dist/schema-DkZXVCQJ.js.map +0 -1
- package/dist/schema-Y6BzAUmc.d.cts.map +0 -1
- package/dist/schema-xBO557xH.d.ts.map +0 -1
- package/dist/server-BaovxxmS.js.map +0 -1
- package/dist/server-KMgWcsoE.cjs.map +0 -1
- package/dist/types-CLI02LNZ.d.cts.map +0 -1
- package/dist/types-DA9C6AdF.d.ts.map +0 -1
- package/dist/update-issue-ADk9Bl3r.cjs.map +0 -1
- package/dist/update-issue-B9Y1Qftw.js.map +0 -1
- package/dist/update-project-CanU1PTp.cjs.map +0 -1
- package/dist/update-project-CoVoAlvN.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { SentryApiService } from "./client-
|
|
1
|
+
import { SentryApiService } from "./client-BGVY6gBL.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/tools/search-issues/agent.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
query: z.
|
|
7
|
-
sort: z.
|
|
5
|
+
declare const searchIssuesAgentOutputSchema: z.ZodObject<{
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
sort: z.ZodNullable<z.ZodEnum<["date", "freq", "new", "user"]>>;
|
|
8
8
|
explanation: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
query: string;
|
|
11
|
+
sort: "date" | "user" | "freq" | "new" | null;
|
|
10
12
|
explanation: string;
|
|
11
|
-
query?: string | null | undefined;
|
|
12
|
-
sort?: "date" | "user" | "freq" | "new" | null | undefined;
|
|
13
13
|
}, {
|
|
14
|
+
query: string;
|
|
15
|
+
sort: "date" | "user" | "freq" | "new" | null;
|
|
14
16
|
explanation: string;
|
|
15
|
-
query?: string | null | undefined;
|
|
16
|
-
sort?: "date" | "user" | "freq" | "new" | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
interface SearchIssuesAgentOptions {
|
|
19
19
|
query: string;
|
|
@@ -26,9 +26,10 @@ interface SearchIssuesAgentOptions {
|
|
|
26
26
|
* This returns both the translated query result AND the tool calls made by the agent
|
|
27
27
|
*/
|
|
28
28
|
declare function searchIssuesAgent(options: SearchIssuesAgentOptions): Promise<{
|
|
29
|
-
result: z.
|
|
29
|
+
result: z.output<typeof searchIssuesAgentOutputSchema>;
|
|
30
30
|
toolCalls: any[];
|
|
31
31
|
}>;
|
|
32
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
32
33
|
//#endregion
|
|
33
|
-
export { SearchIssuesAgentOptions, searchIssuesAgent };
|
|
34
|
-
//# sourceMappingURL=agent-
|
|
34
|
+
export { SearchIssuesAgentOptions, searchIssuesAgent, searchIssuesAgentOutputSchema };
|
|
35
|
+
//# sourceMappingURL=agent-DQdvMLcG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-DQdvMLcG.d.ts","names":[],"sources":["../src/tools/search-issues/agent.ts"],"sourcesContent":[],"mappings":";;;;cAWa,+BAA6B,CAAA,CAAA;SASxC,CAAA,CAAA;EATW,IAAA,eAAA,UAAA,CAAA,CAAA,MASX,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,CAAA,CAAA,CAAA;EAAA,WAAA,aAAA;CAAA,EAAA,OAAA,cAAA,EAAA;;;;;OATwC,EAAA,MAAA;EAAA,IAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,KAAA,GAAA,IAAA;EAWzB,WAAA,EAAA,MAAA;AAWjB,CAAA,CAAA;AAAuC,UAXtB,wBAAA,CAWsB;EAAA,KAC5B,EAAA,MAAA;EAAwB,gBAET,EAAA,MAAA;EAA6B,UAA3C,EAXE,gBAWF;EAAM,SADf,CAAA,EAAA,MAAA;AAAO;;;;;iBAFY,iBAAA,UACX,2BACR;UACO,CAAA,CAAE,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
const require_callEmbeddedAgent = require('./callEmbeddedAgent-
|
|
3
|
+
const require_callEmbeddedAgent = require('./callEmbeddedAgent-COB8Jrcn.cjs');
|
|
4
4
|
const require_config = require('./config-BMLvvgGQ.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
|
|
@@ -32,4 +32,4 @@ Object.defineProperty(exports, 'useSentryAgent', {
|
|
|
32
32
|
return useSentryAgent;
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//# sourceMappingURL=agent-
|
|
35
|
+
//# sourceMappingURL=agent-DaUNg6Ut.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-
|
|
1
|
+
{"version":3,"file":"agent-DaUNg6Ut.cjs","names":["options: UseSentryAgentOptions","ConfigurationError","systemPrompt"],"sources":["../src/tools/use-sentry/agent.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { Tool } from \"ai\";\nimport { ConfigurationError } from \"../../errors\";\nimport {\n callEmbeddedAgent,\n type ToolCall,\n} from \"../../internal/agents/callEmbeddedAgent\";\nimport { systemPrompt } from \"./config\";\n\n/**\n * Output schema for the embedded agent.\n * The agent returns the final result string directly from its tool calls.\n */\nconst outputSchema = z.object({\n result: z\n .string()\n .describe(\n \"The final result from your tool calls that answers the user's request\",\n ),\n});\n\nexport interface UseSentryAgentOptions {\n request: string;\n tools: Record<string, Tool>;\n}\n\n/**\n * use_sentry agent - executes natural language requests using Sentry MCP tools\n * This returns the final result AND the tool calls made by the agent\n */\nexport async function useSentryAgent(options: UseSentryAgentOptions): Promise<{\n result: z.infer<typeof outputSchema>;\n toolCalls: ToolCall[];\n}> {\n if (!process.env.OPENAI_API_KEY) {\n throw new ConfigurationError(\n \"OPENAI_API_KEY environment variable is required for use_sentry tool\",\n );\n }\n\n // Frame the request to make clear we're asking the agent to use tools\n // Don't just pass the raw request as it might trigger safety responses\n const prompt = options.request;\n\n // Use callEmbeddedAgent with all pre-wrapped MCP tools\n return await callEmbeddedAgent({\n system: systemPrompt,\n prompt: prompt,\n tools: options.tools,\n schema: outputSchema,\n });\n}\n"],"mappings":";;;;;;;;;;;AAaA,MAAM,eAAe,MAAE,OAAO,EAC5B,QAAQ,MACL,QAAQ,CACR,SACC,wEACD,CACJ,EAAC;;;;;AAWF,eAAsB,eAAeA,SAGlC;AACD,MAAK,QAAQ,IAAI,eACf,OAAM,IAAIC,kCACR;CAMJ,MAAM,SAAS,QAAQ;AAGvB,QAAO,MAAM,4CAAkB;EAC7B,QAAQC;EACA;EACR,OAAO,QAAQ;EACf,QAAQ;CACT,EAAC;AACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineTool } from "./define-vA6uuVue.js";
|
|
2
2
|
import { ApiError, ApiServerError } from "./errors-DUEMWOr1.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-
|
|
3
|
+
import { apiServiceFromContext } from "./api-BCICbJoI.js";
|
|
4
4
|
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-ChlpIaqA.js";
|
|
5
5
|
import { parseIssueParams } from "./issue-helpers-DtCbXiRZ.js";
|
|
6
6
|
import { SEER_INITIAL_RETRY_DELAY, SEER_MAX_RETRIES, SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isTerminalStatus } from "./seer-CSFgx4AP.js";
|
|
@@ -56,7 +56,7 @@ var analyze_issue_with_seer_default = defineTool({
|
|
|
56
56
|
].join("\n"),
|
|
57
57
|
inputSchema: {
|
|
58
58
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
59
|
-
regionUrl: ParamRegionUrl.
|
|
59
|
+
regionUrl: ParamRegionUrl.nullable().default(null),
|
|
60
60
|
issueId: ParamIssueShortId.optional(),
|
|
61
61
|
issueUrl: ParamIssueUrl.optional(),
|
|
62
62
|
instruction: z.string().describe("Optional custom instruction for the AI analysis").optional()
|
|
@@ -197,4 +197,4 @@ var analyze_issue_with_seer_default = defineTool({
|
|
|
197
197
|
|
|
198
198
|
//#endregion
|
|
199
199
|
export { analyze_issue_with_seer_default };
|
|
200
|
-
//# sourceMappingURL=analyze-issue-with-seer-
|
|
200
|
+
//# sourceMappingURL=analyze-issue-with-seer-6OwT1RJP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-issue-with-seer-6OwT1RJP.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredSkills: [\"seer\"], // Only available in seer skill\n requiredScopes: [], // No Sentry API scopes required - authorization via 'seer' skill\n description: [\n \"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.nullable().default(null),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_define = require('./define-CLp6EtpZ.cjs');
|
|
3
3
|
const require_errors = require('./errors-DWysOIMw.cjs');
|
|
4
|
-
const require_api = require('./api-
|
|
5
|
-
const require_schema = require('./schema-
|
|
4
|
+
const require_api = require('./api-CfzBwheo.cjs');
|
|
5
|
+
const require_schema = require('./schema-BGVOjcD7.cjs');
|
|
6
6
|
const require_issue_helpers = require('./issue-helpers-D-hBnXTk.cjs');
|
|
7
7
|
const require_seer = require('./seer-sA1asAZs.cjs');
|
|
8
8
|
const require_fetch_utils = require('./fetch-utils-DRgOJp3e.cjs');
|
|
@@ -57,7 +57,7 @@ var analyze_issue_with_seer_default = require_define.defineTool({
|
|
|
57
57
|
].join("\n"),
|
|
58
58
|
inputSchema: {
|
|
59
59
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
60
|
-
regionUrl: require_schema.ParamRegionUrl.
|
|
60
|
+
regionUrl: require_schema.ParamRegionUrl.nullable().default(null),
|
|
61
61
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
62
62
|
issueUrl: require_schema.ParamIssueUrl.optional(),
|
|
63
63
|
instruction: zod.z.string().describe("Optional custom instruction for the AI analysis").optional()
|
|
@@ -203,4 +203,4 @@ Object.defineProperty(exports, 'analyze_issue_with_seer_default', {
|
|
|
203
203
|
return analyze_issue_with_seer_default;
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
|
-
//# sourceMappingURL=analyze-issue-with-seer-
|
|
206
|
+
//# sourceMappingURL=analyze-issue-with-seer-wsCEFdZs.cjs.map
|
package/dist/{analyze-issue-with-seer-iXBAIlQL.js.map → analyze-issue-with-seer-wsCEFdZs.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-issue-with-seer-iXBAIlQL.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredSkills: [\"seer\"], // Only available in seer skill\n requiredScopes: [], // No Sentry API scopes required - authorization via 'seer' skill\n description: [\n \"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"analyze-issue-with-seer-wsCEFdZs.cjs","names":["context: ServerContext","SEER_MAX_RETRIES","SEER_INITIAL_RETRY_DELAY","ApiServerError","ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredSkills: [\"seer\"], // Only available in seer skill\n requiredScopes: [], // No Sentry API scopes required - authorization via 'seer' skill\n description: [\n \"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.nullable().default(null),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-BXmNwD2K.js";
|
|
2
2
|
import { ApiClientError, ApiNotFoundError } from "./errors-DUEMWOr1.js";
|
|
3
|
-
import { SentryApiService } from "./client-
|
|
3
|
+
import { SentryApiService } from "./client-Be1DR1al.js";
|
|
4
4
|
import { validateRegionUrl } from "./validate-region-url-Bdokgz65.js";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/tool-helpers/api.ts
|
|
@@ -60,4 +60,4 @@ async function withApiErrorHandling(fn, params) {
|
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { apiServiceFromContext, handleApiError, withApiErrorHandling };
|
|
63
|
-
//# sourceMappingURL=api-
|
|
63
|
+
//# sourceMappingURL=api-BCICbJoI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-
|
|
1
|
+
{"version":3,"file":"api-BCICbJoI.js","names":["context: ServerContext","opts: { regionUrl?: string }","error: unknown","params?: Record<string, unknown>","paramsList: string[]","fn: () => Promise<T>"],"sources":["../src/internal/tool-helpers/api.ts"],"sourcesContent":["import {\n SentryApiService,\n ApiClientError,\n ApiNotFoundError,\n} from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\nimport { validateRegionUrl } from \"./validate-region-url\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance (always uses HTTPS)\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.sentryHost;\n\n if (opts.regionUrl?.trim()) {\n // Validate the regionUrl against the base host to prevent SSRF\n // Use default host if context.sentryHost is not set\n const baseHost = context.sentryHost || \"sentry.io\";\n host = validateRegionUrl(opts.regionUrl.trim(), baseHost);\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n\n/**\n * Maps API errors to user-friendly errors based on context\n * @param error - The error to handle\n * @param params - The parameters that were used in the API call\n * @returns Never - always throws an error\n * @throws {UserInputError} For 4xx errors that are likely user input issues\n * @throws {Error} For other errors\n */\nexport function handleApiError(\n error: unknown,\n params?: Record<string, unknown>,\n): never {\n // Use the new error hierarchy - all 4xx errors extend ApiClientError\n if (error instanceof ApiClientError) {\n let message = `API error (${error.status}): ${error.message}`;\n\n // Special handling for 404s with parameter context\n if (error instanceof ApiNotFoundError && params) {\n const paramsList: string[] = [];\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null && value !== \"\") {\n paramsList.push(`${key}: '${value}'`);\n }\n }\n\n if (paramsList.length > 0) {\n message = `Resource not found (404): ${error.message}\\nPlease verify these parameters are correct:\\n${paramsList.map((p) => ` - ${p}`).join(\"\\n\")}`;\n }\n }\n\n throw new UserInputError(message, { cause: error });\n }\n\n // All other errors bubble up (including ApiServerError for 5xx)\n throw error;\n}\n\n/**\n * Wraps an async API call with automatic error handling\n * @param fn - The async function to execute\n * @param params - The parameters that were used in the API call\n * @returns The result of the function\n * @throws {UserInputError} For user input errors\n * @throws {Error} For other errors\n */\nexport async function withApiErrorHandling<T>(\n fn: () => Promise<T>,\n params?: Record<string, unknown>,\n): Promise<T> {\n try {\n return await fn();\n } catch (error) {\n handleApiError(error, params);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,EAAE;EAG1B,MAAM,WAAW,QAAQ,cAAc;AACvC,SAAO,kBAAkB,KAAK,UAAU,MAAM,EAAE,SAAS;CAC1D;AAED,QAAO,IAAI,iBAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF;;;;;;;;;AAUD,SAAgB,eACdC,OACAC,QACO;AAEP,KAAI,iBAAiB,gBAAgB;EACnC,IAAI,WAAW,aAAa,MAAM,OAAO,KAAK,MAAM;AAGpD,MAAI,iBAAiB,oBAAoB,QAAQ;GAC/C,MAAMC,aAAuB,CAAE;AAC/B,QAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,OAAO,CAC/C,KAAI,oBAAuB,UAAU,QAAQ,UAAU,GACrD,YAAW,QAAQ,IAAI,KAAK,MAAM,GAAG;AAIzC,OAAI,WAAW,SAAS,EACtB,YAAW,4BAA4B,MAAM,QAAQ,iDAAiD,WAAW,IAAI,CAAC,OAAO,MAAM,IAAI,CAAC,KAAK,KAAK;EAErJ;AAED,QAAM,IAAI,eAAe,SAAS,EAAE,OAAO,MAAO;CACnD;AAGD,OAAM;AACP;;;;;;;;;AAUD,eAAsB,qBACpBC,IACAF,QACY;AACZ,KAAI;AACF,SAAO,MAAM,IAAI;CAClB,SAAQ,OAAO;AACd,iBAAe,OAAO,OAAO;CAC9B;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_errors = require('./errors-umQzF_vW.cjs');
|
|
2
2
|
const require_errors$1 = require('./errors-DWysOIMw.cjs');
|
|
3
|
-
const require_client = require('./client-
|
|
3
|
+
const require_client = require('./client-DSxCsnqO.cjs');
|
|
4
4
|
const require_validate_region_url = require('./validate-region-url-BvT-IgKg.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/internal/tool-helpers/api.ts
|
|
@@ -77,4 +77,4 @@ Object.defineProperty(exports, 'withApiErrorHandling', {
|
|
|
77
77
|
return withApiErrorHandling;
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
//# sourceMappingURL=api-
|
|
80
|
+
//# sourceMappingURL=api-CfzBwheo.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-
|
|
1
|
+
{"version":3,"file":"api-CfzBwheo.cjs","names":["context: ServerContext","opts: { regionUrl?: string }","SentryApiService","error: unknown","params?: Record<string, unknown>","ApiClientError","ApiNotFoundError","paramsList: string[]","UserInputError","fn: () => Promise<T>"],"sources":["../src/internal/tool-helpers/api.ts"],"sourcesContent":["import {\n SentryApiService,\n ApiClientError,\n ApiNotFoundError,\n} from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\nimport { validateRegionUrl } from \"./validate-region-url\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance (always uses HTTPS)\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.sentryHost;\n\n if (opts.regionUrl?.trim()) {\n // Validate the regionUrl against the base host to prevent SSRF\n // Use default host if context.sentryHost is not set\n const baseHost = context.sentryHost || \"sentry.io\";\n host = validateRegionUrl(opts.regionUrl.trim(), baseHost);\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n\n/**\n * Maps API errors to user-friendly errors based on context\n * @param error - The error to handle\n * @param params - The parameters that were used in the API call\n * @returns Never - always throws an error\n * @throws {UserInputError} For 4xx errors that are likely user input issues\n * @throws {Error} For other errors\n */\nexport function handleApiError(\n error: unknown,\n params?: Record<string, unknown>,\n): never {\n // Use the new error hierarchy - all 4xx errors extend ApiClientError\n if (error instanceof ApiClientError) {\n let message = `API error (${error.status}): ${error.message}`;\n\n // Special handling for 404s with parameter context\n if (error instanceof ApiNotFoundError && params) {\n const paramsList: string[] = [];\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null && value !== \"\") {\n paramsList.push(`${key}: '${value}'`);\n }\n }\n\n if (paramsList.length > 0) {\n message = `Resource not found (404): ${error.message}\\nPlease verify these parameters are correct:\\n${paramsList.map((p) => ` - ${p}`).join(\"\\n\")}`;\n }\n }\n\n throw new UserInputError(message, { cause: error });\n }\n\n // All other errors bubble up (including ApiServerError for 5xx)\n throw error;\n}\n\n/**\n * Wraps an async API call with automatic error handling\n * @param fn - The async function to execute\n * @param params - The parameters that were used in the API call\n * @returns The result of the function\n * @throws {UserInputError} For user input errors\n * @throws {Error} For other errors\n */\nexport async function withApiErrorHandling<T>(\n fn: () => Promise<T>,\n params?: Record<string, unknown>,\n): Promise<T> {\n try {\n return await fn();\n } catch (error) {\n handleApiError(error, params);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,EAAE;EAG1B,MAAM,WAAW,QAAQ,cAAc;AACvC,SAAO,8CAAkB,KAAK,UAAU,MAAM,EAAE,SAAS;CAC1D;AAED,QAAO,IAAIC,gCAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF;;;;;;;;;AAUD,SAAgB,eACdC,OACAC,QACO;AAEP,KAAI,iBAAiBC,iCAAgB;EACnC,IAAI,WAAW,aAAa,MAAM,OAAO,KAAK,MAAM;AAGpD,MAAI,iBAAiBC,qCAAoB,QAAQ;GAC/C,MAAMC,aAAuB,CAAE;AAC/B,QAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,OAAO,CAC/C,KAAI,oBAAuB,UAAU,QAAQ,UAAU,GACrD,YAAW,QAAQ,IAAI,KAAK,MAAM,GAAG;AAIzC,OAAI,WAAW,SAAS,EACtB,YAAW,4BAA4B,MAAM,QAAQ,iDAAiD,WAAW,IAAI,CAAC,OAAO,MAAM,IAAI,CAAC,KAAK,KAAK;EAErJ;AAED,QAAM,IAAIC,8BAAe,SAAS,EAAE,OAAO,MAAO;CACnD;AAGD,OAAM;AACP;;;;;;;;;AAUD,eAAsB,qBACpBC,IACAL,QACY;AACZ,KAAI;AACF,SAAO,MAAM,IAAI;CAClB,SAAQ,OAAO;AACd,iBAAe,OAAO,OAAO;CAC9B;AACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require('../errors-umQzF_vW.cjs');
|
|
2
2
|
require('../url-utils-CbcNJVYS.cjs');
|
|
3
|
-
require('../logging-
|
|
4
|
-
require('../schema-
|
|
3
|
+
require('../logging-C-ST7-Ow.cjs');
|
|
4
|
+
require('../schema-1xQ4asuW.cjs');
|
|
5
5
|
require('../errors-DWysOIMw.cjs');
|
|
6
|
-
require('../version-
|
|
7
|
-
const require_client = require('../client-
|
|
6
|
+
require('../version-CaFsr_xb.cjs');
|
|
7
|
+
const require_client = require('../client-DSxCsnqO.cjs');
|
|
8
8
|
|
|
9
9
|
exports.SentryApiService = require_client.SentryApiService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import "../types-
|
|
3
|
-
import { SentryApiService } from "../client-
|
|
1
|
+
import "../schema-CZXkkfj-.cjs";
|
|
2
|
+
import "../types-D1CEiyup.cjs";
|
|
3
|
+
import { SentryApiService } from "../client-8_aKE-B-.cjs";
|
|
4
4
|
export { SentryApiService };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import "../types-
|
|
3
|
-
import { SentryApiService } from "../client-
|
|
1
|
+
import "../schema-Cfvy5rTy.js";
|
|
2
|
+
import "../types-Cet6uyS6.js";
|
|
3
|
+
import { SentryApiService } from "../client-BGVY6gBL.js";
|
|
4
4
|
export { SentryApiService };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../errors-BXmNwD2K.js";
|
|
2
2
|
import "../url-utils-CfKwo6s5.js";
|
|
3
3
|
import "../logging-ChQnSEmD.js";
|
|
4
|
-
import "../schema-
|
|
4
|
+
import "../schema-oeFNxyo_.js";
|
|
5
5
|
import "../errors-DUEMWOr1.js";
|
|
6
|
-
import "../version-
|
|
7
|
-
import { SentryApiService } from "../client-
|
|
6
|
+
import "../version-DY1nl1TZ.js";
|
|
7
|
+
import { SentryApiService } from "../client-Be1DR1al.js";
|
|
8
8
|
|
|
9
9
|
export { SentryApiService };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
require('../errors-umQzF_vW.cjs');
|
|
2
2
|
require('../url-utils-CbcNJVYS.cjs');
|
|
3
|
-
require('../logging-
|
|
4
|
-
const require_schema = require('../schema-
|
|
3
|
+
require('../logging-C-ST7-Ow.cjs');
|
|
4
|
+
const require_schema = require('../schema-1xQ4asuW.cjs');
|
|
5
5
|
const require_errors$1 = require('../errors-DWysOIMw.cjs');
|
|
6
|
-
require('../version-
|
|
7
|
-
const require_client = require('../client-
|
|
6
|
+
require('../version-CaFsr_xb.cjs');
|
|
7
|
+
const require_client = require('../client-DSxCsnqO.cjs');
|
|
8
8
|
require('../types-n3wuZu5X.cjs');
|
|
9
9
|
require('../api-client-BGgaBFuD.cjs');
|
|
10
10
|
|
|
@@ -36,11 +36,14 @@ exports.EventAttachmentListSchema = require_schema.EventAttachmentListSchema;
|
|
|
36
36
|
exports.EventAttachmentSchema = require_schema.EventAttachmentSchema;
|
|
37
37
|
exports.EventSchema = require_schema.EventSchema;
|
|
38
38
|
exports.EventsResponseSchema = require_schema.EventsResponseSchema;
|
|
39
|
+
exports.EvidenceDisplaySchema = require_schema.EvidenceDisplaySchema;
|
|
39
40
|
exports.ExceptionInterface = require_schema.ExceptionInterface;
|
|
40
41
|
exports.FrameInterface = require_schema.FrameInterface;
|
|
42
|
+
exports.GenericEventSchema = require_schema.GenericEventSchema;
|
|
41
43
|
exports.IssueListSchema = require_schema.IssueListSchema;
|
|
42
44
|
exports.IssueSchema = require_schema.IssueSchema;
|
|
43
45
|
exports.MessageEntrySchema = require_schema.MessageEntrySchema;
|
|
46
|
+
exports.OccurrenceSchema = require_schema.OccurrenceSchema;
|
|
44
47
|
exports.OrganizationListSchema = require_schema.OrganizationListSchema;
|
|
45
48
|
exports.OrganizationSchema = require_schema.OrganizationSchema;
|
|
46
49
|
exports.ProjectListSchema = require_schema.ProjectListSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-
|
|
3
|
-
import { SentryApiService } from "../client-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-CZXkkfj-.cjs";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-D1CEiyup.cjs";
|
|
3
|
+
import { SentryApiService } from "../client-8_aKE-B-.cjs";
|
|
4
4
|
import { ApiAuthenticationError, ApiClientError, ApiError, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, createApiError } from "../errors-DMiENfq7.cjs";
|
|
5
5
|
import "../index-CmCelmEL.cjs";
|
|
6
|
-
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, DefaultEvent, DefaultEventSchema, ErrorEntrySchema, ErrorEvent, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, RawEvent, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, Trace, TraceIssue, TraceIssueSchema, TraceMeta, TraceMetaSchema, TraceSchema, TraceSpan, TraceSpanSchema, TransactionEvent, TransactionEventSchema, UnknownEvent, UnknownEventSchema, User, UserRegionsSchema, UserSchema, createApiError };
|
|
6
|
+
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, DefaultEvent, DefaultEventSchema, ErrorEntrySchema, ErrorEvent, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEvent, GenericEventSchema, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, RawEvent, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, Trace, TraceIssue, TraceIssueSchema, TraceMeta, TraceMetaSchema, TraceSchema, TraceSpan, TraceSpanSchema, TransactionEvent, TransactionEventSchema, UnknownEvent, UnknownEventSchema, User, UserRegionsSchema, UserSchema, createApiError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-
|
|
3
|
-
import { SentryApiService } from "../client-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-Cfvy5rTy.js";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-Cet6uyS6.js";
|
|
3
|
+
import { SentryApiService } from "../client-BGVY6gBL.js";
|
|
4
4
|
import { ApiAuthenticationError, ApiClientError, ApiError, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, createApiError } from "../errors-CyAWBU2S.js";
|
|
5
5
|
import "../index-NfFbnYt3.js";
|
|
6
|
-
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, DefaultEvent, DefaultEventSchema, ErrorEntrySchema, ErrorEvent, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, RawEvent, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, Trace, TraceIssue, TraceIssueSchema, TraceMeta, TraceMetaSchema, TraceSchema, TraceSpan, TraceSpanSchema, TransactionEvent, TransactionEventSchema, UnknownEvent, UnknownEventSchema, User, UserRegionsSchema, UserSchema, createApiError };
|
|
6
|
+
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, DefaultEvent, DefaultEventSchema, ErrorEntrySchema, ErrorEvent, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEvent, GenericEventSchema, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, RawEvent, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, Trace, TraceIssue, TraceIssueSchema, TraceMeta, TraceMetaSchema, TraceSchema, TraceSpan, TraceSpanSchema, TransactionEvent, TransactionEventSchema, UnknownEvent, UnknownEventSchema, User, UserRegionsSchema, UserSchema, createApiError };
|
package/dist/api-client/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../errors-BXmNwD2K.js";
|
|
2
2
|
import "../url-utils-CfKwo6s5.js";
|
|
3
3
|
import "../logging-ChQnSEmD.js";
|
|
4
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
4
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-oeFNxyo_.js";
|
|
5
5
|
import { ApiAuthenticationError, ApiClientError, ApiError, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, createApiError } from "../errors-DUEMWOr1.js";
|
|
6
|
-
import "../version-
|
|
7
|
-
import { SentryApiService } from "../client-
|
|
6
|
+
import "../version-DY1nl1TZ.js";
|
|
7
|
+
import { SentryApiService } from "../client-Be1DR1al.js";
|
|
8
8
|
import "../types-D670-rDz.js";
|
|
9
9
|
import "../api-client-CSLxiNP9.js";
|
|
10
10
|
|
|
11
|
-
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema, createApiError };
|
|
11
|
+
export { ApiAuthenticationError, ApiClientError, ApiError, ApiErrorSchema, ApiNotFoundError, ApiPermissionError, ApiRateLimitError, ApiServerError, ApiValidationError, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema, createApiError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_schema = require('../schema-
|
|
1
|
+
const require_schema = require('../schema-1xQ4asuW.cjs');
|
|
2
2
|
|
|
3
3
|
exports.ApiErrorSchema = require_schema.ApiErrorSchema;
|
|
4
4
|
exports.AssignedToSchema = require_schema.AssignedToSchema;
|
|
@@ -20,11 +20,14 @@ exports.EventAttachmentListSchema = require_schema.EventAttachmentListSchema;
|
|
|
20
20
|
exports.EventAttachmentSchema = require_schema.EventAttachmentSchema;
|
|
21
21
|
exports.EventSchema = require_schema.EventSchema;
|
|
22
22
|
exports.EventsResponseSchema = require_schema.EventsResponseSchema;
|
|
23
|
+
exports.EvidenceDisplaySchema = require_schema.EvidenceDisplaySchema;
|
|
23
24
|
exports.ExceptionInterface = require_schema.ExceptionInterface;
|
|
24
25
|
exports.FrameInterface = require_schema.FrameInterface;
|
|
26
|
+
exports.GenericEventSchema = require_schema.GenericEventSchema;
|
|
25
27
|
exports.IssueListSchema = require_schema.IssueListSchema;
|
|
26
28
|
exports.IssueSchema = require_schema.IssueSchema;
|
|
27
29
|
exports.MessageEntrySchema = require_schema.MessageEntrySchema;
|
|
30
|
+
exports.OccurrenceSchema = require_schema.OccurrenceSchema;
|
|
28
31
|
exports.OrganizationListSchema = require_schema.OrganizationListSchema;
|
|
29
32
|
exports.OrganizationSchema = require_schema.OrganizationSchema;
|
|
30
33
|
exports.ProjectListSchema = require_schema.ProjectListSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
2
|
-
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-CZXkkfj-.cjs";
|
|
2
|
+
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
2
|
-
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-Cfvy5rTy.js";
|
|
2
|
+
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-oeFNxyo_.js";
|
|
2
2
|
|
|
3
|
-
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
3
|
+
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, DefaultEventSchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, EvidenceDisplaySchema, ExceptionInterface, FrameInterface, GenericEventSchema, IssueListSchema, IssueSchema, MessageEntrySchema, OccurrenceSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TraceIssueSchema, TraceMetaSchema, TraceSchema, TraceSpanSchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-
|
|
3
|
-
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User };
|
|
1
|
+
import "../schema-CZXkkfj-.cjs";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-D1CEiyup.cjs";
|
|
3
|
+
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-
|
|
3
|
-
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User };
|
|
1
|
+
import "../schema-Cfvy5rTy.js";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User } from "../types-Cet6uyS6.js";
|
|
3
|
+
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, DefaultEvent, ErrorEvent, Event, EventAttachment, EventAttachmentList, GenericEvent, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, RawEvent, Release, ReleaseList, Tag, TagList, Team, TeamList, Trace, TraceIssue, TraceMeta, TraceSpan, TransactionEvent, UnknownEvent, User };
|
|
@@ -18,7 +18,7 @@ interface EmbeddedAgentResult<T> {
|
|
|
18
18
|
* - Errors are re-thrown for the calling agent to handle
|
|
19
19
|
* - Each agent can implement its own error handling strategy
|
|
20
20
|
*/
|
|
21
|
-
declare function callEmbeddedAgent<
|
|
21
|
+
declare function callEmbeddedAgent<TOutput, TSchema extends z.ZodType<TOutput, z.ZodTypeDef, unknown>>({
|
|
22
22
|
system,
|
|
23
23
|
prompt,
|
|
24
24
|
tools,
|
|
@@ -27,8 +27,8 @@ declare function callEmbeddedAgent<T>({
|
|
|
27
27
|
system: string;
|
|
28
28
|
prompt: string;
|
|
29
29
|
tools: Record<string, Tool>;
|
|
30
|
-
schema:
|
|
31
|
-
}): Promise<EmbeddedAgentResult<
|
|
30
|
+
schema: TSchema;
|
|
31
|
+
}): Promise<EmbeddedAgentResult<TOutput>>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { ToolCall, callEmbeddedAgent };
|
|
34
|
-
//# sourceMappingURL=callEmbeddedAgent-
|
|
34
|
+
//# sourceMappingURL=callEmbeddedAgent-BIfQ-_5T.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callEmbeddedAgent-BIfQ-_5T.d.ts","names":[],"sources":["../src/internal/agents/callEmbeddedAgent.ts"],"sourcesContent":[],"mappings":";;;;KAKY,QAAA;;EAAA,IAAA,EAAA,OAAQ;AAGlB,CAAA;UAEQ,mBAAmB,CAAA,CAAA,CAAA,CAAA;EAAA,MACnB,EAAA,CAAA;EAAC,SACE,EAAA,QAAA,EAAA;AAAQ;AAWrB;;;;;;;;AAOE,iBAPoB,iBAOpB,CAAA,OAAA,EAAA,gBALgB,CAAA,CAAE,OAKlB,CAL0B,OAK1B,EALmC,CAAA,CAAE,UAKrC,EAAA,OAAA,CAAA,CAAA,CAAA;EAAA,MAAA;EAAA,MAAA;EAAA,KAAA;EAAA;CAAA,EAAA;EAAM,MAIgB,EAAA,MAAA;EAAI,MAAnB,EAAA,MAAA;EAAM,KACL,EADD,MACC,CAAA,MAAA,EADc,IACd,CAAA;EAAO,MACe,EADtB,OACsB;CAAO,CAAA,EAAnC,OAAQ,CAAA,mBAAA,CAAoB,OAApB,CAAA,CAAA"}
|