@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
package/README.md
CHANGED
|
@@ -21,15 +21,28 @@ Launch the transport:
|
|
|
21
21
|
|
|
22
22
|
```shell
|
|
23
23
|
npx @sentry/mcp-server@latest --access-token=sentry-user-token --host=sentry.example.com
|
|
24
|
+
# or with full URL
|
|
25
|
+
npx @sentry/mcp-server@latest --access-token=sentry-user-token --url=https://sentry.example.com
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
Note: You can also use environment variables:
|
|
27
29
|
|
|
28
30
|
```shell
|
|
29
|
-
SENTRY_ACCESS_TOKEN=
|
|
30
|
-
SENTRY_HOST=
|
|
31
|
+
SENTRY_ACCESS_TOKEN=your-token
|
|
32
|
+
SENTRY_HOST=sentry.example.com # Custom hostname
|
|
33
|
+
SENTRY_URL=https://sentry.io # OR base URL (precedence over SENTRY_HOST)
|
|
31
34
|
```
|
|
32
35
|
|
|
36
|
+
The host configuration accepts two distinct formats:
|
|
37
|
+
|
|
38
|
+
- **`SENTRY_HOST`**: Hostname only (no protocol)
|
|
39
|
+
- Examples: `sentry.io`, `sentry.example.com`, `localhost:8000`
|
|
40
|
+
- **`SENTRY_URL`**: Full URLs (hostname will be extracted)
|
|
41
|
+
- Examples: `https://sentry.io`, `https://sentry.example.com`
|
|
42
|
+
- Takes precedence over `SENTRY_HOST` if both are provided
|
|
43
|
+
|
|
44
|
+
**Note**: Only HTTPS connections are supported for security reasons.
|
|
45
|
+
|
|
33
46
|
By default we also enable Sentry reporting (traces, errors) upstream to our cloud service. You can disable that, or send it to a different Sentry instance by using the `--sentry-dsn` flag:
|
|
34
47
|
|
|
35
48
|
```shell
|
|
@@ -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 { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { parseIssueParams } from "./issue-helpers-CqqYnwYE.js";
|
|
5
5
|
import { SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isTerminalStatus } from "./seer-utils-Ckr8nYlz.js";
|
|
@@ -160,4 +160,4 @@ var analyze_issue_with_seer_default = defineTool({
|
|
|
160
160
|
|
|
161
161
|
//#endregion
|
|
162
162
|
export { analyze_issue_with_seer_default };
|
|
163
|
-
//# sourceMappingURL=analyze-issue-with-seer-
|
|
163
|
+
//# sourceMappingURL=analyze-issue-with-seer-BsNarzJN.js.map
|
package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js.map → analyze-issue-with-seer-BsNarzJN.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-issue-with-seer-Dk0ZFwN8.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAsBA,sCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;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W;AAEX,SAAO;CACR;AACF,EAAC"}
|
|
1
|
+
{"version":3,"file":"analyze-issue-with-seer-BsNarzJN.js","names":["context: ServerContext"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAsBA,sCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;EAClC,aAAa,EACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ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QAAI,WAAW,aAAa;AAC1B,gBAAW,gBAAgB,OAAO;AAClC,eAAU,6BAA6B,OAAO;IAC/C;AAED,WAAO;GACR;AAGD,OAAI,WAAW,YAAY;IACzB,MAAM,aAAa,aAAa,QAAQ,MAAM,KAC5C,CAAC,SACC,KAAK,WAAW,gBAAgB,KAAK,WAAW,cACnD;AACD,QAAI,WACF,YAAW,cAAc,WAAW,MAAM;AAE5C,iBAAa;GACd;AAGD,SAAM,IAAI,QAAQ,CAAC,YACjB,WAAW,SAAS,sBAAsB;AAI5C,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS;GACV,EAAC;EACH;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,qBAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,wBAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgD,eAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,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 require_issue_helpers = require('./issue-helpers-DyAIO0w6.cjs');
|
|
6
6
|
const require_seer_utils = require('./seer-utils-CzYEEZb2.cjs');
|
|
@@ -166,4 +166,4 @@ Object.defineProperty(exports, 'analyze_issue_with_seer_default', {
|
|
|
166
166
|
return analyze_issue_with_seer_default;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
//# sourceMappingURL=analyze-issue-with-seer-
|
|
169
|
+
//# sourceMappingURL=analyze-issue-with-seer-DbAWpyTC.cjs.map
|
package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs.map → analyze-issue-with-seer-DbAWpyTC.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-issue-with-seer-Bq3kefOr.cjs","names":["context: ServerContext","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAsBA,sCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAA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;AACX,WAAO;GACR;GAED,MAAM,SAAS,aAAa,QAAQ;AAGpC,OAAI,oCAAiB,OAAO,EAAE;AAC5B,eAAW,cAAc,wCAAqB,OAAO,CAAC;AAGtD,SAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,eAAU,2CAAwB,KAAK;AACvC,eAAU;IACX;AAED,QAAI,WAAW,aAAa;AAC1B,gBAAW,gBAAgB,OAAO;AAClC,eAAU,gDAA6B,OAAO;IAC/C;AAED,WAAO;GACR;AAGD,OAAI,WAAW,YAAY;IACzB,MAAM,aAAa,aAAa,QAAQ,MAAM,KAC5C,CAAC,SACC,KAAK,WAAW,gBAAgB,KAAK,WAAW,cACnD;AACD,QAAI,WACF,YAAW,cAAc,WAAW,MAAM;AAE5C,iBAAa;GACd;AAGD,SAAM,IAAI,QAAQ,CAAC,YACjB,WAAW,SAASC,yCAAsB;AAI5C,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS;GACV,EAAC;EACH;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,wCAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,2CAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgDD,kCAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
|
|
1
|
+
{"version":3,"file":"analyze-issue-with-seer-DbAWpyTC.cjs","names":["context: ServerContext","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams } from \"./utils/issue-utils\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n isHumanInterventionStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n} from \"./utils/seer-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n description: [\n \"**ALWAYS use this tool when a user asks how to fix a Sentry issue.** Seer AI analyzes production errors to identify root causes and provide specific code fixes.\",\n \"\",\n \"Use this tool IMMEDIATELY when:\",\n '- User asks \"how do I fix this error?\" or \"what\\'s causing this issue?\"',\n \"- User shares a Sentry issue URL and wants help resolving it\",\n \"- User needs to understand why an error is happening in production\",\n \"- User wants specific code changes to fix their issue\",\n \"- User asks about the root cause of any Sentry error\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- ALWAYS prefer this over get_issue_details when users want fixes, not just error details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;AAsBA,sCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,WAAW,gBAAgB;GAClD,kBAAkB;GAClB,SAAS;EACV,EAAC;AAGF,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT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W,cAAc,WAAW,MAAM;AAE5C,iBAAa;GACd;AAGD,SAAM,IAAI,QAAQ,CAAC,YACjB,WAAW,SAASC,yCAAsB;AAI5C,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS;GACV,EAAC;EACH;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,wCAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,2CAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgDD,kCAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import "../types-
|
|
3
|
-
import { ApiError, SentryApiService } from "../client-
|
|
1
|
+
import "../schema-ya35hkEL.cjs";
|
|
2
|
+
import "../types-Bg17IGWJ.cjs";
|
|
3
|
+
import { ApiError, SentryApiService } from "../client-CILwfx6G.cjs";
|
|
4
4
|
export { ApiError, SentryApiService };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../schema
|
|
2
|
-
import "../types-
|
|
3
|
-
import { ApiError, SentryApiService } from "../client-
|
|
1
|
+
import "../schema--5m4KI84.js";
|
|
2
|
+
import "../types-CtTBwGbw.js";
|
|
3
|
+
import { ApiError, SentryApiService } from "../client-BCN17Wbp.js";
|
|
4
4
|
export { ApiError, SentryApiService };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-
|
|
3
|
-
import { ApiError, SentryApiService } from "../client-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-ya35hkEL.cjs";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-Bg17IGWJ.cjs";
|
|
3
|
+
import { ApiError, SentryApiService } from "../client-CILwfx6G.cjs";
|
|
4
4
|
import "../index-BPSCxsMC.cjs";
|
|
5
5
|
export { ApiError, ApiErrorSchema, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, User, UserRegionsSchema, UserSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-
|
|
3
|
-
import { ApiError, SentryApiService } from "../client-
|
|
4
|
-
import "../index-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema--5m4KI84.js";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-CtTBwGbw.js";
|
|
3
|
+
import { ApiError, SentryApiService } from "../client-BCN17Wbp.js";
|
|
4
|
+
import "../index-DVGDAddE.js";
|
|
5
5
|
export { ApiError, ApiErrorSchema, AssignedTo, AssignedToSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, Event, EventAttachment, EventAttachmentList, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, MessageEntrySchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, User, UserRegionsSchema, UserSchema };
|
package/dist/api-client/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-WDk5Yqww.js";
|
|
2
|
-
import { ApiError, SentryApiService } from "../client-
|
|
2
|
+
import { ApiError, SentryApiService } from "../client-DOYWNvVM.js";
|
|
3
3
|
import "../types-CCHsZshF.js";
|
|
4
4
|
import "../api-client-ChL_0F2u.js";
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema-ya35hkEL.cjs";
|
|
2
2
|
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema
|
|
1
|
+
import { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema } from "../schema--5m4KI84.js";
|
|
2
2
|
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-
|
|
1
|
+
import "../schema-ya35hkEL.cjs";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-Bg17IGWJ.cjs";
|
|
3
3
|
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../schema
|
|
2
|
-
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-
|
|
1
|
+
import "../schema--5m4KI84.js";
|
|
2
|
+
import { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User } from "../types-CtTBwGbw.js";
|
|
3
3
|
export { AssignedTo, AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList, User };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
|
-
import { SentryApiService } from "./client-
|
|
2
|
+
import { SentryApiService } from "./client-DOYWNvVM.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tools/utils/api-utils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a Sentry API service from server context with optional region override
|
|
7
7
|
* @param context - Server context containing host and access token
|
|
8
8
|
* @param opts - Options object containing optional regionUrl override
|
|
9
|
-
* @returns Configured SentryApiService instance
|
|
9
|
+
* @returns Configured SentryApiService instance (always uses HTTPS)
|
|
10
10
|
* @throws {UserInputError} When regionUrl is provided but invalid
|
|
11
11
|
*/
|
|
12
12
|
function apiServiceFromContext(context, opts = {}) {
|
|
13
|
-
let host = context.
|
|
13
|
+
let host = context.sentryHost;
|
|
14
14
|
if (opts.regionUrl?.trim()) try {
|
|
15
15
|
const parsedUrl = new URL(opts.regionUrl);
|
|
16
16
|
if (!["http:", "https:"].includes(parsedUrl.protocol)) throw new UserInputError(`Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`);
|
|
@@ -28,4 +28,4 @@ function apiServiceFromContext(context, opts = {}) {
|
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
export { apiServiceFromContext };
|
|
31
|
-
//# sourceMappingURL=api-utils-
|
|
31
|
+
//# sourceMappingURL=api-utils-C6QJAzFL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-utils-C6QJAzFL.js","names":["context: ServerContext","opts: { regionUrl?: string }"],"sources":["../src/tools/utils/api-utils.ts"],"sourcesContent":["import { SentryApiService } from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance (always uses HTTPS)\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.sentryHost;\n\n if (opts.regionUrl?.trim()) {\n try {\n const parsedUrl = new URL(opts.regionUrl);\n\n // Validate that the URL has a proper protocol\n if (![\"http:\", \"https:\"].includes(parsedUrl.protocol)) {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n host = parsedUrl.host;\n } catch (error) {\n if (error instanceof UserInputError) {\n throw error;\n }\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must be a valid URL.`,\n );\n }\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,CACxB,KAAI;EACF,MAAM,YAAY,IAAI,IAAI,KAAK;AAG/B,OAAK,CAAC,SAAS,QAAS,EAAC,SAAS,UAAU,SAAS,CACnD,OAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;AAKlD,MAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;AAIlD,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,MAAI,iBAAiB,eACnB,OAAM;AAER,QAAM,IAAI,gBACP,8BAA8B,KAAK,UAAU;CAEjD;AAGH,QAAO,IAAI,iBAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
2
|
-
const require_client = require('./client-
|
|
2
|
+
const require_client = require('./client-Dkw5iYu3.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/tools/utils/api-utils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a Sentry API service from server context with optional region override
|
|
7
7
|
* @param context - Server context containing host and access token
|
|
8
8
|
* @param opts - Options object containing optional regionUrl override
|
|
9
|
-
* @returns Configured SentryApiService instance
|
|
9
|
+
* @returns Configured SentryApiService instance (always uses HTTPS)
|
|
10
10
|
* @throws {UserInputError} When regionUrl is provided but invalid
|
|
11
11
|
*/
|
|
12
12
|
function apiServiceFromContext(context, opts = {}) {
|
|
13
|
-
let host = context.
|
|
13
|
+
let host = context.sentryHost;
|
|
14
14
|
if (opts.regionUrl?.trim()) try {
|
|
15
15
|
const parsedUrl = new URL(opts.regionUrl);
|
|
16
16
|
if (!["http:", "https:"].includes(parsedUrl.protocol)) throw new require_errors.UserInputError(`Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`);
|
|
@@ -33,4 +33,4 @@ Object.defineProperty(exports, 'apiServiceFromContext', {
|
|
|
33
33
|
return apiServiceFromContext;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
//# sourceMappingURL=api-utils-
|
|
36
|
+
//# sourceMappingURL=api-utils-d36iteNO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-utils-d36iteNO.cjs","names":["context: ServerContext","opts: { regionUrl?: string }","UserInputError","SentryApiService"],"sources":["../src/tools/utils/api-utils.ts"],"sourcesContent":["import { SentryApiService } from \"../../api-client/index\";\nimport { UserInputError } from \"../../errors\";\nimport type { ServerContext } from \"../../types\";\n\n/**\n * Create a Sentry API service from server context with optional region override\n * @param context - Server context containing host and access token\n * @param opts - Options object containing optional regionUrl override\n * @returns Configured SentryApiService instance (always uses HTTPS)\n * @throws {UserInputError} When regionUrl is provided but invalid\n */\nexport function apiServiceFromContext(\n context: ServerContext,\n opts: { regionUrl?: string } = {},\n) {\n let host = context.sentryHost;\n\n if (opts.regionUrl?.trim()) {\n try {\n const parsedUrl = new URL(opts.regionUrl);\n\n // Validate that the URL has a proper protocol\n if (![\"http:\", \"https:\"].includes(parsedUrl.protocol)) {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must include protocol (http:// or https://).`,\n );\n }\n\n // Validate that the host is not just the protocol name\n if (parsedUrl.host === \"https\" || parsedUrl.host === \"http\") {\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. The host cannot be just a protocol name.`,\n );\n }\n\n host = parsedUrl.host;\n } catch (error) {\n if (error instanceof UserInputError) {\n throw error;\n }\n throw new UserInputError(\n `Invalid regionUrl provided: ${opts.regionUrl}. Must be a valid URL.`,\n );\n }\n }\n\n return new SentryApiService({\n host,\n accessToken: context.accessToken,\n });\n}\n"],"mappings":";;;;;;;;;;;AAWA,SAAgB,sBACdA,SACAC,OAA+B,CAAE,GACjC;CACA,IAAI,OAAO,QAAQ;AAEnB,KAAI,KAAK,WAAW,MAAM,CACxB,KAAI;EACF,MAAM,YAAY,IAAI,IAAI,KAAK;AAG/B,OAAK,CAAC,SAAS,QAAS,EAAC,SAAS,UAAU,SAAS,CACnD,OAAM,IAAIC,+BACP,8BAA8B,KAAK,UAAU;AAKlD,MAAI,UAAU,SAAS,WAAW,UAAU,SAAS,OACnD,OAAM,IAAIA,+BACP,8BAA8B,KAAK,UAAU;AAIlD,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,MAAI,iBAAiBA,8BACnB,OAAM;AAER,QAAM,IAAIA,+BACP,8BAA8B,KAAK,UAAU;CAEjD;AAGH,QAAO,IAAIC,gCAAiB;EAC1B;EACA,aAAa,QAAQ;CACtB;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-
|
|
1
|
+
import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-CtTBwGbw.js";
|
|
2
2
|
|
|
3
3
|
//#region src/api-client/client.d.ts
|
|
4
4
|
|
|
@@ -39,6 +39,7 @@ type RequestOptions = {
|
|
|
39
39
|
* - Enhanced error handling with LLM-friendly messages
|
|
40
40
|
* - URL generation for Sentry resources (issues, traces)
|
|
41
41
|
* - Bearer token authentication
|
|
42
|
+
* - Always uses HTTPS for secure connections
|
|
42
43
|
*
|
|
43
44
|
* @example Basic Usage
|
|
44
45
|
* ```typescript
|
|
@@ -56,7 +57,7 @@ type RequestOptions = {
|
|
|
56
57
|
*
|
|
57
58
|
* @example Multi-Region Support
|
|
58
59
|
* ```typescript
|
|
59
|
-
* // Self-hosted instance
|
|
60
|
+
* // Self-hosted instance with hostname
|
|
60
61
|
* const selfHosted = new SentryApiService({
|
|
61
62
|
* accessToken: "token",
|
|
62
63
|
* host: "sentry.company.com"
|
|
@@ -76,9 +77,11 @@ declare class SentryApiService {
|
|
|
76
77
|
/**
|
|
77
78
|
* Creates a new Sentry API service instance.
|
|
78
79
|
*
|
|
80
|
+
* Always uses HTTPS for secure connections.
|
|
81
|
+
*
|
|
79
82
|
* @param config Configuration object
|
|
80
83
|
* @param config.accessToken OAuth access token for authentication (optional for some endpoints)
|
|
81
|
-
* @param config.host Sentry
|
|
84
|
+
* @param config.host Sentry hostname (e.g. "sentry.io", "sentry.example.com")
|
|
82
85
|
*/
|
|
83
86
|
constructor({
|
|
84
87
|
accessToken,
|
|
@@ -91,8 +94,9 @@ declare class SentryApiService {
|
|
|
91
94
|
* Updates the host for API requests.
|
|
92
95
|
*
|
|
93
96
|
* Used for multi-region support or switching between Sentry instances.
|
|
97
|
+
* Always uses HTTPS protocol.
|
|
94
98
|
*
|
|
95
|
-
* @param host New
|
|
99
|
+
* @param host New hostname to use for API requests
|
|
96
100
|
*/
|
|
97
101
|
setHost(host: string): void;
|
|
98
102
|
/**
|
|
@@ -116,10 +120,11 @@ declare class SentryApiService {
|
|
|
116
120
|
* Generates a Sentry issue URL for browser navigation.
|
|
117
121
|
*
|
|
118
122
|
* Handles both SaaS (subdomain-based) and self-hosted URL formats.
|
|
123
|
+
* Always uses HTTPS protocol.
|
|
119
124
|
*
|
|
120
125
|
* @param organizationSlug Organization identifier
|
|
121
126
|
* @param issueId Issue identifier (short ID or numeric ID)
|
|
122
|
-
* @returns Full
|
|
127
|
+
* @returns Full URL to the issue in Sentry UI
|
|
123
128
|
*
|
|
124
129
|
* @example
|
|
125
130
|
* ```typescript
|
|
@@ -134,6 +139,8 @@ declare class SentryApiService {
|
|
|
134
139
|
/**
|
|
135
140
|
* Generates a Sentry trace URL for performance investigation.
|
|
136
141
|
*
|
|
142
|
+
* Always uses HTTPS protocol.
|
|
143
|
+
*
|
|
137
144
|
* @param organizationSlug Organization identifier
|
|
138
145
|
* @param traceId Trace identifier (hex string)
|
|
139
146
|
* @returns Full HTTPS URL to the trace in Sentry UI
|
|
@@ -451,16 +458,7 @@ declare class SentryApiService {
|
|
|
451
458
|
organizationSlug: string;
|
|
452
459
|
projectSlug: string;
|
|
453
460
|
eventId: string;
|
|
454
|
-
}, opts?: RequestOptions): Promise<
|
|
455
|
-
name: string;
|
|
456
|
-
type: string;
|
|
457
|
-
id: string;
|
|
458
|
-
size: number;
|
|
459
|
-
mimetype: string;
|
|
460
|
-
dateCreated: string;
|
|
461
|
-
sha1: string;
|
|
462
|
-
headers?: Record<string, string> | undefined;
|
|
463
|
-
}[]>;
|
|
461
|
+
}, opts?: RequestOptions): Promise<EventAttachmentList>;
|
|
464
462
|
getEventAttachment({
|
|
465
463
|
organizationSlug,
|
|
466
464
|
projectSlug,
|
|
@@ -472,7 +470,7 @@ declare class SentryApiService {
|
|
|
472
470
|
eventId: string;
|
|
473
471
|
attachmentId: string;
|
|
474
472
|
}, opts?: RequestOptions): Promise<{
|
|
475
|
-
attachment:
|
|
473
|
+
attachment: EventAttachment;
|
|
476
474
|
downloadUrl: string;
|
|
477
475
|
filename: string;
|
|
478
476
|
blob: Blob;
|
|
@@ -523,14 +521,14 @@ declare class SentryApiService {
|
|
|
523
521
|
query?: string;
|
|
524
522
|
sortBy?: "timestamp" | "duration";
|
|
525
523
|
}, opts?: RequestOptions): Promise<{
|
|
526
|
-
transaction: string;
|
|
527
|
-
timestamp: string;
|
|
528
|
-
id: string;
|
|
529
524
|
project: string;
|
|
525
|
+
id: string;
|
|
530
526
|
trace: string;
|
|
531
527
|
"span.op": string;
|
|
532
528
|
"span.description": string;
|
|
533
529
|
"span.duration": number;
|
|
530
|
+
transaction: string;
|
|
531
|
+
timestamp: string;
|
|
534
532
|
}[]>;
|
|
535
533
|
startAutofix({
|
|
536
534
|
organizationSlug,
|
|
@@ -553,4 +551,4 @@ declare class SentryApiService {
|
|
|
553
551
|
}
|
|
554
552
|
//#endregion
|
|
555
553
|
export { ApiError, SentryApiService };
|
|
556
|
-
//# sourceMappingURL=client-
|
|
554
|
+
//# sourceMappingURL=client-BCN17Wbp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-BCN17Wbp.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiVnB,cAxoBO,gBAAA,CAwoBP;EAAW,QACX,WAAA;EAAK,UACL,IAAA,EAAA,MAAA;EAAM,UAOD,SAAA,EAAA,MAAA;EAAc;;;;;;;;;EAiDZ,WACP,CAAA;IAAA,WAAA;IAAA;EAOY,CAPZ,EAAA;IAMK,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACE,IAAA,CAAA,EAAA,MAAA;EAAK,CAAA;EAAN;;;;;;;;EAmCC,OAMF,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAc;;;;;;;;;;;;;;;;EAmFP,QAAb,OAAA;EAAO;;;;;;;;;;;;;;;;;;;EA2JU,WAOX,CAAA,gBAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA;EAAc;;;;;;;AA2Bb;;;;;;;;;;;;;;;;8BAzzBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN;gBACW;;;UAGN;;;;;;;;;;;;YAqDC,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-
|
|
1
|
+
import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, EventAttachment, EventAttachmentList, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList, User } from "./types-Bg17IGWJ.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api-client/client.d.ts
|
|
4
4
|
|
|
@@ -39,6 +39,7 @@ type RequestOptions = {
|
|
|
39
39
|
* - Enhanced error handling with LLM-friendly messages
|
|
40
40
|
* - URL generation for Sentry resources (issues, traces)
|
|
41
41
|
* - Bearer token authentication
|
|
42
|
+
* - Always uses HTTPS for secure connections
|
|
42
43
|
*
|
|
43
44
|
* @example Basic Usage
|
|
44
45
|
* ```typescript
|
|
@@ -56,7 +57,7 @@ type RequestOptions = {
|
|
|
56
57
|
*
|
|
57
58
|
* @example Multi-Region Support
|
|
58
59
|
* ```typescript
|
|
59
|
-
* // Self-hosted instance
|
|
60
|
+
* // Self-hosted instance with hostname
|
|
60
61
|
* const selfHosted = new SentryApiService({
|
|
61
62
|
* accessToken: "token",
|
|
62
63
|
* host: "sentry.company.com"
|
|
@@ -76,9 +77,11 @@ declare class SentryApiService {
|
|
|
76
77
|
/**
|
|
77
78
|
* Creates a new Sentry API service instance.
|
|
78
79
|
*
|
|
80
|
+
* Always uses HTTPS for secure connections.
|
|
81
|
+
*
|
|
79
82
|
* @param config Configuration object
|
|
80
83
|
* @param config.accessToken OAuth access token for authentication (optional for some endpoints)
|
|
81
|
-
* @param config.host Sentry
|
|
84
|
+
* @param config.host Sentry hostname (e.g. "sentry.io", "sentry.example.com")
|
|
82
85
|
*/
|
|
83
86
|
constructor({
|
|
84
87
|
accessToken,
|
|
@@ -91,8 +94,9 @@ declare class SentryApiService {
|
|
|
91
94
|
* Updates the host for API requests.
|
|
92
95
|
*
|
|
93
96
|
* Used for multi-region support or switching between Sentry instances.
|
|
97
|
+
* Always uses HTTPS protocol.
|
|
94
98
|
*
|
|
95
|
-
* @param host New
|
|
99
|
+
* @param host New hostname to use for API requests
|
|
96
100
|
*/
|
|
97
101
|
setHost(host: string): void;
|
|
98
102
|
/**
|
|
@@ -116,10 +120,11 @@ declare class SentryApiService {
|
|
|
116
120
|
* Generates a Sentry issue URL for browser navigation.
|
|
117
121
|
*
|
|
118
122
|
* Handles both SaaS (subdomain-based) and self-hosted URL formats.
|
|
123
|
+
* Always uses HTTPS protocol.
|
|
119
124
|
*
|
|
120
125
|
* @param organizationSlug Organization identifier
|
|
121
126
|
* @param issueId Issue identifier (short ID or numeric ID)
|
|
122
|
-
* @returns Full
|
|
127
|
+
* @returns Full URL to the issue in Sentry UI
|
|
123
128
|
*
|
|
124
129
|
* @example
|
|
125
130
|
* ```typescript
|
|
@@ -134,6 +139,8 @@ declare class SentryApiService {
|
|
|
134
139
|
/**
|
|
135
140
|
* Generates a Sentry trace URL for performance investigation.
|
|
136
141
|
*
|
|
142
|
+
* Always uses HTTPS protocol.
|
|
143
|
+
*
|
|
137
144
|
* @param organizationSlug Organization identifier
|
|
138
145
|
* @param traceId Trace identifier (hex string)
|
|
139
146
|
* @returns Full HTTPS URL to the trace in Sentry UI
|
|
@@ -451,16 +458,7 @@ declare class SentryApiService {
|
|
|
451
458
|
organizationSlug: string;
|
|
452
459
|
projectSlug: string;
|
|
453
460
|
eventId: string;
|
|
454
|
-
}, opts?: RequestOptions): Promise<
|
|
455
|
-
type: string;
|
|
456
|
-
name: string;
|
|
457
|
-
id: string;
|
|
458
|
-
dateCreated: string;
|
|
459
|
-
size: number;
|
|
460
|
-
mimetype: string;
|
|
461
|
-
sha1: string;
|
|
462
|
-
headers?: Record<string, string> | undefined;
|
|
463
|
-
}[]>;
|
|
461
|
+
}, opts?: RequestOptions): Promise<EventAttachmentList>;
|
|
464
462
|
getEventAttachment({
|
|
465
463
|
organizationSlug,
|
|
466
464
|
projectSlug,
|
|
@@ -472,7 +470,7 @@ declare class SentryApiService {
|
|
|
472
470
|
eventId: string;
|
|
473
471
|
attachmentId: string;
|
|
474
472
|
}, opts?: RequestOptions): Promise<{
|
|
475
|
-
attachment:
|
|
473
|
+
attachment: EventAttachment;
|
|
476
474
|
downloadUrl: string;
|
|
477
475
|
filename: string;
|
|
478
476
|
blob: Blob;
|
|
@@ -503,10 +501,10 @@ declare class SentryApiService {
|
|
|
503
501
|
query?: string;
|
|
504
502
|
sortBy?: "last_seen" | "count";
|
|
505
503
|
}, opts?: RequestOptions): Promise<{
|
|
506
|
-
title: string;
|
|
507
|
-
project: string;
|
|
508
504
|
issue: string;
|
|
509
505
|
"issue.id": string | number;
|
|
506
|
+
project: string;
|
|
507
|
+
title: string;
|
|
510
508
|
"count()": number;
|
|
511
509
|
"last_seen()": string;
|
|
512
510
|
}[]>;
|
|
@@ -523,14 +521,14 @@ declare class SentryApiService {
|
|
|
523
521
|
query?: string;
|
|
524
522
|
sortBy?: "timestamp" | "duration";
|
|
525
523
|
}, opts?: RequestOptions): Promise<{
|
|
526
|
-
transaction: string;
|
|
527
|
-
id: string;
|
|
528
524
|
project: string;
|
|
529
|
-
|
|
525
|
+
id: string;
|
|
530
526
|
trace: string;
|
|
531
527
|
"span.op": string;
|
|
532
528
|
"span.description": string;
|
|
533
529
|
"span.duration": number;
|
|
530
|
+
transaction: string;
|
|
531
|
+
timestamp: string;
|
|
534
532
|
}[]>;
|
|
535
533
|
startAutofix({
|
|
536
534
|
organizationSlug,
|
|
@@ -553,4 +551,4 @@ declare class SentryApiService {
|
|
|
553
551
|
}
|
|
554
552
|
//#endregion
|
|
555
553
|
export { ApiError, SentryApiService };
|
|
556
|
-
//# sourceMappingURL=client-
|
|
554
|
+
//# sourceMappingURL=client-CILwfx6G.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-CILwfx6G.d.cts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA0EA;AAkBC;AAkDD;;;;;;;;;;;;;AA0RM,cA9VO,QAAA,SAAiB,KAAK,CA8V7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAhVN,cAAA,GAiVA;EAAO,IAsBD,CAAA,EAA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