@sentry/mcp-server 0.13.0 → 0.14.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/README.md +15 -2
- package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js → analyze-issue-with-seer-BsNarzJN.js} +2 -2
- package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js.map → analyze-issue-with-seer-BsNarzJN.js.map} +1 -1
- package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs → analyze-issue-with-seer-DbAWpyTC.cjs} +2 -2
- package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs.map → analyze-issue-with-seer-DbAWpyTC.cjs.map} +1 -1
- package/dist/api-client/client.cjs +1 -1
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +1 -1
- package/dist/api-client/index.cjs +1 -1
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{api-utils-BcB1cMXS.js → api-utils-C6QJAzFL.js} +4 -4
- package/dist/api-utils-C6QJAzFL.js.map +1 -0
- package/dist/{api-utils-BJS0CChW.cjs → api-utils-d36iteNO.cjs} +4 -4
- package/dist/api-utils-d36iteNO.cjs.map +1 -0
- package/dist/{client-qyEu8fvj.d.ts → client-BCN17Wbp.d.ts} +18 -20
- package/dist/client-BCN17Wbp.d.ts.map +1 -0
- package/dist/{client-Dae1ZwWb.d.cts → client-CILwfx6G.d.cts} +20 -22
- package/dist/client-CILwfx6G.d.cts.map +1 -0
- package/dist/{client-BbamPqV4.js → client-DOYWNvVM.js} +21 -12
- package/dist/client-DOYWNvVM.js.map +1 -0
- package/dist/{client-BNTsOycD.cjs → client-Dkw5iYu3.cjs} +21 -12
- package/dist/client-Dkw5iYu3.cjs.map +1 -0
- package/dist/{create-dsn-B3L8iWno.js → create-dsn-CDcL2DLD.js} +2 -2
- package/dist/{create-dsn-B3L8iWno.js.map → create-dsn-CDcL2DLD.js.map} +1 -1
- package/dist/{create-dsn-CVPtt_Es.cjs → create-dsn-fESUtX3R.cjs} +2 -2
- package/dist/{create-dsn-CVPtt_Es.cjs.map → create-dsn-fESUtX3R.cjs.map} +1 -1
- package/dist/{create-project-B_6a6okf.cjs → create-project-Bg5uDkc4.cjs} +2 -2
- package/dist/{create-project-B_6a6okf.cjs.map → create-project-Bg5uDkc4.cjs.map} +1 -1
- package/dist/{create-project-DdIXMvWI.js → create-project-DY5mFznV.js} +2 -2
- package/dist/{create-project-DdIXMvWI.js.map → create-project-DY5mFznV.js.map} +1 -1
- package/dist/{create-team-C1DP5Z1r.cjs → create-team-5purh64V.cjs} +2 -2
- package/dist/{create-team-C1DP5Z1r.cjs.map → create-team-5purh64V.cjs.map} +1 -1
- package/dist/{create-team-BarRdaZK.js → create-team-C2R7EUC3.js} +2 -2
- package/dist/{create-team-BarRdaZK.js.map → create-team-C2R7EUC3.js.map} +1 -1
- package/dist/{fetch-utils-B-a92ObC.d.ts → fetch-utils-Bv9WjUp0.d.ts} +1 -1
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
- package/dist/{find-dsns-BPbblgrn.js → find-dsns-CvfcLB9Z.js} +2 -2
- package/dist/{find-dsns-BPbblgrn.js.map → find-dsns-CvfcLB9Z.js.map} +1 -1
- package/dist/{find-dsns-BDJWY6nZ.cjs → find-dsns-ZZ-thiNk.cjs} +2 -2
- package/dist/{find-dsns-BDJWY6nZ.cjs.map → find-dsns-ZZ-thiNk.cjs.map} +1 -1
- package/dist/{find-errors-B9wLxXA0.js → find-errors-CuRm4PzL.js} +2 -2
- package/dist/{find-errors-B9wLxXA0.js.map → find-errors-CuRm4PzL.js.map} +1 -1
- package/dist/{find-errors-DnFs3PaH.cjs → find-errors-Drzv7hzM.cjs} +2 -2
- package/dist/{find-errors-DnFs3PaH.cjs.map → find-errors-Drzv7hzM.cjs.map} +1 -1
- package/dist/{find-issues-CwPbwRXK.cjs → find-issues-C3uk59rn.cjs} +2 -2
- package/dist/{find-issues-CwPbwRXK.cjs.map → find-issues-C3uk59rn.cjs.map} +1 -1
- package/dist/{find-issues-BI1tI3cJ.js → find-issues-CAtNGBly.js} +2 -2
- package/dist/{find-issues-BI1tI3cJ.js.map → find-issues-CAtNGBly.js.map} +1 -1
- package/dist/{find-organizations-DqS6zoTK.cjs → find-organizations-BrdMfZRO.cjs} +2 -2
- package/dist/{find-organizations-DqS6zoTK.cjs.map → find-organizations-BrdMfZRO.cjs.map} +1 -1
- package/dist/{find-organizations-CdiouW48.js → find-organizations-ojXwWWzk.js} +2 -2
- package/dist/{find-organizations-CdiouW48.js.map → find-organizations-ojXwWWzk.js.map} +1 -1
- package/dist/{find-projects-Ba6cdX7n.cjs → find-projects-BZWhlYJh.cjs} +2 -2
- package/dist/{find-projects-Ba6cdX7n.cjs.map → find-projects-BZWhlYJh.cjs.map} +1 -1
- package/dist/{find-projects-Ccfxv47h.js → find-projects-fcLG4KpT.js} +2 -2
- package/dist/{find-projects-Ccfxv47h.js.map → find-projects-fcLG4KpT.js.map} +1 -1
- package/dist/{find-releases-CFoGytN-.js → find-releases-BUozr0Z-.js} +2 -2
- package/dist/{find-releases-CFoGytN-.js.map → find-releases-BUozr0Z-.js.map} +1 -1
- package/dist/{find-releases-CFl86XMT.cjs → find-releases-CZCVEOHZ.cjs} +2 -2
- package/dist/{find-releases-CFl86XMT.cjs.map → find-releases-CZCVEOHZ.cjs.map} +1 -1
- package/dist/{find-tags-h2o0BKWO.cjs → find-tags-Byk4d3oZ.cjs} +2 -2
- package/dist/{find-tags-h2o0BKWO.cjs.map → find-tags-Byk4d3oZ.cjs.map} +1 -1
- package/dist/{find-tags-ORtYLH5b.js → find-tags-d-wF1Se8.js} +2 -2
- package/dist/{find-tags-ORtYLH5b.js.map → find-tags-d-wF1Se8.js.map} +1 -1
- package/dist/{find-teams-hreVp1nw.js → find-teams-BZ118EIK.js} +2 -2
- package/dist/{find-teams-hreVp1nw.js.map → find-teams-BZ118EIK.js.map} +1 -1
- package/dist/{find-teams-DUcDfSOl.cjs → find-teams-CnU5x9rQ.cjs} +2 -2
- package/dist/{find-teams-DUcDfSOl.cjs.map → find-teams-CnU5x9rQ.cjs.map} +1 -1
- package/dist/{find-transactions-BkPscam3.cjs → find-transactions-DIJ80wkd.cjs} +2 -2
- package/dist/{find-transactions-BkPscam3.cjs.map → find-transactions-DIJ80wkd.cjs.map} +1 -1
- package/dist/{find-transactions-BehUqQYs.js → find-transactions-DZCj81jP.js} +2 -2
- package/dist/{find-transactions-BehUqQYs.js.map → find-transactions-DZCj81jP.js.map} +1 -1
- package/dist/{formatting-Di1X9Jn3.d.cts → formatting-CHh9Q_OW.d.cts} +4 -4
- package/dist/{formatting-Di1X9Jn3.d.cts.map → formatting-CHh9Q_OW.d.cts.map} +1 -1
- package/dist/{formatting-B-u5CbYn.d.ts → formatting-kdIeURER.d.ts} +4 -4
- package/dist/{formatting-B-u5CbYn.d.ts.map → formatting-kdIeURER.d.ts.map} +1 -1
- package/dist/{get-doc-AuAW_qr9.cjs → get-doc-DaTCenOE.cjs} +2 -2
- package/dist/{get-doc-AuAW_qr9.cjs.map → get-doc-DaTCenOE.cjs.map} +1 -1
- package/dist/{get-doc-BtxZOy7y.js → get-doc-YTiQznr1.js} +2 -2
- package/dist/{get-doc-BtxZOy7y.js.map → get-doc-YTiQznr1.js.map} +1 -1
- package/dist/{get-event-attachment-Bq5lkaKV.cjs → get-event-attachment-ChRw3jlQ.cjs} +2 -2
- package/dist/{get-event-attachment-Bq5lkaKV.cjs.map → get-event-attachment-ChRw3jlQ.cjs.map} +1 -1
- package/dist/{get-event-attachment-DwAl54zv.js → get-event-attachment-CuU-_5T6.js} +2 -2
- package/dist/{get-event-attachment-DwAl54zv.js.map → get-event-attachment-CuU-_5T6.js.map} +1 -1
- package/dist/{get-issue-details-DrpD5LlK.js → get-issue-details-CxChU4U9.js} +2 -2
- package/dist/{get-issue-details-DrpD5LlK.js.map → get-issue-details-CxChU4U9.js.map} +1 -1
- package/dist/{get-issue-details-qGwu18JX.cjs → get-issue-details-DFwZRbmU.cjs} +2 -2
- package/dist/{get-issue-details-qGwu18JX.cjs.map → get-issue-details-DFwZRbmU.cjs.map} +1 -1
- package/dist/index.cjs +48 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +48 -37
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.d.ts +1 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/test-fixtures.d.cts +62 -62
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +146 -146
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{issue-helpers-BOn4g7rx.d.ts → issue-helpers-BJffpNoO.d.ts} +1 -1
- package/dist/{issue-helpers-BOn4g7rx.d.ts.map → issue-helpers-BJffpNoO.d.ts.map} +1 -1
- package/dist/{promptDefinitions-6xelipaz.d.ts → promptDefinitions-D3GTBGLr.d.ts} +1 -1
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/prompts.d.cts +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/{schema-B5BpplNK.d.ts → schema--5m4KI84.d.ts} +252 -252
- package/dist/{schema-B5BpplNK.d.ts.map → schema--5m4KI84.d.ts.map} +1 -1
- package/dist/{schema-Dt-HKnd_.d.cts → schema-ya35hkEL.d.cts} +221 -221
- package/dist/{schema-Dt-HKnd_.d.cts.map → schema-ya35hkEL.d.cts.map} +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/{search-docs-CrMdRDJy.js → search-docs-BLbB_GV2.js} +3 -3
- package/dist/search-docs-BLbB_GV2.js.map +1 -0
- package/dist/{search-docs-VhefTOOH.cjs → search-docs-D5Foht_0.cjs} +3 -3
- package/dist/search-docs-D5Foht_0.cjs.map +1 -0
- package/dist/{server-CHG27fcn.cjs → server-BpEIZVaZ.cjs} +3 -3
- package/dist/{server-CHG27fcn.cjs.map → server-BpEIZVaZ.cjs.map} +1 -1
- package/dist/{server-DeuBftc5.js → server-DOy-M9Ko.js} +3 -3
- package/dist/{server-DeuBftc5.js.map → server-DOy-M9Ko.js.map} +1 -1
- package/dist/server.cjs +24 -24
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +24 -24
- package/dist/{stdio-DIuLW5EE.js → stdio-B2NDq7Ax.js} +3 -3
- package/dist/{stdio-DIuLW5EE.js.map → stdio-B2NDq7Ax.js.map} +1 -1
- package/dist/{stdio-BtVdTwx-.cjs → stdio-DMEgJ_fG.cjs} +3 -3
- package/dist/{stdio-BtVdTwx-.cjs.map → stdio-DMEgJ_fG.cjs.map} +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +3 -3
- 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 +3 -3
- package/dist/tools/create-dsn.cjs +3 -3
- package/dist/tools/create-dsn.d.cts +2 -2
- package/dist/tools/create-dsn.d.ts +3 -3
- package/dist/tools/create-dsn.js +3 -3
- package/dist/tools/create-project.cjs +3 -3
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +3 -3
- package/dist/tools/create-project.js +3 -3
- package/dist/tools/create-team.cjs +3 -3
- package/dist/tools/create-team.d.cts +2 -2
- package/dist/tools/create-team.d.ts +3 -3
- package/dist/tools/create-team.js +3 -3
- package/dist/tools/find-dsns.cjs +3 -3
- package/dist/tools/find-dsns.d.cts +2 -2
- package/dist/tools/find-dsns.d.ts +3 -3
- package/dist/tools/find-dsns.js +3 -3
- package/dist/tools/find-errors.cjs +3 -3
- package/dist/tools/find-errors.d.cts +2 -2
- package/dist/tools/find-errors.d.ts +3 -3
- package/dist/tools/find-errors.js +3 -3
- package/dist/tools/find-issues.cjs +3 -3
- package/dist/tools/find-issues.d.cts +2 -2
- package/dist/tools/find-issues.d.ts +3 -3
- package/dist/tools/find-issues.js +3 -3
- package/dist/tools/find-organizations.cjs +3 -3
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +3 -3
- package/dist/tools/find-organizations.js +3 -3
- package/dist/tools/find-projects.cjs +3 -3
- package/dist/tools/find-projects.d.cts +2 -2
- package/dist/tools/find-projects.d.ts +3 -3
- package/dist/tools/find-projects.js +3 -3
- package/dist/tools/find-releases.cjs +3 -3
- package/dist/tools/find-releases.d.cts +2 -2
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +3 -3
- package/dist/tools/find-tags.cjs +3 -3
- package/dist/tools/find-tags.d.cts +2 -2
- package/dist/tools/find-tags.d.ts +3 -3
- package/dist/tools/find-tags.js +3 -3
- package/dist/tools/find-teams.cjs +3 -3
- package/dist/tools/find-teams.d.cts +2 -2
- package/dist/tools/find-teams.d.ts +3 -3
- package/dist/tools/find-teams.js +3 -3
- package/dist/tools/find-transactions.cjs +3 -3
- package/dist/tools/find-transactions.d.cts +2 -2
- package/dist/tools/find-transactions.d.ts +3 -3
- package/dist/tools/find-transactions.js +3 -3
- package/dist/tools/get-doc.cjs +2 -2
- package/dist/tools/get-doc.d.cts +2 -2
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +2 -2
- package/dist/tools/get-event-attachment.cjs +3 -3
- 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 +3 -3
- package/dist/tools/get-issue-details.cjs +3 -3
- 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 +3 -3
- package/dist/tools/index.cjs +23 -23
- package/dist/tools/index.d.cts +78 -78
- package/dist/tools/index.d.ts +79 -79
- package/dist/tools/index.js +23 -23
- package/dist/tools/search-docs.cjs +2 -2
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +2 -2
- package/dist/tools/types.d.cts +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +3 -3
- package/dist/tools/update-issue.d.cts +2 -2
- package/dist/tools/update-issue.d.ts +3 -3
- package/dist/tools/update-issue.js +3 -3
- package/dist/tools/update-project.cjs +3 -3
- package/dist/tools/update-project.d.cts +2 -2
- package/dist/tools/update-project.d.ts +3 -3
- package/dist/tools/update-project.js +3 -3
- package/dist/tools/utils/api-utils.cjs +2 -2
- package/dist/tools/utils/api-utils.d.cts +5 -5
- package/dist/tools/utils/api-utils.d.ts +7 -7
- package/dist/tools/utils/api-utils.js +2 -2
- package/dist/tools/utils/defineTool.d.cts +2 -2
- package/dist/tools/utils/defineTool.d.ts +3 -3
- package/dist/tools/utils/fetch-utils.d.ts +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/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +6 -6
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +4 -4
- package/dist/tools/whoami.cjs +3 -3
- package/dist/tools/whoami.d.cts +2 -2
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +3 -3
- package/dist/{tools-BiZ7ZDKf.cjs → tools-19Ms1kck.cjs} +21 -21
- package/dist/{tools-BiZ7ZDKf.cjs.map → tools-19Ms1kck.cjs.map} +1 -1
- package/dist/tools-mThAUo_3.js +48 -0
- package/dist/{tools-DGF9GhbP.js.map → tools-mThAUo_3.js.map} +1 -1
- package/dist/transports/stdio.cjs +26 -26
- package/dist/transports/stdio.d.cts +1 -1
- package/dist/transports/stdio.d.ts +2 -2
- package/dist/transports/stdio.js +26 -26
- package/dist/{types-C3pRFQyA.d.cts → types-Bg17IGWJ.d.cts} +2 -2
- package/dist/{types-C3pRFQyA.d.cts.map → types-Bg17IGWJ.d.cts.map} +1 -1
- package/dist/{types-CYjev2Ep.d.cts → types-CUN-2OSS.d.cts} +3 -3
- package/dist/{types-CYjev2Ep.d.cts.map → types-CUN-2OSS.d.cts.map} +1 -1
- package/dist/{types-Br0saqtE.d.ts → types-CtTBwGbw.d.ts} +2 -2
- package/dist/{types-Br0saqtE.d.ts.map → types-CtTBwGbw.d.ts.map} +1 -1
- package/dist/{types-CZaMk5Yg.d.cts → types-D_mx318Q.d.cts} +2 -2
- package/dist/{types-CZaMk5Yg.d.cts.map → types-D_mx318Q.d.cts.map} +1 -1
- package/dist/{types-B2qOfefC.d.ts → types-DkJtNDXU.d.ts} +4 -4
- package/dist/{types-B2qOfefC.d.ts.map → types-DkJtNDXU.d.ts.map} +1 -1
- package/dist/{types-D5KkaSjc.d.ts → types-qB8a4WQT.d.ts} +2 -2
- package/dist/{types-D5KkaSjc.d.ts.map → types-qB8a4WQT.d.ts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{update-issue-Bz-u_Yaa.cjs → update-issue-B6eZhAPJ.cjs} +2 -2
- package/dist/{update-issue-Bz-u_Yaa.cjs.map → update-issue-B6eZhAPJ.cjs.map} +1 -1
- package/dist/{update-issue-DN80uuKU.js → update-issue-DmLElHPS.js} +2 -2
- package/dist/{update-issue-DN80uuKU.js.map → update-issue-DmLElHPS.js.map} +1 -1
- package/dist/{update-project-5j-SOHWU.js → update-project-BNPev7W8.js} +2 -2
- package/dist/{update-project-5j-SOHWU.js.map → update-project-BNPev7W8.js.map} +1 -1
- package/dist/{update-project-C7Xbmhqg.cjs → update-project-CijYCtG1.cjs} +2 -2
- package/dist/{update-project-C7Xbmhqg.cjs.map → update-project-CijYCtG1.cjs.map} +1 -1
- package/dist/url-utils-C9hykWmk.cjs +106 -0
- package/dist/url-utils-C9hykWmk.cjs.map +1 -0
- package/dist/url-utils-DvZYfzPM.js +82 -0
- package/dist/url-utils-DvZYfzPM.js.map +1 -0
- package/dist/utils/url-utils.cjs +6 -0
- package/dist/utils/url-utils.d.cts +37 -0
- package/dist/utils/url-utils.d.cts.map +1 -0
- package/dist/utils/url-utils.d.ts +37 -0
- package/dist/utils/url-utils.d.ts.map +1 -0
- package/dist/utils/url-utils.js +3 -0
- package/dist/version-C4uvMmw0.js +6 -0
- package/dist/{version-DvMKCu-i.js.map → version-C4uvMmw0.js.map} +1 -1
- package/dist/{version-Dyz6_b54.cjs → version-Ddz4xg_q.cjs} +2 -2
- package/dist/{version-Dyz6_b54.cjs.map → version-Ddz4xg_q.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-qIbcECMA.cjs → whoami-CEgbTUqt.cjs} +2 -2
- package/dist/{whoami-qIbcECMA.cjs.map → whoami-CEgbTUqt.cjs.map} +1 -1
- package/dist/{whoami-raA70UBD.js → whoami-DesNZnaQ.js} +2 -2
- package/dist/{whoami-raA70UBD.js.map → whoami-DesNZnaQ.js.map} +1 -1
- package/package.json +3 -3
- package/dist/api-utils-BJS0CChW.cjs.map +0 -1
- package/dist/api-utils-BcB1cMXS.js.map +0 -1
- package/dist/client-BNTsOycD.cjs.map +0 -1
- package/dist/client-BbamPqV4.js.map +0 -1
- package/dist/client-Dae1ZwWb.d.cts.map +0 -1
- package/dist/client-qyEu8fvj.d.ts.map +0 -1
- package/dist/fetch-utils-B-a92ObC.d.ts.map +0 -1
- package/dist/promptDefinitions-6xelipaz.d.ts.map +0 -1
- package/dist/search-docs-CrMdRDJy.js.map +0 -1
- package/dist/search-docs-VhefTOOH.cjs.map +0 -1
- package/dist/tools-DGF9GhbP.js +0 -48
- package/dist/version-DvMKCu-i.js +0 -6
- /package/dist/{index-BrojxuhJ.d.ts → index-DVGDAddE.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
@@ -44,4 +44,4 @@ var create_team_default = defineTool({
|
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { create_team_default };
|
|
47
|
-
//# sourceMappingURL=create-team-
|
|
47
|
+
//# sourceMappingURL=create-team-C2R7EUC3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-team-
|
|
1
|
+
{"version":3,"file":"create-team-C2R7EUC3.js","names":["context: ServerContext"],"sources":["../src/tools/create-team.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: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,0BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;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,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -11,4 +11,4 @@ declare function fetchWithTimeout(url: string | URL, options?: RequestInit, time
|
|
|
11
11
|
//# sourceMappingURL=fetch-utils.d.ts.map
|
|
12
12
|
//#endregion
|
|
13
13
|
export { fetchWithTimeout };
|
|
14
|
-
//# sourceMappingURL=fetch-utils-
|
|
14
|
+
//# sourceMappingURL=fetch-utils-Bv9WjUp0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-Bv9WjUp0.d.ts","names":[],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;AAIU;iBAJY,gBAAA,eACN,eACL,kCAER,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { setTag } from "@sentry/core";
|
|
5
5
|
|
|
@@ -49,4 +49,4 @@ var find_dsns_default = defineTool({
|
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { find_dsns_default };
|
|
52
|
-
//# sourceMappingURL=find-dsns-
|
|
52
|
+
//# sourceMappingURL=find-dsns-CvfcLB9Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-dsns-
|
|
1
|
+
{"version":3,"file":"find-dsns-CvfcLB9Z.js","names":["context: ServerContext"],"sources":["../src/tools/find-dsns.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 ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\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 might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\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 setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;AAWA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
6
|
|
|
@@ -55,4 +55,4 @@ Object.defineProperty(exports, 'find_dsns_default', {
|
|
|
55
55
|
return find_dsns_default;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
//# sourceMappingURL=find-dsns-
|
|
58
|
+
//# sourceMappingURL=find-dsns-ZZ-thiNk.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-dsns-
|
|
1
|
+
{"version":3,"file":"find-dsns-ZZ-thiNk.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext"],"sources":["../src/tools/find-dsns.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 ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\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 might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\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 setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,wBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;CACd;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
@@ -88,4 +88,4 @@ var find_errors_default = defineTool({
|
|
|
88
88
|
|
|
89
89
|
//#endregion
|
|
90
90
|
export { find_errors_default };
|
|
91
|
-
//# sourceMappingURL=find-errors-
|
|
91
|
+
//# sourceMappingURL=find-errors-CuRm4PzL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-errors-
|
|
1
|
+
{"version":3,"file":"find-errors-CuRm4PzL.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,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -94,4 +94,4 @@ Object.defineProperty(exports, 'find_errors_default', {
|
|
|
94
94
|
return find_errors_default;
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
//# sourceMappingURL=find-errors-
|
|
97
|
+
//# sourceMappingURL=find-errors-Drzv7hzM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-errors-
|
|
1
|
+
{"version":3,"file":"find-errors-Drzv7hzM.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,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_api_utils = require('./api-utils-
|
|
4
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
5
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
6
|
const zod = require_chunk.__toESM(require("zod"));
|
|
7
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -95,4 +95,4 @@ Object.defineProperty(exports, 'find_issues_default', {
|
|
|
95
95
|
return find_issues_default;
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
//# sourceMappingURL=find-issues-
|
|
98
|
+
//# sourceMappingURL=find-issues-C3uk59rn.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-issues-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
3
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
4
|
import { ParamOrganizationSlug, ParamProjectSlug, ParamQuery, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { setTag } from "@sentry/core";
|
|
@@ -89,4 +89,4 @@ var find_issues_default = defineTool({
|
|
|
89
89
|
|
|
90
90
|
//#endregion
|
|
91
91
|
export { find_issues_default };
|
|
92
|
-
//# sourceMappingURL=find-issues-
|
|
92
|
+
//# sourceMappingURL=find-issues-CAtNGBly.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-issues-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
2
|
-
const require_api_utils = require('./api-utils-
|
|
2
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/tools/find-organizations.ts
|
|
5
5
|
var find_organizations_default = require_defineTool.defineTool({
|
|
@@ -47,4 +47,4 @@ Object.defineProperty(exports, 'find_organizations_default', {
|
|
|
47
47
|
return find_organizations_default;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
//# sourceMappingURL=find-organizations-
|
|
50
|
+
//# sourceMappingURL=find-organizations-BrdMfZRO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-organizations-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tools/find-organizations.ts
|
|
5
5
|
var find_organizations_default = defineTool({
|
|
@@ -42,4 +42,4 @@ var find_organizations_default = defineTool({
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { find_organizations_default };
|
|
45
|
-
//# sourceMappingURL=find-organizations-
|
|
45
|
+
//# sourceMappingURL=find-organizations-ojXwWWzk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-organizations-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_api_utils = require('./api-utils-
|
|
4
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
5
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
7
|
|
|
@@ -42,4 +42,4 @@ Object.defineProperty(exports, 'find_projects_default', {
|
|
|
42
42
|
return find_projects_default;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
//# sourceMappingURL=find-projects-
|
|
45
|
+
//# sourceMappingURL=find-projects-BZWhlYJh.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-projects-
|
|
1
|
+
{"version":3,"file":"find-projects-BZWhlYJh.cjs","names":["ParamOrganizationSlug","context: ServerContext","UserInputError"],"sources":["../src/tools/find-projects.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 { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_projects\",\n description: [\n \"Find projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find a project's slug to aid other tool requests\",\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 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 projects = await apiService.listProjects(organizationSlug);\n let output = `# Projects in **${organizationSlug}**\\n\\n`;\n if (projects.length === 0) {\n output += \"No projects found.\\n\";\n return output;\n }\n output += projects.map((project) => `- **${project.slug}**\\n`).join(\"\");\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,4BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;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,OAAK,iBACH,OAAM,IAAIC,8BACR;AAIJ,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,WAAW,MAAM,WAAW,aAAa,iBAAiB;EAChE,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,MAAI,SAAS,WAAW,GAAG;AACzB,aAAU;AACV,UAAO;EACR;AACD,YAAU,SAAS,IAAI,CAAC,aAAa,MAAM,QAAQ,KAAK,MAAM,CAAC,KAAK,GAAG;AACvE,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
3
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
4
|
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
6
6
|
|
|
@@ -36,4 +36,4 @@ var find_projects_default = defineTool({
|
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { find_projects_default };
|
|
39
|
-
//# sourceMappingURL=find-projects-
|
|
39
|
+
//# sourceMappingURL=find-projects-fcLG4KpT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-projects-
|
|
1
|
+
{"version":3,"file":"find-projects-fcLG4KpT.js","names":["context: ServerContext"],"sources":["../src/tools/find-projects.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 { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_projects\",\n description: [\n \"Find projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find a project's slug to aid other tool requests\",\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 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 projects = await apiService.listProjects(organizationSlug);\n let output = `# Projects in **${organizationSlug}**\\n\\n`;\n if (projects.length === 0) {\n output += \"No projects found.\\n\";\n return output;\n }\n output += projects.map((project) => `- **${project.slug}**\\n`).join(\"\");\n return output;\n },\n});\n"],"mappings":";;;;;;;AAQA,4BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;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,OAAK,iBACH,OAAM,IAAI,eACR;AAIJ,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,WAAW,MAAM,WAAW,aAAa,iBAAiB;EAChE,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,MAAI,SAAS,WAAW,GAAG;AACzB,aAAU;AACV,UAAO;EACR;AACD,YAAU,SAAS,IAAI,CAAC,aAAa,MAAM,QAAQ,KAAK,MAAM,CAAC,KAAK,GAAG;AACvE,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamProjectSlugOrAll, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
@@ -90,4 +90,4 @@ var find_releases_default = defineTool({
|
|
|
90
90
|
|
|
91
91
|
//#endregion
|
|
92
92
|
export { find_releases_default };
|
|
93
|
-
//# sourceMappingURL=find-releases-
|
|
93
|
+
//# sourceMappingURL=find-releases-BUozr0Z-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-releases-
|
|
1
|
+
{"version":3,"file":"find-releases-BUozr0Z-.js","names":["context: ServerContext"],"sources":["../src/tools/find-releases.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} from \"../schema\";\n\nexport default defineTool({\n name: \"find_releases\",\n description: [\n \"Find releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"\",\n \"<examples>\",\n \"### Find the most recent releases in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization')\",\n \"```\",\n \"\",\n \"### Find releases matching '2ce6a27' in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization', query='2ce6a27')\",\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 \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n query: z\n .string()\n .trim()\n .describe(\"Search for versions which contain the provided string.\")\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 setTag(\"organization.slug\", organizationSlug);\n\n const releases = await apiService.listReleases({\n organizationSlug,\n projectSlug: params.projectSlug,\n query: params.query,\n });\n let output = `# Releases in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (releases.length === 0) {\n output += \"No releases found.\\n\";\n return output;\n }\n output += releases\n .map((release) => {\n const releaseInfo = [\n `## ${release.shortVersion}`,\n \"\",\n `**Created**: ${new Date(release.dateCreated).toISOString()}`,\n ];\n if (release.dateReleased) {\n releaseInfo.push(\n `**Released**: ${new Date(release.dateReleased).toISOString()}`,\n );\n }\n if (release.firstEvent) {\n releaseInfo.push(\n `**First Event**: ${new Date(release.firstEvent).toISOString()}`,\n );\n }\n if (release.lastEvent) {\n releaseInfo.push(\n `**Last Event**: ${new Date(release.lastEvent).toISOString()}`,\n );\n }\n if (release.newGroups !== undefined) {\n releaseInfo.push(`**New Issues**: ${release.newGroups}`);\n }\n if (release.projects && release.projects.length > 0) {\n releaseInfo.push(\n `**Projects**: ${release.projects.map((p) => p.name).join(\", \")}`,\n );\n }\n if (release.lastCommit) {\n releaseInfo.push(\"\", `### Last Commit`, \"\");\n releaseInfo.push(`**Commit ID**: ${release.lastCommit.id}`);\n releaseInfo.push(`**Commit Message**: ${release.lastCommit.message}`);\n releaseInfo.push(\n `**Commit Author**: ${release.lastCommit.author.name}`,\n );\n releaseInfo.push(\n `**Commit Date**: ${new Date(release.lastCommit.dateCreated).toISOString()}`,\n );\n }\n if (release.lastDeploy) {\n releaseInfo.push(\"\", `### Last Deploy`, \"\");\n releaseInfo.push(`**Deploy ID**: ${release.lastDeploy.id}`);\n releaseInfo.push(\n `**Environment**: ${release.lastDeploy.environment}`,\n );\n if (release.lastDeploy.dateStarted) {\n releaseInfo.push(\n `**Deploy Started**: ${new Date(release.lastDeploy.dateStarted).toISOString()}`,\n );\n }\n if (release.lastDeploy.dateFinished) {\n releaseInfo.push(\n `**Deploy Finished**: ${new Date(release.lastDeploy.dateFinished).toISOString()}`,\n );\n }\n }\n return releaseInfo.join(\"\\n\");\n })\n .join(\"\\n\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Release version in commit messages or documentation.\\n`;\n output += `- You can search for issues in a specific release using the \\`find_errors()\\` tool with the query \\`release:${releases.length ? releases[0]!.shortVersion : \"VERSION\"}\\`.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,4BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa,sBAAsB,UAAU;EAC7C,OAAO,EACJ,QAAQ,CACR,MAAM,CACN,SAAS,yDAAyD,CAClE,UAAU;CACd;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,WAAW,MAAM,WAAW,aAAa;GAC7C;GACA,aAAa,OAAO;GACpB,OAAO,OAAO;EACf,EAAC;EACF,IAAI,UAAU,kBAAkB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACtG,MAAI,SAAS,WAAW,GAAG;AACzB,aAAU;AACV,UAAO;EACR;AACD,YAAU,SACP,IAAI,CAAC,YAAY;GAChB,MAAM,cAAc;KACjB,KAAK,QAAQ;IACd;KACC,eAAe,IAAI,KAAK,QAAQ,aAAa,aAAa;GAC5D;AACD,OAAI,QAAQ,aACV,aAAY,MACT,gBAAgB,IAAI,KAAK,QAAQ,cAAc,aAAa,GAC9D;AAEH,OAAI,QAAQ,WACV,aAAY,MACT,mBAAmB,IAAI,KAAK,QAAQ,YAAY,aAAa,GAC/D;AAEH,OAAI,QAAQ,UACV,aAAY,MACT,kBAAkB,IAAI,KAAK,QAAQ,WAAW,aAAa,GAC7D;AAEH,OAAI,QAAQ,qBACV,aAAY,MAAM,kBAAkB,QAAQ,YAAY;AAE1D,OAAI,QAAQ,YAAY,QAAQ,SAAS,SAAS,EAChD,aAAY,MACT,gBAAgB,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,KAAK,GAChE;AAEH,OAAI,QAAQ,YAAY;AACtB,gBAAY,KAAK,KAAK,kBAAkB,GAAG;AAC3C,gBAAY,MAAM,iBAAiB,QAAQ,WAAW,KAAK;AAC3D,gBAAY,MAAM,sBAAsB,QAAQ,WAAW,UAAU;AACrE,gBAAY,MACT,qBAAqB,QAAQ,WAAW,OAAO,OACjD;AACD,gBAAY,MACT,mBAAmB,IAAI,KAAK,QAAQ,WAAW,aAAa,aAAa,GAC3E;GACF;AACD,OAAI,QAAQ,YAAY;AACtB,gBAAY,KAAK,KAAK,kBAAkB,GAAG;AAC3C,gBAAY,MAAM,iBAAiB,QAAQ,WAAW,KAAK;AAC3D,gBAAY,MACT,mBAAmB,QAAQ,WAAW,cACxC;AACD,QAAI,QAAQ,WAAW,YACrB,aAAY,MACT,sBAAsB,IAAI,KAAK,QAAQ,WAAW,aAAa,aAAa,GAC9E;AAEH,QAAI,QAAQ,WAAW,aACrB,aAAY,MACT,uBAAuB,IAAI,KAAK,QAAQ,WAAW,cAAc,aAAa,GAChF;GAEJ;AACD,UAAO,YAAY,KAAK,KAAK;EAC9B,EAAC,CACD,KAAK,OAAO;AACf,YAAU;AACV,YAAU;AACV,aAAW;AACX,aAAW,8GAA8G,SAAS,SAAS,SAAS,GAAI,eAAe,UAAU;AACjL,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -96,4 +96,4 @@ Object.defineProperty(exports, 'find_releases_default', {
|
|
|
96
96
|
return find_releases_default;
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
//# sourceMappingURL=find-releases-
|
|
99
|
+
//# sourceMappingURL=find-releases-CZCVEOHZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-releases-
|
|
1
|
+
{"version":3,"file":"find-releases-CZCVEOHZ.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/find-releases.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} from \"../schema\";\n\nexport default defineTool({\n name: \"find_releases\",\n description: [\n \"Find releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"\",\n \"<examples>\",\n \"### Find the most recent releases in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization')\",\n \"```\",\n \"\",\n \"### Find releases matching '2ce6a27' in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization', query='2ce6a27')\",\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 \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n query: z\n .string()\n .trim()\n .describe(\"Search for versions which contain the provided string.\")\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 setTag(\"organization.slug\", organizationSlug);\n\n const releases = await apiService.listReleases({\n organizationSlug,\n projectSlug: params.projectSlug,\n query: params.query,\n });\n let output = `# Releases in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (releases.length === 0) {\n output += \"No releases found.\\n\";\n return output;\n }\n output += releases\n .map((release) => {\n const releaseInfo = [\n `## ${release.shortVersion}`,\n \"\",\n `**Created**: ${new Date(release.dateCreated).toISOString()}`,\n ];\n if (release.dateReleased) {\n releaseInfo.push(\n `**Released**: ${new Date(release.dateReleased).toISOString()}`,\n );\n }\n if (release.firstEvent) {\n releaseInfo.push(\n `**First Event**: ${new Date(release.firstEvent).toISOString()}`,\n );\n }\n if (release.lastEvent) {\n releaseInfo.push(\n `**Last Event**: ${new Date(release.lastEvent).toISOString()}`,\n );\n }\n if (release.newGroups !== undefined) {\n releaseInfo.push(`**New Issues**: ${release.newGroups}`);\n }\n if (release.projects && release.projects.length > 0) {\n releaseInfo.push(\n `**Projects**: ${release.projects.map((p) => p.name).join(\", \")}`,\n );\n }\n if (release.lastCommit) {\n releaseInfo.push(\"\", `### Last Commit`, \"\");\n releaseInfo.push(`**Commit ID**: ${release.lastCommit.id}`);\n releaseInfo.push(`**Commit Message**: ${release.lastCommit.message}`);\n releaseInfo.push(\n `**Commit Author**: ${release.lastCommit.author.name}`,\n );\n releaseInfo.push(\n `**Commit Date**: ${new Date(release.lastCommit.dateCreated).toISOString()}`,\n );\n }\n if (release.lastDeploy) {\n releaseInfo.push(\"\", `### Last Deploy`, \"\");\n releaseInfo.push(`**Deploy ID**: ${release.lastDeploy.id}`);\n releaseInfo.push(\n `**Environment**: ${release.lastDeploy.environment}`,\n );\n if (release.lastDeploy.dateStarted) {\n releaseInfo.push(\n `**Deploy Started**: ${new Date(release.lastDeploy.dateStarted).toISOString()}`,\n );\n }\n if (release.lastDeploy.dateFinished) {\n releaseInfo.push(\n `**Deploy Finished**: ${new Date(release.lastDeploy.dateFinished).toISOString()}`,\n );\n }\n }\n return releaseInfo.join(\"\\n\");\n })\n .join(\"\\n\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Release version in commit messages or documentation.\\n`;\n output += `- You can search for issues in a specific release using the \\`find_errors()\\` tool with the query \\`release:${releases.length ? releases[0]!.shortVersion : \"VERSION\"}\\`.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAWA,4BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAa,qCAAsB,UAAU;EAC7C,OAAO,MACJ,QAAQ,CACR,MAAM,CACN,SAAS,yDAAyD,CAClE,UAAU;CACd;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,WAAW,MAAM,WAAW,aAAa;GAC7C;GACA,aAAa,OAAO;GACpB,OAAO,OAAO;EACf,EAAC;EACF,IAAI,UAAU,kBAAkB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACtG,MAAI,SAAS,WAAW,GAAG;AACzB,aAAU;AACV,UAAO;EACR;AACD,YAAU,SACP,IAAI,CAAC,YAAY;GAChB,MAAM,cAAc;KACjB,KAAK,QAAQ;IACd;KACC,eAAe,IAAI,KAAK,QAAQ,aAAa,aAAa;GAC5D;AACD,OAAI,QAAQ,aACV,aAAY,MACT,gBAAgB,IAAI,KAAK,QAAQ,cAAc,aAAa,GAC9D;AAEH,OAAI,QAAQ,WACV,aAAY,MACT,mBAAmB,IAAI,KAAK,QAAQ,YAAY,aAAa,GAC/D;AAEH,OAAI,QAAQ,UACV,aAAY,MACT,kBAAkB,IAAI,KAAK,QAAQ,WAAW,aAAa,GAC7D;AAEH,OAAI,QAAQ,qBACV,aAAY,MAAM,kBAAkB,QAAQ,YAAY;AAE1D,OAAI,QAAQ,YAAY,QAAQ,SAAS,SAAS,EAChD,aAAY,MACT,gBAAgB,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,KAAK,GAChE;AAEH,OAAI,QAAQ,YAAY;AACtB,gBAAY,KAAK,KAAK,kBAAkB,GAAG;AAC3C,gBAAY,MAAM,iBAAiB,QAAQ,WAAW,KAAK;AAC3D,gBAAY,MAAM,sBAAsB,QAAQ,WAAW,UAAU;AACrE,gBAAY,MACT,qBAAqB,QAAQ,WAAW,OAAO,OACjD;AACD,gBAAY,MACT,mBAAmB,IAAI,KAAK,QAAQ,WAAW,aAAa,aAAa,GAC3E;GACF;AACD,OAAI,QAAQ,YAAY;AACtB,gBAAY,KAAK,KAAK,kBAAkB,GAAG;AAC3C,gBAAY,MAAM,iBAAiB,QAAQ,WAAW,KAAK;AAC3D,gBAAY,MACT,mBAAmB,QAAQ,WAAW,cACxC;AACD,QAAI,QAAQ,WAAW,YACrB,aAAY,MACT,sBAAsB,IAAI,KAAK,QAAQ,WAAW,aAAa,aAAa,GAC9E;AAEH,QAAI,QAAQ,WAAW,aACrB,aAAY,MACT,uBAAuB,IAAI,KAAK,QAAQ,WAAW,cAAc,aAAa,GAChF;GAEJ;AACD,UAAO,YAAY,KAAK,KAAK;EAC9B,EAAC,CACD,KAAK,OAAO;AACf,YAAU;AACV,YAAU;AACV,aAAW;AACX,aAAW,8GAA8G,SAAS,SAAS,SAAS,GAAI,eAAe,UAAU;AACjL,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
6
|
|
|
@@ -42,4 +42,4 @@ Object.defineProperty(exports, 'find_tags_default', {
|
|
|
42
42
|
return find_tags_default;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
//# sourceMappingURL=find-tags-
|
|
45
|
+
//# sourceMappingURL=find-tags-Byk4d3oZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { setTag } from "@sentry/core";
|
|
5
5
|
|
|
@@ -36,4 +36,4 @@ var find_tags_default = defineTool({
|
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { find_tags_default };
|
|
39
|
-
//# sourceMappingURL=find-tags-
|
|
39
|
+
//# sourceMappingURL=find-tags-d-wF1Se8.js.map
|