@sentry/mcp-server 0.22.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CUT6urMc.cjs → chunk-DoeelZqw.cjs} +21 -0
- package/dist/cli/parse.cjs +1 -1
- package/dist/cli/parse.d.cts +1 -3
- package/dist/cli/parse.d.cts.map +1 -1
- package/dist/cli/parse.d.ts +1 -3
- package/dist/cli/parse.d.ts.map +1 -1
- package/dist/cli/parse.js +1 -1
- package/dist/cli/resolve.cjs +1 -5
- package/dist/cli/resolve.d.cts +1 -3
- package/dist/cli/resolve.d.cts.map +1 -1
- package/dist/cli/resolve.d.ts +1 -3
- package/dist/cli/resolve.d.ts.map +1 -1
- package/dist/cli/resolve.js +1 -5
- package/dist/cli/types.d.cts +1 -3
- package/dist/cli/types.d.ts +1 -3
- package/dist/cli/usage.cjs +1 -1
- package/dist/cli/usage.d.cts +2 -2
- package/dist/cli/usage.d.ts +2 -2
- package/dist/cli/usage.js +1 -1
- package/dist/config-Bs1p6XwV.js +3 -0
- package/dist/config-DFewJLVx.cjs +6 -0
- package/dist/{config-jAHLRqMZ.js → config-DtimzxvV-BItTrGiz.js} +3 -306
- package/dist/config-DtimzxvV-BItTrGiz.js.map +1 -0
- package/dist/{config-2JTOC4-d.cjs → config-DtimzxvV-D3ccpxhQ.cjs} +2 -311
- package/dist/config-DtimzxvV-D3ccpxhQ.cjs.map +1 -0
- package/dist/index.cjs +21355 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21379 -69
- package/dist/index.js.map +1 -1
- package/dist/{parse-Br-BwKdT.cjs → parse-By6nDBNs.cjs} +2 -2
- package/dist/{parse-Br-BwKdT.cjs.map → parse-By6nDBNs.cjs.map} +1 -1
- package/dist/{parse-BvHK_nys.js → parse-Dn9XeQSj.js} +1 -1
- package/dist/{parse-BvHK_nys.js.map → parse-Dn9XeQSj.js.map} +1 -1
- package/dist/resolve-BCdS4js5.js +590 -0
- package/dist/resolve-BCdS4js5.js.map +1 -0
- package/dist/resolve-BMmRdCFJ.cjs +692 -0
- package/dist/resolve-BMmRdCFJ.cjs.map +1 -0
- package/dist/{stdio-YKMCj_QV.js → stdio-232a22j4.js} +7 -3
- package/dist/stdio-232a22j4.js.map +1 -0
- package/dist/{stdio-DPvrKLnJ.cjs → stdio-aCI9XyaI.cjs} +20 -4
- package/dist/stdio-aCI9XyaI.cjs.map +1 -0
- package/dist/transports/stdio.cjs +1 -2
- package/dist/transports/stdio.d.cts +1 -3
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +1 -3
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +1 -2
- package/dist/{types-BeIzCAF1.d.cts → types-CM88pHH_.d.ts} +3 -3
- package/dist/{types-C70IdmF4.d.ts.map → types-CM88pHH_.d.ts.map} +1 -1
- package/dist/{types-C70IdmF4.d.ts → types-CnLRMjvf.d.cts} +3 -3
- package/dist/{types-BeIzCAF1.d.cts.map → types-CnLRMjvf.d.cts.map} +1 -1
- package/dist/{usage-CpguKuwi.js → usage-DMGbIpV-.js} +1 -1
- package/dist/usage-DMGbIpV-.js.map +1 -0
- package/dist/{usage-CMWaPhZv.cjs → usage-iwGZsu3a.cjs} +1 -1
- package/dist/usage-iwGZsu3a.cjs.map +1 -0
- package/package.json +19 -104
- package/README.md +0 -112
- package/dist/agent-0WAnUgat.js +0 -43
- package/dist/agent-0WAnUgat.js.map +0 -1
- package/dist/agent-BeTXxskw.d.ts +0 -35
- package/dist/agent-BeTXxskw.d.ts.map +0 -1
- package/dist/agent-Bm5Hsfal.d.cts +0 -32
- package/dist/agent-Bm5Hsfal.d.cts.map +0 -1
- package/dist/agent-C1Ros3Xx.js +0 -29
- package/dist/agent-C1Ros3Xx.js.map +0 -1
- package/dist/agent-CJ6SVqAB.d.ts +0 -32
- package/dist/agent-CJ6SVqAB.d.ts.map +0 -1
- package/dist/agent-Cm9hEq5d.cjs +0 -76
- package/dist/agent-Cm9hEq5d.cjs.map +0 -1
- package/dist/agent-Cu85yHYm.d.ts +0 -93
- package/dist/agent-Cu85yHYm.d.ts.map +0 -1
- package/dist/agent-CyyRLYbF.cjs +0 -55
- package/dist/agent-CyyRLYbF.cjs.map +0 -1
- package/dist/agent-DYfi9MFV.d.cts +0 -93
- package/dist/agent-DYfi9MFV.d.cts.map +0 -1
- package/dist/agent-Dkgkv7Iz.js +0 -64
- package/dist/agent-Dkgkv7Iz.js.map +0 -1
- package/dist/agent-DtCRTWPZ.cjs +0 -35
- package/dist/agent-DtCRTWPZ.cjs.map +0 -1
- package/dist/agent-TEZG63ug.d.cts +0 -35
- package/dist/agent-TEZG63ug.d.cts.map +0 -1
- package/dist/analyze-issue-with-seer-B90r4g5J.cjs +0 -206
- package/dist/analyze-issue-with-seer-B90r4g5J.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-Ji3KDm0O.js +0 -200
- package/dist/analyze-issue-with-seer-Ji3KDm0O.js.map +0 -1
- package/dist/api-CBHyxA3Q.js +0 -63
- package/dist/api-CBHyxA3Q.js.map +0 -1
- package/dist/api-CHgBJOv9.cjs +0 -80
- package/dist/api-CHgBJOv9.cjs.map +0 -1
- package/dist/api-client/client.cjs +0 -9
- package/dist/api-client/client.d.cts +0 -4
- package/dist/api-client/client.d.ts +0 -4
- package/dist/api-client/client.js +0 -9
- package/dist/api-client/errors.cjs +0 -11
- package/dist/api-client/errors.d.cts +0 -2
- package/dist/api-client/errors.d.ts +0 -2
- package/dist/api-client/errors.js +0 -3
- package/dist/api-client/index.cjs +0 -67
- package/dist/api-client/index.d.cts +0 -6
- package/dist/api-client/index.d.ts +0 -6
- package/dist/api-client/index.js +0 -11
- package/dist/api-client/schema.cjs +0 -49
- package/dist/api-client/schema.d.cts +0 -2
- package/dist/api-client/schema.d.ts +0 -2
- package/dist/api-client/schema.js +0 -3
- package/dist/api-client/types.cjs +0 -1
- package/dist/api-client/types.d.cts +0 -3
- package/dist/api-client/types.d.ts +0 -3
- package/dist/api-client/types.js +0 -1
- package/dist/api-client-BGgaBFuD.cjs +0 -0
- package/dist/api-client-CSLxiNP9.js +0 -0
- package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts +0 -34
- package/dist/callEmbeddedAgent-BIfQ-_5T.d.ts.map +0 -1
- package/dist/callEmbeddedAgent-BPS472yg.cjs +0 -50
- package/dist/callEmbeddedAgent-BPS472yg.cjs.map +0 -1
- package/dist/callEmbeddedAgent-CFHLQjFx.d.cts +0 -34
- package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +0 -1
- package/dist/callEmbeddedAgent-DavTx3Qo.js +0 -44
- package/dist/callEmbeddedAgent-DavTx3Qo.js.map +0 -1
- package/dist/client-0n2-4zOO.d.cts +0 -837
- package/dist/client-0n2-4zOO.d.cts.map +0 -1
- package/dist/client-B7hvqupZ.js +0 -1081
- package/dist/client-B7hvqupZ.js.map +0 -1
- package/dist/client-ByOC8aCf.d.ts +0 -837
- package/dist/client-ByOC8aCf.d.ts.map +0 -1
- package/dist/client-cC79LUJ5.cjs +0 -1086
- package/dist/client-cC79LUJ5.cjs.map +0 -1
- package/dist/config-2JTOC4-d.cjs.map +0 -1
- package/dist/config-BFaJp4hW.js +0 -74
- package/dist/config-BFaJp4hW.js.map +0 -1
- package/dist/config-BMLvvgGQ.cjs +0 -37
- package/dist/config-BMLvvgGQ.cjs.map +0 -1
- package/dist/config-BacDkkdz.cjs +0 -80
- package/dist/config-BacDkkdz.cjs.map +0 -1
- package/dist/config-Dh25cVhL.js +0 -25
- package/dist/config-Dh25cVhL.js.map +0 -1
- package/dist/config-jAHLRqMZ.js.map +0 -1
- package/dist/constants-CgLLujFn.cjs +0 -220
- package/dist/constants-CgLLujFn.cjs.map +0 -1
- package/dist/constants-D8axTonA.js +0 -184
- package/dist/constants-D8axTonA.js.map +0 -1
- package/dist/constants.cjs +0 -10
- package/dist/constants.d.cts +0 -36
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.ts +0 -36
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -4
- package/dist/constraint-helpers-CBddlAo8.js +0 -64
- package/dist/constraint-helpers-CBddlAo8.js.map +0 -1
- package/dist/constraint-helpers-UEovDW_M.cjs +0 -76
- package/dist/constraint-helpers-UEovDW_M.cjs.map +0 -1
- package/dist/create-dsn-9yIHr10B.cjs +0 -74
- package/dist/create-dsn-9yIHr10B.cjs.map +0 -1
- package/dist/create-dsn-p2Ep6zDn.js +0 -68
- package/dist/create-dsn-p2Ep6zDn.js.map +0 -1
- package/dist/create-project-BQQx1iLm.cjs +0 -92
- package/dist/create-project-BQQx1iLm.cjs.map +0 -1
- package/dist/create-project-CN0UneBm.js +0 -86
- package/dist/create-project-CN0UneBm.js.map +0 -1
- package/dist/create-team-CzFrsVdw.js +0 -63
- package/dist/create-team-CzFrsVdw.js.map +0 -1
- package/dist/create-team-DFSriKVL.cjs +0 -69
- package/dist/create-team-DFSriKVL.cjs.map +0 -1
- package/dist/dataset-fields-Bp_g-sD6.cjs +0 -179
- package/dist/dataset-fields-Bp_g-sD6.cjs.map +0 -1
- package/dist/dataset-fields-dZ43jEgF.js +0 -155
- package/dist/dataset-fields-dZ43jEgF.js.map +0 -1
- package/dist/define-CLp6EtpZ.cjs +0 -14
- package/dist/define-CLp6EtpZ.cjs.map +0 -1
- package/dist/define-vA6uuVue.js +0 -8
- package/dist/define-vA6uuVue.js.map +0 -1
- package/dist/enhance-error-BULHg3Tl.js +0 -32
- package/dist/enhance-error-BULHg3Tl.js.map +0 -1
- package/dist/enhance-error-vihkdCX5.cjs +0 -37
- package/dist/enhance-error-vihkdCX5.cjs.map +0 -1
- package/dist/error-handling-CLnyY1TR.js +0 -97
- package/dist/error-handling-CLnyY1TR.js.map +0 -1
- package/dist/error-handling-FGjcJT8U.cjs +0 -132
- package/dist/error-handling-FGjcJT8U.cjs.map +0 -1
- package/dist/errors-BXmNwD2K.js +0 -26
- package/dist/errors-BXmNwD2K.js.map +0 -1
- package/dist/errors-BYClKbv4.d.cts +0 -20
- package/dist/errors-BYClKbv4.d.cts.map +0 -1
- package/dist/errors-Cn4l-BlC.d.ts +0 -20
- package/dist/errors-Cn4l-BlC.d.ts.map +0 -1
- package/dist/errors-CyAWBU2S.d.ts +0 -126
- package/dist/errors-CyAWBU2S.d.ts.map +0 -1
- package/dist/errors-DMiENfq7.d.cts +0 -126
- package/dist/errors-DMiENfq7.d.cts.map +0 -1
- package/dist/errors-DUEMWOr1.js +0 -217
- package/dist/errors-DUEMWOr1.js.map +0 -1
- package/dist/errors-DWysOIMw.cjs +0 -271
- package/dist/errors-DWysOIMw.cjs.map +0 -1
- package/dist/errors-umQzF_vW.cjs +0 -38
- package/dist/errors-umQzF_vW.cjs.map +0 -1
- package/dist/errors.cjs +0 -4
- package/dist/errors.d.cts +0 -2
- package/dist/errors.d.ts +0 -2
- package/dist/errors.js +0 -3
- package/dist/fetch-utils-C6qSgZai.js +0 -52
- package/dist/fetch-utils-C6qSgZai.js.map +0 -1
- package/dist/fetch-utils-DRgOJp3e.cjs +0 -64
- package/dist/fetch-utils-DRgOJp3e.cjs.map +0 -1
- package/dist/find-dsns-BzfYjE06.js +0 -58
- package/dist/find-dsns-BzfYjE06.js.map +0 -1
- package/dist/find-dsns-DhHHtvpj.cjs +0 -64
- package/dist/find-dsns-DhHHtvpj.cjs.map +0 -1
- package/dist/find-organizations-7ooGnnmP.cjs +0 -64
- package/dist/find-organizations-7ooGnnmP.cjs.map +0 -1
- package/dist/find-organizations-BJFAElbh.js +0 -59
- package/dist/find-organizations-BJFAElbh.js.map +0 -1
- package/dist/find-projects-BpEGRZya.cjs +0 -59
- package/dist/find-projects-BpEGRZya.cjs.map +0 -1
- package/dist/find-projects-E5CMFbwU.js +0 -53
- package/dist/find-projects-E5CMFbwU.js.map +0 -1
- package/dist/find-releases-DWWonhlV.js +0 -99
- package/dist/find-releases-DWWonhlV.js.map +0 -1
- package/dist/find-releases-Du5euXKS.cjs +0 -105
- package/dist/find-releases-Du5euXKS.cjs.map +0 -1
- package/dist/find-teams-BM4yWKe_.js +0 -56
- package/dist/find-teams-BM4yWKe_.js.map +0 -1
- package/dist/find-teams-Bp6-Iu62.cjs +0 -62
- package/dist/find-teams-Bp6-Iu62.cjs.map +0 -1
- package/dist/formatters-B6H5qTFe.cjs +0 -98
- package/dist/formatters-B6H5qTFe.cjs.map +0 -1
- package/dist/formatters-BOJNlDKG.js +0 -223
- package/dist/formatters-BOJNlDKG.js.map +0 -1
- package/dist/formatters-C9MhdNDX.js +0 -86
- package/dist/formatters-C9MhdNDX.js.map +0 -1
- package/dist/formatters-ObdzRwld.cjs +0 -247
- package/dist/formatters-ObdzRwld.cjs.map +0 -1
- package/dist/formatting-5u-ZFz8H.cjs +0 -897
- package/dist/formatting-5u-ZFz8H.cjs.map +0 -1
- package/dist/formatting-BEgp4WO_.js +0 -880
- package/dist/formatting-BEgp4WO_.js.map +0 -1
- package/dist/formatting-Bw0FWiCH.d.cts +0 -54
- package/dist/formatting-Bw0FWiCH.d.cts.map +0 -1
- package/dist/formatting-C6hyL-Yv.cjs +0 -20
- package/dist/formatting-C6hyL-Yv.cjs.map +0 -1
- package/dist/formatting-ClM7RU4L.d.ts +0 -54
- package/dist/formatting-ClM7RU4L.d.ts.map +0 -1
- package/dist/formatting-DJFcfTJG.js +0 -14
- package/dist/formatting-DJFcfTJG.js.map +0 -1
- package/dist/get-doc-CWhlUoJe.js +0 -87
- package/dist/get-doc-CWhlUoJe.js.map +0 -1
- package/dist/get-doc-DsOaSMIe.cjs +0 -93
- package/dist/get-doc-DsOaSMIe.cjs.map +0 -1
- package/dist/get-event-attachment-CTF-k6op.cjs +0 -150
- package/dist/get-event-attachment-CTF-k6op.cjs.map +0 -1
- package/dist/get-event-attachment-DDvsu6IQ.js +0 -144
- package/dist/get-event-attachment-DDvsu6IQ.js.map +0 -1
- package/dist/get-issue-details-Bsax2jTY.js +0 -195
- package/dist/get-issue-details-Bsax2jTY.js.map +0 -1
- package/dist/get-issue-details-CIZSksmd.cjs +0 -201
- package/dist/get-issue-details-CIZSksmd.cjs.map +0 -1
- package/dist/get-trace-details-Bc9GgkSs.cjs +0 -313
- package/dist/get-trace-details-Bc9GgkSs.cjs.map +0 -1
- package/dist/get-trace-details-Bkilw5oH.js +0 -307
- package/dist/get-trace-details-Bkilw5oH.js.map +0 -1
- package/dist/handler-CASDrJ7z.d.ts +0 -15
- package/dist/handler-CASDrJ7z.d.ts.map +0 -1
- package/dist/handler-CXY05zhR.d.ts +0 -11
- package/dist/handler-CXY05zhR.d.ts.map +0 -1
- package/dist/handler-CZEMKP9p.d.cts +0 -15
- package/dist/handler-CZEMKP9p.d.cts.map +0 -1
- package/dist/handler-ChOaafS-.cjs +0 -159
- package/dist/handler-ChOaafS-.cjs.map +0 -1
- package/dist/handler-CmTBmIt9.d.cts +0 -15
- package/dist/handler-CmTBmIt9.d.cts.map +0 -1
- package/dist/handler-Cs5DcdpF.d.ts +0 -15
- package/dist/handler-Cs5DcdpF.d.ts.map +0 -1
- package/dist/handler-D6OGs2Ok.d.cts +0 -11
- package/dist/handler-D6OGs2Ok.d.cts.map +0 -1
- package/dist/handler-DQbc5eAJ.cjs +0 -138
- package/dist/handler-DQbc5eAJ.cjs.map +0 -1
- package/dist/handler-bf2qu8DQ.js +0 -132
- package/dist/handler-bf2qu8DQ.js.map +0 -1
- package/dist/handler-y6EMhG0y.js +0 -153
- package/dist/handler-y6EMhG0y.js.map +0 -1
- package/dist/index-CmCelmEL.d.cts +0 -1
- package/dist/index-NfFbnYt3.d.ts +0 -1
- package/dist/internal/agents/callEmbeddedAgent.cjs +0 -6
- package/dist/internal/agents/callEmbeddedAgent.d.cts +0 -2
- package/dist/internal/agents/callEmbeddedAgent.d.ts +0 -2
- package/dist/internal/agents/callEmbeddedAgent.js +0 -6
- package/dist/internal/agents/openai-provider.cjs +0 -5
- package/dist/internal/agents/openai-provider.d.cts +0 -22
- package/dist/internal/agents/openai-provider.d.cts.map +0 -1
- package/dist/internal/agents/openai-provider.d.ts +0 -22
- package/dist/internal/agents/openai-provider.d.ts.map +0 -1
- package/dist/internal/agents/openai-provider.js +0 -4
- package/dist/internal/agents/tools/dataset-fields.cjs +0 -16
- package/dist/internal/agents/tools/dataset-fields.d.cts +0 -58
- package/dist/internal/agents/tools/dataset-fields.d.cts.map +0 -1
- package/dist/internal/agents/tools/dataset-fields.d.ts +0 -58
- package/dist/internal/agents/tools/dataset-fields.d.ts.map +0 -1
- package/dist/internal/agents/tools/dataset-fields.js +0 -13
- package/dist/internal/agents/tools/otel-semantics.cjs +0 -14
- package/dist/internal/agents/tools/otel-semantics.d.cts +0 -41
- package/dist/internal/agents/tools/otel-semantics.d.cts.map +0 -1
- package/dist/internal/agents/tools/otel-semantics.d.ts +0 -41
- package/dist/internal/agents/tools/otel-semantics.d.ts.map +0 -1
- package/dist/internal/agents/tools/otel-semantics.js +0 -13
- package/dist/internal/agents/tools/utils.cjs +0 -12
- package/dist/internal/agents/tools/utils.d.cts +0 -2
- package/dist/internal/agents/tools/utils.d.ts +0 -2
- package/dist/internal/agents/tools/utils.js +0 -12
- package/dist/internal/agents/tools/whoami.cjs +0 -14
- package/dist/internal/agents/tools/whoami.d.cts +0 -33
- package/dist/internal/agents/tools/whoami.d.cts.map +0 -1
- package/dist/internal/agents/tools/whoami.d.ts +0 -33
- package/dist/internal/agents/tools/whoami.d.ts.map +0 -1
- package/dist/internal/agents/tools/whoami.js +0 -13
- package/dist/internal/constraint-helpers.cjs +0 -4
- package/dist/internal/constraint-helpers.d.cts +0 -54
- package/dist/internal/constraint-helpers.d.cts.map +0 -1
- package/dist/internal/constraint-helpers.d.ts +0 -54
- package/dist/internal/constraint-helpers.d.ts.map +0 -1
- package/dist/internal/constraint-helpers.js +0 -3
- package/dist/internal/error-handling.cjs +0 -17
- package/dist/internal/error-handling.d.cts +0 -40
- package/dist/internal/error-handling.d.cts.map +0 -1
- package/dist/internal/error-handling.d.ts +0 -40
- package/dist/internal/error-handling.d.ts.map +0 -1
- package/dist/internal/error-handling.js +0 -12
- package/dist/internal/fetch-utils.cjs +0 -4
- package/dist/internal/fetch-utils.d.cts +0 -33
- package/dist/internal/fetch-utils.d.cts.map +0 -1
- package/dist/internal/fetch-utils.d.ts +0 -33
- package/dist/internal/fetch-utils.d.ts.map +0 -1
- package/dist/internal/fetch-utils.js +0 -3
- package/dist/internal/formatting.cjs +0 -6
- package/dist/internal/formatting.d.cts +0 -7
- package/dist/internal/formatting.d.ts +0 -7
- package/dist/internal/formatting.js +0 -4
- package/dist/internal/issue-helpers.cjs +0 -6
- package/dist/internal/issue-helpers.d.cts +0 -2
- package/dist/internal/issue-helpers.d.ts +0 -2
- package/dist/internal/issue-helpers.js +0 -4
- package/dist/internal/test-fixtures.cjs +0 -224
- package/dist/internal/test-fixtures.cjs.map +0 -1
- package/dist/internal/test-fixtures.d.cts +0 -130
- package/dist/internal/test-fixtures.d.cts.map +0 -1
- package/dist/internal/test-fixtures.d.ts +0 -130
- package/dist/internal/test-fixtures.d.ts.map +0 -1
- package/dist/internal/test-fixtures.js +0 -215
- package/dist/internal/test-fixtures.js.map +0 -1
- package/dist/internal/tool-helpers/api.cjs +0 -17
- package/dist/internal/tool-helpers/api.d.cts +0 -42
- package/dist/internal/tool-helpers/api.d.cts.map +0 -1
- package/dist/internal/tool-helpers/api.d.ts +0 -42
- package/dist/internal/tool-helpers/api.d.ts.map +0 -1
- package/dist/internal/tool-helpers/api.js +0 -15
- package/dist/internal/tool-helpers/define.cjs +0 -3
- package/dist/internal/tool-helpers/define.d.cts +0 -13
- package/dist/internal/tool-helpers/define.d.cts.map +0 -1
- package/dist/internal/tool-helpers/define.d.ts +0 -13
- package/dist/internal/tool-helpers/define.d.ts.map +0 -1
- package/dist/internal/tool-helpers/define.js +0 -3
- package/dist/internal/tool-helpers/enhance-error.cjs +0 -12
- package/dist/internal/tool-helpers/enhance-error.d.cts +0 -29
- package/dist/internal/tool-helpers/enhance-error.d.cts.map +0 -1
- package/dist/internal/tool-helpers/enhance-error.d.ts +0 -29
- package/dist/internal/tool-helpers/enhance-error.d.ts.map +0 -1
- package/dist/internal/tool-helpers/enhance-error.js +0 -12
- package/dist/internal/tool-helpers/formatting.cjs +0 -3
- package/dist/internal/tool-helpers/formatting.d.cts +0 -16
- package/dist/internal/tool-helpers/formatting.d.cts.map +0 -1
- package/dist/internal/tool-helpers/formatting.d.ts +0 -16
- package/dist/internal/tool-helpers/formatting.d.ts.map +0 -1
- package/dist/internal/tool-helpers/formatting.js +0 -3
- package/dist/internal/tool-helpers/issue.cjs +0 -8
- package/dist/internal/tool-helpers/issue.d.cts +0 -8
- package/dist/internal/tool-helpers/issue.d.ts +0 -8
- package/dist/internal/tool-helpers/issue.js +0 -7
- package/dist/internal/tool-helpers/seer.cjs +0 -11
- package/dist/internal/tool-helpers/seer.d.cts +0 -31
- package/dist/internal/tool-helpers/seer.d.cts.map +0 -1
- package/dist/internal/tool-helpers/seer.d.ts +0 -31
- package/dist/internal/tool-helpers/seer.d.ts.map +0 -1
- package/dist/internal/tool-helpers/seer.js +0 -3
- package/dist/internal/tool-helpers/validate-region-url.cjs +0 -6
- package/dist/internal/tool-helpers/validate-region-url.d.cts +0 -20
- package/dist/internal/tool-helpers/validate-region-url.d.cts.map +0 -1
- package/dist/internal/tool-helpers/validate-region-url.d.ts +0 -20
- package/dist/internal/tool-helpers/validate-region-url.d.ts.map +0 -1
- package/dist/internal/tool-helpers/validate-region-url.js +0 -6
- package/dist/issue-1C6txnk3.js +0 -0
- package/dist/issue-ChNk4cuO.cjs +0 -0
- package/dist/issue-helpers-D-hBnXTk.cjs +0 -97
- package/dist/issue-helpers-D-hBnXTk.cjs.map +0 -1
- package/dist/issue-helpers-D4NRLqkR.d.ts +0 -52
- package/dist/issue-helpers-D4NRLqkR.d.ts.map +0 -1
- package/dist/issue-helpers-DtCbXiRZ.js +0 -80
- package/dist/issue-helpers-DtCbXiRZ.js.map +0 -1
- package/dist/issue-helpers-ILmSPsJZ.d.cts +0 -52
- package/dist/issue-helpers-ILmSPsJZ.d.cts.map +0 -1
- package/dist/logging-BgTqJ4mI.d.ts +0 -31
- package/dist/logging-BgTqJ4mI.d.ts.map +0 -1
- package/dist/logging-BjKioF_x.d.cts +0 -31
- package/dist/logging-BjKioF_x.d.cts.map +0 -1
- package/dist/logging-C-ST7-Ow.cjs +0 -298
- package/dist/logging-C-ST7-Ow.cjs.map +0 -1
- package/dist/logging-ChQnSEmD.js +0 -256
- package/dist/logging-ChQnSEmD.js.map +0 -1
- package/dist/openai-provider-B7uvGxoI.cjs +0 -60
- package/dist/openai-provider-B7uvGxoI.cjs.map +0 -1
- package/dist/openai-provider-DphaqrmX.js +0 -48
- package/dist/openai-provider-DphaqrmX.js.map +0 -1
- package/dist/otel-semantics-CWWWmiNy.js +0 -5070
- package/dist/otel-semantics-CWWWmiNy.js.map +0 -1
- package/dist/otel-semantics-n8_5Ib9C.cjs +0 -5082
- package/dist/otel-semantics-n8_5Ib9C.cjs.map +0 -1
- package/dist/permissions-Berbg2vC.cjs +0 -209
- package/dist/permissions-Berbg2vC.cjs.map +0 -1
- package/dist/permissions-CiIVEs4_.d.ts +0 -79
- package/dist/permissions-CiIVEs4_.d.ts.map +0 -1
- package/dist/permissions-Cm5e34n2.d.cts +0 -79
- package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
- package/dist/permissions-DvkVlUJ1.js +0 -155
- package/dist/permissions-DvkVlUJ1.js.map +0 -1
- package/dist/permissions.cjs +0 -11
- package/dist/permissions.d.cts +0 -2
- package/dist/permissions.d.ts +0 -2
- package/dist/permissions.js +0 -3
- package/dist/resolve-CrYQ5aF_.cjs +0 -107
- package/dist/resolve-CrYQ5aF_.cjs.map +0 -1
- package/dist/resolve-DQ-6eLec.js +0 -90
- package/dist/resolve-DQ-6eLec.js.map +0 -1
- package/dist/schema-BGVOjcD7.cjs +0 -141
- package/dist/schema-BGVOjcD7.cjs.map +0 -1
- package/dist/schema-ChlpIaqA.js +0 -39
- package/dist/schema-ChlpIaqA.js.map +0 -1
- package/dist/schema-Cp8XI7-D.d.ts +0 -14379
- package/dist/schema-Cp8XI7-D.d.ts.map +0 -1
- package/dist/schema-D5oT-Zi7.d.cts +0 -14379
- package/dist/schema-D5oT-Zi7.d.cts.map +0 -1
- package/dist/schema-DE4JpUSi.cjs +0 -744
- package/dist/schema-DE4JpUSi.cjs.map +0 -1
- package/dist/schema-DkZXVCQJ.js +0 -462
- package/dist/schema-DkZXVCQJ.js.map +0 -1
- package/dist/schema.cjs +0 -22
- package/dist/schema.d.cts +0 -34
- package/dist/schema.d.cts.map +0 -1
- package/dist/schema.d.ts +0 -34
- package/dist/schema.d.ts.map +0 -1
- package/dist/schema.js +0 -6
- package/dist/search-docs-DdOFZY3t.cjs +0 -97
- package/dist/search-docs-DdOFZY3t.cjs.map +0 -1
- package/dist/search-docs-YYBTOWY5.js +0 -91
- package/dist/search-docs-YYBTOWY5.js.map +0 -1
- package/dist/search-events-B-MXKSB_.js +0 -0
- package/dist/search-events-BrEw3wC-.cjs +0 -0
- package/dist/search-issues-C7Zs6rFB.cjs +0 -0
- package/dist/search-issues-DUSkomYp.js +0 -0
- package/dist/seer-CSFgx4AP.js +0 -89
- package/dist/seer-CSFgx4AP.js.map +0 -1
- package/dist/seer-sA1asAZs.cjs +0 -143
- package/dist/seer-sA1asAZs.cjs.map +0 -1
- package/dist/sentry-3DC3Kob2.cjs +0 -110
- package/dist/sentry-3DC3Kob2.cjs.map +0 -1
- package/dist/sentry-CfePWwtE.d.cts +0 -9
- package/dist/sentry-CfePWwtE.d.cts.map +0 -1
- package/dist/sentry-Cfj4OGMQ.js +0 -104
- package/dist/sentry-Cfj4OGMQ.js.map +0 -1
- package/dist/sentry-DKiJwGZX.d.ts +0 -9
- package/dist/sentry-DKiJwGZX.d.ts.map +0 -1
- package/dist/server-BQBA0VNe.cjs +0 -353
- package/dist/server-BQBA0VNe.cjs.map +0 -1
- package/dist/server-BVqPcPfx.js +0 -335
- package/dist/server-BVqPcPfx.js.map +0 -1
- package/dist/server.cjs +0 -65
- package/dist/server.d.cts +0 -59
- package/dist/server.d.cts.map +0 -1
- package/dist/server.d.ts +0 -59
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js +0 -65
- package/dist/skillDefinitions.cjs +0 -53
- package/dist/skillDefinitions.cjs.map +0 -1
- package/dist/skillDefinitions.d.cts +0 -13
- package/dist/skillDefinitions.d.cts.map +0 -1
- package/dist/skillDefinitions.d.ts +0 -13
- package/dist/skillDefinitions.d.ts.map +0 -1
- package/dist/skillDefinitions.js +0 -52
- package/dist/skillDefinitions.js.map +0 -1
- package/dist/skills-BmFl7P6V.js +0 -94
- package/dist/skills-BmFl7P6V.js.map +0 -1
- package/dist/skills-COOuBrrA.cjs +0 -148
- package/dist/skills-COOuBrrA.cjs.map +0 -1
- package/dist/skills-HlAeBq_E.d.cts +0 -33
- package/dist/skills-HlAeBq_E.d.cts.map +0 -1
- package/dist/skills-g0WCenTA.d.ts +0 -33
- package/dist/skills-g0WCenTA.d.ts.map +0 -1
- package/dist/skills.cjs +0 -11
- package/dist/skills.d.cts +0 -2
- package/dist/skills.d.ts +0 -2
- package/dist/skills.js +0 -3
- package/dist/slug-validation-Bkteg65O.js +0 -93
- package/dist/slug-validation-Bkteg65O.js.map +0 -1
- package/dist/slug-validation-D5VJqMwH.cjs +0 -111
- package/dist/slug-validation-D5VJqMwH.cjs.map +0 -1
- package/dist/stdio-DPvrKLnJ.cjs.map +0 -1
- package/dist/stdio-YKMCj_QV.js.map +0 -1
- package/dist/telem/index.cjs +0 -10
- package/dist/telem/index.d.cts +0 -3
- package/dist/telem/index.d.ts +0 -3
- package/dist/telem/index.js +0 -4
- package/dist/telem/logging.cjs +0 -9
- package/dist/telem/logging.d.cts +0 -2
- package/dist/telem/logging.d.ts +0 -2
- package/dist/telem/logging.js +0 -3
- package/dist/telem/sentry.cjs +0 -3
- package/dist/telem/sentry.d.cts +0 -2
- package/dist/telem/sentry.d.ts +0 -2
- package/dist/telem/sentry.js +0 -3
- package/dist/test-setup.cjs +0 -56
- package/dist/test-setup.cjs.map +0 -1
- package/dist/test-setup.d.cts +0 -33
- package/dist/test-setup.d.cts.map +0 -1
- package/dist/test-setup.d.ts +0 -33
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/test-setup.js +0 -55
- package/dist/test-setup.js.map +0 -1
- package/dist/test-utils/context.cjs +0 -32
- package/dist/test-utils/context.cjs.map +0 -1
- package/dist/test-utils/context.d.cts +0 -18
- package/dist/test-utils/context.d.cts.map +0 -1
- package/dist/test-utils/context.d.ts +0 -18
- package/dist/test-utils/context.d.ts.map +0 -1
- package/dist/test-utils/context.js +0 -30
- package/dist/test-utils/context.js.map +0 -1
- package/dist/toolDefinitions.cjs +0 -724
- package/dist/toolDefinitions.cjs.map +0 -1
- package/dist/toolDefinitions.d.cts +0 -13
- package/dist/toolDefinitions.d.cts.map +0 -1
- package/dist/toolDefinitions.d.ts +0 -13
- package/dist/toolDefinitions.d.ts.map +0 -1
- package/dist/toolDefinitions.js +0 -723
- package/dist/toolDefinitions.js.map +0 -1
- package/dist/tools/analyze-issue-with-seer.cjs +0 -24
- package/dist/tools/analyze-issue-with-seer.d.cts +0 -17
- package/dist/tools/analyze-issue-with-seer.d.cts.map +0 -1
- package/dist/tools/analyze-issue-with-seer.d.ts +0 -17
- package/dist/tools/analyze-issue-with-seer.d.ts.map +0 -1
- package/dist/tools/analyze-issue-with-seer.js +0 -24
- package/dist/tools/create-dsn.cjs +0 -19
- package/dist/tools/create-dsn.d.cts +0 -16
- package/dist/tools/create-dsn.d.cts.map +0 -1
- package/dist/tools/create-dsn.d.ts +0 -16
- package/dist/tools/create-dsn.d.ts.map +0 -1
- package/dist/tools/create-dsn.js +0 -19
- package/dist/tools/create-project.cjs +0 -19
- package/dist/tools/create-project.d.cts +0 -17
- package/dist/tools/create-project.d.cts.map +0 -1
- package/dist/tools/create-project.d.ts +0 -17
- package/dist/tools/create-project.d.ts.map +0 -1
- package/dist/tools/create-project.js +0 -19
- package/dist/tools/create-team.cjs +0 -19
- package/dist/tools/create-team.d.cts +0 -15
- package/dist/tools/create-team.d.cts.map +0 -1
- package/dist/tools/create-team.d.ts +0 -15
- package/dist/tools/create-team.d.ts.map +0 -1
- package/dist/tools/create-team.js +0 -19
- package/dist/tools/find-dsns.cjs +0 -19
- package/dist/tools/find-dsns.d.cts +0 -15
- package/dist/tools/find-dsns.d.cts.map +0 -1
- package/dist/tools/find-dsns.d.ts +0 -15
- package/dist/tools/find-dsns.d.ts.map +0 -1
- package/dist/tools/find-dsns.js +0 -19
- package/dist/tools/find-organizations.cjs +0 -19
- package/dist/tools/find-organizations.d.cts +0 -13
- package/dist/tools/find-organizations.d.cts.map +0 -1
- package/dist/tools/find-organizations.d.ts +0 -13
- package/dist/tools/find-organizations.d.ts.map +0 -1
- package/dist/tools/find-organizations.js +0 -19
- package/dist/tools/find-projects.cjs +0 -19
- package/dist/tools/find-projects.d.cts +0 -15
- package/dist/tools/find-projects.d.cts.map +0 -1
- package/dist/tools/find-projects.d.ts +0 -15
- package/dist/tools/find-projects.d.ts.map +0 -1
- package/dist/tools/find-projects.js +0 -19
- package/dist/tools/find-releases.cjs +0 -19
- package/dist/tools/find-releases.d.cts +0 -16
- package/dist/tools/find-releases.d.cts.map +0 -1
- package/dist/tools/find-releases.d.ts +0 -16
- package/dist/tools/find-releases.d.ts.map +0 -1
- package/dist/tools/find-releases.js +0 -19
- package/dist/tools/find-teams.cjs +0 -19
- package/dist/tools/find-teams.d.cts +0 -15
- package/dist/tools/find-teams.d.cts.map +0 -1
- package/dist/tools/find-teams.d.ts +0 -15
- package/dist/tools/find-teams.d.ts.map +0 -1
- package/dist/tools/find-teams.js +0 -19
- package/dist/tools/get-doc.cjs +0 -14
- package/dist/tools/get-doc.d.cts +0 -13
- package/dist/tools/get-doc.d.cts.map +0 -1
- package/dist/tools/get-doc.d.ts +0 -13
- package/dist/tools/get-doc.d.ts.map +0 -1
- package/dist/tools/get-doc.js +0 -14
- package/dist/tools/get-event-attachment.cjs +0 -19
- package/dist/tools/get-event-attachment.d.cts +0 -17
- package/dist/tools/get-event-attachment.d.cts.map +0 -1
- package/dist/tools/get-event-attachment.d.ts +0 -17
- package/dist/tools/get-event-attachment.d.ts.map +0 -1
- package/dist/tools/get-event-attachment.js +0 -19
- package/dist/tools/get-issue-details.cjs +0 -24
- package/dist/tools/get-issue-details.d.cts +0 -17
- package/dist/tools/get-issue-details.d.cts.map +0 -1
- package/dist/tools/get-issue-details.d.ts +0 -17
- package/dist/tools/get-issue-details.d.ts.map +0 -1
- package/dist/tools/get-issue-details.js +0 -24
- package/dist/tools/get-trace-details.cjs +0 -19
- package/dist/tools/get-trace-details.d.cts +0 -15
- package/dist/tools/get-trace-details.d.cts.map +0 -1
- package/dist/tools/get-trace-details.d.ts +0 -15
- package/dist/tools/get-trace-details.d.ts.map +0 -1
- package/dist/tools/get-trace-details.js +0 -19
- package/dist/tools/index.cjs +0 -65
- package/dist/tools/index.d.cts +0 -129
- package/dist/tools/index.d.cts.map +0 -1
- package/dist/tools/index.d.ts +0 -129
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -65
- package/dist/tools/search-docs.cjs +0 -18
- package/dist/tools/search-docs.d.cts +0 -15
- package/dist/tools/search-docs.d.cts.map +0 -1
- package/dist/tools/search-docs.d.ts +0 -15
- package/dist/tools/search-docs.d.ts.map +0 -1
- package/dist/tools/search-docs.js +0 -18
- package/dist/tools/search-events/agent.cjs +0 -20
- package/dist/tools/search-events/agent.d.cts +0 -7
- package/dist/tools/search-events/agent.d.ts +0 -7
- package/dist/tools/search-events/agent.js +0 -19
- package/dist/tools/search-events/config.cjs +0 -8
- package/dist/tools/search-events/config.d.cts +0 -132
- package/dist/tools/search-events/config.d.cts.map +0 -1
- package/dist/tools/search-events/config.d.ts +0 -132
- package/dist/tools/search-events/config.d.ts.map +0 -1
- package/dist/tools/search-events/config.js +0 -3
- package/dist/tools/search-events/formatters.cjs +0 -17
- package/dist/tools/search-events/formatters.d.cts +0 -43
- package/dist/tools/search-events/formatters.d.cts.map +0 -1
- package/dist/tools/search-events/formatters.d.ts +0 -43
- package/dist/tools/search-events/formatters.d.ts.map +0 -1
- package/dist/tools/search-events/formatters.js +0 -14
- package/dist/tools/search-events/handler.cjs +0 -28
- package/dist/tools/search-events/handler.d.cts +0 -6
- package/dist/tools/search-events/handler.d.ts +0 -6
- package/dist/tools/search-events/handler.js +0 -28
- package/dist/tools/search-events/index.cjs +0 -31
- package/dist/tools/search-events/index.d.cts +0 -12
- package/dist/tools/search-events/index.d.ts +0 -12
- package/dist/tools/search-events/index.js +0 -29
- package/dist/tools/search-events/utils.cjs +0 -17
- package/dist/tools/search-events/utils.d.cts +0 -8
- package/dist/tools/search-events/utils.d.ts +0 -8
- package/dist/tools/search-events/utils.js +0 -13
- package/dist/tools/search-issues/agent.cjs +0 -19
- package/dist/tools/search-issues/agent.d.cts +0 -7
- package/dist/tools/search-issues/agent.d.ts +0 -7
- package/dist/tools/search-issues/agent.js +0 -18
- package/dist/tools/search-issues/config.cjs +0 -3
- package/dist/tools/search-issues/config.d.cts +0 -9
- package/dist/tools/search-issues/config.d.cts.map +0 -1
- package/dist/tools/search-issues/config.d.ts +0 -9
- package/dist/tools/search-issues/config.d.ts.map +0 -1
- package/dist/tools/search-issues/config.js +0 -3
- package/dist/tools/search-issues/formatters.cjs +0 -5
- package/dist/tools/search-issues/formatters.d.cts +0 -28
- package/dist/tools/search-issues/formatters.d.cts.map +0 -1
- package/dist/tools/search-issues/formatters.d.ts +0 -28
- package/dist/tools/search-issues/formatters.d.ts.map +0 -1
- package/dist/tools/search-issues/formatters.js +0 -4
- package/dist/tools/search-issues/handler.cjs +0 -27
- package/dist/tools/search-issues/handler.d.cts +0 -6
- package/dist/tools/search-issues/handler.d.ts +0 -6
- package/dist/tools/search-issues/handler.js +0 -27
- package/dist/tools/search-issues/index.cjs +0 -30
- package/dist/tools/search-issues/index.d.cts +0 -12
- package/dist/tools/search-issues/index.d.ts +0 -12
- package/dist/tools/search-issues/index.js +0 -28
- package/dist/tools/types.cjs +0 -0
- package/dist/tools/types.d.cts +0 -5
- package/dist/tools/types.d.ts +0 -5
- package/dist/tools/types.js +0 -0
- package/dist/tools/update-issue.cjs +0 -24
- package/dist/tools/update-issue.d.cts +0 -18
- package/dist/tools/update-issue.d.cts.map +0 -1
- package/dist/tools/update-issue.d.ts +0 -18
- package/dist/tools/update-issue.d.ts.map +0 -1
- package/dist/tools/update-issue.js +0 -24
- package/dist/tools/update-project.cjs +0 -19
- package/dist/tools/update-project.d.cts +0 -19
- package/dist/tools/update-project.d.cts.map +0 -1
- package/dist/tools/update-project.d.ts +0 -19
- package/dist/tools/update-project.d.ts.map +0 -1
- package/dist/tools/update-project.js +0 -19
- package/dist/tools/use-sentry/agent.cjs +0 -8
- package/dist/tools/use-sentry/agent.d.cts +0 -3
- package/dist/tools/use-sentry/agent.d.ts +0 -3
- package/dist/tools/use-sentry/agent.js +0 -8
- package/dist/tools/use-sentry/config.cjs +0 -4
- package/dist/tools/use-sentry/config.d.cts +0 -21
- package/dist/tools/use-sentry/config.d.cts.map +0 -1
- package/dist/tools/use-sentry/config.d.ts +0 -21
- package/dist/tools/use-sentry/config.d.ts.map +0 -1
- package/dist/tools/use-sentry/config.js +0 -3
- package/dist/tools/use-sentry/handler.cjs +0 -65
- package/dist/tools/use-sentry/handler.d.cts +0 -6
- package/dist/tools/use-sentry/handler.d.ts +0 -6
- package/dist/tools/use-sentry/handler.js +0 -65
- package/dist/tools/use-sentry/index.cjs +0 -67
- package/dist/tools/use-sentry/index.d.cts +0 -8
- package/dist/tools/use-sentry/index.d.ts +0 -8
- package/dist/tools/use-sentry/index.js +0 -65
- package/dist/tools/use-sentry/tool-wrapper.cjs +0 -63
- package/dist/tools/use-sentry/tool-wrapper.cjs.map +0 -1
- package/dist/tools/use-sentry/tool-wrapper.d.cts +0 -119
- package/dist/tools/use-sentry/tool-wrapper.d.cts.map +0 -1
- package/dist/tools/use-sentry/tool-wrapper.d.ts +0 -119
- package/dist/tools/use-sentry/tool-wrapper.d.ts.map +0 -1
- package/dist/tools/use-sentry/tool-wrapper.js +0 -62
- package/dist/tools/use-sentry/tool-wrapper.js.map +0 -1
- package/dist/tools/whoami.cjs +0 -17
- package/dist/tools/whoami.d.cts +0 -10
- package/dist/tools/whoami.d.cts.map +0 -1
- package/dist/tools/whoami.d.ts +0 -10
- package/dist/tools/whoami.d.ts.map +0 -1
- package/dist/tools/whoami.js +0 -17
- package/dist/types-B_3dsqbN.d.cts +0 -38
- package/dist/types-B_3dsqbN.d.cts.map +0 -1
- package/dist/types-CZI-5yyV.d.cts +0 -40
- package/dist/types-CZI-5yyV.d.cts.map +0 -1
- package/dist/types-CokRupPo.d.cts +0 -33
- package/dist/types-CokRupPo.d.cts.map +0 -1
- package/dist/types-D670-rDz.js +0 -0
- package/dist/types-OrkP7cEA.d.ts +0 -33
- package/dist/types-OrkP7cEA.d.ts.map +0 -1
- package/dist/types-WcBA7ZSQ.d.ts +0 -40
- package/dist/types-WcBA7ZSQ.d.ts.map +0 -1
- package/dist/types-n3wuZu5X.cjs +0 -0
- package/dist/types-u52qwG59.d.ts +0 -38
- package/dist/types-u52qwG59.d.ts.map +0 -1
- package/dist/types.cjs +0 -16
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -4
- package/dist/types.d.ts +0 -4
- package/dist/types.js +0 -15
- package/dist/types.js.map +0 -1
- package/dist/update-issue-B35n8MDT.js +0 -118
- package/dist/update-issue-B35n8MDT.js.map +0 -1
- package/dist/update-issue-DOVD2zXD.cjs +0 -124
- package/dist/update-issue-DOVD2zXD.cjs.map +0 -1
- package/dist/update-project-D361nWlU.js +0 -128
- package/dist/update-project-D361nWlU.js.map +0 -1
- package/dist/update-project-DG3bwhNA.cjs +0 -134
- package/dist/update-project-DG3bwhNA.cjs.map +0 -1
- package/dist/url-utils-CbcNJVYS.cjs +0 -235
- package/dist/url-utils-CbcNJVYS.cjs.map +0 -1
- package/dist/url-utils-CfKwo6s5.js +0 -175
- package/dist/url-utils-CfKwo6s5.js.map +0 -1
- package/dist/usage-CMWaPhZv.cjs.map +0 -1
- package/dist/usage-CpguKuwi.js.map +0 -1
- package/dist/utils/slug-validation.cjs +0 -5
- package/dist/utils/slug-validation.d.cts +0 -51
- package/dist/utils/slug-validation.d.cts.map +0 -1
- package/dist/utils/slug-validation.d.ts +0 -51
- package/dist/utils/slug-validation.d.ts.map +0 -1
- package/dist/utils/slug-validation.js +0 -3
- package/dist/utils/url-utils.cjs +0 -12
- package/dist/utils/url-utils.d.cts +0 -87
- package/dist/utils/url-utils.d.cts.map +0 -1
- package/dist/utils/url-utils.d.ts +0 -87
- package/dist/utils/url-utils.d.ts.map +0 -1
- package/dist/utils/url-utils.js +0 -3
- package/dist/utils-Bzaer0D1.d.ts +0 -43
- package/dist/utils-Bzaer0D1.d.ts.map +0 -1
- package/dist/utils-C5oiuqkh.d.cts +0 -39
- package/dist/utils-C5oiuqkh.d.cts.map +0 -1
- package/dist/utils-CAWsA9Cl.d.cts +0 -43
- package/dist/utils-CAWsA9Cl.d.cts.map +0 -1
- package/dist/utils-CIt6Amml.cjs +0 -124
- package/dist/utils-CIt6Amml.cjs.map +0 -1
- package/dist/utils-CaNeCYCH.js +0 -94
- package/dist/utils-CaNeCYCH.js.map +0 -1
- package/dist/utils-CrKFhSC3.d.ts +0 -39
- package/dist/utils-CrKFhSC3.d.ts.map +0 -1
- package/dist/utils-DJIwl8YR.cjs +0 -96
- package/dist/utils-DJIwl8YR.cjs.map +0 -1
- package/dist/utils-DOb7bs5_.js +0 -90
- package/dist/utils-DOb7bs5_.js.map +0 -1
- package/dist/validate-region-url-Bdokgz65.js +0 -37
- package/dist/validate-region-url-Bdokgz65.js.map +0 -1
- package/dist/validate-region-url-BvT-IgKg.cjs +0 -42
- package/dist/validate-region-url-BvT-IgKg.cjs.map +0 -1
- package/dist/version-CCICHYna.js +0 -7
- package/dist/version-CCICHYna.js.map +0 -1
- package/dist/version-CPcX-30c.cjs +0 -19
- package/dist/version-CPcX-30c.cjs.map +0 -1
- package/dist/version.cjs +0 -4
- package/dist/version.d.cts +0 -8
- package/dist/version.d.cts.map +0 -1
- package/dist/version.d.ts +0 -8
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -3
- package/dist/whoami-9JymZ3NV.cjs +0 -46
- package/dist/whoami-9JymZ3NV.cjs.map +0 -1
- package/dist/whoami-BsX-LoXG.js +0 -34
- package/dist/whoami-BsX-LoXG.js.map +0 -1
- package/dist/whoami-CRF9Ws25.cjs +0 -44
- package/dist/whoami-CRF9Ws25.cjs.map +0 -1
- package/dist/whoami-DCZN-m7R.js +0 -39
- package/dist/whoami-DCZN-m7R.js.map +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_define = require('./define-CLp6EtpZ.cjs');
|
|
3
|
-
const require_api = require('./api-CHgBJOv9.cjs');
|
|
4
|
-
const require_schema = require('./schema-BGVOjcD7.cjs');
|
|
5
|
-
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
7
|
-
|
|
8
|
-
//#region src/tools/create-team.ts
|
|
9
|
-
var create_team_default = require_define.defineTool({
|
|
10
|
-
name: "create_team",
|
|
11
|
-
requiredSkills: ["project-management"],
|
|
12
|
-
requiredScopes: ["team:write"],
|
|
13
|
-
description: [
|
|
14
|
-
"Create a new team in Sentry.",
|
|
15
|
-
"",
|
|
16
|
-
"🔍 USE THIS TOOL WHEN USERS WANT TO:",
|
|
17
|
-
"- 'Create a new team'",
|
|
18
|
-
"- 'Set up a team called [X]'",
|
|
19
|
-
"- 'I need a team for my project'",
|
|
20
|
-
"",
|
|
21
|
-
"Be careful when using this tool!",
|
|
22
|
-
"",
|
|
23
|
-
"<examples>",
|
|
24
|
-
"### Create a new team",
|
|
25
|
-
"```",
|
|
26
|
-
"create_team(organizationSlug='my-organization', name='the-goats')",
|
|
27
|
-
"```",
|
|
28
|
-
"</examples>",
|
|
29
|
-
"",
|
|
30
|
-
"<hints>",
|
|
31
|
-
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
32
|
-
"</hints>"
|
|
33
|
-
].join("\n"),
|
|
34
|
-
inputSchema: {
|
|
35
|
-
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
36
|
-
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
37
|
-
name: zod.z.string().trim().describe("The name of the team to create.")
|
|
38
|
-
},
|
|
39
|
-
annotations: {
|
|
40
|
-
readOnlyHint: false,
|
|
41
|
-
destructiveHint: false,
|
|
42
|
-
openWorldHint: true
|
|
43
|
-
},
|
|
44
|
-
async handler(params, context) {
|
|
45
|
-
const apiService = require_api.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
46
|
-
const organizationSlug = params.organizationSlug;
|
|
47
|
-
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
48
|
-
const team = await apiService.createTeam({
|
|
49
|
-
organizationSlug,
|
|
50
|
-
name: params.name
|
|
51
|
-
});
|
|
52
|
-
let output = `# New Team in **${organizationSlug}**\n\n`;
|
|
53
|
-
output += `**ID**: ${team.id}\n`;
|
|
54
|
-
output += `**Slug**: ${team.slug}\n`;
|
|
55
|
-
output += `**Name**: ${team.name}\n`;
|
|
56
|
-
output += "# Using this information\n\n";
|
|
57
|
-
output += `- You should always inform the user of the Team Slug value.\n`;
|
|
58
|
-
return output;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
Object.defineProperty(exports, 'create_team_default', {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () {
|
|
66
|
-
return create_team_default;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=create-team-DFSriKVL.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-team-DFSriKVL.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/create-team.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 type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n requiredSkills: [\"project-management\"], // Only available in project-management skill\n requiredScopes: [\"team:write\"],\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"🔍 USE THIS TOOL WHEN USERS WANT TO:\",\n \"- 'Create a new team'\",\n \"- 'Set up a team called [X]'\",\n \"- 'I need a team for my project'\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"<examples>\",\n \"### Create a new team\",\n \"```\",\n \"create_team(organizationSlug='my-organization', name='the-goats')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAOA,0BAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,oBAAqB;CACtC,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,aAAa;EACX,cAAc;EACd,iBAAiB;EACjB,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_utils = require('./utils-DJIwl8YR.cjs');
|
|
3
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
4
|
-
|
|
5
|
-
//#region src/internal/agents/tools/dataset-fields.ts
|
|
6
|
-
/**
|
|
7
|
-
* Discover available fields for a dataset by querying Sentry's tags API
|
|
8
|
-
*/
|
|
9
|
-
async function discoverDatasetFields(apiService, organizationSlug, dataset, options = {}) {
|
|
10
|
-
const { projectId } = options;
|
|
11
|
-
const tags = await apiService.listTags({
|
|
12
|
-
organizationSlug,
|
|
13
|
-
dataset,
|
|
14
|
-
project: projectId,
|
|
15
|
-
statsPeriod: "14d"
|
|
16
|
-
});
|
|
17
|
-
const fields = tags.filter((tag) => !tag.key.startsWith("sentry:")).map((tag) => ({
|
|
18
|
-
key: tag.key,
|
|
19
|
-
name: tag.name,
|
|
20
|
-
totalValues: tag.totalValues,
|
|
21
|
-
examples: getFieldExamples(tag.key, dataset)
|
|
22
|
-
}));
|
|
23
|
-
return {
|
|
24
|
-
dataset,
|
|
25
|
-
fields,
|
|
26
|
-
commonPatterns: getCommonPatterns(dataset)
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Create a tool for discovering available fields in a dataset
|
|
31
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
32
|
-
*/
|
|
33
|
-
function createDatasetFieldsTool(options) {
|
|
34
|
-
const { apiService, organizationSlug, dataset, projectId } = options;
|
|
35
|
-
return require_utils.agentTool({
|
|
36
|
-
description: `Discover available fields for ${dataset} searches in Sentry (includes example values)`,
|
|
37
|
-
parameters: zod.z.object({}),
|
|
38
|
-
execute: async () => {
|
|
39
|
-
return discoverDatasetFields(apiService, organizationSlug, dataset, { projectId });
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get example values for common fields
|
|
45
|
-
*/
|
|
46
|
-
function getFieldExamples(key, dataset) {
|
|
47
|
-
const commonExamples = {
|
|
48
|
-
level: [
|
|
49
|
-
"error",
|
|
50
|
-
"warning",
|
|
51
|
-
"info",
|
|
52
|
-
"debug",
|
|
53
|
-
"fatal"
|
|
54
|
-
],
|
|
55
|
-
environment: [
|
|
56
|
-
"production",
|
|
57
|
-
"staging",
|
|
58
|
-
"development"
|
|
59
|
-
],
|
|
60
|
-
release: [
|
|
61
|
-
"v1.0.0",
|
|
62
|
-
"latest",
|
|
63
|
-
"backend@1.2.3"
|
|
64
|
-
],
|
|
65
|
-
user: ["user123", "email@example.com"]
|
|
66
|
-
};
|
|
67
|
-
const issueExamples = {
|
|
68
|
-
...commonExamples,
|
|
69
|
-
assignedOrSuggested: [
|
|
70
|
-
"email@example.com",
|
|
71
|
-
"team-slug",
|
|
72
|
-
"me"
|
|
73
|
-
],
|
|
74
|
-
is: [
|
|
75
|
-
"unresolved",
|
|
76
|
-
"resolved",
|
|
77
|
-
"ignored"
|
|
78
|
-
]
|
|
79
|
-
};
|
|
80
|
-
const eventExamples = {
|
|
81
|
-
...commonExamples,
|
|
82
|
-
"http.method": [
|
|
83
|
-
"GET",
|
|
84
|
-
"POST",
|
|
85
|
-
"PUT",
|
|
86
|
-
"DELETE"
|
|
87
|
-
],
|
|
88
|
-
"http.status_code": [
|
|
89
|
-
"200",
|
|
90
|
-
"404",
|
|
91
|
-
"500"
|
|
92
|
-
],
|
|
93
|
-
"db.system": [
|
|
94
|
-
"postgresql",
|
|
95
|
-
"mysql",
|
|
96
|
-
"redis"
|
|
97
|
-
]
|
|
98
|
-
};
|
|
99
|
-
if (dataset === "search_issues") return issueExamples[key];
|
|
100
|
-
if (dataset === "events" || dataset === "errors") return eventExamples[key];
|
|
101
|
-
return commonExamples[key];
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Get common search patterns for a dataset
|
|
105
|
-
*/
|
|
106
|
-
function getCommonPatterns(dataset) {
|
|
107
|
-
if (dataset === "search_issues") return [
|
|
108
|
-
{
|
|
109
|
-
pattern: "is:unresolved",
|
|
110
|
-
description: "Open issues"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
pattern: "is:resolved",
|
|
114
|
-
description: "Closed issues"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
pattern: "level:error",
|
|
118
|
-
description: "Error level issues"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
pattern: "firstSeen:-24h",
|
|
122
|
-
description: "New issues from last 24 hours"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
pattern: "userCount:>100",
|
|
126
|
-
description: "Affecting more than 100 users"
|
|
127
|
-
}
|
|
128
|
-
];
|
|
129
|
-
if (dataset === "events" || dataset === "errors") return [
|
|
130
|
-
{
|
|
131
|
-
pattern: "level:error",
|
|
132
|
-
description: "Error events"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
pattern: "environment:production",
|
|
136
|
-
description: "Production events"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
pattern: "timestamp:-1h",
|
|
140
|
-
description: "Events from last hour"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
pattern: "has:http.method",
|
|
144
|
-
description: "HTTP requests"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
pattern: "has:db.statement",
|
|
148
|
-
description: "Database queries"
|
|
149
|
-
}
|
|
150
|
-
];
|
|
151
|
-
return [];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
//#endregion
|
|
155
|
-
Object.defineProperty(exports, 'createDatasetFieldsTool', {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () {
|
|
158
|
-
return createDatasetFieldsTool;
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(exports, 'discoverDatasetFields', {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () {
|
|
164
|
-
return discoverDatasetFields;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(exports, 'getCommonPatterns', {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
get: function () {
|
|
170
|
-
return getCommonPatterns;
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, 'getFieldExamples', {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () {
|
|
176
|
-
return getFieldExamples;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
//# sourceMappingURL=dataset-fields-Bp_g-sD6.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataset-fields-Bp_g-sD6.cjs","names":["apiService: SentryApiService","organizationSlug: string","dataset: DatasetType","options: {\n projectId?: string;\n }","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n dataset: DatasetType;\n projectId?: string;\n}","key: string","dataset: string","commonExamples: Record<string, string[]>","issueExamples: Record<string, string[]>","eventExamples: Record<string, string[]>"],"sources":["../src/internal/agents/tools/dataset-fields.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport type DatasetType = \"events\" | \"errors\" | \"search_issues\";\n\nexport interface DatasetField {\n key: string;\n name: string;\n totalValues: number;\n examples?: string[];\n}\n\nexport interface DatasetFieldsResult {\n dataset: string;\n fields: DatasetField[];\n commonPatterns: Array<{ pattern: string; description: string }>;\n}\n\n/**\n * Discover available fields for a dataset by querying Sentry's tags API\n */\nexport async function discoverDatasetFields(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: DatasetType,\n options: {\n projectId?: string;\n } = {},\n): Promise<DatasetFieldsResult> {\n const { projectId } = options;\n\n // Get available tags for the dataset\n const tags = await apiService.listTags({\n organizationSlug,\n dataset,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n // Filter out internal Sentry tags and format\n const fields = tags\n .filter((tag) => !tag.key.startsWith(\"sentry:\"))\n .map((tag) => ({\n key: tag.key,\n name: tag.name,\n totalValues: tag.totalValues,\n examples: getFieldExamples(tag.key, dataset),\n }));\n\n return {\n dataset,\n fields,\n commonPatterns: getCommonPatterns(dataset),\n };\n}\n\n/**\n * Create a tool for discovering available fields in a dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetFieldsTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n dataset: DatasetType;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, dataset, projectId } = options;\n return agentTool({\n description: `Discover available fields for ${dataset} searches in Sentry (includes example values)`,\n parameters: z.object({}),\n execute: async () => {\n return discoverDatasetFields(apiService, organizationSlug, dataset, {\n projectId,\n });\n },\n });\n}\n\n/**\n * Get example values for common fields\n */\nexport function getFieldExamples(\n key: string,\n dataset: string,\n): string[] | undefined {\n const commonExamples: Record<string, string[]> = {\n level: [\"error\", \"warning\", \"info\", \"debug\", \"fatal\"],\n environment: [\"production\", \"staging\", \"development\"],\n release: [\"v1.0.0\", \"latest\", \"backend@1.2.3\"],\n user: [\"user123\", \"email@example.com\"],\n };\n\n const issueExamples: Record<string, string[]> = {\n ...commonExamples,\n assignedOrSuggested: [\"email@example.com\", \"team-slug\", \"me\"],\n is: [\"unresolved\", \"resolved\", \"ignored\"],\n };\n\n const eventExamples: Record<string, string[]> = {\n ...commonExamples,\n \"http.method\": [\"GET\", \"POST\", \"PUT\", \"DELETE\"],\n \"http.status_code\": [\"200\", \"404\", \"500\"],\n \"db.system\": [\"postgresql\", \"mysql\", \"redis\"],\n };\n\n if (dataset === \"search_issues\") {\n return issueExamples[key];\n }\n if (dataset === \"events\" || dataset === \"errors\") {\n return eventExamples[key];\n }\n\n return commonExamples[key];\n}\n\n/**\n * Get common search patterns for a dataset\n */\nexport function getCommonPatterns(dataset: string) {\n if (dataset === \"search_issues\") {\n return [\n { pattern: \"is:unresolved\", description: \"Open issues\" },\n { pattern: \"is:resolved\", description: \"Closed issues\" },\n { pattern: \"level:error\", description: \"Error level issues\" },\n {\n pattern: \"firstSeen:-24h\",\n description: \"New issues from last 24 hours\",\n },\n {\n pattern: \"userCount:>100\",\n description: \"Affecting more than 100 users\",\n },\n ];\n }\n if (dataset === \"events\" || dataset === \"errors\") {\n return [\n { pattern: \"level:error\", description: \"Error events\" },\n { pattern: \"environment:production\", description: \"Production events\" },\n { pattern: \"timestamp:-1h\", description: \"Events from last hour\" },\n { pattern: \"has:http.method\", description: \"HTTP requests\" },\n { pattern: \"has:db.statement\", description: \"Database queries\" },\n ];\n }\n\n return [];\n}\n"],"mappings":";;;;;;;;AAsBA,eAAsB,sBACpBA,YACAC,kBACAC,SACAC,UAEI,CAAE,GACwB;CAC9B,MAAM,EAAE,WAAW,GAAG;CAGtB,MAAM,OAAO,MAAM,WAAW,SAAS;EACrC;EACA;EACA,SAAS;EACT,aAAa;CACd,EAAC;CAGF,MAAM,SAAS,KACZ,OAAO,CAAC,SAAS,IAAI,IAAI,WAAW,UAAU,CAAC,CAC/C,IAAI,CAAC,SAAS;EACb,KAAK,IAAI;EACT,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,UAAU,iBAAiB,IAAI,KAAK,QAAQ;CAC7C,GAAE;AAEL,QAAO;EACL;EACA;EACA,gBAAgB,kBAAkB,QAAQ;CAC3C;AACF;;;;;AAMD,SAAgB,wBAAwBC,SAKrC;CACD,MAAM,EAAE,YAAY,kBAAkB,SAAS,WAAW,GAAG;AAC7D,QAAO,wBAAU;EACf,cAAc,gCAAgC,QAAQ;EACtD,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;AACnB,UAAO,sBAAsB,YAAY,kBAAkB,SAAS,EAClE,UACD,EAAC;EACH;CACF,EAAC;AACH;;;;AAKD,SAAgB,iBACdC,KACAC,SACsB;CACtB,MAAMC,iBAA2C;EAC/C,OAAO;GAAC;GAAS;GAAW;GAAQ;GAAS;EAAQ;EACrD,aAAa;GAAC;GAAc;GAAW;EAAc;EACrD,SAAS;GAAC;GAAU;GAAU;EAAgB;EAC9C,MAAM,CAAC,WAAW,mBAAoB;CACvC;CAED,MAAMC,gBAA0C;EAC9C,GAAG;EACH,qBAAqB;GAAC;GAAqB;GAAa;EAAK;EAC7D,IAAI;GAAC;GAAc;GAAY;EAAU;CAC1C;CAED,MAAMC,gBAA0C;EAC9C,GAAG;EACH,eAAe;GAAC;GAAO;GAAQ;GAAO;EAAS;EAC/C,oBAAoB;GAAC;GAAO;GAAO;EAAM;EACzC,aAAa;GAAC;GAAc;GAAS;EAAQ;CAC9C;AAED,KAAI,YAAY,gBACd,QAAO,cAAc;AAEvB,KAAI,YAAY,YAAY,YAAY,SACtC,QAAO,cAAc;AAGvB,QAAO,eAAe;AACvB;;;;AAKD,SAAgB,kBAAkBH,SAAiB;AACjD,KAAI,YAAY,gBACd,QAAO;EACL;GAAE,SAAS;GAAiB,aAAa;EAAe;EACxD;GAAE,SAAS;GAAe,aAAa;EAAiB;EACxD;GAAE,SAAS;GAAe,aAAa;EAAsB;EAC7D;GACE,SAAS;GACT,aAAa;EACd;EACD;GACE,SAAS;GACT,aAAa;EACd;CACF;AAEH,KAAI,YAAY,YAAY,YAAY,SACtC,QAAO;EACL;GAAE,SAAS;GAAe,aAAa;EAAgB;EACvD;GAAE,SAAS;GAA0B,aAAa;EAAqB;EACvE;GAAE,SAAS;GAAiB,aAAa;EAAyB;EAClE;GAAE,SAAS;GAAmB,aAAa;EAAiB;EAC5D;GAAE,SAAS;GAAoB,aAAa;EAAoB;CACjE;AAGH,QAAO,CAAE;AACV"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { agentTool } from "./utils-DOb7bs5_.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/internal/agents/tools/dataset-fields.ts
|
|
5
|
-
/**
|
|
6
|
-
* Discover available fields for a dataset by querying Sentry's tags API
|
|
7
|
-
*/
|
|
8
|
-
async function discoverDatasetFields(apiService, organizationSlug, dataset, options = {}) {
|
|
9
|
-
const { projectId } = options;
|
|
10
|
-
const tags = await apiService.listTags({
|
|
11
|
-
organizationSlug,
|
|
12
|
-
dataset,
|
|
13
|
-
project: projectId,
|
|
14
|
-
statsPeriod: "14d"
|
|
15
|
-
});
|
|
16
|
-
const fields = tags.filter((tag) => !tag.key.startsWith("sentry:")).map((tag) => ({
|
|
17
|
-
key: tag.key,
|
|
18
|
-
name: tag.name,
|
|
19
|
-
totalValues: tag.totalValues,
|
|
20
|
-
examples: getFieldExamples(tag.key, dataset)
|
|
21
|
-
}));
|
|
22
|
-
return {
|
|
23
|
-
dataset,
|
|
24
|
-
fields,
|
|
25
|
-
commonPatterns: getCommonPatterns(dataset)
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Create a tool for discovering available fields in a dataset
|
|
30
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
31
|
-
*/
|
|
32
|
-
function createDatasetFieldsTool(options) {
|
|
33
|
-
const { apiService, organizationSlug, dataset, projectId } = options;
|
|
34
|
-
return agentTool({
|
|
35
|
-
description: `Discover available fields for ${dataset} searches in Sentry (includes example values)`,
|
|
36
|
-
parameters: z.object({}),
|
|
37
|
-
execute: async () => {
|
|
38
|
-
return discoverDatasetFields(apiService, organizationSlug, dataset, { projectId });
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get example values for common fields
|
|
44
|
-
*/
|
|
45
|
-
function getFieldExamples(key, dataset) {
|
|
46
|
-
const commonExamples = {
|
|
47
|
-
level: [
|
|
48
|
-
"error",
|
|
49
|
-
"warning",
|
|
50
|
-
"info",
|
|
51
|
-
"debug",
|
|
52
|
-
"fatal"
|
|
53
|
-
],
|
|
54
|
-
environment: [
|
|
55
|
-
"production",
|
|
56
|
-
"staging",
|
|
57
|
-
"development"
|
|
58
|
-
],
|
|
59
|
-
release: [
|
|
60
|
-
"v1.0.0",
|
|
61
|
-
"latest",
|
|
62
|
-
"backend@1.2.3"
|
|
63
|
-
],
|
|
64
|
-
user: ["user123", "email@example.com"]
|
|
65
|
-
};
|
|
66
|
-
const issueExamples = {
|
|
67
|
-
...commonExamples,
|
|
68
|
-
assignedOrSuggested: [
|
|
69
|
-
"email@example.com",
|
|
70
|
-
"team-slug",
|
|
71
|
-
"me"
|
|
72
|
-
],
|
|
73
|
-
is: [
|
|
74
|
-
"unresolved",
|
|
75
|
-
"resolved",
|
|
76
|
-
"ignored"
|
|
77
|
-
]
|
|
78
|
-
};
|
|
79
|
-
const eventExamples = {
|
|
80
|
-
...commonExamples,
|
|
81
|
-
"http.method": [
|
|
82
|
-
"GET",
|
|
83
|
-
"POST",
|
|
84
|
-
"PUT",
|
|
85
|
-
"DELETE"
|
|
86
|
-
],
|
|
87
|
-
"http.status_code": [
|
|
88
|
-
"200",
|
|
89
|
-
"404",
|
|
90
|
-
"500"
|
|
91
|
-
],
|
|
92
|
-
"db.system": [
|
|
93
|
-
"postgresql",
|
|
94
|
-
"mysql",
|
|
95
|
-
"redis"
|
|
96
|
-
]
|
|
97
|
-
};
|
|
98
|
-
if (dataset === "search_issues") return issueExamples[key];
|
|
99
|
-
if (dataset === "events" || dataset === "errors") return eventExamples[key];
|
|
100
|
-
return commonExamples[key];
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Get common search patterns for a dataset
|
|
104
|
-
*/
|
|
105
|
-
function getCommonPatterns(dataset) {
|
|
106
|
-
if (dataset === "search_issues") return [
|
|
107
|
-
{
|
|
108
|
-
pattern: "is:unresolved",
|
|
109
|
-
description: "Open issues"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
pattern: "is:resolved",
|
|
113
|
-
description: "Closed issues"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
pattern: "level:error",
|
|
117
|
-
description: "Error level issues"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
pattern: "firstSeen:-24h",
|
|
121
|
-
description: "New issues from last 24 hours"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
pattern: "userCount:>100",
|
|
125
|
-
description: "Affecting more than 100 users"
|
|
126
|
-
}
|
|
127
|
-
];
|
|
128
|
-
if (dataset === "events" || dataset === "errors") return [
|
|
129
|
-
{
|
|
130
|
-
pattern: "level:error",
|
|
131
|
-
description: "Error events"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
pattern: "environment:production",
|
|
135
|
-
description: "Production events"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
pattern: "timestamp:-1h",
|
|
139
|
-
description: "Events from last hour"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
pattern: "has:http.method",
|
|
143
|
-
description: "HTTP requests"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
pattern: "has:db.statement",
|
|
147
|
-
description: "Database queries"
|
|
148
|
-
}
|
|
149
|
-
];
|
|
150
|
-
return [];
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//#endregion
|
|
154
|
-
export { createDatasetFieldsTool, discoverDatasetFields, getCommonPatterns, getFieldExamples };
|
|
155
|
-
//# sourceMappingURL=dataset-fields-dZ43jEgF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataset-fields-dZ43jEgF.js","names":["apiService: SentryApiService","organizationSlug: string","dataset: DatasetType","options: {\n projectId?: string;\n }","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n dataset: DatasetType;\n projectId?: string;\n}","key: string","dataset: string","commonExamples: Record<string, string[]>","issueExamples: Record<string, string[]>","eventExamples: Record<string, string[]>"],"sources":["../src/internal/agents/tools/dataset-fields.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport type DatasetType = \"events\" | \"errors\" | \"search_issues\";\n\nexport interface DatasetField {\n key: string;\n name: string;\n totalValues: number;\n examples?: string[];\n}\n\nexport interface DatasetFieldsResult {\n dataset: string;\n fields: DatasetField[];\n commonPatterns: Array<{ pattern: string; description: string }>;\n}\n\n/**\n * Discover available fields for a dataset by querying Sentry's tags API\n */\nexport async function discoverDatasetFields(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: DatasetType,\n options: {\n projectId?: string;\n } = {},\n): Promise<DatasetFieldsResult> {\n const { projectId } = options;\n\n // Get available tags for the dataset\n const tags = await apiService.listTags({\n organizationSlug,\n dataset,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n // Filter out internal Sentry tags and format\n const fields = tags\n .filter((tag) => !tag.key.startsWith(\"sentry:\"))\n .map((tag) => ({\n key: tag.key,\n name: tag.name,\n totalValues: tag.totalValues,\n examples: getFieldExamples(tag.key, dataset),\n }));\n\n return {\n dataset,\n fields,\n commonPatterns: getCommonPatterns(dataset),\n };\n}\n\n/**\n * Create a tool for discovering available fields in a dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetFieldsTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n dataset: DatasetType;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, dataset, projectId } = options;\n return agentTool({\n description: `Discover available fields for ${dataset} searches in Sentry (includes example values)`,\n parameters: z.object({}),\n execute: async () => {\n return discoverDatasetFields(apiService, organizationSlug, dataset, {\n projectId,\n });\n },\n });\n}\n\n/**\n * Get example values for common fields\n */\nexport function getFieldExamples(\n key: string,\n dataset: string,\n): string[] | undefined {\n const commonExamples: Record<string, string[]> = {\n level: [\"error\", \"warning\", \"info\", \"debug\", \"fatal\"],\n environment: [\"production\", \"staging\", \"development\"],\n release: [\"v1.0.0\", \"latest\", \"backend@1.2.3\"],\n user: [\"user123\", \"email@example.com\"],\n };\n\n const issueExamples: Record<string, string[]> = {\n ...commonExamples,\n assignedOrSuggested: [\"email@example.com\", \"team-slug\", \"me\"],\n is: [\"unresolved\", \"resolved\", \"ignored\"],\n };\n\n const eventExamples: Record<string, string[]> = {\n ...commonExamples,\n \"http.method\": [\"GET\", \"POST\", \"PUT\", \"DELETE\"],\n \"http.status_code\": [\"200\", \"404\", \"500\"],\n \"db.system\": [\"postgresql\", \"mysql\", \"redis\"],\n };\n\n if (dataset === \"search_issues\") {\n return issueExamples[key];\n }\n if (dataset === \"events\" || dataset === \"errors\") {\n return eventExamples[key];\n }\n\n return commonExamples[key];\n}\n\n/**\n * Get common search patterns for a dataset\n */\nexport function getCommonPatterns(dataset: string) {\n if (dataset === \"search_issues\") {\n return [\n { pattern: \"is:unresolved\", description: \"Open issues\" },\n { pattern: \"is:resolved\", description: \"Closed issues\" },\n { pattern: \"level:error\", description: \"Error level issues\" },\n {\n pattern: \"firstSeen:-24h\",\n description: \"New issues from last 24 hours\",\n },\n {\n pattern: \"userCount:>100\",\n description: \"Affecting more than 100 users\",\n },\n ];\n }\n if (dataset === \"events\" || dataset === \"errors\") {\n return [\n { pattern: \"level:error\", description: \"Error events\" },\n { pattern: \"environment:production\", description: \"Production events\" },\n { pattern: \"timestamp:-1h\", description: \"Events from last hour\" },\n { pattern: \"has:http.method\", description: \"HTTP requests\" },\n { pattern: \"has:db.statement\", description: \"Database queries\" },\n ];\n }\n\n return [];\n}\n"],"mappings":";;;;;;;AAsBA,eAAsB,sBACpBA,YACAC,kBACAC,SACAC,UAEI,CAAE,GACwB;CAC9B,MAAM,EAAE,WAAW,GAAG;CAGtB,MAAM,OAAO,MAAM,WAAW,SAAS;EACrC;EACA;EACA,SAAS;EACT,aAAa;CACd,EAAC;CAGF,MAAM,SAAS,KACZ,OAAO,CAAC,SAAS,IAAI,IAAI,WAAW,UAAU,CAAC,CAC/C,IAAI,CAAC,SAAS;EACb,KAAK,IAAI;EACT,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,UAAU,iBAAiB,IAAI,KAAK,QAAQ;CAC7C,GAAE;AAEL,QAAO;EACL;EACA;EACA,gBAAgB,kBAAkB,QAAQ;CAC3C;AACF;;;;;AAMD,SAAgB,wBAAwBC,SAKrC;CACD,MAAM,EAAE,YAAY,kBAAkB,SAAS,WAAW,GAAG;AAC7D,QAAO,UAAU;EACf,cAAc,gCAAgC,QAAQ;EACtD,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;AACnB,UAAO,sBAAsB,YAAY,kBAAkB,SAAS,EAClE,UACD,EAAC;EACH;CACF,EAAC;AACH;;;;AAKD,SAAgB,iBACdC,KACAC,SACsB;CACtB,MAAMC,iBAA2C;EAC/C,OAAO;GAAC;GAAS;GAAW;GAAQ;GAAS;EAAQ;EACrD,aAAa;GAAC;GAAc;GAAW;EAAc;EACrD,SAAS;GAAC;GAAU;GAAU;EAAgB;EAC9C,MAAM,CAAC,WAAW,mBAAoB;CACvC;CAED,MAAMC,gBAA0C;EAC9C,GAAG;EACH,qBAAqB;GAAC;GAAqB;GAAa;EAAK;EAC7D,IAAI;GAAC;GAAc;GAAY;EAAU;CAC1C;CAED,MAAMC,gBAA0C;EAC9C,GAAG;EACH,eAAe;GAAC;GAAO;GAAQ;GAAO;EAAS;EAC/C,oBAAoB;GAAC;GAAO;GAAO;EAAM;EACzC,aAAa;GAAC;GAAc;GAAS;EAAQ;CAC9C;AAED,KAAI,YAAY,gBACd,QAAO,cAAc;AAEvB,KAAI,YAAY,YAAY,YAAY,SACtC,QAAO,cAAc;AAGvB,QAAO,eAAe;AACvB;;;;AAKD,SAAgB,kBAAkBH,SAAiB;AACjD,KAAI,YAAY,gBACd,QAAO;EACL;GAAE,SAAS;GAAiB,aAAa;EAAe;EACxD;GAAE,SAAS;GAAe,aAAa;EAAiB;EACxD;GAAE,SAAS;GAAe,aAAa;EAAsB;EAC7D;GACE,SAAS;GACT,aAAa;EACd;EACD;GACE,SAAS;GACT,aAAa;EACd;CACF;AAEH,KAAI,YAAY,YAAY,YAAY,SACtC,QAAO;EACL;GAAE,SAAS;GAAe,aAAa;EAAgB;EACvD;GAAE,SAAS;GAA0B,aAAa;EAAqB;EACvE;GAAE,SAAS;GAAiB,aAAa;EAAyB;EAClE;GAAE,SAAS;GAAmB,aAAa;EAAiB;EAC5D;GAAE,SAAS;GAAoB,aAAa;EAAoB;CACjE;AAGH,QAAO,CAAE;AACV"}
|
package/dist/define-CLp6EtpZ.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/internal/tool-helpers/define.ts
|
|
3
|
-
function defineTool(config) {
|
|
4
|
-
return config;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
Object.defineProperty(exports, 'defineTool', {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () {
|
|
11
|
-
return defineTool;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=define-CLp6EtpZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define-CLp6EtpZ.cjs","names":["config: ToolConfig<TSchema>"],"sources":["../src/internal/tool-helpers/define.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { ToolConfig } from \"../../tools/types\";\n\nexport function defineTool<TSchema extends Record<string, z.ZodType>>(\n config: ToolConfig<TSchema>,\n) {\n return config;\n}\n"],"mappings":";;AAGA,SAAgB,WACdA,QACA;AACA,QAAO;AACR"}
|
package/dist/define-vA6uuVue.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define-vA6uuVue.js","names":["config: ToolConfig<TSchema>"],"sources":["../src/internal/tool-helpers/define.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { ToolConfig } from \"../../tools/types\";\n\nexport function defineTool<TSchema extends Record<string, z.ZodType>>(\n config: ToolConfig<TSchema>,\n) {\n return config;\n}\n"],"mappings":";AAGA,SAAgB,WACdA,QACA;AACA,QAAO;AACR"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ApiNotFoundError } from "./errors-DUEMWOr1.js";
|
|
2
|
-
|
|
3
|
-
//#region src/internal/tool-helpers/enhance-error.ts
|
|
4
|
-
/**
|
|
5
|
-
* Enhances a 404 error with parameter context to help users understand what went wrong.
|
|
6
|
-
* This is optional - tools can use this when they want to provide extra context.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* try {
|
|
11
|
-
* const issue = await apiService.getIssue({ organizationSlug, issueId });
|
|
12
|
-
* } catch (error) {
|
|
13
|
-
* if (error instanceof ApiNotFoundError) {
|
|
14
|
-
* throw enhanceNotFoundError(error, { organizationSlug, issueId });
|
|
15
|
-
* }
|
|
16
|
-
* throw error;
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
function enhanceNotFoundError(error, params) {
|
|
21
|
-
const paramsList = [];
|
|
22
|
-
for (const [key, value] of Object.entries(params)) if (value !== void 0 && value !== null && value !== "") paramsList.push(`${key}: '${value}'`);
|
|
23
|
-
if (paramsList.length > 0) {
|
|
24
|
-
const enhancedMessage = `${error.message}\nPlease verify these parameters are correct:\n${paramsList.map((p) => ` - ${p}`).join("\n")}`;
|
|
25
|
-
return new ApiNotFoundError(enhancedMessage, error.detail, error.responseBody);
|
|
26
|
-
}
|
|
27
|
-
return error;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { enhanceNotFoundError };
|
|
32
|
-
//# sourceMappingURL=enhance-error-BULHg3Tl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhance-error-BULHg3Tl.js","names":["error: ApiNotFoundError","params: Record<string, unknown>","paramsList: string[]"],"sources":["../src/internal/tool-helpers/enhance-error.ts"],"sourcesContent":["import { ApiNotFoundError } from \"../../api-client\";\n\n/**\n * Enhances a 404 error with parameter context to help users understand what went wrong.\n * This is optional - tools can use this when they want to provide extra context.\n *\n * @example\n * ```typescript\n * try {\n * const issue = await apiService.getIssue({ organizationSlug, issueId });\n * } catch (error) {\n * if (error instanceof ApiNotFoundError) {\n * throw enhanceNotFoundError(error, { organizationSlug, issueId });\n * }\n * throw error;\n * }\n * ```\n */\nexport function enhanceNotFoundError(\n error: ApiNotFoundError,\n params: Record<string, unknown>,\n): ApiNotFoundError {\n const paramsList: string[] = [];\n\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null && value !== \"\") {\n paramsList.push(`${key}: '${value}'`);\n }\n }\n\n if (paramsList.length > 0) {\n const enhancedMessage = `${error.message}\\nPlease verify these parameters are correct:\\n${paramsList.map((p) => ` - ${p}`).join(\"\\n\")}`;\n return new ApiNotFoundError(\n enhancedMessage,\n error.detail,\n error.responseBody,\n );\n }\n\n return error;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAgB,qBACdA,OACAC,QACkB;CAClB,MAAMC,aAAuB,CAAE;AAE/B,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,OAAO,CAC/C,KAAI,oBAAuB,UAAU,QAAQ,UAAU,GACrD,YAAW,QAAQ,IAAI,KAAK,MAAM,GAAG;AAIzC,KAAI,WAAW,SAAS,GAAG;EACzB,MAAM,qBAAqB,MAAM,QAAQ,iDAAiD,WAAW,IAAI,CAAC,OAAO,MAAM,IAAI,CAAC,KAAK,KAAK;AACtI,SAAO,IAAI,iBACT,iBACA,MAAM,QACN,MAAM;CAET;AAED,QAAO;AACR"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const require_errors = require('./errors-DWysOIMw.cjs');
|
|
2
|
-
|
|
3
|
-
//#region src/internal/tool-helpers/enhance-error.ts
|
|
4
|
-
/**
|
|
5
|
-
* Enhances a 404 error with parameter context to help users understand what went wrong.
|
|
6
|
-
* This is optional - tools can use this when they want to provide extra context.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* try {
|
|
11
|
-
* const issue = await apiService.getIssue({ organizationSlug, issueId });
|
|
12
|
-
* } catch (error) {
|
|
13
|
-
* if (error instanceof ApiNotFoundError) {
|
|
14
|
-
* throw enhanceNotFoundError(error, { organizationSlug, issueId });
|
|
15
|
-
* }
|
|
16
|
-
* throw error;
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
function enhanceNotFoundError(error, params) {
|
|
21
|
-
const paramsList = [];
|
|
22
|
-
for (const [key, value] of Object.entries(params)) if (value !== void 0 && value !== null && value !== "") paramsList.push(`${key}: '${value}'`);
|
|
23
|
-
if (paramsList.length > 0) {
|
|
24
|
-
const enhancedMessage = `${error.message}\nPlease verify these parameters are correct:\n${paramsList.map((p) => ` - ${p}`).join("\n")}`;
|
|
25
|
-
return new require_errors.ApiNotFoundError(enhancedMessage, error.detail, error.responseBody);
|
|
26
|
-
}
|
|
27
|
-
return error;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
Object.defineProperty(exports, 'enhanceNotFoundError', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return enhanceNotFoundError;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=enhance-error-vihkdCX5.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhance-error-vihkdCX5.cjs","names":["error: ApiNotFoundError","params: Record<string, unknown>","paramsList: string[]","ApiNotFoundError"],"sources":["../src/internal/tool-helpers/enhance-error.ts"],"sourcesContent":["import { ApiNotFoundError } from \"../../api-client\";\n\n/**\n * Enhances a 404 error with parameter context to help users understand what went wrong.\n * This is optional - tools can use this when they want to provide extra context.\n *\n * @example\n * ```typescript\n * try {\n * const issue = await apiService.getIssue({ organizationSlug, issueId });\n * } catch (error) {\n * if (error instanceof ApiNotFoundError) {\n * throw enhanceNotFoundError(error, { organizationSlug, issueId });\n * }\n * throw error;\n * }\n * ```\n */\nexport function enhanceNotFoundError(\n error: ApiNotFoundError,\n params: Record<string, unknown>,\n): ApiNotFoundError {\n const paramsList: string[] = [];\n\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null && value !== \"\") {\n paramsList.push(`${key}: '${value}'`);\n }\n }\n\n if (paramsList.length > 0) {\n const enhancedMessage = `${error.message}\\nPlease verify these parameters are correct:\\n${paramsList.map((p) => ` - ${p}`).join(\"\\n\")}`;\n return new ApiNotFoundError(\n enhancedMessage,\n error.detail,\n error.responseBody,\n );\n }\n\n return error;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAgB,qBACdA,OACAC,QACkB;CAClB,MAAMC,aAAuB,CAAE;AAE/B,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,OAAO,CAC/C,KAAI,oBAAuB,UAAU,QAAQ,UAAU,GACrD,YAAW,QAAQ,IAAI,KAAK,MAAM,GAAG;AAIzC,KAAI,WAAW,SAAS,GAAG;EACzB,MAAM,qBAAqB,MAAM,QAAQ,iDAAiD,WAAW,IAAI,CAAC,OAAO,MAAM,IAAI,CAAC,KAAK,KAAK;AACtI,SAAO,IAAIC,gCACT,iBACA,MAAM,QACN,MAAM;CAET;AAED,QAAO;AACR"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { ConfigurationError, UserInputError } from "./errors-BXmNwD2K.js";
|
|
2
|
-
import { logIssue } from "./logging-ChQnSEmD.js";
|
|
3
|
-
import { ApiClientError, ApiError, ApiServerError } from "./errors-DUEMWOr1.js";
|
|
4
|
-
|
|
5
|
-
//#region src/internal/error-handling.ts
|
|
6
|
-
/**
|
|
7
|
-
* Type guard to identify user input validation errors.
|
|
8
|
-
*/
|
|
9
|
-
function isUserInputError(error) {
|
|
10
|
-
return error instanceof UserInputError;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Type guard to identify configuration errors.
|
|
14
|
-
*/
|
|
15
|
-
function isConfigurationError(error) {
|
|
16
|
-
return error instanceof ConfigurationError;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Type guard to identify API errors.
|
|
20
|
-
*/
|
|
21
|
-
function isApiError(error) {
|
|
22
|
-
return error instanceof ApiError;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Type guard to identify API client errors (4xx).
|
|
26
|
-
*/
|
|
27
|
-
function isApiClientError(error) {
|
|
28
|
-
return error instanceof ApiClientError;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Type guard to identify API server errors (5xx).
|
|
32
|
-
*/
|
|
33
|
-
function isApiServerError(error) {
|
|
34
|
-
return error instanceof ApiServerError;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Format an error for user display with markdown formatting.
|
|
38
|
-
* This is used by tool handlers to format errors for MCP responses.
|
|
39
|
-
*
|
|
40
|
-
* SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.
|
|
41
|
-
* We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.
|
|
42
|
-
*/
|
|
43
|
-
async function formatErrorForUser(error) {
|
|
44
|
-
if (isUserInputError(error)) return [
|
|
45
|
-
"**Input Error**",
|
|
46
|
-
"It looks like there was a problem with the input you provided.",
|
|
47
|
-
error.message,
|
|
48
|
-
`You may be able to resolve the issue by addressing the concern and trying again.`
|
|
49
|
-
].join("\n\n");
|
|
50
|
-
if (isConfigurationError(error)) return [
|
|
51
|
-
"**Configuration Error**",
|
|
52
|
-
"There appears to be a configuration issue with your setup.",
|
|
53
|
-
error.message,
|
|
54
|
-
`Please check your environment configuration and try again.`
|
|
55
|
-
].join("\n\n");
|
|
56
|
-
if (isApiClientError(error)) {
|
|
57
|
-
const statusText = error.status ? `There was an HTTP ${error.status} error with your request to the Sentry API.` : "There was an error with your request.";
|
|
58
|
-
return [
|
|
59
|
-
"**Input Error**",
|
|
60
|
-
statusText,
|
|
61
|
-
error.toUserMessage(),
|
|
62
|
-
`You may be able to resolve the issue by addressing the concern and trying again.`
|
|
63
|
-
].join("\n\n");
|
|
64
|
-
}
|
|
65
|
-
if (isApiServerError(error)) {
|
|
66
|
-
const eventId$1 = logIssue(error);
|
|
67
|
-
const statusText = error.status ? `There was an HTTP ${error.status} server error with the Sentry API.` : "There was a server error.";
|
|
68
|
-
return [
|
|
69
|
-
"**Error**",
|
|
70
|
-
statusText,
|
|
71
|
-
`${error.message}`,
|
|
72
|
-
`**Event ID**: ${eventId$1}`,
|
|
73
|
-
`Please contact support with this Event ID if the problem persists.`
|
|
74
|
-
].join("\n\n");
|
|
75
|
-
}
|
|
76
|
-
if (isApiError(error)) {
|
|
77
|
-
const statusText = error.status ? `There was an HTTP ${error.status} error with your request to the Sentry API.` : "There was an error with your request.";
|
|
78
|
-
return [
|
|
79
|
-
"**Error**",
|
|
80
|
-
statusText,
|
|
81
|
-
`${error.message}`,
|
|
82
|
-
`You may be able to resolve the issue by addressing the concern and trying again.`
|
|
83
|
-
].join("\n\n");
|
|
84
|
-
}
|
|
85
|
-
const eventId = logIssue(error);
|
|
86
|
-
return [
|
|
87
|
-
"**Error**",
|
|
88
|
-
"It looks like there was a problem communicating with the Sentry API.",
|
|
89
|
-
"Please report the following to the user for the Sentry team:",
|
|
90
|
-
`**Event ID**: ${eventId}`,
|
|
91
|
-
process.env.NODE_ENV !== "production" ? error instanceof Error ? error.message : String(error) : ""
|
|
92
|
-
].filter(Boolean).join("\n\n");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
//#endregion
|
|
96
|
-
export { formatErrorForUser, isApiClientError, isApiError, isApiServerError, isConfigurationError, isUserInputError };
|
|
97
|
-
//# sourceMappingURL=error-handling-CLnyY1TR.js.map
|