@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,235 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/utils/url-utils.ts
|
|
3
|
-
/**
|
|
4
|
-
* Determines if a Sentry instance is SaaS or self-hosted based on the host.
|
|
5
|
-
* @param host The Sentry host (e.g., "sentry.io" or "sentry.company.com")
|
|
6
|
-
* @returns true if SaaS instance, false if self-hosted
|
|
7
|
-
*/
|
|
8
|
-
function isSentryHost(host) {
|
|
9
|
-
return host === "sentry.io" || host.endsWith(".sentry.io");
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Generates a Sentry issue URL.
|
|
13
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
14
|
-
* @param organizationSlug Organization identifier
|
|
15
|
-
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
16
|
-
* @returns The complete issue URL
|
|
17
|
-
*/
|
|
18
|
-
function getIssueUrl(host, organizationSlug, issueId) {
|
|
19
|
-
const isSaas = isSentryHost(host);
|
|
20
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
21
|
-
return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Generates a Sentry issues search URL.
|
|
25
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
26
|
-
* @param organizationSlug Organization identifier
|
|
27
|
-
* @param query Optional search query
|
|
28
|
-
* @param projectSlugOrId Optional project slug or ID
|
|
29
|
-
* @returns The complete issues search URL
|
|
30
|
-
*/
|
|
31
|
-
function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
32
|
-
const isSaas = isSentryHost(host);
|
|
33
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
34
|
-
let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
|
|
35
|
-
const params = new URLSearchParams();
|
|
36
|
-
if (projectSlugOrId) params.append("project", projectSlugOrId);
|
|
37
|
-
if (query) params.append("query", query);
|
|
38
|
-
const queryString = params.toString();
|
|
39
|
-
if (queryString) url += `?${queryString}`;
|
|
40
|
-
return url;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Generates a Sentry trace URL for performance investigation.
|
|
44
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
45
|
-
* @param organizationSlug Organization identifier
|
|
46
|
-
* @param traceId Trace identifier
|
|
47
|
-
* @returns The complete trace URL
|
|
48
|
-
*/
|
|
49
|
-
function getTraceUrl(host, organizationSlug, traceId) {
|
|
50
|
-
const isSaas = isSentryHost(host);
|
|
51
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
52
|
-
return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Generates a Sentry events explorer URL.
|
|
56
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
57
|
-
* @param organizationSlug Organization identifier
|
|
58
|
-
* @param query Search query
|
|
59
|
-
* @param dataset Dataset type
|
|
60
|
-
* @param projectSlug Optional project slug
|
|
61
|
-
* @param fields Optional fields to display
|
|
62
|
-
* @returns The complete events explorer URL
|
|
63
|
-
*/
|
|
64
|
-
function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
|
|
65
|
-
const isSaas = isSentryHost(host);
|
|
66
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
67
|
-
let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
|
|
68
|
-
const params = new URLSearchParams();
|
|
69
|
-
params.append("query", query);
|
|
70
|
-
params.append("dataset", dataset);
|
|
71
|
-
params.append("layout", "table");
|
|
72
|
-
if (projectSlug) params.append("project", projectSlug);
|
|
73
|
-
if (fields && fields.length > 0) for (const field of fields) params.append("field", field);
|
|
74
|
-
url += `?${params.toString()}`;
|
|
75
|
-
return url;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
79
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
80
|
-
*
|
|
81
|
-
* @param host The hostname to validate
|
|
82
|
-
* @throws {Error} If the host contains a protocol
|
|
83
|
-
*/
|
|
84
|
-
function _validateSentryHostInternal(host) {
|
|
85
|
-
if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
89
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
90
|
-
*
|
|
91
|
-
* @param url The HTTPS URL to validate and parse
|
|
92
|
-
* @returns The extracted hostname from the URL
|
|
93
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
94
|
-
*/
|
|
95
|
-
function _validateAndParseSentryUrlInternal(url) {
|
|
96
|
-
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
97
|
-
try {
|
|
98
|
-
const parsedUrl = new URL(url);
|
|
99
|
-
return parsedUrl.host;
|
|
100
|
-
} catch (error) {
|
|
101
|
-
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
106
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
107
|
-
*
|
|
108
|
-
* @param host The hostname to validate
|
|
109
|
-
*/
|
|
110
|
-
function validateSentryHost(host) {
|
|
111
|
-
try {
|
|
112
|
-
_validateSentryHostInternal(host);
|
|
113
|
-
} catch (error) {
|
|
114
|
-
console.error(`Error: ${error.message}`);
|
|
115
|
-
process.exit(1);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
120
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
121
|
-
*
|
|
122
|
-
* @param url The HTTPS URL to validate and parse
|
|
123
|
-
* @returns The extracted hostname from the URL
|
|
124
|
-
*/
|
|
125
|
-
function validateAndParseSentryUrl(url) {
|
|
126
|
-
try {
|
|
127
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
128
|
-
} catch (error) {
|
|
129
|
-
console.error(`Error: ${error.message}`);
|
|
130
|
-
process.exit(1);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
135
|
-
* Throws an error instead of exiting the process (for testing).
|
|
136
|
-
*
|
|
137
|
-
* @param host The hostname to validate
|
|
138
|
-
* @throws {Error} If the host contains a protocol
|
|
139
|
-
*/
|
|
140
|
-
function validateSentryHostThrows(host) {
|
|
141
|
-
_validateSentryHostInternal(host);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
145
|
-
* Throws an error instead of exiting the process (for testing).
|
|
146
|
-
*
|
|
147
|
-
* @param url The HTTPS URL to validate and parse
|
|
148
|
-
* @returns The extracted hostname from the URL
|
|
149
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
150
|
-
*/
|
|
151
|
-
function validateAndParseSentryUrlThrows(url) {
|
|
152
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
156
|
-
*
|
|
157
|
-
* @param url The URL to validate and normalize
|
|
158
|
-
* @returns The normalized URL string
|
|
159
|
-
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
160
|
-
*/
|
|
161
|
-
function validateOpenAiBaseUrlThrows(url) {
|
|
162
|
-
const trimmed = url.trim();
|
|
163
|
-
if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
|
|
164
|
-
let parsed;
|
|
165
|
-
try {
|
|
166
|
-
parsed = new URL(trimmed);
|
|
167
|
-
} catch (error) {
|
|
168
|
-
throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
|
|
169
|
-
}
|
|
170
|
-
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
|
|
171
|
-
return parsed.toString();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
//#endregion
|
|
175
|
-
Object.defineProperty(exports, 'getEventsExplorerUrl', {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return getEventsExplorerUrl;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
Object.defineProperty(exports, 'getIssueUrl', {
|
|
182
|
-
enumerable: true,
|
|
183
|
-
get: function () {
|
|
184
|
-
return getIssueUrl;
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(exports, 'getIssuesSearchUrl', {
|
|
188
|
-
enumerable: true,
|
|
189
|
-
get: function () {
|
|
190
|
-
return getIssuesSearchUrl;
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(exports, 'getTraceUrl', {
|
|
194
|
-
enumerable: true,
|
|
195
|
-
get: function () {
|
|
196
|
-
return getTraceUrl;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(exports, 'isSentryHost', {
|
|
200
|
-
enumerable: true,
|
|
201
|
-
get: function () {
|
|
202
|
-
return isSentryHost;
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
Object.defineProperty(exports, 'validateAndParseSentryUrl', {
|
|
206
|
-
enumerable: true,
|
|
207
|
-
get: function () {
|
|
208
|
-
return validateAndParseSentryUrl;
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
|
|
212
|
-
enumerable: true,
|
|
213
|
-
get: function () {
|
|
214
|
-
return validateAndParseSentryUrlThrows;
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
Object.defineProperty(exports, 'validateOpenAiBaseUrlThrows', {
|
|
218
|
-
enumerable: true,
|
|
219
|
-
get: function () {
|
|
220
|
-
return validateOpenAiBaseUrlThrows;
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperty(exports, 'validateSentryHost', {
|
|
224
|
-
enumerable: true,
|
|
225
|
-
get: function () {
|
|
226
|
-
return validateSentryHost;
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
Object.defineProperty(exports, 'validateSentryHostThrows', {
|
|
230
|
-
enumerable: true,
|
|
231
|
-
get: function () {
|
|
232
|
-
return validateSentryHostThrows;
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
//# sourceMappingURL=url-utils-CbcNJVYS.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils-CbcNJVYS.cjs","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
//#region src/utils/url-utils.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
|
-
function isSentryHost(host) {
|
|
8
|
-
return host === "sentry.io" || host.endsWith(".sentry.io");
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Generates a Sentry issue URL.
|
|
12
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
13
|
-
* @param organizationSlug Organization identifier
|
|
14
|
-
* @param issueId Issue identifier (e.g., "PROJECT-123")
|
|
15
|
-
* @returns The complete issue URL
|
|
16
|
-
*/
|
|
17
|
-
function getIssueUrl(host, organizationSlug, issueId) {
|
|
18
|
-
const isSaas = isSentryHost(host);
|
|
19
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
20
|
-
return isSaas ? `https://${organizationSlug}.${webHost}/issues/${issueId}` : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Generates a Sentry issues search URL.
|
|
24
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
25
|
-
* @param organizationSlug Organization identifier
|
|
26
|
-
* @param query Optional search query
|
|
27
|
-
* @param projectSlugOrId Optional project slug or ID
|
|
28
|
-
* @returns The complete issues search URL
|
|
29
|
-
*/
|
|
30
|
-
function getIssuesSearchUrl(host, organizationSlug, query, projectSlugOrId) {
|
|
31
|
-
const isSaas = isSentryHost(host);
|
|
32
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
33
|
-
let url = isSaas ? `https://${organizationSlug}.${webHost}/issues/` : `https://${host}/organizations/${organizationSlug}/issues/`;
|
|
34
|
-
const params = new URLSearchParams();
|
|
35
|
-
if (projectSlugOrId) params.append("project", projectSlugOrId);
|
|
36
|
-
if (query) params.append("query", query);
|
|
37
|
-
const queryString = params.toString();
|
|
38
|
-
if (queryString) url += `?${queryString}`;
|
|
39
|
-
return url;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Generates a Sentry trace URL for performance investigation.
|
|
43
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
44
|
-
* @param organizationSlug Organization identifier
|
|
45
|
-
* @param traceId Trace identifier
|
|
46
|
-
* @returns The complete trace URL
|
|
47
|
-
*/
|
|
48
|
-
function getTraceUrl(host, organizationSlug, traceId) {
|
|
49
|
-
const isSaas = isSentryHost(host);
|
|
50
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
51
|
-
return isSaas ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}` : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Generates a Sentry events explorer URL.
|
|
55
|
-
* @param host The Sentry host (may include regional subdomain for API access)
|
|
56
|
-
* @param organizationSlug Organization identifier
|
|
57
|
-
* @param query Search query
|
|
58
|
-
* @param dataset Dataset type
|
|
59
|
-
* @param projectSlug Optional project slug
|
|
60
|
-
* @param fields Optional fields to display
|
|
61
|
-
* @returns The complete events explorer URL
|
|
62
|
-
*/
|
|
63
|
-
function getEventsExplorerUrl(host, organizationSlug, query, dataset = "spans", projectSlug, fields) {
|
|
64
|
-
const isSaas = isSentryHost(host);
|
|
65
|
-
const webHost = isSaas ? "sentry.io" : host;
|
|
66
|
-
let url = isSaas ? `https://${organizationSlug}.${webHost}/explore/` : `https://${host}/organizations/${organizationSlug}/explore/`;
|
|
67
|
-
const params = new URLSearchParams();
|
|
68
|
-
params.append("query", query);
|
|
69
|
-
params.append("dataset", dataset);
|
|
70
|
-
params.append("layout", "table");
|
|
71
|
-
if (projectSlug) params.append("project", projectSlug);
|
|
72
|
-
if (fields && fields.length > 0) for (const field of fields) params.append("field", field);
|
|
73
|
-
url += `?${params.toString()}`;
|
|
74
|
-
return url;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
78
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
79
|
-
*
|
|
80
|
-
* @param host The hostname to validate
|
|
81
|
-
* @throws {Error} If the host contains a protocol
|
|
82
|
-
*/
|
|
83
|
-
function _validateSentryHostInternal(host) {
|
|
84
|
-
if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
88
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
89
|
-
*
|
|
90
|
-
* @param url The HTTPS URL to validate and parse
|
|
91
|
-
* @returns The extracted hostname from the URL
|
|
92
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
93
|
-
*/
|
|
94
|
-
function _validateAndParseSentryUrlInternal(url) {
|
|
95
|
-
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
96
|
-
try {
|
|
97
|
-
const parsedUrl = new URL(url);
|
|
98
|
-
return parsedUrl.host;
|
|
99
|
-
} catch (error) {
|
|
100
|
-
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
105
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
106
|
-
*
|
|
107
|
-
* @param host The hostname to validate
|
|
108
|
-
*/
|
|
109
|
-
function validateSentryHost(host) {
|
|
110
|
-
try {
|
|
111
|
-
_validateSentryHostInternal(host);
|
|
112
|
-
} catch (error) {
|
|
113
|
-
console.error(`Error: ${error.message}`);
|
|
114
|
-
process.exit(1);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
119
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
120
|
-
*
|
|
121
|
-
* @param url The HTTPS URL to validate and parse
|
|
122
|
-
* @returns The extracted hostname from the URL
|
|
123
|
-
*/
|
|
124
|
-
function validateAndParseSentryUrl(url) {
|
|
125
|
-
try {
|
|
126
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
127
|
-
} catch (error) {
|
|
128
|
-
console.error(`Error: ${error.message}`);
|
|
129
|
-
process.exit(1);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
134
|
-
* Throws an error instead of exiting the process (for testing).
|
|
135
|
-
*
|
|
136
|
-
* @param host The hostname to validate
|
|
137
|
-
* @throws {Error} If the host contains a protocol
|
|
138
|
-
*/
|
|
139
|
-
function validateSentryHostThrows(host) {
|
|
140
|
-
_validateSentryHostInternal(host);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
144
|
-
* Throws an error instead of exiting the process (for testing).
|
|
145
|
-
*
|
|
146
|
-
* @param url The HTTPS URL to validate and parse
|
|
147
|
-
* @returns The extracted hostname from the URL
|
|
148
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
149
|
-
*/
|
|
150
|
-
function validateAndParseSentryUrlThrows(url) {
|
|
151
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.
|
|
155
|
-
*
|
|
156
|
-
* @param url The URL to validate and normalize
|
|
157
|
-
* @returns The normalized URL string
|
|
158
|
-
* @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol
|
|
159
|
-
*/
|
|
160
|
-
function validateOpenAiBaseUrlThrows(url) {
|
|
161
|
-
const trimmed = url.trim();
|
|
162
|
-
if (trimmed.length === 0) throw new Error("OPENAI base URL must not be empty.");
|
|
163
|
-
let parsed;
|
|
164
|
-
try {
|
|
165
|
-
parsed = new URL(trimmed);
|
|
166
|
-
} catch (error) {
|
|
167
|
-
throw new Error("OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).", { cause: error });
|
|
168
|
-
}
|
|
169
|
-
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") throw new Error("OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).");
|
|
170
|
-
return parsed.toString();
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
//#endregion
|
|
174
|
-
export { getEventsExplorerUrl, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isSentryHost, validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateOpenAiBaseUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
175
|
-
//# sourceMappingURL=url-utils-CfKwo6s5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils-CfKwo6s5.js","names":["host: string","organizationSlug: string","issueId: string","query?: string | null","projectSlugOrId?: string","traceId: string","query: string","dataset: \"spans\" | \"errors\" | \"logs\"","projectSlug?: string","fields?: string[]","url: string","parsed: URL"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Determines if a Sentry instance is SaaS or self-hosted based on the host.\n * @param host The Sentry host (e.g., \"sentry.io\" or \"sentry.company.com\")\n * @returns true if SaaS instance, false if self-hosted\n */\nexport function isSentryHost(host: string): boolean {\n return host === \"sentry.io\" || host.endsWith(\".sentry.io\");\n}\n\n/**\n * Generates a Sentry issue URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param issueId Issue identifier (e.g., \"PROJECT-123\")\n * @returns The complete issue URL\n */\nexport function getIssueUrl(\n host: string,\n organizationSlug: string,\n issueId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/issues/${issueId}`\n : `https://${host}/organizations/${organizationSlug}/issues/${issueId}`;\n}\n\n/**\n * Generates a Sentry issues search URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Optional search query\n * @param projectSlugOrId Optional project slug or ID\n * @returns The complete issues search URL\n */\nexport function getIssuesSearchUrl(\n host: string,\n organizationSlug: string,\n query?: string | null,\n projectSlugOrId?: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/issues/`\n : `https://${host}/organizations/${organizationSlug}/issues/`;\n\n const params = new URLSearchParams();\n if (projectSlugOrId) {\n params.append(\"project\", projectSlugOrId);\n }\n if (query) {\n params.append(\"query\", query);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return url;\n}\n\n/**\n * Generates a Sentry trace URL for performance investigation.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param traceId Trace identifier\n * @returns The complete trace URL\n */\nexport function getTraceUrl(\n host: string,\n organizationSlug: string,\n traceId: string,\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n return isSaas\n ? `https://${organizationSlug}.${webHost}/explore/traces/trace/${traceId}`\n : `https://${host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`;\n}\n\n/**\n * Generates a Sentry events explorer URL.\n * @param host The Sentry host (may include regional subdomain for API access)\n * @param organizationSlug Organization identifier\n * @param query Search query\n * @param dataset Dataset type\n * @param projectSlug Optional project slug\n * @param fields Optional fields to display\n * @returns The complete events explorer URL\n */\nexport function getEventsExplorerUrl(\n host: string,\n organizationSlug: string,\n query: string,\n dataset: \"spans\" | \"errors\" | \"logs\" = \"spans\",\n projectSlug?: string,\n fields?: string[],\n): string {\n const isSaas = isSentryHost(host);\n // For SaaS instances, always use sentry.io for web UI URLs regardless of region\n // Regional subdomains (e.g., us.sentry.io) are only for API endpoints\n const webHost = isSaas ? \"sentry.io\" : host;\n let url = isSaas\n ? `https://${organizationSlug}.${webHost}/explore/`\n : `https://${host}/organizations/${organizationSlug}/explore/`;\n\n const params = new URLSearchParams();\n params.append(\"query\", query);\n params.append(\"dataset\", dataset);\n params.append(\"layout\", \"table\");\n\n if (projectSlug) {\n params.append(\"project\", projectSlug);\n }\n\n if (fields && fields.length > 0) {\n for (const field of fields) {\n params.append(\"field\", field);\n }\n }\n\n url += `?${params.toString()}`;\n return url;\n}\n\n/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n\n/**\n * Validates that the provided OpenAI base URL is a valid HTTP(S) URL and returns a normalized string.\n *\n * @param url The URL to validate and normalize\n * @returns The normalized URL string\n * @throws {Error} If the URL is empty, invalid, or uses an unsupported protocol\n */\nexport function validateOpenAiBaseUrlThrows(url: string): string {\n const trimmed = url.trim();\n if (trimmed.length === 0) {\n throw new Error(\"OPENAI base URL must not be empty.\");\n }\n\n let parsed: URL;\n try {\n parsed = new URL(trimmed);\n } catch (error) {\n throw new Error(\n \"OPENAI base URL must be a valid HTTP or HTTPS URL (e.g., https://example.com/v1).\",\n { cause: error },\n );\n }\n\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n throw new Error(\n \"OPENAI base URL must use http or https scheme (e.g., https://example.com/v1).\",\n );\n }\n\n // Preserve the exact path to support Azure or proxy endpoints that include version/path segments\n return parsed.toString();\n}\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage-CMWaPhZv.cjs","names":["packageName: string","defaultScopes: ReadonlyArray<Scope>","allScopes: ReadonlyArray<Scope>","defaultSkills: ReadonlyArray<Skill>","allSkills: ReadonlyArray<Skill>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\nimport type { Skill } from \"../skills\";\n\nexport function buildUsage(\n packageName: string,\n defaultScopes: ReadonlyArray<Scope>,\n allScopes: ReadonlyArray<Scope>,\n defaultSkills: ReadonlyArray<Skill>,\n allSkills: ReadonlyArray<Skill>,\n): string {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>]\n\nRequired:\n --access-token <token> Sentry User Auth Token with API access\n\nCommon optional flags:\n --host <host> Change Sentry host (self-hosted)\n --sentry-dsn <dsn> Override DSN used for telemetry reporting\n --openai-base-url <url> Override OpenAI API base URL for embedded agents\n --openai-model <model> Override OpenAI model (default: gpt-5, reasoning effort: low)\n --agent Agent mode: only expose use_sentry tool (for AI agents)\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nSkill controls (recommended):\n --skills <list> Specify which skills to grant (default: all skills)\n\nAll skills: ${allSkills.join(\", \")}\n\nScope controls (legacy - deprecated, use skills instead):\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefault scopes: ${defaultScopes.join(\", \")}\nAll scopes: ${allScopes.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --skills=inspect,triage\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-model=o1-mini\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";;AAGA,SAAgB,WACdA,aACAC,eACAC,WACAC,eACAC,WACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;cAmBjB,UAAU,KAAK,KAAK,CAAC;;;;;;;kBAOjB,cAAc,KAAK,KAAK,CAAC;cAC7B,UAAU,KAAK,KAAK,CAAC;;;IAG/B,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage-CpguKuwi.js","names":["packageName: string","defaultScopes: ReadonlyArray<Scope>","allScopes: ReadonlyArray<Scope>","defaultSkills: ReadonlyArray<Skill>","allSkills: ReadonlyArray<Skill>"],"sources":["../src/cli/usage.ts"],"sourcesContent":["import type { Scope } from \"../permissions\";\nimport type { Skill } from \"../skills\";\n\nexport function buildUsage(\n packageName: string,\n defaultScopes: ReadonlyArray<Scope>,\n allScopes: ReadonlyArray<Scope>,\n defaultSkills: ReadonlyArray<Skill>,\n allSkills: ReadonlyArray<Skill>,\n): string {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>]\n\nRequired:\n --access-token <token> Sentry User Auth Token with API access\n\nCommon optional flags:\n --host <host> Change Sentry host (self-hosted)\n --sentry-dsn <dsn> Override DSN used for telemetry reporting\n --openai-base-url <url> Override OpenAI API base URL for embedded agents\n --openai-model <model> Override OpenAI model (default: gpt-5, reasoning effort: low)\n --agent Agent mode: only expose use_sentry tool (for AI agents)\n\nSession constraints:\n --organization-slug <slug> Force all calls to an organization\n --project-slug <slug> Optional project constraint\n\nSkill controls (recommended):\n --skills <list> Specify which skills to grant (default: all skills)\n\nAll skills: ${allSkills.join(\", \")}\n\nScope controls (legacy - deprecated, use skills instead):\n --scopes <list> Override default scopes\n --add-scopes <list> Add scopes to defaults\n --all-scopes Grant every available scope\n\nDefault scopes: ${defaultScopes.join(\", \")}\nAll scopes: ${allScopes.join(\", \")}\n\nExamples:\n ${packageName} --access-token=TOKEN\n ${packageName} --access-token=TOKEN --skills=inspect,triage\n ${packageName} --access-token=TOKEN --host=sentry.example.com\n ${packageName} --access-token=TOKEN --openai-model=o1-mini\n ${packageName} --access-token=TOKEN --openai-base-url=https://proxy.example.com/v1`;\n}\n"],"mappings":";AAGA,SAAgB,WACdA,aACAC,eACAC,WACAC,eACAC,WACQ;AACR,SAAQ,SAAS,YAAY;;;;;;;;;;;;;;;;;;;cAmBjB,UAAU,KAAK,KAAK,CAAC;;;;;;;kBAOjB,cAAc,KAAK,KAAK,CAAC;cAC7B,UAAU,KAAK,KAAK,CAAC;;;IAG/B,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;AACf"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const require_slug_validation = require('../slug-validation-D5VJqMwH.cjs');
|
|
2
|
-
|
|
3
|
-
exports.isNumericId = require_slug_validation.isNumericId;
|
|
4
|
-
exports.validateSlug = require_slug_validation.validateSlug;
|
|
5
|
-
exports.validateSlugOrId = require_slug_validation.validateSlugOrId;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/utils/slug-validation.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Helper to check if a string is a numeric ID.
|
|
7
|
-
*/
|
|
8
|
-
declare function isNumericId(value: string): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Validates a slug to prevent path traversal and injection attacks.
|
|
11
|
-
* Designed to be used with Zod's superRefine() method.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```typescript
|
|
15
|
-
* const OrganizationSlug = z.string()
|
|
16
|
-
* .toLowerCase()
|
|
17
|
-
* .trim()
|
|
18
|
-
* .superRefine(validateSlug)
|
|
19
|
-
* .describe("Organization slug");
|
|
20
|
-
*
|
|
21
|
-
* const TeamSlug = z.string()
|
|
22
|
-
* .toLowerCase()
|
|
23
|
-
* .trim()
|
|
24
|
-
* .superRefine(validateSlug)
|
|
25
|
-
* .describe("Team slug");
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare function validateSlug(val: string, ctx: z.RefinementCtx): void;
|
|
29
|
-
/**
|
|
30
|
-
* Validates a parameter that can be either a slug or numeric ID.
|
|
31
|
-
* Designed to be used with Zod's superRefine() method.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* const ProjectSlugOrId = z.string()
|
|
36
|
-
* .toLowerCase()
|
|
37
|
-
* .trim()
|
|
38
|
-
* .superRefine(validateSlugOrId)
|
|
39
|
-
* .describe("Project slug or numeric ID");
|
|
40
|
-
*
|
|
41
|
-
* const IssueSlugOrId = z.string()
|
|
42
|
-
* .trim()
|
|
43
|
-
* .superRefine(validateSlugOrId)
|
|
44
|
-
* .describe("Issue slug or numeric ID");
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
declare function validateSlugOrId(val: string, ctx: z.RefinementCtx): void;
|
|
48
|
-
//# sourceMappingURL=slug-validation.d.ts.map
|
|
49
|
-
//#endregion
|
|
50
|
-
export { isNumericId, validateSlug, validateSlugOrId };
|
|
51
|
-
//# sourceMappingURL=slug-validation.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slug-validation.d.cts","names":[],"sources":["../../src/utils/slug-validation.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAsBgB,WAAA;;;;;;;;;;;;;;;;;;;;iBA6BA,YAAA,mBAA+B,CAAA,CAAE;;;;;;;;;;;;;;;;;;;iBA+CjC,gBAAA,mBAAmC,CAAA,CAAE"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/utils/slug-validation.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Helper to check if a string is a numeric ID.
|
|
7
|
-
*/
|
|
8
|
-
declare function isNumericId(value: string): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Validates a slug to prevent path traversal and injection attacks.
|
|
11
|
-
* Designed to be used with Zod's superRefine() method.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```typescript
|
|
15
|
-
* const OrganizationSlug = z.string()
|
|
16
|
-
* .toLowerCase()
|
|
17
|
-
* .trim()
|
|
18
|
-
* .superRefine(validateSlug)
|
|
19
|
-
* .describe("Organization slug");
|
|
20
|
-
*
|
|
21
|
-
* const TeamSlug = z.string()
|
|
22
|
-
* .toLowerCase()
|
|
23
|
-
* .trim()
|
|
24
|
-
* .superRefine(validateSlug)
|
|
25
|
-
* .describe("Team slug");
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare function validateSlug(val: string, ctx: z.RefinementCtx): void;
|
|
29
|
-
/**
|
|
30
|
-
* Validates a parameter that can be either a slug or numeric ID.
|
|
31
|
-
* Designed to be used with Zod's superRefine() method.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* const ProjectSlugOrId = z.string()
|
|
36
|
-
* .toLowerCase()
|
|
37
|
-
* .trim()
|
|
38
|
-
* .superRefine(validateSlugOrId)
|
|
39
|
-
* .describe("Project slug or numeric ID");
|
|
40
|
-
*
|
|
41
|
-
* const IssueSlugOrId = z.string()
|
|
42
|
-
* .trim()
|
|
43
|
-
* .superRefine(validateSlugOrId)
|
|
44
|
-
* .describe("Issue slug or numeric ID");
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
declare function validateSlugOrId(val: string, ctx: z.RefinementCtx): void;
|
|
48
|
-
//# sourceMappingURL=slug-validation.d.ts.map
|
|
49
|
-
//#endregion
|
|
50
|
-
export { isNumericId, validateSlug, validateSlugOrId };
|
|
51
|
-
//# sourceMappingURL=slug-validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slug-validation.d.ts","names":[],"sources":["../../src/utils/slug-validation.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAsBgB,WAAA;;;;;;;;;;;;;;;;;;;;iBA6BA,YAAA,mBAA+B,CAAA,CAAE;;;;;;;;;;;;;;;;;;;iBA+CjC,gBAAA,mBAAmC,CAAA,CAAE"}
|
package/dist/utils/url-utils.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const require_url_utils = require('../url-utils-CbcNJVYS.cjs');
|
|
2
|
-
|
|
3
|
-
exports.getEventsExplorerUrl = require_url_utils.getEventsExplorerUrl;
|
|
4
|
-
exports.getIssueUrl = require_url_utils.getIssueUrl;
|
|
5
|
-
exports.getIssuesSearchUrl = require_url_utils.getIssuesSearchUrl;
|
|
6
|
-
exports.getTraceUrl = require_url_utils.getTraceUrl;
|
|
7
|
-
exports.isSentryHost = require_url_utils.isSentryHost;
|
|
8
|
-
exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
|
|
9
|
-
exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
|
|
10
|
-
exports.validateOpenAiBaseUrlThrows = require_url_utils.validateOpenAiBaseUrlThrows;
|
|
11
|
-
exports.validateSentryHost = require_url_utils.validateSentryHost;
|
|
12
|
-
exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;
|