@sentry/mcp-server 0.12.0 → 0.13.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 +4 -2
- package/dist/analyze-issue-with-seer-Bq3kefOr.cjs +169 -0
- package/dist/analyze-issue-with-seer-Bq3kefOr.cjs.map +1 -0
- package/dist/analyze-issue-with-seer-Dk0ZFwN8.js +163 -0
- package/dist/analyze-issue-with-seer-Dk0ZFwN8.js.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-BJS0CChW.cjs +36 -0
- package/dist/api-utils-BJS0CChW.cjs.map +1 -0
- package/dist/api-utils-BcB1cMXS.js +31 -0
- package/dist/api-utils-BcB1cMXS.js.map +1 -0
- package/dist/{client-B7vZ6JMk.cjs → client-BNTsOycD.cjs} +55 -7
- package/dist/client-BNTsOycD.cjs.map +1 -0
- package/dist/{client-CAoHZbyK.js → client-BbamPqV4.js} +55 -7
- package/dist/client-BbamPqV4.js.map +1 -0
- package/dist/{client-DkY0ifZf.d.cts → client-Dae1ZwWb.d.cts} +38 -4
- package/dist/client-Dae1ZwWb.d.cts.map +1 -0
- package/dist/{client-4jq_wVgn.d.ts → client-qyEu8fvj.d.ts} +40 -6
- package/dist/client-qyEu8fvj.d.ts.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-B3L8iWno.js +59 -0
- package/dist/create-dsn-B3L8iWno.js.map +1 -0
- package/dist/create-dsn-CVPtt_Es.cjs +65 -0
- package/dist/create-dsn-CVPtt_Es.cjs.map +1 -0
- package/dist/create-project-B_6a6okf.cjs +82 -0
- package/dist/create-project-B_6a6okf.cjs.map +1 -0
- package/dist/create-project-DdIXMvWI.js +76 -0
- package/dist/create-project-DdIXMvWI.js.map +1 -0
- package/dist/create-team-BarRdaZK.js +47 -0
- package/dist/create-team-BarRdaZK.js.map +1 -0
- package/dist/create-team-C1DP5Z1r.cjs +53 -0
- package/dist/create-team-C1DP5Z1r.cjs.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-B-a92ObC.d.ts +14 -0
- package/dist/fetch-utils-B-a92ObC.d.ts.map +1 -0
- package/dist/fetch-utils-BMKjO-cc.js +29 -0
- package/dist/fetch-utils-BMKjO-cc.js.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-BDJWY6nZ.cjs +58 -0
- package/dist/find-dsns-BDJWY6nZ.cjs.map +1 -0
- package/dist/find-dsns-BPbblgrn.js +52 -0
- package/dist/find-dsns-BPbblgrn.js.map +1 -0
- package/dist/find-errors-B9wLxXA0.js +91 -0
- package/dist/find-errors-B9wLxXA0.js.map +1 -0
- package/dist/find-errors-DnFs3PaH.cjs +97 -0
- package/dist/find-errors-DnFs3PaH.cjs.map +1 -0
- package/dist/find-issues-BI1tI3cJ.js +92 -0
- package/dist/find-issues-BI1tI3cJ.js.map +1 -0
- package/dist/find-issues-CwPbwRXK.cjs +98 -0
- package/dist/find-issues-CwPbwRXK.cjs.map +1 -0
- package/dist/find-organizations-CdiouW48.js +45 -0
- package/dist/find-organizations-CdiouW48.js.map +1 -0
- package/dist/find-organizations-DqS6zoTK.cjs +50 -0
- package/dist/find-organizations-DqS6zoTK.cjs.map +1 -0
- package/dist/find-projects-Ba6cdX7n.cjs +45 -0
- package/dist/find-projects-Ba6cdX7n.cjs.map +1 -0
- package/dist/find-projects-Ccfxv47h.js +39 -0
- package/dist/find-projects-Ccfxv47h.js.map +1 -0
- package/dist/find-releases-CFl86XMT.cjs +99 -0
- package/dist/find-releases-CFl86XMT.cjs.map +1 -0
- package/dist/find-releases-CFoGytN-.js +93 -0
- package/dist/find-releases-CFoGytN-.js.map +1 -0
- package/dist/find-tags-ORtYLH5b.js +39 -0
- package/dist/find-tags-ORtYLH5b.js.map +1 -0
- package/dist/find-tags-h2o0BKWO.cjs +45 -0
- package/dist/find-tags-h2o0BKWO.cjs.map +1 -0
- package/dist/find-teams-DUcDfSOl.cjs +45 -0
- package/dist/find-teams-DUcDfSOl.cjs.map +1 -0
- package/dist/find-teams-hreVp1nw.js +39 -0
- package/dist/find-teams-hreVp1nw.js.map +1 -0
- package/dist/find-transactions-BehUqQYs.js +83 -0
- package/dist/find-transactions-BehUqQYs.js.map +1 -0
- package/dist/find-transactions-BkPscam3.cjs +89 -0
- package/dist/find-transactions-BkPscam3.cjs.map +1 -0
- package/dist/formatting-B-u5CbYn.d.ts +47 -0
- package/dist/formatting-B-u5CbYn.d.ts.map +1 -0
- package/dist/formatting-BlMiQa9i.cjs +388 -0
- package/dist/formatting-BlMiQa9i.cjs.map +1 -0
- package/dist/formatting-Di1X9Jn3.d.cts +47 -0
- package/dist/formatting-Di1X9Jn3.d.cts.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-AuAW_qr9.cjs +86 -0
- package/dist/get-doc-AuAW_qr9.cjs.map +1 -0
- package/dist/get-doc-BtxZOy7y.js +80 -0
- package/dist/get-doc-BtxZOy7y.js.map +1 -0
- package/dist/get-event-attachment-Bq5lkaKV.cjs +144 -0
- package/dist/get-event-attachment-Bq5lkaKV.cjs.map +1 -0
- package/dist/get-event-attachment-DwAl54zv.js +138 -0
- package/dist/get-event-attachment-DwAl54zv.js.map +1 -0
- package/dist/get-issue-details-DrpD5LlK.js +104 -0
- package/dist/get-issue-details-DrpD5LlK.js.map +1 -0
- package/dist/get-issue-details-qGwu18JX.cjs +110 -0
- package/dist/get-issue-details-qGwu18JX.cjs.map +1 -0
- package/dist/index.cjs +60 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +62 -23
- 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-BOn4g7rx.d.ts +52 -0
- package/dist/issue-helpers-BOn4g7rx.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-D5FSQckL.d.ts → promptDefinitions-6xelipaz.d.ts} +3 -3
- package/dist/promptDefinitions-6xelipaz.d.ts.map +1 -0
- 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.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-B5BpplNK.d.ts} +3632 -573
- package/dist/schema-B5BpplNK.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-BJv7kREf.d.cts → schema-Dt-HKnd_.d.cts} +3567 -508
- package/dist/schema-Dt-HKnd_.d.cts.map +1 -0
- 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.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-CrMdRDJy.js +102 -0
- package/dist/search-docs-CrMdRDJy.js.map +1 -0
- package/dist/search-docs-VhefTOOH.cjs +108 -0
- package/dist/search-docs-VhefTOOH.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-CHG27fcn.cjs} +104 -57
- package/dist/server-CHG27fcn.cjs.map +1 -0
- package/dist/{server-C7cHq_pc.js → server-DeuBftc5.js} +104 -57
- package/dist/server-DeuBftc5.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-B73CCTly.cjs → stdio-BtVdTwx-.cjs} +17 -7
- package/dist/stdio-BtVdTwx-.cjs.map +1 -0
- package/dist/{stdio-ZQLC-i5Q.js → stdio-DIuLW5EE.js} +17 -7
- package/dist/stdio-DIuLW5EE.js.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-BiZ7ZDKf.cjs +53 -0
- package/dist/tools-BiZ7ZDKf.cjs.map +1 -0
- package/dist/tools-DGF9GhbP.js +48 -0
- package/dist/tools-DGF9GhbP.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-B2qOfefC.d.ts +29 -0
- package/dist/types-B2qOfefC.d.ts.map +1 -0
- package/dist/{types-Daq2fm0E.d.ts → types-Br0saqtE.d.ts} +5 -3
- package/dist/types-Br0saqtE.d.ts.map +1 -0
- package/dist/{types-NIQW7KyF.d.cts → types-C3pRFQyA.d.cts} +5 -3
- package/dist/types-C3pRFQyA.d.cts.map +1 -0
- package/dist/types-CCHsZshF.js +0 -0
- package/dist/types-CYjev2Ep.d.cts +29 -0
- package/dist/types-CYjev2Ep.d.cts.map +1 -0
- package/dist/types-CZaMk5Yg.d.cts +29 -0
- package/dist/types-CZaMk5Yg.d.cts.map +1 -0
- package/dist/types-D5KkaSjc.d.ts +29 -0
- package/dist/types-D5KkaSjc.d.ts.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/update-issue-Bz-u_Yaa.cjs +115 -0
- package/dist/update-issue-Bz-u_Yaa.cjs.map +1 -0
- package/dist/update-issue-DN80uuKU.js +109 -0
- package/dist/update-issue-DN80uuKU.js.map +1 -0
- package/dist/update-project-5j-SOHWU.js +120 -0
- package/dist/update-project-5j-SOHWU.js.map +1 -0
- package/dist/update-project-C7Xbmhqg.cjs +126 -0
- package/dist/update-project-C7Xbmhqg.cjs.map +1 -0
- package/dist/version-DvMKCu-i.js +6 -0
- package/dist/version-DvMKCu-i.js.map +1 -0
- package/dist/{version-BNmubeQI.cjs → version-Dyz6_b54.cjs} +2 -2
- package/dist/version-Dyz6_b54.cjs.map +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-qIbcECMA.cjs +28 -0
- package/dist/whoami-qIbcECMA.cjs.map +1 -0
- package/dist/whoami-raA70UBD.js +23 -0
- package/dist/whoami-raA70UBD.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-BrojxuhJ.d.ts} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
+
const require_api_utils = require('./api-utils-BJS0CChW.cjs');
|
|
4
|
+
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
+
const require_logging = require('./logging-oIouXrcb.cjs');
|
|
6
|
+
const zod = require_chunk.__toESM(require("zod"));
|
|
7
|
+
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
|
+
|
|
9
|
+
//#region src/tools/create-project.ts
|
|
10
|
+
var create_project_default = require_defineTool.defineTool({
|
|
11
|
+
name: "create_project",
|
|
12
|
+
description: [
|
|
13
|
+
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
14
|
+
"",
|
|
15
|
+
"Be careful when using this tool!",
|
|
16
|
+
"",
|
|
17
|
+
"Use this tool when you need to:",
|
|
18
|
+
"- Create a new project in a Sentry organization",
|
|
19
|
+
"",
|
|
20
|
+
"<examples>",
|
|
21
|
+
"### Create a new javascript project in the 'my-organization' organization",
|
|
22
|
+
"",
|
|
23
|
+
"```",
|
|
24
|
+
"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')",
|
|
25
|
+
"```",
|
|
26
|
+
"",
|
|
27
|
+
"</examples>",
|
|
28
|
+
"",
|
|
29
|
+
"<hints>",
|
|
30
|
+
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.",
|
|
31
|
+
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
32
|
+
"</hints>"
|
|
33
|
+
].join("\n"),
|
|
34
|
+
inputSchema: {
|
|
35
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
36
|
+
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
37
|
+
teamSlug: require_schema.ParamTeamSlug,
|
|
38
|
+
name: zod.z.string().trim().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
39
|
+
platform: require_schema.ParamPlatform.optional()
|
|
40
|
+
},
|
|
41
|
+
async handler(params, context) {
|
|
42
|
+
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
43
|
+
const organizationSlug = params.organizationSlug;
|
|
44
|
+
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
45
|
+
(0, __sentry_core.setTag)("team.slug", params.teamSlug);
|
|
46
|
+
const project = await apiService.createProject({
|
|
47
|
+
organizationSlug,
|
|
48
|
+
teamSlug: params.teamSlug,
|
|
49
|
+
name: params.name,
|
|
50
|
+
platform: params.platform
|
|
51
|
+
});
|
|
52
|
+
let clientKey = null;
|
|
53
|
+
try {
|
|
54
|
+
clientKey = await apiService.createClientKey({
|
|
55
|
+
organizationSlug,
|
|
56
|
+
projectSlug: project.slug,
|
|
57
|
+
name: "Default"
|
|
58
|
+
});
|
|
59
|
+
} catch (err) {
|
|
60
|
+
require_logging.logError(err);
|
|
61
|
+
}
|
|
62
|
+
let output = `# New Project in **${organizationSlug}**\n\n`;
|
|
63
|
+
output += `**ID**: ${project.id}\n`;
|
|
64
|
+
output += `**Slug**: ${project.slug}\n`;
|
|
65
|
+
output += `**Name**: ${project.name}\n`;
|
|
66
|
+
if (clientKey) output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\n\n`;
|
|
67
|
+
else output += "**SENTRY_DSN**: There was an error fetching this value.\n\n";
|
|
68
|
+
output += "# Using this information\n\n";
|
|
69
|
+
output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\n`;
|
|
70
|
+
output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\n`;
|
|
71
|
+
return output;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
Object.defineProperty(exports, 'create_project_default', {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return create_project_default;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=create-project-B_6a6okf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-project-B_6a6okf.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,UAAUC;EACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,4BAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-BcB1cMXS.js";
|
|
3
|
+
import { ParamOrganizationSlug, ParamPlatform, ParamRegionUrl, ParamTeamSlug } from "./schema-DtsnsxMl.js";
|
|
4
|
+
import { logError } from "./logging-LnQMFw-_.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { setTag } from "@sentry/core";
|
|
7
|
+
|
|
8
|
+
//#region src/tools/create-project.ts
|
|
9
|
+
var create_project_default = defineTool({
|
|
10
|
+
name: "create_project",
|
|
11
|
+
description: [
|
|
12
|
+
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
13
|
+
"",
|
|
14
|
+
"Be careful when using this tool!",
|
|
15
|
+
"",
|
|
16
|
+
"Use this tool when you need to:",
|
|
17
|
+
"- Create a new project in a Sentry organization",
|
|
18
|
+
"",
|
|
19
|
+
"<examples>",
|
|
20
|
+
"### Create a new javascript project in the 'my-organization' organization",
|
|
21
|
+
"",
|
|
22
|
+
"```",
|
|
23
|
+
"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')",
|
|
24
|
+
"```",
|
|
25
|
+
"",
|
|
26
|
+
"</examples>",
|
|
27
|
+
"",
|
|
28
|
+
"<hints>",
|
|
29
|
+
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.",
|
|
30
|
+
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
31
|
+
"</hints>"
|
|
32
|
+
].join("\n"),
|
|
33
|
+
inputSchema: {
|
|
34
|
+
organizationSlug: ParamOrganizationSlug,
|
|
35
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
36
|
+
teamSlug: ParamTeamSlug,
|
|
37
|
+
name: z.string().trim().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
38
|
+
platform: ParamPlatform.optional()
|
|
39
|
+
},
|
|
40
|
+
async handler(params, context) {
|
|
41
|
+
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
42
|
+
const organizationSlug = params.organizationSlug;
|
|
43
|
+
setTag("organization.slug", organizationSlug);
|
|
44
|
+
setTag("team.slug", params.teamSlug);
|
|
45
|
+
const project = await apiService.createProject({
|
|
46
|
+
organizationSlug,
|
|
47
|
+
teamSlug: params.teamSlug,
|
|
48
|
+
name: params.name,
|
|
49
|
+
platform: params.platform
|
|
50
|
+
});
|
|
51
|
+
let clientKey = null;
|
|
52
|
+
try {
|
|
53
|
+
clientKey = await apiService.createClientKey({
|
|
54
|
+
organizationSlug,
|
|
55
|
+
projectSlug: project.slug,
|
|
56
|
+
name: "Default"
|
|
57
|
+
});
|
|
58
|
+
} catch (err) {
|
|
59
|
+
logError(err);
|
|
60
|
+
}
|
|
61
|
+
let output = `# New Project in **${organizationSlug}**\n\n`;
|
|
62
|
+
output += `**ID**: ${project.id}\n`;
|
|
63
|
+
output += `**Slug**: ${project.slug}\n`;
|
|
64
|
+
output += `**Name**: ${project.name}\n`;
|
|
65
|
+
if (clientKey) output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\n\n`;
|
|
66
|
+
else output += "**SENTRY_DSN**: There was an error fetching this value.\n\n";
|
|
67
|
+
output += "# Using this information\n\n";
|
|
68
|
+
output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\n`;
|
|
69
|
+
output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\n`;
|
|
70
|
+
return output;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { create_project_default };
|
|
76
|
+
//# sourceMappingURL=create-project-DdIXMvWI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-project-DdIXMvWI.js","names":["context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAcA,6BAAe,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;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,UAAU;EACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,YAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-BcB1cMXS.js";
|
|
3
|
+
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { setTag } from "@sentry/core";
|
|
6
|
+
|
|
7
|
+
//#region src/tools/create-team.ts
|
|
8
|
+
var create_team_default = defineTool({
|
|
9
|
+
name: "create_team",
|
|
10
|
+
description: [
|
|
11
|
+
"Create a new team in Sentry.",
|
|
12
|
+
"",
|
|
13
|
+
"Be careful when using this tool!",
|
|
14
|
+
"",
|
|
15
|
+
"Use this tool when you need to:",
|
|
16
|
+
"- Create a new team in a Sentry organization",
|
|
17
|
+
"",
|
|
18
|
+
"<hints>",
|
|
19
|
+
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
20
|
+
"</hints>"
|
|
21
|
+
].join("\n"),
|
|
22
|
+
inputSchema: {
|
|
23
|
+
organizationSlug: ParamOrganizationSlug,
|
|
24
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
25
|
+
name: z.string().trim().describe("The name of the team to create.")
|
|
26
|
+
},
|
|
27
|
+
async handler(params, context) {
|
|
28
|
+
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
29
|
+
const organizationSlug = params.organizationSlug;
|
|
30
|
+
setTag("organization.slug", organizationSlug);
|
|
31
|
+
const team = await apiService.createTeam({
|
|
32
|
+
organizationSlug,
|
|
33
|
+
name: params.name
|
|
34
|
+
});
|
|
35
|
+
let output = `# New Team in **${organizationSlug}**\n\n`;
|
|
36
|
+
output += `**ID**: ${team.id}\n`;
|
|
37
|
+
output += `**Slug**: ${team.slug}\n`;
|
|
38
|
+
output += `**Name**: ${team.name}\n`;
|
|
39
|
+
output += "# Using this information\n\n";
|
|
40
|
+
output += `- You should always inform the user of the Team Slug value.\n`;
|
|
41
|
+
return output;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { create_team_default };
|
|
47
|
+
//# sourceMappingURL=create-team-BarRdaZK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-team-BarRdaZK.js","names":["context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,0BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
+
const require_api_utils = require('./api-utils-BJS0CChW.cjs');
|
|
4
|
+
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
+
const zod = require_chunk.__toESM(require("zod"));
|
|
6
|
+
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
|
+
|
|
8
|
+
//#region src/tools/create-team.ts
|
|
9
|
+
var create_team_default = require_defineTool.defineTool({
|
|
10
|
+
name: "create_team",
|
|
11
|
+
description: [
|
|
12
|
+
"Create a new team in Sentry.",
|
|
13
|
+
"",
|
|
14
|
+
"Be careful when using this tool!",
|
|
15
|
+
"",
|
|
16
|
+
"Use this tool when you need to:",
|
|
17
|
+
"- Create a new team in a Sentry organization",
|
|
18
|
+
"",
|
|
19
|
+
"<hints>",
|
|
20
|
+
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
21
|
+
"</hints>"
|
|
22
|
+
].join("\n"),
|
|
23
|
+
inputSchema: {
|
|
24
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
25
|
+
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
26
|
+
name: zod.z.string().trim().describe("The name of the team to create.")
|
|
27
|
+
},
|
|
28
|
+
async handler(params, context) {
|
|
29
|
+
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
30
|
+
const organizationSlug = params.organizationSlug;
|
|
31
|
+
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
32
|
+
const team = await apiService.createTeam({
|
|
33
|
+
organizationSlug,
|
|
34
|
+
name: params.name
|
|
35
|
+
});
|
|
36
|
+
let output = `# New Team in **${organizationSlug}**\n\n`;
|
|
37
|
+
output += `**ID**: ${team.id}\n`;
|
|
38
|
+
output += `**Slug**: ${team.slug}\n`;
|
|
39
|
+
output += `**Name**: ${team.name}\n`;
|
|
40
|
+
output += "# Using this information\n\n";
|
|
41
|
+
output += `- You should always inform the user of the Team Slug value.\n`;
|
|
42
|
+
return output;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
Object.defineProperty(exports, 'create_team_default', {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () {
|
|
50
|
+
return create_team_default;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=create-team-C1DP5Z1r.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-team-C1DP5Z1r.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAOA,0BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineTool-77H4nSna.js","names":["config: ToolConfig<TSchema>"],"sources":["../src/tools/utils/defineTool.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { ToolConfig } from \"../types\";\n\nexport function defineTool<TSchema extends Record<string, z.ZodType>>(\n config: ToolConfig<TSchema>,\n) {\n return config;\n}\n"],"mappings":";AAGA,SAAgB,WACdA,QACA;AACA,QAAO;AACR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/tools/utils/defineTool.ts
|
|
3
|
+
function defineTool(config) {
|
|
4
|
+
return config;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
Object.defineProperty(exports, 'defineTool', {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return defineTool;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=defineTool-lWNTzWl_.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineTool-lWNTzWl_.cjs","names":["config: ToolConfig<TSchema>"],"sources":["../src/tools/utils/defineTool.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { ToolConfig } from \"../types\";\n\nexport function defineTool<TSchema extends Record<string, z.ZodType>>(\n config: ToolConfig<TSchema>,\n) {\n return config;\n}\n"],"mappings":";;AAGA,SAAgB,WACdA,QACA;AACA,QAAO;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-CIoxzIug.js","names":["message: string"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"UserInputError\";\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiB;AAC3B,QAAM,QAAQ;AACd,OAAK,OAAO;CACb;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-YmiXLOyx.cjs","names":["message: string"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"UserInputError\";\n }\n}\n"],"mappings":";;;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiB;AAC3B,QAAM,QAAQ;AACd,OAAK,OAAO;CACb;AACF"}
|
package/dist/errors.cjs
CHANGED
package/dist/errors.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
declare function fetchWithTimeout(url: string | URL, options?: RequestInit, timeoutMs?: number): Promise<Response>;
|
|
11
|
+
//# sourceMappingURL=fetch-utils.d.ts.map
|
|
12
|
+
//#endregion
|
|
13
|
+
export { fetchWithTimeout };
|
|
14
|
+
//# sourceMappingURL=fetch-utils-B-a92ObC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-B-a92ObC.d.ts","names":[],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;AAIU;iBAJY,gBAAA,eACN,eACL,kCAER,QAAQ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
async function fetchWithTimeout(url, options = {}, timeoutMs = 3e4) {
|
|
11
|
+
const controller = new AbortController();
|
|
12
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
13
|
+
try {
|
|
14
|
+
const response = await fetch(url, {
|
|
15
|
+
...options,
|
|
16
|
+
signal: controller.signal
|
|
17
|
+
});
|
|
18
|
+
return response;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
if (error instanceof Error && error.name === "AbortError") throw new Error(`Request timeout after ${timeoutMs}ms`);
|
|
21
|
+
throw error;
|
|
22
|
+
} finally {
|
|
23
|
+
clearTimeout(timeoutId);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { fetchWithTimeout };
|
|
29
|
+
//# sourceMappingURL=fetch-utils-BMKjO-cc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-BMKjO-cc.js","names":["url: string | URL","options: RequestInit"],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":["/**\n * Fetch with timeout using AbortController\n * @param url - The URL to fetch\n * @param options - Standard fetch options\n * @param timeoutMs - Timeout in milliseconds (default: 30000)\n * @returns Promise<Response>\n * @throws Error if request times out\n */\nexport async function fetchWithTimeout(\n url: string | URL,\n options: RequestInit = {},\n timeoutMs = 30000,\n): Promise<Response> {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetch(url, {\n ...options,\n signal: controller.signal,\n });\n return response;\n } catch (error) {\n if (error instanceof Error && error.name === \"AbortError\") {\n throw new Error(`Request timeout after ${timeoutMs}ms`);\n }\n throw error;\n } finally {\n clearTimeout(timeoutId);\n }\n}\n"],"mappings":";;;;;;;;;AAQA,eAAsB,iBACpBA,KACAC,UAAuB,CAAE,GACzB,YAAY,KACO;CACnB,MAAM,aAAa,IAAI;CACvB,MAAM,YAAY,WAAW,MAAM,WAAW,OAAO,EAAE,UAAU;AAEjE,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,GAAG;GACH,QAAQ,WAAW;EACpB,EAAC;AACF,SAAO;CACR,SAAQ,OAAO;AACd,MAAI,iBAAiB,SAAS,MAAM,SAAS,aAC3C,OAAM,IAAI,OAAO,wBAAwB,UAAU;AAErD,QAAM;CACP,UAAS;AACR,eAAa,UAAU;CACxB;AACF"}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
declare function fetchWithTimeout(url: string | URL, options?: RequestInit, timeoutMs?: number): Promise<Response>;
|
|
11
|
+
//# sourceMappingURL=fetch-utils.d.ts.map
|
|
12
|
+
//#endregion
|
|
13
|
+
export { fetchWithTimeout };
|
|
14
|
+
//# sourceMappingURL=fetch-utils-DzdRW4Yd.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-DzdRW4Yd.d.cts","names":[],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;AAIU;iBAJY,gBAAA,eACN,eACL,kCAER,QAAQ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/internal/fetch-utils.ts
|
|
3
|
+
/**
|
|
4
|
+
* Fetch with timeout using AbortController
|
|
5
|
+
* @param url - The URL to fetch
|
|
6
|
+
* @param options - Standard fetch options
|
|
7
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
8
|
+
* @returns Promise<Response>
|
|
9
|
+
* @throws Error if request times out
|
|
10
|
+
*/
|
|
11
|
+
async function fetchWithTimeout(url, options = {}, timeoutMs = 3e4) {
|
|
12
|
+
const controller = new AbortController();
|
|
13
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetch(url, {
|
|
16
|
+
...options,
|
|
17
|
+
signal: controller.signal
|
|
18
|
+
});
|
|
19
|
+
return response;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
if (error instanceof Error && error.name === "AbortError") throw new Error(`Request timeout after ${timeoutMs}ms`);
|
|
22
|
+
throw error;
|
|
23
|
+
} finally {
|
|
24
|
+
clearTimeout(timeoutId);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
Object.defineProperty(exports, 'fetchWithTimeout', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return fetchWithTimeout;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=fetch-utils-oab6uNp3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-oab6uNp3.cjs","names":["url: string | URL","options: RequestInit"],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":["/**\n * Fetch with timeout using AbortController\n * @param url - The URL to fetch\n * @param options - Standard fetch options\n * @param timeoutMs - Timeout in milliseconds (default: 30000)\n * @returns Promise<Response>\n * @throws Error if request times out\n */\nexport async function fetchWithTimeout(\n url: string | URL,\n options: RequestInit = {},\n timeoutMs = 30000,\n): Promise<Response> {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetch(url, {\n ...options,\n signal: controller.signal,\n });\n return response;\n } catch (error) {\n if (error instanceof Error && error.name === \"AbortError\") {\n throw new Error(`Request timeout after ${timeoutMs}ms`);\n }\n throw error;\n } finally {\n clearTimeout(timeoutId);\n }\n}\n"],"mappings":";;;;;;;;;;AAQA,eAAsB,iBACpBA,KACAC,UAAuB,CAAE,GACzB,YAAY,KACO;CACnB,MAAM,aAAa,IAAI;CACvB,MAAM,YAAY,WAAW,MAAM,WAAW,OAAO,EAAE,UAAU;AAEjE,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,GAAG;GACH,QAAQ,WAAW;EACpB,EAAC;AACF,SAAO;CACR,SAAQ,OAAO;AACd,MAAI,iBAAiB,SAAS,MAAM,SAAS,aAC3C,OAAM,IAAI,OAAO,wBAAwB,UAAU;AAErD,QAAM;CACP,UAAS;AACR,eAAa,UAAU;CACxB;AACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
+
const require_api_utils = require('./api-utils-BJS0CChW.cjs');
|
|
4
|
+
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
+
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
|
+
|
|
7
|
+
//#region src/tools/find-dsns.ts
|
|
8
|
+
var find_dsns_default = require_defineTool.defineTool({
|
|
9
|
+
name: "find_dsns",
|
|
10
|
+
description: [
|
|
11
|
+
"List all Sentry DSNs for a specific project.",
|
|
12
|
+
"",
|
|
13
|
+
"Use this tool when you need to:",
|
|
14
|
+
"- Retrieve a SENTRY_DSN for a specific project",
|
|
15
|
+
"",
|
|
16
|
+
"<hints>",
|
|
17
|
+
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
18
|
+
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.",
|
|
19
|
+
"</hints>"
|
|
20
|
+
].join("\n"),
|
|
21
|
+
inputSchema: {
|
|
22
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
23
|
+
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
24
|
+
projectSlug: require_schema.ParamProjectSlug
|
|
25
|
+
},
|
|
26
|
+
async handler(params, context) {
|
|
27
|
+
const apiService = require_api_utils.apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
28
|
+
const organizationSlug = params.organizationSlug;
|
|
29
|
+
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
30
|
+
(0, __sentry_core.setTag)("project.slug", params.projectSlug);
|
|
31
|
+
const clientKeys = await apiService.listClientKeys({
|
|
32
|
+
organizationSlug,
|
|
33
|
+
projectSlug: params.projectSlug
|
|
34
|
+
});
|
|
35
|
+
let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\n\n`;
|
|
36
|
+
if (clientKeys.length === 0) {
|
|
37
|
+
output += "No DSNs were found.\n\nYou can create new one using the `create_dsn` tool.";
|
|
38
|
+
return output;
|
|
39
|
+
}
|
|
40
|
+
for (const clientKey of clientKeys) {
|
|
41
|
+
output += `## ${clientKey.name}\n`;
|
|
42
|
+
output += `**ID**: ${clientKey.id}\n`;
|
|
43
|
+
output += `**DSN**: ${clientKey.dsn.public}\n\n`;
|
|
44
|
+
}
|
|
45
|
+
output += "# Using this information\n\n";
|
|
46
|
+
output += "- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\n";
|
|
47
|
+
return output;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
Object.defineProperty(exports, 'find_dsns_default', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return find_dsns_default;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=find-dsns-BDJWY6nZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-dsns-BDJWY6nZ.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,wBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;CACd;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-BcB1cMXS.js";
|
|
3
|
+
import { ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
|
+
import { setTag } from "@sentry/core";
|
|
5
|
+
|
|
6
|
+
//#region src/tools/find-dsns.ts
|
|
7
|
+
var find_dsns_default = defineTool({
|
|
8
|
+
name: "find_dsns",
|
|
9
|
+
description: [
|
|
10
|
+
"List all Sentry DSNs for a specific project.",
|
|
11
|
+
"",
|
|
12
|
+
"Use this tool when you need to:",
|
|
13
|
+
"- Retrieve a SENTRY_DSN for a specific project",
|
|
14
|
+
"",
|
|
15
|
+
"<hints>",
|
|
16
|
+
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
17
|
+
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.",
|
|
18
|
+
"</hints>"
|
|
19
|
+
].join("\n"),
|
|
20
|
+
inputSchema: {
|
|
21
|
+
organizationSlug: ParamOrganizationSlug,
|
|
22
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
23
|
+
projectSlug: ParamProjectSlug
|
|
24
|
+
},
|
|
25
|
+
async handler(params, context) {
|
|
26
|
+
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
27
|
+
const organizationSlug = params.organizationSlug;
|
|
28
|
+
setTag("organization.slug", organizationSlug);
|
|
29
|
+
setTag("project.slug", params.projectSlug);
|
|
30
|
+
const clientKeys = await apiService.listClientKeys({
|
|
31
|
+
organizationSlug,
|
|
32
|
+
projectSlug: params.projectSlug
|
|
33
|
+
});
|
|
34
|
+
let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\n\n`;
|
|
35
|
+
if (clientKeys.length === 0) {
|
|
36
|
+
output += "No DSNs were found.\n\nYou can create new one using the `create_dsn` tool.";
|
|
37
|
+
return output;
|
|
38
|
+
}
|
|
39
|
+
for (const clientKey of clientKeys) {
|
|
40
|
+
output += `## ${clientKey.name}\n`;
|
|
41
|
+
output += `**ID**: ${clientKey.id}\n`;
|
|
42
|
+
output += `**DSN**: ${clientKey.dsn.public}\n\n`;
|
|
43
|
+
}
|
|
44
|
+
output += "# Using this information\n\n";
|
|
45
|
+
output += "- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\n";
|
|
46
|
+
return output;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { find_dsns_default };
|
|
52
|
+
//# sourceMappingURL=find-dsns-BPbblgrn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-dsns-BPbblgrn.js","names":["context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;AAWA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|