@sentry/mcp-server 0.18.0 → 0.20.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 +19 -10
- package/dist/{agent-DD6nYWBQ.d.cts → agent-4SliQ-uj.d.cts} +2 -2
- package/dist/{agent-DD6nYWBQ.d.cts.map → agent-4SliQ-uj.d.cts.map} +1 -1
- package/dist/{agent-D9xBrLvD.cjs → agent-BMCJjVaJ.cjs} +5 -5
- package/dist/{agent-D9xBrLvD.cjs.map → agent-BMCJjVaJ.cjs.map} +1 -1
- package/dist/agent-BbMg6UEA.d.cts +32 -0
- package/dist/agent-BbMg6UEA.d.cts.map +1 -0
- package/dist/{agent-DzpIyyqs.js → agent-CRc61dcC.js} +5 -5
- package/dist/{agent-DzpIyyqs.js.map → agent-CRc61dcC.js.map} +1 -1
- package/dist/{agent-DAlB2lDx.d.cts → agent-D-dMHrZ1.d.cts} +2 -2
- package/dist/{agent-DAlB2lDx.d.cts.map → agent-D-dMHrZ1.d.cts.map} +1 -1
- package/dist/agent-DT4ic52w.cjs +35 -0
- package/dist/agent-DT4ic52w.cjs.map +1 -0
- package/dist/{agent-UxF0J0wb.d.ts → agent-D_WfZ67H.d.ts} +6 -6
- package/dist/{agent-UxF0J0wb.d.ts.map → agent-D_WfZ67H.d.ts.map} +1 -1
- package/dist/agent-Dnr67ykA.d.ts +32 -0
- package/dist/agent-Dnr67ykA.d.ts.map +1 -0
- package/dist/{agent-xEtb_OFK.d.ts → agent-DoYdEiCJ.d.ts} +4 -4
- package/dist/{agent-xEtb_OFK.d.ts.map → agent-DoYdEiCJ.d.ts.map} +1 -1
- package/dist/{agent-BF4d0oSb.cjs → agent-DzfX6_dM.cjs} +6 -6
- package/dist/{agent-BF4d0oSb.cjs.map → agent-DzfX6_dM.cjs.map} +1 -1
- package/dist/{agent-CP5e4nTv.js → agent-FoPk5psd.js} +6 -6
- package/dist/{agent-CP5e4nTv.js.map → agent-FoPk5psd.js.map} +1 -1
- package/dist/agent-tLRcGXXr.js +29 -0
- package/dist/agent-tLRcGXXr.js.map +1 -0
- package/dist/agent-tools-1J_Oub8P.cjs +20 -0
- package/dist/agent-tools-1J_Oub8P.cjs.map +1 -0
- package/dist/agent-tools-DodmjvZn.js +15 -0
- package/dist/agent-tools-DodmjvZn.js.map +1 -0
- package/dist/{analyze-issue-with-seer-Cf0jCiKP.cjs → analyze-issue-with-seer-CI8pvCnf.cjs} +16 -11
- package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-DqwczSTV.js → analyze-issue-with-seer-DvuKEcbu.js} +16 -11
- package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +1 -0
- package/dist/{api-D9yO5I-i.cjs → api-CZD9zwQ-.cjs} +4 -4
- package/dist/{api-D9yO5I-i.cjs.map → api-CZD9zwQ-.cjs.map} +1 -1
- package/dist/{api-mjnGhOW2.js → api-CkLTFexT.js} +4 -4
- package/dist/{api-mjnGhOW2.js.map → api-CkLTFexT.js.map} +1 -1
- package/dist/api-client/client.cjs +5 -4
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +5 -4
- package/dist/api-client/errors.cjs +1 -1
- package/dist/api-client/errors.d.ts +1 -1
- package/dist/api-client/errors.js +1 -1
- package/dist/api-client/index.cjs +8 -6
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +6 -6
- package/dist/api-client/index.js +8 -7
- package/dist/api-client/schema.cjs +2 -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-C0pC9du1.js → callEmbeddedAgent-BSnzLPfW.js} +4 -3
- package/dist/callEmbeddedAgent-BSnzLPfW.js.map +1 -0
- package/dist/callEmbeddedAgent-D83njSgs.d.cts +34 -0
- package/dist/callEmbeddedAgent-D83njSgs.d.cts.map +1 -0
- package/dist/{callEmbeddedAgent-BRz60bxa.cjs → callEmbeddedAgent-KKTSTD7W.cjs} +4 -3
- package/dist/callEmbeddedAgent-KKTSTD7W.cjs.map +1 -0
- package/dist/callEmbeddedAgent-RskCqVav.d.ts +34 -0
- package/dist/callEmbeddedAgent-RskCqVav.d.ts.map +1 -0
- package/dist/cli/parse.cjs +1 -1
- package/dist/cli/parse.d.cts +2 -2
- package/dist/cli/parse.d.cts.map +1 -1
- package/dist/cli/parse.d.ts +2 -2
- package/dist/cli/parse.d.ts.map +1 -1
- package/dist/cli/parse.js +1 -1
- package/dist/cli/resolve.cjs +3 -3
- package/dist/cli/resolve.d.cts +2 -2
- package/dist/cli/resolve.d.cts.map +1 -1
- package/dist/cli/resolve.d.ts +2 -2
- package/dist/cli/resolve.d.ts.map +1 -1
- package/dist/cli/resolve.js +3 -3
- package/dist/cli/types.d.cts +2 -2
- package/dist/cli/types.d.ts +2 -2
- package/dist/cli/usage.cjs +1 -1
- package/dist/cli/usage.d.cts +1 -1
- package/dist/cli/usage.d.ts +1 -1
- package/dist/cli/usage.js +1 -1
- package/dist/{client-AVVG7J24.cjs → client-C2TwbSm-.cjs} +75 -19
- package/dist/client-C2TwbSm-.cjs.map +1 -0
- package/dist/{client-BqrNpqZW.js → client-CWgvrDHH.js} +75 -19
- package/dist/client-CWgvrDHH.js.map +1 -0
- package/dist/{client-B0wezrpt.d.cts → client-DeGFkGAD.d.cts} +23 -11
- package/dist/client-DeGFkGAD.d.cts.map +1 -0
- package/dist/{client-D-KqRd94.d.ts → client-njqQAP-R.d.ts} +24 -12
- package/dist/client-njqQAP-R.d.ts.map +1 -0
- package/dist/{config-CqdBCqLx.js → config-BMC-126h.js} +1 -1
- package/dist/{config-CqdBCqLx.js.map → config-BMC-126h.js.map} +1 -1
- package/dist/config-CTRUv0J3.js +25 -0
- package/dist/config-CTRUv0J3.js.map +1 -0
- package/dist/config-ClFI6orZ.cjs +37 -0
- package/dist/config-ClFI6orZ.cjs.map +1 -0
- package/dist/{config-DsvSjPCG.cjs → config-CllFlx5w.cjs} +1 -1
- package/dist/{config-DsvSjPCG.cjs.map → config-CllFlx5w.cjs.map} +1 -1
- package/dist/{config-DFt-16ni.cjs → config-DbQP60oo.cjs} +1 -1
- package/dist/{config-DFt-16ni.cjs.map → config-DbQP60oo.cjs.map} +1 -1
- package/dist/{config-DDf8XyZs.js → config-DlhHLHjD.js} +1 -1
- package/dist/{config-DDf8XyZs.js.map → config-DlhHLHjD.js.map} +1 -1
- package/dist/constraint-helpers-0jgp7p3K.js +64 -0
- package/dist/constraint-helpers-0jgp7p3K.js.map +1 -0
- package/dist/constraint-helpers-BJPdGLZ3.cjs +76 -0
- package/dist/constraint-helpers-BJPdGLZ3.cjs.map +1 -0
- package/dist/{create-dsn-BhshlP7l.js → create-dsn-Bx2s8Bik.js} +9 -4
- package/dist/create-dsn-Bx2s8Bik.js.map +1 -0
- package/dist/{create-dsn-DaHidLhE.cjs → create-dsn-ggGt0lZf.cjs} +9 -4
- package/dist/create-dsn-ggGt0lZf.cjs.map +1 -0
- package/dist/{create-project-C3laecaU.js → create-project-C0pm6zUK.js} +11 -6
- package/dist/create-project-C0pm6zUK.js.map +1 -0
- package/dist/{create-project-xszOpGTC.cjs → create-project-CZBklXm8.cjs} +11 -6
- package/dist/create-project-CZBklXm8.cjs.map +1 -0
- package/dist/{create-team-CTN-DxOE.js → create-team-BQIns3VD.js} +9 -4
- package/dist/create-team-BQIns3VD.js.map +1 -0
- package/dist/{create-team-DmnJHSIx.cjs → create-team-DmqKw2c1.cjs} +9 -4
- package/dist/create-team-DmqKw2c1.cjs.map +1 -0
- package/dist/{dataset-fields-DacS0qF0.cjs → dataset-fields-C0m-vwNH.cjs} +2 -2
- package/dist/{dataset-fields-DacS0qF0.cjs.map → dataset-fields-C0m-vwNH.cjs.map} +1 -1
- package/dist/{dataset-fields-By43SxJp.js → dataset-fields-C1o_cZrM.js} +2 -2
- package/dist/{dataset-fields-By43SxJp.js.map → dataset-fields-C1o_cZrM.js.map} +1 -1
- package/dist/{enhance-error-C7AVt85N.js → enhance-error-D3QfZOhm.js} +2 -2
- package/dist/{enhance-error-C7AVt85N.js.map → enhance-error-D3QfZOhm.js.map} +1 -1
- package/dist/{enhance-error-CAREhbDf.cjs → enhance-error-DzXrKg85.cjs} +2 -2
- package/dist/{enhance-error-CAREhbDf.cjs.map → enhance-error-DzXrKg85.cjs.map} +1 -1
- package/dist/{error-handling-efwohgKv.js → error-handling-D_4c-JgK.js} +5 -5
- package/dist/error-handling-D_4c-JgK.js.map +1 -0
- package/dist/{error-handling-qfa1BeDb.cjs → error-handling-ZVmZRXZb.cjs} +5 -5
- package/dist/error-handling-ZVmZRXZb.cjs.map +1 -0
- package/dist/{errors-CNTY5dED.cjs → errors-Bmqdg5Q6.cjs} +1 -1
- package/dist/{errors-CNTY5dED.cjs.map → errors-Bmqdg5Q6.cjs.map} +1 -1
- package/dist/{errors-Dr7Q6mD5.js → errors-CQZ-QlOB.js} +1 -1
- package/dist/{errors-Dr7Q6mD5.js.map → errors-CQZ-QlOB.js.map} +1 -1
- package/dist/{errors-bxPCd8AO.d.ts → errors-CyAWBU2S.d.ts} +1 -1
- package/dist/{errors-bxPCd8AO.d.ts.map → errors-CyAWBU2S.d.ts.map} +1 -1
- package/dist/{errors-Cn4l-BlC.d.ts → errors-D9WEvbBw.d.ts} +1 -1
- package/dist/{errors-Cn4l-BlC.d.ts.map → errors-D9WEvbBw.d.ts.map} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{fetch-utils-DRWItYjp.js → fetch-utils-BetJhSli.js} +1 -1
- package/dist/{fetch-utils-DRWItYjp.js.map → fetch-utils-BetJhSli.js.map} +1 -1
- package/dist/{fetch-utils-bHWZV7j9.cjs → fetch-utils-Cp3P-Ai3.cjs} +1 -1
- package/dist/{fetch-utils-bHWZV7j9.cjs.map → fetch-utils-Cp3P-Ai3.cjs.map} +1 -1
- package/dist/{find-dsns-U4CCcoTv.js → find-dsns-BPN8wnUr.js} +7 -3
- package/dist/find-dsns-BPN8wnUr.js.map +1 -0
- package/dist/{find-dsns-D0l3siyF.cjs → find-dsns-Ct6uFZMB.cjs} +7 -3
- package/dist/find-dsns-Ct6uFZMB.cjs.map +1 -0
- package/dist/{find-organizations-Ca-zpAlI.cjs → find-organizations-BGI_WW2q.cjs} +18 -7
- package/dist/find-organizations-BGI_WW2q.cjs.map +1 -0
- package/dist/{find-organizations-HUZFa8ZA.js → find-organizations-DxH9SS3w.js} +18 -7
- package/dist/find-organizations-DxH9SS3w.js.map +1 -0
- package/dist/{find-projects-CWNLthwg.cjs → find-projects-B80qSPpP.cjs} +19 -8
- package/dist/find-projects-B80qSPpP.cjs.map +1 -0
- package/dist/{find-projects-Dy1_O9L0.js → find-projects-DOMBBYAP.js} +19 -8
- package/dist/find-projects-DOMBBYAP.js.map +1 -0
- package/dist/{find-releases-DN_BfQM2.js → find-releases-CfZRMBvh.js} +8 -4
- package/dist/find-releases-CfZRMBvh.js.map +1 -0
- package/dist/{find-releases-BtazPcQH.cjs → find-releases-Cy-Q-Qje.cjs} +8 -4
- package/dist/find-releases-Cy-Q-Qje.cjs.map +1 -0
- package/dist/{find-teams-_zAHPVGx.cjs → find-teams-BuH2ddaL.cjs} +19 -8
- 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-DJSiRyVi.js → formatters-B9XiCNZ_.js} +2 -2
- package/dist/{formatters-DJSiRyVi.js.map → formatters-B9XiCNZ_.js.map} +1 -1
- package/dist/{formatters-Bzx0sr5R.cjs → formatters-CkbVfXEE.cjs} +2 -2
- package/dist/{formatters-Bzx0sr5R.cjs.map → formatters-CkbVfXEE.cjs.map} +1 -1
- package/dist/{formatters-CCZdBmLd.cjs → formatters-DMlTJcHW.cjs} +2 -2
- package/dist/{formatters-CCZdBmLd.cjs.map → formatters-DMlTJcHW.cjs.map} +1 -1
- package/dist/{formatters-DJM9_F3A.js → formatters-MEWHZ83Y.js} +2 -2
- package/dist/{formatters-DJM9_F3A.js.map → formatters-MEWHZ83Y.js.map} +1 -1
- package/dist/{formatting-CfpTtZLo.js → formatting-CAQbf0su.js} +1 -1
- package/dist/{formatting-CfpTtZLo.js.map → formatting-CAQbf0su.js.map} +1 -1
- package/dist/{formatting-CqmsvuAY.cjs → formatting-Cu1Skk_Y.cjs} +444 -10
- package/dist/formatting-Cu1Skk_Y.cjs.map +1 -0
- package/dist/{formatting-XMmhMjRz.d.cts → formatting-D5u7lYGU.d.ts} +11 -6
- package/dist/formatting-D5u7lYGU.d.ts.map +1 -0
- package/dist/{formatting-BjCK9XwW.js → formatting-DytLf-hH.js} +444 -10
- package/dist/formatting-DytLf-hH.js.map +1 -0
- package/dist/{formatting-CJKoPqjy.cjs → formatting-EM76FrY3.cjs} +1 -1
- package/dist/{formatting-CJKoPqjy.cjs.map → formatting-EM76FrY3.cjs.map} +1 -1
- package/dist/{formatting-l3qx5d7L.d.ts → formatting-iJThzXT4.d.cts} +11 -6
- package/dist/formatting-iJThzXT4.d.cts.map +1 -0
- package/dist/{get-doc-JDwOkY2j.js → get-doc-D9Xq7et9.js} +8 -4
- package/dist/get-doc-D9Xq7et9.js.map +1 -0
- package/dist/{get-doc-Euz6NiM3.cjs → get-doc-MxWNTA8R.cjs} +8 -4
- package/dist/get-doc-MxWNTA8R.cjs.map +1 -0
- package/dist/{get-event-attachment-pIJmUfFE.js → get-event-attachment-B_BzSfcE.js} +7 -3
- package/dist/get-event-attachment-B_BzSfcE.js.map +1 -0
- package/dist/{get-event-attachment-DvpQ-dEP.cjs → get-event-attachment-CrtS0QRV.cjs} +7 -3
- package/dist/get-event-attachment-CrtS0QRV.cjs.map +1 -0
- package/dist/{get-issue-details-B1PDMmMY.js → get-issue-details-CucQ2nf7.js} +60 -14
- package/dist/get-issue-details-CucQ2nf7.js.map +1 -0
- package/dist/{get-issue-details-BH75EnNk.cjs → get-issue-details-lQmdKAfJ.cjs} +60 -14
- package/dist/get-issue-details-lQmdKAfJ.cjs.map +1 -0
- package/dist/{get-trace-details-CaK0JMf4.js → get-trace-details-BL5_jvgs.js} +7 -3
- package/dist/get-trace-details-BL5_jvgs.js.map +1 -0
- package/dist/{get-trace-details-Bksygq21.cjs → get-trace-details-iDp34mms.cjs} +7 -3
- package/dist/get-trace-details-iDp34mms.cjs.map +1 -0
- package/dist/{handler-Ct9Z_sTZ.d.ts → handler-ABnXxpHJ.d.ts} +2 -2
- package/dist/{handler-Ct9Z_sTZ.d.ts.map → handler-ABnXxpHJ.d.ts.map} +1 -1
- package/dist/{handler-BbqDy4DA.js → handler-B3-dKrMX.js} +11 -7
- package/dist/handler-B3-dKrMX.js.map +1 -0
- package/dist/{handler-DSYbwPgv.d.cts → handler-BT1XWqc_.d.cts} +2 -2
- package/dist/{handler-DSYbwPgv.d.cts.map → handler-BT1XWqc_.d.cts.map} +1 -1
- package/dist/{handler-RV4XhU8F.d.cts → handler-CGUL1Gvj.d.cts} +2 -2
- package/dist/{handler-RV4XhU8F.d.cts.map → handler-CGUL1Gvj.d.cts.map} +1 -1
- package/dist/{handler-CcbbXK_f.d.ts → handler-CT6BNjub.d.ts} +2 -2
- package/dist/{handler-CcbbXK_f.d.ts.map → handler-CT6BNjub.d.ts.map} +1 -1
- package/dist/handler-D8I4qhcy.d.ts +11 -0
- package/dist/handler-D8I4qhcy.d.ts.map +1 -0
- package/dist/handler-DxsxiLrw.d.cts +11 -0
- package/dist/handler-DxsxiLrw.d.cts.map +1 -0
- package/dist/{handler-C0zOOLbO.cjs → handler-Fsqncg_W.cjs} +10 -6
- package/dist/handler-Fsqncg_W.cjs.map +1 -0
- package/dist/{handler-DyBdUYam.js → handler-JBRPTNfu.js} +10 -6
- package/dist/handler-JBRPTNfu.js.map +1 -0
- package/dist/{handler-cy5oD28N.cjs → handler-TWOoomKr.cjs} +11 -7
- package/dist/handler-TWOoomKr.cjs.map +1 -0
- package/dist/index.cjs +82 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +81 -75
- package/dist/index.js.map +1 -1
- package/dist/internal/agents/callEmbeddedAgent.cjs +2 -1
- package/dist/internal/agents/callEmbeddedAgent.d.cts +2 -33
- package/dist/internal/agents/callEmbeddedAgent.d.ts +2 -33
- package/dist/internal/agents/callEmbeddedAgent.js +2 -1
- package/dist/internal/agents/openai-provider.cjs +4 -0
- package/dist/internal/agents/openai-provider.d.cts +30 -0
- package/dist/internal/agents/openai-provider.d.cts.map +1 -0
- package/dist/internal/agents/openai-provider.d.ts +30 -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 +9 -9
- package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
- package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
- package/dist/internal/agents/tools/dataset-fields.js +9 -9
- package/dist/internal/agents/tools/otel-semantics.cjs +9 -9
- package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
- package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
- package/dist/internal/agents/tools/otel-semantics.js +9 -9
- package/dist/internal/agents/tools/utils.cjs +8 -8
- package/dist/internal/agents/tools/utils.d.cts +1 -1
- package/dist/internal/agents/tools/utils.d.ts +1 -1
- package/dist/internal/agents/tools/utils.js +8 -8
- package/dist/internal/agents/tools/whoami.cjs +9 -9
- package/dist/internal/agents/tools/whoami.d.cts +7 -7
- package/dist/internal/agents/tools/whoami.d.ts +9 -9
- package/dist/internal/agents/tools/whoami.js +9 -9
- 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/error-handling.cjs +8 -8
- package/dist/internal/error-handling.d.cts +3 -3
- package/dist/internal/error-handling.d.ts +6 -6
- package/dist/internal/error-handling.js +8 -8
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +6 -6
- 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 -2133
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +35 -2133
- 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 +9 -8
- package/dist/internal/tool-helpers/api.d.cts +5 -6
- package/dist/internal/tool-helpers/api.d.cts.map +1 -1
- package/dist/internal/tool-helpers/api.d.ts +7 -8
- package/dist/internal/tool-helpers/api.d.ts.map +1 -1
- package/dist/internal/tool-helpers/api.js +9 -8
- package/dist/internal/tool-helpers/define.d.cts +3 -4
- package/dist/internal/tool-helpers/define.d.cts.map +1 -1
- package/dist/internal/tool-helpers/define.d.ts +3 -4
- package/dist/internal/tool-helpers/define.d.ts.map +1 -1
- package/dist/internal/tool-helpers/enhance-error.cjs +8 -7
- package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
- package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
- package/dist/internal/tool-helpers/enhance-error.js +8 -7
- package/dist/internal/tool-helpers/formatting.cjs +1 -1
- package/dist/internal/tool-helpers/formatting.d.cts +3 -3
- package/dist/internal/tool-helpers/formatting.d.ts +5 -5
- package/dist/internal/tool-helpers/formatting.js +1 -1
- package/dist/internal/tool-helpers/issue.cjs +4 -4
- package/dist/internal/tool-helpers/issue.d.cts +5 -5
- package/dist/internal/tool-helpers/issue.d.ts +7 -7
- package/dist/internal/tool-helpers/issue.js +4 -4
- package/dist/internal/tool-helpers/seer.cjs +1 -1
- package/dist/internal/tool-helpers/seer.d.cts +3 -3
- package/dist/internal/tool-helpers/seer.d.ts +5 -5
- package/dist/internal/tool-helpers/seer.js +1 -1
- package/dist/internal/tool-helpers/validate-region-url.cjs +1 -1
- package/dist/internal/tool-helpers/validate-region-url.js +1 -1
- package/dist/{issue-helpers-Bjp6xu5H.js → issue-helpers-8Bubch8E.js} +1 -1
- package/dist/{issue-helpers-Bjp6xu5H.js.map → issue-helpers-8Bubch8E.js.map} +1 -1
- package/dist/{issue-helpers-kwhe1ipy.d.ts → issue-helpers-BUtEHFKi.d.ts} +1 -1
- package/dist/{issue-helpers-kwhe1ipy.d.ts.map → issue-helpers-BUtEHFKi.d.ts.map} +1 -1
- package/dist/{issue-helpers-Cf6mvHG1.d.cts → issue-helpers-Cyxq87SP.d.cts} +1 -1
- package/dist/{issue-helpers-Cf6mvHG1.d.cts.map → issue-helpers-Cyxq87SP.d.cts.map} +1 -1
- package/dist/{issue-helpers-1qxzc7ww.cjs → issue-helpers-DbPTv_qC.cjs} +1 -1
- package/dist/{issue-helpers-1qxzc7ww.cjs.map → issue-helpers-DbPTv_qC.cjs.map} +1 -1
- package/dist/logging-99Uppado.d.cts +31 -0
- package/dist/logging-99Uppado.d.cts.map +1 -0
- package/dist/logging-BWajuCoz.d.ts +31 -0
- package/dist/logging-BWajuCoz.d.ts.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/openai-provider-CqpHDwSr.js +32 -0
- package/dist/openai-provider-CqpHDwSr.js.map +1 -0
- package/dist/openai-provider-DhSY7kTj.cjs +44 -0
- package/dist/openai-provider-DhSY7kTj.cjs.map +1 -0
- package/dist/{otel-semantics-BFRGhf6y.js → otel-semantics-CArUzarp.js} +2 -2
- package/dist/{otel-semantics-BFRGhf6y.js.map → otel-semantics-CArUzarp.js.map} +1 -1
- package/dist/{otel-semantics-CkUpXWEJ.cjs → otel-semantics-onvZv7i9.cjs} +2 -2
- package/dist/{otel-semantics-CkUpXWEJ.cjs.map → otel-semantics-onvZv7i9.cjs.map} +1 -1
- package/dist/{parse-CeFc4xnt.cjs → parse-BOPxttSm.cjs} +7 -1
- package/dist/parse-BOPxttSm.cjs.map +1 -0
- package/dist/{parse-C3tRlsy-.js → parse-Da0oa8W8.js} +7 -1
- package/dist/parse-Da0oa8W8.js.map +1 -0
- package/dist/{permissions-Cm5e34n2.d.cts → permissions-B1meXGie.d.cts} +2 -2
- package/dist/permissions-B1meXGie.d.cts.map +1 -0
- package/dist/{permissions-C-q0Y5bL.d.ts → permissions-BBgPgD70.d.ts} +2 -2
- package/dist/permissions-BBgPgD70.d.ts.map +1 -0
- package/dist/{permissions-DuDYuCjy.cjs → permissions-CpuEzSxz.cjs} +5 -3
- package/dist/permissions-CpuEzSxz.cjs.map +1 -0
- package/dist/{permissions-DRdH39Fe.js → permissions-xBjHy6Qx.js} +5 -3
- package/dist/permissions-xBjHy6Qx.js.map +1 -0
- package/dist/permissions.cjs +1 -1
- package/dist/permissions.d.cts +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.js +1 -1
- package/dist/{resolve-B_Fq13Dk.js → resolve-C95FW12c.js} +5 -3
- package/dist/resolve-C95FW12c.js.map +1 -0
- package/dist/{resolve-CAtC1wN-.cjs → resolve-D6Cfnjdj.cjs} +5 -3
- package/dist/resolve-D6Cfnjdj.cjs.map +1 -0
- package/dist/{schema-ChvpDxUk.d.cts → schema-BogGdbdV.d.ts} +2514 -213
- package/dist/schema-BogGdbdV.d.ts.map +1 -0
- package/dist/{schema-D1CzTJXB.js → schema-CuB-30t5.js} +38 -6
- package/dist/schema-CuB-30t5.js.map +1 -0
- package/dist/{schema-BUBkkdUa.cjs → schema-Cv_VNAHz.cjs} +8 -1
- package/dist/schema-Cv_VNAHz.cjs.map +1 -0
- package/dist/{schema-CbXlt1rW.cjs → schema-DoWJbcHt.cjs} +43 -5
- package/dist/schema-DoWJbcHt.cjs.map +1 -0
- package/dist/{schema-DOY22v1Q.d.ts → schema-Y6BzAUmc.d.cts} +2575 -274
- package/dist/schema-Y6BzAUmc.d.cts.map +1 -0
- package/dist/{schema-DPJO5nkQ.js → schema-rwexXWFL.js} +3 -2
- package/dist/schema-rwexXWFL.js.map +1 -0
- package/dist/schema.cjs +2 -1
- package/dist/schema.d.cts +2 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +2 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{search-docs-CpAlMLs8.js → search-docs-B9qNTw49.js} +8 -4
- package/dist/search-docs-B9qNTw49.js.map +1 -0
- package/dist/{search-docs-CH6-1H9_.cjs → search-docs-CTT1Bt1U.cjs} +8 -4
- package/dist/search-docs-CTT1Bt1U.cjs.map +1 -0
- package/dist/{seer-retC9dFI.cjs → seer-B63P5CPi.cjs} +1 -1
- package/dist/{seer-retC9dFI.cjs.map → seer-B63P5CPi.cjs.map} +1 -1
- package/dist/{seer-DLvrFQPo.js → seer-CderEQ-X.js} +1 -1
- package/dist/{seer-DLvrFQPo.js.map → seer-CderEQ-X.js.map} +1 -1
- package/dist/sentry-Bgt0wrtI.d.ts +9 -0
- package/dist/sentry-Bgt0wrtI.d.ts.map +1 -0
- package/dist/sentry-BhTMff8f.js +104 -0
- package/dist/sentry-BhTMff8f.js.map +1 -0
- package/dist/sentry-DAPJGZoR.d.cts +9 -0
- package/dist/sentry-DAPJGZoR.d.cts.map +1 -0
- package/dist/sentry-Da9wc8eP.cjs +110 -0
- package/dist/sentry-Da9wc8eP.cjs.map +1 -0
- package/dist/server-CDG3HfVV.js +264 -0
- package/dist/server-CDG3HfVV.js.map +1 -0
- package/dist/server-J1RALwYS.cjs +282 -0
- package/dist/server-J1RALwYS.cjs.map +1 -0
- package/dist/server.cjs +59 -61
- package/dist/server.d.cts +33 -18
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +33 -18
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +59 -61
- package/dist/{stdio-DB9muOi8.js → stdio-BfZ7eu3Q.js} +19 -19
- package/dist/stdio-BfZ7eu3Q.js.map +1 -0
- package/dist/{stdio-CJnMOUAU.cjs → stdio-CV8Yynj8.cjs} +19 -19
- package/dist/stdio-CV8Yynj8.cjs.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 +366 -146
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.d.cts +2 -3
- package/dist/test-setup.d.cts.map +1 -1
- package/dist/test-setup.d.ts +2 -3
- package/dist/test-setup.d.ts.map +1 -1
- package/dist/test-setup.js +366 -146
- package/dist/test-setup.js.map +1 -1
- package/dist/test-utils/context.d.cts +2 -3
- package/dist/test-utils/context.d.cts.map +1 -1
- package/dist/test-utils/context.d.ts +2 -3
- package/dist/test-utils/context.d.ts.map +1 -1
- package/dist/toolDefinitions.cjs +657 -126
- 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 +657 -126
- package/dist/toolDefinitions.js.map +1 -1
- package/dist/tools/agent-tools.cjs +65 -0
- package/dist/tools/agent-tools.d.cts +25 -0
- package/dist/tools/agent-tools.d.cts.map +1 -0
- package/dist/tools/agent-tools.d.ts +25 -0
- package/dist/tools/agent-tools.d.ts.map +1 -0
- package/dist/tools/agent-tools.js +65 -0
- package/dist/tools/analyze-issue-with-seer.cjs +16 -15
- package/dist/tools/analyze-issue-with-seer.d.cts +3 -4
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -4
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.js +16 -15
- package/dist/tools/create-dsn.cjs +11 -10
- package/dist/tools/create-dsn.d.cts +3 -4
- package/dist/tools/create-dsn.d.cts.map +1 -1
- package/dist/tools/create-dsn.d.ts +3 -4
- package/dist/tools/create-dsn.d.ts.map +1 -1
- package/dist/tools/create-dsn.js +11 -10
- package/dist/tools/create-project.cjs +11 -11
- package/dist/tools/create-project.d.cts +3 -4
- package/dist/tools/create-project.d.cts.map +1 -1
- package/dist/tools/create-project.d.ts +3 -4
- package/dist/tools/create-project.d.ts.map +1 -1
- package/dist/tools/create-project.js +11 -11
- package/dist/tools/create-team.cjs +11 -10
- package/dist/tools/create-team.d.cts +3 -4
- package/dist/tools/create-team.d.cts.map +1 -1
- package/dist/tools/create-team.d.ts +3 -4
- package/dist/tools/create-team.d.ts.map +1 -1
- package/dist/tools/create-team.js +11 -10
- package/dist/tools/find-dsns.cjs +11 -10
- package/dist/tools/find-dsns.d.cts +7 -8
- package/dist/tools/find-dsns.d.ts +7 -8
- package/dist/tools/find-dsns.js +11 -10
- package/dist/tools/find-organizations.cjs +12 -9
- package/dist/tools/find-organizations.d.cts +7 -5
- package/dist/tools/find-organizations.d.ts +7 -5
- package/dist/tools/find-organizations.js +12 -9
- package/dist/tools/find-projects.cjs +11 -10
- package/dist/tools/find-projects.d.cts +7 -7
- package/dist/tools/find-projects.d.ts +7 -7
- package/dist/tools/find-projects.js +11 -10
- package/dist/tools/find-releases.cjs +11 -10
- package/dist/tools/find-releases.d.cts +3 -4
- package/dist/tools/find-releases.d.cts.map +1 -1
- package/dist/tools/find-releases.d.ts +3 -4
- package/dist/tools/find-releases.d.ts.map +1 -1
- package/dist/tools/find-releases.js +11 -10
- package/dist/tools/find-teams.cjs +11 -10
- package/dist/tools/find-teams.d.cts +7 -7
- package/dist/tools/find-teams.d.ts +7 -7
- package/dist/tools/find-teams.js +11 -10
- package/dist/tools/get-doc.cjs +9 -8
- package/dist/tools/get-doc.d.cts +3 -4
- package/dist/tools/get-doc.d.cts.map +1 -1
- package/dist/tools/get-doc.d.ts +3 -4
- package/dist/tools/get-doc.d.ts.map +1 -1
- package/dist/tools/get-doc.js +9 -8
- package/dist/tools/get-event-attachment.cjs +11 -10
- package/dist/tools/get-event-attachment.d.cts +9 -10
- package/dist/tools/get-event-attachment.d.ts +9 -10
- package/dist/tools/get-event-attachment.js +11 -10
- package/dist/tools/get-issue-details.cjs +16 -15
- package/dist/tools/get-issue-details.d.cts +3 -4
- package/dist/tools/get-issue-details.d.cts.map +1 -1
- package/dist/tools/get-issue-details.d.ts +3 -4
- package/dist/tools/get-issue-details.d.ts.map +1 -1
- package/dist/tools/get-issue-details.js +16 -15
- package/dist/tools/get-trace-details.cjs +11 -10
- package/dist/tools/get-trace-details.d.cts +7 -8
- package/dist/tools/get-trace-details.d.ts +7 -8
- package/dist/tools/get-trace-details.js +11 -10
- package/dist/tools/index.cjs +59 -52
- package/dist/tools/index.d.cts +83 -76
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +83 -76
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +58 -51
- package/dist/tools/search-docs.cjs +10 -9
- package/dist/tools/search-docs.d.cts +3 -4
- package/dist/tools/search-docs.d.cts.map +1 -1
- package/dist/tools/search-docs.d.ts +3 -4
- package/dist/tools/search-docs.d.ts.map +1 -1
- package/dist/tools/search-docs.js +10 -9
- package/dist/tools/search-events/agent.cjs +15 -14
- package/dist/tools/search-events/agent.d.cts +4 -4
- package/dist/tools/search-events/agent.d.ts +6 -6
- package/dist/tools/search-events/agent.js +15 -14
- package/dist/tools/search-events/config.cjs +1 -1
- package/dist/tools/search-events/config.js +1 -1
- package/dist/tools/search-events/formatters.cjs +10 -10
- package/dist/tools/search-events/formatters.d.cts +5 -5
- package/dist/tools/search-events/formatters.d.ts +7 -7
- package/dist/tools/search-events/formatters.js +10 -10
- package/dist/tools/search-events/handler.cjs +20 -19
- package/dist/tools/search-events/handler.d.cts +4 -5
- package/dist/tools/search-events/handler.d.ts +4 -5
- package/dist/tools/search-events/handler.js +20 -19
- package/dist/tools/search-events/index.cjs +21 -20
- package/dist/tools/search-events/index.d.cts +8 -9
- package/dist/tools/search-events/index.d.ts +10 -11
- package/dist/tools/search-events/index.js +21 -20
- package/dist/tools/search-events/utils.cjs +9 -9
- package/dist/tools/search-events/utils.d.cts +5 -5
- package/dist/tools/search-events/utils.d.ts +7 -7
- package/dist/tools/search-events/utils.js +9 -9
- package/dist/tools/search-issues/agent.cjs +14 -13
- package/dist/tools/search-issues/agent.d.cts +4 -4
- package/dist/tools/search-issues/agent.d.ts +6 -6
- package/dist/tools/search-issues/agent.js +14 -13
- package/dist/tools/search-issues/config.cjs +1 -1
- package/dist/tools/search-issues/config.js +1 -1
- package/dist/tools/search-issues/formatters.cjs +2 -2
- package/dist/tools/search-issues/formatters.d.cts +3 -3
- package/dist/tools/search-issues/formatters.d.ts +5 -5
- package/dist/tools/search-issues/formatters.js +2 -2
- package/dist/tools/search-issues/handler.cjs +19 -18
- package/dist/tools/search-issues/handler.d.cts +4 -5
- package/dist/tools/search-issues/handler.d.ts +4 -5
- package/dist/tools/search-issues/handler.js +19 -18
- package/dist/tools/search-issues/index.cjs +20 -19
- package/dist/tools/search-issues/index.d.cts +8 -9
- package/dist/tools/search-issues/index.d.ts +10 -11
- package/dist/tools/search-issues/index.js +20 -19
- package/dist/tools/types.d.cts +3 -4
- package/dist/tools/types.d.ts +3 -4
- package/dist/tools/update-issue.cjs +16 -15
- package/dist/tools/update-issue.d.cts +10 -11
- package/dist/tools/update-issue.d.ts +10 -11
- package/dist/tools/update-issue.js +16 -15
- package/dist/tools/update-project.cjs +11 -11
- package/dist/tools/update-project.d.cts +3 -4
- package/dist/tools/update-project.d.cts.map +1 -1
- package/dist/tools/update-project.d.ts +3 -4
- package/dist/tools/update-project.d.ts.map +1 -1
- package/dist/tools/update-project.js +11 -11
- package/dist/tools/use-sentry/agent.cjs +7 -0
- package/dist/tools/use-sentry/agent.d.cts +3 -0
- package/dist/tools/use-sentry/agent.d.ts +3 -0
- package/dist/tools/use-sentry/agent.js +7 -0
- package/dist/tools/use-sentry/config.cjs +4 -0
- package/dist/tools/use-sentry/config.d.cts +21 -0
- package/dist/tools/use-sentry/config.d.cts.map +1 -0
- package/dist/tools/use-sentry/config.d.ts +21 -0
- package/dist/tools/use-sentry/config.d.ts.map +1 -0
- package/dist/tools/use-sentry/config.js +3 -0
- package/dist/tools/use-sentry/handler.cjs +64 -0
- package/dist/tools/use-sentry/handler.d.cts +5 -0
- package/dist/tools/use-sentry/handler.d.ts +5 -0
- package/dist/tools/use-sentry/handler.js +64 -0
- package/dist/tools/use-sentry/index.cjs +66 -0
- package/dist/tools/use-sentry/index.d.cts +7 -0
- package/dist/tools/use-sentry/index.d.ts +7 -0
- package/dist/tools/use-sentry/index.js +64 -0
- package/dist/tools/use-sentry/tool-wrapper.cjs +62 -0
- package/dist/tools/use-sentry/tool-wrapper.cjs.map +1 -0
- package/dist/tools/use-sentry/tool-wrapper.d.cts +118 -0
- package/dist/tools/use-sentry/tool-wrapper.d.cts.map +1 -0
- package/dist/tools/use-sentry/tool-wrapper.d.ts +118 -0
- package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -0
- package/dist/tools/use-sentry/tool-wrapper.js +61 -0
- package/dist/tools/use-sentry/tool-wrapper.js.map +1 -0
- package/dist/tools/whoami.cjs +10 -9
- package/dist/tools/whoami.d.cts +3 -4
- package/dist/tools/whoami.d.ts +3 -4
- package/dist/tools/whoami.js +10 -9
- package/dist/transports/stdio.cjs +2 -65
- package/dist/transports/stdio.d.cts +18 -14
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +18 -14
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +2 -65
- package/dist/{types-DLRWzl3K.d.cts → types-B3T3_E4s.d.ts} +7 -2
- package/dist/types-B3T3_E4s.d.ts.map +1 -0
- package/dist/{types-s3ChfOM9.d.ts → types-BeQSPXek.d.cts} +10 -5
- package/dist/types-BeQSPXek.d.cts.map +1 -0
- package/dist/{types-o23QqDgk.d.cts → types-Bu5blaB3.d.ts} +10 -5
- package/dist/types-Bu5blaB3.d.ts.map +1 -0
- package/dist/{types-ryM3umix.d.ts → types-CLI02LNZ.d.cts} +9 -4
- package/dist/types-CLI02LNZ.d.cts.map +1 -0
- package/dist/types-DNr8xzOR.d.cts +31 -0
- package/dist/types-DNr8xzOR.d.cts.map +1 -0
- package/dist/types-DjbiyvLT.d.ts +31 -0
- package/dist/types-DjbiyvLT.d.ts.map +1 -0
- package/dist/{types-B4nOfch5.d.cts → types-DoT0an28.d.ts} +9 -4
- package/dist/types-DoT0an28.d.ts.map +1 -0
- package/dist/{types-DTp1ajTT.d.ts → types-jjNLngoj.d.cts} +7 -2
- package/dist/types-jjNLngoj.d.cts.map +1 -0
- package/dist/types.cjs +16 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -0
- package/dist/{update-issue-nq8D_YUe.js → update-issue-CoAkoO66.js} +11 -5
- package/dist/update-issue-CoAkoO66.js.map +1 -0
- package/dist/{update-issue-CD-kp2dt.cjs → update-issue-eELBq_Uy.cjs} +11 -5
- package/dist/update-issue-eELBq_Uy.cjs.map +1 -0
- package/dist/{update-project-DvJfmSmX.js → update-project-CuZlyBPN.js} +13 -7
- package/dist/update-project-CuZlyBPN.js.map +1 -0
- package/dist/{update-project-B_OLM4Ky.cjs → update-project-DMRBdOZ5.cjs} +13 -7
- package/dist/update-project-DMRBdOZ5.cjs.map +1 -0
- package/dist/{url-utils-0OheI87i.cjs → url-utils-Bn5EoScr.cjs} +26 -1
- package/dist/url-utils-Bn5EoScr.cjs.map +1 -0
- package/dist/{url-utils-DF8NBCyH.js → url-utils-d9bPTnOl.js} +21 -2
- package/dist/url-utils-d9bPTnOl.js.map +1 -0
- package/dist/usage-BV4cegeX.cjs +40 -0
- package/dist/usage-BV4cegeX.cjs.map +1 -0
- package/dist/usage-DLck8shg.js +34 -0
- package/dist/usage-DLck8shg.js.map +1 -0
- package/dist/utils/url-utils.cjs +2 -1
- package/dist/utils/url-utils.d.cts +9 -1
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +9 -1
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/{utils-Cw6O1ztc.d.ts → utils-BV58GdRy.d.ts} +4 -4
- package/dist/utils-BV58GdRy.d.ts.map +1 -0
- package/dist/{utils-DQ69VZrK.cjs → utils-C5DuiZoe.cjs} +2 -2
- package/dist/{utils-DQ69VZrK.cjs.map → utils-C5DuiZoe.cjs.map} +1 -1
- package/dist/{utils-CP4vAzfv.js → utils-CwvZS30K.js} +2 -2
- package/dist/{utils-CP4vAzfv.js.map → utils-CwvZS30K.js.map} +1 -1
- package/dist/{utils-BOPpU4-H.cjs → utils-DUJcA3eH.cjs} +16 -7
- package/dist/utils-DUJcA3eH.cjs.map +1 -0
- package/dist/{utils-Ddvt3CBZ.d.cts → utils-DlTCMJUW.d.cts} +6 -6
- package/dist/{utils-Ddvt3CBZ.d.cts.map → utils-DlTCMJUW.d.cts.map} +1 -1
- package/dist/{utils-DA-V9B-n.d.ts → utils-gp7BwMLy.d.ts} +6 -6
- package/dist/{utils-DA-V9B-n.d.ts.map → utils-gp7BwMLy.d.ts.map} +1 -1
- package/dist/{utils-K1XhlGf4.js → utils-iC0Uutcf.js} +16 -7
- package/dist/utils-iC0Uutcf.js.map +1 -0
- package/dist/{utils-OyJ8CB2S.d.cts → utils-yxWhi9hG.d.cts} +4 -4
- package/dist/utils-yxWhi9hG.d.cts.map +1 -0
- package/dist/{validate-region-url-DTUtqFky.js → validate-region-url-CaR6XWB_.js} +1 -1
- package/dist/{validate-region-url-DTUtqFky.js.map → validate-region-url-CaR6XWB_.js.map} +1 -1
- package/dist/{validate-region-url-BhxxcBgE.cjs → validate-region-url-dzz6t54w.cjs} +1 -1
- package/dist/{validate-region-url-BhxxcBgE.cjs.map → validate-region-url-dzz6t54w.cjs.map} +1 -1
- package/dist/version-BaA5pxTW.js +6 -0
- package/dist/{version-CaDh5TML.js.map → version-BaA5pxTW.js.map} +1 -1
- package/dist/{version-DB2IM9qM.cjs → version-CdN5Kpjv.cjs} +2 -2
- package/dist/{version-DB2IM9qM.cjs.map → version-CdN5Kpjv.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-qCGsRPRm.js → whoami-Bh_uOPqO.js} +6 -2
- package/dist/whoami-Bh_uOPqO.js.map +1 -0
- package/dist/{whoami-bRIfclYF.js → whoami-D8-XCgVJ.js} +2 -2
- package/dist/{whoami-bRIfclYF.js.map → whoami-D8-XCgVJ.js.map} +1 -1
- package/dist/{whoami-DCgOyVnW.cjs → whoami-DBSqcCGl.cjs} +2 -2
- package/dist/{whoami-DCgOyVnW.cjs.map → whoami-DBSqcCGl.cjs.map} +1 -1
- package/dist/{whoami-BdiVu0Wr.cjs → whoami-DBlwuDZf.cjs} +6 -2
- package/dist/whoami-DBlwuDZf.cjs.map +1 -0
- package/package.json +32 -28
- package/dist/about-CDAN_HuU.js +0 -136
- package/dist/about-CDAN_HuU.js.map +0 -1
- package/dist/about-CteXVo1Q.d.ts +0 -10
- package/dist/about-CteXVo1Q.d.ts.map +0 -1
- package/dist/about-CwQvsGSc.d.cts +0 -10
- package/dist/about-CwQvsGSc.d.cts.map +0 -1
- package/dist/about-aDGhlM6f.cjs +0 -142
- package/dist/about-aDGhlM6f.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-DqwczSTV.js.map +0 -1
- package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +0 -1
- package/dist/callEmbeddedAgent-C0pC9du1.js.map +0 -1
- package/dist/client-AVVG7J24.cjs.map +0 -1
- package/dist/client-B0wezrpt.d.cts.map +0 -1
- package/dist/client-BqrNpqZW.js.map +0 -1
- package/dist/client-D-KqRd94.d.ts.map +0 -1
- package/dist/create-dsn-BhshlP7l.js.map +0 -1
- package/dist/create-dsn-DaHidLhE.cjs.map +0 -1
- package/dist/create-project-C3laecaU.js.map +0 -1
- package/dist/create-project-xszOpGTC.cjs.map +0 -1
- package/dist/create-team-CTN-DxOE.js.map +0 -1
- package/dist/create-team-DmnJHSIx.cjs.map +0 -1
- package/dist/error-handling-efwohgKv.js.map +0 -1
- package/dist/error-handling-qfa1BeDb.cjs.map +0 -1
- package/dist/find-dsns-D0l3siyF.cjs.map +0 -1
- package/dist/find-dsns-U4CCcoTv.js.map +0 -1
- package/dist/find-organizations-Ca-zpAlI.cjs.map +0 -1
- package/dist/find-organizations-HUZFa8ZA.js.map +0 -1
- package/dist/find-projects-CWNLthwg.cjs.map +0 -1
- package/dist/find-projects-Dy1_O9L0.js.map +0 -1
- package/dist/find-releases-BtazPcQH.cjs.map +0 -1
- package/dist/find-releases-DN_BfQM2.js.map +0 -1
- package/dist/find-teams-CRVT4KOg.js +0 -40
- package/dist/find-teams-CRVT4KOg.js.map +0 -1
- package/dist/find-teams-_zAHPVGx.cjs.map +0 -1
- package/dist/formatting-BjCK9XwW.js.map +0 -1
- package/dist/formatting-CqmsvuAY.cjs.map +0 -1
- package/dist/formatting-XMmhMjRz.d.cts.map +0 -1
- package/dist/formatting-l3qx5d7L.d.ts.map +0 -1
- package/dist/get-doc-Euz6NiM3.cjs.map +0 -1
- package/dist/get-doc-JDwOkY2j.js.map +0 -1
- package/dist/get-event-attachment-DvpQ-dEP.cjs.map +0 -1
- package/dist/get-event-attachment-pIJmUfFE.js.map +0 -1
- package/dist/get-issue-details-B1PDMmMY.js.map +0 -1
- package/dist/get-issue-details-BH75EnNk.cjs.map +0 -1
- package/dist/get-trace-details-Bksygq21.cjs.map +0 -1
- package/dist/get-trace-details-CaK0JMf4.js.map +0 -1
- package/dist/handler-BbqDy4DA.js.map +0 -1
- package/dist/handler-C0zOOLbO.cjs.map +0 -1
- package/dist/handler-DyBdUYam.js.map +0 -1
- package/dist/handler-cy5oD28N.cjs.map +0 -1
- package/dist/internal/agents/callEmbeddedAgent.d.cts.map +0 -1
- package/dist/internal/agents/callEmbeddedAgent.d.ts.map +0 -1
- package/dist/internal/sentry-scrubbing.cjs +0 -6
- package/dist/internal/sentry-scrubbing.d.cts +0 -28
- package/dist/internal/sentry-scrubbing.d.cts.map +0 -1
- package/dist/internal/sentry-scrubbing.d.ts +0 -28
- package/dist/internal/sentry-scrubbing.d.ts.map +0 -1
- package/dist/internal/sentry-scrubbing.js +0 -3
- package/dist/logging-CBMxr4i2.js +0 -25
- package/dist/logging-CBMxr4i2.js.map +0 -1
- package/dist/logging-rvUPDKax.cjs +0 -31
- package/dist/logging-rvUPDKax.cjs.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/parse-C3tRlsy-.js.map +0 -1
- package/dist/parse-CeFc4xnt.cjs.map +0 -1
- package/dist/permissions-C-q0Y5bL.d.ts.map +0 -1
- package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
- package/dist/permissions-DRdH39Fe.js.map +0 -1
- package/dist/permissions-DuDYuCjy.cjs.map +0 -1
- package/dist/promptDefinitions-02aQWFKD.cjs +0 -37
- package/dist/promptDefinitions-02aQWFKD.cjs.map +0 -1
- package/dist/promptDefinitions-ImFNiWkX.d.cts +0 -34
- package/dist/promptDefinitions-ImFNiWkX.d.cts.map +0 -1
- package/dist/promptDefinitions-Y-mt2_IM.d.ts +0 -34
- package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +0 -1
- package/dist/promptDefinitions-wR6u6ZJE.js +0 -31
- package/dist/promptDefinitions-wR6u6ZJE.js.map +0 -1
- package/dist/promptDefinitions.cjs +0 -6
- package/dist/promptDefinitions.d.cts +0 -2
- package/dist/promptDefinitions.d.ts +0 -2
- package/dist/promptDefinitions.js +0 -6
- package/dist/prompts-BwZJaywH.cjs +0 -41
- package/dist/prompts-BwZJaywH.cjs.map +0 -1
- package/dist/prompts-DCJ0XraB.js +0 -36
- package/dist/prompts-DCJ0XraB.js.map +0 -1
- package/dist/prompts.cjs +0 -4
- package/dist/prompts.d.cts +0 -31
- package/dist/prompts.d.cts.map +0 -1
- package/dist/prompts.d.ts +0 -31
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -4
- package/dist/resolve-B_Fq13Dk.js.map +0 -1
- package/dist/resolve-CAtC1wN-.cjs.map +0 -1
- package/dist/resources/about.cjs +0 -3
- package/dist/resources/about.d.cts +0 -2
- package/dist/resources/about.d.ts +0 -2
- package/dist/resources/about.js +0 -3
- package/dist/resources/index.cjs +0 -4
- package/dist/resources/index.d.cts +0 -2
- package/dist/resources/index.d.ts +0 -2
- package/dist/resources/index.js +0 -4
- package/dist/resources-B4ropjfD.cjs +0 -94
- package/dist/resources-B4ropjfD.cjs.map +0 -1
- package/dist/resources-DaEUMw3Y.js +0 -82
- package/dist/resources-DaEUMw3Y.js.map +0 -1
- package/dist/resources.cjs +0 -8
- 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 -7
- package/dist/schema-BUBkkdUa.cjs.map +0 -1
- package/dist/schema-CbXlt1rW.cjs.map +0 -1
- package/dist/schema-ChvpDxUk.d.cts.map +0 -1
- package/dist/schema-D1CzTJXB.js.map +0 -1
- package/dist/schema-DOY22v1Q.d.ts.map +0 -1
- package/dist/schema-DPJO5nkQ.js.map +0 -1
- package/dist/search-docs-CH6-1H9_.cjs.map +0 -1
- package/dist/search-docs-CpAlMLs8.js.map +0 -1
- package/dist/sentry-scrubbing-BrjExjlM.js +0 -94
- package/dist/sentry-scrubbing-BrjExjlM.js.map +0 -1
- package/dist/sentry-scrubbing-CDcE4n-D.cjs +0 -118
- package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +0 -1
- package/dist/server-BjizUxVR.js +0 -238
- package/dist/server-BjizUxVR.js.map +0 -1
- package/dist/server-RKq8MlNM.cjs +0 -244
- package/dist/server-RKq8MlNM.cjs.map +0 -1
- package/dist/stdio-CJnMOUAU.cjs.map +0 -1
- package/dist/stdio-DB9muOi8.js.map +0 -1
- package/dist/tools-BiCRxQiY.js +0 -46
- package/dist/tools-BiCRxQiY.js.map +0 -1
- package/dist/tools-UZ_biJKC.cjs +0 -51
- package/dist/tools-UZ_biJKC.cjs.map +0 -1
- package/dist/types-B4nOfch5.d.cts.map +0 -1
- package/dist/types-CKPddlfS.cjs +0 -0
- package/dist/types-Cy4S5lN-.js +0 -0
- package/dist/types-DLRWzl3K.d.cts.map +0 -1
- package/dist/types-DTp1ajTT.d.ts.map +0 -1
- package/dist/types-Dj36Sq2V.d.cts +0 -41
- package/dist/types-Dj36Sq2V.d.cts.map +0 -1
- package/dist/types-m-t7jx2f.d.ts +0 -41
- package/dist/types-m-t7jx2f.d.ts.map +0 -1
- package/dist/types-o23QqDgk.d.cts.map +0 -1
- package/dist/types-ryM3umix.d.ts.map +0 -1
- package/dist/types-s3ChfOM9.d.ts.map +0 -1
- package/dist/update-issue-CD-kp2dt.cjs.map +0 -1
- package/dist/update-issue-nq8D_YUe.js.map +0 -1
- package/dist/update-project-B_OLM4Ky.cjs.map +0 -1
- package/dist/update-project-DvJfmSmX.js.map +0 -1
- package/dist/url-utils-0OheI87i.cjs.map +0 -1
- package/dist/url-utils-DF8NBCyH.js.map +0 -1
- package/dist/usage-Do2a2NJi.cjs +0 -44
- package/dist/usage-Do2a2NJi.cjs.map +0 -1
- package/dist/usage-OGOjVeAz.js +0 -38
- package/dist/usage-OGOjVeAz.js.map +0 -1
- package/dist/utils-BOPpU4-H.cjs.map +0 -1
- package/dist/utils-Cw6O1ztc.d.ts.map +0 -1
- package/dist/utils-K1XhlGf4.js.map +0 -1
- package/dist/utils-OyJ8CB2S.d.cts.map +0 -1
- package/dist/version-CaDh5TML.js +0 -6
- package/dist/whoami-BdiVu0Wr.cjs.map +0 -1
- package/dist/whoami-qCGsRPRm.js.map +0 -1
- /package/dist/{api-client-T99a5Vta.js → api-client-BR5WolLe.js} +0 -0
- /package/dist/{api-client-_2QFWf0d.cjs → api-client-BsHWi0-I.cjs} +0 -0
- /package/dist/{index-DCwqskfg.d.ts → index-NfFbnYt3.d.ts} +0 -0
- /package/dist/{issue-DKr8zNay.js → issue-B7cgiWKp.cjs} +0 -0
- /package/dist/{issue-DrgpqPbF.cjs → issue-BLm6gohl.js} +0 -0
- /package/dist/{resources-BlsH_EDg.cjs → search-events-Bc2a_R3A.cjs} +0 -0
- /package/dist/{resources-U-u5ze91.js → search-events-Bo5bAsOv.js} +0 -0
- /package/dist/{search-events-CUvQ_Jch.js → search-issues-AaiYCZ6J.cjs} +0 -0
- /package/dist/{search-events-DSY2Z_Eh.cjs → search-issues-DVHuKDdB.js} +0 -0
- /package/dist/{search-issues-BOmdyuUf.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{search-issues-BxO2JE3D.cjs → types-D10T4PdD.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-helpers-
|
|
1
|
+
{"version":3,"file":"issue-helpers-DbPTv_qC.cjs","names":["url: string","UserInputError","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\nimport { UserInputError } from \"../errors\";\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new UserInputError(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new UserInputError(\n `Invalid Sentry issue URL. Unable to parse URL: ${url}`,\n );\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new UserInputError(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n if (!issueId.trim()) {\n throw new UserInputError(\"Issue ID cannot be empty\");\n }\n\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n if (!finalIssueId) {\n throw new UserInputError(\n \"Issue ID cannot be empty after removing special characters\",\n );\n }\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n // Allow project codes to start with alphanumeric characters (including numbers)\n const validFormatRegex = /^(\\d+|[A-Za-z0-9][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new UserInputError(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new UserInputError(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAIC,8BACR;AAIJ,MAAK,IAAI,WAAW,UAAU,KAAK,IAAI,WAAW,WAAW,CAC3D,OAAM,IAAIA,8BACR;CAIJ,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,SAAQ,OAAO;AACd,QAAM,IAAID,+BACP,iDAAiD;CAErD;CAED,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AAC/D,KAAI,UAAU,SAAS,MAAM,UAAU,SAAS,SAAS,CACvD,OAAM,IAAIA,8BACR;CAIJ,MAAM,UAAU,UAAU,UAAU,QAAQ,SAAS,GAAG;AACxD,MAAK,QACH,OAAM,IAAIA,8BAAe;CAI3B,IAAIE;AACJ,KAAI,UAAU,SAAS,gBAAgB,CACrC,oBAAmB,UAAU,UAAU,QAAQ,gBAAgB,GAAG;UACzD,UAAU,SAAS,KAAK,UAAU,OAAO,SAElD,oBAAmB,UAAU;MACxB;EAEL,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI;AAC/C,MAAI,UAAU,SAAS,KAAK,UAAU,OAAO,MAC3C,oBAAmB,UAAU;CAEhC;AAED,MAAK,iBACH,OAAM,IAAIF,8BACR;AAIJ,QAAO;EAAE;EAAS;CAAkB;AACrC;;;;;;;;;AAUD,SAAgB,aAAaG,SAAiB;AAC5C,MAAK,QAAQ,MAAM,CACjB,OAAM,IAAIH,8BAAe;CAG3B,IAAI,eAAe;AAEnB,gBAAe,aAAa,QAAQ,WAAW,GAAG;AAElD,MAAK,aACH,OAAM,IAAIA,8BACR;CAOJ,MAAM,mBAAmB;AAEzB,MAAK,iBAAiB,KAAK,aAAa,CACtC,OAAM,IAAIA,+BACP,4BAA4B,aAAa;AAI9C,QAAO;AACR;;;;;;;;AASD,SAAgB,iBAAiB,EAC/B,UACA,SACA,kBAKD,EAGC;AACA,KAAI,UAAU;EACZ,MAAM,WAAW,eAAe,SAAS;AACzC,OAAK,SACH,OAAM,IAAI,MACR;AAGJ,SAAO;GACL,GAAG;GACH,SAAS,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAIA,8BAAe;AAG3B,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAIA,8BAAe;AAC1B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Logger } from "@logtape/logtape";
|
|
2
|
+
|
|
3
|
+
//#region src/telem/logging.d.ts
|
|
4
|
+
|
|
5
|
+
type LogContext = Record<string, unknown>;
|
|
6
|
+
type SentryLogContexts = Record<string, Record<string, unknown>>;
|
|
7
|
+
type LogAttachments = Record<string, string | Uint8Array>;
|
|
8
|
+
interface BaseLogOptions {
|
|
9
|
+
contexts?: SentryLogContexts;
|
|
10
|
+
extra?: LogContext;
|
|
11
|
+
loggerScope?: string | readonly string[];
|
|
12
|
+
}
|
|
13
|
+
interface LogIssueOptions extends BaseLogOptions {
|
|
14
|
+
attachments?: LogAttachments;
|
|
15
|
+
}
|
|
16
|
+
interface LogOptions extends BaseLogOptions {}
|
|
17
|
+
declare function getLogger(scope: string | readonly string[], defaults?: LogContext): Logger;
|
|
18
|
+
declare const logger: Logger;
|
|
19
|
+
declare function logDebug(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
20
|
+
declare function logInfo(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
21
|
+
declare function logWarn(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
22
|
+
declare function logError(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
23
|
+
declare function logIssue(error: Error | unknown, contexts?: SentryLogContexts, attachments?: LogAttachments): string | undefined;
|
|
24
|
+
declare function logIssue(error: Error | unknown, options: LogIssueOptions): string | undefined;
|
|
25
|
+
declare function logIssue(message: string, contexts?: SentryLogContexts, attachments?: LogAttachments): string | undefined;
|
|
26
|
+
declare function logIssue(message: string, options: LogIssueOptions): string | undefined;
|
|
27
|
+
//# sourceMappingURL=logging.d.ts.map
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { BaseLogOptions, LogAttachments, LogContext, LogIssueOptions, LogOptions, SentryLogContexts, getLogger, logDebug, logError, logInfo, logIssue, logWarn, logger };
|
|
31
|
+
//# sourceMappingURL=logging-99Uppado.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging-99Uppado.d.cts","names":[],"sources":["../src/telem/logging.ts"],"sourcesContent":[],"mappings":";;;;AAiJsC,KAF1B,UAAA,GAAa,MAEa,CAAA,MAAA,EAAA,OAAA,CAAA;AAC1B,KADA,iBAAA,GAAoB,MACN,CAAA,MAAA,EADqB,MACrB,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;AAAA,KAAd,cAAA,GAAiB,MAAH,CAAA,MAAA,EAAA,MAAA,GAA2B,UAA3B,CAAA;AAA2B,UAEpC,cAAA,CAFoC;EAAU,QAAlC,CAAA,EAGhB,iBAHgB;EAAM,KAAA,CAAA,EAIzB,UAJyB;EAElB,WAAA,CAAA,EAAA,MAAc,GAAA,SAAA,MAAA,EAAA;;AAClB,UAKI,eAAA,SAAwB,cAL5B,CAAA;EAAiB,WACpB,CAAA,EAKM,cALN;AAAU;AAIH,UAIA,UAAA,SAAmB,cAJH,CAAA;AACjB,iBAKA,SAAA,CALA,KAAA,EAAA,MAAA,GAAA,SAAA,MAAA,EAAA,EAAA,QAAA,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
|
+
type SentryLogContexts = Record<string, Record<string, unknown>>;
|
|
7
|
+
type LogAttachments = Record<string, string | Uint8Array>;
|
|
8
|
+
interface BaseLogOptions {
|
|
9
|
+
contexts?: SentryLogContexts;
|
|
10
|
+
extra?: LogContext;
|
|
11
|
+
loggerScope?: string | readonly string[];
|
|
12
|
+
}
|
|
13
|
+
interface LogIssueOptions extends BaseLogOptions {
|
|
14
|
+
attachments?: LogAttachments;
|
|
15
|
+
}
|
|
16
|
+
interface LogOptions extends BaseLogOptions {}
|
|
17
|
+
declare function getLogger$1(scope: string | readonly string[], defaults?: LogContext): Logger;
|
|
18
|
+
declare const logger: Logger;
|
|
19
|
+
declare function logDebug(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
20
|
+
declare function logInfo(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
21
|
+
declare function logWarn(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
22
|
+
declare function logError(value: unknown, contextsOrOptions?: SentryLogContexts | LogOptions): void;
|
|
23
|
+
declare function logIssue(error: Error | unknown, contexts?: SentryLogContexts, attachments?: LogAttachments): string | undefined;
|
|
24
|
+
declare function logIssue(error: Error | unknown, options: LogIssueOptions): string | undefined;
|
|
25
|
+
declare function logIssue(message: string, contexts?: SentryLogContexts, attachments?: LogAttachments): string | undefined;
|
|
26
|
+
declare function logIssue(message: string, options: LogIssueOptions): string | undefined;
|
|
27
|
+
//# sourceMappingURL=logging.d.ts.map
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { BaseLogOptions, LogAttachments, LogContext, LogIssueOptions, LogOptions, SentryLogContexts, getLogger$1 as getLogger, logDebug, logError, logInfo, logIssue, logWarn, logger };
|
|
31
|
+
//# sourceMappingURL=logging-BWajuCoz.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging-BWajuCoz.d.ts","names":[],"sources":["../src/telem/logging.ts"],"sourcesContent":[],"m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AAA,EAqRG,cArRH,CAAA,EAAA,MAAA,GAAA,SAAA;AACV,iBAsRa,QAAA,CAtRb,KAAA,EAuRM,KAvRN,GAAA,OAAA,EAAA,OAAA,EAwRQ,eAxRR,CAAA,EAAA,MAAA,GAAA,SAAA;AAAM,iBA0RO,QAAA,CA1RP,OAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EA4RI,iBA5RJ,EAAA,WAAA,CAAA,EA6RO,cA7RP,CAAA,EAAA,MAAA,GAAA,SAAA;AA+KI,iBAgHG,QAAA,CAhHmB,OAAA,EAAA,MAAA,EAAA,OAAA,EAkHxB,eAlHwB,CAAA,EAAA,MAAA,GAAA,SAAA;AAsEnC"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
3
|
+
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
4
|
+
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
5
|
+
|
|
6
|
+
//#region src/telem/logging.ts
|
|
7
|
+
const ROOT_LOG_CATEGORY = ["sentry", "mcp"];
|
|
8
|
+
let loggingConfigured = false;
|
|
9
|
+
function resolveLowestLevel() {
|
|
10
|
+
const envLevel = typeof process !== "undefined" ? process.env.LOG_LEVEL : void 0;
|
|
11
|
+
if (envLevel) try {
|
|
12
|
+
return (0, __logtape_logtape.parseLogLevel)(envLevel);
|
|
13
|
+
} catch (error) {}
|
|
14
|
+
return typeof process !== "undefined" && process.env.NODE_ENV === "development" ? "debug" : "info";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a LogTape sink that sends logs to Sentry's Logs product using Sentry.logger.
|
|
18
|
+
*
|
|
19
|
+
* Unlike @logtape/sentry's getSentrySink which uses captureException/captureMessage
|
|
20
|
+
* (creating Issues), this sink uses Sentry.logger.* methods to send data to the
|
|
21
|
+
* Logs product.
|
|
22
|
+
*
|
|
23
|
+
* Note: This uses @sentry/node logger API. Cloudflare Workers will need a separate
|
|
24
|
+
* implementation using @sentry/cloudflare logger API.
|
|
25
|
+
*/
|
|
26
|
+
function createSentryLogsSink() {
|
|
27
|
+
return (record) => {
|
|
28
|
+
if (!__sentry_node.logger) return;
|
|
29
|
+
let message = "";
|
|
30
|
+
for (let i = 0; i < record.message.length; i++) if (i % 2 === 0) message += record.message[i];
|
|
31
|
+
else {
|
|
32
|
+
const value = record.message[i];
|
|
33
|
+
message += typeof value === "string" ? value : coerceMessage(value);
|
|
34
|
+
}
|
|
35
|
+
const attributes = record.properties;
|
|
36
|
+
switch (record.level) {
|
|
37
|
+
case "trace":
|
|
38
|
+
__sentry_node.logger.trace(message, attributes);
|
|
39
|
+
break;
|
|
40
|
+
case "debug":
|
|
41
|
+
__sentry_node.logger.debug(message, attributes);
|
|
42
|
+
break;
|
|
43
|
+
case "info":
|
|
44
|
+
__sentry_node.logger.info(message, attributes);
|
|
45
|
+
break;
|
|
46
|
+
case "warning":
|
|
47
|
+
__sentry_node.logger.warn(message, attributes);
|
|
48
|
+
break;
|
|
49
|
+
case "error":
|
|
50
|
+
__sentry_node.logger.error(message, attributes);
|
|
51
|
+
break;
|
|
52
|
+
case "fatal":
|
|
53
|
+
__sentry_node.logger.fatal(message, attributes);
|
|
54
|
+
break;
|
|
55
|
+
default: __sentry_node.logger.info(message, attributes);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ensureLoggingConfigured() {
|
|
60
|
+
if (loggingConfigured) return;
|
|
61
|
+
const consoleSink = (0, __logtape_logtape.getConsoleSink)({ formatter: (0, __logtape_logtape.getJsonLinesFormatter)() });
|
|
62
|
+
const sentrySink = createSentryLogsSink();
|
|
63
|
+
(0, __logtape_logtape.configureSync)({
|
|
64
|
+
reset: (0, __logtape_logtape.getConfig)() !== null,
|
|
65
|
+
sinks: {
|
|
66
|
+
console: consoleSink,
|
|
67
|
+
sentry: sentrySink
|
|
68
|
+
},
|
|
69
|
+
loggers: [
|
|
70
|
+
{
|
|
71
|
+
category: [...ROOT_LOG_CATEGORY],
|
|
72
|
+
sinks: ["console", "sentry"],
|
|
73
|
+
lowestLevel: resolveLowestLevel()
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
category: ["logtape", "meta"],
|
|
77
|
+
sinks: ["console"],
|
|
78
|
+
lowestLevel: "warning"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
category: "logtape",
|
|
82
|
+
sinks: ["console"],
|
|
83
|
+
lowestLevel: "error"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
});
|
|
87
|
+
loggingConfigured = true;
|
|
88
|
+
}
|
|
89
|
+
function getLogger(scope, defaults) {
|
|
90
|
+
ensureLoggingConfigured();
|
|
91
|
+
const category = Array.isArray(scope) ? scope : [scope];
|
|
92
|
+
const logger$1 = (0, __logtape_logtape.getLogger)([...ROOT_LOG_CATEGORY, ...category]);
|
|
93
|
+
return defaults ? logger$1.with(defaults) : logger$1;
|
|
94
|
+
}
|
|
95
|
+
const ISSUE_LOGGER_SCOPE = ["runtime", "issues"];
|
|
96
|
+
function isRecord(value) {
|
|
97
|
+
return typeof value === "object" && value !== null;
|
|
98
|
+
}
|
|
99
|
+
function isSentryContexts(value) {
|
|
100
|
+
if (!isRecord(value)) return false;
|
|
101
|
+
return Object.values(value).every((entry) => isRecord(entry));
|
|
102
|
+
}
|
|
103
|
+
function isBaseLogOptionsCandidate(value) {
|
|
104
|
+
if (!isRecord(value)) return false;
|
|
105
|
+
if ("extra" in value || "loggerScope" in value) return true;
|
|
106
|
+
if ("contexts" in value) {
|
|
107
|
+
const contexts = value.contexts;
|
|
108
|
+
return contexts === void 0 || isSentryContexts(contexts);
|
|
109
|
+
}
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
function isLogIssueOptionsCandidate(value) {
|
|
113
|
+
return isBaseLogOptionsCandidate(value) || isRecord(value) && "attachments" in value;
|
|
114
|
+
}
|
|
115
|
+
function parseBaseOptions(contextsOrOptions) {
|
|
116
|
+
if (isBaseLogOptionsCandidate(contextsOrOptions)) {
|
|
117
|
+
const { contexts, extra, loggerScope } = contextsOrOptions;
|
|
118
|
+
return {
|
|
119
|
+
contexts,
|
|
120
|
+
extra,
|
|
121
|
+
loggerScope
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if (isSentryContexts(contextsOrOptions)) return { contexts: contextsOrOptions };
|
|
125
|
+
return {};
|
|
126
|
+
}
|
|
127
|
+
function parseLogIssueOptions(contextsOrOptions, attachmentsArg) {
|
|
128
|
+
const base = parseBaseOptions(contextsOrOptions);
|
|
129
|
+
const attachments = isLogIssueOptionsCandidate(contextsOrOptions) ? contextsOrOptions.attachments : void 0;
|
|
130
|
+
return {
|
|
131
|
+
...base,
|
|
132
|
+
attachments: attachments ?? attachmentsArg
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function parseLogOptions(contextsOrOptions) {
|
|
136
|
+
return parseBaseOptions(contextsOrOptions);
|
|
137
|
+
}
|
|
138
|
+
function safeJsonStringify(value) {
|
|
139
|
+
try {
|
|
140
|
+
return JSON.stringify(value);
|
|
141
|
+
} catch (error) {
|
|
142
|
+
return void 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function truncate(text, maxLength = 1024) {
|
|
146
|
+
if (text.length <= maxLength) return text;
|
|
147
|
+
return `${text.slice(0, maxLength - 1)}…`;
|
|
148
|
+
}
|
|
149
|
+
function coerceMessage(value) {
|
|
150
|
+
if (typeof value === "string") return value;
|
|
151
|
+
if (typeof value === "number" || typeof value === "boolean" || typeof value === "bigint") return value.toString();
|
|
152
|
+
if (value === null || value === void 0) return String(value);
|
|
153
|
+
const json = safeJsonStringify(value);
|
|
154
|
+
if (json) return truncate(json);
|
|
155
|
+
return Object.prototype.toString.call(value);
|
|
156
|
+
}
|
|
157
|
+
function serializeError(value, depth = 0) {
|
|
158
|
+
if (value instanceof Error) {
|
|
159
|
+
const serialized = { message: value.message };
|
|
160
|
+
if (value.name && value.name !== "Error") serialized.name = value.name;
|
|
161
|
+
if (typeof value.stack === "string") serialized.stack = value.stack;
|
|
162
|
+
const hasCause = "cause" in value && value.cause !== void 0;
|
|
163
|
+
if (hasCause && depth < 3) {
|
|
164
|
+
const cause = value.cause;
|
|
165
|
+
serialized.cause = serializeError(cause, depth + 1);
|
|
166
|
+
}
|
|
167
|
+
return serialized;
|
|
168
|
+
}
|
|
169
|
+
return { message: coerceMessage(value) };
|
|
170
|
+
}
|
|
171
|
+
const logger = getLogger([]);
|
|
172
|
+
const DEFAULT_LOGGER_SCOPE = [];
|
|
173
|
+
function buildLogProperties(level, options, serializedError) {
|
|
174
|
+
const properties = { severity: level };
|
|
175
|
+
if (serializedError) properties.error = serializedError;
|
|
176
|
+
if (options.extra) Object.assign(properties, options.extra);
|
|
177
|
+
if (options.contexts) properties.sentryContexts = options.contexts;
|
|
178
|
+
return properties;
|
|
179
|
+
}
|
|
180
|
+
function logWithLevel(level, value, contextsOrOptions) {
|
|
181
|
+
ensureLoggingConfigured();
|
|
182
|
+
const options = parseLogOptions(contextsOrOptions);
|
|
183
|
+
const serializedError = value instanceof Error ? serializeError(value) : void 0;
|
|
184
|
+
const message = serializedError ? serializedError.message : coerceMessage(value);
|
|
185
|
+
const scope = options.loggerScope ?? DEFAULT_LOGGER_SCOPE;
|
|
186
|
+
const scopedLogger = getLogger(scope, { severity: level });
|
|
187
|
+
const properties = buildLogProperties(level, options, serializedError);
|
|
188
|
+
switch (level) {
|
|
189
|
+
case "trace":
|
|
190
|
+
scopedLogger.trace(message, () => properties);
|
|
191
|
+
break;
|
|
192
|
+
case "debug":
|
|
193
|
+
scopedLogger.debug(message, () => properties);
|
|
194
|
+
break;
|
|
195
|
+
case "info":
|
|
196
|
+
scopedLogger.info(message, () => properties);
|
|
197
|
+
break;
|
|
198
|
+
case "warning":
|
|
199
|
+
scopedLogger.warn(message, () => properties);
|
|
200
|
+
break;
|
|
201
|
+
case "error":
|
|
202
|
+
scopedLogger.error(message, () => properties);
|
|
203
|
+
break;
|
|
204
|
+
case "fatal":
|
|
205
|
+
scopedLogger.fatal(message, () => properties);
|
|
206
|
+
break;
|
|
207
|
+
default: scopedLogger.info(message, () => properties);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function logDebug(value, contextsOrOptions) {
|
|
211
|
+
logWithLevel("debug", value, contextsOrOptions);
|
|
212
|
+
}
|
|
213
|
+
function logInfo(value, contextsOrOptions) {
|
|
214
|
+
logWithLevel("info", value, contextsOrOptions);
|
|
215
|
+
}
|
|
216
|
+
function logWarn(value, contextsOrOptions) {
|
|
217
|
+
logWithLevel("warning", value, contextsOrOptions);
|
|
218
|
+
}
|
|
219
|
+
function logError(value, contextsOrOptions) {
|
|
220
|
+
logWithLevel("error", value, contextsOrOptions);
|
|
221
|
+
}
|
|
222
|
+
function logIssue(error, contextsOrOptions, attachmentsArg) {
|
|
223
|
+
ensureLoggingConfigured();
|
|
224
|
+
const options = parseLogIssueOptions(contextsOrOptions, attachmentsArg);
|
|
225
|
+
const eventId = (0, __sentry_core.withScope)((scopeInstance) => {
|
|
226
|
+
if (options.contexts) for (const [key, context] of Object.entries(options.contexts)) scopeInstance.setContext(key, context);
|
|
227
|
+
if (options.extra) scopeInstance.setContext("log", options.extra);
|
|
228
|
+
if (options.attachments) for (const [key, data] of Object.entries(options.attachments)) scopeInstance.addAttachment({
|
|
229
|
+
data,
|
|
230
|
+
filename: key
|
|
231
|
+
});
|
|
232
|
+
const captureLevel = "error";
|
|
233
|
+
return typeof error === "string" ? (0, __sentry_core.captureMessage)(error, {
|
|
234
|
+
contexts: options.contexts,
|
|
235
|
+
level: captureLevel
|
|
236
|
+
}) : (0, __sentry_core.captureException)(error, {
|
|
237
|
+
contexts: options.contexts,
|
|
238
|
+
level: captureLevel
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
const { attachments,...baseOptions } = options;
|
|
242
|
+
const extra = {
|
|
243
|
+
...baseOptions.extra ?? {},
|
|
244
|
+
...attachments && Object.keys(attachments).length > 0 ? { attachments: Object.keys(attachments) } : {},
|
|
245
|
+
...eventId ? { eventId } : {}
|
|
246
|
+
};
|
|
247
|
+
logError(error, {
|
|
248
|
+
...baseOptions,
|
|
249
|
+
extra,
|
|
250
|
+
loggerScope: baseOptions.loggerScope ?? ISSUE_LOGGER_SCOPE
|
|
251
|
+
});
|
|
252
|
+
return eventId;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
//#endregion
|
|
256
|
+
Object.defineProperty(exports, 'getLogger', {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () {
|
|
259
|
+
return getLogger;
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, 'logDebug', {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () {
|
|
265
|
+
return logDebug;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(exports, 'logError', {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function () {
|
|
271
|
+
return logError;
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
Object.defineProperty(exports, 'logInfo', {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
get: function () {
|
|
277
|
+
return logInfo;
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
Object.defineProperty(exports, 'logIssue', {
|
|
281
|
+
enumerable: true,
|
|
282
|
+
get: function () {
|
|
283
|
+
return logIssue;
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
Object.defineProperty(exports, 'logWarn', {
|
|
287
|
+
enumerable: true,
|
|
288
|
+
get: function () {
|
|
289
|
+
return logWarn;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
Object.defineProperty(exports, 'logger', {
|
|
293
|
+
enumerable: true,
|
|
294
|
+
get: function () {
|
|
295
|
+
return logger;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
//# sourceMappingURL=logging-CkAJKyq2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging-CkAJKyq2.cjs","names":["record: LogRecord","Sentry","scope: string | readonly string[]","defaults?: LogContext","logger","value: unknown","contextsOrOptions?: SentryLogContexts | BaseLogOptions","contextsOrOptions?: SentryLogContexts | LogIssueOptions","attachmentsArg?: LogAttachments","contextsOrOptions?: SentryLogContexts | LogOptions","text: string","serialized: SerializedError","DEFAULT_LOGGER_SCOPE: readonly string[]","level: LogLevel","options: ParsedBaseOptions","serializedError?: SerializedError","properties: LogContext","error: unknown","extra: LogContext"],"sources":["../src/telem/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport {\n configureSync,\n getConfig,\n getConsoleSink,\n getJsonLinesFormatter,\n getLogger as getLogTapeLogger,\n parseLogLevel,\n type LogLevel,\n type Logger,\n type LogRecord,\n type Sink,\n} from \"@logtape/logtape\";\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\nimport * as Sentry from \"@sentry/node\";\n\nconst ROOT_LOG_CATEGORY = [\"sentry\", \"mcp\"] as const;\n\ntype SinkId = \"console\" | \"sentry\";\n\nlet loggingConfigured = false;\n\nfunction resolveLowestLevel(): LogLevel {\n const envLevel =\n typeof process !== \"undefined\" ? process.env.LOG_LEVEL : undefined;\n\n if (envLevel) {\n try {\n return parseLogLevel(envLevel);\n } catch (error) {\n // Fall through to default level when parsing fails.\n }\n }\n\n return typeof process !== \"undefined\" &&\n process.env.NODE_ENV === \"development\"\n ? \"debug\"\n : \"info\";\n}\n\n/**\n * Creates a LogTape sink that sends logs to Sentry's Logs product using Sentry.logger.\n *\n * Unlike @logtape/sentry's getSentrySink which uses captureException/captureMessage\n * (creating Issues), this sink uses Sentry.logger.* methods to send data to the\n * Logs product.\n *\n * Note: This uses @sentry/node logger API. Cloudflare Workers will need a separate\n * implementation using @sentry/cloudflare logger API.\n */\nfunction createSentryLogsSink(): Sink {\n return (record: LogRecord) => {\n // Check if Sentry.logger is available (may not be in all environments)\n if (!Sentry.logger) {\n return;\n }\n\n // Extract message from LogRecord\n let message = \"\";\n for (let i = 0; i < record.message.length; i++) {\n if (i % 2 === 0) {\n message += record.message[i];\n } else {\n // Template values - convert to string safely\n const value = record.message[i];\n message += typeof value === \"string\" ? value : coerceMessage(value);\n }\n }\n\n // Extract attributes from properties\n const attributes = record.properties as Record<string, unknown>;\n\n // Map LogTape levels to Sentry.logger methods\n // Note: Sentry.logger methods are fire-and-forget and handle errors gracefully\n switch (record.level) {\n case \"trace\":\n Sentry.logger.trace(message, attributes);\n break;\n case \"debug\":\n Sentry.logger.debug(message, attributes);\n break;\n case \"info\":\n Sentry.logger.info(message, attributes);\n break;\n case \"warning\":\n Sentry.logger.warn(message, attributes);\n break;\n case \"error\":\n Sentry.logger.error(message, attributes);\n break;\n case \"fatal\":\n Sentry.logger.fatal(message, attributes);\n break;\n default:\n Sentry.logger.info(message, attributes);\n }\n };\n}\n\nfunction ensureLoggingConfigured(): void {\n if (loggingConfigured) {\n return;\n }\n\n const consoleSink = getConsoleSink({\n formatter: getJsonLinesFormatter(),\n });\n const sentrySink = createSentryLogsSink();\n\n configureSync<SinkId, never>({\n reset: getConfig() !== null,\n sinks: {\n console: consoleSink,\n sentry: sentrySink,\n },\n loggers: [\n {\n category: [...ROOT_LOG_CATEGORY],\n sinks: [\"console\", \"sentry\"],\n lowestLevel: resolveLowestLevel(),\n },\n {\n category: [\"logtape\", \"meta\"],\n sinks: [\"console\"],\n lowestLevel: \"warning\",\n },\n {\n category: \"logtape\",\n sinks: [\"console\"],\n lowestLevel: \"error\",\n },\n ],\n });\n\n loggingConfigured = true;\n}\n\nexport type LogContext = Record<string, unknown>;\n\nexport type SentryLogContexts = Record<string, Record<string, unknown>>;\nexport type LogAttachments = Record<string, string | Uint8Array>;\n\nexport interface BaseLogOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\nexport interface LogIssueOptions extends BaseLogOptions {\n attachments?: LogAttachments;\n}\n\nexport interface LogOptions extends BaseLogOptions {}\n\nexport function getLogger(\n scope: string | readonly string[],\n defaults?: LogContext,\n): Logger {\n ensureLoggingConfigured();\n\n const category = Array.isArray(scope) ? scope : [scope];\n const logger = getLogTapeLogger([...ROOT_LOG_CATEGORY, ...category]);\n\n return defaults ? logger.with(defaults) : logger;\n}\n\nconst ISSUE_LOGGER_SCOPE = [\"runtime\", \"issues\"] as const;\n\ninterface ParsedBaseOptions {\n contexts?: SentryLogContexts;\n extra?: LogContext;\n loggerScope?: string | readonly string[];\n}\n\ninterface ParsedLogIssueOptions extends ParsedBaseOptions {\n attachments?: LogAttachments;\n}\n\ninterface SerializedError {\n message: string;\n name?: string;\n stack?: string;\n cause?: SerializedError;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isSentryContexts(value: unknown): value is SentryLogContexts {\n if (!isRecord(value)) {\n return false;\n }\n\n return Object.values(value).every((entry) => isRecord(entry));\n}\n\nfunction isBaseLogOptionsCandidate(value: unknown): value is BaseLogOptions {\n if (!isRecord(value)) {\n return false;\n }\n\n if (\"extra\" in value || \"loggerScope\" in value) {\n return true;\n }\n\n if (\"contexts\" in value) {\n const contexts = (value as { contexts?: unknown }).contexts;\n return contexts === undefined || isSentryContexts(contexts);\n }\n\n return false;\n}\n\nfunction isLogIssueOptionsCandidate(value: unknown): value is LogIssueOptions {\n return (\n isBaseLogOptionsCandidate(value) ||\n (isRecord(value) && \"attachments\" in value)\n );\n}\n\nfunction parseBaseOptions(\n contextsOrOptions?: SentryLogContexts | BaseLogOptions,\n): ParsedBaseOptions {\n if (isBaseLogOptionsCandidate(contextsOrOptions)) {\n const { contexts, extra, loggerScope } = contextsOrOptions;\n return {\n contexts,\n extra,\n loggerScope,\n };\n }\n\n if (isSentryContexts(contextsOrOptions)) {\n return { contexts: contextsOrOptions };\n }\n\n return {};\n}\n\nfunction parseLogIssueOptions(\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): ParsedLogIssueOptions {\n const base = parseBaseOptions(contextsOrOptions);\n\n const attachments = isLogIssueOptionsCandidate(contextsOrOptions)\n ? contextsOrOptions.attachments\n : undefined;\n\n return {\n ...base,\n attachments: attachments ?? attachmentsArg,\n };\n}\n\nfunction parseLogOptions(\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): LogOptions {\n return parseBaseOptions(contextsOrOptions);\n}\n\nfunction safeJsonStringify(value: unknown): string | undefined {\n try {\n return JSON.stringify(value);\n } catch (error) {\n return undefined;\n }\n}\n\nfunction truncate(text: string, maxLength = 1024): string {\n if (text.length <= maxLength) {\n return text;\n }\n\n return `${text.slice(0, maxLength - 1)}…`;\n}\n\nfunction coerceMessage(value: unknown): string {\n if (typeof value === \"string\") {\n return value;\n }\n\n if (\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n typeof value === \"bigint\"\n ) {\n return value.toString();\n }\n\n if (value === null || value === undefined) {\n return String(value);\n }\n\n const json = safeJsonStringify(value);\n if (json) {\n return truncate(json);\n }\n\n return Object.prototype.toString.call(value);\n}\n\nfunction serializeError(value: unknown, depth = 0): SerializedError {\n if (value instanceof Error) {\n const serialized: SerializedError = {\n message: value.message,\n };\n\n if (value.name && value.name !== \"Error\") {\n serialized.name = value.name;\n }\n\n if (typeof value.stack === \"string\") {\n serialized.stack = value.stack;\n }\n\n const hasCause =\n \"cause\" in (value as { cause?: unknown }) &&\n (value as { cause?: unknown }).cause !== undefined;\n\n if (hasCause && depth < 3) {\n const cause = (value as { cause?: unknown }).cause;\n serialized.cause = serializeError(cause, depth + 1);\n }\n\n return serialized;\n }\n\n return { message: coerceMessage(value) };\n}\n\nexport const logger = getLogger([]);\n\nconst DEFAULT_LOGGER_SCOPE: readonly string[] = [];\n\nfunction buildLogProperties(\n level: LogLevel,\n options: ParsedBaseOptions,\n serializedError?: SerializedError,\n): LogContext {\n const properties: LogContext = {\n severity: level,\n };\n\n if (serializedError) {\n properties.error = serializedError;\n }\n\n if (options.extra) {\n Object.assign(properties, options.extra);\n }\n\n if (options.contexts) {\n properties.sentryContexts = options.contexts;\n }\n\n return properties;\n}\n\nfunction logWithLevel(\n level: LogLevel,\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n ensureLoggingConfigured();\n\n const options = parseLogOptions(contextsOrOptions);\n const serializedError =\n value instanceof Error ? serializeError(value) : undefined;\n const message = serializedError\n ? serializedError.message\n : coerceMessage(value);\n const scope = options.loggerScope ?? DEFAULT_LOGGER_SCOPE;\n const scopedLogger = getLogger(scope, { severity: level });\n\n const properties = buildLogProperties(level, options, serializedError);\n\n switch (level) {\n case \"trace\":\n scopedLogger.trace(message, () => properties);\n break;\n case \"debug\":\n scopedLogger.debug(message, () => properties);\n break;\n case \"info\":\n scopedLogger.info(message, () => properties);\n break;\n case \"warning\":\n scopedLogger.warn(message, () => properties);\n break;\n case \"error\":\n scopedLogger.error(message, () => properties);\n break;\n case \"fatal\":\n scopedLogger.fatal(message, () => properties);\n break;\n default:\n scopedLogger.info(message, () => properties);\n }\n}\n\nexport function logDebug(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"debug\", value, contextsOrOptions);\n}\n\nexport function logInfo(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"info\", value, contextsOrOptions);\n}\n\nexport function logWarn(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"warning\", value, contextsOrOptions);\n}\n\nexport function logError(\n value: unknown,\n contextsOrOptions?: SentryLogContexts | LogOptions,\n): void {\n logWithLevel(\"error\", value, contextsOrOptions);\n}\n\nexport function logIssue(\n error: Error | unknown,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n error: Error | unknown,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n message: string,\n contexts?: SentryLogContexts,\n attachments?: LogAttachments,\n): string | undefined;\nexport function logIssue(\n message: string,\n options: LogIssueOptions,\n): string | undefined;\nexport function logIssue(\n error: unknown,\n contextsOrOptions?: SentryLogContexts | LogIssueOptions,\n attachmentsArg?: LogAttachments,\n): string | undefined {\n ensureLoggingConfigured();\n\n const options = parseLogIssueOptions(contextsOrOptions, attachmentsArg);\n const eventId = withScope((scopeInstance) => {\n if (options.contexts) {\n for (const [key, context] of Object.entries(options.contexts)) {\n scopeInstance.setContext(key, context);\n }\n }\n\n if (options.extra) {\n scopeInstance.setContext(\"log\", options.extra);\n }\n\n if (options.attachments) {\n for (const [key, data] of Object.entries(options.attachments)) {\n scopeInstance.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n const captureLevel = \"error\" as const;\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts: options.contexts,\n level: captureLevel,\n })\n : captureException(error, {\n contexts: options.contexts,\n level: captureLevel,\n });\n });\n\n const { attachments, ...baseOptions } = options;\n const extra: LogContext = {\n ...(baseOptions.extra ?? {}),\n ...(attachments && Object.keys(attachments).length > 0\n ? { attachments: Object.keys(attachments) }\n : {}),\n ...(eventId ? { eventId } : {}),\n };\n\n logError(error, {\n ...baseOptions,\n extra,\n loggerScope: baseOptions.loggerScope ?? ISSUE_LOGGER_SCOPE,\n });\n\n return eventId;\n}\n"],"mappings":";;;;;;AAsBA,MAAM,oBAAoB,CAAC,UAAU,KAAM;AAI3C,IAAI,oBAAoB;AAExB,SAAS,qBAA+B;CACtC,MAAM,kBACG,YAAY,cAAc,QAAQ,IAAI;AAE/C,KAAI,SACF,KAAI;AACF,SAAO,qCAAc,SAAS;CAC/B,SAAQ,OAAO,CAEf;AAGH,eAAc,YAAY,eACxB,QAAQ,IAAI,aAAa,gBACvB,UACA;AACL;;;;;;;;;;;AAYD,SAAS,uBAA6B;AACp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