@sentry/mcp-server 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/analyze-issue-with-seer-BsNarzJN.js +163 -0
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +1 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs +169 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +1 -0
- package/dist/api-client/client.cjs +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/index.cjs +9 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +5 -5
- package/dist/api-client/index.js +5 -5
- package/dist/api-client/schema.cjs +8 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/api-utils-C6QJAzFL.js +31 -0
- package/dist/api-utils-C6QJAzFL.js.map +1 -0
- package/dist/api-utils-d36iteNO.cjs +36 -0
- package/dist/api-utils-d36iteNO.cjs.map +1 -0
- package/dist/{client-4jq_wVgn.d.ts → client-BCN17Wbp.d.ts} +43 -11
- package/dist/client-BCN17Wbp.d.ts.map +1 -0
- package/dist/{client-DkY0ifZf.d.cts → client-CILwfx6G.d.cts} +43 -11
- package/dist/client-CILwfx6G.d.cts.map +1 -0
- package/dist/{client-CAoHZbyK.js → client-DOYWNvVM.js} +75 -18
- package/dist/client-DOYWNvVM.js.map +1 -0
- package/dist/{client-B7vZ6JMk.cjs → client-Dkw5iYu3.cjs} +75 -18
- package/dist/client-Dkw5iYu3.cjs.map +1 -0
- package/dist/constants-ClkMK29-.cjs +182 -0
- package/dist/constants-ClkMK29-.cjs.map +1 -0
- package/dist/constants-S7AU45oQ.js +164 -0
- package/dist/constants-S7AU45oQ.js.map +1 -0
- package/dist/constants.cjs +5 -0
- package/dist/constants.d.cts +23 -0
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +3 -0
- package/dist/create-dsn-CDcL2DLD.js +59 -0
- package/dist/create-dsn-CDcL2DLD.js.map +1 -0
- package/dist/create-dsn-fESUtX3R.cjs +65 -0
- package/dist/create-dsn-fESUtX3R.cjs.map +1 -0
- package/dist/create-project-Bg5uDkc4.cjs +82 -0
- package/dist/create-project-Bg5uDkc4.cjs.map +1 -0
- package/dist/create-project-DY5mFznV.js +76 -0
- package/dist/create-project-DY5mFznV.js.map +1 -0
- package/dist/create-team-5purh64V.cjs +53 -0
- package/dist/create-team-5purh64V.cjs.map +1 -0
- package/dist/create-team-C2R7EUC3.js +47 -0
- package/dist/create-team-C2R7EUC3.js.map +1 -0
- package/dist/defineTool-77H4nSna.js +8 -0
- package/dist/defineTool-77H4nSna.js.map +1 -0
- package/dist/defineTool-lWNTzWl_.cjs +14 -0
- package/dist/defineTool-lWNTzWl_.cjs.map +1 -0
- package/dist/{errors-BJSrT6Ou.js → errors-CIoxzIug.js} +1 -1
- package/dist/{errors-BJSrT6Ou.js.map → errors-CIoxzIug.js.map} +1 -1
- package/dist/{errors-B9fwS-aP.cjs → errors-YmiXLOyx.cjs} +1 -1
- package/dist/{errors-B9fwS-aP.cjs.map → errors-YmiXLOyx.cjs.map} +1 -1
- package/dist/errors.cjs +1 -1
- package/dist/errors.js +1 -1
- package/dist/fetch-utils-BMKjO-cc.js +29 -0
- package/dist/fetch-utils-BMKjO-cc.js.map +1 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts +14 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
- package/dist/fetch-utils-DlPjrSk2.js +0 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts +14 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +1 -0
- package/dist/fetch-utils-oab6uNp3.cjs +35 -0
- package/dist/fetch-utils-oab6uNp3.cjs.map +1 -0
- package/dist/find-dsns-CvfcLB9Z.js +52 -0
- package/dist/find-dsns-CvfcLB9Z.js.map +1 -0
- package/dist/find-dsns-ZZ-thiNk.cjs +58 -0
- package/dist/find-dsns-ZZ-thiNk.cjs.map +1 -0
- package/dist/find-errors-CuRm4PzL.js +91 -0
- package/dist/find-errors-CuRm4PzL.js.map +1 -0
- package/dist/find-errors-Drzv7hzM.cjs +97 -0
- package/dist/find-errors-Drzv7hzM.cjs.map +1 -0
- package/dist/find-issues-C3uk59rn.cjs +98 -0
- package/dist/find-issues-C3uk59rn.cjs.map +1 -0
- package/dist/find-issues-CAtNGBly.js +92 -0
- package/dist/find-issues-CAtNGBly.js.map +1 -0
- package/dist/find-organizations-BrdMfZRO.cjs +50 -0
- package/dist/find-organizations-BrdMfZRO.cjs.map +1 -0
- package/dist/find-organizations-ojXwWWzk.js +45 -0
- package/dist/find-organizations-ojXwWWzk.js.map +1 -0
- package/dist/find-projects-BZWhlYJh.cjs +45 -0
- package/dist/find-projects-BZWhlYJh.cjs.map +1 -0
- package/dist/find-projects-fcLG4KpT.js +39 -0
- package/dist/find-projects-fcLG4KpT.js.map +1 -0
- package/dist/find-releases-BUozr0Z-.js +93 -0
- package/dist/find-releases-BUozr0Z-.js.map +1 -0
- package/dist/find-releases-CZCVEOHZ.cjs +99 -0
- package/dist/find-releases-CZCVEOHZ.cjs.map +1 -0
- package/dist/find-tags-Byk4d3oZ.cjs +45 -0
- package/dist/find-tags-Byk4d3oZ.cjs.map +1 -0
- package/dist/find-tags-d-wF1Se8.js +39 -0
- package/dist/find-tags-d-wF1Se8.js.map +1 -0
- package/dist/find-teams-BZ118EIK.js +39 -0
- package/dist/find-teams-BZ118EIK.js.map +1 -0
- package/dist/find-teams-CnU5x9rQ.cjs +45 -0
- package/dist/find-teams-CnU5x9rQ.cjs.map +1 -0
- package/dist/find-transactions-DIJ80wkd.cjs +89 -0
- package/dist/find-transactions-DIJ80wkd.cjs.map +1 -0
- package/dist/find-transactions-DZCj81jP.js +83 -0
- package/dist/find-transactions-DZCj81jP.js.map +1 -0
- package/dist/formatting-BlMiQa9i.cjs +388 -0
- package/dist/formatting-BlMiQa9i.cjs.map +1 -0
- package/dist/formatting-CHh9Q_OW.d.cts +47 -0
- package/dist/formatting-CHh9Q_OW.d.cts.map +1 -0
- package/dist/formatting-kdIeURER.d.ts +47 -0
- package/dist/formatting-kdIeURER.d.ts.map +1 -0
- package/dist/formatting-pUm38KOj.js +370 -0
- package/dist/formatting-pUm38KOj.js.map +1 -0
- package/dist/formatting-utils-C3sej5ER.js +14 -0
- package/dist/formatting-utils-C3sej5ER.js.map +1 -0
- package/dist/formatting-utils-DDz14xeB.cjs +20 -0
- package/dist/formatting-utils-DDz14xeB.cjs.map +1 -0
- package/dist/get-doc-DaTCenOE.cjs +86 -0
- package/dist/get-doc-DaTCenOE.cjs.map +1 -0
- package/dist/get-doc-YTiQznr1.js +80 -0
- package/dist/get-doc-YTiQznr1.js.map +1 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs +144 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs.map +1 -0
- package/dist/get-event-attachment-CuU-_5T6.js +138 -0
- package/dist/get-event-attachment-CuU-_5T6.js.map +1 -0
- package/dist/get-issue-details-CxChU4U9.js +104 -0
- package/dist/get-issue-details-CxChU4U9.js.map +1 -0
- package/dist/get-issue-details-DFwZRbmU.cjs +110 -0
- package/dist/get-issue-details-DFwZRbmU.cjs.map +1 -0
- package/dist/index.cjs +73 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +75 -25
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +3 -0
- package/dist/internal/fetch-utils.d.cts +2 -0
- package/dist/internal/fetch-utils.d.ts +2 -0
- package/dist/internal/fetch-utils.js +3 -0
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +5 -25
- package/dist/internal/formatting.d.ts +6 -26
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +2 -52
- package/dist/internal/issue-helpers.d.ts +2 -52
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.cjs +214 -0
- package/dist/internal/test-fixtures.cjs.map +1 -0
- package/dist/internal/test-fixtures.d.cts +2138 -0
- package/dist/internal/test-fixtures.d.cts.map +1 -0
- package/dist/internal/test-fixtures.d.ts +2138 -0
- package/dist/internal/test-fixtures.d.ts.map +1 -0
- package/dist/internal/test-fixtures.js +205 -0
- package/dist/internal/test-fixtures.js.map +1 -0
- package/dist/issue-helpers-BJffpNoO.d.ts +52 -0
- package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -0
- package/dist/{issue-helpers-BMVLc3mR.js → issue-helpers-CqqYnwYE.js} +1 -1
- package/dist/{issue-helpers-BMVLc3mR.js.map → issue-helpers-CqqYnwYE.js.map} +1 -1
- package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
- package/dist/{issue-helpers-D712fGT2.cjs → issue-helpers-DyAIO0w6.cjs} +1 -1
- package/dist/{issue-helpers-D712fGT2.cjs.map → issue-helpers-DyAIO0w6.cjs.map} +1 -1
- package/dist/issue-utils-BVAB6I-Z.js +0 -0
- package/dist/issue-utils-pdbo-5LW.cjs +0 -0
- package/dist/{logging-CXLD0FFB.js → logging-LnQMFw-_.js} +1 -1
- package/dist/{logging-CXLD0FFB.js.map → logging-LnQMFw-_.js.map} +1 -1
- package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
- package/dist/{logging-ByvSjT6V.cjs.map → logging-oIouXrcb.cjs.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{promptDefinitions-BTLIBcGt.cjs → promptDefinitions-C29BWGYg.cjs} +4 -4
- package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
- package/dist/{promptDefinitions-D8yow1m0.js → promptDefinitions-CSKE8T0a.js} +4 -4
- package/dist/{promptDefinitions-D8yow1m0.js.map → promptDefinitions-CSKE8T0a.js.map} +1 -1
- package/dist/{promptDefinitions-CF2VWdQ6.d.cts → promptDefinitions-CVHtYaj8.d.cts} +3 -3
- package/dist/promptDefinitions-CVHtYaj8.d.cts.map +1 -0
- package/dist/{promptDefinitions-D5FSQckL.d.ts → promptDefinitions-D3GTBGLr.d.ts} +3 -3
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +3 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +3 -2
- package/dist/{prompts-Dt3A8Qfl.js → prompts-C8Y9w5c4.js} +7 -7
- package/dist/{prompts-Dt3A8Qfl.js.map → prompts-C8Y9w5c4.js.map} +1 -1
- package/dist/{prompts-CDbQrutV.cjs → prompts-Df3i1XSB.cjs} +7 -7
- package/dist/{prompts-CDbQrutV.cjs.map → prompts-Df3i1XSB.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.d.cts +4 -5
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +4 -5
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/resources-BHF8a1ZB.js +92 -0
- package/dist/resources-BHF8a1ZB.js.map +1 -0
- package/dist/resources-BM_YQGcb.cjs +104 -0
- package/dist/resources-BM_YQGcb.cjs.map +1 -0
- package/dist/resources.cjs +5 -2
- package/dist/resources.d.cts +26 -12
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +26 -12
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +4 -2
- package/dist/{schema-BnxGHL_i.d.ts → schema--5m4KI84.d.ts} +3678 -619
- package/dist/schema--5m4KI84.d.ts.map +1 -0
- package/dist/{schema-BsvGMALe.cjs → schema-B_cMyyJJ.cjs} +94 -8
- package/dist/schema-B_cMyyJJ.cjs.map +1 -0
- package/dist/{schema-BTfISwFu.cjs → schema-BpJVmev8.cjs} +23 -1
- package/dist/{schema-Dv6aLZgz.js.map → schema-BpJVmev8.cjs.map} +1 -1
- package/dist/{schema-Dv6aLZgz.js → schema-DtsnsxMl.js} +6 -2
- package/dist/schema-DtsnsxMl.js.map +1 -0
- package/dist/{schema-C_hp0BR7.js → schema-WDk5Yqww.js} +53 -9
- package/dist/schema-WDk5Yqww.js.map +1 -0
- package/dist/{schema-BJv7kREf.d.cts → schema-ya35hkEL.d.cts} +3614 -555
- package/dist/schema-ya35hkEL.d.cts.map +1 -0
- package/dist/schema.cjs +5 -1
- package/dist/schema.d.cts +4 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +4 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +3 -2
- package/dist/search-docs-BLbB_GV2.js +102 -0
- package/dist/search-docs-BLbB_GV2.js.map +1 -0
- package/dist/search-docs-D5Foht_0.cjs +108 -0
- package/dist/search-docs-D5Foht_0.cjs.map +1 -0
- package/dist/seer-utils-Ckr8nYlz.js +87 -0
- package/dist/seer-utils-Ckr8nYlz.js.map +1 -0
- package/dist/seer-utils-CzYEEZb2.cjs +129 -0
- package/dist/seer-utils-CzYEEZb2.cjs.map +1 -0
- package/dist/{server-DeutbO8v.cjs → server-BpEIZVaZ.cjs} +104 -57
- package/dist/server-BpEIZVaZ.cjs.map +1 -0
- package/dist/{server-C7cHq_pc.js → server-DOy-M9Ko.js} +104 -57
- package/dist/server-DOy-M9Ko.js.map +1 -0
- package/dist/server.cjs +40 -13
- package/dist/server.d.cts +2 -3
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +2 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -15
- package/dist/{stdio-ZQLC-i5Q.js → stdio-B2NDq7Ax.js} +17 -7
- package/dist/stdio-B2NDq7Ax.js.map +1 -0
- package/dist/{stdio-B73CCTly.cjs → stdio-DMEgJ_fG.cjs} +17 -7
- package/dist/stdio-DMEgJ_fG.cjs.map +1 -0
- package/dist/test-setup.cjs +1420 -1230
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1262 -1045
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.d.ts +25 -2
- package/dist/toolDefinitions.js +1059 -4
- package/dist/tools/analyze-issue-with-seer.cjs +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.d.ts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.js +16 -0
- package/dist/tools/create-dsn.cjs +12 -0
- package/dist/tools/create-dsn.d.cts +15 -0
- package/dist/tools/create-dsn.d.cts.map +1 -0
- package/dist/tools/create-dsn.d.ts +15 -0
- package/dist/tools/create-dsn.d.ts.map +1 -0
- package/dist/tools/create-dsn.js +12 -0
- package/dist/tools/create-project.cjs +13 -0
- package/dist/tools/create-project.d.cts +16 -0
- package/dist/tools/create-project.d.cts.map +1 -0
- package/dist/tools/create-project.d.ts +16 -0
- package/dist/tools/create-project.d.ts.map +1 -0
- package/dist/tools/create-project.js +13 -0
- package/dist/tools/create-team.cjs +12 -0
- package/dist/tools/create-team.d.cts +14 -0
- package/dist/tools/create-team.d.cts.map +1 -0
- package/dist/tools/create-team.d.ts +14 -0
- package/dist/tools/create-team.d.ts.map +1 -0
- package/dist/tools/create-team.js +12 -0
- package/dist/tools/find-dsns.cjs +12 -0
- package/dist/tools/find-dsns.d.cts +14 -0
- package/dist/tools/find-dsns.d.cts.map +1 -0
- package/dist/tools/find-dsns.d.ts +14 -0
- package/dist/tools/find-dsns.d.ts.map +1 -0
- package/dist/tools/find-dsns.js +12 -0
- package/dist/tools/find-errors.cjs +12 -0
- package/dist/tools/find-errors.d.cts +18 -0
- package/dist/tools/find-errors.d.cts.map +1 -0
- package/dist/tools/find-errors.d.ts +18 -0
- package/dist/tools/find-errors.d.ts.map +1 -0
- package/dist/tools/find-errors.js +12 -0
- package/dist/tools/find-issues.cjs +12 -0
- package/dist/tools/find-issues.d.cts +16 -0
- package/dist/tools/find-issues.d.cts.map +1 -0
- package/dist/tools/find-issues.d.ts +16 -0
- package/dist/tools/find-issues.d.ts.map +1 -0
- package/dist/tools/find-issues.js +12 -0
- package/dist/tools/find-organizations.cjs +10 -0
- package/dist/tools/find-organizations.d.cts +9 -0
- package/dist/tools/find-organizations.d.cts.map +1 -0
- package/dist/tools/find-organizations.d.ts +9 -0
- package/dist/tools/find-organizations.d.ts.map +1 -0
- package/dist/tools/find-organizations.js +10 -0
- package/dist/tools/find-projects.cjs +12 -0
- package/dist/tools/find-projects.d.cts +13 -0
- package/dist/tools/find-projects.d.cts.map +1 -0
- package/dist/tools/find-projects.d.ts +13 -0
- package/dist/tools/find-projects.d.ts.map +1 -0
- package/dist/tools/find-projects.js +12 -0
- package/dist/tools/find-releases.cjs +12 -0
- package/dist/tools/find-releases.d.cts +15 -0
- package/dist/tools/find-releases.d.cts.map +1 -0
- package/dist/tools/find-releases.d.ts +15 -0
- package/dist/tools/find-releases.d.ts.map +1 -0
- package/dist/tools/find-releases.js +12 -0
- package/dist/tools/find-tags.cjs +12 -0
- package/dist/tools/find-tags.d.cts +13 -0
- package/dist/tools/find-tags.d.cts.map +1 -0
- package/dist/tools/find-tags.d.ts +13 -0
- package/dist/tools/find-tags.d.ts.map +1 -0
- package/dist/tools/find-tags.js +12 -0
- package/dist/tools/find-teams.cjs +12 -0
- package/dist/tools/find-teams.d.cts +13 -0
- package/dist/tools/find-teams.d.cts.map +1 -0
- package/dist/tools/find-teams.d.ts +13 -0
- package/dist/tools/find-teams.d.ts.map +1 -0
- package/dist/tools/find-teams.js +12 -0
- package/dist/tools/find-transactions.cjs +12 -0
- package/dist/tools/find-transactions.d.cts +17 -0
- package/dist/tools/find-transactions.d.cts.map +1 -0
- package/dist/tools/find-transactions.d.ts +17 -0
- package/dist/tools/find-transactions.d.ts.map +1 -0
- package/dist/tools/find-transactions.js +12 -0
- package/dist/tools/get-doc.cjs +11 -0
- package/dist/tools/get-doc.d.cts +12 -0
- package/dist/tools/get-doc.d.cts.map +1 -0
- package/dist/tools/get-doc.d.ts +12 -0
- package/dist/tools/get-doc.d.ts.map +1 -0
- package/dist/tools/get-doc.js +11 -0
- package/dist/tools/get-event-attachment.cjs +12 -0
- package/dist/tools/get-event-attachment.d.cts +16 -0
- package/dist/tools/get-event-attachment.d.cts.map +1 -0
- package/dist/tools/get-event-attachment.d.ts +16 -0
- package/dist/tools/get-event-attachment.d.ts.map +1 -0
- package/dist/tools/get-event-attachment.js +12 -0
- package/dist/tools/get-issue-details.cjs +15 -0
- package/dist/tools/get-issue-details.d.cts +16 -0
- package/dist/tools/get-issue-details.d.cts.map +1 -0
- package/dist/tools/get-issue-details.d.ts +16 -0
- package/dist/tools/get-issue-details.d.ts.map +1 -0
- package/dist/tools/get-issue-details.js +15 -0
- package/dist/tools/index.cjs +40 -0
- package/dist/tools/index.d.cts +127 -0
- package/dist/tools/index.d.cts.map +1 -0
- package/dist/tools/index.d.ts +127 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +40 -0
- package/dist/tools/search-docs.cjs +12 -0
- package/dist/tools/search-docs.d.cts +14 -0
- package/dist/tools/search-docs.d.cts.map +1 -0
- package/dist/tools/search-docs.d.ts +14 -0
- package/dist/tools/search-docs.d.ts.map +1 -0
- package/dist/tools/search-docs.js +12 -0
- package/dist/tools/types.cjs +0 -0
- package/dist/tools/types.d.cts +4 -0
- package/dist/tools/types.d.ts +4 -0
- package/dist/tools/types.js +0 -0
- package/dist/tools/update-issue.cjs +16 -0
- package/dist/tools/update-issue.d.cts +17 -0
- package/dist/tools/update-issue.d.cts.map +1 -0
- package/dist/tools/update-issue.d.ts +17 -0
- package/dist/tools/update-issue.d.ts.map +1 -0
- package/dist/tools/update-issue.js +16 -0
- package/dist/tools/update-project.cjs +13 -0
- package/dist/tools/update-project.d.cts +18 -0
- package/dist/tools/update-project.d.cts.map +1 -0
- package/dist/tools/update-project.d.ts +18 -0
- package/dist/tools/update-project.d.ts.map +1 -0
- package/dist/tools/update-project.js +13 -0
- package/dist/tools/utils/api-utils.cjs +8 -0
- package/dist/tools/utils/api-utils.d.cts +24 -0
- package/dist/tools/utils/api-utils.d.cts.map +1 -0
- package/dist/tools/utils/api-utils.d.ts +24 -0
- package/dist/tools/utils/api-utils.d.ts.map +1 -0
- package/dist/tools/utils/api-utils.js +8 -0
- package/dist/tools/utils/defineTool.cjs +3 -0
- package/dist/tools/utils/defineTool.d.cts +12 -0
- package/dist/tools/utils/defineTool.d.cts.map +1 -0
- package/dist/tools/utils/defineTool.d.ts +12 -0
- package/dist/tools/utils/defineTool.d.ts.map +1 -0
- package/dist/tools/utils/defineTool.js +3 -0
- package/dist/tools/utils/fetch-utils.cjs +4 -0
- package/dist/tools/utils/fetch-utils.d.cts +2 -0
- package/dist/tools/utils/fetch-utils.d.ts +2 -0
- package/dist/tools/utils/fetch-utils.js +4 -0
- package/dist/tools/utils/formatting-utils.cjs +3 -0
- package/dist/tools/utils/formatting-utils.d.cts +15 -0
- package/dist/tools/utils/formatting-utils.d.cts.map +1 -0
- package/dist/tools/utils/formatting-utils.d.ts +15 -0
- package/dist/tools/utils/formatting-utils.d.ts.map +1 -0
- package/dist/tools/utils/formatting-utils.js +3 -0
- package/dist/tools/utils/issue-utils.cjs +6 -0
- package/dist/tools/utils/issue-utils.d.cts +7 -0
- package/dist/tools/utils/issue-utils.d.ts +7 -0
- package/dist/tools/utils/issue-utils.js +5 -0
- package/dist/tools/utils/seer-utils.cjs +9 -0
- package/dist/tools/utils/seer-utils.d.cts +28 -0
- package/dist/tools/utils/seer-utils.d.cts.map +1 -0
- package/dist/tools/utils/seer-utils.d.ts +28 -0
- package/dist/tools/utils/seer-utils.d.ts.map +1 -0
- package/dist/tools/utils/seer-utils.js +3 -0
- package/dist/tools/whoami.cjs +10 -0
- package/dist/tools/whoami.d.cts +9 -0
- package/dist/tools/whoami.d.cts.map +1 -0
- package/dist/tools/whoami.d.ts +9 -0
- package/dist/tools/whoami.d.ts.map +1 -0
- package/dist/tools/whoami.js +10 -0
- package/dist/tools-19Ms1kck.cjs +53 -0
- package/dist/tools-19Ms1kck.cjs.map +1 -0
- package/dist/tools-mThAUo_3.js +48 -0
- package/dist/tools-mThAUo_3.js.map +1 -0
- package/dist/transports/stdio.cjs +42 -14
- package/dist/transports/stdio.d.cts +2 -3
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +2 -3
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +44 -16
- package/dist/{types-NIQW7KyF.d.cts → types-Bg17IGWJ.d.cts} +5 -3
- package/dist/types-Bg17IGWJ.d.cts.map +1 -0
- package/dist/types-CCHsZshF.js +0 -0
- package/dist/types-CUN-2OSS.d.cts +29 -0
- package/dist/types-CUN-2OSS.d.cts.map +1 -0
- package/dist/{types-Daq2fm0E.d.ts → types-CtTBwGbw.d.ts} +5 -3
- package/dist/types-CtTBwGbw.d.ts.map +1 -0
- package/dist/types-D_mx318Q.d.cts +29 -0
- package/dist/types-D_mx318Q.d.cts.map +1 -0
- package/dist/types-DkJtNDXU.d.ts +29 -0
- package/dist/types-DkJtNDXU.d.ts.map +1 -0
- package/dist/types-qB8a4WQT.d.ts +29 -0
- package/dist/types-qB8a4WQT.d.ts.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/update-issue-B6eZhAPJ.cjs +115 -0
- package/dist/update-issue-B6eZhAPJ.cjs.map +1 -0
- package/dist/update-issue-DmLElHPS.js +109 -0
- package/dist/update-issue-DmLElHPS.js.map +1 -0
- package/dist/update-project-BNPev7W8.js +120 -0
- package/dist/update-project-BNPev7W8.js.map +1 -0
- package/dist/update-project-CijYCtG1.cjs +126 -0
- package/dist/update-project-CijYCtG1.cjs.map +1 -0
- package/dist/url-utils-C9hykWmk.cjs +106 -0
- package/dist/url-utils-C9hykWmk.cjs.map +1 -0
- package/dist/url-utils-DvZYfzPM.js +82 -0
- package/dist/url-utils-DvZYfzPM.js.map +1 -0
- package/dist/utils/url-utils.cjs +6 -0
- package/dist/utils/url-utils.d.cts +37 -0
- package/dist/utils/url-utils.d.cts.map +1 -0
- package/dist/utils/url-utils.d.ts +37 -0
- package/dist/utils/url-utils.d.ts.map +1 -0
- package/dist/utils/url-utils.js +3 -0
- package/dist/version-C4uvMmw0.js +6 -0
- package/dist/version-C4uvMmw0.js.map +1 -0
- package/dist/{version-BNmubeQI.cjs → version-Ddz4xg_q.cjs} +2 -2
- package/dist/version-Ddz4xg_q.cjs.map +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-CEgbTUqt.cjs +28 -0
- package/dist/whoami-CEgbTUqt.cjs.map +1 -0
- package/dist/whoami-DesNZnaQ.js +23 -0
- package/dist/whoami-DesNZnaQ.js.map +1 -0
- package/package.json +24 -14
- package/dist/api-client/client.test.cjs +0 -33
- package/dist/api-client/client.test.cjs.map +0 -1
- package/dist/api-client/client.test.d.ts +0 -1
- package/dist/api-client/client.test.js +0 -33
- package/dist/api-client/client.test.js.map +0 -1
- package/dist/chunk-BLXvPPr8.js +0 -30
- package/dist/client-4jq_wVgn.d.ts.map +0 -1
- package/dist/client-B7vZ6JMk.cjs.map +0 -1
- package/dist/client-CAoHZbyK.js.map +0 -1
- package/dist/client-DkY0ifZf.d.cts.map +0 -1
- package/dist/dist-BlIWGSIM.cjs +0 -8197
- package/dist/dist-BlIWGSIM.cjs.map +0 -1
- package/dist/dist-DDpQABxe.js +0 -8054
- package/dist/dist-DDpQABxe.js.map +0 -1
- package/dist/errors.test.cjs +0 -24
- package/dist/errors.test.cjs.map +0 -1
- package/dist/errors.test.d.cts +0 -1
- package/dist/errors.test.d.ts +0 -1
- package/dist/errors.test.js +0 -24
- package/dist/errors.test.js.map +0 -1
- package/dist/formatting-BaARL2gT.js +0 -68
- package/dist/formatting-BaARL2gT.js.map +0 -1
- package/dist/formatting-C2kN0ok6.cjs +0 -86
- package/dist/formatting-C2kN0ok6.cjs.map +0 -1
- package/dist/index-h64gcVNJ.d.ts +0 -1
- package/dist/internal/formatting.d.cts.map +0 -1
- package/dist/internal/formatting.d.ts.map +0 -1
- package/dist/internal/issue-helpers.d.cts.map +0 -1
- package/dist/internal/issue-helpers.d.ts.map +0 -1
- package/dist/internal/issue-helpers.test.cjs +0 -110
- package/dist/internal/issue-helpers.test.cjs.map +0 -1
- package/dist/internal/issue-helpers.test.d.cts +0 -1
- package/dist/internal/issue-helpers.test.d.ts +0 -1
- package/dist/internal/issue-helpers.test.js +0 -110
- package/dist/internal/issue-helpers.test.js.map +0 -1
- package/dist/magic-string.es-CybcVAw7.cjs +0 -1016
- package/dist/magic-string.es-CybcVAw7.cjs.map +0 -1
- package/dist/magic-string.es-DY8GVHw9.js +0 -1015
- package/dist/magic-string.es-DY8GVHw9.js.map +0 -1
- package/dist/promptDefinitions-BTLIBcGt.cjs.map +0 -1
- package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +0 -1
- package/dist/promptDefinitions-D5FSQckL.d.ts.map +0 -1
- package/dist/resources-Bol20Xuo.js +0 -38
- package/dist/resources-Bol20Xuo.js.map +0 -1
- package/dist/resources-DNyoutxH.cjs +0 -44
- package/dist/resources-DNyoutxH.cjs.map +0 -1
- package/dist/schema-BJv7kREf.d.cts.map +0 -1
- package/dist/schema-BTfISwFu.cjs.map +0 -1
- package/dist/schema-BnxGHL_i.d.ts.map +0 -1
- package/dist/schema-BsvGMALe.cjs.map +0 -1
- package/dist/schema-C_hp0BR7.js.map +0 -1
- package/dist/server-C7cHq_pc.js.map +0 -1
- package/dist/server-DeutbO8v.cjs.map +0 -1
- package/dist/stdio-B73CCTly.cjs.map +0 -1
- package/dist/stdio-ZQLC-i5Q.js.map +0 -1
- package/dist/toolDefinitions-BOMF-zIC.d.ts +0 -394
- package/dist/toolDefinitions-BOMF-zIC.d.ts.map +0 -1
- package/dist/toolDefinitions-CUegGcWU.cjs +0 -547
- package/dist/toolDefinitions-CUegGcWU.cjs.map +0 -1
- package/dist/toolDefinitions-DFAxp3nr.js +0 -541
- package/dist/toolDefinitions-DFAxp3nr.js.map +0 -1
- package/dist/toolDefinitions-Ipvr4Acw.d.cts +0 -394
- package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +0 -1
- package/dist/toolDefinitions.cjs +0 -4
- package/dist/toolDefinitions.d.cts +0 -2
- package/dist/toolDefinitions.test.cjs +0 -15
- package/dist/toolDefinitions.test.cjs.map +0 -1
- package/dist/toolDefinitions.test.d.cts +0 -1
- package/dist/toolDefinitions.test.d.ts +0 -1
- package/dist/toolDefinitions.test.js +0 -15
- package/dist/toolDefinitions.test.js.map +0 -1
- package/dist/tools-DpiQwSTY.js +0 -596
- package/dist/tools-DpiQwSTY.js.map +0 -1
- package/dist/tools-DyOqlsCW.cjs +0 -602
- package/dist/tools-DyOqlsCW.cjs.map +0 -1
- package/dist/tools.cjs +0 -11
- package/dist/tools.d.cts +0 -335
- package/dist/tools.d.cts.map +0 -1
- package/dist/tools.d.ts +0 -335
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -11
- package/dist/tools.test.cjs +0 -1298
- package/dist/tools.test.cjs.map +0 -1
- package/dist/tools.test.d.cts +0 -1
- package/dist/tools.test.d.ts +0 -1
- package/dist/tools.test.js +0 -1298
- package/dist/tools.test.js.map +0 -1
- package/dist/types-D5TPcOfv.d.ts +0 -39
- package/dist/types-D5TPcOfv.d.ts.map +0 -1
- package/dist/types-DRF2IoP_.d.cts +0 -39
- package/dist/types-DRF2IoP_.d.cts.map +0 -1
- package/dist/types-Daq2fm0E.d.ts.map +0 -1
- package/dist/types-NIQW7KyF.d.cts.map +0 -1
- package/dist/version-BNmubeQI.cjs.map +0 -1
- package/dist/version-CRto5Sn_.js +0 -6
- package/dist/version-CRto5Sn_.js.map +0 -1
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js +0 -6349
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +0 -1
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs +0 -6355
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +0 -1
- /package/dist/{api-client-CNv_hbPO.js → api-client-ChL_0F2u.js} +0 -0
- /package/dist/{types-6zHoEWAx.js → fetch-utils-C0F4eH6S.cjs} +0 -0
- /package/dist/{api-client/client.test.d.cts → index-DVGDAddE.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-fixtures.d.ts","names":[],"sources":["../../src/internal/test-fixtures.ts"],"sourcesContent":[],"mappings":";;;;;KASK,KAAA,GAAQ,CAAA,CAAE,aAAa;KACvB,cAAA,GAAiB,CAAA,CAAE,aAAa;AAJP,KAKzB,MAAA,GAAS,CAAA,CAAE,KAFN,CAAA,OAEmB,iBAFnB,CAAA;KAGL,UAAA,GAHK;EAAA,MAAkB,EAGA,KAHA,EAAA;CAAc;AAAtB;AAAA;;;AACE,iBAUN,WAAA,CAVQ,SAAA,CAAA,EAUe,OAVf,CAUuB,KAVvB,CAAA,CAAA,EAUqC,KAVrC;AAAK,cAoBhB,cApBgB,EAAA;EACxB,MAAA,EAAA,CAAM,SAAA,CAAA,EAoBW,OApBX,CAoBmB,KApBnB,CAAA,EAAA,GAAA;IAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAAkB,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAAf,MAAE,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAAK,KAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAChB,OAAA,CAAA,EAAU,MAAA,GAAA,IAAa,GAAK,SAAA;IAQjB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAH6B;;;;;;;;;;;;;;;;;;;;;;qBAAM"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
//#region src/internal/test-fixtures.ts
|
|
2
|
+
/**
|
|
3
|
+
* Test fixture factories for creating Event objects with minimal boilerplate.
|
|
4
|
+
* These factories provide sensible defaults while allowing customization.
|
|
5
|
+
*/
|
|
6
|
+
function createFrame(overrides = {}) {
|
|
7
|
+
return {
|
|
8
|
+
filename: "/app/main.js",
|
|
9
|
+
function: "main",
|
|
10
|
+
lineNo: 42,
|
|
11
|
+
...overrides
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const frameFactories = {
|
|
15
|
+
python: (overrides = {}) => createFrame({
|
|
16
|
+
filename: "/app/main.py",
|
|
17
|
+
function: "process_data",
|
|
18
|
+
...overrides
|
|
19
|
+
}),
|
|
20
|
+
java: (overrides = {}) => createFrame({
|
|
21
|
+
filename: "Example.java",
|
|
22
|
+
module: "com.example.Example",
|
|
23
|
+
function: "doSomething",
|
|
24
|
+
...overrides
|
|
25
|
+
}),
|
|
26
|
+
javascript: (overrides = {}) => createFrame({
|
|
27
|
+
filename: "/app/main.js",
|
|
28
|
+
function: "handleRequest",
|
|
29
|
+
colNo: 15,
|
|
30
|
+
...overrides
|
|
31
|
+
}),
|
|
32
|
+
ruby: (overrides = {}) => createFrame({
|
|
33
|
+
filename: "/app/main.rb",
|
|
34
|
+
function: "process",
|
|
35
|
+
...overrides
|
|
36
|
+
}),
|
|
37
|
+
php: (overrides = {}) => createFrame({
|
|
38
|
+
filename: "/app/main.php",
|
|
39
|
+
function: "handleRequest",
|
|
40
|
+
...overrides
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
function createStackTrace(frames) {
|
|
44
|
+
return { frames };
|
|
45
|
+
}
|
|
46
|
+
function createExceptionValue(overrides = {}) {
|
|
47
|
+
return {
|
|
48
|
+
type: "Error",
|
|
49
|
+
value: "Something went wrong",
|
|
50
|
+
stacktrace: createStackTrace([createFrame()]),
|
|
51
|
+
...overrides
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function createThread(overrides = {}) {
|
|
55
|
+
return {
|
|
56
|
+
id: 1,
|
|
57
|
+
name: "main",
|
|
58
|
+
crashed: true,
|
|
59
|
+
stacktrace: createStackTrace([createFrame()]),
|
|
60
|
+
...overrides
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
var EventBuilder = class {
|
|
64
|
+
event;
|
|
65
|
+
constructor(platform = "javascript") {
|
|
66
|
+
this.event = {
|
|
67
|
+
id: "test123",
|
|
68
|
+
title: "Test Event",
|
|
69
|
+
message: null,
|
|
70
|
+
platform,
|
|
71
|
+
type: "error",
|
|
72
|
+
entries: [],
|
|
73
|
+
contexts: {}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
withId(id) {
|
|
77
|
+
this.event.id = id;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
withPlatform(platform) {
|
|
81
|
+
this.event.platform = platform;
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
withException(exception) {
|
|
85
|
+
this.event.entries.push({
|
|
86
|
+
type: "exception",
|
|
87
|
+
data: { values: [exception] }
|
|
88
|
+
});
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
withChainedExceptions(exceptions) {
|
|
92
|
+
this.event.entries.push({
|
|
93
|
+
type: "exception",
|
|
94
|
+
data: { values: exceptions }
|
|
95
|
+
});
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
withThread(thread) {
|
|
99
|
+
const existingThread = this.event.entries.find((e) => e.type === "threads");
|
|
100
|
+
if (existingThread?.data && typeof existingThread.data === "object" && "values" in existingThread.data) existingThread.data.values.push(thread);
|
|
101
|
+
else this.event.entries.push({
|
|
102
|
+
type: "threads",
|
|
103
|
+
data: { values: [thread] }
|
|
104
|
+
});
|
|
105
|
+
return this;
|
|
106
|
+
}
|
|
107
|
+
withMessage(message) {
|
|
108
|
+
this.event.entries.push({
|
|
109
|
+
type: "message",
|
|
110
|
+
data: { formatted: message }
|
|
111
|
+
});
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
withTitle(title) {
|
|
115
|
+
this.event.title = title;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
withType(type) {
|
|
119
|
+
this.event.type = type;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
withContexts(contexts) {
|
|
123
|
+
this.event.contexts = contexts;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
build() {
|
|
127
|
+
return { ...this.event };
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const testEvents = {
|
|
131
|
+
pythonException: (errorMessage = "Invalid value") => new EventBuilder("python").withException(createExceptionValue({
|
|
132
|
+
type: "ValueError",
|
|
133
|
+
value: errorMessage,
|
|
134
|
+
stacktrace: createStackTrace([frameFactories.python({ lineNo: 42 }), frameFactories.python({
|
|
135
|
+
filename: "/app/utils.py",
|
|
136
|
+
function: "validate",
|
|
137
|
+
lineNo: 15
|
|
138
|
+
})])
|
|
139
|
+
})).build(),
|
|
140
|
+
javaThreadError: (message = "Test error") => new EventBuilder("java").withTitle("Test Error").withType("error").withMessage(message).withThread(createThread({
|
|
141
|
+
id: 187,
|
|
142
|
+
name: "CONTRACT_WORKER",
|
|
143
|
+
state: "RUNNABLE",
|
|
144
|
+
stacktrace: createStackTrace([frameFactories.java({
|
|
145
|
+
filename: "Thread.java",
|
|
146
|
+
module: "java.lang.Thread",
|
|
147
|
+
function: "run",
|
|
148
|
+
lineNo: 833
|
|
149
|
+
}), frameFactories.java({
|
|
150
|
+
filename: "AeronServer.java",
|
|
151
|
+
module: "com.citics.eqd.mq.aeron.AeronServer",
|
|
152
|
+
function: "lambda$start$3",
|
|
153
|
+
lineNo: 110
|
|
154
|
+
})])
|
|
155
|
+
})).build(),
|
|
156
|
+
enhancedFrame: (platform = "python") => {
|
|
157
|
+
const frame = frameFactories[platform]({
|
|
158
|
+
inApp: true,
|
|
159
|
+
context: [
|
|
160
|
+
[40, " raise ValueError(\"User not found\")"],
|
|
161
|
+
[41, " "],
|
|
162
|
+
[42, " balance = user.account.balance"],
|
|
163
|
+
[43, " if balance < amount:"],
|
|
164
|
+
[44, " raise InsufficientFundsError()"]
|
|
165
|
+
],
|
|
166
|
+
vars: {
|
|
167
|
+
amount: 150,
|
|
168
|
+
user_id: "usr_123456",
|
|
169
|
+
user: null
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
return new EventBuilder(platform).withException(createExceptionValue({
|
|
173
|
+
type: "ValueError",
|
|
174
|
+
value: "Something went wrong",
|
|
175
|
+
stacktrace: createStackTrace([frame])
|
|
176
|
+
})).build();
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
function createFrameWithContext(frame, contextLines, vars) {
|
|
180
|
+
return createFrame({
|
|
181
|
+
...frame,
|
|
182
|
+
inApp: true,
|
|
183
|
+
context: contextLines,
|
|
184
|
+
vars
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
const advancedFixtures = {
|
|
188
|
+
minimalError: (message, platform = "javascript") => new EventBuilder(platform).withException(createExceptionValue({ value: message })).build(),
|
|
189
|
+
chainedExceptions: (platform = "javascript") => new EventBuilder(platform).withException(createExceptionValue({
|
|
190
|
+
type: "Error",
|
|
191
|
+
value: "High level error",
|
|
192
|
+
stacktrace: createStackTrace([createFrame({ lineNo: 100 })])
|
|
193
|
+
})).withException(createExceptionValue({
|
|
194
|
+
type: "CausedBy",
|
|
195
|
+
value: "Low level error",
|
|
196
|
+
stacktrace: createStackTrace([createFrame({ lineNo: 50 })])
|
|
197
|
+
})).build(),
|
|
198
|
+
withContextData: (contexts) => {
|
|
199
|
+
return new EventBuilder().withContexts(contexts).build();
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
//#endregion
|
|
204
|
+
export { EventBuilder, advancedFixtures, createExceptionValue, createFrame, createFrameWithContext, createStackTrace, createThread, frameFactories, testEvents };
|
|
205
|
+
//# sourceMappingURL=test-fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-fixtures.js","names":["overrides: Partial<Frame>","frames: Frame[]","overrides: Partial<ExceptionValue>","overrides: Partial<Thread>","id: string","platform: string","exception: ExceptionValue","exceptions: ExceptionValue[]","thread: Thread","message: string","title: string","type: string","contexts: Record<string, any>","frame: Partial<Frame>","contextLines: Array<[number, string]>","vars?: Record<string, any>"],"sources":["../../src/internal/test-fixtures.ts"],"sourcesContent":["import type { Event } from \"../api-client/types\";\nimport type { z } from \"zod\";\nimport type {\n FrameInterface,\n ExceptionInterface,\n ThreadEntrySchema,\n} from \"../api-client/schema\";\n\n// Type aliases for cleaner code\ntype Frame = z.infer<typeof FrameInterface>;\ntype ExceptionValue = z.infer<typeof ExceptionInterface>;\ntype Thread = z.infer<typeof ThreadEntrySchema>;\ntype StackTrace = { frames: Frame[] };\n\n/**\n * Test fixture factories for creating Event objects with minimal boilerplate.\n * These factories provide sensible defaults while allowing customization.\n */\n\n// Frame factory with common defaults\nexport function createFrame(overrides: Partial<Frame> = {}): Frame {\n return {\n filename: \"/app/main.js\",\n function: \"main\",\n lineNo: 42,\n ...overrides,\n };\n}\n\n// Platform-specific frame factories\nexport const frameFactories = {\n python: (overrides: Partial<Frame> = {}) =>\n createFrame({\n filename: \"/app/main.py\",\n function: \"process_data\",\n ...overrides,\n }),\n\n java: (overrides: Partial<Frame> = {}) =>\n createFrame({\n filename: \"Example.java\",\n module: \"com.example.Example\",\n function: \"doSomething\",\n ...overrides,\n }),\n\n javascript: (overrides: Partial<Frame> = {}) =>\n createFrame({\n filename: \"/app/main.js\",\n function: \"handleRequest\",\n colNo: 15,\n ...overrides,\n }),\n\n ruby: (overrides: Partial<Frame> = {}) =>\n createFrame({\n filename: \"/app/main.rb\",\n function: \"process\",\n ...overrides,\n }),\n\n php: (overrides: Partial<Frame> = {}) =>\n createFrame({\n filename: \"/app/main.php\",\n function: \"handleRequest\",\n ...overrides,\n }),\n};\n\n// StackTrace factory\nexport function createStackTrace(frames: Frame[]): StackTrace {\n return { frames };\n}\n\n// Exception value factory\nexport function createExceptionValue(\n overrides: Partial<ExceptionValue> = {},\n): ExceptionValue {\n return {\n type: \"Error\",\n value: \"Something went wrong\",\n stacktrace: createStackTrace([createFrame()]),\n ...overrides,\n };\n}\n\n// Thread factory\nexport function createThread(overrides: Partial<Thread> = {}): Thread {\n return {\n id: 1,\n name: \"main\",\n crashed: true,\n stacktrace: createStackTrace([createFrame()]),\n ...overrides,\n };\n}\n\n// Event factory with builder pattern\nexport class EventBuilder {\n private event: Event;\n\n constructor(platform = \"javascript\") {\n this.event = {\n id: \"test123\",\n title: \"Test Event\",\n message: null,\n platform,\n type: \"error\",\n entries: [],\n contexts: {},\n } as Event;\n }\n\n withId(id: string): this {\n this.event.id = id;\n return this;\n }\n\n withPlatform(platform: string): this {\n this.event.platform = platform;\n return this;\n }\n\n withException(exception: ExceptionValue): this {\n this.event.entries.push({\n type: \"exception\",\n data: {\n values: [exception],\n },\n });\n return this;\n }\n\n withChainedExceptions(exceptions: ExceptionValue[]): this {\n this.event.entries.push({\n type: \"exception\",\n data: {\n values: exceptions,\n },\n });\n return this;\n }\n\n withThread(thread: Thread): this {\n const existingThread = this.event.entries.find((e) => e.type === \"threads\");\n if (\n existingThread?.data &&\n typeof existingThread.data === \"object\" &&\n \"values\" in existingThread.data\n ) {\n (existingThread.data as any).values.push(thread);\n } else {\n this.event.entries.push({\n type: \"threads\",\n data: {\n values: [thread],\n },\n });\n }\n return this;\n }\n\n withMessage(message: string): this {\n this.event.entries.push({\n type: \"message\",\n data: {\n formatted: message,\n },\n });\n return this;\n }\n\n withTitle(title: string): this {\n this.event.title = title;\n return this;\n }\n\n withType(type: string): this {\n this.event.type = type;\n return this;\n }\n\n withContexts(contexts: Record<string, any>): this {\n this.event.contexts = contexts;\n return this;\n }\n\n build(): Event {\n return { ...this.event };\n }\n}\n\n// Convenience factories for common test scenarios\nexport const testEvents = {\n // Simple Python exception\n pythonException: (errorMessage = \"Invalid value\") =>\n new EventBuilder(\"python\")\n .withException(\n createExceptionValue({\n type: \"ValueError\",\n value: errorMessage,\n stacktrace: createStackTrace([\n frameFactories.python({ lineNo: 42 }),\n frameFactories.python({\n filename: \"/app/utils.py\",\n function: \"validate\",\n lineNo: 15,\n }),\n ]),\n }),\n )\n .build(),\n\n // Java thread error\n javaThreadError: (message = \"Test error\") =>\n new EventBuilder(\"java\")\n .withTitle(\"Test Error\")\n .withType(\"error\")\n .withMessage(message)\n .withThread(\n createThread({\n id: 187,\n name: \"CONTRACT_WORKER\",\n state: \"RUNNABLE\",\n stacktrace: createStackTrace([\n frameFactories.java({\n filename: \"Thread.java\",\n module: \"java.lang.Thread\",\n function: \"run\",\n lineNo: 833,\n }),\n frameFactories.java({\n filename: \"AeronServer.java\",\n module: \"com.citics.eqd.mq.aeron.AeronServer\",\n function: \"lambda$start$3\",\n lineNo: 110,\n }),\n ]),\n }),\n )\n .build(),\n\n // Enhanced frame with context and variables\n enhancedFrame: (platform = \"python\") => {\n const frame = frameFactories[platform as keyof typeof frameFactories]({\n inApp: true,\n context: [\n [40, ' raise ValueError(\"User not found\")'],\n [41, \" \"],\n [42, \" balance = user.account.balance\"],\n [43, \" if balance < amount:\"],\n [44, \" raise InsufficientFundsError()\"],\n ],\n vars: {\n amount: 150.0,\n user_id: \"usr_123456\",\n user: null,\n },\n });\n\n return new EventBuilder(platform)\n .withException(\n createExceptionValue({\n type: \"ValueError\",\n value: \"Something went wrong\",\n stacktrace: createStackTrace([frame]),\n }),\n )\n .build();\n },\n};\n\n// Helper to create frames with context lines\nexport function createFrameWithContext(\n frame: Partial<Frame>,\n contextLines: Array<[number, string]>,\n vars?: Record<string, any>,\n): Frame {\n return createFrame({\n ...frame,\n inApp: true,\n context: contextLines,\n vars,\n });\n}\n\n// Advanced test fixtures for specific scenarios\nexport const advancedFixtures = {\n // Create a minimal event with just an error message\n minimalError: (message: string, platform = \"javascript\") =>\n new EventBuilder(platform)\n .withException(createExceptionValue({ value: message }))\n .build(),\n\n // Create an event with multiple exceptions (chained errors)\n chainedExceptions: (platform = \"javascript\") =>\n new EventBuilder(platform)\n .withException(\n createExceptionValue({\n type: \"Error\",\n value: \"High level error\",\n stacktrace: createStackTrace([createFrame({ lineNo: 100 })]),\n }),\n )\n .withException(\n createExceptionValue({\n type: \"CausedBy\",\n value: \"Low level error\",\n stacktrace: createStackTrace([createFrame({ lineNo: 50 })]),\n }),\n )\n .build(),\n\n // Create event with specific context data\n withContextData: (contexts: Record<string, any>) => {\n return new EventBuilder().withContexts(contexts).build();\n },\n};\n"],"mappings":";;;;;AAoBA,SAAgB,YAAYA,YAA4B,CAAE,GAAS;AACjE,QAAO;EACL,UAAU;EACV,UAAU;EACV,QAAQ;EACR,GAAG;CACJ;AACF;AAGD,MAAa,iBAAiB;CAC5B,QAAQ,CAACA,YAA4B,CAAE,MACrC,YAAY;EACV,UAAU;EACV,UAAU;EACV,GAAG;CACJ,E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
1
|
+
//#region src/internal/issue-helpers.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Issue parameter parsing and validation utilities.
|
|
4
|
+
*
|
|
5
|
+
* Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
|
|
6
|
+
* extracts organization and issue identifiers, and validates issue ID formats.
|
|
7
|
+
* Provides robust parsing for LLM-generated parameters that may contain formatting
|
|
8
|
+
* inconsistencies.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Extracts the Sentry issue ID and organization slug from a full URL
|
|
12
|
+
*
|
|
13
|
+
* @param url - A full Sentry issue URL
|
|
14
|
+
* @returns Object containing the numeric issue ID and organization slug (if found)
|
|
15
|
+
* @throws Error if the input is invalid
|
|
16
|
+
*/
|
|
17
|
+
declare function extractIssueId(url: string): {
|
|
18
|
+
issueId: string;
|
|
19
|
+
organizationSlug: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Sometimes the LLM will pass in a funky issue shortId. For example it might pass
|
|
23
|
+
* in "CLOUDFLARE-MCP-41." instead of "CLOUDFLARE-MCP-41". This function attempts to
|
|
24
|
+
* fix common issues.
|
|
25
|
+
*
|
|
26
|
+
* @param issueId - The issue ID to parse
|
|
27
|
+
* @returns The parsed issue ID
|
|
28
|
+
*/
|
|
29
|
+
declare function parseIssueId(issueId: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Parses issue parameters from a variety of formats.
|
|
32
|
+
*
|
|
33
|
+
* @param params - Object containing issue URL, issue ID, and organization slug
|
|
34
|
+
* @returns Object containing the parsed organization slug and issue ID
|
|
35
|
+
* @throws Error if the input is invalid
|
|
36
|
+
*/
|
|
37
|
+
declare function parseIssueParams({
|
|
38
|
+
issueUrl,
|
|
39
|
+
issueId,
|
|
40
|
+
organizationSlug
|
|
41
|
+
}: {
|
|
42
|
+
issueUrl?: string | null;
|
|
43
|
+
issueId?: string | null;
|
|
44
|
+
organizationSlug?: string | null;
|
|
45
|
+
}): {
|
|
46
|
+
organizationSlug: string;
|
|
47
|
+
issueId: string;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=issue-helpers.d.ts.map
|
|
50
|
+
//#endregion
|
|
51
|
+
export { extractIssueId, parseIssueId, parseIssueParams };
|
|
52
|
+
//# sourceMappingURL=issue-helpers-BJffpNoO.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-helpers-BJffpNoO.d.ts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAgBA;AAmEA;AAyBA;;;;;AAGkB;;;;;;;iBA/FF,cAAA;;;;;;;;;;;;iBAmEA,YAAA;;;;;;;;iBAyBA,gBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-helpers-
|
|
1
|
+
{"version":3,"file":"issue-helpers-CqqYnwYE.js","names":["url: string","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new Error(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new Error(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new Error(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new Error(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new Error(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new Error(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n const validFormatRegex = /^(\\d+|[A-Za-z][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new Error(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new Error(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new Error(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAI,MACR;AAIJ,MAAK,IAAI,WAAW,UAAU,KAAK,IAAI,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;CAIJ,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,SAAQ,OAAO;AACd,QAAM,IAAI,OAAO,iDAAiD;CACnE;CAED,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AAC/D,KAAI,UAAU,SAAS,MAAM,UAAU,SAAS,SAAS,CACvD,OAAM,IAAI,MACR;CAIJ,MAAM,UAAU,UAAU,UAAU,QAAQ,SAAS,GAAG;AACxD,MAAK,QACH,OAAM,IAAI,MAAM;CAIlB,IAAIC;AACJ,KAAI,UAAU,SAAS,gBAAgB,CACrC,oBAAmB,UAAU,UAAU,QAAQ,gBAAgB,GAAG;UACzD,UAAU,SAAS,KAAK,UAAU,OAAO,SAElD,oBAAmB,UAAU;MACxB;EAEL,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI;AAC/C,MAAI,UAAU,SAAS,KAAK,UAAU,OAAO,MAC3C,oBAAmB,UAAU;CAEhC;AAED,MAAK,iBACH,OAAM,IAAI,MACR;AAIJ,QAAO;EAAE;EAAS;CAAkB;AACrC;;;;;;;;;AAUD,SAAgB,aAAaC,SAAiB;CAC5C,IAAI,eAAe;AAEnB,gBAAe,aAAa,QAAQ,WAAW,GAAG;CAIlD,MAAM,mBAAmB;AAEzB,MAAK,iBAAiB,KAAK,aAAa,CACtC,OAAM,IAAI,OACP,4BAA4B,aAAa;AAI9C,QAAO;AACR;;;;;;;;AASD,SAAgB,iBAAiB,EAC/B,UACA,SACA,kBAKD,EAGC;AACA,KAAI,UAAU;EACZ,MAAM,WAAW,eAAe,SAAS;AACzC,OAAK,SACH,OAAM,IAAI,MACR;AAGJ,SAAO;GACL,GAAG;GACH,SAAS,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAI,MAAM;AAGlB,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAI,MAAM;AACjB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/internal/issue-helpers.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Issue parameter parsing and validation utilities.
|
|
4
|
+
*
|
|
5
|
+
* Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
|
|
6
|
+
* extracts organization and issue identifiers, and validates issue ID formats.
|
|
7
|
+
* Provides robust parsing for LLM-generated parameters that may contain formatting
|
|
8
|
+
* inconsistencies.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Extracts the Sentry issue ID and organization slug from a full URL
|
|
12
|
+
*
|
|
13
|
+
* @param url - A full Sentry issue URL
|
|
14
|
+
* @returns Object containing the numeric issue ID and organization slug (if found)
|
|
15
|
+
* @throws Error if the input is invalid
|
|
16
|
+
*/
|
|
17
|
+
declare function extractIssueId(url: string): {
|
|
18
|
+
issueId: string;
|
|
19
|
+
organizationSlug: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Sometimes the LLM will pass in a funky issue shortId. For example it might pass
|
|
23
|
+
* in "CLOUDFLARE-MCP-41." instead of "CLOUDFLARE-MCP-41". This function attempts to
|
|
24
|
+
* fix common issues.
|
|
25
|
+
*
|
|
26
|
+
* @param issueId - The issue ID to parse
|
|
27
|
+
* @returns The parsed issue ID
|
|
28
|
+
*/
|
|
29
|
+
declare function parseIssueId(issueId: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Parses issue parameters from a variety of formats.
|
|
32
|
+
*
|
|
33
|
+
* @param params - Object containing issue URL, issue ID, and organization slug
|
|
34
|
+
* @returns Object containing the parsed organization slug and issue ID
|
|
35
|
+
* @throws Error if the input is invalid
|
|
36
|
+
*/
|
|
37
|
+
declare function parseIssueParams({
|
|
38
|
+
issueUrl,
|
|
39
|
+
issueId,
|
|
40
|
+
organizationSlug
|
|
41
|
+
}: {
|
|
42
|
+
issueUrl?: string | null;
|
|
43
|
+
issueId?: string | null;
|
|
44
|
+
organizationSlug?: string | null;
|
|
45
|
+
}): {
|
|
46
|
+
organizationSlug: string;
|
|
47
|
+
issueId: string;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=issue-helpers.d.ts.map
|
|
50
|
+
//#endregion
|
|
51
|
+
export { extractIssueId, parseIssueId, parseIssueParams };
|
|
52
|
+
//# sourceMappingURL=issue-helpers-Cz01Ipvl.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-helpers-Cz01Ipvl.d.cts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAgBA;AAmEA;AAyBA;;;;;AAGkB;;;;;;;iBA/FF,cAAA;;;;;;;;;;;;iBAmEA,YAAA;;;;;;;;iBAyBA,gBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-helpers-
|
|
1
|
+
{"version":3,"file":"issue-helpers-DyAIO0w6.cjs","names":["url: string","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new Error(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new Error(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new Error(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new Error(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new Error(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new Error(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n const validFormatRegex = /^(\\d+|[A-Za-z][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new Error(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new Error(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new Error(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAI,MACR;AAIJ,MAAK,IAAI,WAAW,UAAU,KAAK,IAAI,WAAW,WAAW,CAC3D,OAAM,IA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without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-
|
|
1
|
+
{"version":3,"file":"logging-LnQMFw-_.js","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,UAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,eAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,iBAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-
|
|
1
|
+
{"version":3,"file":"logging-oIouXrcb.cjs","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,6BAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,kCAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,oCAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
|
package/dist/logging.cjs
CHANGED
package/dist/logging.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_schema = require('./schema-
|
|
2
|
+
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
3
3
|
const zod = require_chunk.__toESM(require("zod"));
|
|
4
4
|
|
|
5
5
|
//#region src/promptDefinitions.ts
|
|
@@ -22,8 +22,8 @@ const PROMPT_DEFINITIONS = [{
|
|
|
22
22
|
description: ["Use this prompt when you need to fix an issue with Seer.", "You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`."].join("\n"),
|
|
23
23
|
paramsSchema: {
|
|
24
24
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
25
|
-
issueId: require_schema.ParamIssueShortId,
|
|
26
|
-
issueUrl: require_schema.ParamIssueUrl
|
|
25
|
+
issueId: require_schema.ParamIssueShortId.optional(),
|
|
26
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
27
27
|
}
|
|
28
28
|
}];
|
|
29
29
|
|
|
@@ -34,4 +34,4 @@ Object.defineProperty(exports, 'PROMPT_DEFINITIONS', {
|
|
|
34
34
|
return PROMPT_DEFINITIONS;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
//# sourceMappingURL=promptDefinitions-
|
|
37
|
+
//# sourceMappingURL=promptDefinitions-C29BWGYg.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-C29BWGYg.cjs","names":["ParamOrganizationSlug"],"sources":["../src/promptDefinitions.ts"],"sourcesContent":["/**\n * Prompt definitions for the Sentry MCP server.\n *\n * Declarative definitions for all MCP prompts that provide multi-step workflows\n * and guided interactions with Sentry. Prompts orchestrate sequences of tool calls\n * with structured guidance for complex tasks.\n *\n * @example Prompt Definition Structure\n * ```typescript\n * {\n * name: \"prompt_name\" as const,\n * description: [\n * \"Brief prompt description and purpose.\",\n * \"Additional context about when to use this prompt.\",\n * ].join(\"\\n\"),\n * paramsSchema: {\n * organizationSlug: ParamOrganizationSlug,\n * optionalParam: ParamSchema.optional(),\n * },\n * }\n * ```\n */\nimport { z } from \"zod\";\nimport {\n ParamIssueShortId,\n ParamIssueUrl,\n ParamOrganizationSlug,\n} from \"./schema\";\n\n/**\n * All MCP prompt definitions for the Sentry server.\n *\n * Used by server.ts to register prompts with the MCP server and by prompts.ts\n * for implementation handlers. Each definition includes name, description, and\n * Zod parameter schema for multi-step workflows.\n */\nexport const PROMPT_DEFINITIONS = [\n {\n name: \"find_errors_in_file\" as const,\n description: [\n \"Use this prompt when you need to find errors in Sentry for a given file.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n filename: z.string().describe(\"The filename to search for errors in.\"),\n },\n },\n {\n name: \"fix_issue_with_seer\" as const,\n description: [\n \"Use this prompt when you need to fix an issue with Seer.\",\n \"You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAa,qBAAqB,CAChC;CACE,MAAM;CACN,aAAa,CACX,0EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkBA;EAClB,UAAU,MAAE,QAAQ,CAAC,SAAS,wCAAwC;CACvE;AACF,GACD;CACE,MAAM;CACN,aAAa,CACX,4DACA,+EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB,qCAAsB,UAAU;EAClD,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;CACnC;AACF,CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug } from "./schema-
|
|
1
|
+
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug } from "./schema-DtsnsxMl.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/promptDefinitions.ts
|
|
@@ -21,11 +21,11 @@ const PROMPT_DEFINITIONS = [{
|
|
|
21
21
|
description: ["Use this prompt when you need to fix an issue with Seer.", "You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`."].join("\n"),
|
|
22
22
|
paramsSchema: {
|
|
23
23
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
24
|
-
issueId: ParamIssueShortId,
|
|
25
|
-
issueUrl: ParamIssueUrl
|
|
24
|
+
issueId: ParamIssueShortId.optional(),
|
|
25
|
+
issueUrl: ParamIssueUrl.optional()
|
|
26
26
|
}
|
|
27
27
|
}];
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
export { PROMPT_DEFINITIONS };
|
|
31
|
-
//# sourceMappingURL=promptDefinitions-
|
|
31
|
+
//# sourceMappingURL=promptDefinitions-CSKE8T0a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptDefinitions-
|
|
1
|
+
{"version":3,"file":"promptDefinitions-CSKE8T0a.js","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":["/**\n * Prompt definitions for the Sentry MCP server.\n *\n * Declarative definitions for all MCP prompts that provide multi-step workflows\n * and guided interactions with Sentry. Prompts orchestrate sequences of tool calls\n * with structured guidance for complex tasks.\n *\n * @example Prompt Definition Structure\n * ```typescript\n * {\n * name: \"prompt_name\" as const,\n * description: [\n * \"Brief prompt description and purpose.\",\n * \"Additional context about when to use this prompt.\",\n * ].join(\"\\n\"),\n * paramsSchema: {\n * organizationSlug: ParamOrganizationSlug,\n * optionalParam: ParamSchema.optional(),\n * },\n * }\n * ```\n */\nimport { z } from \"zod\";\nimport {\n ParamIssueShortId,\n ParamIssueUrl,\n ParamOrganizationSlug,\n} from \"./schema\";\n\n/**\n * All MCP prompt definitions for the Sentry server.\n *\n * Used by server.ts to register prompts with the MCP server and by prompts.ts\n * for implementation handlers. Each definition includes name, description, and\n * Zod parameter schema for multi-step workflows.\n */\nexport const PROMPT_DEFINITIONS = [\n {\n name: \"find_errors_in_file\" as const,\n description: [\n \"Use this prompt when you need to find errors in Sentry for a given file.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n filename: z.string().describe(\"The filename to search for errors in.\"),\n },\n },\n {\n name: \"fix_issue_with_seer\" as const,\n description: [\n \"Use this prompt when you need to fix an issue with Seer.\",\n \"You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;;;;;;;;AAoCA,MAAa,qBAAqB,CAChC;CACE,MAAM;CACN,aAAa,CACX,0EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB;EAClB,UAAU,EAAE,QAAQ,CAAC,SAAS,wCAAwC;CACvE;AACF,GACD;CACE,MAAM;CACN,aAAa,CACX,4DACA,+EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB,sBAAsB,UAAU;EAClD,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;CACnC;AACF,CACF"}
|
|
@@ -23,12 +23,12 @@ declare const PROMPT_DEFINITIONS: ({
|
|
|
23
23
|
description: string;
|
|
24
24
|
paramsSchema: {
|
|
25
25
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
26
|
-
issueId: z.ZodString
|
|
27
|
-
issueUrl: z.ZodString
|
|
26
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
28
28
|
filename?: undefined;
|
|
29
29
|
};
|
|
30
30
|
})[];
|
|
31
31
|
//# sourceMappingURL=promptDefinitions.d.ts.map
|
|
32
32
|
//#endregion
|
|
33
33
|
export { PROMPT_DEFINITIONS };
|
|
34
|
-
//# sourceMappingURL=promptDefinitions-
|
|
34
|
+
//# sourceMappingURL=promptDefinitions-CVHtYaj8.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-CVHtYaj8.d.cts","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAoCa;;;;sBAuBZ,CAAA,CAAA"}
|
|
@@ -23,12 +23,12 @@ declare const PROMPT_DEFINITIONS: ({
|
|
|
23
23
|
description: string;
|
|
24
24
|
paramsSchema: {
|
|
25
25
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
26
|
-
issueId: z.ZodString
|
|
27
|
-
issueUrl: z.ZodString
|
|
26
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
28
28
|
filename?: undefined;
|
|
29
29
|
};
|
|
30
30
|
})[];
|
|
31
31
|
//# sourceMappingURL=promptDefinitions.d.ts.map
|
|
32
32
|
//#endregion
|
|
33
33
|
export { PROMPT_DEFINITIONS };
|
|
34
|
-
//# sourceMappingURL=promptDefinitions-
|
|
34
|
+
//# sourceMappingURL=promptDefinitions-D3GTBGLr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-D3GTBGLr.d.ts","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAoCa;;;;sBAuBZ,CAAA,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
|
|
1
|
+
require('./constants-ClkMK29-.cjs');
|
|
2
|
+
require('./schema-BpJVmev8.cjs');
|
|
3
|
+
const require_promptDefinitions = require('./promptDefinitions-C29BWGYg.cjs');
|
|
3
4
|
|
|
4
5
|
exports.PROMPT_DEFINITIONS = require_promptDefinitions.PROMPT_DEFINITIONS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions-
|
|
1
|
+
import { PROMPT_DEFINITIONS } from "./promptDefinitions-CVHtYaj8.cjs";
|
|
2
2
|
export { PROMPT_DEFINITIONS };
|