@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,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/internal/fetch-utils.ts
|
|
3
|
-
/**
|
|
4
|
-
* Fetch with timeout using AbortController
|
|
5
|
-
* @param url - The URL to fetch
|
|
6
|
-
* @param options - Standard fetch options
|
|
7
|
-
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
8
|
-
* @returns Promise<Response>
|
|
9
|
-
* @throws Error if request times out
|
|
10
|
-
*/
|
|
11
|
-
async function fetchWithTimeout(url, options = {}, timeoutMs = 3e4) {
|
|
12
|
-
const controller = new AbortController();
|
|
13
|
-
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
14
|
-
try {
|
|
15
|
-
const response = await fetch(url, {
|
|
16
|
-
...options,
|
|
17
|
-
signal: controller.signal
|
|
18
|
-
});
|
|
19
|
-
return response;
|
|
20
|
-
} catch (error) {
|
|
21
|
-
if (error instanceof Error && error.name === "AbortError") throw new Error(`Request timeout after ${timeoutMs}ms`);
|
|
22
|
-
throw error;
|
|
23
|
-
} finally {
|
|
24
|
-
clearTimeout(timeoutId);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
Object.defineProperty(exports, 'fetchWithTimeout', {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () {
|
|
32
|
-
return fetchWithTimeout;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=fetch-utils-oab6uNp3.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-utils-oab6uNp3.cjs","names":["url: string | URL","options: RequestInit"],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":["/**\n * Fetch with timeout using AbortController\n * @param url - The URL to fetch\n * @param options - Standard fetch options\n * @param timeoutMs - Timeout in milliseconds (default: 30000)\n * @returns Promise<Response>\n * @throws Error if request times out\n */\nexport async function fetchWithTimeout(\n url: string | URL,\n options: RequestInit = {},\n timeoutMs = 30000,\n): Promise<Response> {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetch(url, {\n ...options,\n signal: controller.signal,\n });\n return response;\n } catch (error) {\n if (error instanceof Error && error.name === \"AbortError\") {\n throw new Error(`Request timeout after ${timeoutMs}ms`);\n }\n throw error;\n } finally {\n clearTimeout(timeoutId);\n }\n}\n"],"mappings":";;;;;;;;;;AAQA,eAAsB,iBACpBA,KACAC,UAAuB,CAAE,GACzB,YAAY,KACO;CACnB,MAAM,aAAa,IAAI;CACvB,MAAM,YAAY,WAAW,MAAM,WAAW,OAAO,EAAE,UAAU;AAEjE,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,GAAG;GACH,QAAQ,WAAW;EACpB,EAAC;AACF,SAAO;CACR,SAAQ,OAAO;AACd,MAAI,iBAAiB,SAAS,MAAM,SAAS,aAC3C,OAAM,IAAI,OAAO,wBAAwB,UAAU;AAErD,QAAM;CACP,UAAS;AACR,eAAa,UAAU;CACxB;AACF"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
|
-
import { ParamOrganizationSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-DtsnsxMl.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { setTag } from "@sentry/core";
|
|
6
|
-
|
|
7
|
-
//#region src/tools/find-errors.ts
|
|
8
|
-
var find_errors_default = defineTool({
|
|
9
|
-
name: "find_errors",
|
|
10
|
-
description: [
|
|
11
|
-
"Find errors in Sentry using advanced search syntax.",
|
|
12
|
-
"",
|
|
13
|
-
"Use this tool when you need to:",
|
|
14
|
-
"- Search for production errors in a specific file.",
|
|
15
|
-
"- Analyze error patterns and frequencies.",
|
|
16
|
-
"- Find recent or frequently occurring errors.",
|
|
17
|
-
"",
|
|
18
|
-
"<examples>",
|
|
19
|
-
"### Find common errors within a file",
|
|
20
|
-
"",
|
|
21
|
-
"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.",
|
|
22
|
-
"",
|
|
23
|
-
"```",
|
|
24
|
-
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
25
|
-
"```",
|
|
26
|
-
"",
|
|
27
|
-
"### Find recent crashes from the 'peated' project",
|
|
28
|
-
"",
|
|
29
|
-
"```",
|
|
30
|
-
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
31
|
-
"```",
|
|
32
|
-
"",
|
|
33
|
-
"</examples>",
|
|
34
|
-
"",
|
|
35
|
-
"<hints>",
|
|
36
|
-
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
37
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.",
|
|
38
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool",
|
|
39
|
-
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
40
|
-
"</hints>"
|
|
41
|
-
].join("\n"),
|
|
42
|
-
inputSchema: {
|
|
43
|
-
organizationSlug: ParamOrganizationSlug,
|
|
44
|
-
regionUrl: ParamRegionUrl.optional(),
|
|
45
|
-
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
46
|
-
filename: z.string().trim().describe("The filename to search for errors in.").optional(),
|
|
47
|
-
transaction: ParamTransaction.optional(),
|
|
48
|
-
query: ParamQuery.optional(),
|
|
49
|
-
sortBy: z.enum(["last_seen", "count"]).optional().default("last_seen").describe("Sort the results either by the last time they occurred or the count of occurrences.")
|
|
50
|
-
},
|
|
51
|
-
async handler(params, context) {
|
|
52
|
-
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
53
|
-
const organizationSlug = params.organizationSlug;
|
|
54
|
-
setTag("organization.slug", organizationSlug);
|
|
55
|
-
if (params.projectSlug) setTag("project.slug", params.projectSlug);
|
|
56
|
-
const eventList = await apiService.searchErrors({
|
|
57
|
-
organizationSlug,
|
|
58
|
-
projectSlug: params.projectSlug,
|
|
59
|
-
filename: params.filename,
|
|
60
|
-
query: params.query,
|
|
61
|
-
transaction: params.transaction,
|
|
62
|
-
sortBy: params.sortBy
|
|
63
|
-
});
|
|
64
|
-
let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
65
|
-
if (params.query) output += `These errors match the query \`${params.query}\`\n`;
|
|
66
|
-
if (params.filename) output += `These errors are limited to the file suffix \`${params.filename}\`\n`;
|
|
67
|
-
output += "\n";
|
|
68
|
-
if (eventList.length === 0) {
|
|
69
|
-
output += `No results found\n\n`;
|
|
70
|
-
output += `We searched within the ${organizationSlug} organization.\n\n`;
|
|
71
|
-
return output;
|
|
72
|
-
}
|
|
73
|
-
for (const eventSummary of eventList) {
|
|
74
|
-
output += `## ${eventSummary.issue}\n\n`;
|
|
75
|
-
output += `**Description**: ${eventSummary.title}\n`;
|
|
76
|
-
output += `**Issue ID**: ${eventSummary.issue}\n`;
|
|
77
|
-
output += `**URL**: ${apiService.getIssueUrl(organizationSlug, eventSummary.issue)}\n`;
|
|
78
|
-
output += `**Project**: ${eventSummary.project}\n`;
|
|
79
|
-
output += `**Last Seen**: ${eventSummary["last_seen()"]}\n`;
|
|
80
|
-
output += `**Occurrences**: ${eventSummary["count()"]}\n\n`;
|
|
81
|
-
}
|
|
82
|
-
output += "# Using this information\n\n";
|
|
83
|
-
output += `- You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.\n`;
|
|
84
|
-
output += `- You can get more details about an error by using the tool: \`get_issue_details(organizationSlug="${organizationSlug}", issueId=<issueID>)\`\n`;
|
|
85
|
-
return output;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
export { find_errors_default };
|
|
91
|
-
//# sourceMappingURL=find-errors-C3oUMeRi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-errors-C3oUMeRi.js","names":["context: ServerContext"],"sources":["../src/tools/find-errors.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamTransaction,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_errors\",\n description: [\n \"Find errors in Sentry using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n filename: z\n .string()\n .trim()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n if (params.projectSlug) setTag(\"project.slug\", params.projectSlug);\n\n const eventList = await apiService.searchErrors({\n organizationSlug,\n projectSlug: params.projectSlug,\n filename: params.filename,\n query: params.query,\n transaction: params.transaction,\n sortBy: params.sortBy as \"last_seen\" | \"count\" | undefined,\n });\n let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (params.query)\n output += `These errors match the query \\`${params.query}\\`\\n`;\n if (params.filename)\n output += `These errors are limited to the file suffix \\`${params.filename}\\`\\n`;\n output += \"\\n\";\n if (eventList.length === 0) {\n output += `No results found\\n\\n`;\n output += `We searched within the ${organizationSlug} organization.\\n\\n`;\n return output;\n }\n for (const eventSummary of eventList) {\n output += `## ${eventSummary.issue}\\n\\n`;\n output += `**Description**: ${eventSummary.title}\\n`;\n output += `**Issue ID**: ${eventSummary.issue}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, eventSummary.issue)}\\n`;\n output += `**Project**: ${eventSummary.project}\\n`;\n output += `**Last Seen**: ${eventSummary[\"last_seen()\"]}\\n`;\n output += `**Occurrences**: ${eventSummary[\"count()\"]}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Issue ID in commit messages (e.g. \\`Fixes <issueID>\\`) to automatically close the issue when the commit is merged.\\n`;\n output += `- You can get more details about an error by using the tool: \\`get_issue_details(organizationSlug=\"${organizationSlug}\", issueId=<issueID>)\\`\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAaA,0BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa,sBAAsB,UAAU;EAC7C,UAAU,EACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;EACb,aAAa,iBAAiB,UAAU;EACxC,OAAO,WAAW,UAAU;EAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,MAAI,OAAO,YAAa,QAAO,gBAAgB,OAAO,YAAY;EAElE,MAAM,YAAY,MAAM,WAAW,aAAa;GAC9C;GACA,aAAa,OAAO;GACpB,UAAU,OAAO;GACjB,OAAO,OAAO;GACd,aAAa,OAAO;GACpB,QAAQ,OAAO;EAChB,EAAC;EACF,IAAI,UAAU,gBAAgB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACpG,MAAI,OAAO,MACT,YAAW,iCAAiC,OAAO,MAAM;AAC3D,MAAI,OAAO,SACT,YAAW,gDAAgD,OAAO,SAAS;AAC7E,YAAU;AACV,MAAI,UAAU,WAAW,GAAG;AAC1B,cAAW;AACX,cAAW,yBAAyB,iBAAiB;AACrD,UAAO;EACR;AACD,OAAK,MAAM,gBAAgB,WAAW;AACpC,cAAW,KAAK,aAAa,MAAM;AACnC,cAAW,mBAAmB,aAAa,MAAM;AACjD,cAAW,gBAAgB,aAAa,MAAM;AAC9C,cAAW,WAAW,WAAW,YAAY,kBAAkB,aAAa,MAAM,CAAC;AACnF,cAAW,eAAe,aAAa,QAAQ;AAC/C,cAAW,iBAAiB,aAAa,eAAe;AACxD,cAAW,mBAAmB,aAAa,WAAW;EACvD;AACD,YAAU;AACV,aAAW;AACX,aAAW,qGAAqG,iBAAiB;AACjI,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
|
-
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
6
|
-
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
|
-
|
|
8
|
-
//#region src/tools/find-errors.ts
|
|
9
|
-
var find_errors_default = require_defineTool.defineTool({
|
|
10
|
-
name: "find_errors",
|
|
11
|
-
description: [
|
|
12
|
-
"Find errors in Sentry using advanced search syntax.",
|
|
13
|
-
"",
|
|
14
|
-
"Use this tool when you need to:",
|
|
15
|
-
"- Search for production errors in a specific file.",
|
|
16
|
-
"- Analyze error patterns and frequencies.",
|
|
17
|
-
"- Find recent or frequently occurring errors.",
|
|
18
|
-
"",
|
|
19
|
-
"<examples>",
|
|
20
|
-
"### Find common errors within a file",
|
|
21
|
-
"",
|
|
22
|
-
"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.",
|
|
23
|
-
"",
|
|
24
|
-
"```",
|
|
25
|
-
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
26
|
-
"```",
|
|
27
|
-
"",
|
|
28
|
-
"### Find recent crashes from the 'peated' project",
|
|
29
|
-
"",
|
|
30
|
-
"```",
|
|
31
|
-
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
32
|
-
"```",
|
|
33
|
-
"",
|
|
34
|
-
"</examples>",
|
|
35
|
-
"",
|
|
36
|
-
"<hints>",
|
|
37
|
-
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
38
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.",
|
|
39
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool",
|
|
40
|
-
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
41
|
-
"</hints>"
|
|
42
|
-
].join("\n"),
|
|
43
|
-
inputSchema: {
|
|
44
|
-
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
45
|
-
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
46
|
-
projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
|
|
47
|
-
filename: zod.z.string().trim().describe("The filename to search for errors in.").optional(),
|
|
48
|
-
transaction: require_schema.ParamTransaction.optional(),
|
|
49
|
-
query: require_schema.ParamQuery.optional(),
|
|
50
|
-
sortBy: zod.z.enum(["last_seen", "count"]).optional().default("last_seen").describe("Sort the results either by the last time they occurred or the count of occurrences.")
|
|
51
|
-
},
|
|
52
|
-
async handler(params, context) {
|
|
53
|
-
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
54
|
-
const organizationSlug = params.organizationSlug;
|
|
55
|
-
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
56
|
-
if (params.projectSlug) (0, __sentry_core.setTag)("project.slug", params.projectSlug);
|
|
57
|
-
const eventList = await apiService.searchErrors({
|
|
58
|
-
organizationSlug,
|
|
59
|
-
projectSlug: params.projectSlug,
|
|
60
|
-
filename: params.filename,
|
|
61
|
-
query: params.query,
|
|
62
|
-
transaction: params.transaction,
|
|
63
|
-
sortBy: params.sortBy
|
|
64
|
-
});
|
|
65
|
-
let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
66
|
-
if (params.query) output += `These errors match the query \`${params.query}\`\n`;
|
|
67
|
-
if (params.filename) output += `These errors are limited to the file suffix \`${params.filename}\`\n`;
|
|
68
|
-
output += "\n";
|
|
69
|
-
if (eventList.length === 0) {
|
|
70
|
-
output += `No results found\n\n`;
|
|
71
|
-
output += `We searched within the ${organizationSlug} organization.\n\n`;
|
|
72
|
-
return output;
|
|
73
|
-
}
|
|
74
|
-
for (const eventSummary of eventList) {
|
|
75
|
-
output += `## ${eventSummary.issue}\n\n`;
|
|
76
|
-
output += `**Description**: ${eventSummary.title}\n`;
|
|
77
|
-
output += `**Issue ID**: ${eventSummary.issue}\n`;
|
|
78
|
-
output += `**URL**: ${apiService.getIssueUrl(organizationSlug, eventSummary.issue)}\n`;
|
|
79
|
-
output += `**Project**: ${eventSummary.project}\n`;
|
|
80
|
-
output += `**Last Seen**: ${eventSummary["last_seen()"]}\n`;
|
|
81
|
-
output += `**Occurrences**: ${eventSummary["count()"]}\n\n`;
|
|
82
|
-
}
|
|
83
|
-
output += "# Using this information\n\n";
|
|
84
|
-
output += `- You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.\n`;
|
|
85
|
-
output += `- You can get more details about an error by using the tool: \`get_issue_details(organizationSlug="${organizationSlug}", issueId=<issueID>)\`\n`;
|
|
86
|
-
return output;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
Object.defineProperty(exports, 'find_errors_default', {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () {
|
|
94
|
-
return find_errors_default;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
//# sourceMappingURL=find-errors-CB9NpSxG.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-errors-CB9NpSxG.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/find-errors.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamTransaction,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_errors\",\n description: [\n \"Find errors in Sentry using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n filename: z\n .string()\n .trim()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n if (params.projectSlug) setTag(\"project.slug\", params.projectSlug);\n\n const eventList = await apiService.searchErrors({\n organizationSlug,\n projectSlug: params.projectSlug,\n filename: params.filename,\n query: params.query,\n transaction: params.transaction,\n sortBy: params.sortBy as \"last_seen\" | \"count\" | undefined,\n });\n let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (params.query)\n output += `These errors match the query \\`${params.query}\\`\\n`;\n if (params.filename)\n output += `These errors are limited to the file suffix \\`${params.filename}\\`\\n`;\n output += \"\\n\";\n if (eventList.length === 0) {\n output += `No results found\\n\\n`;\n output += `We searched within the ${organizationSlug} organization.\\n\\n`;\n return output;\n }\n for (const eventSummary of eventList) {\n output += `## ${eventSummary.issue}\\n\\n`;\n output += `**Description**: ${eventSummary.title}\\n`;\n output += `**Issue ID**: ${eventSummary.issue}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, eventSummary.issue)}\\n`;\n output += `**Project**: ${eventSummary.project}\\n`;\n output += `**Last Seen**: ${eventSummary[\"last_seen()\"]}\\n`;\n output += `**Occurrences**: ${eventSummary[\"count()\"]}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Issue ID in commit messages (e.g. \\`Fixes <issueID>\\`) to automatically close the issue when the commit is merged.\\n`;\n output += `- You can get more details about an error by using the tool: \\`get_issue_details(organizationSlug=\"${organizationSlug}\", issueId=<issueID>)\\`\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAaA,0BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAa,qCAAsB,UAAU;EAC7C,UAAU,MACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;EACb,aAAa,gCAAiB,UAAU;EACxC,OAAO,0BAAW,UAAU;EAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;CACJ;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,MAAI,OAAO,YAAa,2BAAO,gBAAgB,OAAO,YAAY;EAElE,MAAM,YAAY,MAAM,WAAW,aAAa;GAC9C;GACA,aAAa,OAAO;GACpB,UAAU,OAAO;GACjB,OAAO,OAAO;GACd,aAAa,OAAO;GACpB,QAAQ,OAAO;EAChB,EAAC;EACF,IAAI,UAAU,gBAAgB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACpG,MAAI,OAAO,MACT,YAAW,iCAAiC,OAAO,MAAM;AAC3D,MAAI,OAAO,SACT,YAAW,gDAAgD,OAAO,SAAS;AAC7E,YAAU;AACV,MAAI,UAAU,WAAW,GAAG;AAC1B,cAAW;AACX,cAAW,yBAAyB,iBAAiB;AACrD,UAAO;EACR;AACD,OAAK,MAAM,gBAAgB,WAAW;AACpC,cAAW,KAAK,aAAa,MAAM;AACnC,cAAW,mBAAmB,aAAa,MAAM;AACjD,cAAW,gBAAgB,aAAa,MAAM;AAC9C,cAAW,WAAW,WAAW,YAAY,kBAAkB,aAAa,MAAM,CAAC;AACnF,cAAW,eAAe,aAAa,QAAQ;AAC/C,cAAW,iBAAiB,aAAa,eAAe;AACxD,cAAW,mBAAmB,aAAa,WAAW;EACvD;AACD,YAAU;AACV,aAAW;AACX,aAAW,qGAAqG,iBAAiB;AACjI,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
|
-
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
|
-
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
|
-
const zod = require_chunk.__toESM(require("zod"));
|
|
7
|
-
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
|
-
|
|
9
|
-
//#region src/tools/find-issues.ts
|
|
10
|
-
var find_issues_default = require_defineTool.defineTool({
|
|
11
|
-
name: "find_issues",
|
|
12
|
-
description: [
|
|
13
|
-
"Find issues in Sentry.",
|
|
14
|
-
"",
|
|
15
|
-
"Use this tool when you need to:",
|
|
16
|
-
"- View all issues in a Sentry organization",
|
|
17
|
-
"",
|
|
18
|
-
"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.",
|
|
19
|
-
"",
|
|
20
|
-
"<examples>",
|
|
21
|
-
"### Find the newest unresolved issues across 'my-organization'",
|
|
22
|
-
"",
|
|
23
|
-
"```",
|
|
24
|
-
"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
|
|
25
|
-
"```",
|
|
26
|
-
"",
|
|
27
|
-
"### Find the most frequently occurring crashes in the 'my-project' project",
|
|
28
|
-
"",
|
|
29
|
-
"```",
|
|
30
|
-
"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
|
|
31
|
-
"```",
|
|
32
|
-
"",
|
|
33
|
-
"</examples>",
|
|
34
|
-
"",
|
|
35
|
-
"<hints>",
|
|
36
|
-
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
37
|
-
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
38
|
-
"</hints>"
|
|
39
|
-
].join("\n"),
|
|
40
|
-
inputSchema: {
|
|
41
|
-
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
42
|
-
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
43
|
-
projectSlug: require_schema.ParamProjectSlug.optional(),
|
|
44
|
-
query: require_schema.ParamQuery.optional(),
|
|
45
|
-
sortBy: zod.z.enum([
|
|
46
|
-
"last_seen",
|
|
47
|
-
"first_seen",
|
|
48
|
-
"count",
|
|
49
|
-
"userCount"
|
|
50
|
-
]).describe("Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.").optional()
|
|
51
|
-
},
|
|
52
|
-
async handler(params, context) {
|
|
53
|
-
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
54
|
-
const organizationSlug = params.organizationSlug;
|
|
55
|
-
if (!organizationSlug) throw new require_errors.UserInputError("Organization slug is required. Please provide an organizationSlug parameter.");
|
|
56
|
-
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
57
|
-
const sortByMap = {
|
|
58
|
-
last_seen: "date",
|
|
59
|
-
first_seen: "new",
|
|
60
|
-
count: "freq",
|
|
61
|
-
userCount: "user"
|
|
62
|
-
};
|
|
63
|
-
const issues = await apiService.listIssues({
|
|
64
|
-
organizationSlug,
|
|
65
|
-
projectSlug: params.projectSlug,
|
|
66
|
-
query: params.query,
|
|
67
|
-
sortBy: params.sortBy ? sortByMap[params.sortBy] : void 0
|
|
68
|
-
});
|
|
69
|
-
let output = `# Issues in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
70
|
-
if (issues.length === 0) {
|
|
71
|
-
output += "No issues found.\n";
|
|
72
|
-
return output;
|
|
73
|
-
}
|
|
74
|
-
output += issues.map((issue) => [
|
|
75
|
-
`## ${issue.shortId}`,
|
|
76
|
-
"",
|
|
77
|
-
`**Description**: ${issue.title}`,
|
|
78
|
-
`**Culprit**: ${issue.culprit}`,
|
|
79
|
-
`**First Seen**: ${new Date(issue.firstSeen).toISOString()}`,
|
|
80
|
-
`**Last Seen**: ${new Date(issue.lastSeen).toISOString()}`,
|
|
81
|
-
`**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}`
|
|
82
|
-
].join("\n")).join("\n\n");
|
|
83
|
-
output += "\n\n";
|
|
84
|
-
output += "# Using this information\n\n";
|
|
85
|
-
output += `- You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.\n`;
|
|
86
|
-
output += `- You can get more details about a specific issue by using the tool: \`get_issue_details(organizationSlug="${organizationSlug}", issueId=<issueID>)\`\n`;
|
|
87
|
-
return output;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
//#endregion
|
|
92
|
-
Object.defineProperty(exports, 'find_issues_default', {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
get: function () {
|
|
95
|
-
return find_issues_default;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
//# sourceMappingURL=find-issues-C3uk59rn.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-issues-C3uk59rn.cjs","names":["ParamOrganizationSlug","context: ServerContext","UserInputError"],"sources":["../src/tools/find-issues.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_issues\",\n description: [\n \"Find issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const sortByMap = {\n last_seen: \"date\" as const,\n first_seen: \"new\" as const,\n count: \"freq\" as const,\n userCount: \"user\" as const,\n };\n const issues = await apiService.listIssues({\n organizationSlug,\n projectSlug: params.projectSlug,\n query: params.query,\n sortBy: params.sortBy\n ? sortByMap[params.sortBy as keyof typeof sortByMap]\n : undefined,\n });\n let output = `# Issues in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (issues.length === 0) {\n output += \"No issues found.\\n\";\n return output;\n }\n output += issues\n .map((issue) =>\n [\n `## ${issue.shortId}`,\n \"\",\n `**Description**: ${issue.title}`,\n `**Culprit**: ${issue.culprit}`,\n `**First Seen**: ${new Date(issue.firstSeen).toISOString()}`,\n `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}`,\n `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}`,\n ].join(\"\\n\"),\n )\n .join(\"\\n\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Issue ID in commit messages (e.g. \\`Fixes <issueID>\\`) to automatically close the issue when the commit is merged.\\n`;\n output += `- You can get more details about a specific issue by using the tool: \\`get_issue_details(organizationSlug=\"${organizationSlug}\", issueId=<issueID>)\\`\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAaA,0BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAa,gCAAiB,UAAU;EACxC,OAAO,0BAAW,UAAU;EAC5B,QAAQ,MACL,KAAK;GAAC;GAAa;GAAc;GAAS;EAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;CACd;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAIC,8BACR;AAIJ,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,YAAY;GAChB,WAAW;GACX,YAAY;GACZ,OAAO;GACP,WAAW;EACZ;EACD,MAAM,SAAS,MAAM,WAAW,WAAW;GACzC;GACA,aAAa,OAAO;GACpB,OAAO,OAAO;GACd,QAAQ,OAAO,SACX,UAAU,OAAO;EAEtB,EAAC;EACF,IAAI,UAAU,gBAAgB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACpG,MAAI,OAAO,WAAW,GAAG;AACvB,aAAU;AACV,UAAO;EACR;AACD,YAAU,OACP,IAAI,CAAC,UACJ;IACG,KAAK,MAAM;GACZ;IACC,mBAAmB,MAAM;IACzB,eAAe,MAAM;IACrB,kBAAkB,IAAI,KAAK,MAAM,WAAW,aAAa;IACzD,iBAAiB,IAAI,KAAK,MAAM,UAAU,aAAa;IACvD,WAAW,WAAW,YAAY,kBAAkB,MAAM,QAAQ;EACpE,EAAC,KAAK,KAAK,CACb,CACA,KAAK,OAAO;AACf,YAAU;AACV,YAAU;AACV,aAAW;AACX,aAAW,6GAA6G,iBAAiB;AACzI,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
|
-
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
|
-
import { ParamOrganizationSlug, ParamProjectSlug, ParamQuery, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { setTag } from "@sentry/core";
|
|
7
|
-
|
|
8
|
-
//#region src/tools/find-issues.ts
|
|
9
|
-
var find_issues_default = defineTool({
|
|
10
|
-
name: "find_issues",
|
|
11
|
-
description: [
|
|
12
|
-
"Find issues in Sentry.",
|
|
13
|
-
"",
|
|
14
|
-
"Use this tool when you need to:",
|
|
15
|
-
"- View all issues in a Sentry organization",
|
|
16
|
-
"",
|
|
17
|
-
"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.",
|
|
18
|
-
"",
|
|
19
|
-
"<examples>",
|
|
20
|
-
"### Find the newest unresolved issues across 'my-organization'",
|
|
21
|
-
"",
|
|
22
|
-
"```",
|
|
23
|
-
"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
|
|
24
|
-
"```",
|
|
25
|
-
"",
|
|
26
|
-
"### Find the most frequently occurring crashes in the 'my-project' project",
|
|
27
|
-
"",
|
|
28
|
-
"```",
|
|
29
|
-
"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
|
|
30
|
-
"```",
|
|
31
|
-
"",
|
|
32
|
-
"</examples>",
|
|
33
|
-
"",
|
|
34
|
-
"<hints>",
|
|
35
|
-
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
36
|
-
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
37
|
-
"</hints>"
|
|
38
|
-
].join("\n"),
|
|
39
|
-
inputSchema: {
|
|
40
|
-
organizationSlug: ParamOrganizationSlug,
|
|
41
|
-
regionUrl: ParamRegionUrl.optional(),
|
|
42
|
-
projectSlug: ParamProjectSlug.optional(),
|
|
43
|
-
query: ParamQuery.optional(),
|
|
44
|
-
sortBy: z.enum([
|
|
45
|
-
"last_seen",
|
|
46
|
-
"first_seen",
|
|
47
|
-
"count",
|
|
48
|
-
"userCount"
|
|
49
|
-
]).describe("Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.").optional()
|
|
50
|
-
},
|
|
51
|
-
async handler(params, context) {
|
|
52
|
-
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
53
|
-
const organizationSlug = params.organizationSlug;
|
|
54
|
-
if (!organizationSlug) throw new UserInputError("Organization slug is required. Please provide an organizationSlug parameter.");
|
|
55
|
-
setTag("organization.slug", organizationSlug);
|
|
56
|
-
const sortByMap = {
|
|
57
|
-
last_seen: "date",
|
|
58
|
-
first_seen: "new",
|
|
59
|
-
count: "freq",
|
|
60
|
-
userCount: "user"
|
|
61
|
-
};
|
|
62
|
-
const issues = await apiService.listIssues({
|
|
63
|
-
organizationSlug,
|
|
64
|
-
projectSlug: params.projectSlug,
|
|
65
|
-
query: params.query,
|
|
66
|
-
sortBy: params.sortBy ? sortByMap[params.sortBy] : void 0
|
|
67
|
-
});
|
|
68
|
-
let output = `# Issues in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
69
|
-
if (issues.length === 0) {
|
|
70
|
-
output += "No issues found.\n";
|
|
71
|
-
return output;
|
|
72
|
-
}
|
|
73
|
-
output += issues.map((issue) => [
|
|
74
|
-
`## ${issue.shortId}`,
|
|
75
|
-
"",
|
|
76
|
-
`**Description**: ${issue.title}`,
|
|
77
|
-
`**Culprit**: ${issue.culprit}`,
|
|
78
|
-
`**First Seen**: ${new Date(issue.firstSeen).toISOString()}`,
|
|
79
|
-
`**Last Seen**: ${new Date(issue.lastSeen).toISOString()}`,
|
|
80
|
-
`**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}`
|
|
81
|
-
].join("\n")).join("\n\n");
|
|
82
|
-
output += "\n\n";
|
|
83
|
-
output += "# Using this information\n\n";
|
|
84
|
-
output += `- You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.\n`;
|
|
85
|
-
output += `- You can get more details about a specific issue by using the tool: \`get_issue_details(organizationSlug="${organizationSlug}", issueId=<issueID>)\`\n`;
|
|
86
|
-
return output;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
export { find_issues_default };
|
|
92
|
-
//# sourceMappingURL=find-issues-CAtNGBly.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-issues-CAtNGBly.js","names":["context: ServerContext"],"sources":["../src/tools/find-issues.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_issues\",\n description: [\n \"Find issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const sortByMap = {\n last_seen: \"date\" as const,\n first_seen: \"new\" as const,\n count: \"freq\" as const,\n userCount: \"user\" as const,\n };\n const issues = await apiService.listIssues({\n organizationSlug,\n projectSlug: params.projectSlug,\n query: params.query,\n sortBy: params.sortBy\n ? sortByMap[params.sortBy as keyof typeof sortByMap]\n : undefined,\n });\n let output = `# Issues in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (issues.length === 0) {\n output += \"No issues found.\\n\";\n return output;\n }\n output += issues\n .map((issue) =>\n [\n `## ${issue.shortId}`,\n \"\",\n `**Description**: ${issue.title}`,\n `**Culprit**: ${issue.culprit}`,\n `**First Seen**: ${new Date(issue.firstSeen).toISOString()}`,\n `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}`,\n `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}`,\n ].join(\"\\n\"),\n )\n .join(\"\\n\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Issue ID in commit messages (e.g. \\`Fixes <issueID>\\`) to automatically close the issue when the commit is merged.\\n`;\n output += `- You can get more details about a specific issue by using the tool: \\`get_issue_details(organizationSlug=\"${organizationSlug}\", issueId=<issueID>)\\`\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAaA,0BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa,iBAAiB,UAAU;EACxC,OAAO,WAAW,UAAU;EAC5B,QAAQ,EACL,KAAK;GAAC;GAAa;GAAc;GAAS;EAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAI,eACR;AAIJ,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,YAAY;GAChB,WAAW;GACX,YAAY;GACZ,OAAO;GACP,WAAW;EACZ;EACD,MAAM,SAAS,MAAM,WAAW,WAAW;GACzC;GACA,aAAa,OAAO;GACpB,OAAO,OAAO;GACd,QAAQ,OAAO,SACX,UAAU,OAAO;EAEtB,EAAC;EACF,IAAI,UAAU,gBAAgB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACpG,MAAI,OAAO,WAAW,GAAG;AACvB,aAAU;AACV,UAAO;EACR;AACD,YAAU,OACP,IAAI,CAAC,UACJ;IACG,KAAK,MAAM;GACZ;IACC,mBAAmB,MAAM;IACzB,eAAe,MAAM;IACrB,kBAAkB,IAAI,KAAK,MAAM,WAAW,aAAa;IACzD,iBAAiB,IAAI,KAAK,MAAM,UAAU,aAAa;IACvD,WAAW,WAAW,YAAY,kBAAkB,MAAM,QAAQ;EACpE,EAAC,KAAK,KAAK,CACb,CACA,KAAK,OAAO;AACf,YAAU;AACV,YAAU;AACV,aAAW;AACX,aAAW,6GAA6G,iBAAiB;AACzI,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-organizations-BrdMfZRO.cjs","names":["context: ServerContext"],"sources":["../src/tools/find-organizations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"find_organizations\",\n description: [\n \"Find organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /users/me/regions/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const organizations = await apiService.listOrganizations();\n\n let output = \"# Organizations\\n\\n\";\n\n if (organizations.length === 0) {\n output += \"You don't appear to be a member of any organizations.\\n\";\n return output;\n }\n\n output += organizations\n .map((org) =>\n [\n `## **${org.slug}**`,\n \"\",\n `**Web URL:** ${org.links?.organizationUrl || \"Not available\"}`,\n `**Region URL:** ${org.links?.regionUrl || \"\"}`,\n ].join(\"\\n\"),\n )\n .join(\"\\n\\n\");\n\n output += \"\\n\\n# Using this information\\n\\n\";\n output += `- The organization's name is the identifier for the organization, and is used in many tools for \\`organizationSlug\\`.\\n`;\n\n const hasValidRegionUrls = organizations.some((org) =>\n org.links?.regionUrl?.trim(),\n );\n\n if (hasValidRegionUrls) {\n output += `- If a tool supports passing in the \\`regionUrl\\`, you MUST pass in the correct value shown above for each organization.\\n`;\n output += `- For Sentry's Cloud Service (sentry.io), always use the regionUrl to ensure requests go to the correct region.\\n`;\n } else {\n output += `- This appears to be a self-hosted Sentry installation. You can omit the \\`regionUrl\\` parameter when using other tools.\\n`;\n output += `- For self-hosted Sentry, the regionUrl is typically empty and not needed for API calls.\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAKA,iCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,gBAAgB,MAAM,WAAW,mBAAmB;EAE1D,IAAI,SAAS;AAEb,MAAI,cAAc,WAAW,GAAG;AAC9B,aAAU;AACV,UAAO;EACR;AAED,YAAU,cACP,IAAI,CAAC,QACJ;IACG,OAAO,IAAI,KAAK;GACjB;IACC,eAAe,IAAI,OAAO,mBAAmB;IAC7C,kBAAkB,IAAI,OAAO,aAAa;EAC5C,EAAC,KAAK,KAAK,CACb,CACA,KAAK,OAAO;AAEf,YAAU;AACV,aAAW;EAEX,MAAM,qBAAqB,cAAc,KAAK,CAAC,QAC7C,IAAI,OAAO,WAAW,MAAM,CAC7B;AAED,MAAI,oBAAoB;AACtB,cAAW;AACX,cAAW;EACZ,OAAM;AACL,cAAW;AACX,cAAW;EACZ;AAED,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-organizations-ojXwWWzk.js","names":["context: ServerContext"],"sources":["../src/tools/find-organizations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"find_organizations\",\n description: [\n \"Find organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /users/me/regions/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const organizations = await apiService.listOrganizations();\n\n let output = \"# Organizations\\n\\n\";\n\n if (organizations.length === 0) {\n output += \"You don't appear to be a member of any organizations.\\n\";\n return output;\n }\n\n output += organizations\n .map((org) =>\n [\n `## **${org.slug}**`,\n \"\",\n `**Web URL:** ${org.links?.organizationUrl || \"Not available\"}`,\n `**Region URL:** ${org.links?.regionUrl || \"\"}`,\n ].join(\"\\n\"),\n )\n .join(\"\\n\\n\");\n\n output += \"\\n\\n# Using this information\\n\\n\";\n output += `- The organization's name is the identifier for the organization, and is used in many tools for \\`organizationSlug\\`.\\n`;\n\n const hasValidRegionUrls = organizations.some((org) =>\n org.links?.regionUrl?.trim(),\n );\n\n if (hasValidRegionUrls) {\n output += `- If a tool supports passing in the \\`regionUrl\\`, you MUST pass in the correct value shown above for each organization.\\n`;\n output += `- For Sentry's Cloud Service (sentry.io), always use the regionUrl to ensure requests go to the correct region.\\n`;\n } else {\n output += `- This appears to be a self-hosted Sentry installation. You can omit the \\`regionUrl\\` parameter when using other tools.\\n`;\n output += `- For self-hosted Sentry, the regionUrl is typically empty and not needed for API calls.\\n`;\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAKA,iCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EACjD,MAAM,gBAAgB,MAAM,WAAW,mBAAmB;EAE1D,IAAI,SAAS;AAEb,MAAI,cAAc,WAAW,GAAG;AAC9B,aAAU;AACV,UAAO;EACR;AAED,YAAU,cACP,IAAI,CAAC,QACJ;IACG,OAAO,IAAI,KAAK;GACjB;IACC,eAAe,IAAI,OAAO,mBAAmB;IAC7C,kBAAkB,IAAI,OAAO,aAAa;EAC5C,EAAC,KAAK,KAAK,CACb,CACA,KAAK,OAAO;AAEf,YAAU;AACV,aAAW;EAEX,MAAM,qBAAqB,cAAc,KAAK,CAAC,QAC7C,IAAI,OAAO,WAAW,MAAM,CAC7B;AAED,MAAI,oBAAoB;AACtB,cAAW;AACX,cAAW;EACZ,OAAM;AACL,cAAW;AACX,cAAW;EACZ;AAED,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
|
-
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
-
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
|
-
|
|
7
|
-
//#region src/tools/find-tags.ts
|
|
8
|
-
var find_tags_default = require_defineTool.defineTool({
|
|
9
|
-
name: "find_tags",
|
|
10
|
-
description: [
|
|
11
|
-
"Find tags in Sentry.",
|
|
12
|
-
"",
|
|
13
|
-
"Use this tool when you need to:",
|
|
14
|
-
"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
|
|
15
|
-
].join("\n"),
|
|
16
|
-
inputSchema: {
|
|
17
|
-
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
18
|
-
regionUrl: require_schema.ParamRegionUrl.optional()
|
|
19
|
-
},
|
|
20
|
-
async handler(params, context) {
|
|
21
|
-
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
22
|
-
const organizationSlug = params.organizationSlug;
|
|
23
|
-
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
24
|
-
const tagList = await apiService.listTags({ organizationSlug }, {});
|
|
25
|
-
let output = `# Tags in **${organizationSlug}**\n\n`;
|
|
26
|
-
if (tagList.length === 0) {
|
|
27
|
-
output += "No tags found.\n";
|
|
28
|
-
return output;
|
|
29
|
-
}
|
|
30
|
-
output += tagList.map((tag) => [`- ${tag.key}`].join("\n")).join("\n");
|
|
31
|
-
output += "\n\n";
|
|
32
|
-
output += "# Using this information\n\n";
|
|
33
|
-
output += `- You can reference tags in the \`query\` parameter of various tools: \`tagName:tagValue\`.\n`;
|
|
34
|
-
return output;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
Object.defineProperty(exports, 'find_tags_default', {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return find_tags_default;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=find-tags-Byk4d3oZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags-Byk4d3oZ.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/find-tags.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_tags\",\n description: [\n \"Find tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const tagList = await apiService.listTags({ organizationSlug }, {});\n let output = `# Tags in **${organizationSlug}**\\n\\n`;\n if (tagList.length === 0) {\n output += \"No tags found.\\n\";\n return output;\n }\n output += tagList.map((tag) => [`- ${tag.key}`].join(\"\\n\")).join(\"\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference tags in the \\`query\\` parameter of various tools: \\`tagName:tagValue\\`.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,wBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,UAAU,MAAM,WAAW,SAAS,EAAE,iBAAkB,GAAE,CAAE,EAAC;EACnE,IAAI,UAAU,cAAc,iBAAiB;AAC7C,MAAI,QAAQ,WAAW,GAAG;AACxB,aAAU;AACV,UAAO;EACR;AACD,YAAU,QAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,KAAM,EAAC,KAAK,KAAK,CAAC,CAAC,KAAK,KAAK;AACtE,YAAU;AACV,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
|
-
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
|
-
import { setTag } from "@sentry/core";
|
|
5
|
-
|
|
6
|
-
//#region src/tools/find-tags.ts
|
|
7
|
-
var find_tags_default = defineTool({
|
|
8
|
-
name: "find_tags",
|
|
9
|
-
description: [
|
|
10
|
-
"Find tags in Sentry.",
|
|
11
|
-
"",
|
|
12
|
-
"Use this tool when you need to:",
|
|
13
|
-
"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
|
|
14
|
-
].join("\n"),
|
|
15
|
-
inputSchema: {
|
|
16
|
-
organizationSlug: ParamOrganizationSlug,
|
|
17
|
-
regionUrl: ParamRegionUrl.optional()
|
|
18
|
-
},
|
|
19
|
-
async handler(params, context) {
|
|
20
|
-
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
21
|
-
const organizationSlug = params.organizationSlug;
|
|
22
|
-
setTag("organization.slug", organizationSlug);
|
|
23
|
-
const tagList = await apiService.listTags({ organizationSlug }, {});
|
|
24
|
-
let output = `# Tags in **${organizationSlug}**\n\n`;
|
|
25
|
-
if (tagList.length === 0) {
|
|
26
|
-
output += "No tags found.\n";
|
|
27
|
-
return output;
|
|
28
|
-
}
|
|
29
|
-
output += tagList.map((tag) => [`- ${tag.key}`].join("\n")).join("\n");
|
|
30
|
-
output += "\n\n";
|
|
31
|
-
output += "# Using this information\n\n";
|
|
32
|
-
output += `- You can reference tags in the \`query\` parameter of various tools: \`tagName:tagValue\`.\n`;
|
|
33
|
-
return output;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
export { find_tags_default };
|
|
39
|
-
//# sourceMappingURL=find-tags-d-wF1Se8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags-d-wF1Se8.js","names":["context: ServerContext"],"sources":["../src/tools/find-tags.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_tags\",\n description: [\n \"Find tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const tagList = await apiService.listTags({ organizationSlug }, {});\n let output = `# Tags in **${organizationSlug}**\\n\\n`;\n if (tagList.length === 0) {\n output += \"No tags found.\\n\";\n return output;\n }\n output += tagList.map((tag) => [`- ${tag.key}`].join(\"\\n\")).join(\"\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference tags in the \\`query\\` parameter of various tools: \\`tagName:tagValue\\`.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;AAOA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,UAAU,MAAM,WAAW,SAAS,EAAE,iBAAkB,GAAE,CAAE,EAAC;EACnE,IAAI,UAAU,cAAc,iBAAiB;AAC7C,MAAI,QAAQ,WAAW,GAAG;AACxB,aAAU;AACV,UAAO;EACR;AACD,YAAU,QAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,KAAM,EAAC,KAAK,KAAK,CAAC,CAAC,KAAK,KAAK;AACtE,YAAU;AACV,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|