@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,15 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const require_schema = require('./schema-
|
|
6
|
-
const require_issue_helpers = require('./issue-helpers-
|
|
7
|
-
const
|
|
3
|
+
const require_define = require('./define-BfP4rFlE.cjs');
|
|
4
|
+
const require_api = require('./api-CZD9zwQ-.cjs');
|
|
5
|
+
const require_schema = require('./schema-Cv_VNAHz.cjs');
|
|
6
|
+
const require_issue_helpers = require('./issue-helpers-DbPTv_qC.cjs');
|
|
7
|
+
const require_formatting = require('./formatting-EM76FrY3.cjs');
|
|
8
8
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
9
9
|
|
|
10
10
|
//#region src/tools/update-issue.ts
|
|
11
|
-
var update_issue_default =
|
|
11
|
+
var update_issue_default = require_define.defineTool({
|
|
12
12
|
name: "update_issue",
|
|
13
|
+
requiredScopes: ["event:write"],
|
|
13
14
|
description: [
|
|
14
15
|
"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.",
|
|
15
16
|
"",
|
|
@@ -62,8 +63,14 @@ var update_issue_default = require_defineTool.defineTool({
|
|
|
62
63
|
status: require_schema.ParamIssueStatus.optional(),
|
|
63
64
|
assignedTo: require_schema.ParamAssignedTo.optional()
|
|
64
65
|
},
|
|
66
|
+
annotations: {
|
|
67
|
+
readOnlyHint: false,
|
|
68
|
+
destructiveHint: true,
|
|
69
|
+
idempotentHint: true,
|
|
70
|
+
openWorldHint: true
|
|
71
|
+
},
|
|
65
72
|
async handler(params, context) {
|
|
66
|
-
const apiService =
|
|
73
|
+
const apiService = require_api.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
67
74
|
if (!params.issueUrl && !params.issueId) throw new require_errors.UserInputError("Either `issueId` or `issueUrl` must be provided");
|
|
68
75
|
if (!params.issueUrl && !params.organizationSlug) throw new require_errors.UserInputError("`organizationSlug` is required when providing `issueId`");
|
|
69
76
|
if (!params.status && !params.assignedTo) throw new require_errors.UserInputError("At least one of `status` or `assignedTo` must be provided to update the issue");
|
|
@@ -73,21 +80,15 @@ var update_issue_default = require_defineTool.defineTool({
|
|
|
73
80
|
issueUrl: params.issueUrl
|
|
74
81
|
});
|
|
75
82
|
(0, __sentry_core.setTag)("organization.slug", orgSlug);
|
|
76
|
-
const currentIssue = await
|
|
77
|
-
organizationSlug: orgSlug,
|
|
78
|
-
issueId: parsedIssueId
|
|
79
|
-
}), {
|
|
83
|
+
const currentIssue = await apiService.getIssue({
|
|
80
84
|
organizationSlug: orgSlug,
|
|
81
85
|
issueId: parsedIssueId
|
|
82
86
|
});
|
|
83
|
-
const updatedIssue = await
|
|
87
|
+
const updatedIssue = await apiService.updateIssue({
|
|
84
88
|
organizationSlug: orgSlug,
|
|
85
89
|
issueId: parsedIssueId,
|
|
86
90
|
status: params.status,
|
|
87
91
|
assignedTo: params.assignedTo
|
|
88
|
-
}), {
|
|
89
|
-
organizationSlug: orgSlug,
|
|
90
|
-
issueId: parsedIssueId
|
|
91
92
|
});
|
|
92
93
|
let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\n\n`;
|
|
93
94
|
output += `**Issue**: ${updatedIssue.title}\n`;
|
|
@@ -95,13 +96,13 @@ var update_issue_default = require_defineTool.defineTool({
|
|
|
95
96
|
output += "## Changes Made\n\n";
|
|
96
97
|
if (params.status && currentIssue.status !== params.status) output += `**Status**: ${currentIssue.status} → **${params.status}**\n`;
|
|
97
98
|
if (params.assignedTo) {
|
|
98
|
-
const oldAssignee =
|
|
99
|
+
const oldAssignee = require_formatting.formatAssignedTo(currentIssue.assignedTo ?? null);
|
|
99
100
|
const newAssignee = params.assignedTo === "me" ? "You" : params.assignedTo;
|
|
100
101
|
output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\n`;
|
|
101
102
|
}
|
|
102
103
|
output += "\n## Current Status\n\n";
|
|
103
104
|
output += `**Status**: ${updatedIssue.status}\n`;
|
|
104
|
-
const currentAssignee =
|
|
105
|
+
const currentAssignee = require_formatting.formatAssignedTo(updatedIssue.assignedTo ?? null);
|
|
105
106
|
output += `**Assigned To**: ${currentAssignee}\n`;
|
|
106
107
|
output += "\n# Using this information\n\n";
|
|
107
108
|
output += `- The issue has been successfully updated in Sentry\n`;
|
|
@@ -119,4 +120,4 @@ Object.defineProperty(exports, 'update_issue_default', {
|
|
|
119
120
|
return update_issue_default;
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
|
-
//# sourceMappingURL=update-issue-
|
|
123
|
+
//# sourceMappingURL=update-issue-eELBq_Uy.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-issue-eELBq_Uy.cjs","names":["context: ServerContext","UserInputError"],"sources":["../src/tools/update-issue.ts"],"sourcesContent":["import { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport { formatAssignedTo } from \"../internal/tool-helpers/formatting\";\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 requiredScopes: [\"event:write\"],\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 annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\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 apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Update the issue\n const updatedIssue = await apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\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":";;;;;;;;;;AAgBA,2BAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,aAAc;CAC/B,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,gCAAiB,UAAU;EACnC,YAAY,+BAAgB,UAAU;CACvC;CACD,aAAa;EACX,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAIC,8BACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAIA,8BACR;AAKJ,OAAK,OAAO,WAAW,OAAO,WAC5B,OAAM,IAAIA,8BACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAGpC,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C,kBAAkB;GAClB,SAAS;EACV,EAAC;EAGF,MAAM,eAAe,MAAM,WAAW,YAAY;GAChD,kBAAkB;GAClB,SAAS;GACT,QAAQ,OAAO;GACf,YAAY,OAAO;EACpB,EAAC;EAEF,IAAI,UAAU,UAAU,aAAa,QAAQ,gBAAgB,QAAQ;AACrE,aAAW,aAAa,aAAa,MAAM;AAC3C,aAAW,WAAW,WAAW,YAAY,SAAS,aAAa,QAAQ,CAAC;AAG5E,YAAU;AAEV,MAAI,OAAO,UAAU,aAAa,WAAW,OAAO,OAClD,YAAW,cAAc,aAAa,OAAO,OAAO,OAAO,OAAO;AAGpE,MAAI,OAAO,YAAY;GACrB,MAAM,cAAc,oCAAiB,aAAa,cAAc,KAAK;GACrE,MAAM,cACJ,OAAO,eAAe,OAAO,QAAQ,OAAO;AAC9C,cAAW,mBAAmB,YAAY,OAAO,YAAY;EAC9D;AAED,YAAU;AACV,aAAW,cAAc,aAAa,OAAO;EAC7C,MAAM,kBAAkB,oCAAiB,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,14 +1,15 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-D_R568zP.js";
|
|
2
|
-
import { defineTool } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { z } from "zod";
|
|
2
|
+
import { defineTool } from "./define-2Lj8Lm1t.js";
|
|
3
|
+
import { logIssue } from "./logging-DqqDTe02.js";
|
|
4
|
+
import { apiServiceFromContext } from "./api-CkLTFexT.js";
|
|
5
|
+
import { ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamRegionUrl, ParamTeamSlug } from "./schema-rwexXWFL.js";
|
|
7
6
|
import { setTag } from "@sentry/core";
|
|
7
|
+
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/tools/update-project.ts
|
|
10
10
|
var update_project_default = defineTool({
|
|
11
11
|
name: "update_project",
|
|
12
|
+
requiredScopes: ["project:write"],
|
|
12
13
|
description: [
|
|
13
14
|
"Update project settings in Sentry, such as name, slug, platform, and team assignment.",
|
|
14
15
|
"",
|
|
@@ -56,6 +57,12 @@ var update_project_default = defineTool({
|
|
|
56
57
|
platform: ParamPlatform.optional(),
|
|
57
58
|
teamSlug: ParamTeamSlug.optional().describe("The team to assign this project to. Note: this will replace the current team assignment.")
|
|
58
59
|
},
|
|
60
|
+
annotations: {
|
|
61
|
+
readOnlyHint: false,
|
|
62
|
+
destructiveHint: true,
|
|
63
|
+
idempotentHint: true,
|
|
64
|
+
openWorldHint: true
|
|
65
|
+
},
|
|
59
66
|
async handler(params, context) {
|
|
60
67
|
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
61
68
|
const organizationSlug = params.organizationSlug;
|
|
@@ -70,7 +77,7 @@ var update_project_default = defineTool({
|
|
|
70
77
|
teamSlug: params.teamSlug
|
|
71
78
|
});
|
|
72
79
|
} catch (err) {
|
|
73
|
-
|
|
80
|
+
logIssue(err);
|
|
74
81
|
throw new Error(`Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : "Unknown error"}`);
|
|
75
82
|
}
|
|
76
83
|
}
|
|
@@ -85,7 +92,7 @@ var update_project_default = defineTool({
|
|
|
85
92
|
platform: params.platform
|
|
86
93
|
});
|
|
87
94
|
} catch (err) {
|
|
88
|
-
|
|
95
|
+
logIssue(err);
|
|
89
96
|
throw new Error(`Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : "Unknown error"}`);
|
|
90
97
|
}
|
|
91
98
|
else {
|
|
@@ -117,4 +124,4 @@ var update_project_default = defineTool({
|
|
|
117
124
|
|
|
118
125
|
//#endregion
|
|
119
126
|
export { update_project_default };
|
|
120
|
-
//# sourceMappingURL=update-project-
|
|
127
|
+
//# sourceMappingURL=update-project-CuZlyBPN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-project-CuZlyBPN.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 \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { logIssue } from \"../telem/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 requiredScopes: [\"project:write\"],\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 annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n 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 logIssue(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 logIssue(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,gBAAgB,CAAC,eAAgB;CACjC,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,aAAa;EACX,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;AAG1C,MAAI,OAAO,UAAU;AACnB,UAAO,aAAa,OAAO,SAAS;AACpC,OAAI;AACF,UAAM,WAAW,iBAAiB;KAChC;KACA,aAAa,OAAO;KACpB,UAAU,OAAO;IAClB,EAAC;GACH,SAAQ,KAAK;AACZ,aAAS,IAAI;AACb,UAAM,IAAI,OACP,wBAAwB,OAAO,SAAS,cAAc,OAAO,YAAY,IAAI,eAAe,QAAQ,IAAI,UAAU;GAEtH;EACF;EAGD,MAAM,oBAAoB,OAAO,QAAQ,OAAO,QAAQ,OAAO;EAE/D,IAAIC;AACJ,MAAI,kBACF,KAAI;AACF,aAAU,MAAM,WAAW,cAAc;IACvC;IACA,aAAa,OAAO;IACpB,MAAM,OAAO;IACb,MAAM,OAAO;IACb,UAAU,OAAO;GAClB,EAAC;EACH,SAAQ,KAAK;AACZ,YAAS,IAAI;AACb,SAAM,IAAI,OACP,2BAA2B,OAAO,YAAY,IAAI,eAAe,QAAQ,IAAI,UAAU;EAE3F;OACI;GAEL,MAAM,WAAW,MAAM,WAAW,aAAa,iBAAiB;AAChE,aAAU,SAAS,KAAK,CAAC,MAAM,EAAE,SAAS,OAAO,YAAY;AAC7D,QAAK,QACH,OAAM,IAAI,gBAAgB,UAAU,OAAO,YAAY;EAE1D;EAED,IAAI,UAAU,yBAAyB,iBAAiB;AACxD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,QAAQ,SACV,YAAW,gBAAgB,QAAQ,SAAS;EAI9C,MAAMC,UAAoB,CAAE;AAC5B,MAAI,OAAO,KAAM,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,15 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
3
|
+
const require_define = require('./define-BfP4rFlE.cjs');
|
|
4
|
+
const require_logging = require('./logging-CkAJKyq2.cjs');
|
|
5
|
+
const require_api = require('./api-CZD9zwQ-.cjs');
|
|
6
|
+
const require_schema = require('./schema-Cv_VNAHz.cjs');
|
|
8
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
|
+
const zod = require_chunk.__toESM(require("zod"));
|
|
9
9
|
|
|
10
10
|
//#region src/tools/update-project.ts
|
|
11
|
-
var update_project_default =
|
|
11
|
+
var update_project_default = require_define.defineTool({
|
|
12
12
|
name: "update_project",
|
|
13
|
+
requiredScopes: ["project:write"],
|
|
13
14
|
description: [
|
|
14
15
|
"Update project settings in Sentry, such as name, slug, platform, and team assignment.",
|
|
15
16
|
"",
|
|
@@ -57,8 +58,14 @@ var update_project_default = require_defineTool.defineTool({
|
|
|
57
58
|
platform: require_schema.ParamPlatform.optional(),
|
|
58
59
|
teamSlug: require_schema.ParamTeamSlug.optional().describe("The team to assign this project to. Note: this will replace the current team assignment.")
|
|
59
60
|
},
|
|
61
|
+
annotations: {
|
|
62
|
+
readOnlyHint: false,
|
|
63
|
+
destructiveHint: true,
|
|
64
|
+
idempotentHint: true,
|
|
65
|
+
openWorldHint: true
|
|
66
|
+
},
|
|
60
67
|
async handler(params, context) {
|
|
61
|
-
const apiService =
|
|
68
|
+
const apiService = require_api.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
62
69
|
const organizationSlug = params.organizationSlug;
|
|
63
70
|
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
64
71
|
(0, __sentry_core.setTag)("project.slug", params.projectSlug);
|
|
@@ -71,7 +78,7 @@ var update_project_default = require_defineTool.defineTool({
|
|
|
71
78
|
teamSlug: params.teamSlug
|
|
72
79
|
});
|
|
73
80
|
} catch (err) {
|
|
74
|
-
require_logging.
|
|
81
|
+
require_logging.logIssue(err);
|
|
75
82
|
throw new Error(`Failed to assign team ${params.teamSlug} to project ${params.projectSlug}: ${err instanceof Error ? err.message : "Unknown error"}`);
|
|
76
83
|
}
|
|
77
84
|
}
|
|
@@ -86,7 +93,7 @@ var update_project_default = require_defineTool.defineTool({
|
|
|
86
93
|
platform: params.platform
|
|
87
94
|
});
|
|
88
95
|
} catch (err) {
|
|
89
|
-
require_logging.
|
|
96
|
+
require_logging.logIssue(err);
|
|
90
97
|
throw new Error(`Failed to update project ${params.projectSlug}: ${err instanceof Error ? err.message : "Unknown error"}`);
|
|
91
98
|
}
|
|
92
99
|
else {
|
|
@@ -123,4 +130,4 @@ Object.defineProperty(exports, 'update_project_default', {
|
|
|
123
130
|
return update_project_default;
|
|
124
131
|
}
|
|
125
132
|
});
|
|
126
|
-
//# sourceMappingURL=update-project-
|
|
133
|
+
//# sourceMappingURL=update-project-DMRBdOZ5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-project-DMRBdOZ5.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 \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { logIssue } from \"../telem/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 requiredScopes: [\"project:write\"],\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 annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n 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 logIssue(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 logIssue(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":"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"}
|
|
@@ -10,18 +10,19 @@ function isSentryHost(host) {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Generates a Sentry issue URL.
|
|
13
|
-
* @param host The Sentry host
|
|
13
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
14
14
|
* @param organizationSlug Organization identifier
|
|
15
15
|
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
16
16
|
* @returns The complete issue URL
|
|
17
17
|
*/
|
|
18
18
|
function getIssueUrl(host, organizationSlug, issueId) {
|
|
19
19
|
const isSaas = isSentryHost(host);
|
|
20
|
-
|
|
20
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
21
|
+
return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Generates a Sentry issues search URL.
|
|
24
|
-
* @param host The Sentry host
|
|
25
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
25
26
|
* @param organizationSlug Organization identifier
|
|
26
27
|
* @param query Optional search query
|
|
27
28
|
* @param projectSlugOrId Optional project slug or ID
|
|
@@ -29,7 +30,8 @@ function getIssueUrl(host, organizationSlug, issueId) {
|
|
|
29
30
|
*/
|
|
30
31
|
function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
31
32
|
const isSaas = isSentryHost(host);
|
|
32
|
-
|
|
33
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
34
|
+
let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
|
|
33
35
|
const params = new URLSearchParams();
|
|
34
36
|
if (projectSlugOrId) params.append("project", projectSlugOrId);
|
|
35
37
|
if (query) params.append("query", query);
|
|
@@ -39,18 +41,19 @@ function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
|
39
41
|
}
|
|
40
42
|
/**
|
|
41
43
|
* Generates a Sentry trace URL for performance investigation.
|
|
42
|
-
* @param host The Sentry host
|
|
44
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
43
45
|
* @param organizationSlug Organization identifier
|
|
44
46
|
* @param traceId Trace identifier
|
|
45
47
|
* @returns The complete trace URL
|
|
46
48
|
*/
|
|
47
49
|
function getTraceUrl(host, organizationSlug, traceId) {
|
|
48
50
|
const isSaas = isSentryHost(host);
|
|
49
|
-
|
|
51
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
52
|
+
return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
|
|
50
53
|
}
|
|
51
54
|
/**
|
|
52
55
|
* Generates a Sentry events explorer URL.
|
|
53
|
-
* @param host The Sentry host
|
|
56
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
54
57
|
* @param organizationSlug Organization identifier
|
|
55
58
|
* @param query Search query
|
|
56
59
|
* @param dataset Dataset type
|
|
@@ -60,7 +63,8 @@ function getTraceUrl(host, organizationSlug, traceId) {
|
|
|
60
63
|
*/
|
|
61
64
|
function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
|
|
62
65
|
const isSaas = isSentryHost(host);
|
|
63
|
-
|
|
66
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
67
|
+
let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
|
|
64
68
|
const params = new URLSearchParams();
|
|
65
69
|
params.append("query", query);
|
|
66
70
|
params.append("dataset", dataset);
|
|
@@ -147,6 +151,25 @@ function validateSentryHostThrows(host) {
|
|
|
147
151
|
function validateAndParseSentryUrlThrows(url) {
|
|
148
152
|
return _validateAndParseSentryUrlInternal(url);
|
|
149
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
156
|
+
*
|
|
157
|
+
* @param url The URL to validate and normalize
|
|
158
|
+
* @returns The normalized URL string
|
|
159
|
+
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
160
|
+
*/
|
|
161
|
+
function validateOpenAiBaseUrlThrows(url) {
|
|
162
|
+
const trimmed = url.trim();
|
|
163
|
+
if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
|
|
164
|
+
let parsed;
|
|
165
|
+
try {
|
|
166
|
+
parsed = new URL(trimmed);
|
|
167
|
+
} catch (error) {
|
|
168
|
+
throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
|
|
169
|
+
}
|
|
170
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
|
|
171
|
+
return parsed.toString();
|
|
172
|
+
}
|
|
150
173
|
|
|
151
174
|
//#endregion
|
|
152
175
|
Object.defineProperty(exports, 'getEventsExplorerUrl', {
|
|
@@ -191,6 +214,12 @@ Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
|
|
|
191
214
|
return validateAndParseSentryUrlThrows;
|
|
192
215
|
}
|
|
193
216
|
});
|
|
217
|
+
Object.defineProperty(exports, 'validateOpenAiBaseUrlThrows', {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () {
|
|
220
|
+
return validateOpenAiBaseUrlThrows;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
194
223
|
Object.defineProperty(exports, 'validateSentryHost', {
|
|
195
224
|
enumerable: true,
|
|
196
225
|
get: function () {
|
|
@@ -203,4 +232,4 @@ Object.defineProperty(exports, 'validateSentryHostThrows', {
|
|
|
203
232
|
return validateSentryHostThrows;
|
|
204
233
|
}
|
|
205
234
|
});
|
|
206
|
-
//# sourceMappingURL=url-utils-
|
|
235
|
+
//# sourceMappingURL=url-utils-Bn5EoScr.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils-Bn5EoScr.cjs","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/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\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
|
|
@@ -9,18 +9,19 @@ function isSentryHost(host) {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Generates a Sentry issue URL.
|
|
12
|
-
* @param host The Sentry host
|
|
12
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
13
13
|
* @param organizationSlug Organization identifier
|
|
14
14
|
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
15
15
|
* @returns The complete issue URL
|
|
16
16
|
*/
|
|
17
17
|
function getIssueUrl(host, organizationSlug, issueId) {
|
|
18
18
|
const isSaas = isSentryHost(host);
|
|
19
|
-
|
|
19
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
20
|
+
return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Generates a Sentry issues search URL.
|
|
23
|
-
* @param host The Sentry host
|
|
24
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
24
25
|
* @param organizationSlug Organization identifier
|
|
25
26
|
* @param query Optional search query
|
|
26
27
|
* @param projectSlugOrId Optional project slug or ID
|
|
@@ -28,7 +29,8 @@ function getIssueUrl(host, organizationSlug, issueId) {
|
|
|
28
29
|
*/
|
|
29
30
|
function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
30
31
|
const isSaas = isSentryHost(host);
|
|
31
|
-
|
|
32
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
33
|
+
let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
|
|
32
34
|
const params = new URLSearchParams();
|
|
33
35
|
if (projectSlugOrId) params.append("project", projectSlugOrId);
|
|
34
36
|
if (query) params.append("query", query);
|
|
@@ -38,18 +40,19 @@ function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
40
42
|
* Generates a Sentry trace URL for performance investigation.
|
|
41
|
-
* @param host The Sentry host
|
|
43
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
42
44
|
* @param organizationSlug Organization identifier
|
|
43
45
|
* @param traceId Trace identifier
|
|
44
46
|
* @returns The complete trace URL
|
|
45
47
|
*/
|
|
46
48
|
function getTraceUrl(host, organizationSlug, traceId) {
|
|
47
49
|
const isSaas = isSentryHost(host);
|
|
48
|
-
|
|
50
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
51
|
+
return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
51
54
|
* Generates a Sentry events explorer URL.
|
|
52
|
-
* @param host The Sentry host
|
|
55
|
+
* @param host The Sentry host (may include regional subdomain for API access)
|
|
53
56
|
* @param organizationSlug Organization identifier
|
|
54
57
|
* @param query Search query
|
|
55
58
|
* @param dataset Dataset type
|
|
@@ -59,7 +62,8 @@ function getTraceUrl(host, organizationSlug, traceId) {
|
|
|
59
62
|
*/
|
|
60
63
|
function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
|
|
61
64
|
const isSaas = isSentryHost(host);
|
|
62
|
-
|
|
65
|
+
const webHost = isSaas ? "sentry.io" : host;
|
|
66
|
+
let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
|
|
63
67
|
const params = new URLSearchParams();
|
|
64
68
|
params.append("query", query);
|
|
65
69
|
params.append("dataset", dataset);
|
|
@@ -146,7 +150,26 @@ function validateSentryHostThrows(host) {
|
|
|
146
150
|
function validateAndParseSentryUrlThrows(url) {
|
|
147
151
|
return _validateAndParseSentryUrlInternal(url);
|
|
148
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
155
|
+
*
|
|
156
|
+
* @param url The URL to validate and normalize
|
|
157
|
+
* @returns The normalized URL string
|
|
158
|
+
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
159
|
+
*/
|
|
160
|
+
function validateOpenAiBaseUrlThrows(url) {
|
|
161
|
+
const trimmed = url.trim();
|
|
162
|
+
if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
|
|
163
|
+
let parsed;
|
|
164
|
+
try {
|
|
165
|
+
parsed = new URL(trimmed);
|
|
166
|
+
} catch (error) {
|
|
167
|
+
throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
|
|
168
|
+
}
|
|
169
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
|
|
170
|
+
return parsed.toString();
|
|
171
|
+
}
|
|
149
172
|
|
|
150
173
|
//#endregion
|
|
151
|
-
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
152
|
-
//# sourceMappingURL=url-utils-
|
|
174
|
+
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
175
|
+
//# sourceMappingURL=url-utils-d9bPTnOl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils-d9bPTnOl.js","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/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 (may include regional subdomain for API access)\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 // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/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\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/cli/usage.ts
|
|
3
|
+
function buildUsage(packageName, defaults, all) {
|
|
4
|
+
return `Usage: ${packageName} --access-token=<token> [--host=<host>]
|
|
5
|
+
|
|
6
|
+
Required:
|
|
7
|
+
--access-token <token> Sentry User Auth Token with API access
|
|
8
|
+
|
|
9
|
+
Common optional flags:
|
|
10
|
+
--host <host> Change Sentry host (self-hosted)
|
|
11
|
+
--sentry-dsn <dsn> Override DSN used for telemetry reporting
|
|
12
|
+
--openai-base-url <url> Override OpenAI API base URL for embedded agents
|
|
13
|
+
|
|
14
|
+
Session constraints:
|
|
15
|
+
--organization-slug <slug> Force all calls to an organization
|
|
16
|
+
--project-slug <slug> Optional project constraint
|
|
17
|
+
|
|
18
|
+
Scope controls:
|
|
19
|
+
--scopes <list> Override default scopes
|
|
20
|
+
--add-scopes <list> Add scopes to defaults
|
|
21
|
+
--all-scopes Grant every available scope
|
|
22
|
+
|
|
23
|
+
Defaults: ${defaults.join(", ")}
|
|
24
|
+
All scopes: ${all.join(", ")}
|
|
25
|
+
|
|
26
|
+
Examples:
|
|
27
|
+
${packageName} --access-token=TOKEN
|
|
28
|
+
${packageName} --access-token=TOKEN --host=sentry.example.com
|
|
29
|
+
${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
Object.defineProperty(exports, 'buildUsage', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return buildUsage;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=usage-CP6e39yF.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-CP6e39yF.cjs","names":["packageName: string","defaults: ReadonlyArray<Scope>","all: ReadonlyArray<Scope>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\n\nexport function buildUsage(\n packageName: string,\n defaults: ReadonlyArray<Scope>,\n all: ReadonlyArray<Scope>,\n): string {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>]\n\nRequired:\n --access-token <token> Sentry User Auth Token with API access\n\nCommon optional flags:\n --host <host> Change Sentry host (self-hosted)\n --sentry-dsn <dsn> Override DSN used for telemetry reporting\n --openai-base-url <url> Override OpenAI API base URL for embedded agents\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nScope controls:\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefaults: ${defaults.join(\", \")}\nAll scopes: ${all.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";;AAEA,SAAgB,WACdA,aACAC,UACAC,KACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;YAmBnB,SAAS,KAAK,KAAK,CAAC;cAClB,IAAI,KAAK,KAAK,CAAC;;;IAGzB,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/cli/usage.ts
|
|
2
|
+
function buildUsage(packageName, defaults, all) {
|
|
3
|
+
return `Usage: ${packageName} --access-token=<token> [--host=<host>]
|
|
4
|
+
|
|
5
|
+
Required:
|
|
6
|
+
--access-token <token> Sentry User Auth Token with API access
|
|
7
|
+
|
|
8
|
+
Common optional flags:
|
|
9
|
+
--host <host> Change Sentry host (self-hosted)
|
|
10
|
+
--sentry-dsn <dsn> Override DSN used for telemetry reporting
|
|
11
|
+
--openai-base-url <url> Override OpenAI API base URL for embedded agents
|
|
12
|
+
|
|
13
|
+
Session constraints:
|
|
14
|
+
--organization-slug <slug> Force all calls to an organization
|
|
15
|
+
--project-slug <slug> Optional project constraint
|
|
16
|
+
|
|
17
|
+
Scope controls:
|
|
18
|
+
--scopes <list> Override default scopes
|
|
19
|
+
--add-scopes <list> Add scopes to defaults
|
|
20
|
+
--all-scopes Grant every available scope
|
|
21
|
+
|
|
22
|
+
Defaults: ${defaults.join(", ")}
|
|
23
|
+
All scopes: ${all.join(", ")}
|
|
24
|
+
|
|
25
|
+
Examples:
|
|
26
|
+
${packageName} --access-token=TOKEN
|
|
27
|
+
${packageName} --access-token=TOKEN --host=sentry.example.com
|
|
28
|
+
${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { buildUsage };
|
|
33
|
+
//# sourceMappingURL=usage-CihInDyq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-CihInDyq.js","names":["packageName: string","defaults: ReadonlyArray<Scope>","all: ReadonlyArray<Scope>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\n\nexport function buildUsage(\n packageName: string,\n defaults: ReadonlyArray<Scope>,\n all: ReadonlyArray<Scope>,\n): string {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>]\n\nRequired:\n --access-token <token> Sentry User Auth Token with API access\n\nCommon optional flags:\n --host <host> Change Sentry host (self-hosted)\n --sentry-dsn <dsn> Override DSN used for telemetry reporting\n --openai-base-url <url> Override OpenAI API base URL for embedded agents\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nScope controls:\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefaults: ${defaults.join(\", \")}\nAll scopes: ${all.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";AAEA,SAAgB,WACdA,aACAC,UACAC,KACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;YAmBnB,SAAS,KAAK,KAAK,CAAC;cAClB,IAAI,KAAK,KAAK,CAAC;;;IAGzB,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const require_slug_validation = require('../slug-validation-DMk8Dyuh.cjs');
|
|
2
|
+
|
|
3
|
+
exports.isNumericId = require_slug_validation.isNumericId;
|
|
4
|
+
exports.validateSlug = require_slug_validation.validateSlug;
|
|
5
|
+
exports.validateSlugOrId = require_slug_validation.validateSlugOrId;
|