@sentry/mcp-server 0.23.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-2BaHF2h-.js → stdio-232a22j4.js} +7 -3
- package/dist/stdio-232a22j4.js.map +1 -0
- package/dist/{stdio-DL-ID7Q4.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 -121
- package/dist/agent-9s0S2VUD.js +0 -43
- package/dist/agent-9s0S2VUD.js.map +0 -1
- package/dist/agent-BI-VWYjJ.d.ts +0 -93
- package/dist/agent-BI-VWYjJ.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-BmPRmM9x.d.cts +0 -93
- package/dist/agent-BmPRmM9x.d.cts.map +0 -1
- package/dist/agent-BsCC60AU.js +0 -64
- package/dist/agent-BsCC60AU.js.map +0 -1
- package/dist/agent-CJ6SVqAB.d.ts +0 -32
- package/dist/agent-CJ6SVqAB.d.ts.map +0 -1
- package/dist/agent-CirZFiaJ.cjs +0 -55
- package/dist/agent-CirZFiaJ.cjs.map +0 -1
- package/dist/agent-CnHO6uyy.cjs +0 -76
- package/dist/agent-CnHO6uyy.cjs.map +0 -1
- package/dist/agent-D8Mz9ung.d.cts +0 -35
- package/dist/agent-D8Mz9ung.d.cts.map +0 -1
- package/dist/agent-DD0p64Dq.js +0 -29
- package/dist/agent-DD0p64Dq.js.map +0 -1
- package/dist/agent-DQdvMLcG.d.ts +0 -35
- package/dist/agent-DQdvMLcG.d.ts.map +0 -1
- package/dist/agent-DaUNg6Ut.cjs +0 -35
- package/dist/agent-DaUNg6Ut.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-6OwT1RJP.js +0 -200
- package/dist/analyze-issue-with-seer-6OwT1RJP.js.map +0 -1
- package/dist/analyze-issue-with-seer-wsCEFdZs.cjs +0 -206
- package/dist/analyze-issue-with-seer-wsCEFdZs.cjs.map +0 -1
- package/dist/api-BCICbJoI.js +0 -63
- package/dist/api-BCICbJoI.js.map +0 -1
- package/dist/api-CfzBwheo.cjs +0 -80
- package/dist/api-CfzBwheo.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 -70
- 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 -52
- 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-CFHLQjFx.d.cts +0 -34
- package/dist/callEmbeddedAgent-CFHLQjFx.d.cts.map +0 -1
- package/dist/callEmbeddedAgent-COB8Jrcn.cjs +0 -51
- package/dist/callEmbeddedAgent-COB8Jrcn.cjs.map +0 -1
- package/dist/callEmbeddedAgent-rEUWAl2g.js +0 -45
- package/dist/callEmbeddedAgent-rEUWAl2g.js.map +0 -1
- package/dist/client-8_aKE-B-.d.cts +0 -844
- package/dist/client-8_aKE-B-.d.cts.map +0 -1
- package/dist/client-BGVY6gBL.d.ts +0 -844
- package/dist/client-BGVY6gBL.d.ts.map +0 -1
- package/dist/client-Be1DR1al.js +0 -1098
- package/dist/client-Be1DR1al.js.map +0 -1
- package/dist/client-DSxCsnqO.cjs +0 -1103
- package/dist/client-DSxCsnqO.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-C5vd9Btg.cjs +0 -74
- package/dist/create-dsn-C5vd9Btg.cjs.map +0 -1
- package/dist/create-dsn-DBqCDM_6.js +0 -68
- package/dist/create-dsn-DBqCDM_6.js.map +0 -1
- package/dist/create-project-BsN4Q0cl.js +0 -86
- package/dist/create-project-BsN4Q0cl.js.map +0 -1
- package/dist/create-project-D4W66CxU.cjs +0 -92
- package/dist/create-project-D4W66CxU.cjs.map +0 -1
- package/dist/create-team-DUBAEGGr.js +0 -63
- package/dist/create-team-DUBAEGGr.js.map +0 -1
- package/dist/create-team-DV6XmZkb.cjs +0 -69
- package/dist/create-team-DV6XmZkb.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-BabAfVEt.cjs +0 -64
- package/dist/find-dsns-BabAfVEt.cjs.map +0 -1
- package/dist/find-dsns-C-Q6yJT5.js +0 -58
- package/dist/find-dsns-C-Q6yJT5.js.map +0 -1
- package/dist/find-organizations-Bo-JdU-R.js +0 -59
- package/dist/find-organizations-Bo-JdU-R.js.map +0 -1
- package/dist/find-organizations-CEEqa1an.cjs +0 -64
- package/dist/find-organizations-CEEqa1an.cjs.map +0 -1
- package/dist/find-projects-BWyvosHM.cjs +0 -59
- package/dist/find-projects-BWyvosHM.cjs.map +0 -1
- package/dist/find-projects-zM4CM_xX.js +0 -53
- package/dist/find-projects-zM4CM_xX.js.map +0 -1
- package/dist/find-releases-DMJrj5wz.cjs +0 -105
- package/dist/find-releases-DMJrj5wz.cjs.map +0 -1
- package/dist/find-releases-DzdGLPSN.js +0 -99
- package/dist/find-releases-DzdGLPSN.js.map +0 -1
- package/dist/find-teams-CR_hdlun.js +0 -56
- package/dist/find-teams-CR_hdlun.js.map +0 -1
- package/dist/find-teams-lOqS_719.cjs +0 -62
- package/dist/find-teams-lOqS_719.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-BatGC-29.cjs +0 -984
- package/dist/formatting-BatGC-29.cjs.map +0 -1
- package/dist/formatting-Bm1GxhEu.d.ts +0 -54
- package/dist/formatting-Bm1GxhEu.d.ts.map +0 -1
- package/dist/formatting-C6hyL-Yv.cjs +0 -20
- package/dist/formatting-C6hyL-Yv.cjs.map +0 -1
- package/dist/formatting-DJFcfTJG.js +0 -14
- package/dist/formatting-DJFcfTJG.js.map +0 -1
- package/dist/formatting-DUODx6N5.js +0 -967
- package/dist/formatting-DUODx6N5.js.map +0 -1
- package/dist/formatting-GZdM57wq.d.cts +0 -54
- package/dist/formatting-GZdM57wq.d.cts.map +0 -1
- package/dist/get-doc-CbVw4ada.cjs +0 -93
- package/dist/get-doc-CbVw4ada.cjs.map +0 -1
- package/dist/get-doc-FuILofQP.js +0 -87
- package/dist/get-doc-FuILofQP.js.map +0 -1
- package/dist/get-event-attachment-DuyBT68p.cjs +0 -150
- package/dist/get-event-attachment-DuyBT68p.cjs.map +0 -1
- package/dist/get-event-attachment-Dzg2R7ng.js +0 -144
- package/dist/get-event-attachment-Dzg2R7ng.js.map +0 -1
- package/dist/get-issue-details-BY7S1YyX.cjs +0 -201
- package/dist/get-issue-details-BY7S1YyX.cjs.map +0 -1
- package/dist/get-issue-details-BxJzOzFQ.js +0 -195
- package/dist/get-issue-details-BxJzOzFQ.js.map +0 -1
- package/dist/get-trace-details-DD0p3apU.cjs +0 -313
- package/dist/get-trace-details-DD0p3apU.cjs.map +0 -1
- package/dist/get-trace-details-Dv2FB534.js +0 -307
- package/dist/get-trace-details-Dv2FB534.js.map +0 -1
- package/dist/handler-0iIvlYwy.d.cts +0 -11
- package/dist/handler-0iIvlYwy.d.cts.map +0 -1
- package/dist/handler-8JzODzam.d.cts +0 -15
- package/dist/handler-8JzODzam.d.cts.map +0 -1
- package/dist/handler-9UUkphzv.d.ts +0 -15
- package/dist/handler-9UUkphzv.d.ts.map +0 -1
- package/dist/handler-BfTAwyrq.js +0 -153
- package/dist/handler-BfTAwyrq.js.map +0 -1
- package/dist/handler-BhjeSo2N.js +0 -132
- package/dist/handler-BhjeSo2N.js.map +0 -1
- package/dist/handler-BjTPOR8v.cjs +0 -138
- package/dist/handler-BjTPOR8v.cjs.map +0 -1
- package/dist/handler-C5Tgh1wj.cjs +0 -159
- package/dist/handler-C5Tgh1wj.cjs.map +0 -1
- package/dist/handler-ClZBIn0B.d.cts +0 -15
- package/dist/handler-ClZBIn0B.d.cts.map +0 -1
- package/dist/handler-CmAbLcaV.d.ts +0 -15
- package/dist/handler-CmAbLcaV.d.ts.map +0 -1
- package/dist/handler-DbUy8Z54.d.ts +0 -11
- package/dist/handler-DbUy8Z54.d.ts.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 -7
- package/dist/internal/formatting.d.cts +0 -7
- package/dist/internal/formatting.d.ts +0 -7
- package/dist/internal/formatting.js +0 -5
- 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 -9
- 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 -8
- 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-BsMAb6zY.js +0 -48
- package/dist/openai-provider-BsMAb6zY.js.map +0 -1
- package/dist/openai-provider-BycgrQgi.cjs +0 -60
- package/dist/openai-provider-BycgrQgi.cjs.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-1xQ4asuW.cjs +0 -801
- package/dist/schema-1xQ4asuW.cjs.map +0 -1
- package/dist/schema-BGVOjcD7.cjs +0 -141
- package/dist/schema-BGVOjcD7.cjs.map +0 -1
- package/dist/schema-CZXkkfj-.d.cts +0 -16950
- package/dist/schema-CZXkkfj-.d.cts.map +0 -1
- package/dist/schema-Cfvy5rTy.d.ts +0 -16950
- package/dist/schema-Cfvy5rTy.d.ts.map +0 -1
- package/dist/schema-ChlpIaqA.js +0 -39
- package/dist/schema-ChlpIaqA.js.map +0 -1
- package/dist/schema-oeFNxyo_.js +0 -501
- package/dist/schema-oeFNxyo_.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-C5x-ZRhd.cjs +0 -97
- package/dist/search-docs-C5x-ZRhd.cjs.map +0 -1
- package/dist/search-docs-UCe9oXQt.js +0 -91
- package/dist/search-docs-UCe9oXQt.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-BbJwtfJr.js +0 -336
- package/dist/server-BbJwtfJr.js.map +0 -1
- package/dist/server-OW--pQOQ.cjs +0 -354
- package/dist/server-OW--pQOQ.cjs.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 -258
- package/dist/skillDefinitions.cjs.map +0 -1
- package/dist/skillDefinitions.d.cts +0 -18
- package/dist/skillDefinitions.d.cts.map +0 -1
- package/dist/skillDefinitions.d.ts +0 -18
- package/dist/skillDefinitions.d.ts.map +0 -1
- package/dist/skillDefinitions.js +0 -257
- 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-2BaHF2h-.js.map +0 -1
- package/dist/stdio-DL-ID7Q4.cjs.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 -838
- 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 -837
- 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-Cet6uyS6.d.ts +0 -41
- package/dist/types-Cet6uyS6.d.ts.map +0 -1
- package/dist/types-CokRupPo.d.cts +0 -33
- package/dist/types-CokRupPo.d.cts.map +0 -1
- package/dist/types-D1CEiyup.d.cts +0 -41
- package/dist/types-D1CEiyup.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-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-BGm8g4G0.js +0 -118
- package/dist/update-issue-BGm8g4G0.js.map +0 -1
- package/dist/update-issue-Dx2EZ5pY.cjs +0 -124
- package/dist/update-issue-Dx2EZ5pY.cjs.map +0 -1
- package/dist/update-project-B0clXxii.js +0 -128
- package/dist/update-project-B0clXxii.js.map +0 -1
- package/dist/update-project-BJkzcapF.cjs +0 -134
- package/dist/update-project-BJkzcapF.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-C7sQWgE3.d.cts +0 -39
- package/dist/utils-C7sQWgE3.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-CmH2wxA_.d.ts +0 -39
- package/dist/utils-CmH2wxA_.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/utils-R15EJutP.d.ts +0 -43
- package/dist/utils-R15EJutP.d.ts.map +0 -1
- package/dist/utils-RPc9DHgJ.d.cts +0 -43
- package/dist/utils-RPc9DHgJ.d.cts.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-CaFsr_xb.cjs +0 -19
- package/dist/version-CaFsr_xb.cjs.map +0 -1
- package/dist/version-DY1nl1TZ.js +0 -7
- package/dist/version-DY1nl1TZ.js.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-DRDjyhDL.cjs +0 -44
- package/dist/whoami-DRDjyhDL.cjs.map +0 -1
- package/dist/whoami-FliA3IrX.js +0 -39
- package/dist/whoami-FliA3IrX.js.map +0 -1
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
//#region src/utils/url-utils.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Determines if a Sentry instance is SaaS or self-hosted based on the host.
|
|
4
|
-
* @param host The Sentry host (e.g., "sentry.io" or "sentry.company.com")
|
|
5
|
-
* @returns true if SaaS instance, false if self-hosted
|
|
6
|
-
*/
|
|
7
|
-
declare function isSentryHost(host: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Generates a Sentry issue URL.
|
|
10
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
11
|
-
* @param organizationSlug Organization identifier
|
|
12
|
-
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
13
|
-
* @returns The complete issue URL
|
|
14
|
-
*/
|
|
15
|
-
declare function getIssueUrl(host: string, organizationSlug: string, issueId: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Generates a Sentry issues search URL.
|
|
18
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
19
|
-
* @param organizationSlug Organization identifier
|
|
20
|
-
* @param query Optional search query
|
|
21
|
-
* @param projectSlugOrId Optional project slug or ID
|
|
22
|
-
* @returns The complete issues search URL
|
|
23
|
-
*/
|
|
24
|
-
declare function getIssuesSearchUrl(host: string, organizationSlug: string, query?: string | null, projectSlugOrId?: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Generates a Sentry trace URL for performance investigation.
|
|
27
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
28
|
-
* @param organizationSlug Organization identifier
|
|
29
|
-
* @param traceId Trace identifier
|
|
30
|
-
* @returns The complete trace URL
|
|
31
|
-
*/
|
|
32
|
-
declare function getTraceUrl(host: string, organizationSlug: string, traceId: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Generates a Sentry events explorer URL.
|
|
35
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
36
|
-
* @param organizationSlug Organization identifier
|
|
37
|
-
* @param query Search query
|
|
38
|
-
* @param dataset Dataset type
|
|
39
|
-
* @param projectSlug Optional project slug
|
|
40
|
-
* @param fields Optional fields to display
|
|
41
|
-
* @returns The complete events explorer URL
|
|
42
|
-
*/
|
|
43
|
-
declare function getEventsExplorerUrl(host: string, organizationSlug: string, query: string, dataset?: "spans" | "errors" | "logs", projectSlug?: string, fields?: string[]): string;
|
|
44
|
-
/**
|
|
45
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
46
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
47
|
-
*
|
|
48
|
-
* @param host The hostname to validate
|
|
49
|
-
*/
|
|
50
|
-
declare function validateSentryHost(host: string): void;
|
|
51
|
-
/**
|
|
52
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
53
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
54
|
-
*
|
|
55
|
-
* @param url The HTTPS URL to validate and parse
|
|
56
|
-
* @returns The extracted hostname from the URL
|
|
57
|
-
*/
|
|
58
|
-
declare function validateAndParseSentryUrl(url: string): string;
|
|
59
|
-
/**
|
|
60
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
61
|
-
* Throws an error instead of exiting the process (for testing).
|
|
62
|
-
*
|
|
63
|
-
* @param host The hostname to validate
|
|
64
|
-
* @throws {Error} If the host contains a protocol
|
|
65
|
-
*/
|
|
66
|
-
declare function validateSentryHostThrows(host: string): void;
|
|
67
|
-
/**
|
|
68
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
69
|
-
* Throws an error instead of exiting the process (for testing).
|
|
70
|
-
*
|
|
71
|
-
* @param url The HTTPS URL to validate and parse
|
|
72
|
-
* @returns The extracted hostname from the URL
|
|
73
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
74
|
-
*/
|
|
75
|
-
declare function validateAndParseSentryUrlThrows(url: string): string;
|
|
76
|
-
/**
|
|
77
|
-
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
78
|
-
*
|
|
79
|
-
* @param url The URL to validate and normalize
|
|
80
|
-
* @returns The normalized URL string
|
|
81
|
-
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
82
|
-
*/
|
|
83
|
-
declare function validateOpenAiBaseUrlThrows(url: string): string;
|
|
84
|
-
//# sourceMappingURL=url-utils.d.ts.map
|
|
85
|
-
//#endregion
|
|
86
|
-
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
87
|
-
//# sourceMappingURL=url-utils.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;AAWA;;;iBA3NgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA;;;;;;;;iBAWA,2BAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
//#region src/utils/url-utils.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Determines if a Sentry instance is SaaS or self-hosted based on the host.
|
|
4
|
-
* @param host The Sentry host (e.g., "sentry.io" or "sentry.company.com")
|
|
5
|
-
* @returns true if SaaS instance, false if self-hosted
|
|
6
|
-
*/
|
|
7
|
-
declare function isSentryHost(host: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Generates a Sentry issue URL.
|
|
10
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
11
|
-
* @param organizationSlug Organization identifier
|
|
12
|
-
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
13
|
-
* @returns The complete issue URL
|
|
14
|
-
*/
|
|
15
|
-
declare function getIssueUrl(host: string, organizationSlug: string, issueId: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Generates a Sentry issues search URL.
|
|
18
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
19
|
-
* @param organizationSlug Organization identifier
|
|
20
|
-
* @param query Optional search query
|
|
21
|
-
* @param projectSlugOrId Optional project slug or ID
|
|
22
|
-
* @returns The complete issues search URL
|
|
23
|
-
*/
|
|
24
|
-
declare function getIssuesSearchUrl(host: string, organizationSlug: string, query?: string | null, projectSlugOrId?: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Generates a Sentry trace URL for performance investigation.
|
|
27
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
28
|
-
* @param organizationSlug Organization identifier
|
|
29
|
-
* @param traceId Trace identifier
|
|
30
|
-
* @returns The complete trace URL
|
|
31
|
-
*/
|
|
32
|
-
declare function getTraceUrl(host: string, organizationSlug: string, traceId: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Generates a Sentry events explorer URL.
|
|
35
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
36
|
-
* @param organizationSlug Organization identifier
|
|
37
|
-
* @param query Search query
|
|
38
|
-
* @param dataset Dataset type
|
|
39
|
-
* @param projectSlug Optional project slug
|
|
40
|
-
* @param fields Optional fields to display
|
|
41
|
-
* @returns The complete events explorer URL
|
|
42
|
-
*/
|
|
43
|
-
declare function getEventsExplorerUrl(host: string, organizationSlug: string, query: string, dataset?: "spans" | "errors" | "logs", projectSlug?: string, fields?: string[]): string;
|
|
44
|
-
/**
|
|
45
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
46
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
47
|
-
*
|
|
48
|
-
* @param host The hostname to validate
|
|
49
|
-
*/
|
|
50
|
-
declare function validateSentryHost(host: string): void;
|
|
51
|
-
/**
|
|
52
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
53
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
54
|
-
*
|
|
55
|
-
* @param url The HTTPS URL to validate and parse
|
|
56
|
-
* @returns The extracted hostname from the URL
|
|
57
|
-
*/
|
|
58
|
-
declare function validateAndParseSentryUrl(url: string): string;
|
|
59
|
-
/**
|
|
60
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
61
|
-
* Throws an error instead of exiting the process (for testing).
|
|
62
|
-
*
|
|
63
|
-
* @param host The hostname to validate
|
|
64
|
-
* @throws {Error} If the host contains a protocol
|
|
65
|
-
*/
|
|
66
|
-
declare function validateSentryHostThrows(host: string): void;
|
|
67
|
-
/**
|
|
68
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
69
|
-
* Throws an error instead of exiting the process (for testing).
|
|
70
|
-
*
|
|
71
|
-
* @param url The HTTPS URL to validate and parse
|
|
72
|
-
* @returns The extracted hostname from the URL
|
|
73
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
74
|
-
*/
|
|
75
|
-
declare function validateAndParseSentryUrlThrows(url: string): string;
|
|
76
|
-
/**
|
|
77
|
-
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
78
|
-
*
|
|
79
|
-
* @param url The URL to validate and normalize
|
|
80
|
-
* @returns The normalized URL string
|
|
81
|
-
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
82
|
-
*/
|
|
83
|
-
declare function validateOpenAiBaseUrlThrows(url: string): string;
|
|
84
|
-
//# sourceMappingURL=url-utils.d.ts.map
|
|
85
|
-
//#endregion
|
|
86
|
-
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
87
|
-
//# sourceMappingURL=url-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAsBA;AAqCA;AAwBgB,iBA9FA,YAAA,CA8FoB,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;AAiFpC;AAgBA;AAgBA;AAYA;AAWA;;;iBA3NgB,WAAA;;;;;;;;;iBAsBA,kBAAA;;;;;;;;iBAqCA,WAAA;;;;;;;;;;;iBAwBA,oBAAA;;;;;;;iBAiFA,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA;;;;;;;;iBAWA,2BAAA"}
|
package/dist/utils/url-utils.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows } from "../url-utils-CfKwo6s5.js";
|
|
2
|
-
|
|
3
|
-
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SentryApiService } from "./client-8_aKE-B-.cjs";
|
|
2
|
-
import { AgentToolResponse } from "./utils-RPc9DHgJ.cjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import * as ai52 from "ai";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/search-events/utils.d.ts
|
|
7
|
-
type FlexibleEventData = Record<string, unknown>;
|
|
8
|
-
declare function getStringValue(event: FlexibleEventData, key: string, defaultValue?: string): string;
|
|
9
|
-
declare function getNumberValue(event: FlexibleEventData, key: string): number | undefined;
|
|
10
|
-
declare function isAggregateQuery(fields: string[]): boolean;
|
|
11
|
-
declare function fetchCustomAttributes(apiService: SentryApiService, organizationSlug: string, dataset: "errors" | "logs" | "spans", projectId?: string, timeParams?: {
|
|
12
|
-
statsPeriod?: string;
|
|
13
|
-
start?: string;
|
|
14
|
-
end?: string;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
attributes: Record<string, string>;
|
|
17
|
-
fieldTypes: Record<string, "string" | "number">;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* Create a tool for the agent to query available attributes by dataset
|
|
21
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
22
|
-
*/
|
|
23
|
-
declare function createDatasetAttributesTool(options: {
|
|
24
|
-
apiService: SentryApiService;
|
|
25
|
-
organizationSlug: string;
|
|
26
|
-
projectId?: string;
|
|
27
|
-
}): ai52.Tool<z.ZodType<{
|
|
28
|
-
dataset: "spans" | "errors" | "logs";
|
|
29
|
-
}, z.ZodTypeDef, {
|
|
30
|
-
dataset: "spans" | "errors" | "logs";
|
|
31
|
-
}>, AgentToolResponse<string>> & {
|
|
32
|
-
execute: (args: {
|
|
33
|
-
dataset: "spans" | "errors" | "logs";
|
|
34
|
-
}, options: ai52.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
37
|
-
//#endregion
|
|
38
|
-
export { FlexibleEventData, createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
|
|
39
|
-
//# sourceMappingURL=utils-C7sQWgE3.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-C7sQWgE3.d.cts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,OAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,QAAA,GAAA,MAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,IAAA,CAAA"}
|
package/dist/utils-CIt6Amml.cjs
DELETED
|
@@ -1,124 +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/tools/search-events/utils.ts
|
|
6
|
-
function getStringValue(event, key, defaultValue = "") {
|
|
7
|
-
const value = event[key];
|
|
8
|
-
return typeof value === "string" ? value : defaultValue;
|
|
9
|
-
}
|
|
10
|
-
function getNumberValue(event, key) {
|
|
11
|
-
const value = event[key];
|
|
12
|
-
return typeof value === "number" ? value : void 0;
|
|
13
|
-
}
|
|
14
|
-
function isAggregateQuery(fields) {
|
|
15
|
-
return fields.some((field) => field.includes("(") && field.includes(")"));
|
|
16
|
-
}
|
|
17
|
-
async function fetchCustomAttributes(apiService, organizationSlug, dataset, projectId, timeParams) {
|
|
18
|
-
const customAttributes = {};
|
|
19
|
-
const fieldTypes = {};
|
|
20
|
-
if (dataset === "errors") {
|
|
21
|
-
const tagsResponse = await apiService.listTags({
|
|
22
|
-
organizationSlug,
|
|
23
|
-
dataset: "events",
|
|
24
|
-
project: projectId,
|
|
25
|
-
statsPeriod: "14d",
|
|
26
|
-
useCache: true,
|
|
27
|
-
useFlagsBackend: true
|
|
28
|
-
});
|
|
29
|
-
for (const tag of tagsResponse) if (tag.key && !tag.key.startsWith("sentry:")) customAttributes[tag.key] = tag.name || tag.key;
|
|
30
|
-
} else {
|
|
31
|
-
const itemType = dataset === "logs" ? "logs" : "spans";
|
|
32
|
-
const attributesResponse = await apiService.listTraceItemAttributes({
|
|
33
|
-
organizationSlug,
|
|
34
|
-
itemType,
|
|
35
|
-
project: projectId,
|
|
36
|
-
statsPeriod: "14d"
|
|
37
|
-
});
|
|
38
|
-
for (const attr of attributesResponse) if (attr.key && !attr.key.startsWith("sentry:")) {
|
|
39
|
-
customAttributes[attr.key] = attr.name || attr.key;
|
|
40
|
-
if (attr.type && (attr.type === "string" || attr.type === "number")) fieldTypes[attr.key] = attr.type;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
attributes: customAttributes,
|
|
45
|
-
fieldTypes
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Create a tool for the agent to query available attributes by dataset
|
|
50
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
51
|
-
*/
|
|
52
|
-
function createDatasetAttributesTool(options) {
|
|
53
|
-
const { apiService, organizationSlug, projectId } = options;
|
|
54
|
-
return require_utils.agentTool({
|
|
55
|
-
description: "Query available attributes and fields for a specific Sentry dataset to understand what data is available",
|
|
56
|
-
parameters: zod.z.object({ dataset: zod.z.enum([
|
|
57
|
-
"spans",
|
|
58
|
-
"errors",
|
|
59
|
-
"logs"
|
|
60
|
-
]).describe("The dataset to query attributes for") }),
|
|
61
|
-
execute: async ({ dataset }) => {
|
|
62
|
-
const { BASE_COMMON_FIELDS, DATASET_FIELDS, RECOMMENDED_FIELDS, NUMERIC_FIELDS } = await Promise.resolve().then(() => require("./tools/search-events/config.cjs"));
|
|
63
|
-
const { attributes: customAttributes, fieldTypes } = await fetchCustomAttributes(apiService, organizationSlug, dataset, projectId);
|
|
64
|
-
const allFields = {
|
|
65
|
-
...BASE_COMMON_FIELDS,
|
|
66
|
-
...DATASET_FIELDS[dataset],
|
|
67
|
-
...customAttributes
|
|
68
|
-
};
|
|
69
|
-
const recommendedFields = RECOMMENDED_FIELDS[dataset];
|
|
70
|
-
const allFieldTypes = { ...fieldTypes };
|
|
71
|
-
const staticNumericFields = NUMERIC_FIELDS[dataset] || /* @__PURE__ */ new Set();
|
|
72
|
-
for (const field of staticNumericFields) allFieldTypes[field] = "number";
|
|
73
|
-
return `Dataset: ${dataset}
|
|
74
|
-
|
|
75
|
-
Available Fields (${Object.keys(allFields).length} total):
|
|
76
|
-
${Object.entries(allFields).slice(0, 50).map(([key, desc]) => `- ${key}: ${desc}`).join("\n")}
|
|
77
|
-
${Object.keys(allFields).length > 50 ? `\n... and ${Object.keys(allFields).length - 50} more fields` : ""}
|
|
78
|
-
|
|
79
|
-
Recommended Fields for ${dataset}:
|
|
80
|
-
${recommendedFields.basic.map((f) => `- ${f}`).join("\n")}
|
|
81
|
-
|
|
82
|
-
Field Types (CRITICAL for aggregate functions):
|
|
83
|
-
${Object.entries(allFieldTypes).slice(0, 30).map(([key, type]) => `- ${key}: ${type}`).join("\n")}
|
|
84
|
-
${Object.keys(allFieldTypes).length > 30 ? `\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : ""}
|
|
85
|
-
|
|
86
|
-
IMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.
|
|
87
|
-
|
|
88
|
-
Use this information to construct appropriate queries for the ${dataset} dataset.`;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
//#endregion
|
|
94
|
-
Object.defineProperty(exports, 'createDatasetAttributesTool', {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () {
|
|
97
|
-
return createDatasetAttributesTool;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, 'fetchCustomAttributes', {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return fetchCustomAttributes;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, 'getNumberValue', {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function () {
|
|
109
|
-
return getNumberValue;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, 'getStringValue', {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () {
|
|
115
|
-
return getStringValue;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, 'isAggregateQuery', {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function () {
|
|
121
|
-
return isAggregateQuery;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
//# sourceMappingURL=utils-CIt6Amml.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-CIt6Amml.cjs","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":"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"}
|
package/dist/utils-CaNeCYCH.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { agentTool } from "./utils-DOb7bs5_.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/tools/search-events/utils.ts
|
|
5
|
-
function getStringValue(event, key, defaultValue = "") {
|
|
6
|
-
const value = event[key];
|
|
7
|
-
return typeof value === "string" ? value : defaultValue;
|
|
8
|
-
}
|
|
9
|
-
function getNumberValue(event, key) {
|
|
10
|
-
const value = event[key];
|
|
11
|
-
return typeof value === "number" ? value : void 0;
|
|
12
|
-
}
|
|
13
|
-
function isAggregateQuery(fields) {
|
|
14
|
-
return fields.some((field) => field.includes("(") && field.includes(")"));
|
|
15
|
-
}
|
|
16
|
-
async function fetchCustomAttributes(apiService, organizationSlug, dataset, projectId, timeParams) {
|
|
17
|
-
const customAttributes = {};
|
|
18
|
-
const fieldTypes = {};
|
|
19
|
-
if (dataset === "errors") {
|
|
20
|
-
const tagsResponse = await apiService.listTags({
|
|
21
|
-
organizationSlug,
|
|
22
|
-
dataset: "events",
|
|
23
|
-
project: projectId,
|
|
24
|
-
statsPeriod: "14d",
|
|
25
|
-
useCache: true,
|
|
26
|
-
useFlagsBackend: true
|
|
27
|
-
});
|
|
28
|
-
for (const tag of tagsResponse) if (tag.key && !tag.key.startsWith("sentry:")) customAttributes[tag.key] = tag.name || tag.key;
|
|
29
|
-
} else {
|
|
30
|
-
const itemType = dataset === "logs" ? "logs" : "spans";
|
|
31
|
-
const attributesResponse = await apiService.listTraceItemAttributes({
|
|
32
|
-
organizationSlug,
|
|
33
|
-
itemType,
|
|
34
|
-
project: projectId,
|
|
35
|
-
statsPeriod: "14d"
|
|
36
|
-
});
|
|
37
|
-
for (const attr of attributesResponse) if (attr.key && !attr.key.startsWith("sentry:")) {
|
|
38
|
-
customAttributes[attr.key] = attr.name || attr.key;
|
|
39
|
-
if (attr.type && (attr.type === "string" || attr.type === "number")) fieldTypes[attr.key] = attr.type;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
attributes: customAttributes,
|
|
44
|
-
fieldTypes
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Create a tool for the agent to query available attributes by dataset
|
|
49
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
50
|
-
*/
|
|
51
|
-
function createDatasetAttributesTool(options) {
|
|
52
|
-
const { apiService, organizationSlug, projectId } = options;
|
|
53
|
-
return agentTool({
|
|
54
|
-
description: "Query available attributes and fields for a specific Sentry dataset to understand what data is available",
|
|
55
|
-
parameters: z.object({ dataset: z.enum([
|
|
56
|
-
"spans",
|
|
57
|
-
"errors",
|
|
58
|
-
"logs"
|
|
59
|
-
]).describe("The dataset to query attributes for") }),
|
|
60
|
-
execute: async ({ dataset }) => {
|
|
61
|
-
const { BASE_COMMON_FIELDS, DATASET_FIELDS, RECOMMENDED_FIELDS, NUMERIC_FIELDS } = await import("./tools/search-events/config.js");
|
|
62
|
-
const { attributes: customAttributes, fieldTypes } = await fetchCustomAttributes(apiService, organizationSlug, dataset, projectId);
|
|
63
|
-
const allFields = {
|
|
64
|
-
...BASE_COMMON_FIELDS,
|
|
65
|
-
...DATASET_FIELDS[dataset],
|
|
66
|
-
...customAttributes
|
|
67
|
-
};
|
|
68
|
-
const recommendedFields = RECOMMENDED_FIELDS[dataset];
|
|
69
|
-
const allFieldTypes = { ...fieldTypes };
|
|
70
|
-
const staticNumericFields = NUMERIC_FIELDS[dataset] || /* @__PURE__ */ new Set();
|
|
71
|
-
for (const field of staticNumericFields) allFieldTypes[field] = "number";
|
|
72
|
-
return `Dataset: ${dataset}
|
|
73
|
-
|
|
74
|
-
Available Fields (${Object.keys(allFields).length} total):
|
|
75
|
-
${Object.entries(allFields).slice(0, 50).map(([key, desc]) => `- ${key}: ${desc}`).join("\n")}
|
|
76
|
-
${Object.keys(allFields).length > 50 ? `\n... and ${Object.keys(allFields).length - 50} more fields` : ""}
|
|
77
|
-
|
|
78
|
-
Recommended Fields for ${dataset}:
|
|
79
|
-
${recommendedFields.basic.map((f) => `- ${f}`).join("\n")}
|
|
80
|
-
|
|
81
|
-
Field Types (CRITICAL for aggregate functions):
|
|
82
|
-
${Object.entries(allFieldTypes).slice(0, 30).map(([key, type]) => `- ${key}: ${type}`).join("\n")}
|
|
83
|
-
${Object.keys(allFieldTypes).length > 30 ? `\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : ""}
|
|
84
|
-
|
|
85
|
-
IMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.
|
|
86
|
-
|
|
87
|
-
Use this information to construct appropriate queries for the ${dataset} dataset.`;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
//#endregion
|
|
93
|
-
export { createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
|
|
94
|
-
//# sourceMappingURL=utils-CaNeCYCH.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-CaNeCYCH.js","names":["event: FlexibleEventData","key: string","fields: string[]","apiService: SentryApiService","organizationSlug: string","dataset: \"errors\" | \"logs\" | \"spans\"","projectId?: string","timeParams?: { statsPeriod?: string; start?: string; end?: string }","customAttributes: Record<string, string>","fieldTypes: Record<string, \"string\" | \"number\">","options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}"],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { agentTool } from \"../../internal/agents/tools/utils\";\n\n// Type for flexible event data that can contain any fields\nexport type FlexibleEventData = Record<string, unknown>;\n\n// Helper to safely get a string value from event data\nexport function getStringValue(\n event: FlexibleEventData,\n key: string,\n defaultValue = \"\",\n): string {\n const value = event[key];\n return typeof value === \"string\" ? value : defaultValue;\n}\n\n// Helper to safely get a number value from event data\nexport function getNumberValue(\n event: FlexibleEventData,\n key: string,\n): number | undefined {\n const value = event[key];\n return typeof value === \"number\" ? value : undefined;\n}\n\n// Helper to check if fields contain aggregate functions\nexport function isAggregateQuery(fields: string[]): boolean {\n return fields.some((field) => field.includes(\"(\") && field.includes(\")\"));\n}\n\n// Helper function to fetch custom attributes for a dataset\nexport async function fetchCustomAttributes(\n apiService: SentryApiService,\n organizationSlug: string,\n dataset: \"errors\" | \"logs\" | \"spans\",\n projectId?: string,\n timeParams?: { statsPeriod?: string; start?: string; end?: string },\n): Promise<{\n attributes: Record<string, string>;\n fieldTypes: Record<string, \"string\" | \"number\">;\n}> {\n const customAttributes: Record<string, string> = {};\n const fieldTypes: Record<string, \"string\" | \"number\"> = {};\n\n if (dataset === \"errors\") {\n // TODO: For errors dataset, we currently need to use the old listTags API\n // This will be updated in the future to use the new trace-items attributes API\n const tagsResponse = await apiService.listTags({\n organizationSlug,\n dataset: \"events\",\n project: projectId,\n statsPeriod: \"14d\",\n useCache: true,\n useFlagsBackend: true,\n });\n\n for (const tag of tagsResponse) {\n if (tag.key && !tag.key.startsWith(\"sentry:\")) {\n customAttributes[tag.key] = tag.name || tag.key;\n }\n }\n } else {\n // For logs and spans datasets, use the trace-items attributes endpoint\n const itemType = dataset === \"logs\" ? \"logs\" : \"spans\";\n const attributesResponse = await apiService.listTraceItemAttributes({\n organizationSlug,\n itemType,\n project: projectId,\n statsPeriod: \"14d\",\n });\n\n for (const attr of attributesResponse) {\n if (attr.key && !attr.key.startsWith(\"sentry:\")) {\n customAttributes[attr.key] = attr.name || attr.key;\n // Track field type from the attribute response with validation\n if (attr.type && (attr.type === \"string\" || attr.type === \"number\")) {\n fieldTypes[attr.key] = attr.type;\n }\n }\n }\n }\n\n return { attributes: customAttributes, fieldTypes };\n}\n\n/**\n * Create a tool for the agent to query available attributes by dataset\n * The tool is pre-bound with the API service and organization configured for the appropriate region\n */\nexport function createDatasetAttributesTool(options: {\n apiService: SentryApiService;\n organizationSlug: string;\n projectId?: string;\n}) {\n const { apiService, organizationSlug, projectId } = options;\n return agentTool({\n description:\n \"Query available attributes and fields for a specific Sentry dataset to understand what data is available\",\n parameters: z.object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"The dataset to query attributes for\"),\n }),\n execute: async ({ dataset }) => {\n const {\n BASE_COMMON_FIELDS,\n DATASET_FIELDS,\n RECOMMENDED_FIELDS,\n NUMERIC_FIELDS,\n } = await import(\"./config\");\n\n // Get custom attributes for this dataset\n // IMPORTANT: Let ALL errors bubble up to wrapAgentToolExecute\n // UserInputError will be converted to error string for the AI agent\n // Other errors will bubble up to be captured by Sentry\n const { attributes: customAttributes, fieldTypes } =\n await fetchCustomAttributes(\n apiService,\n organizationSlug,\n dataset,\n projectId,\n );\n\n // Combine all available fields\n const allFields = {\n ...BASE_COMMON_FIELDS,\n ...DATASET_FIELDS[dataset],\n ...customAttributes,\n };\n\n const recommendedFields = RECOMMENDED_FIELDS[dataset];\n\n // Combine field types from both static config and dynamic API\n const allFieldTypes = { ...fieldTypes };\n const staticNumericFields = NUMERIC_FIELDS[dataset] || new Set();\n for (const field of staticNumericFields) {\n allFieldTypes[field] = \"number\";\n }\n\n return `Dataset: ${dataset}\n\nAvailable Fields (${Object.keys(allFields).length} total):\n${Object.entries(allFields)\n .slice(0, 50) // Limit to first 50 to avoid overwhelming the agent\n .map(([key, desc]) => `- ${key}: ${desc}`)\n .join(\"\\n\")}\n${Object.keys(allFields).length > 50 ? `\\n... and ${Object.keys(allFields).length - 50} more fields` : \"\"}\n\nRecommended Fields for ${dataset}:\n${recommendedFields.basic.map((f) => `- ${f}`).join(\"\\n\")}\n\nField Types (CRITICAL for aggregate functions):\n${Object.entries(allFieldTypes)\n .slice(0, 30) // Show more field types since this is critical for validation\n .map(([key, type]) => `- ${key}: ${type}`)\n .join(\"\\n\")}\n${Object.keys(allFieldTypes).length > 30 ? `\\n... and ${Object.keys(allFieldTypes).length - 30} more fields` : \"\"}\n\nIMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.\n\nUse this information to construct appropriate queries for the ${dataset} dataset.`;\n },\n });\n}\n"],"mappings":"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"}
|
package/dist/utils-CmH2wxA_.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SentryApiService } from "./client-BGVY6gBL.js";
|
|
2
|
-
import { AgentToolResponse } from "./utils-R15EJutP.js";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import * as ai34 from "ai";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/search-events/utils.d.ts
|
|
7
|
-
type FlexibleEventData = Record<string, unknown>;
|
|
8
|
-
declare function getStringValue(event: FlexibleEventData, key: string, defaultValue?: string): string;
|
|
9
|
-
declare function getNumberValue(event: FlexibleEventData, key: string): number | undefined;
|
|
10
|
-
declare function isAggregateQuery(fields: string[]): boolean;
|
|
11
|
-
declare function fetchCustomAttributes(apiService: SentryApiService, organizationSlug: string, dataset: "errors" | "logs" | "spans", projectId?: string, timeParams?: {
|
|
12
|
-
statsPeriod?: string;
|
|
13
|
-
start?: string;
|
|
14
|
-
end?: string;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
attributes: Record<string, string>;
|
|
17
|
-
fieldTypes: Record<string, "string" | "number">;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* Create a tool for the agent to query available attributes by dataset
|
|
21
|
-
* The tool is pre-bound with the API service and organization configured for the appropriate region
|
|
22
|
-
*/
|
|
23
|
-
declare function createDatasetAttributesTool(options: {
|
|
24
|
-
apiService: SentryApiService;
|
|
25
|
-
organizationSlug: string;
|
|
26
|
-
projectId?: string;
|
|
27
|
-
}): ai34.Tool<z.ZodType<{
|
|
28
|
-
dataset: "spans" | "errors" | "logs";
|
|
29
|
-
}, z.ZodTypeDef, {
|
|
30
|
-
dataset: "spans" | "errors" | "logs";
|
|
31
|
-
}>, AgentToolResponse<string>> & {
|
|
32
|
-
execute: (args: {
|
|
33
|
-
dataset: "spans" | "errors" | "logs";
|
|
34
|
-
}, options: ai34.ToolExecutionOptions) => PromiseLike<AgentToolResponse<string>>;
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
37
|
-
//#endregion
|
|
38
|
-
export { FlexibleEventData, createDatasetAttributesTool, fetchCustomAttributes, getNumberValue, getStringValue, isAggregateQuery };
|
|
39
|
-
//# sourceMappingURL=utils-CmH2wxA_.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-CmH2wxA_.d.ts","names":[],"sources":["../src/tools/search-events/utils.ts"],"sourcesContent":[],"mappings":";;;;;;KAKY,iBAAA,GAAoB;iBAGhB,cAAA,QACP;iBASO,cAAA,QACP;iBAQO,gBAAA;AAtBJ,iBA2BU,qBAAA,CA3BgB,UAAA,EA4BxB,gBA5BwB,EAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,QAAA,GAAA,MAAA,GAAA,OAAA,EAAA,SAAA,CAAA,EAAA,MAAA,EAAA,UA2BtC,CA3BsC,EAAA;EAGtB,WAAA,CAAA,EAAA,MAAc;EAUd,KAAA,CAAA,EAAA,MAAA;EASA,GAAA,CAAA,EAAA,MAAA;AAKhB,CAAA,CAAA,EAMG,OANmB,CAAA;EAAqB,UAAA,EAO7B,MAP6B,CAAA,MAAA,EAAA,MAAA,CAAA;EAAA,UAC7B,EAOA,MAPA,CAAA,MAAA,EAAA,QAAA,GAAA,QAAA,CAAA;CAAgB,CAAA;;;AAKpB;AAoDV;AAA2C,iBAA3B,2BAAA,CAA2B,OAAA,EAAA;EAAA,UAC7B,EAAA,gBAAA;EAAgB,gBAAA,EAAA,MAAA;WAG7B,CAAA,EAAA,MAAA;CAAA,CAAA,OAAA,IAAA,CAAA,CAAA,CAAA,OAAA,CAAA;WAAA,OAAA,GAAA,QAAA,GAAA,MAAA;CAAA,EAH6B,CAAA,CAAA,UAG7B,EAAA;;IAAA;;;cAAA,IAAA,CAAA"}
|
package/dist/utils-DJIwl8YR.cjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_errors = require('./errors-umQzF_vW.cjs');
|
|
3
|
-
const require_logging = require('./logging-C-ST7-Ow.cjs');
|
|
4
|
-
const require_errors$1 = require('./errors-DWysOIMw.cjs');
|
|
5
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
6
|
-
const ai = require_chunk.__toESM(require("ai"));
|
|
7
|
-
|
|
8
|
-
//#region src/internal/agents/tools/utils.ts
|
|
9
|
-
/**
|
|
10
|
-
* Standard response schema for all embedded agent tools.
|
|
11
|
-
* Tools return either an error message or the result data, never both.
|
|
12
|
-
*/
|
|
13
|
-
const AgentToolResponseSchema = zod.z.object({
|
|
14
|
-
error: zod.z.string().optional().describe("Error message if the operation failed"),
|
|
15
|
-
result: zod.z.unknown().optional().describe("The successful result data")
|
|
16
|
-
});
|
|
17
|
-
/**
|
|
18
|
-
* Handles errors from agent tool execution and returns appropriate error messages.
|
|
19
|
-
*
|
|
20
|
-
* SECURITY: Only returns trusted error messages to prevent prompt injection.
|
|
21
|
-
* We trust: Sentry API errors, our own UserInputError messages, and system templates.
|
|
22
|
-
*/
|
|
23
|
-
function handleAgentToolError(error) {
|
|
24
|
-
if (error instanceof require_errors.UserInputError) {
|
|
25
|
-
require_logging.logWarn(error, {
|
|
26
|
-
loggerScope: ["agent-tools", "user-input"],
|
|
27
|
-
contexts: { agentTool: { errorType: "UserInputError" } }
|
|
28
|
-
});
|
|
29
|
-
return { error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.` };
|
|
30
|
-
}
|
|
31
|
-
if (error instanceof require_errors$1.ApiClientError) {
|
|
32
|
-
const message = error.toUserMessage();
|
|
33
|
-
require_logging.logWarn(message, {
|
|
34
|
-
loggerScope: ["agent-tools", "api-client"],
|
|
35
|
-
contexts: { agentTool: {
|
|
36
|
-
errorType: error.name,
|
|
37
|
-
status: error.status ?? null
|
|
38
|
-
} }
|
|
39
|
-
});
|
|
40
|
-
return { error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.` };
|
|
41
|
-
}
|
|
42
|
-
if (error instanceof require_errors$1.ApiServerError) {
|
|
43
|
-
const eventId$1 = require_logging.logIssue(error);
|
|
44
|
-
const statusText = error.status ? ` (${error.status})` : "";
|
|
45
|
-
return { error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId$1}. This is a system error that cannot be resolved by retrying.` };
|
|
46
|
-
}
|
|
47
|
-
const eventId = require_logging.logIssue(error);
|
|
48
|
-
return { error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.` };
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Creates an embedded agent tool with automatic error handling and schema wrapping.
|
|
52
|
-
*
|
|
53
|
-
* This wrapper:
|
|
54
|
-
* - Maintains the same API as the AI SDK's tool() function
|
|
55
|
-
* - Automatically wraps the result schema with error/result structure
|
|
56
|
-
* - Handles all error types and returns them as structured responses
|
|
57
|
-
* - Preserves type inference from the original tool implementation
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```typescript
|
|
61
|
-
* export function createMyTool(apiService: SentryApiService) {
|
|
62
|
-
* return agentTool({
|
|
63
|
-
* description: "My tool description",
|
|
64
|
-
* parameters: z.object({ param: z.string() }),
|
|
65
|
-
* execute: async (params) => {
|
|
66
|
-
* // Tool implementation that might throw errors
|
|
67
|
-
* const result = await apiService.someMethod(params);
|
|
68
|
-
* return result; // Original return type preserved
|
|
69
|
-
* }
|
|
70
|
-
* });
|
|
71
|
-
* }
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
function agentTool(config) {
|
|
75
|
-
return (0, ai.tool)({
|
|
76
|
-
description: config.description,
|
|
77
|
-
parameters: config.parameters,
|
|
78
|
-
execute: async (params) => {
|
|
79
|
-
try {
|
|
80
|
-
const result = await config.execute(params);
|
|
81
|
-
return { result };
|
|
82
|
-
} catch (error) {
|
|
83
|
-
return handleAgentToolError(error);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
Object.defineProperty(exports, 'agentTool', {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return agentTool;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
//# sourceMappingURL=utils-DJIwl8YR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-DJIwl8YR.cjs","names":["error: unknown","UserInputError","ApiClientError","ApiServerError","eventId","config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}","params: TParameters"],"sources":["../src/internal/agents/tools/utils.ts"],"sourcesContent":["import { tool } from \"ai\";\nimport { z } from \"zod\";\nimport { UserInputError } from \"../../../errors\";\nimport { ApiClientError, ApiServerError } from \"../../../api-client\";\nimport { logIssue, logWarn } from \"../../../telem/logging\";\n\n/**\n * Standard response schema for all embedded agent tools.\n * Tools return either an error message or the result data, never both.\n */\nconst AgentToolResponseSchema = z.object({\n error: z\n .string()\n .optional()\n .describe(\"Error message if the operation failed\"),\n result: z.unknown().optional().describe(\"The successful result data\"),\n});\n\nexport type AgentToolResponse<T = unknown> = {\n error?: string;\n result?: T;\n};\n\n/**\n * Handles errors from agent tool execution and returns appropriate error messages.\n *\n * SECURITY: Only returns trusted error messages to prevent prompt injection.\n * We trust: Sentry API errors, our own UserInputError messages, and system templates.\n */\nfunction handleAgentToolError<T>(error: unknown): AgentToolResponse<T> {\n if (error instanceof UserInputError) {\n // Log UserInputError for Sentry logging (as log, not exception)\n logWarn(error, {\n loggerScope: [\"agent-tools\", \"user-input\"],\n contexts: {\n agentTool: {\n errorType: \"UserInputError\",\n },\n },\n });\n return {\n error: `Input Error: ${error.message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiClientError) {\n // Log ApiClientError for Sentry logging (as log, not exception)\n const message = error.toUserMessage();\n logWarn(message, {\n loggerScope: [\"agent-tools\", \"api-client\"],\n contexts: {\n agentTool: {\n errorType: error.name,\n status: error.status ?? null,\n },\n },\n });\n return {\n error: `Input Error: ${message}. You may be able to resolve this by addressing the concern and trying again.`,\n };\n }\n\n if (error instanceof ApiServerError) {\n // Log server errors to Sentry and get Event ID\n const eventId = logIssue(error);\n const statusText = error.status ? ` (${error.status})` : \"\";\n return {\n error: `Server Error${statusText}: ${error.message}. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n }\n\n // Log unexpected errors to Sentry and return safe generic message\n // SECURITY: Don't return untrusted error messages that could enable prompt injection\n const eventId = logIssue(error);\n return {\n error: `System Error: An unexpected error occurred. Event ID: ${eventId}. This is a system error that cannot be resolved by retrying.`,\n };\n}\n\n/**\n * Creates an embedded agent tool with automatic error handling and schema wrapping.\n *\n * This wrapper:\n * - Maintains the same API as the AI SDK's tool() function\n * - Automatically wraps the result schema with error/result structure\n * - Handles all error types and returns them as structured responses\n * - Preserves type inference from the original tool implementation\n *\n * @example\n * ```typescript\n * export function createMyTool(apiService: SentryApiService) {\n * return agentTool({\n * description: \"My tool description\",\n * parameters: z.object({ param: z.string() }),\n * execute: async (params) => {\n * // Tool implementation that might throw errors\n * const result = await apiService.someMethod(params);\n * return result; // Original return type preserved\n * }\n * });\n * }\n * ```\n */\nexport function agentTool<TParameters, TResult>(config: {\n description: string;\n parameters: z.ZodSchema<TParameters>;\n execute: (params: TParameters) => Promise<TResult>;\n}) {\n // Infer the result type from the execute function's return type\n type InferredResult = Awaited<ReturnType<typeof config.execute>>;\n\n return tool({\n description: config.description,\n parameters: config.parameters,\n execute: async (\n params: TParameters,\n ): Promise<AgentToolResponse<InferredResult>> => {\n try {\n const result = await config.execute(params);\n return { result };\n } catch (error) {\n return handleAgentToolError<InferredResult>(error);\n }\n },\n });\n}\n"],"mappings":";;;;;;;;;;;;AAUA,MAAM,0BAA0B,MAAE,OAAO;CACvC,OAAO,MACJ,QAAQ,CACR,UAAU,CACV,SAAS,wCAAwC;CACpD,QAAQ,MAAE,SAAS,CAAC,UAAU,CAAC,SAAS,6BAA6B;AACtE,EAAC;;;;;;;AAaF,SAAS,qBAAwBA,OAAsC;AACrE,KAAI,iBAAiBC,+BAAgB;AAEnC,0BAAQ,OAAO;GACb,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW,EACT,WAAW,iBACZ,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,MAAM,QAAQ,+EACtC;CACF;AAED,KAAI,iBAAiBC,iCAAgB;EAEnC,MAAM,UAAU,MAAM,eAAe;AACrC,0BAAQ,SAAS;GACf,aAAa,CAAC,eAAe,YAAa;GAC1C,UAAU,EACR,WAAW;IACT,WAAW,MAAM;IACjB,QAAQ,MAAM,UAAU;GACzB,EACF;EACF,EAAC;AACF,SAAO,EACL,QAAQ,eAAe,QAAQ,+EAChC;CACF;AAED,KAAI,iBAAiBC,iCAAgB;EAEnC,MAAMC,YAAU,yBAAS,MAAM;EAC/B,MAAM,aAAa,MAAM,UAAU,IAAI,MAAM,OAAO,KAAK;AACzD,SAAO,EACL,QAAQ,cAAc,WAAW,IAAI,MAAM,QAAQ,cAAcA,UAAQ,+DAC1E;CACF;CAID,MAAM,UAAU,yBAAS,MAAM;AAC/B,QAAO,EACL,QAAQ,wDAAwD,QAAQ,+DACzE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;AA0BD,SAAgB,UAAgCC,QAI7C;AAID,QAAO,aAAK;EACV,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,SAAS,OACPC,WAC+C;AAC/C,OAAI;IACF,MAAM,SAAS,MAAM,OAAO,QAAQ,OAAO;AAC3C,WAAO,EAAE,OAAQ;GAClB,SAAQ,OAAO;AACd,WAAO,qBAAqC,MAAM;GACnD;EACF;CACF,EAAC;AACH"}
|