@sentry/mcp-server 0.17.1 → 0.19.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 +45 -19
- package/dist/agent-ADO0sPxf.d.cts +92 -0
- package/dist/agent-ADO0sPxf.d.cts.map +1 -0
- package/dist/agent-BA98dlM7.d.cts +34 -0
- package/dist/agent-BA98dlM7.d.cts.map +1 -0
- package/dist/agent-BL7Xae0U.js +60 -0
- package/dist/agent-BL7Xae0U.js.map +1 -0
- package/dist/agent-CbJ6lvV3.cjs +49 -0
- package/dist/agent-CbJ6lvV3.cjs.map +1 -0
- package/dist/agent-D7MuFRwE.cjs +66 -0
- package/dist/agent-D7MuFRwE.cjs.map +1 -0
- package/dist/agent-D9DV11tZ.d.ts +34 -0
- package/dist/agent-D9DV11tZ.d.ts.map +1 -0
- package/dist/agent-DXya3Bcy.js +43 -0
- package/dist/agent-DXya3Bcy.js.map +1 -0
- package/dist/agent-DhHtOQmP.d.ts +92 -0
- package/dist/agent-DhHtOQmP.d.ts.map +1 -0
- package/dist/{analyze-issue-with-seer-ByoDTsq-.cjs → analyze-issue-with-seer-CI8pvCnf.cjs} +41 -38
- package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-CpwtN4UA.js → analyze-issue-with-seer-DvuKEcbu.js} +20 -17
- package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +1 -0
- package/dist/{api-utils-DFWUfQ83.cjs → api-CZD9zwQ-.cjs} +15 -20
- package/dist/api-CZD9zwQ-.cjs.map +1 -0
- package/dist/{api-utils-BlUSO8xh.js → api-CkLTFexT.js} +15 -20
- package/dist/api-CkLTFexT.js.map +1 -0
- package/dist/api-client/client.cjs +5 -4
- package/dist/api-client/client.d.cts +4 -4
- package/dist/api-client/client.d.ts +4 -4
- package/dist/api-client/client.js +6 -4
- package/dist/api-client/errors.cjs +11 -0
- package/dist/api-client/errors.d.cts +2 -0
- package/dist/api-client/errors.d.ts +2 -0
- package/dist/api-client/errors.js +3 -0
- package/dist/api-client/index.cjs +22 -7
- package/dist/api-client/index.d.cts +6 -5
- package/dist/api-client/index.d.ts +6 -5
- package/dist/api-client/index.js +8 -6
- package/dist/api-client/schema.cjs +6 -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.cjs +1 -1
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/callEmbeddedAgent-B_BMEB_u.js +38 -0
- package/dist/callEmbeddedAgent-B_BMEB_u.js.map +1 -0
- package/dist/callEmbeddedAgent-BaGxBAdM.cjs +44 -0
- package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +1 -0
- package/dist/cli/parse.cjs +5 -0
- package/dist/cli/parse.d.cts +12 -0
- package/dist/cli/parse.d.cts.map +1 -0
- package/dist/cli/parse.d.ts +12 -0
- package/dist/cli/parse.d.ts.map +1 -0
- package/dist/cli/parse.js +3 -0
- package/dist/cli/resolve.cjs +7 -0
- package/dist/cli/resolve.d.cts +11 -0
- package/dist/cli/resolve.d.cts.map +1 -0
- package/dist/cli/resolve.d.ts +11 -0
- package/dist/cli/resolve.d.ts.map +1 -0
- package/dist/cli/resolve.js +6 -0
- package/dist/cli/types.d.cts +3 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/cli/usage.cjs +3 -0
- package/dist/cli/usage.d.cts +9 -0
- package/dist/cli/usage.d.cts.map +1 -0
- package/dist/cli/usage.d.ts +9 -0
- package/dist/cli/usage.d.ts.map +1 -0
- package/dist/cli/usage.js +3 -0
- package/dist/{client-CPrEfAwa.cjs → client-C2TwbSm-.cjs} +197 -86
- package/dist/client-C2TwbSm-.cjs.map +1 -0
- package/dist/{client-MaVV1gVC.js → client-CWgvrDHH.js} +198 -81
- package/dist/client-CWgvrDHH.js.map +1 -0
- package/dist/{client-DLkUGS7r.d.ts → client-C_fNdaX8.d.cts} +118 -22
- package/dist/client-C_fNdaX8.d.cts.map +1 -0
- package/dist/{client-DV68BdcS.d.cts → client-VVhTv_ej.d.ts} +115 -19
- package/dist/client-VVhTv_ej.d.ts.map +1 -0
- package/dist/config-BMC-126h.js +74 -0
- package/dist/config-BMC-126h.js.map +1 -0
- package/dist/{config-CD-5FpOO.cjs → config-CllFlx5w.cjs} +178 -1
- package/dist/config-CllFlx5w.cjs.map +1 -0
- package/dist/config-DbQP60oo.cjs +80 -0
- package/dist/config-DbQP60oo.cjs.map +1 -0
- package/dist/{config-BvtWiL3I.js → config-DlhHLHjD.js} +173 -2
- package/dist/config-DlhHLHjD.js.map +1 -0
- package/dist/{constants-Fe-4NTUo.js → constants-BPM_OWt0.js} +18 -2
- package/dist/constants-BPM_OWt0.js.map +1 -0
- package/dist/{constants-wrEbre3j.cjs → constants-DJrjLmh5.cjs} +29 -1
- package/dist/constants-DJrjLmh5.cjs.map +1 -0
- package/dist/constants.cjs +3 -1
- package/dist/constants.d.cts +8 -1
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.ts +8 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/constraint-helpers-Bey-Pii6.js +64 -0
- package/dist/constraint-helpers-Bey-Pii6.js.map +1 -0
- package/dist/constraint-helpers-BqcuWXad.cjs +76 -0
- package/dist/constraint-helpers-BqcuWXad.cjs.map +1 -0
- package/dist/context-storage-B8onP4Pw.cjs +69 -0
- package/dist/context-storage-B8onP4Pw.cjs.map +1 -0
- package/dist/context-storage-BRwdNVKx.js +51 -0
- package/dist/context-storage-BRwdNVKx.js.map +1 -0
- package/dist/{create-dsn-BT3t-MDA.js → create-dsn-Bx2s8Bik.js} +11 -5
- package/dist/create-dsn-Bx2s8Bik.js.map +1 -0
- package/dist/{create-dsn-Bgwi-Ygi.cjs → create-dsn-ggGt0lZf.cjs} +13 -7
- package/dist/create-dsn-ggGt0lZf.cjs.map +1 -0
- package/dist/{create-project-Ca1Sy1_F.js → create-project-C0pm6zUK.js} +13 -7
- package/dist/create-project-C0pm6zUK.js.map +1 -0
- package/dist/{create-project-4R4aZMoc.cjs → create-project-CZBklXm8.cjs} +15 -9
- package/dist/create-project-CZBklXm8.cjs.map +1 -0
- package/dist/{create-team-D0dUl7Zo.js → create-team-BQIns3VD.js} +11 -5
- package/dist/create-team-BQIns3VD.js.map +1 -0
- package/dist/{create-team-CSBXDcoD.cjs → create-team-DmqKw2c1.cjs} +13 -7
- package/dist/create-team-DmqKw2c1.cjs.map +1 -0
- package/dist/{discover-dataset-fields-Cl7HpVkm.cjs → dataset-fields-C0m-vwNH.cjs} +13 -14
- package/dist/dataset-fields-C0m-vwNH.cjs.map +1 -0
- package/dist/{discover-dataset-fields-BEnyqPSq.js → dataset-fields-C1o_cZrM.js} +13 -14
- package/dist/dataset-fields-C1o_cZrM.js.map +1 -0
- package/dist/define-2Lj8Lm1t.js +8 -0
- package/dist/define-2Lj8Lm1t.js.map +1 -0
- package/dist/{defineTool-lWNTzWl_.cjs → define-BfP4rFlE.cjs} +2 -2
- package/dist/define-BfP4rFlE.cjs.map +1 -0
- package/dist/enhance-error-D3QfZOhm.js +32 -0
- package/dist/enhance-error-D3QfZOhm.js.map +1 -0
- package/dist/enhance-error-DzXrKg85.cjs +37 -0
- package/dist/enhance-error-DzXrKg85.cjs.map +1 -0
- package/dist/error-handling-CxV2m_Dr.cjs +132 -0
- package/dist/error-handling-CxV2m_Dr.cjs.map +1 -0
- package/dist/error-handling-R4SJQ7n0.js +97 -0
- package/dist/error-handling-R4SJQ7n0.js.map +1 -0
- package/dist/errors-00Iz6Wmy.d.cts +20 -0
- package/dist/errors-00Iz6Wmy.d.cts.map +1 -0
- package/dist/errors-Bmqdg5Q6.cjs +271 -0
- package/dist/errors-Bmqdg5Q6.cjs.map +1 -0
- package/dist/errors-Bvit2_Qs.d.ts +20 -0
- package/dist/errors-Bvit2_Qs.d.ts.map +1 -0
- package/dist/errors-CQZ-QlOB.js +217 -0
- package/dist/errors-CQZ-QlOB.js.map +1 -0
- package/dist/errors-DMiENfq7.d.cts +126 -0
- package/dist/errors-DMiENfq7.d.cts.map +1 -0
- package/dist/errors-JbBt1G2l.d.ts +126 -0
- package/dist/errors-JbBt1G2l.d.ts.map +1 -0
- package/dist/errors.d.cts +2 -20
- package/dist/errors.d.ts +2 -20
- package/dist/{fetch-utils-C_Xj921x.js → fetch-utils-BetJhSli.js} +1 -1
- package/dist/{fetch-utils-C_Xj921x.js.map → fetch-utils-BetJhSli.js.map} +1 -1
- package/dist/{fetch-utils-DkcYwqBo.cjs → fetch-utils-Cp3P-Ai3.cjs} +1 -1
- package/dist/{fetch-utils-DkcYwqBo.cjs.map → fetch-utils-Cp3P-Ai3.cjs.map} +1 -1
- package/dist/{find-dsns-DrNAfU_Q.js → find-dsns-BPN8wnUr.js} +9 -4
- package/dist/find-dsns-BPN8wnUr.js.map +1 -0
- package/dist/{find-dsns-CkvahHwJ.cjs → find-dsns-Ct6uFZMB.cjs} +11 -6
- package/dist/find-dsns-Ct6uFZMB.cjs.map +1 -0
- package/dist/{find-organizations-BDtHkcFV.cjs → find-organizations-BGI_WW2q.cjs} +22 -10
- package/dist/find-organizations-BGI_WW2q.cjs.map +1 -0
- package/dist/{find-organizations-Cs1GvZtJ.js → find-organizations-DxH9SS3w.js} +20 -8
- package/dist/find-organizations-DxH9SS3w.js.map +1 -0
- package/dist/find-projects-B80qSPpP.cjs +57 -0
- package/dist/find-projects-B80qSPpP.cjs.map +1 -0
- package/dist/find-projects-DOMBBYAP.js +51 -0
- package/dist/find-projects-DOMBBYAP.js.map +1 -0
- package/dist/{find-releases-Do_CywRr.js → find-releases-CfZRMBvh.js} +10 -5
- package/dist/find-releases-CfZRMBvh.js.map +1 -0
- package/dist/{find-releases-BsAkl--F.cjs → find-releases-Cy-Q-Qje.cjs} +12 -7
- package/dist/find-releases-Cy-Q-Qje.cjs.map +1 -0
- package/dist/find-teams-BuH2ddaL.cjs +57 -0
- package/dist/find-teams-BuH2ddaL.cjs.map +1 -0
- package/dist/find-teams-D5770X0I.js +51 -0
- package/dist/find-teams-D5770X0I.js.map +1 -0
- package/dist/{formatters-DSYXBiQx.js → formatters-B9XiCNZ_.js} +33 -27
- package/dist/formatters-B9XiCNZ_.js.map +1 -0
- package/dist/{formatters-DbqofIoy.cjs → formatters-CkbVfXEE.cjs} +17 -4
- package/dist/formatters-CkbVfXEE.cjs.map +1 -0
- package/dist/{formatters-CfeBjhXZ.cjs → formatters-DMlTJcHW.cjs} +38 -26
- package/dist/formatters-DMlTJcHW.cjs.map +1 -0
- package/dist/{formatters-B3ONbRhI.js → formatters-MEWHZ83Y.js} +12 -5
- package/dist/formatters-MEWHZ83Y.js.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-CAQbf0su.js} +2 -2
- package/dist/formatting-CAQbf0su.js.map +1 -0
- package/dist/formatting-Cu1Skk_Y.cjs +897 -0
- package/dist/formatting-Cu1Skk_Y.cjs.map +1 -0
- package/dist/formatting-DytLf-hH.js +880 -0
- package/dist/formatting-DytLf-hH.js.map +1 -0
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-EM76FrY3.cjs} +2 -2
- package/dist/formatting-EM76FrY3.cjs.map +1 -0
- package/dist/{formatting-C3qu84cm.d.ts → formatting-FJne_W9i.d.cts} +11 -6
- package/dist/formatting-FJne_W9i.d.cts.map +1 -0
- package/dist/{formatting-CmBYkI_e.d.cts → formatting-ar_6QZRE.d.ts} +11 -6
- package/dist/formatting-ar_6QZRE.d.ts.map +1 -0
- package/dist/{get-doc-DyqJe6TP.js → get-doc-D9Xq7et9.js} +10 -5
- package/dist/get-doc-D9Xq7et9.js.map +1 -0
- package/dist/{get-doc-BfMg0GIa.cjs → get-doc-MxWNTA8R.cjs} +12 -7
- package/dist/get-doc-MxWNTA8R.cjs.map +1 -0
- package/dist/{get-event-attachment-CVoMrETq.js → get-event-attachment-B_BzSfcE.js} +9 -4
- package/dist/get-event-attachment-B_BzSfcE.js.map +1 -0
- package/dist/{get-event-attachment-BzhDeM6z.cjs → get-event-attachment-CrtS0QRV.cjs} +11 -6
- package/dist/get-event-attachment-CrtS0QRV.cjs.map +1 -0
- package/dist/{get-issue-details-_uS_AZ_v.js → get-issue-details-Bvw1Xi8I.js} +83 -23
- package/dist/get-issue-details-Bvw1Xi8I.js.map +1 -0
- package/dist/{get-issue-details-C96fhps3.cjs → get-issue-details-DTQ-jXyu.cjs} +85 -25
- package/dist/get-issue-details-DTQ-jXyu.cjs.map +1 -0
- package/dist/get-trace-details-BL5_jvgs.js +306 -0
- package/dist/get-trace-details-BL5_jvgs.js.map +1 -0
- package/dist/get-trace-details-iDp34mms.cjs +312 -0
- package/dist/get-trace-details-iDp34mms.cjs.map +1 -0
- package/dist/{handler-DTN2HYXt.js → handler-B08ITQl8.js} +45 -26
- package/dist/handler-B08ITQl8.js.map +1 -0
- package/dist/{handler-DEjS3yks.cjs → handler-B7-KeBak.cjs} +47 -28
- package/dist/handler-B7-KeBak.cjs.map +1 -0
- package/dist/{handler-BGhr9FJM.d.cts → handler-BcRR_2MX.d.cts} +4 -4
- package/dist/handler-BcRR_2MX.d.cts.map +1 -0
- package/dist/{handler-BPPTAi7I.d.ts → handler-CdSvAOl6.d.ts} +4 -4
- package/dist/handler-CdSvAOl6.d.ts.map +1 -0
- package/dist/{handler-7T1iMsQU.cjs → handler-DIiYPQGL.cjs} +46 -44
- package/dist/handler-DIiYPQGL.cjs.map +1 -0
- package/dist/{handler-BZ3hKPb8.d.cts → handler-LaesAQaD.d.cts} +4 -4
- package/dist/handler-LaesAQaD.d.cts.map +1 -0
- package/dist/{handler-B0bLvFFX.js → handler-nILS77E9.js} +44 -42
- package/dist/handler-nILS77E9.js.map +1 -0
- package/dist/{handler-cUB6XcUV.d.ts → handler-uWae09YN.d.ts} +4 -4
- package/dist/handler-uWae09YN.d.ts.map +1 -0
- package/dist/index.cjs +109 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +109 -103
- package/dist/index.js.map +1 -1
- package/dist/internal/agents/callEmbeddedAgent.cjs +4 -0
- package/dist/internal/agents/callEmbeddedAgent.d.cts +33 -0
- package/dist/internal/agents/callEmbeddedAgent.d.cts.map +1 -0
- package/dist/internal/agents/callEmbeddedAgent.d.ts +33 -0
- package/dist/internal/agents/callEmbeddedAgent.d.ts.map +1 -0
- package/dist/internal/agents/callEmbeddedAgent.js +4 -0
- package/dist/internal/agents/openai-provider.cjs +4 -0
- package/dist/internal/agents/openai-provider.d.cts +24 -0
- package/dist/internal/agents/openai-provider.d.cts.map +1 -0
- package/dist/internal/agents/openai-provider.d.ts +24 -0
- package/dist/internal/agents/openai-provider.d.ts.map +1 -0
- package/dist/internal/agents/openai-provider.js +3 -0
- package/dist/internal/agents/tools/dataset-fields.cjs +15 -0
- package/dist/{agent-tools/discover-dataset-fields.d.ts → internal/agents/tools/dataset-fields.d.cts} +18 -19
- package/dist/internal/agents/tools/dataset-fields.d.cts.map +1 -0
- package/dist/{agent-tools/discover-dataset-fields.d.cts → internal/agents/tools/dataset-fields.d.ts} +18 -19
- package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -0
- package/dist/internal/agents/tools/dataset-fields.js +12 -0
- package/dist/internal/agents/tools/otel-semantics.cjs +13 -0
- package/dist/internal/agents/tools/otel-semantics.d.cts +41 -0
- package/dist/internal/agents/tools/otel-semantics.d.cts.map +1 -0
- package/dist/internal/agents/tools/otel-semantics.d.ts +41 -0
- package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -0
- package/dist/internal/agents/tools/otel-semantics.js +12 -0
- package/dist/internal/agents/tools/utils.cjs +11 -0
- package/dist/internal/agents/tools/utils.d.cts +2 -0
- package/dist/internal/agents/tools/utils.d.ts +2 -0
- package/dist/internal/agents/tools/utils.js +11 -0
- package/dist/internal/agents/tools/whoami.cjs +13 -0
- package/dist/internal/agents/tools/whoami.d.cts +33 -0
- package/dist/internal/agents/tools/whoami.d.cts.map +1 -0
- package/dist/internal/agents/tools/whoami.d.ts +33 -0
- package/dist/internal/agents/tools/whoami.d.ts.map +1 -0
- package/dist/internal/agents/tools/whoami.js +12 -0
- package/dist/internal/constraint-helpers.cjs +4 -0
- package/dist/internal/constraint-helpers.d.cts +53 -0
- package/dist/internal/constraint-helpers.d.cts.map +1 -0
- package/dist/internal/constraint-helpers.d.ts +53 -0
- package/dist/internal/constraint-helpers.d.ts.map +1 -0
- package/dist/internal/constraint-helpers.js +3 -0
- package/dist/internal/context-storage.cjs +5 -0
- package/dist/internal/context-storage.d.cts +48 -0
- package/dist/internal/context-storage.d.cts.map +1 -0
- package/dist/internal/context-storage.d.ts +48 -0
- package/dist/internal/context-storage.d.ts.map +1 -0
- package/dist/internal/context-storage.js +3 -0
- package/dist/internal/error-handling.cjs +16 -0
- package/dist/internal/error-handling.d.cts +40 -0
- package/dist/internal/error-handling.d.cts.map +1 -0
- package/dist/internal/error-handling.d.ts +40 -0
- package/dist/internal/error-handling.d.ts.map +1 -0
- package/dist/internal/error-handling.js +11 -0
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.d.cts +33 -2
- package/dist/internal/fetch-utils.d.cts.map +1 -0
- package/dist/internal/fetch-utils.d.ts +33 -2
- package/dist/internal/fetch-utils.d.ts.map +1 -0
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +6 -5
- package/dist/internal/formatting.d.ts +6 -5
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +1 -1
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.cjs +12 -2
- package/dist/internal/test-fixtures.cjs.map +1 -1
- package/dist/internal/test-fixtures.d.cts +35 -2043
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +35 -2043
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/internal/test-fixtures.js +12 -2
- package/dist/internal/test-fixtures.js.map +1 -1
- package/dist/internal/tool-helpers/api.cjs +15 -0
- package/dist/{tools/utils/api-utils.d.cts → internal/tool-helpers/api.d.cts} +10 -10
- package/dist/internal/tool-helpers/api.d.cts.map +1 -0
- package/dist/{tools/utils/api-utils.d.ts → internal/tool-helpers/api.d.ts} +10 -10
- package/dist/internal/tool-helpers/api.d.ts.map +1 -0
- package/dist/internal/tool-helpers/api.js +13 -0
- package/dist/internal/tool-helpers/define.cjs +3 -0
- package/dist/internal/tool-helpers/define.d.cts +12 -0
- package/dist/internal/tool-helpers/define.d.cts.map +1 -0
- package/dist/internal/tool-helpers/define.d.ts +12 -0
- package/dist/internal/tool-helpers/define.d.ts.map +1 -0
- package/dist/internal/tool-helpers/define.js +3 -0
- package/dist/internal/tool-helpers/enhance-error.cjs +11 -0
- package/dist/internal/tool-helpers/enhance-error.d.cts +29 -0
- package/dist/internal/tool-helpers/enhance-error.d.cts.map +1 -0
- package/dist/internal/tool-helpers/enhance-error.d.ts +29 -0
- package/dist/internal/tool-helpers/enhance-error.d.ts.map +1 -0
- package/dist/internal/tool-helpers/enhance-error.js +11 -0
- package/dist/internal/tool-helpers/formatting.cjs +3 -0
- package/dist/internal/tool-helpers/formatting.d.cts +16 -0
- package/dist/internal/tool-helpers/formatting.d.cts.map +1 -0
- package/dist/internal/tool-helpers/formatting.d.ts +16 -0
- package/dist/internal/tool-helpers/formatting.d.ts.map +1 -0
- package/dist/internal/tool-helpers/formatting.js +3 -0
- package/dist/internal/tool-helpers/issue.cjs +8 -0
- package/dist/internal/tool-helpers/issue.d.cts +8 -0
- package/dist/internal/tool-helpers/issue.d.ts +8 -0
- package/dist/internal/tool-helpers/issue.js +7 -0
- package/dist/internal/tool-helpers/seer.cjs +11 -0
- package/dist/{tools/utils/seer-utils.d.cts → internal/tool-helpers/seer.d.cts} +8 -7
- package/dist/internal/tool-helpers/seer.d.cts.map +1 -0
- package/dist/{tools/utils/seer-utils.d.ts → internal/tool-helpers/seer.d.ts} +8 -7
- package/dist/internal/tool-helpers/seer.d.ts.map +1 -0
- package/dist/{tools/utils/seer-utils.js → internal/tool-helpers/seer.js} +1 -1
- package/dist/internal/tool-helpers/validate-region-url.cjs +5 -0
- package/dist/internal/tool-helpers/validate-region-url.d.cts +20 -0
- package/dist/internal/tool-helpers/validate-region-url.d.cts.map +1 -0
- package/dist/internal/tool-helpers/validate-region-url.d.ts +20 -0
- package/dist/internal/tool-helpers/validate-region-url.d.ts.map +1 -0
- package/dist/internal/tool-helpers/validate-region-url.js +5 -0
- package/dist/{issue-helpers-CRx45FYG.js → issue-helpers-8Bubch8E.js} +1 -1
- package/dist/{issue-helpers-CRx45FYG.js.map → issue-helpers-8Bubch8E.js.map} +1 -1
- package/dist/{issue-helpers-Cz01Ipvl.d.cts → issue-helpers-CD46ia7_.d.cts} +1 -1
- package/dist/{issue-helpers-Cz01Ipvl.d.cts.map → issue-helpers-CD46ia7_.d.cts.map} +1 -1
- package/dist/{issue-helpers-s5fKLwJZ.cjs → issue-helpers-DbPTv_qC.cjs} +1 -1
- package/dist/{issue-helpers-s5fKLwJZ.cjs.map → issue-helpers-DbPTv_qC.cjs.map} +1 -1
- package/dist/{issue-helpers-D1_Uqr-F.d.ts → issue-helpers-bECziPOG.d.ts} +1 -1
- package/dist/{issue-helpers-D1_Uqr-F.d.ts.map → issue-helpers-bECziPOG.d.ts.map} +1 -1
- package/dist/logging-CDYnh7ho.d.cts +31 -0
- package/dist/logging-CDYnh7ho.d.cts.map +1 -0
- package/dist/logging-CkAJKyq2.cjs +298 -0
- package/dist/logging-CkAJKyq2.cjs.map +1 -0
- package/dist/logging-DqqDTe02.js +256 -0
- package/dist/logging-DqqDTe02.js.map +1 -0
- package/dist/logging-PY270KtN.d.ts +31 -0
- package/dist/logging-PY270KtN.d.ts.map +1 -0
- package/dist/openai-provider-BELCfis6.js +29 -0
- package/dist/openai-provider-BELCfis6.js.map +1 -0
- package/dist/openai-provider-CRxXeC9G.cjs +41 -0
- package/dist/openai-provider-CRxXeC9G.cjs.map +1 -0
- package/dist/{lookup-otel-semantics-Dt667kdR.js → otel-semantics-CArUzarp.js} +88 -94
- package/dist/otel-semantics-CArUzarp.js.map +1 -0
- package/dist/{lookup-otel-semantics-BbriXZAx.cjs → otel-semantics-onvZv7i9.cjs} +88 -94
- package/dist/otel-semantics-onvZv7i9.cjs.map +1 -0
- package/dist/parse-8lpnm_2Z.js +92 -0
- package/dist/parse-8lpnm_2Z.js.map +1 -0
- package/dist/parse-shlhKlaL.cjs +110 -0
- package/dist/parse-shlhKlaL.cjs.map +1 -0
- package/dist/permissions-40d2hxK-.d.ts +79 -0
- package/dist/permissions-40d2hxK-.d.ts.map +1 -0
- package/dist/permissions-B1meXGie.d.cts +79 -0
- package/dist/permissions-B1meXGie.d.cts.map +1 -0
- package/dist/permissions-C_xHmYV4.js +157 -0
- package/dist/permissions-C_xHmYV4.js.map +1 -0
- package/dist/permissions-D5kR-bZw.cjs +211 -0
- package/dist/permissions-D5kR-bZw.cjs.map +1 -0
- package/dist/permissions.cjs +11 -0
- package/dist/permissions.d.cts +2 -0
- package/dist/permissions.d.ts +2 -0
- package/dist/permissions.js +3 -0
- package/dist/resolve-CBipUzux.cjs +65 -0
- package/dist/resolve-CBipUzux.cjs.map +1 -0
- package/dist/resolve-CZduTbDq.js +54 -0
- package/dist/resolve-CZduTbDq.js.map +1 -0
- package/dist/{schema-DWmx8lgm.d.ts → schema-0uEmsoCr.d.ts} +3043 -495
- package/dist/schema-0uEmsoCr.d.ts.map +1 -0
- package/dist/{schema-CcFmBoEf.js → schema-CuB-30t5.js} +116 -6
- package/dist/schema-CuB-30t5.js.map +1 -0
- package/dist/{schema-BL3kwfOA.cjs → schema-Cv_VNAHz.cjs} +21 -6
- package/dist/schema-Cv_VNAHz.cjs.map +1 -0
- package/dist/{schema-C0LznFvu.cjs → schema-DoWJbcHt.cjs} +145 -5
- package/dist/schema-DoWJbcHt.cjs.map +1 -0
- package/dist/{schema-DMfkTR1l.js → schema-rwexXWFL.js} +10 -7
- package/dist/schema-rwexXWFL.js.map +1 -0
- package/dist/{schema-xbTf44Hn.d.cts → schema-xhCkX5uD.d.cts} +2988 -440
- package/dist/schema-xhCkX5uD.d.cts.map +1 -0
- package/dist/schema.cjs +5 -2
- package/dist/schema.d.cts +8 -5
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +8 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -3
- package/dist/{search-docs-DIm3ykOg.js → search-docs-B9qNTw49.js} +10 -5
- package/dist/search-docs-B9qNTw49.js.map +1 -0
- package/dist/{search-docs-EbjJuL9Q.cjs → search-docs-CTT1Bt1U.cjs} +12 -7
- package/dist/search-docs-CTT1Bt1U.cjs.map +1 -0
- package/dist/{seer-utils-C7Kv0gr8.cjs → seer-B63P5CPi.cjs} +2 -2
- package/dist/seer-B63P5CPi.cjs.map +1 -0
- package/dist/{seer-utils-NPHv8KYY.js → seer-CderEQ-X.js} +2 -2
- package/dist/seer-CderEQ-X.js.map +1 -0
- package/dist/sentry-BhTMff8f.js +104 -0
- package/dist/sentry-BhTMff8f.js.map +1 -0
- package/dist/sentry-DZNWcvcy.d.ts +9 -0
- package/dist/sentry-DZNWcvcy.d.ts.map +1 -0
- package/dist/sentry-Da9wc8eP.cjs +110 -0
- package/dist/sentry-Da9wc8eP.cjs.map +1 -0
- package/dist/sentry-De4G2HDR.d.cts +9 -0
- package/dist/sentry-De4G2HDR.d.cts.map +1 -0
- package/dist/server-B0jJJdAd.js +157 -0
- package/dist/server-B0jJJdAd.js.map +1 -0
- package/dist/server-Bk2YVj60.cjs +163 -0
- package/dist/server-Bk2YVj60.cjs.map +1 -0
- package/dist/server.cjs +62 -54
- package/dist/server.d.cts +32 -18
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +32 -18
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +62 -54
- package/dist/slug-validation-58wajHeL.js +93 -0
- package/dist/slug-validation-58wajHeL.js.map +1 -0
- package/dist/slug-validation-DMk8Dyuh.cjs +111 -0
- package/dist/slug-validation-DMk8Dyuh.cjs.map +1 -0
- package/dist/{stdio-C6MAgHmA.cjs → stdio-D_myxOG-.cjs} +17 -15
- package/dist/stdio-D_myxOG-.cjs.map +1 -0
- package/dist/{stdio-DnAY4MSF.js → stdio-Uv0oXx1a.js} +17 -15
- package/dist/stdio-Uv0oXx1a.js.map +1 -0
- package/dist/telem/index.cjs +10 -0
- package/dist/telem/index.d.cts +3 -0
- package/dist/telem/index.d.ts +3 -0
- package/dist/telem/index.js +4 -0
- package/dist/telem/logging.cjs +9 -0
- package/dist/telem/logging.d.cts +2 -0
- package/dist/telem/logging.d.ts +2 -0
- package/dist/telem/logging.js +3 -0
- package/dist/telem/sentry.cjs +3 -0
- package/dist/telem/sentry.d.cts +2 -0
- package/dist/telem/sentry.d.ts +2 -0
- package/dist/telem/sentry.js +3 -0
- package/dist/test-setup.cjs +33843 -1525
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.d.cts +32 -1
- package/dist/test-setup.d.cts.map +1 -0
- package/dist/test-setup.d.ts +32 -1
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/test-setup.js +33896 -1578
- package/dist/test-setup.js.map +1 -1
- package/dist/test-utils/context.cjs +32 -0
- package/dist/test-utils/context.cjs.map +1 -0
- package/dist/test-utils/context.d.cts +17 -0
- package/dist/test-utils/context.d.cts.map +1 -0
- package/dist/test-utils/context.d.ts +17 -0
- package/dist/test-utils/context.d.ts.map +1 -0
- package/dist/test-utils/context.js +30 -0
- package/dist/test-utils/context.js.map +1 -0
- package/dist/toolDefinitions.cjs +638 -120
- package/dist/toolDefinitions.cjs.map +1 -1
- package/dist/toolDefinitions.d.cts +5 -5
- package/dist/toolDefinitions.d.cts.map +1 -1
- package/dist/toolDefinitions.d.ts +5 -5
- package/dist/toolDefinitions.d.ts.map +1 -1
- package/dist/toolDefinitions.js +638 -120
- package/dist/toolDefinitions.js.map +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +19 -15
- package/dist/tools/analyze-issue-with-seer.d.cts +4 -4
- package/dist/tools/analyze-issue-with-seer.d.ts +4 -4
- package/dist/tools/analyze-issue-with-seer.js +19 -15
- package/dist/tools/create-dsn.cjs +14 -10
- package/dist/tools/create-dsn.d.cts +5 -5
- package/dist/tools/create-dsn.d.ts +5 -5
- package/dist/tools/create-dsn.js +14 -10
- package/dist/tools/create-project.cjs +14 -11
- package/dist/tools/create-project.d.cts +5 -5
- package/dist/tools/create-project.d.ts +5 -5
- package/dist/tools/create-project.js +14 -11
- package/dist/tools/create-team.cjs +14 -10
- package/dist/tools/create-team.d.cts +4 -4
- package/dist/tools/create-team.d.ts +4 -4
- package/dist/tools/create-team.js +14 -10
- package/dist/tools/find-dsns.cjs +14 -10
- package/dist/tools/find-dsns.d.cts +7 -7
- package/dist/tools/find-dsns.d.cts.map +1 -1
- package/dist/tools/find-dsns.d.ts +7 -7
- package/dist/tools/find-dsns.d.ts.map +1 -1
- package/dist/tools/find-dsns.js +14 -10
- package/dist/tools/find-organizations.cjs +14 -8
- package/dist/tools/find-organizations.d.cts +7 -4
- package/dist/tools/find-organizations.d.ts +7 -4
- package/dist/tools/find-organizations.js +14 -8
- package/dist/tools/find-projects.cjs +14 -10
- package/dist/tools/find-projects.d.cts +7 -6
- package/dist/tools/find-projects.d.cts.map +1 -1
- package/dist/tools/find-projects.d.ts +7 -6
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-projects.js +14 -10
- package/dist/tools/find-releases.cjs +14 -10
- package/dist/tools/find-releases.d.cts +5 -5
- package/dist/tools/find-releases.d.ts +5 -5
- package/dist/tools/find-releases.js +14 -10
- package/dist/tools/find-teams.cjs +14 -10
- package/dist/tools/find-teams.d.cts +7 -6
- package/dist/tools/find-teams.d.cts.map +1 -1
- package/dist/tools/find-teams.d.ts +7 -6
- package/dist/tools/find-teams.d.ts.map +1 -1
- package/dist/tools/find-teams.js +14 -10
- package/dist/tools/get-doc.cjs +10 -9
- package/dist/tools/get-doc.d.cts +3 -3
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +10 -9
- package/dist/tools/get-event-attachment.cjs +14 -10
- package/dist/tools/get-event-attachment.d.cts +9 -9
- package/dist/tools/get-event-attachment.d.cts.map +1 -1
- package/dist/tools/get-event-attachment.d.ts +9 -9
- package/dist/tools/get-event-attachment.d.ts.map +1 -1
- package/dist/tools/get-event-attachment.js +14 -10
- package/dist/tools/get-issue-details.cjs +19 -14
- package/dist/tools/get-issue-details.d.cts +4 -4
- package/dist/tools/get-issue-details.d.ts +4 -4
- package/dist/tools/get-issue-details.js +19 -14
- package/dist/tools/get-trace-details.cjs +17 -0
- package/dist/tools/get-trace-details.d.cts +14 -0
- package/dist/tools/get-trace-details.d.cts.map +1 -0
- package/dist/tools/get-trace-details.d.ts +14 -0
- package/dist/tools/get-trace-details.d.ts.map +1 -0
- package/dist/tools/get-trace-details.js +17 -0
- package/dist/tools/index.cjs +55 -48
- package/dist/tools/index.d.cts +81 -72
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +81 -72
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +55 -48
- package/dist/tools/search-docs.cjs +13 -11
- package/dist/tools/search-docs.d.cts +3 -3
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +13 -11
- package/dist/tools/search-events/agent.cjs +16 -6
- package/dist/tools/search-events/agent.d.cts +7 -43
- package/dist/tools/search-events/agent.d.ts +7 -43
- package/dist/tools/search-events/agent.js +16 -6
- package/dist/tools/search-events/config.cjs +3 -2
- package/dist/tools/search-events/config.d.cts +2 -1
- package/dist/tools/search-events/config.d.cts.map +1 -1
- package/dist/tools/search-events/config.d.ts +2 -1
- package/dist/tools/search-events/config.d.ts.map +1 -1
- package/dist/tools/search-events/config.js +2 -2
- package/dist/tools/search-events/formatters.cjs +11 -3
- package/dist/tools/search-events/formatters.d.cts +28 -17
- package/dist/tools/search-events/formatters.d.cts.map +1 -1
- package/dist/tools/search-events/formatters.d.ts +28 -17
- package/dist/tools/search-events/formatters.d.ts.map +1 -1
- package/dist/tools/search-events/formatters.js +11 -4
- package/dist/tools/search-events/handler.cjs +23 -17
- package/dist/tools/search-events/handler.d.cts +4 -4
- package/dist/tools/search-events/handler.d.ts +4 -4
- package/dist/tools/search-events/handler.js +23 -17
- package/dist/tools/search-events/index.cjs +27 -19
- package/dist/tools/search-events/index.d.cts +11 -5
- package/dist/tools/search-events/index.d.ts +11 -5
- package/dist/tools/search-events/index.js +25 -19
- package/dist/tools/search-events/utils.cjs +14 -7
- package/dist/tools/search-events/utils.d.cts +7 -5
- package/dist/tools/search-events/utils.d.ts +7 -5
- package/dist/tools/search-events/utils.js +9 -2
- package/dist/tools/search-issues/agent.cjs +15 -5
- package/dist/tools/search-issues/agent.d.cts +7 -33
- package/dist/tools/search-issues/agent.d.ts +7 -33
- package/dist/tools/search-issues/agent.js +15 -5
- package/dist/tools/search-issues/config.cjs +1 -1
- package/dist/tools/search-issues/config.d.cts +1 -1
- package/dist/tools/search-issues/config.d.ts +1 -1
- package/dist/tools/search-issues/config.js +1 -1
- package/dist/tools/search-issues/formatters.cjs +3 -2
- package/dist/tools/search-issues/formatters.d.cts +20 -7
- package/dist/tools/search-issues/formatters.d.cts.map +1 -1
- package/dist/tools/search-issues/formatters.d.ts +20 -7
- package/dist/tools/search-issues/formatters.d.ts.map +1 -1
- package/dist/tools/search-issues/formatters.js +3 -3
- package/dist/tools/search-issues/handler.cjs +22 -15
- package/dist/tools/search-issues/handler.d.cts +4 -4
- package/dist/tools/search-issues/handler.d.ts +4 -4
- package/dist/tools/search-issues/handler.js +22 -15
- package/dist/tools/search-issues/index.cjs +26 -17
- package/dist/tools/search-issues/index.d.cts +11 -5
- package/dist/tools/search-issues/index.d.ts +11 -5
- package/dist/tools/search-issues/index.js +24 -17
- package/dist/tools/types.d.cts +3 -3
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +19 -15
- package/dist/tools/update-issue.d.cts +10 -10
- package/dist/tools/update-issue.d.cts.map +1 -1
- package/dist/tools/update-issue.d.ts +10 -10
- package/dist/tools/update-issue.d.ts.map +1 -1
- package/dist/tools/update-issue.js +19 -15
- package/dist/tools/update-project.cjs +14 -11
- package/dist/tools/update-project.d.cts +6 -6
- package/dist/tools/update-project.d.ts +6 -6
- package/dist/tools/update-project.js +14 -11
- package/dist/tools/whoami.cjs +12 -8
- package/dist/tools/whoami.d.cts +3 -3
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +12 -8
- package/dist/{tools-qfk-QAo0.cjs → tools-DcCN34Xz.cjs} +21 -19
- package/dist/tools-DcCN34Xz.cjs.map +1 -0
- package/dist/tools-Du5wLts3.js +46 -0
- package/dist/tools-Du5wLts3.js.map +1 -0
- package/dist/transports/stdio.cjs +3 -55
- package/dist/transports/stdio.d.cts +12 -8
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +12 -8
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +3 -55
- package/dist/types-4O1B8U0e.d.ts +40 -0
- package/dist/types-4O1B8U0e.d.ts.map +1 -0
- package/dist/types-B9_8hSal.d.cts +58 -0
- package/dist/types-B9_8hSal.d.cts.map +1 -0
- package/dist/types-BU11bcu2.d.ts +58 -0
- package/dist/types-BU11bcu2.d.ts.map +1 -0
- package/dist/{types-BOcoP3Na.d.ts → types-CZUp4Xzk.d.ts} +10 -3
- package/dist/types-CZUp4Xzk.d.ts.map +1 -0
- package/dist/types-CtnbvcEw.d.cts +40 -0
- package/dist/types-CtnbvcEw.d.cts.map +1 -0
- package/dist/{types-aOEJ0KgQ.d.cts → types-DkmHqy15.d.cts} +10 -3
- package/dist/types-DkmHqy15.d.cts.map +1 -0
- package/dist/types-NVsIso1A.d.ts +31 -0
- package/dist/types-NVsIso1A.d.ts.map +1 -0
- package/dist/types-Z4mR2AFK.d.cts +31 -0
- package/dist/types-Z4mR2AFK.d.cts.map +1 -0
- package/dist/types.cjs +16 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -0
- package/dist/{update-issue-DoQYEQjf.js → update-issue-CoAkoO66.js} +15 -14
- package/dist/update-issue-CoAkoO66.js.map +1 -0
- package/dist/{update-issue-DqUsAuTd.cjs → update-issue-eELBq_Uy.cjs} +19 -18
- package/dist/update-issue-eELBq_Uy.cjs.map +1 -0
- package/dist/{update-project-C9CLxNfF.js → update-project-CuZlyBPN.js} +15 -8
- package/dist/update-project-CuZlyBPN.js.map +1 -0
- package/dist/{update-project-DQu5PnE3.cjs → update-project-DMRBdOZ5.cjs} +17 -10
- package/dist/update-project-DMRBdOZ5.cjs.map +1 -0
- package/dist/{url-utils-vJo2ER5v.cjs → url-utils-Bn5EoScr.cjs} +38 -9
- package/dist/url-utils-Bn5EoScr.cjs.map +1 -0
- package/dist/{url-utils-IqgSmI-B.js → url-utils-d9bPTnOl.js} +33 -10
- package/dist/url-utils-d9bPTnOl.js.map +1 -0
- package/dist/usage-CP6e39yF.cjs +39 -0
- package/dist/usage-CP6e39yF.cjs.map +1 -0
- package/dist/usage-CihInDyq.js +33 -0
- package/dist/usage-CihInDyq.js.map +1 -0
- package/dist/utils/slug-validation.cjs +5 -0
- package/dist/utils/slug-validation.d.cts +51 -0
- package/dist/utils/slug-validation.d.cts.map +1 -0
- package/dist/utils/slug-validation.d.ts +51 -0
- package/dist/utils/slug-validation.d.ts.map +1 -0
- package/dist/utils/slug-validation.js +3 -0
- package/dist/utils/url-utils.cjs +2 -1
- package/dist/utils/url-utils.d.cts +14 -6
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +14 -6
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/{utils-CqbeJfE1.cjs → utils-C5DuiZoe.cjs} +39 -53
- package/dist/utils-C5DuiZoe.cjs.map +1 -0
- package/dist/utils-CwvZS30K.js +94 -0
- package/dist/utils-CwvZS30K.js.map +1 -0
- package/dist/utils-DKQuo7b2.d.ts +43 -0
- package/dist/utils-DKQuo7b2.d.ts.map +1 -0
- package/dist/{utils-CzV_Tz2C.d.ts → utils-DKgPcA6i.d.cts} +16 -12
- package/dist/utils-DKgPcA6i.d.cts.map +1 -0
- package/dist/utils-DUJcA3eH.cjs +96 -0
- package/dist/utils-DUJcA3eH.cjs.map +1 -0
- package/dist/{utils-Fm-dODdb.d.cts → utils-DpeFMEgH.d.ts} +16 -12
- package/dist/utils-DpeFMEgH.d.ts.map +1 -0
- package/dist/utils-HNrRwq-a.d.cts +43 -0
- package/dist/utils-HNrRwq-a.d.cts.map +1 -0
- package/dist/utils-iC0Uutcf.js +90 -0
- package/dist/utils-iC0Uutcf.js.map +1 -0
- package/dist/validate-region-url-CaR6XWB_.js +37 -0
- package/dist/validate-region-url-CaR6XWB_.js.map +1 -0
- package/dist/validate-region-url-dzz6t54w.cjs +42 -0
- package/dist/validate-region-url-dzz6t54w.cjs.map +1 -0
- package/dist/version-6dHij-Gk.js +6 -0
- package/dist/{version-DvjTvYJs.js.map → version-6dHij-Gk.js.map} +1 -1
- package/dist/{version-Bu9nGzm5.cjs → version-Cq6vA9Kc.cjs} +2 -2
- package/dist/{version-Bu9nGzm5.cjs.map → version-Cq6vA9Kc.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-Bh_uOPqO.js +37 -0
- package/dist/whoami-Bh_uOPqO.js.map +1 -0
- package/dist/{whoami-xBAWvzG4.js → whoami-D8-XCgVJ.js} +7 -5
- package/dist/whoami-D8-XCgVJ.js.map +1 -0
- package/dist/{whoami-CoZJKpys.cjs → whoami-DBSqcCGl.cjs} +7 -5
- package/dist/whoami-DBSqcCGl.cjs.map +1 -0
- package/dist/whoami-DBlwuDZf.cjs +42 -0
- package/dist/whoami-DBlwuDZf.cjs.map +1 -0
- package/package.json +55 -28
- package/dist/agent-COgY789I.js +0 -225
- package/dist/agent-COgY789I.js.map +0 -1
- package/dist/agent-Cody_f0d.cjs +0 -59
- package/dist/agent-Cody_f0d.cjs.map +0 -1
- package/dist/agent-DZRRChrO.js +0 -53
- package/dist/agent-DZRRChrO.js.map +0 -1
- package/dist/agent-DpCCnhh5.cjs +0 -231
- package/dist/agent-DpCCnhh5.cjs.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.cjs +0 -6
- package/dist/agent-tools/discover-dataset-fields.d.cts.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.d.ts.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.js +0 -3
- package/dist/agent-tools/lookup-otel-semantics.cjs +0 -5
- package/dist/agent-tools/lookup-otel-semantics.d.cts +0 -38
- package/dist/agent-tools/lookup-otel-semantics.d.cts.map +0 -1
- package/dist/agent-tools/lookup-otel-semantics.d.ts +0 -38
- package/dist/agent-tools/lookup-otel-semantics.d.ts.map +0 -1
- package/dist/agent-tools/lookup-otel-semantics.js +0 -4
- package/dist/agent-tools/whoami.cjs +0 -4
- package/dist/agent-tools/whoami.d.cts +0 -28
- package/dist/agent-tools/whoami.d.cts.map +0 -1
- package/dist/agent-tools/whoami.d.ts +0 -28
- package/dist/agent-tools/whoami.d.ts.map +0 -1
- package/dist/agent-tools/whoami.js +0 -3
- package/dist/analyze-issue-with-seer-ByoDTsq-.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-CpwtN4UA.js.map +0 -1
- package/dist/api-utils-BlUSO8xh.js.map +0 -1
- package/dist/api-utils-DFWUfQ83.cjs.map +0 -1
- package/dist/client-CPrEfAwa.cjs.map +0 -1
- package/dist/client-DLkUGS7r.d.ts.map +0 -1
- package/dist/client-DV68BdcS.d.cts.map +0 -1
- package/dist/client-MaVV1gVC.js.map +0 -1
- package/dist/config-BUmDxVLS.js +0 -52
- package/dist/config-BUmDxVLS.js.map +0 -1
- package/dist/config-BvtWiL3I.js.map +0 -1
- package/dist/config-CD-5FpOO.cjs.map +0 -1
- package/dist/config-FWsgDbm7.cjs +0 -58
- package/dist/config-FWsgDbm7.cjs.map +0 -1
- package/dist/constants-Fe-4NTUo.js.map +0 -1
- package/dist/constants-wrEbre3j.cjs.map +0 -1
- package/dist/create-dsn-BT3t-MDA.js.map +0 -1
- package/dist/create-dsn-Bgwi-Ygi.cjs.map +0 -1
- package/dist/create-project-4R4aZMoc.cjs.map +0 -1
- package/dist/create-project-Ca1Sy1_F.js.map +0 -1
- package/dist/create-team-CSBXDcoD.cjs.map +0 -1
- package/dist/create-team-D0dUl7Zo.js.map +0 -1
- package/dist/defineTool-77H4nSna.js +0 -8
- package/dist/defineTool-77H4nSna.js.map +0 -1
- package/dist/defineTool-lWNTzWl_.cjs.map +0 -1
- package/dist/discover-dataset-fields-BEnyqPSq.js.map +0 -1
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +0 -1
- package/dist/errors.d.cts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/fetch-utils-CTLoW1R8.d.cts +0 -33
- package/dist/fetch-utils-CTLoW1R8.d.cts.map +0 -1
- package/dist/fetch-utils-JDZw4XaU.d.ts +0 -33
- package/dist/fetch-utils-JDZw4XaU.d.ts.map +0 -1
- package/dist/find-dsns-CkvahHwJ.cjs.map +0 -1
- package/dist/find-dsns-DrNAfU_Q.js.map +0 -1
- package/dist/find-organizations-BDtHkcFV.cjs.map +0 -1
- package/dist/find-organizations-Cs1GvZtJ.js.map +0 -1
- package/dist/find-projects-CZCMck_0.js +0 -39
- package/dist/find-projects-CZCMck_0.js.map +0 -1
- package/dist/find-projects-Dh-1AK-m.cjs +0 -45
- package/dist/find-projects-Dh-1AK-m.cjs.map +0 -1
- package/dist/find-releases-BsAkl--F.cjs.map +0 -1
- package/dist/find-releases-Do_CywRr.js.map +0 -1
- package/dist/find-teams-BylQQ4FO.js +0 -39
- package/dist/find-teams-BylQQ4FO.js.map +0 -1
- package/dist/find-teams-DXyzyQOy.cjs +0 -45
- package/dist/find-teams-DXyzyQOy.cjs.map +0 -1
- package/dist/formatters-B3ONbRhI.js.map +0 -1
- package/dist/formatters-CfeBjhXZ.cjs.map +0 -1
- package/dist/formatters-DSYXBiQx.js.map +0 -1
- package/dist/formatters-DbqofIoy.cjs.map +0 -1
- package/dist/formatting-C180PVwd.cjs +0 -419
- package/dist/formatting-C180PVwd.cjs.map +0 -1
- package/dist/formatting-C3qu84cm.d.ts.map +0 -1
- package/dist/formatting-CmBYkI_e.d.cts.map +0 -1
- package/dist/formatting-DIvCVunN.js +0 -402
- package/dist/formatting-DIvCVunN.js.map +0 -1
- package/dist/formatting-utils-C3sej5ER.js.map +0 -1
- package/dist/formatting-utils-DDz14xeB.cjs.map +0 -1
- package/dist/get-doc-BfMg0GIa.cjs.map +0 -1
- package/dist/get-doc-DyqJe6TP.js.map +0 -1
- package/dist/get-event-attachment-BzhDeM6z.cjs.map +0 -1
- package/dist/get-event-attachment-CVoMrETq.js.map +0 -1
- package/dist/get-issue-details-C96fhps3.cjs.map +0 -1
- package/dist/get-issue-details-_uS_AZ_v.js.map +0 -1
- package/dist/handler-7T1iMsQU.cjs.map +0 -1
- package/dist/handler-B0bLvFFX.js.map +0 -1
- package/dist/handler-BGhr9FJM.d.cts.map +0 -1
- package/dist/handler-BPPTAi7I.d.ts.map +0 -1
- package/dist/handler-BZ3hKPb8.d.cts.map +0 -1
- package/dist/handler-DEjS3yks.cjs.map +0 -1
- package/dist/handler-DTN2HYXt.js.map +0 -1
- package/dist/handler-cUB6XcUV.d.ts.map +0 -1
- package/dist/logging-BpL53bY6.cjs +0 -31
- package/dist/logging-BpL53bY6.cjs.map +0 -1
- package/dist/logging-tGU_SYcA.js +0 -25
- package/dist/logging-tGU_SYcA.js.map +0 -1
- package/dist/logging.cjs +0 -3
- package/dist/logging.d.cts +0 -37
- package/dist/logging.d.cts.map +0 -1
- package/dist/logging.d.ts +0 -37
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -3
- package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +0 -1
- package/dist/lookup-otel-semantics-Dt667kdR.js.map +0 -1
- package/dist/promptDefinitions-CVHtYaj8.d.cts +0 -34
- package/dist/promptDefinitions-CVHtYaj8.d.cts.map +0 -1
- package/dist/promptDefinitions-CWV8hsUX.cjs +0 -37
- package/dist/promptDefinitions-CWV8hsUX.cjs.map +0 -1
- package/dist/promptDefinitions-DF8nuJVq.js +0 -31
- package/dist/promptDefinitions-DF8nuJVq.js.map +0 -1
- package/dist/promptDefinitions-DehpwJfn.d.ts +0 -34
- package/dist/promptDefinitions-DehpwJfn.d.ts.map +0 -1
- package/dist/promptDefinitions.cjs +0 -5
- package/dist/promptDefinitions.d.cts +0 -2
- package/dist/promptDefinitions.d.ts +0 -2
- package/dist/promptDefinitions.js +0 -5
- package/dist/prompts-BTtNbKQR.cjs +0 -41
- package/dist/prompts-BTtNbKQR.cjs.map +0 -1
- package/dist/prompts-CYcvIxWR.js +0 -36
- package/dist/prompts-CYcvIxWR.js.map +0 -1
- package/dist/prompts.cjs +0 -4
- package/dist/prompts.d.cts +0 -30
- package/dist/prompts.d.cts.map +0 -1
- package/dist/prompts.d.ts +0 -30
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -4
- package/dist/resources-Dadvq5Fm.cjs +0 -72
- package/dist/resources-Dadvq5Fm.cjs.map +0 -1
- package/dist/resources-jcFoc4JU.js +0 -60
- package/dist/resources-jcFoc4JU.js.map +0 -1
- package/dist/resources.cjs +0 -6
- package/dist/resources.d.cts +0 -37
- package/dist/resources.d.cts.map +0 -1
- package/dist/resources.d.ts +0 -37
- package/dist/resources.d.ts.map +0 -1
- package/dist/resources.js +0 -5
- package/dist/schema-BL3kwfOA.cjs.map +0 -1
- package/dist/schema-C0LznFvu.cjs.map +0 -1
- package/dist/schema-CcFmBoEf.js.map +0 -1
- package/dist/schema-DMfkTR1l.js.map +0 -1
- package/dist/schema-DWmx8lgm.d.ts.map +0 -1
- package/dist/schema-xbTf44Hn.d.cts.map +0 -1
- package/dist/search-docs-DIm3ykOg.js.map +0 -1
- package/dist/search-docs-EbjJuL9Q.cjs.map +0 -1
- package/dist/seer-utils-C7Kv0gr8.cjs.map +0 -1
- package/dist/seer-utils-NPHv8KYY.js.map +0 -1
- package/dist/server-CnJvaT0s.js +0 -292
- package/dist/server-CnJvaT0s.js.map +0 -1
- package/dist/server-Dv9HxoRk.cjs +0 -298
- package/dist/server-Dv9HxoRk.cjs.map +0 -1
- package/dist/stdio-C6MAgHmA.cjs.map +0 -1
- package/dist/stdio-DnAY4MSF.js.map +0 -1
- package/dist/tools/search-events/agent.d.cts.map +0 -1
- package/dist/tools/search-events/agent.d.ts.map +0 -1
- package/dist/tools/search-issues/agent.d.cts.map +0 -1
- package/dist/tools/search-issues/agent.d.ts.map +0 -1
- package/dist/tools/utils/api-utils.cjs +0 -11
- package/dist/tools/utils/api-utils.d.cts.map +0 -1
- package/dist/tools/utils/api-utils.d.ts.map +0 -1
- package/dist/tools/utils/api-utils.js +0 -9
- package/dist/tools/utils/defineTool.cjs +0 -3
- package/dist/tools/utils/defineTool.d.cts +0 -12
- package/dist/tools/utils/defineTool.d.cts.map +0 -1
- package/dist/tools/utils/defineTool.d.ts +0 -12
- package/dist/tools/utils/defineTool.d.ts.map +0 -1
- package/dist/tools/utils/defineTool.js +0 -3
- package/dist/tools/utils/fetch-utils.cjs +0 -5
- package/dist/tools/utils/fetch-utils.d.cts +0 -2
- package/dist/tools/utils/fetch-utils.d.ts +0 -2
- package/dist/tools/utils/fetch-utils.js +0 -4
- package/dist/tools/utils/formatting-utils.cjs +0 -3
- package/dist/tools/utils/formatting-utils.d.cts +0 -15
- package/dist/tools/utils/formatting-utils.d.cts.map +0 -1
- package/dist/tools/utils/formatting-utils.d.ts +0 -15
- package/dist/tools/utils/formatting-utils.d.ts.map +0 -1
- package/dist/tools/utils/formatting-utils.js +0 -3
- package/dist/tools/utils/issue-utils.cjs +0 -8
- package/dist/tools/utils/issue-utils.d.cts +0 -7
- package/dist/tools/utils/issue-utils.d.ts +0 -7
- package/dist/tools/utils/issue-utils.js +0 -7
- package/dist/tools/utils/seer-utils.cjs +0 -11
- package/dist/tools/utils/seer-utils.d.cts.map +0 -1
- package/dist/tools/utils/seer-utils.d.ts.map +0 -1
- package/dist/tools-B0wbxDty.js +0 -44
- package/dist/tools-B0wbxDty.js.map +0 -1
- package/dist/tools-qfk-QAo0.cjs.map +0 -1
- package/dist/types-BOcoP3Na.d.ts.map +0 -1
- package/dist/types-BV-G5sBp.d.cts +0 -31
- package/dist/types-BV-G5sBp.d.cts.map +0 -1
- package/dist/types-C1Fih0eQ.d.ts +0 -31
- package/dist/types-C1Fih0eQ.d.ts.map +0 -1
- package/dist/types-DE-njuHe.d.cts +0 -31
- package/dist/types-DE-njuHe.d.cts.map +0 -1
- package/dist/types-DRywojVB.d.ts +0 -31
- package/dist/types-DRywojVB.d.ts.map +0 -1
- package/dist/types-aOEJ0KgQ.d.cts.map +0 -1
- package/dist/update-issue-DoQYEQjf.js.map +0 -1
- package/dist/update-issue-DqUsAuTd.cjs.map +0 -1
- package/dist/update-project-C9CLxNfF.js.map +0 -1
- package/dist/update-project-DQu5PnE3.cjs.map +0 -1
- package/dist/url-utils-IqgSmI-B.js.map +0 -1
- package/dist/url-utils-vJo2ER5v.cjs.map +0 -1
- package/dist/utils-CqbeJfE1.cjs.map +0 -1
- package/dist/utils-CzV_Tz2C.d.ts.map +0 -1
- package/dist/utils-Fm-dODdb.d.cts.map +0 -1
- package/dist/utils-OgYE-imr.js +0 -108
- package/dist/utils-OgYE-imr.js.map +0 -1
- package/dist/version-DvjTvYJs.js +0 -6
- package/dist/whoami-BOJHfdih.cjs +0 -28
- package/dist/whoami-BOJHfdih.cjs.map +0 -1
- package/dist/whoami-Bswhb72a.js +0 -23
- package/dist/whoami-Bswhb72a.js.map +0 -1
- package/dist/whoami-CoZJKpys.cjs.map +0 -1
- package/dist/whoami-xBAWvzG4.js.map +0 -1
- /package/dist/{api-client-BWt6M7ij.cjs → api-client-BR5WolLe.js} +0 -0
- /package/dist/{api-client-CNv_hbPO.js → api-client-BsHWi0-I.cjs} +0 -0
- /package/dist/{fetch-utils-BqMx2KQr.js → cli/types.cjs} +0 -0
- /package/dist/{fetch-utils-DeZcERfe.cjs → cli/types.js} +0 -0
- /package/dist/{index-BPSCxsMC.d.cts → index-CmCelmEL.d.cts} +0 -0
- /package/dist/{index-DE1muTvw.d.ts → index-DZJ9s9rm.d.ts} +0 -0
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-B7cgiWKp.cjs} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-BLm6gohl.js} +0 -0
- /package/dist/{search-events-BBFPuvRq.cjs → search-events-Bc2a_R3A.cjs} +0 -0
- /package/dist/{search-events-bV3-kK78.js → search-events-Bo5bAsOv.js} +0 -0
- /package/dist/{search-issues-BFgCvRYe.js → search-issues-AaiYCZ6J.cjs} +0 -0
- /package/dist/{search-issues-Biu64RkQ.cjs → search-issues-DVHuKDdB.js} +0 -0
- /package/dist/{types-6zHoEWAx.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{types-DdloOYgD.cjs → types-D10T4PdD.cjs} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const require_seer_utils = require('../../seer-utils-C7Kv0gr8.cjs');
|
|
2
|
-
|
|
3
|
-
exports.SEER_INITIAL_RETRY_DELAY = require_seer_utils.SEER_INITIAL_RETRY_DELAY;
|
|
4
|
-
exports.SEER_MAX_RETRIES = require_seer_utils.SEER_MAX_RETRIES;
|
|
5
|
-
exports.SEER_POLLING_INTERVAL = require_seer_utils.SEER_POLLING_INTERVAL;
|
|
6
|
-
exports.SEER_TIMEOUT = require_seer_utils.SEER_TIMEOUT;
|
|
7
|
-
exports.getHumanInterventionGuidance = require_seer_utils.getHumanInterventionGuidance;
|
|
8
|
-
exports.getOutputForAutofixStep = require_seer_utils.getOutputForAutofixStep;
|
|
9
|
-
exports.getStatusDisplayName = require_seer_utils.getStatusDisplayName;
|
|
10
|
-
exports.isHumanInterventionStatus = require_seer_utils.isHumanInterventionStatus;
|
|
11
|
-
exports.isTerminalStatus = require_seer_utils.isTerminalStatus;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seer-utils.d.cts","names":[],"sources":["../../../src/tools/utils/seer-utils.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,qBAAA;cACA;cACA,gBAAA;cACA,wBAAA;iBAEG,oBAAA;AALhB;AACA;AACA;AACa,iBA2BG,gBAAA,CA3BqB,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAErC;AAyBA;AAcA;AASgB,iBATA,yBAAA,CAS4B,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAU5C;;;AACQ,iBAXQ,4BAAA,CAWN,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AAAK,iBADC,uBAAA,CACD,IAAA,EAAP,CAAA,CAAE,KAAK,CAAA,OAAQ,oBAAR,CAAA,CAAA,EAAA,MAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seer-utils.d.ts","names":[],"sources":["../../../src/tools/utils/seer-utils.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,qBAAA;cACA;cACA,gBAAA;cACA,wBAAA;iBAEG,oBAAA;AALhB;AACA;AACA;AACa,iBA2BG,gBAAA,CA3BqB,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAErC;AAyBA;AAcA;AASgB,iBATA,yBAAA,CAS4B,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAU5C;;;AACQ,iBAXQ,4BAAA,CAWN,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA;AAAK,iBADC,uBAAA,CACD,IAAA,EAAP,CAAA,CAAE,KAAK,CAAA,OAAQ,oBAAR,CAAA,CAAA,EAAA,MAAA"}
|
package/dist/tools-B0wbxDty.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { whoami_default } from "./whoami-Bswhb72a.js";
|
|
2
|
-
import { find_organizations_default } from "./find-organizations-Cs1GvZtJ.js";
|
|
3
|
-
import { find_teams_default } from "./find-teams-BylQQ4FO.js";
|
|
4
|
-
import { find_projects_default } from "./find-projects-CZCMck_0.js";
|
|
5
|
-
import { find_releases_default } from "./find-releases-Do_CywRr.js";
|
|
6
|
-
import { get_issue_details_default } from "./get-issue-details-_uS_AZ_v.js";
|
|
7
|
-
import { get_event_attachment_default } from "./get-event-attachment-CVoMrETq.js";
|
|
8
|
-
import { update_issue_default } from "./update-issue-DoQYEQjf.js";
|
|
9
|
-
import { handler_default } from "./handler-B0bLvFFX.js";
|
|
10
|
-
import { create_team_default } from "./create-team-D0dUl7Zo.js";
|
|
11
|
-
import { create_project_default } from "./create-project-Ca1Sy1_F.js";
|
|
12
|
-
import { update_project_default } from "./update-project-C9CLxNfF.js";
|
|
13
|
-
import { create_dsn_default } from "./create-dsn-BT3t-MDA.js";
|
|
14
|
-
import { find_dsns_default } from "./find-dsns-DrNAfU_Q.js";
|
|
15
|
-
import { analyze_issue_with_seer_default } from "./analyze-issue-with-seer-CpwtN4UA.js";
|
|
16
|
-
import { search_docs_default } from "./search-docs-DIm3ykOg.js";
|
|
17
|
-
import { get_doc_default } from "./get-doc-DyqJe6TP.js";
|
|
18
|
-
import { handler_default as handler_default$1 } from "./handler-DTN2HYXt.js";
|
|
19
|
-
|
|
20
|
-
//#region src/tools/index.ts
|
|
21
|
-
var tools_default = {
|
|
22
|
-
whoami: whoami_default,
|
|
23
|
-
find_organizations: find_organizations_default,
|
|
24
|
-
find_teams: find_teams_default,
|
|
25
|
-
find_projects: find_projects_default,
|
|
26
|
-
find_releases: find_releases_default,
|
|
27
|
-
get_issue_details: get_issue_details_default,
|
|
28
|
-
get_event_attachment: get_event_attachment_default,
|
|
29
|
-
update_issue: update_issue_default,
|
|
30
|
-
search_events: handler_default,
|
|
31
|
-
create_team: create_team_default,
|
|
32
|
-
create_project: create_project_default,
|
|
33
|
-
update_project: update_project_default,
|
|
34
|
-
create_dsn: create_dsn_default,
|
|
35
|
-
find_dsns: find_dsns_default,
|
|
36
|
-
analyze_issue_with_seer: analyze_issue_with_seer_default,
|
|
37
|
-
search_docs: search_docs_default,
|
|
38
|
-
get_doc: get_doc_default,
|
|
39
|
-
search_issues: handler_default$1
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { tools_default };
|
|
44
|
-
//# sourceMappingURL=tools-B0wbxDty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-B0wbxDty.js","names":["findOrganizations","findTeams","findProjects","findReleases","getIssueDetails","getEventAttachment","updateIssue","searchEvents","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc","searchIssues"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findReleases from \"./find-releases\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport searchEvents from \"./search-events\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\nimport searchIssues from \"./search-issues\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_releases: findReleases,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n search_events: searchEvents,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n search_issues: searchIssues,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,eAAeC;CACf,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,eAAeC;CACf,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;CACT,eAAeC;AAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-qfk-QAo0.cjs","names":["findOrganizations","findTeams","findProjects","findReleases","getIssueDetails","getEventAttachment","updateIssue","searchEvents","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc","searchIssues"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findReleases from \"./find-releases\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport searchEvents from \"./search-events\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\nimport searchIssues from \"./search-issues\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_releases: findReleases,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n search_events: searchEvents,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n search_issues: searchIssues,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,eAAeC;CACf,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,eAAeC;CACf,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;CACT,eAAeC;AAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-BOcoP3Na.d.ts","names":[],"sources":["../src/tools/types.ts"],"sourcesContent":[],"mappings":";;;;;UAQiB,2BACC,eAAe,CAAA,CAAE,WAAW,eAAe,CAAA,CAAE;;EAD9C,WAAA,EAAU,MAAA;EAAA,WAAA,EAKZ,OALY;EAAA,OACQ,EAAA,CAAA,MAAA,EAMvB,CAAA,CAAE,KANqB,CAMf,CAAA,CAAE,SANa,CAMH,OANG,CAAA,CAAA,EAAA,OAAA,EAOtB,aAPsB,EAAA,GAQ5B,OAR4B,CAAA,MAAA,GAAA,CAQV,WARU,GAQI,YARJ,GAQmB,gBARnB,CAAA,EAAA,CAAA;;;;;AAMH,UAQf,cAAA,CARe;EAAO,KAAjB,EAAA,MAAA;EAAS,OAAjB,EAUH,KAVG,CAAA;IACD,EAAA,EAAA,MAAA;IACY,GAAA,EAAA,MAAA;IAAc,OAAA,EAAA,MAAA;IAAe,SAAA,EAAA,MAAA;EAAgB,CAAA,CAAA;EAAxD,KAAA,CAAA,EAAA,MAAA;AAMd"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions-CVHtYaj8.cjs";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/types.d.ts
|
|
6
|
-
|
|
7
|
-
type ZodifyRecord<T extends Record<string, any>> = { [K in keyof T]: z.infer<T[K]> };
|
|
8
|
-
type PromptName = (typeof PROMPT_DEFINITIONS)[number]["name"];
|
|
9
|
-
type PromptDefinition<T extends PromptName> = Extract<(typeof PROMPT_DEFINITIONS)[number], {
|
|
10
|
-
name: T;
|
|
11
|
-
}>;
|
|
12
|
-
type PromptParams<T extends PromptName> = PromptDefinition<T> extends {
|
|
13
|
-
paramsSchema: Record<string, any>;
|
|
14
|
-
} ? ZodifyRecord<PromptDefinition<T>["paramsSchema"]> : Record<string, never>;
|
|
15
|
-
type PromptHandler<T extends PromptName> = (params: PromptParams<T>) => Promise<GetPromptResult>;
|
|
16
|
-
type PromptHandlerExtended<T extends PromptName> = (context: ServerContext, params: PromptParams<T>) => Promise<string>;
|
|
17
|
-
type PromptHandlers = { [K in PromptName]: PromptHandlerExtended<K> };
|
|
18
|
-
type ServerContext = {
|
|
19
|
-
sentryHost?: string;
|
|
20
|
-
mcpUrl?: string;
|
|
21
|
-
accessToken: string;
|
|
22
|
-
organizationSlug: string | null;
|
|
23
|
-
userId?: string | null;
|
|
24
|
-
clientId?: string;
|
|
25
|
-
mcpClientName?: string;
|
|
26
|
-
mcpClientVersion?: string;
|
|
27
|
-
mcpProtocolVersion?: string;
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { PromptDefinition, PromptHandler, PromptHandlerExtended, PromptHandlers, PromptName, PromptParams, ServerContext };
|
|
31
|
-
//# sourceMappingURL=types-BV-G5sBp.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-BV-G5sBp.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GAAA,IAAA;EAAY,MACZ,CAAA,EAAA,MAAA,GAAA,IAAA;EAAM,QAAA,CAAA,EAAA,MAAA;EAEE,aAAA,CAAA,EAAa,MAAA;EAAA,gBAAA,CAAA,EAAA,MAAA;EAAA,kBAAW,CAAA,EAAA,MAAA;CAAU"}
|
package/dist/types-C1Fih0eQ.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions-DehpwJfn.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
-
|
|
5
|
-
//#region src/types.d.ts
|
|
6
|
-
|
|
7
|
-
type ZodifyRecord<T extends Record<string, any>> = { [K in keyof T]: z.infer<T[K]> };
|
|
8
|
-
type PromptName = (typeof PROMPT_DEFINITIONS)[number]["name"];
|
|
9
|
-
type PromptDefinition<T extends PromptName> = Extract<(typeof PROMPT_DEFINITIONS)[number], {
|
|
10
|
-
name: T;
|
|
11
|
-
}>;
|
|
12
|
-
type PromptParams<T extends PromptName> = PromptDefinition<T> extends {
|
|
13
|
-
paramsSchema: Record<string, any>;
|
|
14
|
-
} ? ZodifyRecord<PromptDefinition<T>["paramsSchema"]> : Record<string, never>;
|
|
15
|
-
type PromptHandler<T extends PromptName> = (params: PromptParams<T>) => Promise<GetPromptResult>;
|
|
16
|
-
type PromptHandlerExtended<T extends PromptName> = (context: ServerContext, params: PromptParams<T>) => Promise<string>;
|
|
17
|
-
type PromptHandlers = { [K in PromptName]: PromptHandlerExtended<K> };
|
|
18
|
-
type ServerContext = {
|
|
19
|
-
sentryHost?: string;
|
|
20
|
-
mcpUrl?: string;
|
|
21
|
-
accessToken: string;
|
|
22
|
-
organizationSlug: string | null;
|
|
23
|
-
userId?: string | null;
|
|
24
|
-
clientId?: string;
|
|
25
|
-
mcpClientName?: string;
|
|
26
|
-
mcpClientVersion?: string;
|
|
27
|
-
mcpProtocolVersion?: string;
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { PromptDefinition, PromptHandler, PromptHandlerExtended, PromptHandlers, PromptName, PromptParams, ServerContext };
|
|
31
|
-
//# sourceMappingURL=types-C1Fih0eQ.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-C1Fih0eQ.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;KAWK,YACuB,CAAA,UADA,MACA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA,QAAR,MAAN,CAAM,GAAF,CAAA,CAAE,KAAA,CAAM,CAAN,CAAQ,CAAR,CAAA,CAAA,EAAK;AAEb,KAAA,UAAA,GAAU,CAAA,OAAW,kBAAkB,CAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA;AAEvC,KAAA,gBAAgB,CAAA,UAAW,UAAX,CAAA,GAAyB,OAAzB,CAAA,CAAA,OAClB,kBADkB,CAAA,CAAA,MAAA,CAAA,EAAA;EAAA,IAAA,EAElB,CAFkB;CAAA,CAAA;AAClB,KAIE,YAJF,CAAA,UAIyB,UAJzB,CAAA,GAIuC,gBAJvC,CAIwD,CAJxD,CAAA,SAAA;EAAkB,YAClB,EAIM,MAJN,CAAA,MAAA,EAAA,GAAA,CAAA;CAAC,GAMP,YARiD,CAQpC,gBARoC,CAQnB,CARmB,CAAA,CAAA,cAAA,CAAA,CAAA,GASjD,MATiD,CAAA,MAAA,EAAA,KAAA,CAAA;AAAO,KAWhD,aAXgD,CAAA,UAWxB,UAXwB,CAAA,GAAA,CAAA,MAAA,EAYlD,YAZkD,CAYrC,CAZqC,CAAA,EAAA,GAavD,OAbuD,CAa/C,eAb+C,CAAA;AAKhD,KAUA,qBAVY,CAAA,UAUoB,UAVpB,CAAA,GAAA,CAAA,OAAA,EAWb,aAXa,EAAA,MAAA,EAYd,YAZc,CAYD,CAZC,CAAA,EAAA,GAanB,OAbmB,CAAA,MAAA,CAAA;AAAA,KAeZ,cAAA,GAfY,QAgBhB,UAhB2B,GAgBd,qBAhBc,CAgBQ,CAhBR,CAAA,EAAU;AAAI,KAmBrC,aAAA,GAnBqC;EAAgB,UACjD,CAAA,EAAA,MAAA;EAAM,MAEY,CAAA,EAAA,MAAA;EAAC,WAAlB,EAAA,MAAA;EAAgB,gBAA7B,EAAA,MAAA,GAAA,IAAA;EAAY,MACZ,CAAA,EAAA,MAAA,GAAA,IAAA;EAAM,QAAA,CAAA,EAAA,MAAA;EAEE,aAAA,CAAA,EAAa,MAAA;EAAA,gBAAA,CAAA,EAAA,MAAA;EAAA,kBAAW,CAAA,EAAA,MAAA;CAAU"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, ClientKeyListSchema, ClientKeySchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, UserSchema } from "./schema-xbTf44Hn.cjs";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/api-client/types.d.ts
|
|
5
|
-
|
|
6
|
-
type User = z.infer<typeof UserSchema>;
|
|
7
|
-
type Organization = z.infer<typeof OrganizationSchema>;
|
|
8
|
-
type Team = z.infer<typeof TeamSchema>;
|
|
9
|
-
type Project = z.infer<typeof ProjectSchema>;
|
|
10
|
-
type ClientKey = z.infer<typeof ClientKeySchema>;
|
|
11
|
-
type Release = z.infer<typeof ReleaseSchema>;
|
|
12
|
-
type Issue = z.infer<typeof IssueSchema>;
|
|
13
|
-
type Event = z.infer<typeof EventSchema>;
|
|
14
|
-
type EventAttachment = z.infer<typeof EventAttachmentSchema>;
|
|
15
|
-
type Tag = z.infer<typeof TagSchema>;
|
|
16
|
-
type AutofixRun = z.infer<typeof AutofixRunSchema>;
|
|
17
|
-
type AutofixRunState = z.infer<typeof AutofixRunStateSchema>;
|
|
18
|
-
type AssignedTo = z.infer<typeof AssignedToSchema>;
|
|
19
|
-
type OrganizationList = z.infer<typeof OrganizationListSchema>;
|
|
20
|
-
type TeamList = z.infer<typeof TeamListSchema>;
|
|
21
|
-
type ProjectList = z.infer<typeof ProjectListSchema>;
|
|
22
|
-
type ReleaseList = z.infer<typeof ReleaseListSchema>;
|
|
23
|
-
type IssueList = z.infer<typeof IssueListSchema>;
|
|
24
|
-
type EventAttachmentList = z.infer<typeof EventAttachmentListSchema>;
|
|
25
|
-
type TagList = z.infer<typeof TagListSchema>;
|
|
26
|
-
type ClientKeyList = z.infer<typeof ClientKeyListSchema>;
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
|
|
31
|
-
//# sourceMappingURL=types-DE-njuHe.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-DE-njuHe.d.cts","names":[],"sources":["../src/api-client/types.ts"],"sourcesContent":[],"mappings":";;;;;AAwEoB,KAPR,IAAA,GAAO,CAAA,CAAE,KAOC,CAAA,OAPY,UAOZ,CAAA;AAAK,KANf,YAAA,GAAe,CAAA,CAAE,KAMF,CAAA,OANe,kBAMf,CAAA;AACf,KANA,IAAA,GAAO,CAAA,CAAE,KAMM,CAAA,OANO,UAMP,CAAA;AAAA,KALf,OAAA,GAAU,CAAA,CAAE,KAKG,CAAA,OALU,aAKV,CAAA;AAAkB,KAJjC,SAAA,GAAY,CAAA,CAAE,KAImB,CAAA,OAJN,eAIM,CAAA;AAAf,KAHlB,OAAA,GAAU,CAAA,CAAE,KAGQ,CAAA,OAHK,aAGL,CAAA;AAAK,KAFzB,KAAA,GAAQ,CAAA,CAAE,KAEe,CAAA,OAFF,WAEE,CAAA;AACzB,KAFA,KAAA,GAAQ,CAAA,CAAE,KAEP,CAAA,OAFoB,WAEpB,CAAA;AAAA,KADH,eAAA,GAAkB,CAAA,CAAE,KACjB,CAAA,OAD8B,qBAC9B,CAAA;AAAkB,KAArB,GAAA,GAAM,CAAA,CAAE,KAAa,CAAA,OAAA,SAAA,CAAA;AAAf,KACN,UAAA,GAAa,CAAA,CAAE,KADP,CAAA,OACoB,gBADpB,CAAA;AAAK,KAEb,eAAA,GAAkB,CAAA,CAAE,KAFP,CAAA,OAEoB,qBAFpB,CAAA;AACb,KAEA,UAAA,GAAa,CAAA,CAAE,KAFL,CAAA,OAEkB,gBAFlB,CAAA;AAAA,KAIV,gBAAA,GAAmB,CAAA,CAAE,KAJX,CAAA,OAIwB,sBAJxB,CAAA;AAAkB,KAK5B,QAAA,GAAW,CAAA,CAAE,KALe,CAAA,OAKF,cALE,CAAA;AAAf,KAMb,WAAA,GAAc,CAAA,CAAE,KAND,CAAA,OAMc,iBANd,CAAA;AAAK,KAOpB,WAAA,GAAc,CAAA,CAAE,KAPI,CAAA,OAOS,iBAPT,CAAA;AACpB,KAOA,SAAA,GAAY,CAAA,CAAE,KAPC,CAAA,OAOY,eAPZ,CAAA;AAAA,KAQf,mBAAA,GAAsB,CAAA,CAAE,KART,CAAA,OAQsB,yBARtB,CAAA;AAAkB,KASjC,OAAA,GAAU,CAAA,CAAE,KATqB,CAAA,OASR,aATQ,CAAA;AAAf,KAUlB,aAAA,GAAgB,CAAA,CAAE,KAVE,CAAA,OAUW,mBAVX,CAAA;AAAK"}
|
package/dist/types-DRywojVB.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, ClientKeyListSchema, ClientKeySchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, UserSchema } from "./schema-DWmx8lgm.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/api-client/types.d.ts
|
|
5
|
-
|
|
6
|
-
type User = z.infer<typeof UserSchema>;
|
|
7
|
-
type Organization = z.infer<typeof OrganizationSchema>;
|
|
8
|
-
type Team = z.infer<typeof TeamSchema>;
|
|
9
|
-
type Project = z.infer<typeof ProjectSchema>;
|
|
10
|
-
type ClientKey = z.infer<typeof ClientKeySchema>;
|
|
11
|
-
type Release = z.infer<typeof ReleaseSchema>;
|
|
12
|
-
type Issue = z.infer<typeof IssueSchema>;
|
|
13
|
-
type Event = z.infer<typeof EventSchema>;
|
|
14
|
-
type EventAttachment = z.infer<typeof EventAttachmentSchema>;
|
|
15
|
-
type Tag = z.infer<typeof TagSchema>;
|
|
16
|
-
type AutofixRun = z.infer<typeof AutofixRunSchema>;
|
|
17
|
-
type AutofixRunState = z.infer<typeof AutofixRunStateSchema>;
|
|
18
|
-
type AssignedTo = z.infer<typeof AssignedToSchema>;
|
|
19
|
-
type OrganizationList = z.infer<typeof OrganizationListSchema>;
|
|
20
|
-
type TeamList = z.infer<typeof TeamListSchema>;
|
|
21
|
-
type ProjectList = z.infer<typeof ProjectListSchema>;
|
|
22
|
-
type ReleaseList = z.infer<typeof ReleaseListSchema>;
|
|
23
|
-
type IssueList = z.infer<typeof IssueListSchema>;
|
|
24
|
-
type EventAttachmentList = z.infer<typeof EventAttachmentListSchema>;
|
|
25
|
-
type TagList = z.infer<typeof TagListSchema>;
|
|
26
|
-
type ClientKeyList = z.infer<typeof ClientKeyListSchema>;
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
|
|
31
|
-
//# sourceMappingURL=types-DRywojVB.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-DRywojVB.d.ts","names":[],"sources":["../src/api-client/types.ts"],"sourcesContent":[],"mappings":";;;;;AAwEoB,KAPR,IAAA,GAAO,CAAA,CAAE,KAOC,CAAA,OAPY,UAOZ,CAAA;AAAK,KANf,YAAA,GAAe,CAAA,CAAE,KAMF,CAAA,OANe,kBAMf,CAAA;AACf,KANA,IAAA,GAAO,CAAA,CAAE,KAMM,CAAA,OANO,UAMP,CAAA;AAAA,KALf,OAAA,GAAU,CAAA,CAAE,KAKG,CAAA,OALU,aAKV,CAAA;AAAkB,KAJjC,SAAA,GAAY,CAAA,CAAE,KAImB,CAAA,OAJN,eAIM,CAAA;AAAf,KAHlB,OAAA,GAAU,CAAA,CAAE,KAGQ,CAAA,OAHK,aAGL,CAAA;AAAK,KAFzB,KAAA,GAAQ,CAAA,CAAE,KAEe,CAAA,OAFF,WAEE,CAAA;AACzB,KAFA,KAAA,GAAQ,CAAA,CAAE,KAEP,CAAA,OAFoB,WAEpB,CAAA;AAAA,KADH,eAAA,GAAkB,CAAA,CAAE,KACjB,CAAA,OAD8B,qBAC9B,CAAA;AAAkB,KAArB,GAAA,GAAM,CAAA,CAAE,KAAa,CAAA,OAAA,SAAA,CAAA;AAAf,KACN,UAAA,GAAa,CAAA,CAAE,KADP,CAAA,OACoB,gBADpB,CAAA;AAAK,KAEb,eAAA,GAAkB,CAAA,CAAE,KAFP,CAAA,OAEoB,qBAFpB,CAAA;AACb,KAEA,UAAA,GAAa,CAAA,CAAE,KAFL,CAAA,OAEkB,gBAFlB,CAAA;AAAA,KAIV,gBAAA,GAAmB,CAAA,CAAE,KAJX,CAAA,OAIwB,sBAJxB,CAAA;AAAkB,KAK5B,QAAA,GAAW,CAAA,CAAE,KALe,CAAA,OAKF,cALE,CAAA;AAAf,KAMb,WAAA,GAAc,CAAA,CAAE,KAND,CAAA,OAMc,iBANd,CAAA;AAAK,KAOpB,WAAA,GAAc,CAAA,CAAE,KAPI,CAAA,OAOS,iBAPT,CAAA;AACpB,KAOA,SAAA,GAAY,CAAA,CAAE,KAPC,CAAA,OAOY,eAPZ,CAAA;AAAA,KAQf,mBAAA,GAAsB,CAAA,CAAE,KART,CAAA,OAQsB,yBARtB,CAAA;AAAkB,KASjC,OAAA,GAAU,CAAA,CAAE,KATqB,CAAA,OASR,aATQ,CAAA;AAAf,KAUlB,aAAA,GAAgB,CAAA,CAAE,KAVE,CAAA,OAUW,mBAVX,CAAA;AAAK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-aOEJ0KgQ.d.cts","names":[],"sources":["../src/tools/types.ts"],"sourcesContent":[],"mappings":";;;;;UAQiB,2BACC,eAAe,CAAA,CAAE,WAAW,eAAe,CAAA,CAAE;;EAD9C,WAAA,EAAU,MAAA;EAAA,WAAA,EAKZ,OALY;EAAA,OACQ,EAAA,CAAA,MAAA,EAMvB,CAAA,CAAE,KANqB,CAMf,CAAA,CAAE,SANa,CAMH,OANG,CAAA,CAAA,EAAA,OAAA,EAOtB,aAPsB,EAAA,GAQ5B,OAR4B,CAAA,MAAA,GAAA,CAQV,WARU,GAQI,YARJ,GAQmB,gBARnB,CAAA,EAAA,CAAA;;;;;AAMH,UAQf,cAAA,CARe;EAAO,KAAjB,EAAA,MAAA;EAAS,OAAjB,EAUH,KAVG,CAAA;IACD,EAAA,EAAA,MAAA;IACY,GAAA,EAAA,MAAA;IAAc,OAAA,EAAA,MAAA;IAAe,SAAA,EAAA,MAAA;EAAgB,CAAA,CAAA;EAAxD,KAAA,CAAA,EAAA,MAAA;AAMd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue-DoQYEQjf.js","names":["context: ServerContext"],"sources":["../src/tools/update-issue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext, withApiErrorHandling } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user (use whoami to get your user ID)\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='user:123456')\",\n \"```\",\n \"\",\n \"### Assign an issue to a team\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='team:789')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- assignedTo format: Use 'user:ID' for users (e.g., 'user:123456') or 'team:ID' for teams (e.g., 'team:789')\",\n \"- To find your user ID, first use the whoami tool which returns your numeric user ID\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\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 // Get current issue details first\n const currentIssue = await withApiErrorHandling(\n () =>\n apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n // Update the issue\n const updatedIssue = await withApiErrorHandling(\n () =>\n apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAiBA,2BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,QAAQ,iBAAiB,UAAU;EACnC,YAAY,gBAAgB,UAAU;CACvC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,e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AO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue-DqUsAuTd.cjs","names":["context: ServerContext","UserInputError"],"sources":["../src/tools/update-issue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext, withApiErrorHandling } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user (use whoami to get your user ID)\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='user:123456')\",\n \"```\",\n \"\",\n \"### Assign an issue to a team\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='team:789')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- assignedTo format: Use 'user:ID' for users (e.g., 'user:123456') or 'team:ID' for teams (e.g., 'team:789')\",\n \"- To find your user ID, first use the whoami tool which returns your numeric user ID\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\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 // Get current issue details first\n const currentIssue = await withApiErrorHandling(\n () =>\n apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n // Update the issue\n const updatedIssue = await withApiErrorHandling(\n () =>\n apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAiBA,2BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,QAAQ,gC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CAAiB,aAAa,cAAc,KAAK;AACzE,aAAW,mBAAmB,gBAAgB;AAE9C,YAAU;AACV,aAAW;AACX,aAAW,gFAAgF,QAAQ,cAAc,aAAa,QAAQ;AAEtI,MAAI,OAAO,WAAW,WACpB,YAAW;WACF,OAAO,WAAW,UAC3B,YAAW;AAGb,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-project-C9CLxNfF.js","names":["context: ServerContext","project: Project | undefined","updates: string[]"],"sources":["../src/tools/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport type { Project } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamPlatform,\n ParamTeamSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_project\",\n description: [\n \"Update project settings in Sentry, such as name, slug, platform, and team assignment.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Update a project's name or slug to fix onboarding mistakes\",\n \"- Change the platform assigned to a project\",\n \"- Update team assignment for a project\",\n \"\",\n \"<examples>\",\n \"### Update a project's name and slug\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\",\n \"```\",\n \"\",\n \"### Assign a project to a different team\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\",\n \"```\",\n \"\",\n \"### Update platform\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- Team assignment is handled separately from other project settings\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"- When updating the slug, the project will be accessible at the new slug after the update\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z.string().trim().describe(\"The new name for the project\").optional(),\n slug: z\n .string()\n .toLowerCase()\n .trim()\n .describe(\"The new slug for the project (must be unique)\")\n .optional(),\n platform: ParamPlatform.optional(),\n teamSlug: ParamTeamSlug.optional().describe(\n \"The team to assign this project to. Note: this will replace the current team assignment.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n // Handle team assignment separately if provided\n if (params.teamSlug) {\n setTag(\"team.slug\", params.teamSlug);\n try {\n await apiService.addTeamToProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n teamSlug: params.teamSlug,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n }\n\n // Update project settings if any are provided\n const hasProjectUpdates = params.name || params.slug || params.platform;\n\n let project: Project | undefined;\n if (hasProjectUpdates) {\n try {\n project = await apiService.updateProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n slug: params.slug,\n platform: params.platform,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n } else {\n // If only team assignment, fetch current project data for display\n const projects = await apiService.listProjects(organizationSlug);\n project = projects.find((p) => p.slug === params.projectSlug);\n if (!project) {\n throw new UserInputError(`Project ${params.projectSlug} not found`);\n }\n }\n\n let output = `# Updated Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (project.platform) {\n output += `**Platform**: ${project.platform}\\n`;\n }\n\n // Display what was updated\n const updates: string[] = [];\n if (params.name) updates.push(`name to \"${params.name}\"`);\n if (params.slug) updates.push(`slug to \"${params.slug}\"`);\n if (params.platform) updates.push(`platform to \"${params.platform}\"`);\n if (params.teamSlug)\n updates.push(`team assignment to \"${params.teamSlug}\"`);\n\n if (updates.length > 0) {\n output += `\\n## Updates Applied\\n`;\n output += updates.map((update) => `- Updated ${update}`).join(\"\\n\");\n output += `\\n`;\n }\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The project is now accessible at slug: \\`${project.slug}\\`\\n`;\n if (params.teamSlug) {\n output += `- The project is now assigned to the \\`${params.teamSlug}\\` team\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAgBA,6BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;EACb,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,+BAA+B,CAAC,UAAU;EAC3E,MAAM,EACH,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SAAS,gDAAgD,CACzD,UAAU;EACb,UAAU,cAAc,UAAU;EAClC,UAAU,cAAc,UAAU,CAAC,SACjC,2FACD;CACF;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAA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S,GAAG;AACrE,MAAI,OAAO,SACT,SAAQ,MAAM,sBAAsB,OAAO,SAAS,GAAG;AAEzD,MAAI,QAAQ,SAAS,GAAG;AACtB,cAAW;AACX,aAAU,QAAQ,IAAI,CAAC,YAAY,YAAY,SAAS,CAAC,KAAK,KAAK;AACnE,cAAW;EACZ;AAED,YAAU;AACV,aAAW,6CAA6C,QAAQ,KAAK;AACrE,MAAI,OAAO,SACT,YAAW,yCAAyC,OAAO,SAAS;AAEtE,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-project-DQu5PnE3.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext","project: Project | undefined","UserInputError","updates: string[]"],"sources":["../src/tools/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport type { Project } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamPlatform,\n ParamTeamSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_project\",\n description: [\n \"Update project settings in Sentry, such as name, slug, platform, and team assignment.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Update a project's name or slug to fix onboarding mistakes\",\n \"- Change the platform assigned to a project\",\n \"- Update team assignment for a project\",\n \"\",\n \"<examples>\",\n \"### Update a project's name and slug\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\",\n \"```\",\n \"\",\n \"### Assign a project to a different team\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\",\n \"```\",\n \"\",\n \"### Update platform\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- Team assignment is handled separately from other project settings\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"- When updating the slug, the project will be accessible at the new slug after the update\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z.string().trim().describe(\"The new name for the project\").optional(),\n slug: z\n .string()\n .toLowerCase()\n .trim()\n .describe(\"The new slug for the project (must be unique)\")\n .optional(),\n platform: ParamPlatform.optional(),\n teamSlug: ParamTeamSlug.optional().describe(\n \"The team to assign this project to. Note: this will replace the current team assignment.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n // Handle team assignment separately if provided\n if (params.teamSlug) {\n setTag(\"team.slug\", params.teamSlug);\n try {\n await apiService.addTeamToProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n teamSlug: params.teamSlug,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n }\n\n // Update project settings if any are provided\n const hasProjectUpdates = params.name || params.slug || params.platform;\n\n let project: Project | undefined;\n if (hasProjectUpdates) {\n try {\n project = await apiService.updateProject({\n organizationSlug,\n projectSlug: params.projectSlug,\n name: params.name,\n slug: params.slug,\n platform: params.platform,\n });\n } catch (err) {\n logError(err);\n throw new Error(\n `Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : \"Unknown error\"}`,\n );\n }\n } else {\n // If only team assignment, fetch current project data for display\n const projects = await apiService.listProjects(organizationSlug);\n project = projects.find((p) => p.slug === params.projectSlug);\n if (!project) {\n throw new UserInputError(`Project ${params.projectSlug} not found`);\n }\n }\n\n let output = `# Updated Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (project.platform) {\n output += `**Platform**: ${project.platform}\\n`;\n }\n\n // Display what was updated\n const updates: string[] = [];\n if (params.name) updates.push(`name to \"${params.name}\"`);\n if (params.slug) updates.push(`slug to \"${params.slug}\"`);\n if (params.platform) updates.push(`platform to \"${params.platform}\"`);\n if (params.teamSlug)\n updates.push(`team assignment to \"${params.teamSlug}\"`);\n\n if (updates.length > 0) {\n output += `\\n## Updates Applied\\n`;\n output += updates.map((update) => `- Updated ${update}`).join(\"\\n\");\n output += `\\n`;\n }\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The project is now accessible at slug: \\`${project.slug}\\`\\n`;\n if (params.teamSlug) {\n output += `- The project is now assigned to the \\`${params.teamSlug}\\` team\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAgBA,6BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;EACb,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,+BAA+B,CAAC,UAAU;EAC3E,MAAM,MACH,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SAAS,gDAAgD,CACzD,UAAU;EACb,UAAU,6BAAc,UAAU;EAClC,UAAU,6BAAc,U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M,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,KAAM,SAAQ,MAAM,WAAW,OAAO,KAAK,GAAG;AACzD,MAAI,OAAO,SAAU,SAAQ,MAAM,eAAe,OAAO,SAAS,GAAG;AACrE,MAAI,OAAO,SACT,SAAQ,MAAM,sBAAsB,OAAO,SAAS,GAAG;AAEzD,MAAI,QAAQ,SAAS,GAAG;AACtB,cAAW;AACX,aAAU,QAAQ,IAAI,CAAC,YAAY,YAAY,SAAS,CAAC,KAAK,KAAK;AACnE,cAAW;EACZ;AAED,YAAU;AACV,aAAW,6CAA6C,QAAQ,KAAK;AACrE,MAAI,OAAO,SACT,YAAW,yCAAyC,OAAO,SAAS;AAEtE,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils-IqgSmI-B.js","names":["host: string","organizationSlug: string","issueId: string","query?: string","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n return isSaas\n ? `https://${organizationSlug}.${host}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n let url = isSaas\n ? `https://${organizationSlug}.${host}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n return isSaas\n ? `https://${organizationSlug}.${host}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n let url = isSaas\n ? `https://${organizationSlug}.${host}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;AAKA,SAAgB,aAAaA,MAAuB;AAClD,QAAO,SAAS,eAAe,KAAK,SAAS,aAAa;AAC3D;;;;;;;;AASD,SAAgB,YACdA,MACAC,kBACAC,SACQ;CACR,MAAM,SAAS,aAAa,KAAK;AACjC,QAAO,UACF,UAAU,iBAAiB,GAAG,KAAK,UAAU,aAC7C,UAAU,KAAK,iBAAiB,iBAAiB,UAAU;AACjE;;;;;;;;;AAUD,SAAgB,mBACdF,MACAC,kBACAE,OACAC,iBACQ;CACR,MAAM,SAAS,aAAa,KAAK;CACjC,IAAI,MAAM,UACL,UAAU,iBAAiB,GAAG,KAAK,aACnC,UAAU,KAAK,iBAAiB,iBAAiB;CAEtD,MAAM,SAAS,IAAI;AACnB,KAAI,gBACF,QAAO,OAAO,WAAW,gBAAgB;AAE3C,KAAI,MACF,QAAO,OAAO,SAAS,MAAM;CAG/B,MAAM,cAAc,OAAO,UAAU;AACrC,KAAI,YACF,SAAQ,GAAG;AAGb,QAAO;AACR;;;;;;;;AASD,SAAgB,YACdJ,MACAC,kBACAI,SACQ;CACR,MAAM,SAAS,aAAa,KAAK;AACjC,QAAO,UACF,UAAU,iBAAiB,GAAG,KAAK,wBAAwB,aAC3D,UAAU,KAAK,iBAAiB,iBAAiB,wBAAwB;AAC/E;;;;;;;;;;;AAYD,SAAgB,qBACdL,MACAC,kBACAK,OACAC,UAAuC,SACvCC,aACAC,QACQ;CACR,MAAM,SAAS,aAAa,KAAK;CACjC,IAAI,MAAM,UACL,UAAU,iBAAiB,GAAG,KAAK,cACnC,U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ugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n return isSaas\n ? `https://${organizationSlug}.${host}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n let url = isSaas\n ? `https://${organizationSlug}.${host}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n return isSaas\n ? `https://${organizationSlug}.${host}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n let url = isSaas\n ? `https://${organizationSlug}.${host}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,aAAaA,MAAuB;AAClD,QAAO,SAAS,eAAe,KAAK,SAAS,aAAa;AAC3D;;;;;;;;AASD,SAAgB,YACdA,MACAC,kBACAC,SACQ;CACR,MAAM,SAAS,aAAa,KAAK;AACjC,QAAO,UACF,UAAU,iBAAiB,GAAG,KAAK,UAAU,aAC7C,UAAU,KAAK,iBAAiB,iBAAiB,UAAU;AACjE;;;;;;;;;AAUD,SAAgB,mBACdF,MACAC,kBACAE,OACAC,iB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;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBV,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BU,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBV,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCU,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-CqbeJfE1.cjs","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","UserInputError"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { tool } from \"ai\";\nimport { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { logError } from \"../../logging\";\nimport { UserInputError } from \"../../errors\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n try {\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n } catch (error) {\n // If we can't get custom attributes, continue with just common fields\n logError(error, {\n search_events: {\n dataset,\n organizationSlug,\n operation:\n dataset === \"errors\" ? \"listTags\" : \"listTraceItemAttributes\",\n ...(dataset !== \"errors\" && {\n itemType: dataset === \"logs\" ? \"logs\" : \"spans\",\n }),\n },\n });\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n */\nexport function createDatasetAttributesTool(\n apiService: SentryApiService,\n organizationSlug: string,\n projectId?: string,\n) {\n return tool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n try {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n } catch (error) {\n if (error instanceof UserInputError) {\n return `Error: ${error.message}`;\n }\n throw error;\n }\n },\n });\n}\n"],"mappings":";;;;;;;AAUA,SAAgB,eACdA,OACAC,KACA,eAAe,IACP;CACR,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW,QAAQ;AAC5C;AAGD,SAAgB,eACdD,OACAC,KACoB;CACpB,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW;AACpC;AAGD,SAAgB,iBAAiBC,QAA2B;AAC1D,QAAO,OAAO,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI,IAAI,MAAM,SAAS,IAAI,CAAC;AAC1E;AAGD,eAAsB,sBACpBC,YACAC,kBACAC,SACAC,WACAC,YAIC;CACD,MAAMC,mBAA2C,CAAE;CACnD,MAAMC,aAAkD,CAAE;AAE1D,KAAI;AACF,MAAI,YAAY,UAAU;GAGxB,MAAM,eAAe,MAAM,WAAW,SAAS;IAC7C;IACA,SAAS;IACT,SAAS;IACT,aAAa;IACb,UAAU;IACV,iBAAiB;GAClB,EAAC;AAEF,QAAK,MAAM,OAAO,aAChB,KAAI,IAAI,QAAQ,IAAI,IAAI,WAAW,UAAU,CAC3C,kBAAiB,IAAI,OAAO,IAAI,QAAQ,IAAI;EAGjD,OAAM;GAEL,MAAM,WAAW,YAAY,SAAS,SAAS;GAC/C,MAAM,qBAAqB,MAAM,WAAW,wBAAwB;IAClE;IACA;IACA,SAAS;IACT,aAAa;GACd,EAAC;AAEF,QAAK,MAAM,QAAQ,mBACjB,KAAI,KAAK,KAAK;AACZ,qBAAiB,KAAK,OAAO,KAAK,QAAQ,KAAK;AAE/C,QAAI,KAAK,SAAS,KAAK,SAAS,YAAY,KAAK,SAAS,UACxD,YAAW,KAAK,OAAO,KAAK;GAE/B;EAEJ;CACF,SAAQ,OAAO;AAEd,2BAAS,OAAO,EACd,eAAe;GACb;GACA;GACA,WACE,YAAY,WAAW,aAAa;GACtC,GA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E-imr.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { UserInputError } from "./errors-D_R568zP.js";
|
|
2
|
-
import { logError } from "./logging-tGU_SYcA.js";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { tool } from "ai";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/search-events/utils.ts
|
|
7
|
-
function getStringValue(event, key, defaultValue = "") {
|
|
8
|
-
const value = event[key];
|
|
9
|
-
return typeof value === "string" ? value : defaultValue;
|
|
10
|
-
}
|
|
11
|
-
function getNumberValue(event, key) {
|
|
12
|
-
const value = event[key];
|
|
13
|
-
return typeof value === "number" ? value : void 0;
|
|
14
|
-
}
|
|
15
|
-
function isAggregateQuery(fields) {
|
|
16
|
-
return fields.some((field) => field.includes("(") && field.includes(")"));
|
|
17
|
-
}
|
|
18
|
-
async function fetchCustomAttributes(apiService, organizationSlug, dataset, projectId, timeParams) {
|
|
19
|
-
const customAttributes = {};
|
|
20
|
-
const fieldTypes = {};
|
|
21
|
-
try {
|
|
22
|
-
if (dataset === "errors") {
|
|
23
|
-
const tagsResponse = await apiService.listTags({
|
|
24
|
-
organizationSlug,
|
|
25
|
-
dataset: "events",
|
|
26
|
-
project: projectId,
|
|
27
|
-
statsPeriod: "14d",
|
|
28
|
-
useCache: true,
|
|
29
|
-
useFlagsBackend: true
|
|
30
|
-
});
|
|
31
|
-
for (const tag of tagsResponse) if (tag.key && !tag.key.startsWith("sentry:")) customAttributes[tag.key] = tag.name || tag.key;
|
|
32
|
-
} else {
|
|
33
|
-
const itemType = dataset === "logs" ? "logs" : "spans";
|
|
34
|
-
const attributesResponse = await apiService.listTraceItemAttributes({
|
|
35
|
-
organizationSlug,
|
|
36
|
-
itemType,
|
|
37
|
-
project: projectId,
|
|
38
|
-
statsPeriod: "14d"
|
|
39
|
-
});
|
|
40
|
-
for (const attr of attributesResponse) if (attr.key) {
|
|
41
|
-
customAttributes[attr.key] = attr.name || attr.key;
|
|
42
|
-
if (attr.type && (attr.type === "string" || attr.type === "number")) fieldTypes[attr.key] = attr.type;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} catch (error) {
|
|
46
|
-
logError(error, { search_events: {
|
|
47
|
-
dataset,
|
|
48
|
-
organizationSlug,
|
|
49
|
-
operation: dataset === "errors" ? "listTags" : "listTraceItemAttributes",
|
|
50
|
-
...dataset !== "errors" && { itemType: dataset === "logs" ? "logs" : "spans" }
|
|
51
|
-
} });
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
attributes: customAttributes,
|
|
55
|
-
fieldTypes
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Create a tool for the agent to query available attributes by dataset
|
|
60
|
-
*/
|
|
61
|
-
function createDatasetAttributesTool(apiService, organizationSlug, projectId) {
|
|
62
|
-
return tool({
|
|
63
|
-
description: "Query available attributes and fields for a specific Sentry dataset to understand what data is available",
|
|
64
|
-
parameters: z.object({ dataset: z.enum([
|
|
65
|
-
"spans",
|
|
66
|
-
"errors",
|
|
67
|
-
"logs"
|
|
68
|
-
]).describe("The dataset to query attributes for") }),
|
|
69
|
-
execute: async ({ dataset }) => {
|
|
70
|
-
try {
|
|
71
|
-
const { BASE_COMMON_FIELDS, DATASET_FIELDS, RECOMMENDED_FIELDS, NUMERIC_FIELDS } = await import("./tools/search-events/config.js");
|
|
72
|
-
const { attributes: customAttributes, fieldTypes } = await fetchCustomAttributes(apiService, organizationSlug, dataset, projectId);
|
|
73
|
-
const allFields = {
|
|
74
|
-
...BASE_COMMON_FIELDS,
|
|
75
|
-
...DATASET_FIELDS[dataset],
|
|
76
|
-
...customAttributes
|
|
77
|
-
};
|
|
78
|
-
const recommendedFields = RECOMMENDED_FIELDS[dataset];
|
|
79
|
-
const allFieldTypes = { ...fieldTypes };
|
|
80
|
-
const staticNumericFields = NUMERIC_FIELDS[dataset] || /* @__PURE__ */ new Set();
|
|
81
|
-
for (const field of staticNumericFields) allFieldTypes[field] = "number";
|
|
82
|
-
return `Dataset: ${dataset}
|
|
83
|
-
|
|
84
|
-
Available Fields (${Object.keys(allFields).length} total):
|
|
85
|
-
${Object.entries(allFields).slice(0, 50).map(([key, desc]) => `- ${key}: ${desc}`).join("\n")}
|
|
86
|
-
${Object.keys(allFields).length > 50 ? `\n... and ${Object.keys(allFields).length - 50} more fields` : ""}
|
|
87
|
-
|
|
88
|
-
Recommended Fields for ${dataset}:
|
|
89
|
-
${recommendedFields.basic.map((f) => `- ${f}`).join("\n")}
|
|
90
|
-
|
|
91
|
-
Field Types (CRITICAL for aggregate functions):
|
|
92
|
-
${Object.entries(allFieldTypes).slice(0, 30).map(([key, type]) => `- ${key}: ${type}`).join("\n")}
|
|
93
|
-
${Object.keys(allFieldTypes).length > 30 ? `\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : ""}
|
|
94
|
-
|
|
95
|
-
IMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.
|
|
96
|
-
|
|
97
|
-
Use this information to construct appropriate queries for the ${dataset} dataset.`;
|
|
98
|
-
} catch (error) {
|
|
99
|
-
if (error instanceof UserInputError) return `Error: ${error.message}`;
|
|
100
|
-
throw error;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
//#endregion
|
|
107
|
-
export { createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
|
|
108
|
-
//# sourceMappingURL=utils-OgYE-imr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-OgYE-imr.js","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { tool } from \"ai\";\nimport { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { logError } from \"../../logging\";\nimport { UserInputError } from \"../../errors\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n try {\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n } catch (error) {\n // If we can't get custom attributes, continue with just common fields\n logError(error, {\n search_events: {\n dataset,\n organizationSlug,\n operation:\n dataset === \"errors\" ? \"listTags\" : \"listTraceItemAttributes\",\n ...(dataset !== \"errors\" && {\n itemType: dataset === \"logs\" ? \"logs\" : \"spans\",\n }),\n },\n });\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n */\nexport function createDatasetAttributesTool(\n apiService: SentryApiService,\n organizationSlug: string,\n projectId?: string,\n) {\n return tool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n try {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n } catch (error) {\n if (error instanceof UserInputError) {\n return `Error: ${error.message}`;\n }\n throw error;\n }\n },\n });\n}\n"],"mappings":";;;;;;AAUA,SAAgB,eACdA,OACAC,KACA,eAAe,IACP;CACR,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW,QAAQ;AAC5C;AAGD,SAAgB,eACdD,OACAC,KACoB;CACpB,MAAM,QAAQ,MAAM;AACpB,eAAc,UAAU,WAAW;AACpC;AAGD,SAAgB,iBAAiBC,QAA2B;AAC1D,QAAO,OAAO,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI,IAAI,MAAM,SAAS,IAAI,CAAC;AAC1E;AAGD,eAAsB,sBACpBC,YACAC,kBACAC,SACAC,WACAC,YAIC;CACD,MAAMC,mBAA2C,CAAE;CACnD,MAAMC,aAAkD,CAAE;AAE1D,KAAI;AACF,MAAI,YAAY,UAAU;GAGxB,MAAM,eAAe,MAAM,WAAW,SAAS;IAC7C;IACA,SAAS;IACT,SAAS;IACT,aAAa;IACb,UAAU;IACV,iBAAiB;GAClB,EAAC;AAEF,QAAK,MAAM,OAAO,aAChB,KAAI,IAAI,QAAQ,IAAI,IAAI,WAAW,UAAU,CAC3C,kBAAiB,IAAI,OAAO,IAAI,QAAQ,IAAI;EAGjD,OAAM;GAEL,MA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AAC,KAAK,KAAK,MAAM,IAAI,IAAI,IAAI,OAAO,CACzC,KAAK,KAAK,CAAC;EACZ,OAAO,KAAK,UAAU,CAAC,SAAS,MAAM,YAAY,OAAO,KAAK,UAAU,CAAC,SAAS,GAAG,gBAAgB,GAAG;;yBAEjF,QAAQ;EAC/B,kBAAkB,MAAM,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC;;;EAGxD,OAAO,QAAQ,cAAc,CAC5B,MAAM,GAAG,GAAG,CACZ,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,IAAI,IAAI,OAAO,CACzC,KAAK,KAAK,CAAC;EACZ,OAAO,KAAK,cAAc,CAAC,SAAS,MAAM,YAAY,OAAO,KAAK,cAAc,CAAC,SAAS,GAAG,gBAAgB,GAAG;;;;gEAIlD,QAAQ;GACjE,SAAQ,OAAO;AACd,QAAI,iBAAiB,eACnB,SAAQ,SAAS,MAAM;AAEzB,UAAM;GACP;EACF;CACF,EAAC;AACH"}
|
package/dist/version-DvjTvYJs.js
DELETED
package/dist/whoami-BOJHfdih.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
2
|
-
const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
|
|
3
|
-
|
|
4
|
-
//#region src/tools/whoami.ts
|
|
5
|
-
var whoami_default = require_defineTool.defineTool({
|
|
6
|
-
name: "whoami",
|
|
7
|
-
description: [
|
|
8
|
-
"Identify the authenticated user in Sentry.",
|
|
9
|
-
"",
|
|
10
|
-
"Use this tool when you need to:",
|
|
11
|
-
"- Get the user's name and email address."
|
|
12
|
-
].join("\n"),
|
|
13
|
-
inputSchema: {},
|
|
14
|
-
async handler(params, context) {
|
|
15
|
-
const apiService = require_api_utils.apiServiceFromContext(context);
|
|
16
|
-
const user = await apiService.getAuthenticatedUser();
|
|
17
|
-
return `You are authenticated as ${user.name} (${user.email}).\n\nYour Sentry User ID is ${user.id}.`;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
Object.defineProperty(exports, 'whoami_default', {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () {
|
|
25
|
-
return whoami_default;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=whoami-BOJHfdih.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"whoami-BOJHfdih.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
|