@sentry/mcp-server 0.12.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 +19 -4
- package/dist/analyze-issue-with-seer-BsNarzJN.js +163 -0
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +1 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs +169 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +1 -0
- package/dist/api-client/client.cjs +2 -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 +2 -2
- package/dist/api-client/index.cjs +9 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +5 -5
- package/dist/api-client/index.js +5 -5
- package/dist/api-client/schema.cjs +8 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/api-utils-C6QJAzFL.js +31 -0
- package/dist/api-utils-C6QJAzFL.js.map +1 -0
- package/dist/api-utils-d36iteNO.cjs +36 -0
- package/dist/api-utils-d36iteNO.cjs.map +1 -0
- package/dist/{client-4jq_wVgn.d.ts → client-BCN17Wbp.d.ts} +43 -11
- package/dist/client-BCN17Wbp.d.ts.map +1 -0
- package/dist/{client-DkY0ifZf.d.cts → client-CILwfx6G.d.cts} +43 -11
- package/dist/client-CILwfx6G.d.cts.map +1 -0
- package/dist/{client-CAoHZbyK.js → client-DOYWNvVM.js} +75 -18
- package/dist/client-DOYWNvVM.js.map +1 -0
- package/dist/{client-B7vZ6JMk.cjs → client-Dkw5iYu3.cjs} +75 -18
- package/dist/client-Dkw5iYu3.cjs.map +1 -0
- package/dist/constants-ClkMK29-.cjs +182 -0
- package/dist/constants-ClkMK29-.cjs.map +1 -0
- package/dist/constants-S7AU45oQ.js +164 -0
- package/dist/constants-S7AU45oQ.js.map +1 -0
- package/dist/constants.cjs +5 -0
- package/dist/constants.d.cts +23 -0
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +3 -0
- package/dist/create-dsn-CDcL2DLD.js +59 -0
- package/dist/create-dsn-CDcL2DLD.js.map +1 -0
- package/dist/create-dsn-fESUtX3R.cjs +65 -0
- package/dist/create-dsn-fESUtX3R.cjs.map +1 -0
- package/dist/create-project-Bg5uDkc4.cjs +82 -0
- package/dist/create-project-Bg5uDkc4.cjs.map +1 -0
- package/dist/create-project-DY5mFznV.js +76 -0
- package/dist/create-project-DY5mFznV.js.map +1 -0
- package/dist/create-team-5purh64V.cjs +53 -0
- package/dist/create-team-5purh64V.cjs.map +1 -0
- package/dist/create-team-C2R7EUC3.js +47 -0
- package/dist/create-team-C2R7EUC3.js.map +1 -0
- package/dist/defineTool-77H4nSna.js +8 -0
- package/dist/defineTool-77H4nSna.js.map +1 -0
- package/dist/defineTool-lWNTzWl_.cjs +14 -0
- package/dist/defineTool-lWNTzWl_.cjs.map +1 -0
- package/dist/{errors-BJSrT6Ou.js → errors-CIoxzIug.js} +1 -1
- package/dist/{errors-BJSrT6Ou.js.map → errors-CIoxzIug.js.map} +1 -1
- package/dist/{errors-B9fwS-aP.cjs → errors-YmiXLOyx.cjs} +1 -1
- package/dist/{errors-B9fwS-aP.cjs.map → errors-YmiXLOyx.cjs.map} +1 -1
- package/dist/errors.cjs +1 -1
- package/dist/errors.js +1 -1
- package/dist/fetch-utils-BMKjO-cc.js +29 -0
- package/dist/fetch-utils-BMKjO-cc.js.map +1 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts +14 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
- package/dist/fetch-utils-DlPjrSk2.js +0 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts +14 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +1 -0
- package/dist/fetch-utils-oab6uNp3.cjs +35 -0
- package/dist/fetch-utils-oab6uNp3.cjs.map +1 -0
- package/dist/find-dsns-CvfcLB9Z.js +52 -0
- package/dist/find-dsns-CvfcLB9Z.js.map +1 -0
- package/dist/find-dsns-ZZ-thiNk.cjs +58 -0
- package/dist/find-dsns-ZZ-thiNk.cjs.map +1 -0
- package/dist/find-errors-CuRm4PzL.js +91 -0
- package/dist/find-errors-CuRm4PzL.js.map +1 -0
- package/dist/find-errors-Drzv7hzM.cjs +97 -0
- package/dist/find-errors-Drzv7hzM.cjs.map +1 -0
- package/dist/find-issues-C3uk59rn.cjs +98 -0
- package/dist/find-issues-C3uk59rn.cjs.map +1 -0
- package/dist/find-issues-CAtNGBly.js +92 -0
- package/dist/find-issues-CAtNGBly.js.map +1 -0
- package/dist/find-organizations-BrdMfZRO.cjs +50 -0
- package/dist/find-organizations-BrdMfZRO.cjs.map +1 -0
- package/dist/find-organizations-ojXwWWzk.js +45 -0
- package/dist/find-organizations-ojXwWWzk.js.map +1 -0
- package/dist/find-projects-BZWhlYJh.cjs +45 -0
- package/dist/find-projects-BZWhlYJh.cjs.map +1 -0
- package/dist/find-projects-fcLG4KpT.js +39 -0
- package/dist/find-projects-fcLG4KpT.js.map +1 -0
- package/dist/find-releases-BUozr0Z-.js +93 -0
- package/dist/find-releases-BUozr0Z-.js.map +1 -0
- package/dist/find-releases-CZCVEOHZ.cjs +99 -0
- package/dist/find-releases-CZCVEOHZ.cjs.map +1 -0
- package/dist/find-tags-Byk4d3oZ.cjs +45 -0
- package/dist/find-tags-Byk4d3oZ.cjs.map +1 -0
- package/dist/find-tags-d-wF1Se8.js +39 -0
- package/dist/find-tags-d-wF1Se8.js.map +1 -0
- package/dist/find-teams-BZ118EIK.js +39 -0
- package/dist/find-teams-BZ118EIK.js.map +1 -0
- package/dist/find-teams-CnU5x9rQ.cjs +45 -0
- package/dist/find-teams-CnU5x9rQ.cjs.map +1 -0
- package/dist/find-transactions-DIJ80wkd.cjs +89 -0
- package/dist/find-transactions-DIJ80wkd.cjs.map +1 -0
- package/dist/find-transactions-DZCj81jP.js +83 -0
- package/dist/find-transactions-DZCj81jP.js.map +1 -0
- package/dist/formatting-BlMiQa9i.cjs +388 -0
- package/dist/formatting-BlMiQa9i.cjs.map +1 -0
- package/dist/formatting-CHh9Q_OW.d.cts +47 -0
- package/dist/formatting-CHh9Q_OW.d.cts.map +1 -0
- package/dist/formatting-kdIeURER.d.ts +47 -0
- package/dist/formatting-kdIeURER.d.ts.map +1 -0
- package/dist/formatting-pUm38KOj.js +370 -0
- package/dist/formatting-pUm38KOj.js.map +1 -0
- package/dist/formatting-utils-C3sej5ER.js +14 -0
- package/dist/formatting-utils-C3sej5ER.js.map +1 -0
- package/dist/formatting-utils-DDz14xeB.cjs +20 -0
- package/dist/formatting-utils-DDz14xeB.cjs.map +1 -0
- package/dist/get-doc-DaTCenOE.cjs +86 -0
- package/dist/get-doc-DaTCenOE.cjs.map +1 -0
- package/dist/get-doc-YTiQznr1.js +80 -0
- package/dist/get-doc-YTiQznr1.js.map +1 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs +144 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs.map +1 -0
- package/dist/get-event-attachment-CuU-_5T6.js +138 -0
- package/dist/get-event-attachment-CuU-_5T6.js.map +1 -0
- package/dist/get-issue-details-CxChU4U9.js +104 -0
- package/dist/get-issue-details-CxChU4U9.js.map +1 -0
- package/dist/get-issue-details-DFwZRbmU.cjs +110 -0
- package/dist/get-issue-details-DFwZRbmU.cjs.map +1 -0
- package/dist/index.cjs +73 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +75 -25
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +3 -0
- package/dist/internal/fetch-utils.d.cts +2 -0
- package/dist/internal/fetch-utils.d.ts +2 -0
- package/dist/internal/fetch-utils.js +3 -0
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +5 -25
- package/dist/internal/formatting.d.ts +6 -26
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +2 -52
- package/dist/internal/issue-helpers.d.ts +2 -52
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.cjs +214 -0
- package/dist/internal/test-fixtures.cjs.map +1 -0
- package/dist/internal/test-fixtures.d.cts +2138 -0
- package/dist/internal/test-fixtures.d.cts.map +1 -0
- package/dist/internal/test-fixtures.d.ts +2138 -0
- package/dist/internal/test-fixtures.d.ts.map +1 -0
- package/dist/internal/test-fixtures.js +205 -0
- package/dist/internal/test-fixtures.js.map +1 -0
- package/dist/issue-helpers-BJffpNoO.d.ts +52 -0
- package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -0
- package/dist/{issue-helpers-BMVLc3mR.js → issue-helpers-CqqYnwYE.js} +1 -1
- package/dist/{issue-helpers-BMVLc3mR.js.map → issue-helpers-CqqYnwYE.js.map} +1 -1
- package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
- package/dist/{issue-helpers-D712fGT2.cjs → issue-helpers-DyAIO0w6.cjs} +1 -1
- package/dist/{issue-helpers-D712fGT2.cjs.map → issue-helpers-DyAIO0w6.cjs.map} +1 -1
- package/dist/issue-utils-BVAB6I-Z.js +0 -0
- package/dist/issue-utils-pdbo-5LW.cjs +0 -0
- package/dist/{logging-CXLD0FFB.js → logging-LnQMFw-_.js} +1 -1
- package/dist/{logging-CXLD0FFB.js.map → logging-LnQMFw-_.js.map} +1 -1
- package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
- package/dist/{logging-ByvSjT6V.cjs.map → logging-oIouXrcb.cjs.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{promptDefinitions-BTLIBcGt.cjs → promptDefinitions-C29BWGYg.cjs} +4 -4
- package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
- package/dist/{promptDefinitions-D8yow1m0.js → promptDefinitions-CSKE8T0a.js} +4 -4
- package/dist/{promptDefinitions-D8yow1m0.js.map → promptDefinitions-CSKE8T0a.js.map} +1 -1
- package/dist/{promptDefinitions-CF2VWdQ6.d.cts → promptDefinitions-CVHtYaj8.d.cts} +3 -3
- package/dist/promptDefinitions-CVHtYaj8.d.cts.map +1 -0
- package/dist/{promptDefinitions-D5FSQckL.d.ts → promptDefinitions-D3GTBGLr.d.ts} +3 -3
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +3 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +3 -2
- package/dist/{prompts-Dt3A8Qfl.js → prompts-C8Y9w5c4.js} +7 -7
- package/dist/{prompts-Dt3A8Qfl.js.map → prompts-C8Y9w5c4.js.map} +1 -1
- package/dist/{prompts-CDbQrutV.cjs → prompts-Df3i1XSB.cjs} +7 -7
- package/dist/{prompts-CDbQrutV.cjs.map → prompts-Df3i1XSB.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.d.cts +4 -5
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +4 -5
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/resources-BHF8a1ZB.js +92 -0
- package/dist/resources-BHF8a1ZB.js.map +1 -0
- package/dist/resources-BM_YQGcb.cjs +104 -0
- package/dist/resources-BM_YQGcb.cjs.map +1 -0
- package/dist/resources.cjs +5 -2
- package/dist/resources.d.cts +26 -12
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +26 -12
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +4 -2
- package/dist/{schema-BnxGHL_i.d.ts → schema--5m4KI84.d.ts} +3678 -619
- package/dist/schema--5m4KI84.d.ts.map +1 -0
- package/dist/{schema-BsvGMALe.cjs → schema-B_cMyyJJ.cjs} +94 -8
- package/dist/schema-B_cMyyJJ.cjs.map +1 -0
- package/dist/{schema-BTfISwFu.cjs → schema-BpJVmev8.cjs} +23 -1
- package/dist/{schema-Dv6aLZgz.js.map → schema-BpJVmev8.cjs.map} +1 -1
- package/dist/{schema-Dv6aLZgz.js → schema-DtsnsxMl.js} +6 -2
- package/dist/schema-DtsnsxMl.js.map +1 -0
- package/dist/{schema-C_hp0BR7.js → schema-WDk5Yqww.js} +53 -9
- package/dist/schema-WDk5Yqww.js.map +1 -0
- package/dist/{schema-BJv7kREf.d.cts → schema-ya35hkEL.d.cts} +3614 -555
- package/dist/schema-ya35hkEL.d.cts.map +1 -0
- package/dist/schema.cjs +5 -1
- package/dist/schema.d.cts +4 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +4 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +3 -2
- package/dist/search-docs-BLbB_GV2.js +102 -0
- package/dist/search-docs-BLbB_GV2.js.map +1 -0
- package/dist/search-docs-D5Foht_0.cjs +108 -0
- package/dist/search-docs-D5Foht_0.cjs.map +1 -0
- package/dist/seer-utils-Ckr8nYlz.js +87 -0
- package/dist/seer-utils-Ckr8nYlz.js.map +1 -0
- package/dist/seer-utils-CzYEEZb2.cjs +129 -0
- package/dist/seer-utils-CzYEEZb2.cjs.map +1 -0
- package/dist/{server-DeutbO8v.cjs → server-BpEIZVaZ.cjs} +104 -57
- package/dist/server-BpEIZVaZ.cjs.map +1 -0
- package/dist/{server-C7cHq_pc.js → server-DOy-M9Ko.js} +104 -57
- package/dist/server-DOy-M9Ko.js.map +1 -0
- package/dist/server.cjs +40 -13
- package/dist/server.d.cts +2 -3
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +2 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -15
- package/dist/{stdio-ZQLC-i5Q.js → stdio-B2NDq7Ax.js} +17 -7
- package/dist/stdio-B2NDq7Ax.js.map +1 -0
- package/dist/{stdio-B73CCTly.cjs → stdio-DMEgJ_fG.cjs} +17 -7
- package/dist/stdio-DMEgJ_fG.cjs.map +1 -0
- package/dist/test-setup.cjs +1420 -1230
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1262 -1045
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.d.ts +25 -2
- package/dist/toolDefinitions.js +1059 -4
- package/dist/tools/analyze-issue-with-seer.cjs +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.d.ts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.js +16 -0
- package/dist/tools/create-dsn.cjs +12 -0
- package/dist/tools/create-dsn.d.cts +15 -0
- package/dist/tools/create-dsn.d.cts.map +1 -0
- package/dist/tools/create-dsn.d.ts +15 -0
- package/dist/tools/create-dsn.d.ts.map +1 -0
- package/dist/tools/create-dsn.js +12 -0
- package/dist/tools/create-project.cjs +13 -0
- package/dist/tools/create-project.d.cts +16 -0
- package/dist/tools/create-project.d.cts.map +1 -0
- package/dist/tools/create-project.d.ts +16 -0
- package/dist/tools/create-project.d.ts.map +1 -0
- package/dist/tools/create-project.js +13 -0
- package/dist/tools/create-team.cjs +12 -0
- package/dist/tools/create-team.d.cts +14 -0
- package/dist/tools/create-team.d.cts.map +1 -0
- package/dist/tools/create-team.d.ts +14 -0
- package/dist/tools/create-team.d.ts.map +1 -0
- package/dist/tools/create-team.js +12 -0
- package/dist/tools/find-dsns.cjs +12 -0
- package/dist/tools/find-dsns.d.cts +14 -0
- package/dist/tools/find-dsns.d.cts.map +1 -0
- package/dist/tools/find-dsns.d.ts +14 -0
- package/dist/tools/find-dsns.d.ts.map +1 -0
- package/dist/tools/find-dsns.js +12 -0
- package/dist/tools/find-errors.cjs +12 -0
- package/dist/tools/find-errors.d.cts +18 -0
- package/dist/tools/find-errors.d.cts.map +1 -0
- package/dist/tools/find-errors.d.ts +18 -0
- package/dist/tools/find-errors.d.ts.map +1 -0
- package/dist/tools/find-errors.js +12 -0
- package/dist/tools/find-issues.cjs +12 -0
- package/dist/tools/find-issues.d.cts +16 -0
- package/dist/tools/find-issues.d.cts.map +1 -0
- package/dist/tools/find-issues.d.ts +16 -0
- package/dist/tools/find-issues.d.ts.map +1 -0
- package/dist/tools/find-issues.js +12 -0
- package/dist/tools/find-organizations.cjs +10 -0
- package/dist/tools/find-organizations.d.cts +9 -0
- package/dist/tools/find-organizations.d.cts.map +1 -0
- package/dist/tools/find-organizations.d.ts +9 -0
- package/dist/tools/find-organizations.d.ts.map +1 -0
- package/dist/tools/find-organizations.js +10 -0
- package/dist/tools/find-projects.cjs +12 -0
- package/dist/tools/find-projects.d.cts +13 -0
- package/dist/tools/find-projects.d.cts.map +1 -0
- package/dist/tools/find-projects.d.ts +13 -0
- package/dist/tools/find-projects.d.ts.map +1 -0
- package/dist/tools/find-projects.js +12 -0
- package/dist/tools/find-releases.cjs +12 -0
- package/dist/tools/find-releases.d.cts +15 -0
- package/dist/tools/find-releases.d.cts.map +1 -0
- package/dist/tools/find-releases.d.ts +15 -0
- package/dist/tools/find-releases.d.ts.map +1 -0
- package/dist/tools/find-releases.js +12 -0
- package/dist/tools/find-tags.cjs +12 -0
- package/dist/tools/find-tags.d.cts +13 -0
- package/dist/tools/find-tags.d.cts.map +1 -0
- package/dist/tools/find-tags.d.ts +13 -0
- package/dist/tools/find-tags.d.ts.map +1 -0
- package/dist/tools/find-tags.js +12 -0
- package/dist/tools/find-teams.cjs +12 -0
- package/dist/tools/find-teams.d.cts +13 -0
- package/dist/tools/find-teams.d.cts.map +1 -0
- package/dist/tools/find-teams.d.ts +13 -0
- package/dist/tools/find-teams.d.ts.map +1 -0
- package/dist/tools/find-teams.js +12 -0
- package/dist/tools/find-transactions.cjs +12 -0
- package/dist/tools/find-transactions.d.cts +17 -0
- package/dist/tools/find-transactions.d.cts.map +1 -0
- package/dist/tools/find-transactions.d.ts +17 -0
- package/dist/tools/find-transactions.d.ts.map +1 -0
- package/dist/tools/find-transactions.js +12 -0
- package/dist/tools/get-doc.cjs +11 -0
- package/dist/tools/get-doc.d.cts +12 -0
- package/dist/tools/get-doc.d.cts.map +1 -0
- package/dist/tools/get-doc.d.ts +12 -0
- package/dist/tools/get-doc.d.ts.map +1 -0
- package/dist/tools/get-doc.js +11 -0
- package/dist/tools/get-event-attachment.cjs +12 -0
- package/dist/tools/get-event-attachment.d.cts +16 -0
- package/dist/tools/get-event-attachment.d.cts.map +1 -0
- package/dist/tools/get-event-attachment.d.ts +16 -0
- package/dist/tools/get-event-attachment.d.ts.map +1 -0
- package/dist/tools/get-event-attachment.js +12 -0
- package/dist/tools/get-issue-details.cjs +15 -0
- package/dist/tools/get-issue-details.d.cts +16 -0
- package/dist/tools/get-issue-details.d.cts.map +1 -0
- package/dist/tools/get-issue-details.d.ts +16 -0
- package/dist/tools/get-issue-details.d.ts.map +1 -0
- package/dist/tools/get-issue-details.js +15 -0
- package/dist/tools/index.cjs +40 -0
- package/dist/tools/index.d.cts +127 -0
- package/dist/tools/index.d.cts.map +1 -0
- package/dist/tools/index.d.ts +127 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +40 -0
- package/dist/tools/search-docs.cjs +12 -0
- package/dist/tools/search-docs.d.cts +14 -0
- package/dist/tools/search-docs.d.cts.map +1 -0
- package/dist/tools/search-docs.d.ts +14 -0
- package/dist/tools/search-docs.d.ts.map +1 -0
- package/dist/tools/search-docs.js +12 -0
- package/dist/tools/types.cjs +0 -0
- package/dist/tools/types.d.cts +4 -0
- package/dist/tools/types.d.ts +4 -0
- package/dist/tools/types.js +0 -0
- package/dist/tools/update-issue.cjs +16 -0
- package/dist/tools/update-issue.d.cts +17 -0
- package/dist/tools/update-issue.d.cts.map +1 -0
- package/dist/tools/update-issue.d.ts +17 -0
- package/dist/tools/update-issue.d.ts.map +1 -0
- package/dist/tools/update-issue.js +16 -0
- package/dist/tools/update-project.cjs +13 -0
- package/dist/tools/update-project.d.cts +18 -0
- package/dist/tools/update-project.d.cts.map +1 -0
- package/dist/tools/update-project.d.ts +18 -0
- package/dist/tools/update-project.d.ts.map +1 -0
- package/dist/tools/update-project.js +13 -0
- package/dist/tools/utils/api-utils.cjs +8 -0
- package/dist/tools/utils/api-utils.d.cts +24 -0
- package/dist/tools/utils/api-utils.d.cts.map +1 -0
- package/dist/tools/utils/api-utils.d.ts +24 -0
- package/dist/tools/utils/api-utils.d.ts.map +1 -0
- package/dist/tools/utils/api-utils.js +8 -0
- package/dist/tools/utils/defineTool.cjs +3 -0
- package/dist/tools/utils/defineTool.d.cts +12 -0
- package/dist/tools/utils/defineTool.d.cts.map +1 -0
- package/dist/tools/utils/defineTool.d.ts +12 -0
- package/dist/tools/utils/defineTool.d.ts.map +1 -0
- package/dist/tools/utils/defineTool.js +3 -0
- package/dist/tools/utils/fetch-utils.cjs +4 -0
- package/dist/tools/utils/fetch-utils.d.cts +2 -0
- package/dist/tools/utils/fetch-utils.d.ts +2 -0
- package/dist/tools/utils/fetch-utils.js +4 -0
- package/dist/tools/utils/formatting-utils.cjs +3 -0
- package/dist/tools/utils/formatting-utils.d.cts +15 -0
- package/dist/tools/utils/formatting-utils.d.cts.map +1 -0
- package/dist/tools/utils/formatting-utils.d.ts +15 -0
- package/dist/tools/utils/formatting-utils.d.ts.map +1 -0
- package/dist/tools/utils/formatting-utils.js +3 -0
- package/dist/tools/utils/issue-utils.cjs +6 -0
- package/dist/tools/utils/issue-utils.d.cts +7 -0
- package/dist/tools/utils/issue-utils.d.ts +7 -0
- package/dist/tools/utils/issue-utils.js +5 -0
- package/dist/tools/utils/seer-utils.cjs +9 -0
- package/dist/tools/utils/seer-utils.d.cts +28 -0
- package/dist/tools/utils/seer-utils.d.cts.map +1 -0
- package/dist/tools/utils/seer-utils.d.ts +28 -0
- package/dist/tools/utils/seer-utils.d.ts.map +1 -0
- package/dist/tools/utils/seer-utils.js +3 -0
- package/dist/tools/whoami.cjs +10 -0
- package/dist/tools/whoami.d.cts +9 -0
- package/dist/tools/whoami.d.cts.map +1 -0
- package/dist/tools/whoami.d.ts +9 -0
- package/dist/tools/whoami.d.ts.map +1 -0
- package/dist/tools/whoami.js +10 -0
- package/dist/tools-19Ms1kck.cjs +53 -0
- package/dist/tools-19Ms1kck.cjs.map +1 -0
- package/dist/tools-mThAUo_3.js +48 -0
- package/dist/tools-mThAUo_3.js.map +1 -0
- package/dist/transports/stdio.cjs +42 -14
- package/dist/transports/stdio.d.cts +2 -3
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +2 -3
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +44 -16
- package/dist/{types-NIQW7KyF.d.cts → types-Bg17IGWJ.d.cts} +5 -3
- package/dist/types-Bg17IGWJ.d.cts.map +1 -0
- package/dist/types-CCHsZshF.js +0 -0
- package/dist/types-CUN-2OSS.d.cts +29 -0
- package/dist/types-CUN-2OSS.d.cts.map +1 -0
- package/dist/{types-Daq2fm0E.d.ts → types-CtTBwGbw.d.ts} +5 -3
- package/dist/types-CtTBwGbw.d.ts.map +1 -0
- package/dist/types-D_mx318Q.d.cts +29 -0
- package/dist/types-D_mx318Q.d.cts.map +1 -0
- package/dist/types-DkJtNDXU.d.ts +29 -0
- package/dist/types-DkJtNDXU.d.ts.map +1 -0
- package/dist/types-qB8a4WQT.d.ts +29 -0
- package/dist/types-qB8a4WQT.d.ts.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/update-issue-B6eZhAPJ.cjs +115 -0
- package/dist/update-issue-B6eZhAPJ.cjs.map +1 -0
- package/dist/update-issue-DmLElHPS.js +109 -0
- package/dist/update-issue-DmLElHPS.js.map +1 -0
- package/dist/update-project-BNPev7W8.js +120 -0
- package/dist/update-project-BNPev7W8.js.map +1 -0
- package/dist/update-project-CijYCtG1.cjs +126 -0
- package/dist/update-project-CijYCtG1.cjs.map +1 -0
- 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-C4uvMmw0.js.map +1 -0
- package/dist/{version-BNmubeQI.cjs → version-Ddz4xg_q.cjs} +2 -2
- package/dist/version-Ddz4xg_q.cjs.map +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-CEgbTUqt.cjs +28 -0
- package/dist/whoami-CEgbTUqt.cjs.map +1 -0
- package/dist/whoami-DesNZnaQ.js +23 -0
- package/dist/whoami-DesNZnaQ.js.map +1 -0
- package/package.json +24 -14
- package/dist/api-client/client.test.cjs +0 -33
- package/dist/api-client/client.test.cjs.map +0 -1
- package/dist/api-client/client.test.d.ts +0 -1
- package/dist/api-client/client.test.js +0 -33
- package/dist/api-client/client.test.js.map +0 -1
- package/dist/chunk-BLXvPPr8.js +0 -30
- package/dist/client-4jq_wVgn.d.ts.map +0 -1
- package/dist/client-B7vZ6JMk.cjs.map +0 -1
- package/dist/client-CAoHZbyK.js.map +0 -1
- package/dist/client-DkY0ifZf.d.cts.map +0 -1
- package/dist/dist-BlIWGSIM.cjs +0 -8197
- package/dist/dist-BlIWGSIM.cjs.map +0 -1
- package/dist/dist-DDpQABxe.js +0 -8054
- package/dist/dist-DDpQABxe.js.map +0 -1
- package/dist/errors.test.cjs +0 -24
- package/dist/errors.test.cjs.map +0 -1
- package/dist/errors.test.d.cts +0 -1
- package/dist/errors.test.d.ts +0 -1
- package/dist/errors.test.js +0 -24
- package/dist/errors.test.js.map +0 -1
- package/dist/formatting-BaARL2gT.js +0 -68
- package/dist/formatting-BaARL2gT.js.map +0 -1
- package/dist/formatting-C2kN0ok6.cjs +0 -86
- package/dist/formatting-C2kN0ok6.cjs.map +0 -1
- package/dist/index-h64gcVNJ.d.ts +0 -1
- package/dist/internal/formatting.d.cts.map +0 -1
- package/dist/internal/formatting.d.ts.map +0 -1
- package/dist/internal/issue-helpers.d.cts.map +0 -1
- package/dist/internal/issue-helpers.d.ts.map +0 -1
- package/dist/internal/issue-helpers.test.cjs +0 -110
- package/dist/internal/issue-helpers.test.cjs.map +0 -1
- package/dist/internal/issue-helpers.test.d.cts +0 -1
- package/dist/internal/issue-helpers.test.d.ts +0 -1
- package/dist/internal/issue-helpers.test.js +0 -110
- package/dist/internal/issue-helpers.test.js.map +0 -1
- package/dist/magic-string.es-CybcVAw7.cjs +0 -1016
- package/dist/magic-string.es-CybcVAw7.cjs.map +0 -1
- package/dist/magic-string.es-DY8GVHw9.js +0 -1015
- package/dist/magic-string.es-DY8GVHw9.js.map +0 -1
- package/dist/promptDefinitions-BTLIBcGt.cjs.map +0 -1
- package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +0 -1
- package/dist/promptDefinitions-D5FSQckL.d.ts.map +0 -1
- package/dist/resources-Bol20Xuo.js +0 -38
- package/dist/resources-Bol20Xuo.js.map +0 -1
- package/dist/resources-DNyoutxH.cjs +0 -44
- package/dist/resources-DNyoutxH.cjs.map +0 -1
- package/dist/schema-BJv7kREf.d.cts.map +0 -1
- package/dist/schema-BTfISwFu.cjs.map +0 -1
- package/dist/schema-BnxGHL_i.d.ts.map +0 -1
- package/dist/schema-BsvGMALe.cjs.map +0 -1
- package/dist/schema-C_hp0BR7.js.map +0 -1
- package/dist/server-C7cHq_pc.js.map +0 -1
- package/dist/server-DeutbO8v.cjs.map +0 -1
- package/dist/stdio-B73CCTly.cjs.map +0 -1
- package/dist/stdio-ZQLC-i5Q.js.map +0 -1
- package/dist/toolDefinitions-BOMF-zIC.d.ts +0 -394
- package/dist/toolDefinitions-BOMF-zIC.d.ts.map +0 -1
- package/dist/toolDefinitions-CUegGcWU.cjs +0 -547
- package/dist/toolDefinitions-CUegGcWU.cjs.map +0 -1
- package/dist/toolDefinitions-DFAxp3nr.js +0 -541
- package/dist/toolDefinitions-DFAxp3nr.js.map +0 -1
- package/dist/toolDefinitions-Ipvr4Acw.d.cts +0 -394
- package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +0 -1
- package/dist/toolDefinitions.cjs +0 -4
- package/dist/toolDefinitions.d.cts +0 -2
- package/dist/toolDefinitions.test.cjs +0 -15
- package/dist/toolDefinitions.test.cjs.map +0 -1
- package/dist/toolDefinitions.test.d.cts +0 -1
- package/dist/toolDefinitions.test.d.ts +0 -1
- package/dist/toolDefinitions.test.js +0 -15
- package/dist/toolDefinitions.test.js.map +0 -1
- package/dist/tools-DpiQwSTY.js +0 -596
- package/dist/tools-DpiQwSTY.js.map +0 -1
- package/dist/tools-DyOqlsCW.cjs +0 -602
- package/dist/tools-DyOqlsCW.cjs.map +0 -1
- package/dist/tools.cjs +0 -11
- package/dist/tools.d.cts +0 -335
- package/dist/tools.d.cts.map +0 -1
- package/dist/tools.d.ts +0 -335
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -11
- package/dist/tools.test.cjs +0 -1298
- package/dist/tools.test.cjs.map +0 -1
- package/dist/tools.test.d.cts +0 -1
- package/dist/tools.test.d.ts +0 -1
- package/dist/tools.test.js +0 -1298
- package/dist/tools.test.js.map +0 -1
- package/dist/types-D5TPcOfv.d.ts +0 -39
- package/dist/types-D5TPcOfv.d.ts.map +0 -1
- package/dist/types-DRF2IoP_.d.cts +0 -39
- package/dist/types-DRF2IoP_.d.cts.map +0 -1
- package/dist/types-Daq2fm0E.d.ts.map +0 -1
- package/dist/types-NIQW7KyF.d.cts.map +0 -1
- package/dist/version-BNmubeQI.cjs.map +0 -1
- package/dist/version-CRto5Sn_.js +0 -6
- package/dist/version-CRto5Sn_.js.map +0 -1
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js +0 -6349
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +0 -1
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs +0 -6355
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +0 -1
- /package/dist/{api-client-CNv_hbPO.js → api-client-ChL_0F2u.js} +0 -0
- /package/dist/{types-6zHoEWAx.js → fetch-utils-C0F4eH6S.cjs} +0 -0
- /package/dist/{api-client/client.test.d.cts → index-DVGDAddE.d.ts} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
2
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/tools/find-organizations.ts
|
|
5
|
+
var find_organizations_default = require_defineTool.defineTool({
|
|
6
|
+
name: "find_organizations",
|
|
7
|
+
description: [
|
|
8
|
+
"Find organizations that the user has access to in Sentry.",
|
|
9
|
+
"",
|
|
10
|
+
"Use this tool when you need to:",
|
|
11
|
+
"- View all organizations in Sentry",
|
|
12
|
+
"- Find an organization's slug to aid other tool requests"
|
|
13
|
+
].join("\n"),
|
|
14
|
+
inputSchema: {},
|
|
15
|
+
async handler(params, context) {
|
|
16
|
+
const apiService = require_api_utils.apiServiceFromContext(context);
|
|
17
|
+
const organizations = await apiService.listOrganizations();
|
|
18
|
+
let output = "# Organizations\n\n";
|
|
19
|
+
if (organizations.length === 0) {
|
|
20
|
+
output += "You don't appear to be a member of any organizations.\n";
|
|
21
|
+
return output;
|
|
22
|
+
}
|
|
23
|
+
output += organizations.map((org) => [
|
|
24
|
+
`## **${org.slug}**`,
|
|
25
|
+
"",
|
|
26
|
+
`**Web URL:** ${org.links?.organizationUrl || "Not available"}`,
|
|
27
|
+
`**Region URL:** ${org.links?.regionUrl || ""}`
|
|
28
|
+
].join("\n")).join("\n\n");
|
|
29
|
+
output += "\n\n# Using this information\n\n";
|
|
30
|
+
output += `- The organization's name is the identifier for the organization, and is used in many tools for \`organizationSlug\`.\n`;
|
|
31
|
+
const hasValidRegionUrls = organizations.some((org) => org.links?.regionUrl?.trim());
|
|
32
|
+
if (hasValidRegionUrls) {
|
|
33
|
+
output += `- If a tool supports passing in the \`regionUrl\`, you MUST pass in the correct value shown above for each organization.\n`;
|
|
34
|
+
output += `- For Sentry's Cloud Service (sentry.io), always use the regionUrl to ensure requests go to the correct region.\n`;
|
|
35
|
+
} else {
|
|
36
|
+
output += `- This appears to be a self-hosted Sentry installation. You can omit the \`regionUrl\` parameter when using other tools.\n`;
|
|
37
|
+
output += `- For self-hosted Sentry, the regionUrl is typically empty and not needed for API calls.\n`;
|
|
38
|
+
}
|
|
39
|
+
return output;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
Object.defineProperty(exports, 'find_organizations_default', {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return find_organizations_default;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=find-organizations-BrdMfZRO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
|
+
|
|
4
|
+
//#region src/tools/find-organizations.ts
|
|
5
|
+
var find_organizations_default = defineTool({
|
|
6
|
+
name: "find_organizations",
|
|
7
|
+
description: [
|
|
8
|
+
"Find organizations that the user has access to in Sentry.",
|
|
9
|
+
"",
|
|
10
|
+
"Use this tool when you need to:",
|
|
11
|
+
"- View all organizations in Sentry",
|
|
12
|
+
"- Find an organization's slug to aid other tool requests"
|
|
13
|
+
].join("\n"),
|
|
14
|
+
inputSchema: {},
|
|
15
|
+
async handler(params, context) {
|
|
16
|
+
const apiService = apiServiceFromContext(context);
|
|
17
|
+
const organizations = await apiService.listOrganizations();
|
|
18
|
+
let output = "# Organizations\n\n";
|
|
19
|
+
if (organizations.length === 0) {
|
|
20
|
+
output += "You don't appear to be a member of any organizations.\n";
|
|
21
|
+
return output;
|
|
22
|
+
}
|
|
23
|
+
output += organizations.map((org) => [
|
|
24
|
+
`## **${org.slug}**`,
|
|
25
|
+
"",
|
|
26
|
+
`**Web URL:** ${org.links?.organizationUrl || "Not available"}`,
|
|
27
|
+
`**Region URL:** ${org.links?.regionUrl || ""}`
|
|
28
|
+
].join("\n")).join("\n\n");
|
|
29
|
+
output += "\n\n# Using this information\n\n";
|
|
30
|
+
output += `- The organization's name is the identifier for the organization, and is used in many tools for \`organizationSlug\`.\n`;
|
|
31
|
+
const hasValidRegionUrls = organizations.some((org) => org.links?.regionUrl?.trim());
|
|
32
|
+
if (hasValidRegionUrls) {
|
|
33
|
+
output += `- If a tool supports passing in the \`regionUrl\`, you MUST pass in the correct value shown above for each organization.\n`;
|
|
34
|
+
output += `- For Sentry's Cloud Service (sentry.io), always use the regionUrl to ensure requests go to the correct region.\n`;
|
|
35
|
+
} else {
|
|
36
|
+
output += `- This appears to be a self-hosted Sentry installation. You can omit the \`regionUrl\` parameter when using other tools.\n`;
|
|
37
|
+
output += `- For self-hosted Sentry, the regionUrl is typically empty and not needed for API calls.\n`;
|
|
38
|
+
}
|
|
39
|
+
return output;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { find_organizations_default };
|
|
45
|
+
//# sourceMappingURL=find-organizations-ojXwWWzk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
|
+
|
|
8
|
+
//#region src/tools/find-projects.ts
|
|
9
|
+
var find_projects_default = require_defineTool.defineTool({
|
|
10
|
+
name: "find_projects",
|
|
11
|
+
description: [
|
|
12
|
+
"Find projects in Sentry.",
|
|
13
|
+
"",
|
|
14
|
+
"Use this tool when you need to:",
|
|
15
|
+
"- View all projects in a Sentry organization",
|
|
16
|
+
"- Find a project's slug to aid other tool requests"
|
|
17
|
+
].join("\n"),
|
|
18
|
+
inputSchema: {
|
|
19
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
20
|
+
regionUrl: require_schema.ParamRegionUrl.optional()
|
|
21
|
+
},
|
|
22
|
+
async handler(params, context) {
|
|
23
|
+
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
24
|
+
const organizationSlug = params.organizationSlug;
|
|
25
|
+
if (!organizationSlug) throw new require_errors.UserInputError("Organization slug is required. Please provide an organizationSlug parameter.");
|
|
26
|
+
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
27
|
+
const projects = await apiService.listProjects(organizationSlug);
|
|
28
|
+
let output = `# Projects in **${organizationSlug}**\n\n`;
|
|
29
|
+
if (projects.length === 0) {
|
|
30
|
+
output += "No projects found.\n";
|
|
31
|
+
return output;
|
|
32
|
+
}
|
|
33
|
+
output += projects.map((project) => `- **${project.slug}**\n`).join("");
|
|
34
|
+
return output;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
Object.defineProperty(exports, 'find_projects_default', {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return find_projects_default;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=find-projects-BZWhlYJh.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
|
+
import { setTag } from "@sentry/core";
|
|
6
|
+
|
|
7
|
+
//#region src/tools/find-projects.ts
|
|
8
|
+
var find_projects_default = defineTool({
|
|
9
|
+
name: "find_projects",
|
|
10
|
+
description: [
|
|
11
|
+
"Find projects in Sentry.",
|
|
12
|
+
"",
|
|
13
|
+
"Use this tool when you need to:",
|
|
14
|
+
"- View all projects in a Sentry organization",
|
|
15
|
+
"- Find a project's slug to aid other tool requests"
|
|
16
|
+
].join("\n"),
|
|
17
|
+
inputSchema: {
|
|
18
|
+
organizationSlug: ParamOrganizationSlug,
|
|
19
|
+
regionUrl: ParamRegionUrl.optional()
|
|
20
|
+
},
|
|
21
|
+
async handler(params, context) {
|
|
22
|
+
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
23
|
+
const organizationSlug = params.organizationSlug;
|
|
24
|
+
if (!organizationSlug) throw new UserInputError("Organization slug is required. Please provide an organizationSlug parameter.");
|
|
25
|
+
setTag("organization.slug", organizationSlug);
|
|
26
|
+
const projects = await apiService.listProjects(organizationSlug);
|
|
27
|
+
let output = `# Projects in **${organizationSlug}**\n\n`;
|
|
28
|
+
if (projects.length === 0) {
|
|
29
|
+
output += "No projects found.\n";
|
|
30
|
+
return output;
|
|
31
|
+
}
|
|
32
|
+
output += projects.map((project) => `- **${project.slug}**\n`).join("");
|
|
33
|
+
return output;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { find_projects_default };
|
|
39
|
+
//# sourceMappingURL=find-projects-fcLG4KpT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
|
+
import { ParamOrganizationSlug, ParamProjectSlugOrAll, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { setTag } from "@sentry/core";
|
|
6
|
+
|
|
7
|
+
//#region src/tools/find-releases.ts
|
|
8
|
+
var find_releases_default = defineTool({
|
|
9
|
+
name: "find_releases",
|
|
10
|
+
description: [
|
|
11
|
+
"Find releases in Sentry.",
|
|
12
|
+
"",
|
|
13
|
+
"Use this tool when you need to:",
|
|
14
|
+
"- Find recent releases in a Sentry organization",
|
|
15
|
+
"- Find the most recent version released of a specific project",
|
|
16
|
+
"- Determine when a release was deployed to an environment",
|
|
17
|
+
"",
|
|
18
|
+
"<examples>",
|
|
19
|
+
"### Find the most recent releases in the 'my-organization' organization",
|
|
20
|
+
"",
|
|
21
|
+
"```",
|
|
22
|
+
"find_releases(organizationSlug='my-organization')",
|
|
23
|
+
"```",
|
|
24
|
+
"",
|
|
25
|
+
"### Find releases matching '2ce6a27' in the 'my-organization' organization",
|
|
26
|
+
"",
|
|
27
|
+
"```",
|
|
28
|
+
"find_releases(organizationSlug='my-organization', query='2ce6a27')",
|
|
29
|
+
"```",
|
|
30
|
+
"</examples>",
|
|
31
|
+
"",
|
|
32
|
+
"<hints>",
|
|
33
|
+
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
34
|
+
"</hints>"
|
|
35
|
+
].join("\n"),
|
|
36
|
+
inputSchema: {
|
|
37
|
+
organizationSlug: ParamOrganizationSlug,
|
|
38
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
39
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
40
|
+
query: z.string().trim().describe("Search for versions which contain the provided string.").optional()
|
|
41
|
+
},
|
|
42
|
+
async handler(params, context) {
|
|
43
|
+
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
44
|
+
const organizationSlug = params.organizationSlug;
|
|
45
|
+
setTag("organization.slug", organizationSlug);
|
|
46
|
+
const releases = await apiService.listReleases({
|
|
47
|
+
organizationSlug,
|
|
48
|
+
projectSlug: params.projectSlug,
|
|
49
|
+
query: params.query
|
|
50
|
+
});
|
|
51
|
+
let output = `# Releases in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
52
|
+
if (releases.length === 0) {
|
|
53
|
+
output += "No releases found.\n";
|
|
54
|
+
return output;
|
|
55
|
+
}
|
|
56
|
+
output += releases.map((release) => {
|
|
57
|
+
const releaseInfo = [
|
|
58
|
+
`## ${release.shortVersion}`,
|
|
59
|
+
"",
|
|
60
|
+
`**Created**: ${new Date(release.dateCreated).toISOString()}`
|
|
61
|
+
];
|
|
62
|
+
if (release.dateReleased) releaseInfo.push(`**Released**: ${new Date(release.dateReleased).toISOString()}`);
|
|
63
|
+
if (release.firstEvent) releaseInfo.push(`**First Event**: ${new Date(release.firstEvent).toISOString()}`);
|
|
64
|
+
if (release.lastEvent) releaseInfo.push(`**Last Event**: ${new Date(release.lastEvent).toISOString()}`);
|
|
65
|
+
if (release.newGroups !== void 0) releaseInfo.push(`**New Issues**: ${release.newGroups}`);
|
|
66
|
+
if (release.projects && release.projects.length > 0) releaseInfo.push(`**Projects**: ${release.projects.map((p) => p.name).join(", ")}`);
|
|
67
|
+
if (release.lastCommit) {
|
|
68
|
+
releaseInfo.push("", `### Last Commit`, "");
|
|
69
|
+
releaseInfo.push(`**Commit ID**: ${release.lastCommit.id}`);
|
|
70
|
+
releaseInfo.push(`**Commit Message**: ${release.lastCommit.message}`);
|
|
71
|
+
releaseInfo.push(`**Commit Author**: ${release.lastCommit.author.name}`);
|
|
72
|
+
releaseInfo.push(`**Commit Date**: ${new Date(release.lastCommit.dateCreated).toISOString()}`);
|
|
73
|
+
}
|
|
74
|
+
if (release.lastDeploy) {
|
|
75
|
+
releaseInfo.push("", `### Last Deploy`, "");
|
|
76
|
+
releaseInfo.push(`**Deploy ID**: ${release.lastDeploy.id}`);
|
|
77
|
+
releaseInfo.push(`**Environment**: ${release.lastDeploy.environment}`);
|
|
78
|
+
if (release.lastDeploy.dateStarted) releaseInfo.push(`**Deploy Started**: ${new Date(release.lastDeploy.dateStarted).toISOString()}`);
|
|
79
|
+
if (release.lastDeploy.dateFinished) releaseInfo.push(`**Deploy Finished**: ${new Date(release.lastDeploy.dateFinished).toISOString()}`);
|
|
80
|
+
}
|
|
81
|
+
return releaseInfo.join("\n");
|
|
82
|
+
}).join("\n\n");
|
|
83
|
+
output += "\n\n";
|
|
84
|
+
output += "# Using this information\n\n";
|
|
85
|
+
output += `- You can reference the Release version in commit messages or documentation.\n`;
|
|
86
|
+
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`;
|
|
87
|
+
return output;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
export { find_releases_default };
|
|
93
|
+
//# sourceMappingURL=find-releases-BUozr0Z-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|