@sentry/mcp-server 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-COgY789I.js +225 -0
- package/dist/agent-COgY789I.js.map +1 -0
- package/dist/agent-Cody_f0d.cjs +59 -0
- package/dist/agent-Cody_f0d.cjs.map +1 -0
- package/dist/agent-DZRRChrO.js +53 -0
- package/dist/agent-DZRRChrO.js.map +1 -0
- package/dist/agent-DpCCnhh5.cjs +231 -0
- package/dist/agent-DpCCnhh5.cjs.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.cjs +6 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.js +3 -0
- package/dist/agent-tools/lookup-otel-semantics.cjs +5 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.js +4 -0
- package/dist/agent-tools/whoami.cjs +4 -0
- package/dist/agent-tools/whoami.d.cts +28 -0
- package/dist/agent-tools/whoami.d.cts.map +1 -0
- package/dist/agent-tools/whoami.d.ts +28 -0
- package/dist/agent-tools/whoami.d.ts.map +1 -0
- package/dist/agent-tools/whoami.js +3 -0
- package/dist/{analyze-issue-with-seer-CoqsTklL.js → analyze-issue-with-seer-DcSwrWrs.js} +51 -11
- package/dist/analyze-issue-with-seer-DcSwrWrs.js.map +1 -0
- package/dist/{analyze-issue-with-seer-BkVrrh28.cjs → analyze-issue-with-seer-Dw9iqvSk.cjs} +51 -11
- package/dist/analyze-issue-with-seer-Dw9iqvSk.cjs.map +1 -0
- package/dist/api-client/client.cjs +4 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +4 -2
- package/dist/api-client/index.cjs +6 -4
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +6 -4
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.cjs +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/api-client/types.js +1 -1
- package/dist/api-utils-BlUSO8xh.js +68 -0
- package/dist/api-utils-BlUSO8xh.js.map +1 -0
- package/dist/api-utils-DFWUfQ83.cjs +85 -0
- package/dist/api-utils-DFWUfQ83.cjs.map +1 -0
- package/dist/{client-Dkw5iYu3.cjs → client-CPrEfAwa.cjs} +403 -58
- package/dist/client-CPrEfAwa.cjs.map +1 -0
- package/dist/{client-CQ9Xe1aN.d.cts → client-C_dDreKj.d.ts} +198 -11
- package/dist/client-C_dDreKj.d.ts.map +1 -0
- package/dist/{client-VCJp6Kcu.d.ts → client-CgS3tjJG.d.cts} +198 -11
- package/dist/client-CgS3tjJG.d.cts.map +1 -0
- package/dist/{client-DOYWNvVM.js → client-MaVV1gVC.js} +403 -58
- package/dist/client-MaVV1gVC.js.map +1 -0
- package/dist/config-BUmDxVLS.js +52 -0
- package/dist/config-BUmDxVLS.js.map +1 -0
- package/dist/config-BvtWiL3I.js +449 -0
- package/dist/config-BvtWiL3I.js.map +1 -0
- package/dist/config-CD-5FpOO.cjs +479 -0
- package/dist/config-CD-5FpOO.cjs.map +1 -0
- package/dist/config-FWsgDbm7.cjs +58 -0
- package/dist/config-FWsgDbm7.cjs.map +1 -0
- package/dist/{create-dsn-Dz8nyTFw.cjs → create-dsn-C6IPwoVO.cjs} +12 -10
- package/dist/create-dsn-C6IPwoVO.cjs.map +1 -0
- package/dist/{create-dsn-D530I7Lr.js → create-dsn-QDLdwhDO.js} +12 -10
- package/dist/create-dsn-QDLdwhDO.js.map +1 -0
- package/dist/{create-project-K1od5Rhx.js → create-project-Cax3fWey.js} +14 -11
- package/dist/create-project-Cax3fWey.js.map +1 -0
- package/dist/{create-project-BxzRiryg.cjs → create-project-DdSF58TR.cjs} +14 -11
- package/dist/create-project-DdSF58TR.cjs.map +1 -0
- package/dist/{create-team-CJhrccc1.cjs → create-team-CXaLcylp.cjs} +14 -5
- package/dist/{create-team-CJhrccc1.cjs.map → create-team-CXaLcylp.cjs.map} +1 -1
- package/dist/{create-team-zHz00C6Q.js → create-team-nm06goO5.js} +14 -5
- package/dist/{create-team-zHz00C6Q.js.map → create-team-nm06goO5.js.map} +1 -1
- package/dist/discover-dataset-fields-BEnyqPSq.js +156 -0
- package/dist/discover-dataset-fields-BEnyqPSq.js.map +1 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs +180 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +1 -0
- package/dist/errors-BtJEw2Z-.cjs +38 -0
- package/dist/errors-BtJEw2Z-.cjs.map +1 -0
- package/dist/errors-D_R568zP.js +26 -0
- package/dist/errors-D_R568zP.js.map +1 -0
- package/dist/errors.cjs +2 -1
- package/dist/errors.d.cts +10 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +10 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +2 -2
- package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
- package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
- package/dist/fetch-utils-C_Xj921x.js +52 -0
- package/dist/fetch-utils-C_Xj921x.js.map +1 -0
- package/dist/fetch-utils-DkcYwqBo.cjs +64 -0
- package/dist/fetch-utils-DkcYwqBo.cjs.map +1 -0
- package/dist/fetch-utils-JDZw4XaU.d.ts +33 -0
- package/dist/fetch-utils-JDZw4XaU.d.ts.map +1 -0
- package/dist/{find-dsns-BoEP0N7B.js → find-dsns-C3G5aBm1.js} +3 -3
- package/dist/{find-dsns-BoEP0N7B.js.map → find-dsns-C3G5aBm1.js.map} +1 -1
- package/dist/{find-dsns-CK59RaUJ.cjs → find-dsns-vQolGM7e.cjs} +3 -3
- package/dist/{find-dsns-CK59RaUJ.cjs.map → find-dsns-vQolGM7e.cjs.map} +1 -1
- package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-BDtHkcFV.cjs} +3 -3
- package/dist/find-organizations-BDtHkcFV.cjs.map +1 -0
- package/dist/{find-organizations-ojXwWWzk.js → find-organizations-Cs1GvZtJ.js} +3 -3
- package/dist/find-organizations-Cs1GvZtJ.js.map +1 -0
- package/dist/{find-projects-fcLG4KpT.js → find-projects-B0NdOjBO.js} +4 -4
- package/dist/{find-projects-fcLG4KpT.js.map → find-projects-B0NdOjBO.js.map} +1 -1
- package/dist/{find-projects-BZWhlYJh.cjs → find-projects-xM2L0U1W.cjs} +4 -4
- package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-xM2L0U1W.cjs.map} +1 -1
- package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-BBTYr5Bx.cjs} +3 -3
- package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-BBTYr5Bx.cjs.map} +1 -1
- package/dist/{find-releases-BUozr0Z-.js → find-releases-BO2OF_uR.js} +3 -3
- package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BO2OF_uR.js.map} +1 -1
- package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-B237Aq8U.cjs} +4 -4
- package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-B237Aq8U.cjs.map} +1 -1
- package/dist/{find-teams-BZ118EIK.js → find-teams-CqUwp0EI.js} +4 -4
- package/dist/{find-teams-BZ118EIK.js.map → find-teams-CqUwp0EI.js.map} +1 -1
- package/dist/formatters-B3ONbRhI.js +79 -0
- package/dist/formatters-B3ONbRhI.js.map +1 -0
- package/dist/formatters-CfeBjhXZ.cjs +235 -0
- package/dist/formatters-CfeBjhXZ.cjs.map +1 -0
- package/dist/formatters-DSYXBiQx.js +217 -0
- package/dist/formatters-DSYXBiQx.js.map +1 -0
- package/dist/formatters-DbqofIoy.cjs +85 -0
- package/dist/formatters-DbqofIoy.cjs.map +1 -0
- package/dist/{formatting-CcTK2X8V.d.cts → formatting-BxyhA4G3.d.cts} +4 -4
- package/dist/formatting-BxyhA4G3.d.cts.map +1 -0
- package/dist/{formatting-D0Aki7rK.cjs → formatting-C180PVwd.cjs} +3 -3
- package/dist/formatting-C180PVwd.cjs.map +1 -0
- package/dist/{formatting-vtXxusbn.d.ts → formatting-C80LN9iK.d.ts} +4 -4
- package/dist/formatting-C80LN9iK.d.ts.map +1 -0
- package/dist/{formatting-Bvyded57.js → formatting-DIvCVunN.js} +3 -3
- package/dist/formatting-DIvCVunN.js.map +1 -0
- package/dist/{formatting-utils-DgOyTl-m.js → formatting-utils-C3sej5ER.js} +1 -1
- package/dist/{formatting-utils-DgOyTl-m.js.map → formatting-utils-C3sej5ER.js.map} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs → formatting-utils-DDz14xeB.cjs} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs.map → formatting-utils-DDz14xeB.cjs.map} +1 -1
- package/dist/{get-doc-DaTCenOE.cjs → get-doc-BfMg0GIa.cjs} +4 -4
- package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-BfMg0GIa.cjs.map} +1 -1
- package/dist/{get-doc-YTiQznr1.js → get-doc-DyqJe6TP.js} +4 -4
- package/dist/{get-doc-YTiQznr1.js.map → get-doc-DyqJe6TP.js.map} +1 -1
- package/dist/{get-event-attachment-DVCPpUMj.js → get-event-attachment-B-ElqztF.js} +3 -3
- package/dist/{get-event-attachment-DVCPpUMj.js.map → get-event-attachment-B-ElqztF.js.map} +1 -1
- package/dist/{get-event-attachment-C-ig2-3F.cjs → get-event-attachment-o0oH43Tv.cjs} +3 -3
- package/dist/{get-event-attachment-C-ig2-3F.cjs.map → get-event-attachment-o0oH43Tv.cjs.map} +1 -1
- package/dist/{get-issue-details-lBrYR9yx.cjs → get-issue-details-CP_RyCpt.cjs} +27 -20
- package/dist/get-issue-details-CP_RyCpt.cjs.map +1 -0
- package/dist/{get-issue-details-Dcmzxknx.js → get-issue-details-CzroF7HR.js} +27 -20
- package/dist/get-issue-details-CzroF7HR.js.map +1 -0
- package/dist/handler-BGhr9FJM.d.cts +15 -0
- package/dist/handler-BGhr9FJM.d.cts.map +1 -0
- package/dist/handler-BH_OLIbD.cjs +152 -0
- package/dist/handler-BH_OLIbD.cjs.map +1 -0
- package/dist/handler-BPPTAi7I.d.ts +15 -0
- package/dist/handler-BPPTAi7I.d.ts.map +1 -0
- package/dist/handler-BZ3hKPb8.d.cts +15 -0
- package/dist/handler-BZ3hKPb8.d.cts.map +1 -0
- package/dist/handler-O9fYgC9a.cjs +114 -0
- package/dist/handler-O9fYgC9a.cjs.map +1 -0
- package/dist/handler-aE_8mEm7.js +146 -0
- package/dist/handler-aE_8mEm7.js.map +1 -0
- package/dist/handler-cUB6XcUV.d.ts +15 -0
- package/dist/handler-cUB6XcUV.d.ts.map +1 -0
- package/dist/handler-ykkULTZ-.js +108 -0
- package/dist/handler-ykkULTZ-.js.map +1 -0
- package/dist/index.cjs +54 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -44
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +3 -2
- package/dist/internal/fetch-utils.d.cts +2 -2
- package/dist/internal/fetch-utils.d.ts +2 -2
- package/dist/internal/fetch-utils.js +2 -2
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.cjs +2 -1
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/issue-helpers.js +2 -1
- package/dist/internal/test-fixtures.d.cts +164 -164
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +38 -38
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-CRx45FYG.js} +15 -19
- package/dist/issue-helpers-CRx45FYG.js.map +1 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
- package/dist/{issue-helpers-BJffpNoO.d.ts → issue-helpers-D1_Uqr-F.d.ts} +1 -1
- package/dist/issue-helpers-D1_Uqr-F.d.ts.map +1 -0
- package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-s5fKLwJZ.cjs} +14 -19
- package/dist/issue-helpers-s5fKLwJZ.cjs.map +1 -0
- package/dist/{logging-CX2buXiG.cjs → logging-BpL53bY6.cjs} +1 -1
- package/dist/{logging-CX2buXiG.cjs.map → logging-BpL53bY6.cjs.map} +1 -1
- package/dist/{logging-DzxYBMrn.js → logging-tGU_SYcA.js} +1 -1
- package/dist/{logging-DzxYBMrn.js.map → logging-tGU_SYcA.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/lookup-otel-semantics-BbriXZAx.cjs +5088 -0
- package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +1 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js +5076 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js.map +1 -0
- package/dist/{promptDefinitions-C29BWGYg.cjs → promptDefinitions-5V4-M69A.cjs} +2 -2
- package/dist/{promptDefinitions-C29BWGYg.cjs.map → promptDefinitions-5V4-M69A.cjs.map} +1 -1
- package/dist/{promptDefinitions-D3GTBGLr.d.ts → promptDefinitions-DehpwJfn.d.ts} +1 -1
- package/dist/promptDefinitions-DehpwJfn.d.ts.map +1 -0
- package/dist/{promptDefinitions-CSKE8T0a.js → promptDefinitions-DyshsF51.js} +2 -2
- package/dist/{promptDefinitions-CSKE8T0a.js.map → promptDefinitions-DyshsF51.js.map} +1 -1
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/{prompts-Df3i1XSB.cjs → prompts-BTtNbKQR.cjs} +7 -5
- package/dist/prompts-BTtNbKQR.cjs.map +1 -0
- package/dist/{prompts-C8Y9w5c4.js → prompts-CYcvIxWR.js} +7 -5
- package/dist/prompts-CYcvIxWR.js.map +1 -0
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.d.cts +1 -1
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/resources-CSxBC9gs.js +60 -0
- package/dist/resources-CSxBC9gs.js.map +1 -0
- package/dist/resources-TCvijqOA.cjs +72 -0
- package/dist/resources-TCvijqOA.cjs.map +1 -0
- package/dist/resources.cjs +2 -2
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +2 -2
- package/dist/{schema-3NeMWRAm.d.cts → schema-BlkWypl3.d.ts} +155 -155
- package/dist/schema-BlkWypl3.d.ts.map +1 -0
- package/dist/{schema-DtsnsxMl.js → schema-Bv2fvxgy.js} +2 -2
- package/dist/{schema-DtsnsxMl.js.map → schema-Bv2fvxgy.js.map} +1 -1
- package/dist/{schema-B_cMyyJJ.cjs → schema-C0LznFvu.cjs} +4 -4
- package/dist/schema-C0LznFvu.cjs.map +1 -0
- package/dist/{schema-WDk5Yqww.js → schema-CcFmBoEf.js} +4 -4
- package/dist/schema-CcFmBoEf.js.map +1 -0
- package/dist/{schema-B3CzDGJk.d.ts → schema-CdDcpvrp.d.cts} +375 -375
- package/dist/schema-CdDcpvrp.d.cts.map +1 -0
- package/dist/{schema-BpJVmev8.cjs → schema-DPL_hZXP.cjs} +2 -2
- package/dist/{schema-BpJVmev8.cjs.map → schema-DPL_hZXP.cjs.map} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.js +1 -1
- package/dist/{search-docs-D5Foht_0.cjs → search-docs-CjIZDaD1.cjs} +4 -4
- package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-CjIZDaD1.cjs.map} +1 -1
- package/dist/{search-docs-BLbB_GV2.js → search-docs-ss09Dt0F.js} +4 -4
- package/dist/{search-docs-BLbB_GV2.js.map → search-docs-ss09Dt0F.js.map} +1 -1
- package/dist/search-issues-BFgCvRYe.js +0 -0
- package/dist/search-issues-Biu64RkQ.cjs +0 -0
- package/dist/{seer-utils-CDm5J8ur.cjs → seer-utils-C7Kv0gr8.cjs} +15 -1
- package/dist/seer-utils-C7Kv0gr8.cjs.map +1 -0
- package/dist/{seer-utils-Cj9DXrow.js → seer-utils-NPHv8KYY.js} +4 -2
- package/dist/seer-utils-NPHv8KYY.js.map +1 -0
- package/dist/{server-BSRxzYFd.js → server-D78x_7Vz.js} +80 -26
- package/dist/server-D78x_7Vz.js.map +1 -0
- package/dist/{server-Dgkqz8bA.cjs → server-DYFiTMLB.cjs} +80 -26
- package/dist/server-DYFiTMLB.cjs.map +1 -0
- package/dist/server.cjs +52 -40
- package/dist/server.d.cts +4 -2
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +5 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +52 -40
- package/dist/{stdio-BQAm0Liz.cjs → stdio-Be01KQkA.cjs} +3 -3
- package/dist/{stdio-BQAm0Liz.cjs.map → stdio-Be01KQkA.cjs.map} +1 -1
- package/dist/{stdio-BcihaDjO.js → stdio-CDb2NHHD.js} +3 -3
- package/dist/{stdio-BcihaDjO.js.map → stdio-CDb2NHHD.js.map} +1 -1
- package/dist/test-setup.cjs +371 -0
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +371 -0
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.cjs +184 -0
- package/dist/toolDefinitions.cjs.map +1 -0
- package/dist/toolDefinitions.d.cts +13 -0
- package/dist/toolDefinitions.d.cts.map +1 -0
- package/dist/toolDefinitions.d.ts +8 -20
- package/dist/toolDefinitions.d.ts.map +1 -0
- package/dist/toolDefinitions.js +183 -1059
- package/dist/toolDefinitions.js.map +1 -0
- package/dist/tools/analyze-issue-with-seer.cjs +14 -12
- package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
- package/dist/tools/analyze-issue-with-seer.js +14 -12
- package/dist/tools/create-dsn.cjs +9 -8
- package/dist/tools/create-dsn.d.cts +2 -2
- package/dist/tools/create-dsn.d.ts +3 -3
- package/dist/tools/create-dsn.js +9 -8
- package/dist/tools/create-project.cjs +10 -9
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +3 -3
- package/dist/tools/create-project.js +10 -9
- package/dist/tools/create-team.cjs +9 -8
- package/dist/tools/create-team.d.cts +2 -2
- package/dist/tools/create-team.d.ts +3 -3
- package/dist/tools/create-team.js +9 -8
- package/dist/tools/find-dsns.cjs +9 -8
- package/dist/tools/find-dsns.d.cts +2 -2
- package/dist/tools/find-dsns.d.ts +3 -3
- package/dist/tools/find-dsns.js +9 -8
- package/dist/tools/find-organizations.cjs +8 -7
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +3 -3
- package/dist/tools/find-organizations.js +8 -7
- package/dist/tools/find-projects.cjs +9 -8
- package/dist/tools/find-projects.d.cts +2 -2
- package/dist/tools/find-projects.d.ts +3 -3
- package/dist/tools/find-projects.js +9 -8
- package/dist/tools/find-releases.cjs +9 -8
- package/dist/tools/find-releases.d.cts +2 -2
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +9 -8
- package/dist/tools/find-teams.cjs +9 -8
- package/dist/tools/find-teams.d.cts +2 -2
- package/dist/tools/find-teams.d.ts +3 -3
- package/dist/tools/find-teams.js +9 -8
- package/dist/tools/get-doc.cjs +9 -8
- package/dist/tools/get-doc.d.cts +2 -2
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +9 -8
- package/dist/tools/get-event-attachment.cjs +9 -8
- package/dist/tools/get-event-attachment.d.cts +2 -2
- package/dist/tools/get-event-attachment.d.ts +3 -3
- package/dist/tools/get-event-attachment.js +9 -8
- package/dist/tools/get-issue-details.cjs +13 -12
- package/dist/tools/get-issue-details.d.cts +2 -2
- package/dist/tools/get-issue-details.d.ts +3 -3
- package/dist/tools/get-issue-details.js +13 -12
- package/dist/tools/index.cjs +47 -36
- package/dist/tools/index.d.cts +74 -86
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +15 -27
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +47 -36
- package/dist/tools/search-docs.cjs +10 -8
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +10 -8
- package/dist/tools/search-events/agent.cjs +8 -0
- package/dist/tools/search-events/agent.d.cts +43 -0
- package/dist/tools/search-events/agent.d.cts.map +1 -0
- package/dist/tools/search-events/agent.d.ts +43 -0
- package/dist/tools/search-events/agent.d.ts.map +1 -0
- package/dist/tools/search-events/agent.js +8 -0
- package/dist/tools/search-events/config.cjs +7 -0
- package/dist/tools/search-events/config.d.cts +131 -0
- package/dist/tools/search-events/config.d.cts.map +1 -0
- package/dist/tools/search-events/config.d.ts +131 -0
- package/dist/tools/search-events/config.d.ts.map +1 -0
- package/dist/tools/search-events/config.js +3 -0
- package/dist/tools/search-events/formatters.cjs +8 -0
- package/dist/tools/search-events/formatters.d.cts +32 -0
- package/dist/tools/search-events/formatters.d.cts.map +1 -0
- package/dist/tools/search-events/formatters.d.ts +32 -0
- package/dist/tools/search-events/formatters.d.ts.map +1 -0
- package/dist/tools/search-events/formatters.js +6 -0
- package/dist/tools/search-events/handler.cjs +20 -0
- package/dist/tools/search-events/handler.d.cts +5 -0
- package/dist/tools/search-events/handler.d.ts +5 -0
- package/dist/tools/search-events/handler.js +20 -0
- package/dist/tools/search-events/index.cjs +21 -0
- package/dist/tools/search-events/index.d.cts +5 -0
- package/dist/tools/search-events/index.d.ts +5 -0
- package/dist/tools/search-events/index.js +21 -0
- package/dist/tools/search-events/utils.cjs +9 -0
- package/dist/tools/search-events/utils.d.cts +6 -0
- package/dist/tools/search-events/utils.d.ts +6 -0
- package/dist/tools/search-events/utils.js +5 -0
- package/dist/tools/search-issues/agent.cjs +7 -0
- package/dist/tools/search-issues/agent.d.cts +33 -0
- package/dist/tools/search-issues/agent.d.cts.map +1 -0
- package/dist/tools/search-issues/agent.d.ts +33 -0
- package/dist/tools/search-issues/agent.d.ts.map +1 -0
- package/dist/tools/search-issues/agent.js +7 -0
- package/dist/tools/search-issues/config.cjs +3 -0
- package/dist/tools/search-issues/config.d.cts +9 -0
- package/dist/tools/search-issues/config.d.cts.map +1 -0
- package/dist/tools/search-issues/config.d.ts +9 -0
- package/dist/tools/search-issues/config.d.ts.map +1 -0
- package/dist/tools/search-issues/config.js +3 -0
- package/dist/tools/search-issues/formatters.cjs +4 -0
- package/dist/tools/search-issues/formatters.d.cts +15 -0
- package/dist/tools/search-issues/formatters.d.cts.map +1 -0
- package/dist/tools/search-issues/formatters.d.ts +15 -0
- package/dist/tools/search-issues/formatters.d.ts.map +1 -0
- package/dist/tools/search-issues/formatters.js +4 -0
- package/dist/tools/search-issues/handler.cjs +18 -0
- package/dist/tools/search-issues/handler.d.cts +5 -0
- package/dist/tools/search-issues/handler.d.ts +5 -0
- package/dist/tools/search-issues/handler.js +18 -0
- package/dist/tools/search-issues/index.cjs +19 -0
- package/dist/tools/search-issues/index.d.cts +5 -0
- package/dist/tools/search-issues/index.d.ts +5 -0
- package/dist/tools/search-issues/index.js +19 -0
- package/dist/tools/types.d.cts +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +14 -13
- package/dist/tools/update-issue.d.cts +2 -2
- package/dist/tools/update-issue.d.ts +3 -3
- package/dist/tools/update-issue.js +14 -13
- package/dist/tools/update-project.cjs +10 -9
- package/dist/tools/update-project.d.cts +2 -2
- package/dist/tools/update-project.d.ts +3 -3
- package/dist/tools/update-project.js +10 -9
- package/dist/tools/utils/api-utils.cjs +10 -7
- package/dist/tools/utils/api-utils.d.cts +23 -6
- package/dist/tools/utils/api-utils.d.cts.map +1 -1
- package/dist/tools/utils/api-utils.d.ts +25 -8
- package/dist/tools/utils/api-utils.d.ts.map +1 -1
- package/dist/tools/utils/api-utils.js +8 -7
- package/dist/tools/utils/defineTool.d.cts +2 -2
- package/dist/tools/utils/defineTool.d.ts +3 -3
- package/dist/tools/utils/fetch-utils.cjs +4 -3
- package/dist/tools/utils/fetch-utils.d.cts +2 -2
- package/dist/tools/utils/fetch-utils.d.ts +2 -2
- package/dist/tools/utils/fetch-utils.js +3 -3
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +4 -4
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +5 -4
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +6 -6
- package/dist/tools/utils/issue-utils.js +5 -4
- package/dist/tools/utils/seer-utils.cjs +3 -1
- package/dist/tools/utils/seer-utils.d.cts +6 -4
- package/dist/tools/utils/seer-utils.d.cts.map +1 -1
- package/dist/tools/utils/seer-utils.d.ts +7 -5
- package/dist/tools/utils/seer-utils.d.ts.map +1 -1
- package/dist/tools/utils/seer-utils.js +2 -2
- package/dist/tools/whoami.cjs +8 -7
- package/dist/tools/whoami.d.cts +2 -2
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +8 -7
- package/dist/tools-DvKm5uMs.js +44 -0
- package/dist/tools-DvKm5uMs.js.map +1 -0
- package/dist/tools-sQ2wM3Pi.cjs +49 -0
- package/dist/tools-sQ2wM3Pi.cjs.map +1 -0
- package/dist/transports/stdio.cjs +53 -42
- package/dist/transports/stdio.d.cts +1 -1
- package/dist/transports/stdio.d.ts +2 -2
- package/dist/transports/stdio.js +53 -42
- package/dist/types-6zHoEWAx.js +0 -0
- package/dist/{types-DpV1JAZj.d.ts → types-B-8S69No.d.ts} +2 -2
- package/dist/{types-DpV1JAZj.d.ts.map → types-B-8S69No.d.ts.map} +1 -1
- package/dist/{types-qB8a4WQT.d.ts → types-BOcoP3Na.d.ts} +2 -2
- package/dist/{types-qB8a4WQT.d.ts.map → types-BOcoP3Na.d.ts.map} +1 -1
- package/dist/{types-CUN-2OSS.d.cts → types-BV-G5sBp.d.cts} +4 -2
- package/dist/{types-CUN-2OSS.d.cts.map → types-BV-G5sBp.d.cts.map} +1 -1
- package/dist/{types-BoMP-Ro6.d.cts → types-BYtO24VE.d.cts} +2 -2
- package/dist/{types-BoMP-Ro6.d.cts.map → types-BYtO24VE.d.cts.map} +1 -1
- package/dist/{types-DkJtNDXU.d.ts → types-C1Fih0eQ.d.ts} +5 -3
- package/dist/{types-DkJtNDXU.d.ts.map → types-C1Fih0eQ.d.ts.map} +1 -1
- package/dist/types-DdloOYgD.cjs +0 -0
- package/dist/{types-D_mx318Q.d.cts → types-aOEJ0KgQ.d.cts} +2 -2
- package/dist/{types-D_mx318Q.d.cts.map → types-aOEJ0KgQ.d.cts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{update-issue-DpkxxiNk.cjs → update-issue-D77PudUi.cjs} +20 -13
- package/dist/update-issue-D77PudUi.cjs.map +1 -0
- package/dist/{update-issue-DRTQvy6p.js → update-issue-ndy2PF5G.js} +20 -13
- package/dist/update-issue-ndy2PF5G.js.map +1 -0
- package/dist/{update-project-YLxt2ry2.js → update-project-Bxsi-BG_.js} +5 -5
- package/dist/{update-project-YLxt2ry2.js.map → update-project-Bxsi-BG_.js.map} +1 -1
- package/dist/{update-project-DLDDbcGY.cjs → update-project-DqECtbDA.cjs} +5 -5
- package/dist/{update-project-DLDDbcGY.cjs.map → update-project-DqECtbDA.cjs.map} +1 -1
- package/dist/url-utils-IqgSmI-B.js +152 -0
- package/dist/url-utils-IqgSmI-B.js.map +1 -0
- package/dist/url-utils-vJo2ER5v.cjs +206 -0
- package/dist/url-utils-vJo2ER5v.cjs.map +1 -0
- package/dist/utils/url-utils.cjs +6 -1
- package/dist/utils/url-utils.d.cts +43 -1
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +43 -1
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/utils-BwXbSgEI.d.ts +35 -0
- package/dist/utils-BwXbSgEI.d.ts.map +1 -0
- package/dist/utils-CqbeJfE1.cjs +138 -0
- package/dist/utils-CqbeJfE1.cjs.map +1 -0
- package/dist/utils-CtBGHj_N.d.cts +35 -0
- package/dist/utils-CtBGHj_N.d.cts.map +1 -0
- package/dist/utils-OgYE-imr.js +108 -0
- package/dist/utils-OgYE-imr.js.map +1 -0
- package/dist/version-Bj68uyCt.js +6 -0
- package/dist/{version-CcTnFB56.js.map → version-Bj68uyCt.js.map} +1 -1
- package/dist/{version-rDjaSkPw.cjs → version-CMS1IOUV.cjs} +2 -2
- package/dist/{version-rDjaSkPw.cjs.map → version-CMS1IOUV.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-CEgbTUqt.cjs → whoami-BOJHfdih.cjs} +2 -2
- package/dist/{whoami-CEgbTUqt.cjs.map → whoami-BOJHfdih.cjs.map} +1 -1
- package/dist/{whoami-DesNZnaQ.js → whoami-Bswhb72a.js} +2 -2
- package/dist/{whoami-DesNZnaQ.js.map → whoami-Bswhb72a.js.map} +1 -1
- package/dist/whoami-CoZJKpys.cjs +44 -0
- package/dist/whoami-CoZJKpys.cjs.map +1 -0
- package/dist/whoami-xBAWvzG4.js +32 -0
- package/dist/whoami-xBAWvzG4.js.map +1 -0
- package/package.json +14 -7
- package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-CoqsTklL.js.map +0 -1
- package/dist/api-utils-C6QJAzFL.js +0 -31
- package/dist/api-utils-C6QJAzFL.js.map +0 -1
- package/dist/api-utils-d36iteNO.cjs +0 -36
- package/dist/api-utils-d36iteNO.cjs.map +0 -1
- package/dist/client-CQ9Xe1aN.d.cts.map +0 -1
- package/dist/client-DOYWNvVM.js.map +0 -1
- package/dist/client-Dkw5iYu3.cjs.map +0 -1
- package/dist/client-VCJp6Kcu.d.ts.map +0 -1
- package/dist/create-dsn-D530I7Lr.js.map +0 -1
- package/dist/create-dsn-Dz8nyTFw.cjs.map +0 -1
- package/dist/create-project-BxzRiryg.cjs.map +0 -1
- package/dist/create-project-K1od5Rhx.js.map +0 -1
- package/dist/errors-CIoxzIug.js +0 -15
- package/dist/errors-CIoxzIug.js.map +0 -1
- package/dist/errors-YmiXLOyx.cjs +0 -21
- package/dist/errors-YmiXLOyx.cjs.map +0 -1
- package/dist/fetch-utils-BMKjO-cc.js +0 -29
- package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
- package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
- package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
- package/dist/fetch-utils-oab6uNp3.cjs +0 -35
- package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
- package/dist/find-errors-C3oUMeRi.js +0 -91
- package/dist/find-errors-C3oUMeRi.js.map +0 -1
- package/dist/find-errors-CB9NpSxG.cjs +0 -97
- package/dist/find-errors-CB9NpSxG.cjs.map +0 -1
- package/dist/find-issues-C3uk59rn.cjs +0 -98
- package/dist/find-issues-C3uk59rn.cjs.map +0 -1
- package/dist/find-issues-CAtNGBly.js +0 -92
- package/dist/find-issues-CAtNGBly.js.map +0 -1
- package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
- package/dist/find-organizations-ojXwWWzk.js.map +0 -1
- package/dist/find-tags-Byk4d3oZ.cjs +0 -45
- package/dist/find-tags-Byk4d3oZ.cjs.map +0 -1
- package/dist/find-tags-d-wF1Se8.js +0 -39
- package/dist/find-tags-d-wF1Se8.js.map +0 -1
- package/dist/find-transactions-BiBgg-AE.js +0 -83
- package/dist/find-transactions-BiBgg-AE.js.map +0 -1
- package/dist/find-transactions-DuZyqjhF.cjs +0 -89
- package/dist/find-transactions-DuZyqjhF.cjs.map +0 -1
- package/dist/formatting-Bvyded57.js.map +0 -1
- package/dist/formatting-CcTK2X8V.d.cts.map +0 -1
- package/dist/formatting-D0Aki7rK.cjs.map +0 -1
- package/dist/formatting-vtXxusbn.d.ts.map +0 -1
- package/dist/get-issue-details-Dcmzxknx.js.map +0 -1
- package/dist/get-issue-details-lBrYR9yx.cjs.map +0 -1
- package/dist/issue-helpers-BJffpNoO.d.ts.map +0 -1
- package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
- package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +0 -1
- package/dist/prompts-C8Y9w5c4.js.map +0 -1
- package/dist/prompts-Df3i1XSB.cjs.map +0 -1
- package/dist/resources-BHF8a1ZB.js +0 -92
- package/dist/resources-BHF8a1ZB.js.map +0 -1
- package/dist/resources-BM_YQGcb.cjs +0 -104
- package/dist/resources-BM_YQGcb.cjs.map +0 -1
- package/dist/schema-3NeMWRAm.d.cts.map +0 -1
- package/dist/schema-B3CzDGJk.d.ts.map +0 -1
- package/dist/schema-B_cMyyJJ.cjs.map +0 -1
- package/dist/schema-WDk5Yqww.js.map +0 -1
- package/dist/seer-utils-CDm5J8ur.cjs.map +0 -1
- package/dist/seer-utils-Cj9DXrow.js.map +0 -1
- package/dist/server-BSRxzYFd.js.map +0 -1
- package/dist/server-Dgkqz8bA.cjs.map +0 -1
- package/dist/tools/find-errors.cjs +0 -12
- package/dist/tools/find-errors.d.cts +0 -18
- package/dist/tools/find-errors.d.cts.map +0 -1
- package/dist/tools/find-errors.d.ts +0 -18
- package/dist/tools/find-errors.d.ts.map +0 -1
- package/dist/tools/find-errors.js +0 -12
- package/dist/tools/find-issues.cjs +0 -12
- package/dist/tools/find-issues.d.cts +0 -16
- package/dist/tools/find-issues.d.cts.map +0 -1
- package/dist/tools/find-issues.d.ts +0 -16
- package/dist/tools/find-issues.d.ts.map +0 -1
- package/dist/tools/find-issues.js +0 -12
- package/dist/tools/find-tags.cjs +0 -12
- package/dist/tools/find-tags.d.cts +0 -13
- package/dist/tools/find-tags.d.cts.map +0 -1
- package/dist/tools/find-tags.d.ts +0 -13
- package/dist/tools/find-tags.d.ts.map +0 -1
- package/dist/tools/find-tags.js +0 -12
- package/dist/tools/find-transactions.cjs +0 -12
- package/dist/tools/find-transactions.d.cts +0 -17
- package/dist/tools/find-transactions.d.cts.map +0 -1
- package/dist/tools/find-transactions.d.ts +0 -17
- package/dist/tools/find-transactions.d.ts.map +0 -1
- package/dist/tools/find-transactions.js +0 -12
- package/dist/tools-CHnZvVEN.cjs +0 -53
- package/dist/tools-CHnZvVEN.cjs.map +0 -1
- package/dist/tools-CdXGgq1W.js +0 -48
- package/dist/tools-CdXGgq1W.js.map +0 -1
- package/dist/update-issue-DRTQvy6p.js.map +0 -1
- package/dist/update-issue-DpkxxiNk.cjs.map +0 -1
- package/dist/url-utils-C9hykWmk.cjs +0 -106
- package/dist/url-utils-C9hykWmk.cjs.map +0 -1
- package/dist/url-utils-DvZYfzPM.js +0 -82
- package/dist/url-utils-DvZYfzPM.js.map +0 -1
- package/dist/version-CcTnFB56.js +0 -6
- /package/dist/{api-client-CL1WDkw9.cjs → api-client-BWt6M7ij.cjs} +0 -0
- /package/dist/{api-client-ChL_0F2u.js → api-client-CNv_hbPO.js} +0 -0
- /package/dist/{fetch-utils-C0F4eH6S.cjs → fetch-utils-BqMx2KQr.js} +0 -0
- /package/dist/{fetch-utils-DlPjrSk2.js → fetch-utils-DeZcERfe.cjs} +0 -0
- /package/dist/{index-DVGDAddE.d.ts → index-DE1muTvw.d.ts} +0 -0
- /package/dist/{issue-utils-BbCfbiY8.js → issue-utils-BVAB6I-Z.js} +0 -0
- /package/dist/{issue-utils-DMKiif6C.cjs → issue-utils-pdbo-5LW.cjs} +0 -0
- /package/dist/{types-CCHsZshF.js → search-events-BBFPuvRq.cjs} +0 -0
- /package/dist/{types-MYBaygjr.cjs → search-events-bV3-kK78.js} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../constants-S7AU45oQ.js";
|
|
2
|
-
import "../errors-CIoxzIug.js";
|
|
3
|
-
import "../defineTool-77H4nSna.js";
|
|
4
|
-
import "../schema-WDk5Yqww.js";
|
|
5
|
-
import "../client-DOYWNvVM.js";
|
|
6
|
-
import "../types-CCHsZshF.js";
|
|
7
|
-
import "../api-client-ChL_0F2u.js";
|
|
8
|
-
import "../api-utils-C6QJAzFL.js";
|
|
9
|
-
import "../schema-DtsnsxMl.js";
|
|
10
|
-
import { find_issues_default } from "../find-issues-CAtNGBly.js";
|
|
11
|
-
|
|
12
|
-
export { find_issues_default as default };
|
package/dist/tools/find-tags.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
require('../constants-ClkMK29-.cjs');
|
|
2
|
-
require('../errors-YmiXLOyx.cjs');
|
|
3
|
-
require('../defineTool-lWNTzWl_.cjs');
|
|
4
|
-
require('../schema-B_cMyyJJ.cjs');
|
|
5
|
-
require('../client-Dkw5iYu3.cjs');
|
|
6
|
-
require('../types-MYBaygjr.cjs');
|
|
7
|
-
require('../api-client-CL1WDkw9.cjs');
|
|
8
|
-
require('../api-utils-d36iteNO.cjs');
|
|
9
|
-
require('../schema-BpJVmev8.cjs');
|
|
10
|
-
const require_find_tags = require('../find-tags-Byk4d3oZ.cjs');
|
|
11
|
-
|
|
12
|
-
module.exports = require_find_tags.find_tags_default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../promptDefinitions-CVHtYaj8.cjs";
|
|
2
|
-
import "../types-CUN-2OSS.cjs";
|
|
3
|
-
import { ToolConfig } from "../types-D_mx318Q.cjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/find-tags.d.ts
|
|
7
|
-
declare const _default: ToolConfig<{
|
|
8
|
-
organizationSlug: z.ZodString;
|
|
9
|
-
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
-
}>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { _default as default };
|
|
13
|
-
//# sourceMappingURL=find-tags.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags.d.cts","names":[],"sources":["../../src/tools/find-tags.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../promptDefinitions-D3GTBGLr.js";
|
|
2
|
-
import "../types-DkJtNDXU.js";
|
|
3
|
-
import { ToolConfig } from "../types-qB8a4WQT.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/find-tags.d.ts
|
|
7
|
-
declare const _default: ToolConfig<{
|
|
8
|
-
organizationSlug: z.ZodString;
|
|
9
|
-
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
-
}>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { _default as default };
|
|
13
|
-
//# sourceMappingURL=find-tags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags.d.ts","names":[],"sources":["../../src/tools/find-tags.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB"}
|
package/dist/tools/find-tags.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../constants-S7AU45oQ.js";
|
|
2
|
-
import "../errors-CIoxzIug.js";
|
|
3
|
-
import "../defineTool-77H4nSna.js";
|
|
4
|
-
import "../schema-WDk5Yqww.js";
|
|
5
|
-
import "../client-DOYWNvVM.js";
|
|
6
|
-
import "../types-CCHsZshF.js";
|
|
7
|
-
import "../api-client-ChL_0F2u.js";
|
|
8
|
-
import "../api-utils-C6QJAzFL.js";
|
|
9
|
-
import "../schema-DtsnsxMl.js";
|
|
10
|
-
import { find_tags_default } from "../find-tags-d-wF1Se8.js";
|
|
11
|
-
|
|
12
|
-
export { find_tags_default as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
require('../constants-ClkMK29-.cjs');
|
|
2
|
-
require('../errors-YmiXLOyx.cjs');
|
|
3
|
-
require('../defineTool-lWNTzWl_.cjs');
|
|
4
|
-
require('../schema-B_cMyyJJ.cjs');
|
|
5
|
-
require('../client-Dkw5iYu3.cjs');
|
|
6
|
-
require('../types-MYBaygjr.cjs');
|
|
7
|
-
require('../api-client-CL1WDkw9.cjs');
|
|
8
|
-
require('../api-utils-d36iteNO.cjs');
|
|
9
|
-
require('../schema-BpJVmev8.cjs');
|
|
10
|
-
const require_find_transactions = require('../find-transactions-DuZyqjhF.cjs');
|
|
11
|
-
|
|
12
|
-
module.exports = require_find_transactions.find_transactions_default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "../promptDefinitions-CVHtYaj8.cjs";
|
|
2
|
-
import "../types-CUN-2OSS.cjs";
|
|
3
|
-
import { ToolConfig } from "../types-D_mx318Q.cjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/find-transactions.d.ts
|
|
7
|
-
declare const _default: ToolConfig<{
|
|
8
|
-
organizationSlug: z.ZodString;
|
|
9
|
-
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
-
projectSlug: z.ZodOptional<z.ZodString>;
|
|
11
|
-
transaction: z.ZodOptional<z.ZodString>;
|
|
12
|
-
query: z.ZodOptional<z.ZodString>;
|
|
13
|
-
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
|
|
14
|
-
}>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { _default as default };
|
|
17
|
-
//# sourceMappingURL=find-transactions.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-transactions.d.cts","names":[],"sources":["../../src/tools/find-transactions.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB;;;;;EAAA,KAAA,eAAA,YAAA,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "../promptDefinitions-D3GTBGLr.js";
|
|
2
|
-
import "../types-DkJtNDXU.js";
|
|
3
|
-
import { ToolConfig } from "../types-qB8a4WQT.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/find-transactions.d.ts
|
|
7
|
-
declare const _default: ToolConfig<{
|
|
8
|
-
organizationSlug: z.ZodString;
|
|
9
|
-
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
-
projectSlug: z.ZodOptional<z.ZodString>;
|
|
11
|
-
transaction: z.ZodOptional<z.ZodString>;
|
|
12
|
-
query: z.ZodOptional<z.ZodString>;
|
|
13
|
-
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
|
|
14
|
-
}>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { _default as default };
|
|
17
|
-
//# sourceMappingURL=find-transactions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-transactions.d.ts","names":[],"sources":["../../src/tools/find-transactions.ts"],"sourcesContent":[],"mappings":";;;;;;cAAwB;;;;;EAAA,KAAA,eAAA,YAAA,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../constants-S7AU45oQ.js";
|
|
2
|
-
import "../errors-CIoxzIug.js";
|
|
3
|
-
import "../defineTool-77H4nSna.js";
|
|
4
|
-
import "../schema-WDk5Yqww.js";
|
|
5
|
-
import "../client-DOYWNvVM.js";
|
|
6
|
-
import "../types-CCHsZshF.js";
|
|
7
|
-
import "../api-client-ChL_0F2u.js";
|
|
8
|
-
import "../api-utils-C6QJAzFL.js";
|
|
9
|
-
import "../schema-DtsnsxMl.js";
|
|
10
|
-
import { find_transactions_default } from "../find-transactions-BiBgg-AE.js";
|
|
11
|
-
|
|
12
|
-
export { find_transactions_default as default };
|
package/dist/tools-CHnZvVEN.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const require_whoami = require('./whoami-CEgbTUqt.cjs');
|
|
2
|
-
const require_find_organizations = require('./find-organizations-BrdMfZRO.cjs');
|
|
3
|
-
const require_find_teams = require('./find-teams-CnU5x9rQ.cjs');
|
|
4
|
-
const require_find_projects = require('./find-projects-BZWhlYJh.cjs');
|
|
5
|
-
const require_find_issues = require('./find-issues-C3uk59rn.cjs');
|
|
6
|
-
const require_find_releases = require('./find-releases-CZCVEOHZ.cjs');
|
|
7
|
-
const require_find_tags = require('./find-tags-Byk4d3oZ.cjs');
|
|
8
|
-
const require_get_issue_details = require('./get-issue-details-lBrYR9yx.cjs');
|
|
9
|
-
const require_get_event_attachment = require('./get-event-attachment-C-ig2-3F.cjs');
|
|
10
|
-
const require_update_issue = require('./update-issue-DpkxxiNk.cjs');
|
|
11
|
-
const require_find_errors = require('./find-errors-CB9NpSxG.cjs');
|
|
12
|
-
const require_find_transactions = require('./find-transactions-DuZyqjhF.cjs');
|
|
13
|
-
const require_create_team = require('./create-team-CJhrccc1.cjs');
|
|
14
|
-
const require_create_project = require('./create-project-BxzRiryg.cjs');
|
|
15
|
-
const require_update_project = require('./update-project-DLDDbcGY.cjs');
|
|
16
|
-
const require_create_dsn = require('./create-dsn-Dz8nyTFw.cjs');
|
|
17
|
-
const require_find_dsns = require('./find-dsns-CK59RaUJ.cjs');
|
|
18
|
-
const require_analyze_issue_with_seer = require('./analyze-issue-with-seer-BkVrrh28.cjs');
|
|
19
|
-
const require_search_docs = require('./search-docs-D5Foht_0.cjs');
|
|
20
|
-
const require_get_doc = require('./get-doc-DaTCenOE.cjs');
|
|
21
|
-
|
|
22
|
-
//#region src/tools/index.ts
|
|
23
|
-
var tools_default = {
|
|
24
|
-
whoami: require_whoami.whoami_default,
|
|
25
|
-
find_organizations: require_find_organizations.find_organizations_default,
|
|
26
|
-
find_teams: require_find_teams.find_teams_default,
|
|
27
|
-
find_projects: require_find_projects.find_projects_default,
|
|
28
|
-
find_issues: require_find_issues.find_issues_default,
|
|
29
|
-
find_releases: require_find_releases.find_releases_default,
|
|
30
|
-
find_tags: require_find_tags.find_tags_default,
|
|
31
|
-
get_issue_details: require_get_issue_details.get_issue_details_default,
|
|
32
|
-
get_event_attachment: require_get_event_attachment.get_event_attachment_default,
|
|
33
|
-
update_issue: require_update_issue.update_issue_default,
|
|
34
|
-
find_errors: require_find_errors.find_errors_default,
|
|
35
|
-
find_transactions: require_find_transactions.find_transactions_default,
|
|
36
|
-
create_team: require_create_team.create_team_default,
|
|
37
|
-
create_project: require_create_project.create_project_default,
|
|
38
|
-
update_project: require_update_project.update_project_default,
|
|
39
|
-
create_dsn: require_create_dsn.create_dsn_default,
|
|
40
|
-
find_dsns: require_find_dsns.find_dsns_default,
|
|
41
|
-
analyze_issue_with_seer: require_analyze_issue_with_seer.analyze_issue_with_seer_default,
|
|
42
|
-
search_docs: require_search_docs.search_docs_default,
|
|
43
|
-
get_doc: require_get_doc.get_doc_default
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
Object.defineProperty(exports, 'tools_default', {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () {
|
|
50
|
-
return tools_default;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=tools-CHnZvVEN.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-CHnZvVEN.cjs","names":["findOrganizations","findTeams","findProjects","findIssues","findReleases","findTags","getIssueDetails","getEventAttachment","updateIssue","findErrors","findTransactions","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findIssues from \"./find-issues\";\nimport findReleases from \"./find-releases\";\nimport findTags from \"./find-tags\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport findErrors from \"./find-errors\";\nimport findTransactions from \"./find-transactions\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_issues: findIssues,\n find_releases: findReleases,\n find_tags: findTags,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n find_errors: findErrors,\n find_transactions: findTransactions,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,aAAaC;CACb,eAAeC;CACf,WAAWC;CACX,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,aAAaC;CACb,mBAAmBC;CACnB,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;AACV"}
|
package/dist/tools-CdXGgq1W.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { whoami_default } from "./whoami-DesNZnaQ.js";
|
|
2
|
-
import { find_organizations_default } from "./find-organizations-ojXwWWzk.js";
|
|
3
|
-
import { find_teams_default } from "./find-teams-BZ118EIK.js";
|
|
4
|
-
import { find_projects_default } from "./find-projects-fcLG4KpT.js";
|
|
5
|
-
import { find_issues_default } from "./find-issues-CAtNGBly.js";
|
|
6
|
-
import { find_releases_default } from "./find-releases-BUozr0Z-.js";
|
|
7
|
-
import { find_tags_default } from "./find-tags-d-wF1Se8.js";
|
|
8
|
-
import { get_issue_details_default } from "./get-issue-details-Dcmzxknx.js";
|
|
9
|
-
import { get_event_attachment_default } from "./get-event-attachment-DVCPpUMj.js";
|
|
10
|
-
import { update_issue_default } from "./update-issue-DRTQvy6p.js";
|
|
11
|
-
import { find_errors_default } from "./find-errors-C3oUMeRi.js";
|
|
12
|
-
import { find_transactions_default } from "./find-transactions-BiBgg-AE.js";
|
|
13
|
-
import { create_team_default } from "./create-team-zHz00C6Q.js";
|
|
14
|
-
import { create_project_default } from "./create-project-K1od5Rhx.js";
|
|
15
|
-
import { update_project_default } from "./update-project-YLxt2ry2.js";
|
|
16
|
-
import { create_dsn_default } from "./create-dsn-D530I7Lr.js";
|
|
17
|
-
import { find_dsns_default } from "./find-dsns-BoEP0N7B.js";
|
|
18
|
-
import { analyze_issue_with_seer_default } from "./analyze-issue-with-seer-CoqsTklL.js";
|
|
19
|
-
import { search_docs_default } from "./search-docs-BLbB_GV2.js";
|
|
20
|
-
import { get_doc_default } from "./get-doc-YTiQznr1.js";
|
|
21
|
-
|
|
22
|
-
//#region src/tools/index.ts
|
|
23
|
-
var tools_default = {
|
|
24
|
-
whoami: whoami_default,
|
|
25
|
-
find_organizations: find_organizations_default,
|
|
26
|
-
find_teams: find_teams_default,
|
|
27
|
-
find_projects: find_projects_default,
|
|
28
|
-
find_issues: find_issues_default,
|
|
29
|
-
find_releases: find_releases_default,
|
|
30
|
-
find_tags: find_tags_default,
|
|
31
|
-
get_issue_details: get_issue_details_default,
|
|
32
|
-
get_event_attachment: get_event_attachment_default,
|
|
33
|
-
update_issue: update_issue_default,
|
|
34
|
-
find_errors: find_errors_default,
|
|
35
|
-
find_transactions: find_transactions_default,
|
|
36
|
-
create_team: create_team_default,
|
|
37
|
-
create_project: create_project_default,
|
|
38
|
-
update_project: update_project_default,
|
|
39
|
-
create_dsn: create_dsn_default,
|
|
40
|
-
find_dsns: find_dsns_default,
|
|
41
|
-
analyze_issue_with_seer: analyze_issue_with_seer_default,
|
|
42
|
-
search_docs: search_docs_default,
|
|
43
|
-
get_doc: get_doc_default
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
export { tools_default };
|
|
48
|
-
//# sourceMappingURL=tools-CdXGgq1W.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-CdXGgq1W.js","names":["findOrganizations","findTeams","findProjects","findIssues","findReleases","findTags","getIssueDetails","getEventAttachment","updateIssue","findErrors","findTransactions","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc"],"sources":["../src/tools/index.ts"],"sourcesContent":["import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findIssues from \"./find-issues\";\nimport findReleases from \"./find-releases\";\nimport findTags from \"./find-tags\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport findErrors from \"./find-errors\";\nimport findTransactions from \"./find-transactions\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_issues: findIssues,\n find_releases: findReleases,\n find_tags: findTags,\n get_issue_details: getIssueDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n find_errors: findErrors,\n find_transactions: findTransactions,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,oBAAe;CACb;CACA,oBAAoBA;CACpB,YAAYC;CACZ,eAAeC;CACf,aAAaC;CACb,eAAeC;CACf,WAAWC;CACX,mBAAmBC;CACnB,sBAAsBC;CACtB,cAAcC;CACd,aAAaC;CACb,mBAAmBC;CACnB,aAAaC;CACb,gBAAgBC;CAChB,gBAAgBC;CAChB,YAAYC;CACZ,WAAWC;CACX,yBAAyBC;CACzB,aAAaC;CACb,SAASC;AACV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue-DRTQvy6p.js","names":["context: ServerContext"],"sources":["../src/tools/update-issue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')\",\n \"```\",\n \"\",\n \"### Resolve an issue and assign it to yourself\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // Get current issue details first\n const currentIssue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Update the issue\n const updatedIssue = await apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n });\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAiBA,2BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,QAAQ,iBAAiB,UAAU;EACnC,YAAY,gBAAgB,UAAU;CACvC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,eACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAI,eACR;AAKJ,OAAK,OAAO,WAAW,OAAO,WAC5B,OAAM,IAAI,eACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,SAAO,qBAAqB,QAAQ;EAGpC,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C,kBAAkB;GAClB,SAAS;EACV,EAAC;EAGF,MAAM,eAAe,MAAM,WAAW,YAAY;GAChD,kBAAkB;GAClB,SAAS;GACT,QAAQ,OAAO;GACf,YAAY,OAAO;EACpB,EAAC;EAEF,IAAI,UAAU,UAAU,aAAa,QAAQ,gBAAgB,QAAQ;AACrE,aAAW,aAAa,aAAa,MAAM;AAC3C,aAAW,WAAW,WAAW,YAAY,SAAS,aAAa,QAAQ,CAAC;AAG5E,YAAU;AAEV,MAAI,OAAO,UAAU,aAAa,WAAW,OAAO,OAClD,YAAW,cAAc,aAAa,OAAO,OAAO,OAAO,OAAO;AAGpE,MAAI,OAAO,YAAY;GACrB,MAAM,cAAc,iBAAiB,aAAa,cAAc,KAAK;GACrE,MAAM,cACJ,OAAO,eAAe,OAAO,QAAQ,OAAO;AAC9C,cAAW,mBAAmB,YAAY,OAAO,YAAY;EAC9D;AAED,YAAU;AACV,aAAW,cAAc,aAAa,OAAO;EAC7C,MAAM,kBAAkB,iBAAiB,aAAa,cAAc,KAAK;AACzE,aAAW,mBAAmB,gBAAgB;AAE9C,YAAU;AACV,aAAW;AACX,aAAW,gFAAgF,QAAQ,cAAc,aAAa,QAAQ;AAEtI,MAAI,OAAO,WAAW,WACpB,YAAW;WACF,OAAO,WAAW,UAC3B,YAAW;AAGb,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue-DpkxxiNk.cjs","names":["context: ServerContext","UserInputError"],"sources":["../src/tools/update-issue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport { formatAssignedTo } from \"./utils/formatting-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n ParamIssueStatus,\n ParamAssignedTo,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"update_issue\",\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')\",\n \"```\",\n \"\",\n \"### Resolve an issue and assign it to yourself\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n // Validate that at least one update parameter is provided\n if (!params.status && !params.assignedTo) {\n throw new UserInputError(\n \"At least one of `status` or `assignedTo` must be provided to update the issue\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n // Get current issue details first\n const currentIssue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Update the issue\n const updatedIssue = await apiService.updateIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n status: params.status,\n assignedTo: params.assignedTo,\n });\n\n let output = `# Issue ${updatedIssue.shortId} Updated in **${orgSlug}**\\n\\n`;\n output += `**Issue**: ${updatedIssue.title}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(orgSlug, updatedIssue.shortId)}\\n\\n`;\n\n // Show what changed\n output += \"## Changes Made\\n\\n\";\n\n if (params.status && currentIssue.status !== params.status) {\n output += `**Status**: ${currentIssue.status} → **${params.status}**\\n`;\n }\n\n if (params.assignedTo) {\n const oldAssignee = formatAssignedTo(currentIssue.assignedTo ?? null);\n const newAssignee =\n params.assignedTo === \"me\" ? \"You\" : params.assignedTo;\n output += `**Assigned To**: ${oldAssignee} → **${newAssignee}**\\n`;\n }\n\n output += \"\\n## Current Status\\n\\n\";\n output += `**Status**: ${updatedIssue.status}\\n`;\n const currentAssignee = formatAssignedTo(updatedIssue.assignedTo ?? null);\n output += `**Assigned To**: ${currentAssignee}\\n`;\n\n output += \"\\n# Using this information\\n\\n\";\n output += `- The issue has been successfully updated in Sentry\\n`;\n output += `- You can view the issue details using: \\`get_issue_details(organizationSlug=\"${orgSlug}\", issueId=\"${updatedIssue.shortId}\")\\`\\n`;\n\n if (params.status === \"resolved\") {\n output += `- The issue is now marked as resolved and will no longer generate alerts\\n`;\n } else if (params.status === \"ignored\") {\n output += `- The issue is now ignored and will not generate alerts until it escalates\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAiBA,2BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,QAAQ,gCAAiB,UAAU;EACnC,YAAY,+BAAgB,UAAU;CACvC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAGF,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAIC,8BACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAIA,8BACR;AAKJ,OAAK,OAAO,WAAW,OAAO,WAC5B,OAAM,IAAIA,8BACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAGpC,MAAM,eAAe,MAAM,WAAW,SAAS;GAC7C,kBAAkB;GAClB,SAAS;EACV,EAAC;EAGF,MAAM,eAAe,MAAM,WAAW,YAAY;GAChD,kBAAkB;GAClB,SAAS;GACT,QAAQ,OAAO;GACf,YAAY,OAAO;EACpB,EAAC;EAEF,IAAI,UAAU,UAAU,aAAa,QAAQ,gBAAgB,QAAQ;AACrE,aAAW,aAAa,aAAa,MAAM;AAC3C,aAAW,WAAW,WAAW,YAAY,SAAS,aAAa,QAAQ,CAAC;AAG5E,YAAU;AAEV,MAAI,OAAO,UAAU,aAAa,WAAW,OAAO,OAClD,YAAW,cAAc,aAAa,OAAO,OAAO,OAAO,OAAO;AAGpE,MAAI,OAAO,YAAY;GACrB,MAAM,cAAc,0CAAiB,aAAa,cAAc,KAAK;GACrE,MAAM,cACJ,OAAO,eAAe,OAAO,QAAQ,OAAO;AAC9C,cAAW,mBAAmB,YAAY,OAAO,YAAY;EAC9D;AAED,YAAU;AACV,aAAW,cAAc,aAAa,OAAO;EAC7C,MAAM,kBAAkB,0CAAiB,aAAa,cAAc,KAAK;AACzE,aAAW,mBAAmB,gBAAgB;AAE9C,YAAU;AACV,aAAW;AACX,aAAW,gFAAgF,QAAQ,cAAc,aAAa,QAAQ;AAEtI,MAAI,OAAO,WAAW,WACpB,YAAW;WACF,OAAO,WAAW,UAC3B,YAAW;AAGb,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/utils/url-utils.ts
|
|
3
|
-
/**
|
|
4
|
-
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
5
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
6
|
-
*
|
|
7
|
-
* @param host The hostname to validate
|
|
8
|
-
* @throws {Error} If the host contains a protocol
|
|
9
|
-
*/
|
|
10
|
-
function _validateSentryHostInternal(host) {
|
|
11
|
-
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.");
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
15
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
16
|
-
*
|
|
17
|
-
* @param url The HTTPS URL to validate and parse
|
|
18
|
-
* @returns The extracted hostname from the URL
|
|
19
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
20
|
-
*/
|
|
21
|
-
function _validateAndParseSentryUrlInternal(url) {
|
|
22
|
-
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
23
|
-
try {
|
|
24
|
-
const parsedUrl = new URL(url);
|
|
25
|
-
return parsedUrl.host;
|
|
26
|
-
} catch (error) {
|
|
27
|
-
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
32
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
33
|
-
*
|
|
34
|
-
* @param host The hostname to validate
|
|
35
|
-
*/
|
|
36
|
-
function validateSentryHost(host) {
|
|
37
|
-
try {
|
|
38
|
-
_validateSentryHostInternal(host);
|
|
39
|
-
} catch (error) {
|
|
40
|
-
console.error(`Error: ${error.message}`);
|
|
41
|
-
process.exit(1);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
46
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
47
|
-
*
|
|
48
|
-
* @param url The HTTPS URL to validate and parse
|
|
49
|
-
* @returns The extracted hostname from the URL
|
|
50
|
-
*/
|
|
51
|
-
function validateAndParseSentryUrl(url) {
|
|
52
|
-
try {
|
|
53
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
54
|
-
} catch (error) {
|
|
55
|
-
console.error(`Error: ${error.message}`);
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
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
|
-
function validateSentryHostThrows(host) {
|
|
67
|
-
_validateSentryHostInternal(host);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
71
|
-
* Throws an error instead of exiting the process (for testing).
|
|
72
|
-
*
|
|
73
|
-
* @param url The HTTPS URL to validate and parse
|
|
74
|
-
* @returns The extracted hostname from the URL
|
|
75
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
76
|
-
*/
|
|
77
|
-
function validateAndParseSentryUrlThrows(url) {
|
|
78
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
//#endregion
|
|
82
|
-
Object.defineProperty(exports, 'validateAndParseSentryUrl', {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () {
|
|
85
|
-
return validateAndParseSentryUrl;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () {
|
|
91
|
-
return validateAndParseSentryUrlThrows;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, 'validateSentryHost', {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () {
|
|
97
|
-
return validateSentryHost;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, 'validateSentryHostThrows', {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return validateSentryHostThrows;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
//# sourceMappingURL=url-utils-C9hykWmk.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils-C9hykWmk.cjs","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\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"],"mappings":";;;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
//#region src/utils/url-utils.ts
|
|
2
|
-
/**
|
|
3
|
-
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
4
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
5
|
-
*
|
|
6
|
-
* @param host The hostname to validate
|
|
7
|
-
* @throws {Error} If the host contains a protocol
|
|
8
|
-
*/
|
|
9
|
-
function _validateSentryHostInternal(host) {
|
|
10
|
-
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.");
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
14
|
-
* Throws an error if validation fails instead of exiting the process.
|
|
15
|
-
*
|
|
16
|
-
* @param url The HTTPS URL to validate and parse
|
|
17
|
-
* @returns The extracted hostname from the URL
|
|
18
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
19
|
-
*/
|
|
20
|
-
function _validateAndParseSentryUrlInternal(url) {
|
|
21
|
-
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
22
|
-
try {
|
|
23
|
-
const parsedUrl = new URL(url);
|
|
24
|
-
return parsedUrl.host;
|
|
25
|
-
} catch (error) {
|
|
26
|
-
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
31
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
32
|
-
*
|
|
33
|
-
* @param host The hostname to validate
|
|
34
|
-
*/
|
|
35
|
-
function validateSentryHost(host) {
|
|
36
|
-
try {
|
|
37
|
-
_validateSentryHostInternal(host);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.error(`Error: ${error.message}`);
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
45
|
-
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
46
|
-
*
|
|
47
|
-
* @param url The HTTPS URL to validate and parse
|
|
48
|
-
* @returns The extracted hostname from the URL
|
|
49
|
-
*/
|
|
50
|
-
function validateAndParseSentryUrl(url) {
|
|
51
|
-
try {
|
|
52
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
53
|
-
} catch (error) {
|
|
54
|
-
console.error(`Error: ${error.message}`);
|
|
55
|
-
process.exit(1);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
60
|
-
* Throws an error instead of exiting the process (for testing).
|
|
61
|
-
*
|
|
62
|
-
* @param host The hostname to validate
|
|
63
|
-
* @throws {Error} If the host contains a protocol
|
|
64
|
-
*/
|
|
65
|
-
function validateSentryHostThrows(host) {
|
|
66
|
-
_validateSentryHostInternal(host);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
70
|
-
* Throws an error instead of exiting the process (for testing).
|
|
71
|
-
*
|
|
72
|
-
* @param url The HTTPS URL to validate and parse
|
|
73
|
-
* @returns The extracted hostname from the URL
|
|
74
|
-
* @throws {Error} If the URL is invalid or not HTTPS
|
|
75
|
-
*/
|
|
76
|
-
function validateAndParseSentryUrlThrows(url) {
|
|
77
|
-
return _validateAndParseSentryUrlInternal(url);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
//#endregion
|
|
81
|
-
export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
82
|
-
//# sourceMappingURL=url-utils-DvZYfzPM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-utils-DvZYfzPM.js","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\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"],"mappings":";;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
|
package/dist/version-CcTnFB56.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|