@sentry/mcp-server 0.11.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 +10 -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 +9 -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-BNTsOycD.cjs +620 -0
- package/dist/client-BNTsOycD.cjs.map +1 -0
- package/dist/client-BbamPqV4.js +609 -0
- package/dist/client-BbamPqV4.js.map +1 -0
- package/dist/client-Dae1ZwWb.d.cts +556 -0
- package/dist/client-Dae1ZwWb.d.cts.map +1 -0
- package/dist/client-qyEu8fvj.d.ts +556 -0
- 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 -24
- package/dist/internal/formatting.d.ts +6 -25
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +2 -44
- package/dist/internal/issue-helpers.d.ts +2 -44
- 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-CSNNO03f.js → issue-helpers-CqqYnwYE.js} +9 -1
- package/dist/issue-helpers-CqqYnwYE.js.map +1 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
- package/dist/{issue-helpers-71XgJVXC.cjs → issue-helpers-DyAIO0w6.cjs} +9 -1
- package/dist/issue-helpers-DyAIO0w6.cjs.map +1 -0
- 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-LnQMFw-_.js.map +1 -0
- package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
- package/dist/logging-oIouXrcb.cjs.map +1 -0
- package/dist/logging.cjs +1 -1
- package/dist/logging.d.cts +30 -1
- package/dist/logging.d.cts.map +1 -1
- package/dist/logging.d.ts +30 -1
- package/dist/logging.d.ts.map +1 -1
- package/dist/logging.js +1 -1
- package/dist/{promptDefinitions-H0q1_X-K.d.ts → promptDefinitions-6xelipaz.d.ts} +11 -3
- package/dist/promptDefinitions-6xelipaz.d.ts.map +1 -0
- package/dist/{promptDefinitions-D3ll3qCd.cjs → promptDefinitions-C29BWGYg.cjs} +11 -4
- package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
- package/dist/{promptDefinitions-aKmUZWWO.js → promptDefinitions-CSKE8T0a.js} +11 -4
- package/dist/promptDefinitions-CSKE8T0a.js.map +1 -0
- package/dist/{promptDefinitions-DMucOchd.d.cts → promptDefinitions-CVHtYaj8.d.cts} +11 -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-CzD0yl7Z.js → prompts-C8Y9w5c4.js} +9 -7
- package/dist/prompts-C8Y9w5c4.js.map +1 -0
- package/dist/{prompts-DMwoay8l.cjs → prompts-Df3i1XSB.cjs} +8 -7
- package/dist/prompts-Df3i1XSB.cjs.map +1 -0
- package/dist/prompts.cjs +2 -1
- 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 -1
- 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 +30 -7
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +30 -7
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +4 -2
- package/dist/{schema-DqxkW9Tx.d.cts → schema-B5BpplNK.d.ts} +3746 -575
- package/dist/schema-B5BpplNK.d.ts.map +1 -0
- package/dist/{schema-DkyWSqp_.cjs → schema-B_cMyyJJ.cjs} +130 -13
- package/dist/schema-B_cMyyJJ.cjs.map +1 -0
- package/dist/{schema-B8lT632E.cjs → schema-BpJVmev8.cjs} +51 -2
- package/dist/schema-BpJVmev8.cjs.map +1 -0
- package/dist/{schema-C-MLkWMc.d.ts → schema-Dt-HKnd_.d.cts} +3674 -503
- package/dist/schema-Dt-HKnd_.d.cts.map +1 -0
- package/dist/schema-DtsnsxMl.js +36 -0
- package/dist/schema-DtsnsxMl.js.map +1 -0
- package/dist/{schema-CewAKS9A.js → schema-WDk5Yqww.js} +83 -14
- package/dist/schema-WDk5Yqww.js.map +1 -0
- package/dist/schema.cjs +7 -1
- package/dist/schema.d.cts +16 -3
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +16 -3
- 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-CHG27fcn.cjs +243 -0
- package/dist/server-CHG27fcn.cjs.map +1 -0
- package/dist/server-DeuBftc5.js +237 -0
- package/dist/server-DeuBftc5.js.map +1 -0
- package/dist/server.cjs +40 -13
- package/dist/server.d.cts +22 -4
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +22 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -15
- package/dist/stdio-BtVdTwx-.cjs +57 -0
- package/dist/stdio-BtVdTwx-.cjs.map +1 -0
- package/dist/stdio-DIuLW5EE.js +51 -0
- package/dist/stdio-DIuLW5EE.js.map +1 -0
- package/dist/test-setup.cjs +1763 -1410
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1581 -1201
- 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 +25 -4
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +25 -4
- 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-DuUmV9zh.d.ts → types-Br0saqtE.d.ts} +7 -3
- package/dist/types-Br0saqtE.d.ts.map +1 -0
- package/dist/{types-CcffrLXB.d.cts → types-C3pRFQyA.d.cts} +7 -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-CRzAHHGZ.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-Bxf4MxOz.d.cts +0 -179
- package/dist/client-Bxf4MxOz.d.cts.map +0 -1
- package/dist/client-D5xFZtxK.js +0 -224
- package/dist/client-D5xFZtxK.js.map +0 -1
- package/dist/client-DOhBiaMJ.d.ts +0 -179
- package/dist/client-DOhBiaMJ.d.ts.map +0 -1
- package/dist/client-GKHZSXgV.cjs +0 -235
- package/dist/client-GKHZSXgV.cjs.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/issue-helpers-71XgJVXC.cjs.map +0 -1
- package/dist/issue-helpers-CSNNO03f.js.map +0 -1
- package/dist/logging-ByvSjT6V.cjs.map +0 -1
- package/dist/logging-CXLD0FFB.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-D3ll3qCd.cjs.map +0 -1
- package/dist/promptDefinitions-DMucOchd.d.cts.map +0 -1
- package/dist/promptDefinitions-H0q1_X-K.d.ts.map +0 -1
- package/dist/promptDefinitions-aKmUZWWO.js.map +0 -1
- package/dist/prompts-CzD0yl7Z.js.map +0 -1
- package/dist/prompts-DMwoay8l.cjs.map +0 -1
- package/dist/resources-D6TW2ER0.cjs +0 -32
- package/dist/resources-D6TW2ER0.cjs.map +0 -1
- package/dist/resources-x-GaokG8.js +0 -26
- package/dist/resources-x-GaokG8.js.map +0 -1
- package/dist/schema-B8lT632E.cjs.map +0 -1
- package/dist/schema-BkHf97d7.js +0 -17
- package/dist/schema-BkHf97d7.js.map +0 -1
- package/dist/schema-C-MLkWMc.d.ts.map +0 -1
- package/dist/schema-CewAKS9A.js.map +0 -1
- package/dist/schema-DkyWSqp_.cjs.map +0 -1
- package/dist/schema-DqxkW9Tx.d.cts.map +0 -1
- package/dist/server-pGtEIwE3.cjs +0 -148
- package/dist/server-pGtEIwE3.cjs.map +0 -1
- package/dist/server-qpWdf-ST.js +0 -142
- package/dist/server-qpWdf-ST.js.map +0 -1
- package/dist/stdio-D8u2W847.js +0 -19
- package/dist/stdio-D8u2W847.js.map +0 -1
- package/dist/stdio-DydB2Pxu.cjs +0 -25
- package/dist/stdio-DydB2Pxu.cjs.map +0 -1
- package/dist/toolDefinitions-BSC2D_S-.js +0 -430
- package/dist/toolDefinitions-BSC2D_S-.js.map +0 -1
- package/dist/toolDefinitions-BtHN8t_d.cjs +0 -436
- package/dist/toolDefinitions-BtHN8t_d.cjs.map +0 -1
- package/dist/toolDefinitions-Dp13BpEu.d.cts +0 -296
- package/dist/toolDefinitions-Dp13BpEu.d.cts.map +0 -1
- package/dist/toolDefinitions-fQrpWznJ.d.ts +0 -296
- package/dist/toolDefinitions-fQrpWznJ.d.ts.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-4Rtn4WEf.js +0 -470
- package/dist/tools-4Rtn4WEf.js.map +0 -1
- package/dist/tools-DHHqAqP9.cjs +0 -476
- package/dist/tools-DHHqAqP9.cjs.map +0 -1
- package/dist/tools.cjs +0 -11
- package/dist/tools.d.cts +0 -251
- package/dist/tools.d.cts.map +0 -1
- package/dist/tools.d.ts +0 -251
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -11
- package/dist/tools.test.cjs +0 -1018
- 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 -1018
- package/dist/tools.test.js.map +0 -1
- package/dist/types-CbLyQvVe.d.cts +0 -38
- package/dist/types-CbLyQvVe.d.cts.map +0 -1
- package/dist/types-CcffrLXB.d.cts.map +0 -1
- package/dist/types-CfJ51LyL.d.ts +0 -38
- package/dist/types-CfJ51LyL.d.ts.map +0 -1
- package/dist/types-DuUmV9zh.d.ts.map +0 -1
- package/dist/version-BT9r_3jm.js +0 -6
- package/dist/version-BT9r_3jm.js.map +0 -1
- package/dist/version-CRzAHHGZ.cjs.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
package/dist/test-setup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
3
|
import http2, { Agent, IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from "http";
|
|
4
4
|
import { Readable } from "stream";
|
|
@@ -8,7 +8,34 @@ import { HTTPParser } from "_http_common";
|
|
|
8
8
|
import { URL as URL$1, parse, urlToHttpOptions } from "url";
|
|
9
9
|
import zlib from "zlib";
|
|
10
10
|
|
|
11
|
-
//#region
|
|
11
|
+
//#region rolldown:runtime
|
|
12
|
+
var __create$4 = Object.create;
|
|
13
|
+
var __defProp$5 = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames$4 = Object.getOwnPropertyNames;
|
|
16
|
+
var __getProtoOf$4 = Object.getPrototypeOf;
|
|
17
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __commonJS$4 = (cb, mod) => function() {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames$4(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
};
|
|
21
|
+
var __copyProps$4 = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$4(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
+
key = keys[i];
|
|
24
|
+
if (!__hasOwnProp$4.call(to, key) && key !== except) __defProp$5(to, key, {
|
|
25
|
+
get: ((k) => from[k]).bind(null, key),
|
|
26
|
+
enumerable: !(desc = __getOwnPropDesc$4(from, key)) || desc.enumerable
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$4(__getProtoOf$4(mod)) : {}, __copyProps$4(isNodeMode || !mod || !mod.__esModule ? __defProp$5(target, "default", {
|
|
32
|
+
value: mod,
|
|
33
|
+
enumerable: true
|
|
34
|
+
}) : target, mod));
|
|
35
|
+
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-3GJB4JDF.mjs
|
|
12
39
|
var kRawRequest = Symbol("kRawRequest");
|
|
13
40
|
function setRawRequest(request, rawRequest) {
|
|
14
41
|
Reflect.set(request, kRawRequest, rawRequest);
|
|
@@ -80,7 +107,7 @@ invariant.as = (ErrorConstructor, predicate, message$3, ...positionals) => {
|
|
|
80
107
|
};
|
|
81
108
|
|
|
82
109
|
//#endregion
|
|
83
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
110
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-TJDMZZXE.mjs
|
|
84
111
|
var kRawRequestBodyStream = Symbol("kRawRequestBodyStream");
|
|
85
112
|
function setRawRequestBodyStream(request, stream) {
|
|
86
113
|
Reflect.set(request, kRawRequestBodyStream, stream);
|
|
@@ -173,7 +200,7 @@ var until = async (promise) => {
|
|
|
173
200
|
};
|
|
174
201
|
|
|
175
202
|
//#endregion
|
|
176
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
203
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-LGXJ3UUF.mjs
|
|
177
204
|
var InterceptorError = class extends Error {
|
|
178
205
|
constructor(message$3) {
|
|
179
206
|
super(message$3);
|
|
@@ -347,8 +374,8 @@ function isNodeProcess() {
|
|
|
347
374
|
//#region ../../node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs
|
|
348
375
|
var __defProp$4 = Object.defineProperty;
|
|
349
376
|
var __export = (target, all) => {
|
|
350
|
-
for (var name in all) __defProp$4(target, name, {
|
|
351
|
-
get: all[name],
|
|
377
|
+
for (var name$2 in all) __defProp$4(target, name$2, {
|
|
378
|
+
get: all[name$2],
|
|
352
379
|
enumerable: true
|
|
353
380
|
});
|
|
354
381
|
};
|
|
@@ -377,8 +404,8 @@ function green(text) {
|
|
|
377
404
|
}
|
|
378
405
|
var IS_NODE$1 = isNodeProcess();
|
|
379
406
|
var Logger = class {
|
|
380
|
-
constructor(name) {
|
|
381
|
-
this.name = name;
|
|
407
|
+
constructor(name$2) {
|
|
408
|
+
this.name = name$2;
|
|
382
409
|
this.prefix = `[${this.name}]`;
|
|
383
410
|
const LOGGER_NAME = getVariable("DEBUG");
|
|
384
411
|
const LOGGER_LEVEL = getVariable("LOG_LEVEL");
|
|
@@ -730,7 +757,7 @@ var Emitter = _Emitter;
|
|
|
730
757
|
Emitter.defaultMaxListeners = 10;
|
|
731
758
|
|
|
732
759
|
//#endregion
|
|
733
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
760
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-IHJSPMYM.mjs
|
|
734
761
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
735
762
|
function getGlobalSymbol$1(symbol) {
|
|
736
763
|
return globalThis[symbol] || void 0;
|
|
@@ -972,7 +999,7 @@ FetchResponse.STATUS_CODES_WITH_REDIRECT = [
|
|
|
972
999
|
];
|
|
973
1000
|
|
|
974
1001
|
//#endregion
|
|
975
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1002
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-GLGFOTGJ.mjs
|
|
976
1003
|
function normalizeSocketWriteArgs(args) {
|
|
977
1004
|
const normalized = [
|
|
978
1005
|
args[0],
|
|
@@ -1284,9 +1311,9 @@ var MockHttpSocket = class extends MockSocket {
|
|
|
1284
1311
|
const chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf("\r\n") + 2);
|
|
1285
1312
|
const chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf("\r\n\r\n"));
|
|
1286
1313
|
const rawRequestHeaders = getRawFetchHeaders(this.request.headers);
|
|
1287
|
-
const requestHeadersString = rawRequestHeaders.filter(([name]) => {
|
|
1288
|
-
return name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;
|
|
1289
|
-
}).map(([name, value]) => `${name}: ${value}`).join("\r\n");
|
|
1314
|
+
const requestHeadersString = rawRequestHeaders.filter(([name$2]) => {
|
|
1315
|
+
return name$2.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;
|
|
1316
|
+
}).map(([name$2, value]) => `${name$2}: ${value}`).join("\r\n");
|
|
1290
1317
|
const headersChunk = `${chunkBeforeRequestHeaders}${requestHeadersString}${chunkAfterRequestHeaders}`;
|
|
1291
1318
|
socket.write(headersChunk, encoding, callback);
|
|
1292
1319
|
headersWritten = true;
|
|
@@ -1330,7 +1357,7 @@ var MockHttpSocket = class extends MockSocket {
|
|
|
1330
1357
|
var _a$1;
|
|
1331
1358
|
if (this.destroyed) return;
|
|
1332
1359
|
if (isPropertyAccessible(response, "type") && response.type === "error") {
|
|
1333
|
-
this.errorWith(new TypeError("Network error"));
|
|
1360
|
+
this.errorWith(/* @__PURE__ */ new TypeError("Network error"));
|
|
1334
1361
|
return;
|
|
1335
1362
|
}
|
|
1336
1363
|
this.mockConnect();
|
|
@@ -1785,7 +1812,7 @@ var ClientRequestInterceptor = _ClientRequestInterceptor;
|
|
|
1785
1812
|
ClientRequestInterceptor.symbol = Symbol("client-request-interceptor");
|
|
1786
1813
|
|
|
1787
1814
|
//#endregion
|
|
1788
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1815
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs
|
|
1789
1816
|
var encoder = new TextEncoder();
|
|
1790
1817
|
function encodeBuffer(text) {
|
|
1791
1818
|
return encoder.encode(text);
|
|
@@ -1799,7 +1826,7 @@ function toArrayBuffer(array) {
|
|
|
1799
1826
|
}
|
|
1800
1827
|
|
|
1801
1828
|
//#endregion
|
|
1802
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1829
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.mjs
|
|
1803
1830
|
function hasConfigurableGlobal$1(propertyName) {
|
|
1804
1831
|
const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
|
|
1805
1832
|
if (typeof descriptor === "undefined") return false;
|
|
@@ -1813,11 +1840,11 @@ function hasConfigurableGlobal$1(propertyName) {
|
|
|
1813
1840
|
}
|
|
1814
1841
|
|
|
1815
1842
|
//#endregion
|
|
1816
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1843
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.mjs
|
|
1817
1844
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
1818
1845
|
|
|
1819
1846
|
//#endregion
|
|
1820
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1847
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-EADPZWWI.mjs
|
|
1821
1848
|
function concatArrayBuffer(left, right) {
|
|
1822
1849
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1823
1850
|
result.set(left, 0);
|
|
@@ -1976,9 +2003,9 @@ function createHeadersFromXMLHttpReqestHeaders(headersString) {
|
|
|
1976
2003
|
const lines = headersString.split(/[\r\n]+/);
|
|
1977
2004
|
for (const line of lines) {
|
|
1978
2005
|
if (line.trim() === "") continue;
|
|
1979
|
-
const [name, ...parts] = line.split(": ");
|
|
2006
|
+
const [name$2, ...parts] = line.split(": ");
|
|
1980
2007
|
const value = parts.join(": ");
|
|
1981
|
-
headers.append(name, value);
|
|
2008
|
+
headers.append(name$2, value);
|
|
1982
2009
|
}
|
|
1983
2010
|
return headers;
|
|
1984
2011
|
}
|
|
@@ -2037,9 +2064,9 @@ var XMLHttpRequestController = class {
|
|
|
2037
2064
|
return invoke();
|
|
2038
2065
|
}
|
|
2039
2066
|
case "setRequestHeader": {
|
|
2040
|
-
const [name, value] = args;
|
|
2041
|
-
this.requestHeaders.set(name, value);
|
|
2042
|
-
this.logger.info("setRequestHeader", name, value);
|
|
2067
|
+
const [name$2, value] = args;
|
|
2068
|
+
this.requestHeaders.set(name$2, value);
|
|
2069
|
+
this.logger.info("setRequestHeader", name$2, value);
|
|
2043
2070
|
return invoke();
|
|
2044
2071
|
}
|
|
2045
2072
|
case "send": {
|
|
@@ -2388,7 +2415,7 @@ function createXMLHttpRequestProxy({ emitter, logger: logger$2 }) {
|
|
|
2388
2415
|
await this.respondWith(response);
|
|
2389
2416
|
},
|
|
2390
2417
|
onRequestError: () => {
|
|
2391
|
-
this.errorWith(new TypeError("Network error"));
|
|
2418
|
+
this.errorWith(/* @__PURE__ */ new TypeError("Network error"));
|
|
2392
2419
|
},
|
|
2393
2420
|
onError: (error$2) => {
|
|
2394
2421
|
this.logger.info("request errored!", { error: error$2 });
|
|
@@ -2443,9 +2470,9 @@ var XMLHttpRequestInterceptor = _XMLHttpRequestInterceptor;
|
|
|
2443
2470
|
XMLHttpRequestInterceptor.interceptorSymbol = Symbol("xhr");
|
|
2444
2471
|
|
|
2445
2472
|
//#endregion
|
|
2446
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
2473
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-GL6JCI7E.mjs
|
|
2447
2474
|
function createNetworkError(cause) {
|
|
2448
|
-
return Object.assign(new TypeError("Failed to fetch"), { cause });
|
|
2475
|
+
return Object.assign(/* @__PURE__ */ new TypeError("Failed to fetch"), { cause });
|
|
2449
2476
|
}
|
|
2450
2477
|
var REQUEST_BODY_HEADERS = [
|
|
2451
2478
|
"content-encoding",
|
|
@@ -2646,7 +2673,7 @@ var FetchInterceptor = _FetchInterceptor;
|
|
|
2646
2673
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
2647
2674
|
|
|
2648
2675
|
//#endregion
|
|
2649
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
2676
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-RC2XPCC4.mjs
|
|
2650
2677
|
var BatchInterceptor = class extends Interceptor$1 {
|
|
2651
2678
|
constructor(options) {
|
|
2652
2679
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -2682,13 +2709,13 @@ var BatchInterceptor = class extends Interceptor$1 {
|
|
|
2682
2709
|
};
|
|
2683
2710
|
|
|
2684
2711
|
//#endregion
|
|
2685
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.
|
|
2712
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/index.mjs
|
|
2686
2713
|
function getCleanUrl(url, isAbsolute = true) {
|
|
2687
2714
|
return [isAbsolute && url.origin, url.pathname].filter(Boolean).join("");
|
|
2688
2715
|
}
|
|
2689
2716
|
|
|
2690
2717
|
//#endregion
|
|
2691
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2718
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
|
|
2692
2719
|
const LIBRARY_PREFIX = "[MSW]";
|
|
2693
2720
|
function formatMessage(message$3, ...positionals) {
|
|
2694
2721
|
const interpolatedMessage = format(message$3, ...positionals);
|
|
@@ -2713,7 +2740,7 @@ var InternalError = class extends Error {
|
|
|
2713
2740
|
};
|
|
2714
2741
|
|
|
2715
2742
|
//#endregion
|
|
2716
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2743
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/pipeEvents.mjs
|
|
2717
2744
|
function pipeEvents(source, destination) {
|
|
2718
2745
|
const rawEmit = source.emit;
|
|
2719
2746
|
if (rawEmit._isPiped) return;
|
|
@@ -2726,7 +2753,7 @@ function pipeEvents(source, destination) {
|
|
|
2726
2753
|
}
|
|
2727
2754
|
|
|
2728
2755
|
//#endregion
|
|
2729
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2756
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/toReadonlyArray.mjs
|
|
2730
2757
|
function toReadonlyArray(source) {
|
|
2731
2758
|
const clone = [...source];
|
|
2732
2759
|
Object.freeze(clone);
|
|
@@ -2734,7 +2761,7 @@ function toReadonlyArray(source) {
|
|
|
2734
2761
|
}
|
|
2735
2762
|
|
|
2736
2763
|
//#endregion
|
|
2737
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2764
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/Disposable.mjs
|
|
2738
2765
|
var Disposable = class {
|
|
2739
2766
|
subscriptions = [];
|
|
2740
2767
|
dispose() {
|
|
@@ -2744,7 +2771,7 @@ var Disposable = class {
|
|
|
2744
2771
|
};
|
|
2745
2772
|
|
|
2746
2773
|
//#endregion
|
|
2747
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2774
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/SetupApi.mjs
|
|
2748
2775
|
var InMemoryHandlersController = class {
|
|
2749
2776
|
constructor(initialHandlers) {
|
|
2750
2777
|
this.initialHandlers = initialHandlers;
|
|
@@ -2813,7 +2840,7 @@ var SetupApi = class extends Disposable {
|
|
|
2813
2840
|
};
|
|
2814
2841
|
|
|
2815
2842
|
//#endregion
|
|
2816
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2843
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/executeHandlers.mjs
|
|
2817
2844
|
const executeHandlers = async ({ request, requestId, handlers, resolutionContext }) => {
|
|
2818
2845
|
let matchingHandler = null;
|
|
2819
2846
|
let result = null;
|
|
@@ -2835,7 +2862,7 @@ const executeHandlers = async ({ request, requestId, handlers, resolutionContext
|
|
|
2835
2862
|
};
|
|
2836
2863
|
|
|
2837
2864
|
//#endregion
|
|
2838
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2865
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/toPublicUrl.mjs
|
|
2839
2866
|
function toPublicUrl(url) {
|
|
2840
2867
|
if (typeof location === "undefined") return url.toString();
|
|
2841
2868
|
const urlInstance = url instanceof URL ? url : new URL(url);
|
|
@@ -2843,7 +2870,7 @@ function toPublicUrl(url) {
|
|
|
2843
2870
|
}
|
|
2844
2871
|
|
|
2845
2872
|
//#endregion
|
|
2846
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2873
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/isCommonAssetRequest.mjs
|
|
2847
2874
|
function isCommonAssetRequest(request) {
|
|
2848
2875
|
const url = new URL(request.url);
|
|
2849
2876
|
if (url.protocol === "file:") return true;
|
|
@@ -2854,7 +2881,7 @@ function isCommonAssetRequest(request) {
|
|
|
2854
2881
|
}
|
|
2855
2882
|
|
|
2856
2883
|
//#endregion
|
|
2857
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
2884
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/onUnhandledRequest.mjs
|
|
2858
2885
|
async function onUnhandledRequest(request, strategy = "warn") {
|
|
2859
2886
|
const url = new URL(request.url);
|
|
2860
2887
|
const publicUrl = toPublicUrl(url) + url.search;
|
|
@@ -2900,11 +2927,11 @@ var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
|
2900
2927
|
var __getOwnPropNames$3 = Object.getOwnPropertyNames;
|
|
2901
2928
|
var __getProtoOf$3 = Object.getPrototypeOf;
|
|
2902
2929
|
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
2903
|
-
var __require
|
|
2904
|
-
if (typeof __require !== "undefined") return __require.apply(this, arguments);
|
|
2930
|
+
var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
|
|
2931
|
+
if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
|
|
2905
2932
|
throw Error("Dynamic require of \"" + x + "\" is not supported");
|
|
2906
2933
|
});
|
|
2907
|
-
var __commonJS$
|
|
2934
|
+
var __commonJS$3 = (cb, mod) => function __require2() {
|
|
2908
2935
|
return mod || (0, cb[__getOwnPropNames$3(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
2909
2936
|
};
|
|
2910
2937
|
var __copyProps$3 = (to, from, except, desc) => {
|
|
@@ -2916,11 +2943,11 @@ var __copyProps$3 = (to, from, except, desc) => {
|
|
|
2916
2943
|
}
|
|
2917
2944
|
return to;
|
|
2918
2945
|
};
|
|
2919
|
-
var __toESM$
|
|
2946
|
+
var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$3(isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", {
|
|
2920
2947
|
value: mod,
|
|
2921
2948
|
enumerable: true
|
|
2922
2949
|
}) : target, mod));
|
|
2923
|
-
var require_punycode = __commonJS$
|
|
2950
|
+
var require_punycode = __commonJS$3({ "node_modules/punycode/punycode.js"(exports$1, module) {
|
|
2924
2951
|
"use strict";
|
|
2925
2952
|
var maxInt = 2147483647;
|
|
2926
2953
|
var base = 36;
|
|
@@ -3096,7 +3123,7 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
|
|
|
3096
3123
|
};
|
|
3097
3124
|
module.exports = punycode;
|
|
3098
3125
|
} });
|
|
3099
|
-
var require_requires_port = __commonJS$
|
|
3126
|
+
var require_requires_port = __commonJS$3({ "node_modules/requires-port/index.js"(exports$1, module) {
|
|
3100
3127
|
"use strict";
|
|
3101
3128
|
module.exports = function required(port, protocol) {
|
|
3102
3129
|
protocol = protocol.split(":")[0];
|
|
@@ -3114,7 +3141,7 @@ var require_requires_port = __commonJS$4({ "node_modules/requires-port/index.js"
|
|
|
3114
3141
|
return port !== 0;
|
|
3115
3142
|
};
|
|
3116
3143
|
} });
|
|
3117
|
-
var require_querystringify = __commonJS$
|
|
3144
|
+
var require_querystringify = __commonJS$3({ "node_modules/querystringify/index.js"(exports$1) {
|
|
3118
3145
|
"use strict";
|
|
3119
3146
|
var has = Object.prototype.hasOwnProperty;
|
|
3120
3147
|
var undef;
|
|
@@ -3158,7 +3185,7 @@ var require_querystringify = __commonJS$4({ "node_modules/querystringify/index.j
|
|
|
3158
3185
|
exports$1.stringify = querystringify;
|
|
3159
3186
|
exports$1.parse = querystring;
|
|
3160
3187
|
} });
|
|
3161
|
-
var require_url_parse = __commonJS$
|
|
3188
|
+
var require_url_parse = __commonJS$3({ "node_modules/url-parse/index.js"(exports$1, module) {
|
|
3162
3189
|
"use strict";
|
|
3163
3190
|
var required = require_requires_port();
|
|
3164
3191
|
var qs = require_querystringify();
|
|
@@ -3439,7 +3466,7 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3439
3466
|
Url.qs = qs;
|
|
3440
3467
|
module.exports = Url;
|
|
3441
3468
|
} });
|
|
3442
|
-
var require_rules = __commonJS$
|
|
3469
|
+
var require_rules = __commonJS$3({ "node_modules/psl/data/rules.json"(exports$1, module) {
|
|
3443
3470
|
module.exports = [
|
|
3444
3471
|
"ac",
|
|
3445
3472
|
"com.ac",
|
|
@@ -12817,7 +12844,7 @@ var require_rules = __commonJS$4({ "node_modules/psl/data/rules.json"(exports$1,
|
|
|
12817
12844
|
"enterprisecloud.nu"
|
|
12818
12845
|
];
|
|
12819
12846
|
} });
|
|
12820
|
-
var require_psl = __commonJS$
|
|
12847
|
+
var require_psl = __commonJS$3({ "node_modules/psl/index.js"(exports$1) {
|
|
12821
12848
|
"use strict";
|
|
12822
12849
|
var Punycode = require_punycode();
|
|
12823
12850
|
var internals = {};
|
|
@@ -12927,7 +12954,7 @@ var require_psl = __commonJS$4({ "node_modules/psl/index.js"(exports$1) {
|
|
|
12927
12954
|
return Boolean(parsed.domain && parsed.listed);
|
|
12928
12955
|
};
|
|
12929
12956
|
} });
|
|
12930
|
-
var require_pubsuffix_psl = __commonJS$
|
|
12957
|
+
var require_pubsuffix_psl = __commonJS$3({ "node_modules/tough-cookie/lib/pubsuffix-psl.js"(exports$1) {
|
|
12931
12958
|
"use strict";
|
|
12932
12959
|
var psl = require_psl();
|
|
12933
12960
|
var SPECIAL_USE_DOMAINS = [
|
|
@@ -12954,7 +12981,7 @@ var require_pubsuffix_psl = __commonJS$4({ "node_modules/tough-cookie/lib/pubsuf
|
|
|
12954
12981
|
}
|
|
12955
12982
|
exports$1.getPublicSuffix = getPublicSuffix;
|
|
12956
12983
|
} });
|
|
12957
|
-
var require_store = __commonJS$
|
|
12984
|
+
var require_store = __commonJS$3({ "node_modules/tough-cookie/lib/store.js"(exports$1) {
|
|
12958
12985
|
"use strict";
|
|
12959
12986
|
var Store$1 = class {
|
|
12960
12987
|
constructor() {
|
|
@@ -12987,7 +13014,7 @@ var require_store = __commonJS$4({ "node_modules/tough-cookie/lib/store.js"(expo
|
|
|
12987
13014
|
};
|
|
12988
13015
|
exports$1.Store = Store$1;
|
|
12989
13016
|
} });
|
|
12990
|
-
var require_universalify = __commonJS$
|
|
13017
|
+
var require_universalify = __commonJS$3({ "node_modules/universalify/index.js"(exports$1) {
|
|
12991
13018
|
"use strict";
|
|
12992
13019
|
exports$1.fromCallback = function(fn) {
|
|
12993
13020
|
return Object.defineProperty(function() {
|
|
@@ -13014,7 +13041,7 @@ var require_universalify = __commonJS$4({ "node_modules/universalify/index.js"(e
|
|
|
13014
13041
|
}, "name", { value: fn.name });
|
|
13015
13042
|
};
|
|
13016
13043
|
} });
|
|
13017
|
-
var require_permuteDomain = __commonJS$
|
|
13044
|
+
var require_permuteDomain = __commonJS$3({ "node_modules/tough-cookie/lib/permuteDomain.js"(exports$1) {
|
|
13018
13045
|
"use strict";
|
|
13019
13046
|
var pubsuffix = require_pubsuffix_psl();
|
|
13020
13047
|
function permuteDomain(domain, allowSpecialUseDomain) {
|
|
@@ -13034,7 +13061,7 @@ var require_permuteDomain = __commonJS$4({ "node_modules/tough-cookie/lib/permut
|
|
|
13034
13061
|
}
|
|
13035
13062
|
exports$1.permuteDomain = permuteDomain;
|
|
13036
13063
|
} });
|
|
13037
|
-
var require_pathMatch = __commonJS$
|
|
13064
|
+
var require_pathMatch = __commonJS$3({ "node_modules/tough-cookie/lib/pathMatch.js"(exports$1) {
|
|
13038
13065
|
"use strict";
|
|
13039
13066
|
function pathMatch$1(reqPath, cookiePath) {
|
|
13040
13067
|
if (cookiePath === reqPath) return true;
|
|
@@ -13047,10 +13074,10 @@ var require_pathMatch = __commonJS$4({ "node_modules/tough-cookie/lib/pathMatch.
|
|
|
13047
13074
|
}
|
|
13048
13075
|
exports$1.pathMatch = pathMatch$1;
|
|
13049
13076
|
} });
|
|
13050
|
-
var require_utilHelper = __commonJS$
|
|
13077
|
+
var require_utilHelper = __commonJS$3({ "node_modules/tough-cookie/lib/utilHelper.js"(exports$1) {
|
|
13051
13078
|
function requireUtil() {
|
|
13052
13079
|
try {
|
|
13053
|
-
return __require
|
|
13080
|
+
return __require("util");
|
|
13054
13081
|
} catch (e) {
|
|
13055
13082
|
return null;
|
|
13056
13083
|
}
|
|
@@ -13075,7 +13102,7 @@ var require_utilHelper = __commonJS$4({ "node_modules/tough-cookie/lib/utilHelpe
|
|
|
13075
13102
|
return _lookupCustomInspectSymbol() || tryReadingCustomSymbolFromUtilInspect(options);
|
|
13076
13103
|
};
|
|
13077
13104
|
} });
|
|
13078
|
-
var require_memstore = __commonJS$
|
|
13105
|
+
var require_memstore = __commonJS$3({ "node_modules/tough-cookie/lib/memstore.js"(exports$1) {
|
|
13079
13106
|
"use strict";
|
|
13080
13107
|
var { fromCallback } = require_universalify();
|
|
13081
13108
|
var Store$1 = require_store().Store;
|
|
@@ -13180,8 +13207,8 @@ var require_memstore = __commonJS$4({ "node_modules/tough-cookie/lib/memstore.js
|
|
|
13180
13207
|
"removeCookies",
|
|
13181
13208
|
"removeAllCookies",
|
|
13182
13209
|
"getAllCookies"
|
|
13183
|
-
].forEach((name) => {
|
|
13184
|
-
MemoryCookieStore$1.prototype[name] = fromCallback(MemoryCookieStore$1.prototype[name]);
|
|
13210
|
+
].forEach((name$2) => {
|
|
13211
|
+
MemoryCookieStore$1.prototype[name$2] = fromCallback(MemoryCookieStore$1.prototype[name$2]);
|
|
13185
13212
|
});
|
|
13186
13213
|
exports$1.MemoryCookieStore = MemoryCookieStore$1;
|
|
13187
13214
|
function inspectFallback(val) {
|
|
@@ -13223,7 +13250,7 @@ var require_memstore = __commonJS$4({ "node_modules/tough-cookie/lib/memstore.js
|
|
|
13223
13250
|
}
|
|
13224
13251
|
exports$1.inspectFallback = inspectFallback;
|
|
13225
13252
|
} });
|
|
13226
|
-
var require_validators = __commonJS$
|
|
13253
|
+
var require_validators = __commonJS$3({ "node_modules/tough-cookie/lib/validators.js"(exports$1) {
|
|
13227
13254
|
"use strict";
|
|
13228
13255
|
var toString = Object.prototype.toString;
|
|
13229
13256
|
function isFunction(data) {
|
|
@@ -13281,10 +13308,10 @@ var require_validators = __commonJS$4({ "node_modules/tough-cookie/lib/validator
|
|
|
13281
13308
|
exports$1.isUrlStringOrObject = isUrlStringOrObject;
|
|
13282
13309
|
exports$1.validate = validate;
|
|
13283
13310
|
} });
|
|
13284
|
-
var require_version = __commonJS$
|
|
13311
|
+
var require_version = __commonJS$3({ "node_modules/tough-cookie/lib/version.js"(exports$1, module) {
|
|
13285
13312
|
module.exports = "4.1.4";
|
|
13286
13313
|
} });
|
|
13287
|
-
var require_cookie$1 = __commonJS$
|
|
13314
|
+
var require_cookie$1 = __commonJS$3({ "node_modules/tough-cookie/lib/cookie.js"(exports$1) {
|
|
13288
13315
|
"use strict";
|
|
13289
13316
|
var punycode = require_punycode();
|
|
13290
13317
|
var urlParse = require_url_parse();
|
|
@@ -13346,7 +13373,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13346
13373
|
(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
|
|
13347
13374
|
)(?:%[0-9a-zA-Z]{1,})?\\]?
|
|
13348
13375
|
`.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
13349
|
-
var IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
|
|
13376
|
+
var IP_V6_REGEX_OBJECT = /* @__PURE__ */ new RegExp(`^${IP_V6_REGEX}$`);
|
|
13350
13377
|
function parseDigits(token, minDigits, maxDigits, trailingOK) {
|
|
13351
13378
|
let count$1 = 0;
|
|
13352
13379
|
while (count$1 < token.length) {
|
|
@@ -13821,7 +13848,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13821
13848
|
let err;
|
|
13822
13849
|
if (validators.isFunction(url)) {
|
|
13823
13850
|
cb = url;
|
|
13824
|
-
return cb(new Error("No URL was specified"));
|
|
13851
|
+
return cb(/* @__PURE__ */ new Error("No URL was specified"));
|
|
13825
13852
|
}
|
|
13826
13853
|
const context$1 = getCookieContext(url);
|
|
13827
13854
|
if (validators.isFunction(options)) {
|
|
@@ -13840,11 +13867,11 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13840
13867
|
if (typeof cookie === "string" || cookie instanceof String) {
|
|
13841
13868
|
cookie = Cookie$1.parse(cookie, { loose });
|
|
13842
13869
|
if (!cookie) {
|
|
13843
|
-
err = new Error("Cookie failed to parse");
|
|
13870
|
+
err = /* @__PURE__ */ new Error("Cookie failed to parse");
|
|
13844
13871
|
return cb(options.ignoreError ? null : err);
|
|
13845
13872
|
}
|
|
13846
13873
|
} else if (!(cookie instanceof Cookie$1)) {
|
|
13847
|
-
err = new Error("First argument to setCookie must be a Cookie object or string");
|
|
13874
|
+
err = /* @__PURE__ */ new Error("First argument to setCookie must be a Cookie object or string");
|
|
13848
13875
|
return cb(options.ignoreError ? null : err);
|
|
13849
13876
|
}
|
|
13850
13877
|
const now = options.now || /* @__PURE__ */ new Date();
|
|
@@ -13854,13 +13881,13 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13854
13881
|
ignoreError: options.ignoreError
|
|
13855
13882
|
});
|
|
13856
13883
|
if (suffix == null && !IP_V6_REGEX_OBJECT.test(cookie.domain)) {
|
|
13857
|
-
err = new Error("Cookie has domain set to a public suffix");
|
|
13884
|
+
err = /* @__PURE__ */ new Error("Cookie has domain set to a public suffix");
|
|
13858
13885
|
return cb(options.ignoreError ? null : err);
|
|
13859
13886
|
}
|
|
13860
13887
|
}
|
|
13861
13888
|
if (cookie.domain) {
|
|
13862
13889
|
if (!domainMatch$1(host, cookie.cdomain(), false)) {
|
|
13863
|
-
err = new Error(`Cookie not in this host's domain. Cookie:${cookie.cdomain()} Request:${host}`);
|
|
13890
|
+
err = /* @__PURE__ */ new Error(`Cookie not in this host's domain. Cookie:${cookie.cdomain()} Request:${host}`);
|
|
13864
13891
|
return cb(options.ignoreError ? null : err);
|
|
13865
13892
|
}
|
|
13866
13893
|
if (cookie.hostOnly == null) cookie.hostOnly = false;
|
|
@@ -13873,12 +13900,12 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13873
13900
|
cookie.pathIsDefault = true;
|
|
13874
13901
|
}
|
|
13875
13902
|
if (options.http === false && cookie.httpOnly) {
|
|
13876
|
-
err = new Error("Cookie is HttpOnly and this isn't an HTTP API");
|
|
13903
|
+
err = /* @__PURE__ */ new Error("Cookie is HttpOnly and this isn't an HTTP API");
|
|
13877
13904
|
return cb(options.ignoreError ? null : err);
|
|
13878
13905
|
}
|
|
13879
13906
|
if (cookie.sameSite !== "none" && cookie.sameSite !== void 0 && sameSiteContext) {
|
|
13880
13907
|
if (sameSiteContext === "none") {
|
|
13881
|
-
err = new Error("Cookie is SameSite but this is a cross-origin request");
|
|
13908
|
+
err = /* @__PURE__ */ new Error("Cookie is SameSite but this is a cross-origin request");
|
|
13882
13909
|
return cb(options.ignoreError ? null : err);
|
|
13883
13910
|
}
|
|
13884
13911
|
}
|
|
@@ -13908,7 +13935,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13908
13935
|
};
|
|
13909
13936
|
if (oldCookie) {
|
|
13910
13937
|
if (options.http === false && oldCookie.httpOnly) {
|
|
13911
|
-
err2 = new Error("old Cookie is HttpOnly and this isn't an HTTP API");
|
|
13938
|
+
err2 = /* @__PURE__ */ new Error("old Cookie is HttpOnly and this isn't an HTTP API");
|
|
13912
13939
|
return cb(options.ignoreError ? null : err2);
|
|
13913
13940
|
}
|
|
13914
13941
|
cookie.creation = oldCookie.creation;
|
|
@@ -14008,7 +14035,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
14008
14035
|
prefixSecurity: getNormalizedPrefixSecurity(this.prefixSecurity),
|
|
14009
14036
|
cookies: []
|
|
14010
14037
|
};
|
|
14011
|
-
if (!(this.store.getAllCookies && typeof this.store.getAllCookies === "function")) return cb(new Error("store does not support getAllCookies and cannot be serialized"));
|
|
14038
|
+
if (!(this.store.getAllCookies && typeof this.store.getAllCookies === "function")) return cb(/* @__PURE__ */ new Error("store does not support getAllCookies and cannot be serialized"));
|
|
14012
14039
|
this.store.getAllCookies((err, cookies) => {
|
|
14013
14040
|
if (err) return cb(err);
|
|
14014
14041
|
serialized.cookies = cookies.map((cookie) => {
|
|
@@ -14024,7 +14051,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
14024
14051
|
}
|
|
14025
14052
|
_importCookies(serialized, cb) {
|
|
14026
14053
|
let cookies = serialized.cookies;
|
|
14027
|
-
if (!cookies || !Array.isArray(cookies)) return cb(new Error("serialized jar has no cookies array"));
|
|
14054
|
+
if (!cookies || !Array.isArray(cookies)) return cb(/* @__PURE__ */ new Error("serialized jar has no cookies array"));
|
|
14028
14055
|
cookies = cookies.slice();
|
|
14029
14056
|
const putNext = (err) => {
|
|
14030
14057
|
if (err) return cb(err);
|
|
@@ -14117,8 +14144,8 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
14117
14144
|
"removeAllCookies",
|
|
14118
14145
|
"serialize",
|
|
14119
14146
|
"setCookie"
|
|
14120
|
-
].forEach((name) => {
|
|
14121
|
-
CookieJar$1.prototype[name] = fromCallback(CookieJar$1.prototype[name]);
|
|
14147
|
+
].forEach((name$2) => {
|
|
14148
|
+
CookieJar$1.prototype[name$2] = fromCallback(CookieJar$1.prototype[name$2]);
|
|
14122
14149
|
});
|
|
14123
14150
|
CookieJar$1.deserialize = fromCallback(CookieJar$1.deserialize);
|
|
14124
14151
|
function syncWrap(method) {
|
|
@@ -14153,7 +14180,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
14153
14180
|
exports$1.PrefixSecurityEnum = PrefixSecurityEnum;
|
|
14154
14181
|
exports$1.ParameterError = validators.ParameterError;
|
|
14155
14182
|
} });
|
|
14156
|
-
var import_tough_cookie = __toESM$
|
|
14183
|
+
var import_tough_cookie = __toESM$3(require_cookie$1(), 1);
|
|
14157
14184
|
var source_default$2 = import_tough_cookie.default;
|
|
14158
14185
|
/*! Bundled license information:
|
|
14159
14186
|
|
|
@@ -14351,7 +14378,7 @@ tough-cookie/lib/cookie.js:
|
|
|
14351
14378
|
*/
|
|
14352
14379
|
|
|
14353
14380
|
//#endregion
|
|
14354
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
14381
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/cookieStore.mjs
|
|
14355
14382
|
const { Cookie, CookieJar, Store, MemoryCookieStore, domainMatch, pathMatch } = source_default$2;
|
|
14356
14383
|
var WebStorageCookieStore = class extends Store {
|
|
14357
14384
|
storage;
|
|
@@ -14487,7 +14514,7 @@ var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
|
14487
14514
|
var __getOwnPropNames$2 = Object.getOwnPropertyNames;
|
|
14488
14515
|
var __getProtoOf$2 = Object.getPrototypeOf;
|
|
14489
14516
|
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
14490
|
-
var __commonJS$
|
|
14517
|
+
var __commonJS$2 = (cb, mod) => function __require$2() {
|
|
14491
14518
|
return mod || (0, cb[__getOwnPropNames$2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14492
14519
|
};
|
|
14493
14520
|
var __copyProps$2 = (to, from, except, desc) => {
|
|
@@ -14499,11 +14526,11 @@ var __copyProps$2 = (to, from, except, desc) => {
|
|
|
14499
14526
|
}
|
|
14500
14527
|
return to;
|
|
14501
14528
|
};
|
|
14502
|
-
var __toESM$
|
|
14529
|
+
var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$2(isNodeMode || !mod || !mod.__esModule ? __defProp$2(target, "default", {
|
|
14503
14530
|
value: mod,
|
|
14504
14531
|
enumerable: true
|
|
14505
14532
|
}) : target, mod));
|
|
14506
|
-
var require_codes = __commonJS$
|
|
14533
|
+
var require_codes = __commonJS$2({ "node_modules/statuses/codes.json"(exports$1, module) {
|
|
14507
14534
|
module.exports = {
|
|
14508
14535
|
"100": "Continue",
|
|
14509
14536
|
"101": "Switching Protocols",
|
|
@@ -14570,7 +14597,7 @@ var require_codes = __commonJS$3({ "node_modules/statuses/codes.json"(exports$1,
|
|
|
14570
14597
|
"511": "Network Authentication Required"
|
|
14571
14598
|
};
|
|
14572
14599
|
} });
|
|
14573
|
-
var require_statuses = __commonJS$
|
|
14600
|
+
var require_statuses = __commonJS$2({ "node_modules/statuses/index.js"(exports$1, module) {
|
|
14574
14601
|
"use strict";
|
|
14575
14602
|
var codes = require_codes();
|
|
14576
14603
|
module.exports = status2;
|
|
@@ -14627,7 +14654,7 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
|
|
|
14627
14654
|
return getStatusCode(code);
|
|
14628
14655
|
}
|
|
14629
14656
|
} });
|
|
14630
|
-
var import_statuses = __toESM$
|
|
14657
|
+
var import_statuses = __toESM$2(require_statuses(), 1);
|
|
14631
14658
|
var source_default$1 = import_statuses.default;
|
|
14632
14659
|
/*! Bundled license information:
|
|
14633
14660
|
|
|
@@ -14648,7 +14675,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
|
14648
14675
|
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
14649
14676
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
14650
14677
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
14651
|
-
var __commonJS$
|
|
14678
|
+
var __commonJS$1 = (cb, mod) => function __require$2() {
|
|
14652
14679
|
return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14653
14680
|
};
|
|
14654
14681
|
var __copyProps$1 = (to, from, except, desc) => {
|
|
@@ -14660,11 +14687,11 @@ var __copyProps$1 = (to, from, except, desc) => {
|
|
|
14660
14687
|
}
|
|
14661
14688
|
return to;
|
|
14662
14689
|
};
|
|
14663
|
-
var __toESM$
|
|
14690
|
+
var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
|
|
14664
14691
|
value: mod,
|
|
14665
14692
|
enumerable: true
|
|
14666
14693
|
}) : target, mod));
|
|
14667
|
-
var require_set_cookie = __commonJS$
|
|
14694
|
+
var require_set_cookie = __commonJS$1({ "node_modules/set-cookie-parser/lib/set-cookie.js"(exports$1, module) {
|
|
14668
14695
|
"use strict";
|
|
14669
14696
|
var defaultParseOptions = {
|
|
14670
14697
|
decodeValues: true,
|
|
@@ -14678,7 +14705,7 @@ var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-
|
|
|
14678
14705
|
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
14679
14706
|
var nameValuePairStr = parts.shift();
|
|
14680
14707
|
var parsed = parseNameValuePair(nameValuePairStr);
|
|
14681
|
-
var name = parsed.name;
|
|
14708
|
+
var name$2 = parsed.name;
|
|
14682
14709
|
var value = parsed.value;
|
|
14683
14710
|
options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
|
|
14684
14711
|
try {
|
|
@@ -14687,7 +14714,7 @@ var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-
|
|
|
14687
14714
|
console.error("set-cookie-parser encountered an error while decoding a cookie with value '" + value + "'. Set options.decodeValues to false to disable this feature.", e);
|
|
14688
14715
|
}
|
|
14689
14716
|
var cookie = {
|
|
14690
|
-
name,
|
|
14717
|
+
name: name$2,
|
|
14691
14718
|
value
|
|
14692
14719
|
};
|
|
14693
14720
|
parts.forEach(function(part) {
|
|
@@ -14704,15 +14731,15 @@ var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-
|
|
|
14704
14731
|
return cookie;
|
|
14705
14732
|
}
|
|
14706
14733
|
function parseNameValuePair(nameValuePairStr) {
|
|
14707
|
-
var name = "";
|
|
14734
|
+
var name$2 = "";
|
|
14708
14735
|
var value = "";
|
|
14709
14736
|
var nameValueArr = nameValuePairStr.split("=");
|
|
14710
14737
|
if (nameValueArr.length > 1) {
|
|
14711
|
-
name = nameValueArr.shift();
|
|
14738
|
+
name$2 = nameValueArr.shift();
|
|
14712
14739
|
value = nameValueArr.join("=");
|
|
14713
14740
|
} else value = nameValuePairStr;
|
|
14714
14741
|
return {
|
|
14715
|
-
name,
|
|
14742
|
+
name: name$2,
|
|
14716
14743
|
value
|
|
14717
14744
|
};
|
|
14718
14745
|
}
|
|
@@ -14789,11 +14816,11 @@ var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-
|
|
|
14789
14816
|
module.exports.parseString = parseString;
|
|
14790
14817
|
module.exports.splitCookiesString = splitCookiesString2;
|
|
14791
14818
|
} });
|
|
14792
|
-
var import_set_cookie_parser = __toESM$
|
|
14819
|
+
var import_set_cookie_parser = __toESM$1(require_set_cookie());
|
|
14793
14820
|
var HEADERS_INVALID_CHARACTERS = /[^a-z0-9\-#$%&'*+.^_`|~]/i;
|
|
14794
|
-
function normalizeHeaderName(name) {
|
|
14795
|
-
if (HEADERS_INVALID_CHARACTERS.test(name) || name.trim() === "") throw new TypeError("Invalid character in header field name");
|
|
14796
|
-
return name.trim().toLowerCase();
|
|
14821
|
+
function normalizeHeaderName(name$2) {
|
|
14822
|
+
if (HEADERS_INVALID_CHARACTERS.test(name$2) || name$2.trim() === "") throw new TypeError("Invalid character in header field name");
|
|
14823
|
+
return name$2.trim().toLowerCase();
|
|
14797
14824
|
}
|
|
14798
14825
|
var charCodesToRemove = [
|
|
14799
14826
|
String.fromCharCode(10),
|
|
@@ -14858,72 +14885,72 @@ var Headers$1 = class _Headers {
|
|
|
14858
14885
|
this[_c] = "Headers";
|
|
14859
14886
|
if (["Headers", "HeadersPolyfill"].includes(init?.constructor.name) || init instanceof _Headers || typeof globalThis.Headers !== "undefined" && init instanceof globalThis.Headers) {
|
|
14860
14887
|
const initialHeaders = init;
|
|
14861
|
-
initialHeaders.forEach((value, name) => {
|
|
14862
|
-
this.append(name, value);
|
|
14888
|
+
initialHeaders.forEach((value, name$2) => {
|
|
14889
|
+
this.append(name$2, value);
|
|
14863
14890
|
}, this);
|
|
14864
|
-
} else if (Array.isArray(init)) init.forEach(([name, value]) => {
|
|
14865
|
-
this.append(name, Array.isArray(value) ? value.join(HEADER_VALUE_DELIMITER) : value);
|
|
14891
|
+
} else if (Array.isArray(init)) init.forEach(([name$2, value]) => {
|
|
14892
|
+
this.append(name$2, Array.isArray(value) ? value.join(HEADER_VALUE_DELIMITER) : value);
|
|
14866
14893
|
});
|
|
14867
|
-
else if (init) Object.getOwnPropertyNames(init).forEach((name) => {
|
|
14868
|
-
const value = init[name];
|
|
14869
|
-
this.append(name, Array.isArray(value) ? value.join(HEADER_VALUE_DELIMITER) : value);
|
|
14894
|
+
else if (init) Object.getOwnPropertyNames(init).forEach((name$2) => {
|
|
14895
|
+
const value = init[name$2];
|
|
14896
|
+
this.append(name$2, Array.isArray(value) ? value.join(HEADER_VALUE_DELIMITER) : value);
|
|
14870
14897
|
});
|
|
14871
14898
|
}
|
|
14872
14899
|
[(_a = NORMALIZED_HEADERS, _b = RAW_HEADER_NAMES, _c = Symbol.toStringTag, Symbol.iterator)]() {
|
|
14873
14900
|
return this.entries();
|
|
14874
14901
|
}
|
|
14875
14902
|
*keys() {
|
|
14876
|
-
for (const [name] of this.entries()) yield name;
|
|
14903
|
+
for (const [name$2] of this.entries()) yield name$2;
|
|
14877
14904
|
}
|
|
14878
14905
|
*values() {
|
|
14879
14906
|
for (const [, value] of this.entries()) yield value;
|
|
14880
14907
|
}
|
|
14881
14908
|
*entries() {
|
|
14882
14909
|
let sortedKeys = Object.keys(this[NORMALIZED_HEADERS]).sort((a, b) => a.localeCompare(b));
|
|
14883
|
-
for (const name of sortedKeys) if (name === "set-cookie") for (const value of this.getSetCookie()) yield [name, value];
|
|
14884
|
-
else yield [name, this.get(name)];
|
|
14910
|
+
for (const name$2 of sortedKeys) if (name$2 === "set-cookie") for (const value of this.getSetCookie()) yield [name$2, value];
|
|
14911
|
+
else yield [name$2, this.get(name$2)];
|
|
14885
14912
|
}
|
|
14886
14913
|
/**
|
|
14887
14914
|
* Returns a boolean stating whether a `Headers` object contains a certain header.
|
|
14888
14915
|
*/
|
|
14889
|
-
has(name) {
|
|
14890
|
-
if (!isValidHeaderName(name)) throw new TypeError(`Invalid header name "${name}"`);
|
|
14891
|
-
return this[NORMALIZED_HEADERS].hasOwnProperty(normalizeHeaderName(name));
|
|
14916
|
+
has(name$2) {
|
|
14917
|
+
if (!isValidHeaderName(name$2)) throw new TypeError(`Invalid header name "${name$2}"`);
|
|
14918
|
+
return this[NORMALIZED_HEADERS].hasOwnProperty(normalizeHeaderName(name$2));
|
|
14892
14919
|
}
|
|
14893
14920
|
/**
|
|
14894
14921
|
* Returns a `ByteString` sequence of all the values of a header with a given name.
|
|
14895
14922
|
*/
|
|
14896
|
-
get(name) {
|
|
14897
|
-
if (!isValidHeaderName(name)) throw TypeError(`Invalid header name "${name}"`);
|
|
14898
|
-
return this[NORMALIZED_HEADERS][normalizeHeaderName(name)] ?? null;
|
|
14923
|
+
get(name$2) {
|
|
14924
|
+
if (!isValidHeaderName(name$2)) throw TypeError(`Invalid header name "${name$2}"`);
|
|
14925
|
+
return this[NORMALIZED_HEADERS][normalizeHeaderName(name$2)] ?? null;
|
|
14899
14926
|
}
|
|
14900
14927
|
/**
|
|
14901
14928
|
* Sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist.
|
|
14902
14929
|
*/
|
|
14903
|
-
set(name, value) {
|
|
14904
|
-
if (!isValidHeaderName(name) || !isValidHeaderValue(value)) return;
|
|
14905
|
-
const normalizedName = normalizeHeaderName(name);
|
|
14930
|
+
set(name$2, value) {
|
|
14931
|
+
if (!isValidHeaderName(name$2) || !isValidHeaderValue(value)) return;
|
|
14932
|
+
const normalizedName = normalizeHeaderName(name$2);
|
|
14906
14933
|
const normalizedValue = normalizeHeaderValue(value);
|
|
14907
14934
|
this[NORMALIZED_HEADERS][normalizedName] = normalizeHeaderValue(normalizedValue);
|
|
14908
|
-
this[RAW_HEADER_NAMES].set(normalizedName, name);
|
|
14935
|
+
this[RAW_HEADER_NAMES].set(normalizedName, name$2);
|
|
14909
14936
|
}
|
|
14910
14937
|
/**
|
|
14911
14938
|
* Appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist.
|
|
14912
14939
|
*/
|
|
14913
|
-
append(name, value) {
|
|
14914
|
-
if (!isValidHeaderName(name) || !isValidHeaderValue(value)) return;
|
|
14915
|
-
const normalizedName = normalizeHeaderName(name);
|
|
14940
|
+
append(name$2, value) {
|
|
14941
|
+
if (!isValidHeaderName(name$2) || !isValidHeaderValue(value)) return;
|
|
14942
|
+
const normalizedName = normalizeHeaderName(name$2);
|
|
14916
14943
|
const normalizedValue = normalizeHeaderValue(value);
|
|
14917
14944
|
let resolvedValue = this.has(normalizedName) ? `${this.get(normalizedName)}, ${normalizedValue}` : normalizedValue;
|
|
14918
|
-
this.set(name, resolvedValue);
|
|
14945
|
+
this.set(name$2, resolvedValue);
|
|
14919
14946
|
}
|
|
14920
14947
|
/**
|
|
14921
14948
|
* Deletes a header from the `Headers` object.
|
|
14922
14949
|
*/
|
|
14923
|
-
delete(name) {
|
|
14924
|
-
if (!isValidHeaderName(name)) return;
|
|
14925
|
-
if (!this.has(name)) return;
|
|
14926
|
-
const normalizedName = normalizeHeaderName(name);
|
|
14950
|
+
delete(name$2) {
|
|
14951
|
+
if (!isValidHeaderName(name$2)) return;
|
|
14952
|
+
if (!this.has(name$2)) return;
|
|
14953
|
+
const normalizedName = normalizeHeaderName(name$2);
|
|
14927
14954
|
delete this[NORMALIZED_HEADERS][normalizedName];
|
|
14928
14955
|
this[RAW_HEADER_NAMES].delete(normalizedName);
|
|
14929
14956
|
}
|
|
@@ -14932,7 +14959,7 @@ var Headers$1 = class _Headers {
|
|
|
14932
14959
|
* calling the given callback for each header.
|
|
14933
14960
|
*/
|
|
14934
14961
|
forEach(callback, thisArg) {
|
|
14935
|
-
for (const [name, value] of this.entries()) callback.call(thisArg, value, name, this);
|
|
14962
|
+
for (const [name$2, value] of this.entries()) callback.call(thisArg, value, name$2, this);
|
|
14936
14963
|
}
|
|
14937
14964
|
/**
|
|
14938
14965
|
* Returns an array containing the values
|
|
@@ -14948,7 +14975,7 @@ var Headers$1 = class _Headers {
|
|
|
14948
14975
|
};
|
|
14949
14976
|
|
|
14950
14977
|
//#endregion
|
|
14951
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
14978
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
|
|
14952
14979
|
const { message: message$2 } = source_default$1;
|
|
14953
14980
|
const kSetCookie = Symbol("kSetCookie");
|
|
14954
14981
|
function normalizeResponseInit(init = {}) {
|
|
@@ -14984,14 +15011,14 @@ function decorateResponse(response, init) {
|
|
|
14984
15011
|
}
|
|
14985
15012
|
|
|
14986
15013
|
//#endregion
|
|
14987
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15014
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs
|
|
14988
15015
|
function storeResponseCookies(request, response) {
|
|
14989
15016
|
const responseCookies = Reflect.get(response, kSetCookie);
|
|
14990
15017
|
if (responseCookies) cookieStore.setCookie(responseCookies, request.url);
|
|
14991
15018
|
}
|
|
14992
15019
|
|
|
14993
15020
|
//#endregion
|
|
14994
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15021
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/handleRequest.mjs
|
|
14995
15022
|
async function handleRequest(request, requestId, handlers, options, emitter, handleRequestOptions) {
|
|
14996
15023
|
emitter.emit("request:start", {
|
|
14997
15024
|
request,
|
|
@@ -15066,13 +15093,13 @@ async function handleRequest(request, requestId, handlers, options, emitter, han
|
|
|
15066
15093
|
}
|
|
15067
15094
|
|
|
15068
15095
|
//#endregion
|
|
15069
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15096
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isObject.mjs
|
|
15070
15097
|
function isObject(value) {
|
|
15071
15098
|
return value != null && typeof value === "object" && !Array.isArray(value);
|
|
15072
15099
|
}
|
|
15073
15100
|
|
|
15074
15101
|
//#endregion
|
|
15075
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15102
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/mergeRight.mjs
|
|
15076
15103
|
function mergeRight(left, right) {
|
|
15077
15104
|
return Object.entries(right).reduce((result, [key, rightValue]) => {
|
|
15078
15105
|
const leftValue = result[key];
|
|
@@ -15090,709 +15117,163 @@ function mergeRight(left, right) {
|
|
|
15090
15117
|
}
|
|
15091
15118
|
|
|
15092
15119
|
//#endregion
|
|
15093
|
-
//#region ../../node_modules/.pnpm
|
|
15094
|
-
|
|
15095
|
-
Object.
|
|
15096
|
-
|
|
15097
|
-
|
|
15098
|
-
|
|
15099
|
-
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
var i = 0;
|
|
15103
|
-
while (i < str.length) {
|
|
15104
|
-
var char = str[i];
|
|
15105
|
-
if (char === "*" || char === "+" || char === "?") {
|
|
15106
|
-
tokens.push({
|
|
15107
|
-
type: "MODIFIER",
|
|
15108
|
-
index: i,
|
|
15109
|
-
value: str[i++]
|
|
15110
|
-
});
|
|
15111
|
-
continue;
|
|
15112
|
-
}
|
|
15113
|
-
if (char === "\\") {
|
|
15114
|
-
tokens.push({
|
|
15115
|
-
type: "ESCAPED_CHAR",
|
|
15116
|
-
index: i++,
|
|
15117
|
-
value: str[i++]
|
|
15118
|
-
});
|
|
15119
|
-
continue;
|
|
15120
|
-
}
|
|
15121
|
-
if (char === "{") {
|
|
15122
|
-
tokens.push({
|
|
15123
|
-
type: "OPEN",
|
|
15124
|
-
index: i,
|
|
15125
|
-
value: str[i++]
|
|
15126
|
-
});
|
|
15127
|
-
continue;
|
|
15128
|
-
}
|
|
15129
|
-
if (char === "}") {
|
|
15130
|
-
tokens.push({
|
|
15131
|
-
type: "CLOSE",
|
|
15132
|
-
index: i,
|
|
15133
|
-
value: str[i++]
|
|
15134
|
-
});
|
|
15135
|
-
continue;
|
|
15136
|
-
}
|
|
15137
|
-
if (char === ":") {
|
|
15138
|
-
var name = "";
|
|
15139
|
-
var j = i + 1;
|
|
15140
|
-
while (j < str.length) {
|
|
15141
|
-
var code = str.charCodeAt(j);
|
|
15142
|
-
if (code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) {
|
|
15143
|
-
name += str[j++];
|
|
15144
|
-
continue;
|
|
15145
|
-
}
|
|
15146
|
-
break;
|
|
15147
|
-
}
|
|
15148
|
-
if (!name) throw new TypeError("Missing parameter name at ".concat(i));
|
|
15149
|
-
tokens.push({
|
|
15150
|
-
type: "NAME",
|
|
15151
|
-
index: i,
|
|
15152
|
-
value: name
|
|
15153
|
-
});
|
|
15154
|
-
i = j;
|
|
15155
|
-
continue;
|
|
15156
|
-
}
|
|
15157
|
-
if (char === "(") {
|
|
15158
|
-
var count$1 = 1;
|
|
15159
|
-
var pattern = "";
|
|
15160
|
-
var j = i + 1;
|
|
15161
|
-
if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
|
|
15162
|
-
while (j < str.length) {
|
|
15163
|
-
if (str[j] === "\\") {
|
|
15164
|
-
pattern += str[j++] + str[j++];
|
|
15165
|
-
continue;
|
|
15166
|
-
}
|
|
15167
|
-
if (str[j] === ")") {
|
|
15168
|
-
count$1--;
|
|
15169
|
-
if (count$1 === 0) {
|
|
15170
|
-
j++;
|
|
15171
|
-
break;
|
|
15172
|
-
}
|
|
15173
|
-
} else if (str[j] === "(") {
|
|
15174
|
-
count$1++;
|
|
15175
|
-
if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
|
|
15176
|
-
}
|
|
15177
|
-
pattern += str[j++];
|
|
15178
|
-
}
|
|
15179
|
-
if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
|
|
15180
|
-
if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
|
|
15181
|
-
tokens.push({
|
|
15182
|
-
type: "PATTERN",
|
|
15183
|
-
index: i,
|
|
15184
|
-
value: pattern
|
|
15185
|
-
});
|
|
15186
|
-
i = j;
|
|
15187
|
-
continue;
|
|
15188
|
-
}
|
|
15189
|
-
tokens.push({
|
|
15190
|
-
type: "CHAR",
|
|
15191
|
-
index: i,
|
|
15192
|
-
value: str[i++]
|
|
15193
|
-
});
|
|
15194
|
-
}
|
|
15195
|
-
tokens.push({
|
|
15196
|
-
type: "END",
|
|
15197
|
-
index: i,
|
|
15198
|
-
value: ""
|
|
15199
|
-
});
|
|
15200
|
-
return tokens;
|
|
15120
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
|
|
15121
|
+
function hasConfigurableGlobal(propertyName) {
|
|
15122
|
+
const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
|
|
15123
|
+
if (typeof descriptor === "undefined") return false;
|
|
15124
|
+
if (typeof descriptor.get === "function" && typeof descriptor.get() === "undefined") return false;
|
|
15125
|
+
if (typeof descriptor.get === "undefined" && descriptor.value == null) return false;
|
|
15126
|
+
if (typeof descriptor.set === "undefined" && !descriptor.configurable) {
|
|
15127
|
+
console.error(`[MSW] Failed to apply interceptor: the global \`${propertyName}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);
|
|
15128
|
+
return false;
|
|
15201
15129
|
}
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
while (value$1 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) result$1 += value$1;
|
|
15226
|
-
return result$1;
|
|
15227
|
-
};
|
|
15228
|
-
var isSafe = function(value$1) {
|
|
15229
|
-
for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
|
|
15230
|
-
var char$1 = delimiter_1[_i];
|
|
15231
|
-
if (value$1.indexOf(char$1) > -1) return true;
|
|
15232
|
-
}
|
|
15233
|
-
return false;
|
|
15234
|
-
};
|
|
15235
|
-
var safePattern = function(prefix$1) {
|
|
15236
|
-
var prev = result[result.length - 1];
|
|
15237
|
-
var prevText = prefix$1 || (prev && typeof prev === "string" ? prev : "");
|
|
15238
|
-
if (prev && !prevText) throw new TypeError("Must have text between two parameters, missing text after \"".concat(prev.name, "\""));
|
|
15239
|
-
if (!prevText || isSafe(prevText)) return "[^".concat(escapeString(delimiter), "]+?");
|
|
15240
|
-
return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
|
|
15241
|
-
};
|
|
15242
|
-
while (i < tokens.length) {
|
|
15243
|
-
var char = tryConsume("CHAR");
|
|
15244
|
-
var name = tryConsume("NAME");
|
|
15245
|
-
var pattern = tryConsume("PATTERN");
|
|
15246
|
-
if (name || pattern) {
|
|
15247
|
-
var prefix = char || "";
|
|
15248
|
-
if (prefixes.indexOf(prefix) === -1) {
|
|
15249
|
-
path += prefix;
|
|
15250
|
-
prefix = "";
|
|
15251
|
-
}
|
|
15252
|
-
if (path) {
|
|
15253
|
-
result.push(path);
|
|
15254
|
-
path = "";
|
|
15255
|
-
}
|
|
15256
|
-
result.push({
|
|
15257
|
-
name: name || key++,
|
|
15258
|
-
prefix,
|
|
15259
|
-
suffix: "",
|
|
15260
|
-
pattern: pattern || safePattern(prefix),
|
|
15261
|
-
modifier: tryConsume("MODIFIER") || ""
|
|
15262
|
-
});
|
|
15263
|
-
continue;
|
|
15264
|
-
}
|
|
15265
|
-
var value = char || tryConsume("ESCAPED_CHAR");
|
|
15266
|
-
if (value) {
|
|
15267
|
-
path += value;
|
|
15268
|
-
continue;
|
|
15269
|
-
}
|
|
15270
|
-
if (path) {
|
|
15271
|
-
result.push(path);
|
|
15272
|
-
path = "";
|
|
15273
|
-
}
|
|
15274
|
-
var open = tryConsume("OPEN");
|
|
15275
|
-
if (open) {
|
|
15276
|
-
var prefix = consumeText();
|
|
15277
|
-
var name_1 = tryConsume("NAME") || "";
|
|
15278
|
-
var pattern_1 = tryConsume("PATTERN") || "";
|
|
15279
|
-
var suffix = consumeText();
|
|
15280
|
-
mustConsume("CLOSE");
|
|
15281
|
-
result.push({
|
|
15282
|
-
name: name_1 || (pattern_1 ? key++ : ""),
|
|
15283
|
-
pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
|
|
15284
|
-
prefix,
|
|
15285
|
-
suffix,
|
|
15286
|
-
modifier: tryConsume("MODIFIER") || ""
|
|
15287
|
-
});
|
|
15288
|
-
continue;
|
|
15289
|
-
}
|
|
15290
|
-
mustConsume("END");
|
|
15291
|
-
}
|
|
15292
|
-
return result;
|
|
15130
|
+
return true;
|
|
15131
|
+
}
|
|
15132
|
+
|
|
15133
|
+
//#endregion
|
|
15134
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
15135
|
+
function getGlobalSymbol(symbol) {
|
|
15136
|
+
return globalThis[symbol] || void 0;
|
|
15137
|
+
}
|
|
15138
|
+
function setGlobalSymbol(symbol, value) {
|
|
15139
|
+
globalThis[symbol] = value;
|
|
15140
|
+
}
|
|
15141
|
+
function deleteGlobalSymbol(symbol) {
|
|
15142
|
+
delete globalThis[symbol];
|
|
15143
|
+
}
|
|
15144
|
+
var Interceptor = class {
|
|
15145
|
+
constructor(symbol) {
|
|
15146
|
+
this.symbol = symbol;
|
|
15147
|
+
this.readyState = "INACTIVE";
|
|
15148
|
+
this.emitter = new Emitter();
|
|
15149
|
+
this.subscriptions = [];
|
|
15150
|
+
this.logger = new Logger(symbol.description);
|
|
15151
|
+
this.emitter.setMaxListeners(0);
|
|
15152
|
+
this.logger.info("constructing the interceptor...");
|
|
15293
15153
|
}
|
|
15294
|
-
exports.parse = parse$1;
|
|
15295
15154
|
/**
|
|
15296
|
-
*
|
|
15155
|
+
* Determine if this interceptor can be applied
|
|
15156
|
+
* in the current environment.
|
|
15297
15157
|
*/
|
|
15298
|
-
|
|
15299
|
-
return
|
|
15158
|
+
checkEnvironment() {
|
|
15159
|
+
return true;
|
|
15300
15160
|
}
|
|
15301
|
-
exports.compile = compile;
|
|
15302
15161
|
/**
|
|
15303
|
-
*
|
|
15162
|
+
* Apply this interceptor to the current process.
|
|
15163
|
+
* Returns an already running interceptor instance if it's present.
|
|
15304
15164
|
*/
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15323
|
-
|
|
15324
|
-
|
|
15325
|
-
|
|
15326
|
-
|
|
15327
|
-
if (value.length === 0) {
|
|
15328
|
-
if (optional) continue;
|
|
15329
|
-
throw new TypeError("Expected \"".concat(token.name, "\" to not be empty"));
|
|
15330
|
-
}
|
|
15331
|
-
for (var j = 0; j < value.length; j++) {
|
|
15332
|
-
var segment = encode(value[j], token);
|
|
15333
|
-
if (validate && !matches[i].test(segment)) throw new TypeError("Expected all \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
15334
|
-
path += token.prefix + segment + token.suffix;
|
|
15335
|
-
}
|
|
15336
|
-
continue;
|
|
15337
|
-
}
|
|
15338
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
15339
|
-
var segment = encode(String(value), token);
|
|
15340
|
-
if (validate && !matches[i].test(segment)) throw new TypeError("Expected \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
15341
|
-
path += token.prefix + segment + token.suffix;
|
|
15342
|
-
continue;
|
|
15343
|
-
}
|
|
15344
|
-
if (optional) continue;
|
|
15345
|
-
var typeOfMessage = repeat ? "an array" : "a string";
|
|
15346
|
-
throw new TypeError("Expected \"".concat(token.name, "\" to be ").concat(typeOfMessage));
|
|
15347
|
-
}
|
|
15348
|
-
return path;
|
|
15349
|
-
};
|
|
15350
|
-
}
|
|
15351
|
-
exports.tokensToFunction = tokensToFunction;
|
|
15352
|
-
/**
|
|
15353
|
-
* Create path match function from `path-to-regexp` spec.
|
|
15354
|
-
*/
|
|
15355
|
-
function match$1(str, options) {
|
|
15356
|
-
var keys = [];
|
|
15357
|
-
var re = pathToRegexp(str, keys, options);
|
|
15358
|
-
return regexpToFunction(re, keys, options);
|
|
15359
|
-
}
|
|
15360
|
-
exports.match = match$1;
|
|
15361
|
-
/**
|
|
15362
|
-
* Create a path match function from `path-to-regexp` output.
|
|
15363
|
-
*/
|
|
15364
|
-
function regexpToFunction(re, keys, options) {
|
|
15365
|
-
if (options === void 0) options = {};
|
|
15366
|
-
var _a$1 = options.decode, decode = _a$1 === void 0 ? function(x) {
|
|
15367
|
-
return x;
|
|
15368
|
-
} : _a$1;
|
|
15369
|
-
return function(pathname) {
|
|
15370
|
-
var m = re.exec(pathname);
|
|
15371
|
-
if (!m) return false;
|
|
15372
|
-
var path = m[0], index = m.index;
|
|
15373
|
-
var params = Object.create(null);
|
|
15374
|
-
var _loop_1 = function(i$1) {
|
|
15375
|
-
if (m[i$1] === void 0) return "continue";
|
|
15376
|
-
var key = keys[i$1 - 1];
|
|
15377
|
-
if (key.modifier === "*" || key.modifier === "+") params[key.name] = m[i$1].split(key.prefix + key.suffix).map(function(value) {
|
|
15378
|
-
return decode(value, key);
|
|
15165
|
+
apply() {
|
|
15166
|
+
const logger$2 = this.logger.extend("apply");
|
|
15167
|
+
logger$2.info("applying the interceptor...");
|
|
15168
|
+
if (this.readyState === "APPLIED") {
|
|
15169
|
+
logger$2.info("intercepted already applied!");
|
|
15170
|
+
return;
|
|
15171
|
+
}
|
|
15172
|
+
const shouldApply = this.checkEnvironment();
|
|
15173
|
+
if (!shouldApply) {
|
|
15174
|
+
logger$2.info("the interceptor cannot be applied in this environment!");
|
|
15175
|
+
return;
|
|
15176
|
+
}
|
|
15177
|
+
this.readyState = "APPLYING";
|
|
15178
|
+
const runningInstance = this.getInstance();
|
|
15179
|
+
if (runningInstance) {
|
|
15180
|
+
logger$2.info("found a running instance, reusing...");
|
|
15181
|
+
this.on = (event, listener) => {
|
|
15182
|
+
logger$2.info("proxying the \"%s\" listener", event);
|
|
15183
|
+
runningInstance.emitter.addListener(event, listener);
|
|
15184
|
+
this.subscriptions.push(() => {
|
|
15185
|
+
runningInstance.emitter.removeListener(event, listener);
|
|
15186
|
+
logger$2.info("removed proxied \"%s\" listener!", event);
|
|
15379
15187
|
});
|
|
15380
|
-
|
|
15381
|
-
};
|
|
15382
|
-
for (var i = 1; i < m.length; i++) _loop_1(i);
|
|
15383
|
-
return {
|
|
15384
|
-
path,
|
|
15385
|
-
index,
|
|
15386
|
-
params
|
|
15188
|
+
return this;
|
|
15387
15189
|
};
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
15190
|
+
this.readyState = "APPLIED";
|
|
15191
|
+
return;
|
|
15192
|
+
}
|
|
15193
|
+
logger$2.info("no running instance found, setting up a new instance...");
|
|
15194
|
+
this.setup();
|
|
15195
|
+
this.setInstance();
|
|
15196
|
+
this.readyState = "APPLIED";
|
|
15396
15197
|
}
|
|
15397
15198
|
/**
|
|
15398
|
-
*
|
|
15199
|
+
* Setup the module augments and stubs necessary for this interceptor.
|
|
15200
|
+
* This method is not run if there's a running interceptor instance
|
|
15201
|
+
* to prevent instantiating an interceptor multiple times.
|
|
15399
15202
|
*/
|
|
15400
|
-
|
|
15401
|
-
return options && options.sensitive ? "" : "i";
|
|
15402
|
-
}
|
|
15203
|
+
setup() {}
|
|
15403
15204
|
/**
|
|
15404
|
-
*
|
|
15205
|
+
* Listen to the interceptor's public events.
|
|
15405
15206
|
*/
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
while (execResult) {
|
|
15412
|
-
keys.push({
|
|
15413
|
-
name: execResult[1] || index++,
|
|
15414
|
-
prefix: "",
|
|
15415
|
-
suffix: "",
|
|
15416
|
-
modifier: "",
|
|
15417
|
-
pattern: ""
|
|
15418
|
-
});
|
|
15419
|
-
execResult = groupsRegex.exec(path.source);
|
|
15207
|
+
on(event, listener) {
|
|
15208
|
+
const logger$2 = this.logger.extend("on");
|
|
15209
|
+
if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
|
|
15210
|
+
logger$2.info("cannot listen to events, already disposed!");
|
|
15211
|
+
return this;
|
|
15420
15212
|
}
|
|
15421
|
-
|
|
15213
|
+
logger$2.info("adding \"%s\" event listener:", event, listener);
|
|
15214
|
+
this.emitter.on(event, listener);
|
|
15215
|
+
return this;
|
|
15422
15216
|
}
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
function arrayToRegexp(paths, keys, options) {
|
|
15427
|
-
var parts = paths.map(function(path) {
|
|
15428
|
-
return pathToRegexp(path, keys, options).source;
|
|
15429
|
-
});
|
|
15430
|
-
return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
|
|
15217
|
+
once(event, listener) {
|
|
15218
|
+
this.emitter.once(event, listener);
|
|
15219
|
+
return this;
|
|
15431
15220
|
}
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15221
|
+
off(event, listener) {
|
|
15222
|
+
this.emitter.off(event, listener);
|
|
15223
|
+
return this;
|
|
15224
|
+
}
|
|
15225
|
+
removeAllListeners(event) {
|
|
15226
|
+
this.emitter.removeAllListeners(event);
|
|
15227
|
+
return this;
|
|
15437
15228
|
}
|
|
15438
15229
|
/**
|
|
15439
|
-
*
|
|
15230
|
+
* Disposes of any side-effects this interceptor has introduced.
|
|
15440
15231
|
*/
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
|
|
15447
|
-
var delimiterRe = "[".concat(escapeString(delimiter), "]");
|
|
15448
|
-
var route = start ? "^" : "";
|
|
15449
|
-
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
15450
|
-
var token = tokens_1[_i];
|
|
15451
|
-
if (typeof token === "string") route += escapeString(encode(token));
|
|
15452
|
-
else {
|
|
15453
|
-
var prefix = escapeString(encode(token.prefix));
|
|
15454
|
-
var suffix = escapeString(encode(token.suffix));
|
|
15455
|
-
if (token.pattern) {
|
|
15456
|
-
if (keys) keys.push(token);
|
|
15457
|
-
if (prefix || suffix) if (token.modifier === "+" || token.modifier === "*") {
|
|
15458
|
-
var mod = token.modifier === "*" ? "?" : "";
|
|
15459
|
-
route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
|
|
15460
|
-
} else route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
|
|
15461
|
-
else {
|
|
15462
|
-
if (token.modifier === "+" || token.modifier === "*") throw new TypeError("Can not repeat \"".concat(token.name, "\" without a prefix and suffix"));
|
|
15463
|
-
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
15464
|
-
}
|
|
15465
|
-
} else route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
|
15466
|
-
}
|
|
15232
|
+
dispose() {
|
|
15233
|
+
const logger$2 = this.logger.extend("dispose");
|
|
15234
|
+
if (this.readyState === "DISPOSED") {
|
|
15235
|
+
logger$2.info("cannot dispose, already disposed!");
|
|
15236
|
+
return;
|
|
15467
15237
|
}
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
|
|
15474
|
-
if (!strict) route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
|
|
15475
|
-
if (!isEndDelimited) route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
|
|
15238
|
+
logger$2.info("disposing the interceptor...");
|
|
15239
|
+
this.readyState = "DISPOSING";
|
|
15240
|
+
if (!this.getInstance()) {
|
|
15241
|
+
logger$2.info("no interceptors running, skipping dispose...");
|
|
15242
|
+
return;
|
|
15476
15243
|
}
|
|
15477
|
-
|
|
15244
|
+
this.clearInstance();
|
|
15245
|
+
logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
|
|
15246
|
+
if (this.subscriptions.length > 0) {
|
|
15247
|
+
logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
15248
|
+
for (const dispose of this.subscriptions) dispose();
|
|
15249
|
+
this.subscriptions = [];
|
|
15250
|
+
logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
|
|
15251
|
+
}
|
|
15252
|
+
this.emitter.removeAllListeners();
|
|
15253
|
+
logger$2.info("destroyed the listener!");
|
|
15254
|
+
this.readyState = "DISPOSED";
|
|
15478
15255
|
}
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
15485
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
15486
|
-
*/
|
|
15487
|
-
function pathToRegexp(path, keys, options) {
|
|
15488
|
-
if (path instanceof RegExp) return regexpToRegexp(path, keys);
|
|
15489
|
-
if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
|
|
15490
|
-
return stringToRegexp(path, keys, options);
|
|
15256
|
+
getInstance() {
|
|
15257
|
+
var _a$1;
|
|
15258
|
+
const instance = getGlobalSymbol(this.symbol);
|
|
15259
|
+
this.logger.info("retrieved global instance:", (_a$1 = instance == null ? void 0 : instance.constructor) == null ? void 0 : _a$1.name);
|
|
15260
|
+
return instance;
|
|
15491
15261
|
}
|
|
15492
|
-
|
|
15493
|
-
|
|
15262
|
+
setInstance() {
|
|
15263
|
+
setGlobalSymbol(this.symbol, this);
|
|
15264
|
+
this.logger.info("set global instance!", this.symbol.description);
|
|
15265
|
+
}
|
|
15266
|
+
clearInstance() {
|
|
15267
|
+
deleteGlobalSymbol(this.symbol);
|
|
15268
|
+
this.logger.info("cleared global instance!", this.symbol.description);
|
|
15269
|
+
}
|
|
15270
|
+
};
|
|
15271
|
+
function createRequestId() {
|
|
15272
|
+
return Math.random().toString(16).slice(2);
|
|
15273
|
+
}
|
|
15494
15274
|
|
|
15495
15275
|
//#endregion
|
|
15496
|
-
//#region ../../node_modules/.pnpm
|
|
15497
|
-
const REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g;
|
|
15498
|
-
function getSearchParams(path) {
|
|
15499
|
-
return new URL(`/${path}`, "http://localhost").searchParams;
|
|
15500
|
-
}
|
|
15501
|
-
function cleanUrl(path) {
|
|
15502
|
-
if (path.endsWith("?")) return path;
|
|
15503
|
-
return path.replace(REDUNDANT_CHARACTERS_EXP, "");
|
|
15504
|
-
}
|
|
15505
|
-
|
|
15506
|
-
//#endregion
|
|
15507
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
|
|
15508
|
-
function isAbsoluteUrl(url) {
|
|
15509
|
-
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
15510
|
-
}
|
|
15511
|
-
|
|
15512
|
-
//#endregion
|
|
15513
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
|
|
15514
|
-
function getAbsoluteUrl(path, baseUrl) {
|
|
15515
|
-
if (isAbsoluteUrl(path)) return path;
|
|
15516
|
-
if (path.startsWith("*")) return path;
|
|
15517
|
-
const origin = baseUrl || typeof location !== "undefined" && location.href;
|
|
15518
|
-
return origin ? decodeURI(new URL(encodeURI(path), origin).href) : path;
|
|
15519
|
-
}
|
|
15520
|
-
|
|
15521
|
-
//#endregion
|
|
15522
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
|
|
15523
|
-
function normalizePath(path, baseUrl) {
|
|
15524
|
-
if (path instanceof RegExp) return path;
|
|
15525
|
-
const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl);
|
|
15526
|
-
return cleanUrl(maybeAbsoluteUrl);
|
|
15527
|
-
}
|
|
15528
|
-
|
|
15529
|
-
//#endregion
|
|
15530
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
|
|
15531
|
-
var import_dist = __toESM(require_dist(), 1);
|
|
15532
|
-
function coercePath(path) {
|
|
15533
|
-
return path.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g, (_, parameterName, wildcard) => {
|
|
15534
|
-
const expression = "(.*)";
|
|
15535
|
-
if (!parameterName) return expression;
|
|
15536
|
-
return parameterName.startsWith(":") ? `${parameterName}${wildcard}` : `${parameterName}${expression}`;
|
|
15537
|
-
}).replace(/([^\/])(:)(?=\d+)/, "$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/, "$1\\$2");
|
|
15538
|
-
}
|
|
15539
|
-
function matchRequestUrl(url, path, baseUrl) {
|
|
15540
|
-
const normalizedPath = normalizePath(path, baseUrl);
|
|
15541
|
-
const cleanPath = typeof normalizedPath === "string" ? coercePath(normalizedPath) : normalizedPath;
|
|
15542
|
-
const cleanUrl$1 = getCleanUrl(url);
|
|
15543
|
-
const result = (0, import_dist.match)(cleanPath, { decode: decodeURIComponent })(cleanUrl$1);
|
|
15544
|
-
const params = result && result.params || {};
|
|
15545
|
-
return {
|
|
15546
|
-
matches: result !== false,
|
|
15547
|
-
params
|
|
15548
|
-
};
|
|
15549
|
-
}
|
|
15550
|
-
|
|
15551
|
-
//#endregion
|
|
15552
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
|
|
15553
|
-
const SOURCE_FRAME = /[\/\\]msw[\/\\]src[\/\\](.+)/;
|
|
15554
|
-
const BUILD_FRAME = /(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;
|
|
15555
|
-
function getCallFrame(error$2) {
|
|
15556
|
-
const stack = error$2.stack;
|
|
15557
|
-
if (!stack) return;
|
|
15558
|
-
const frames = stack.split("\n").slice(1);
|
|
15559
|
-
const declarationFrame = frames.find((frame) => {
|
|
15560
|
-
return !(SOURCE_FRAME.test(frame) || BUILD_FRAME.test(frame));
|
|
15561
|
-
});
|
|
15562
|
-
if (!declarationFrame) return;
|
|
15563
|
-
const declarationPath = declarationFrame.replace(/\s*at [^()]*\(([^)]+)\)/, "$1").replace(/^@/, "");
|
|
15564
|
-
return declarationPath;
|
|
15565
|
-
}
|
|
15566
|
-
|
|
15567
|
-
//#endregion
|
|
15568
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/WebSocketHandler.mjs
|
|
15569
|
-
const kEmitter$1 = Symbol("kEmitter");
|
|
15570
|
-
const kDispatchEvent = Symbol("kDispatchEvent");
|
|
15571
|
-
const kSender = Symbol("kSender");
|
|
15572
|
-
const kStopPropagationPatched = Symbol("kStopPropagationPatched");
|
|
15573
|
-
const KOnStopPropagation = Symbol("KOnStopPropagation");
|
|
15574
|
-
var WebSocketHandler = class {
|
|
15575
|
-
constructor(url) {
|
|
15576
|
-
this.url = url;
|
|
15577
|
-
this.id = createRequestId$1();
|
|
15578
|
-
this[kEmitter$1] = new Emitter();
|
|
15579
|
-
this.callFrame = getCallFrame(new Error());
|
|
15580
|
-
this.__kind = "EventHandler";
|
|
15581
|
-
}
|
|
15582
|
-
__kind;
|
|
15583
|
-
id;
|
|
15584
|
-
callFrame;
|
|
15585
|
-
[kEmitter$1];
|
|
15586
|
-
parse(args) {
|
|
15587
|
-
const { data: connection } = args.event;
|
|
15588
|
-
const { url: clientUrl } = connection.client;
|
|
15589
|
-
clientUrl.pathname = clientUrl.pathname.replace(/^\/socket.io\//, "/");
|
|
15590
|
-
const match$2 = matchRequestUrl(clientUrl, this.url);
|
|
15591
|
-
return { match: match$2 };
|
|
15592
|
-
}
|
|
15593
|
-
predicate(args) {
|
|
15594
|
-
return args.parsedResult.match.matches;
|
|
15595
|
-
}
|
|
15596
|
-
async [kDispatchEvent](event) {
|
|
15597
|
-
const parsedResult = this.parse({ event });
|
|
15598
|
-
const connection = event.data;
|
|
15599
|
-
const resolvedConnection = {
|
|
15600
|
-
...connection,
|
|
15601
|
-
params: parsedResult.match.params || {}
|
|
15602
|
-
};
|
|
15603
|
-
connection.client.addEventListener("message", createStopPropagationListener(this));
|
|
15604
|
-
connection.client.addEventListener("close", createStopPropagationListener(this));
|
|
15605
|
-
connection.server.addEventListener("open", createStopPropagationListener(this));
|
|
15606
|
-
connection.server.addEventListener("message", createStopPropagationListener(this));
|
|
15607
|
-
connection.server.addEventListener("error", createStopPropagationListener(this));
|
|
15608
|
-
connection.server.addEventListener("close", createStopPropagationListener(this));
|
|
15609
|
-
this[kEmitter$1].emit("connection", resolvedConnection);
|
|
15610
|
-
}
|
|
15611
|
-
};
|
|
15612
|
-
function createStopPropagationListener(handler) {
|
|
15613
|
-
return function stopPropagationListener(event) {
|
|
15614
|
-
const propagationStoppedAt = Reflect.get(event, "kPropagationStoppedAt");
|
|
15615
|
-
if (propagationStoppedAt && handler.id !== propagationStoppedAt) {
|
|
15616
|
-
event.stopImmediatePropagation();
|
|
15617
|
-
return;
|
|
15618
|
-
}
|
|
15619
|
-
Object.defineProperty(event, KOnStopPropagation, {
|
|
15620
|
-
value() {
|
|
15621
|
-
Object.defineProperty(event, "kPropagationStoppedAt", { value: handler.id });
|
|
15622
|
-
},
|
|
15623
|
-
configurable: true
|
|
15624
|
-
});
|
|
15625
|
-
if (!Reflect.get(event, kStopPropagationPatched)) {
|
|
15626
|
-
event.stopPropagation = new Proxy(event.stopPropagation, { apply: (target, thisArg, args) => {
|
|
15627
|
-
Reflect.get(event, KOnStopPropagation)?.call(handler);
|
|
15628
|
-
return Reflect.apply(target, thisArg, args);
|
|
15629
|
-
} });
|
|
15630
|
-
Object.defineProperty(event, kStopPropagationPatched, {
|
|
15631
|
-
value: true,
|
|
15632
|
-
configurable: false
|
|
15633
|
-
});
|
|
15634
|
-
}
|
|
15635
|
-
};
|
|
15636
|
-
}
|
|
15637
|
-
|
|
15638
|
-
//#endregion
|
|
15639
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
|
|
15640
|
-
function hasConfigurableGlobal(propertyName) {
|
|
15641
|
-
const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
|
|
15642
|
-
if (typeof descriptor === "undefined") return false;
|
|
15643
|
-
if (typeof descriptor.get === "function" && typeof descriptor.get() === "undefined") return false;
|
|
15644
|
-
if (typeof descriptor.get === "undefined" && descriptor.value == null) return false;
|
|
15645
|
-
if (typeof descriptor.set === "undefined" && !descriptor.configurable) {
|
|
15646
|
-
console.error(`[MSW] Failed to apply interceptor: the global \`${propertyName}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);
|
|
15647
|
-
return false;
|
|
15648
|
-
}
|
|
15649
|
-
return true;
|
|
15650
|
-
}
|
|
15651
|
-
|
|
15652
|
-
//#endregion
|
|
15653
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
15654
|
-
function getGlobalSymbol(symbol) {
|
|
15655
|
-
return globalThis[symbol] || void 0;
|
|
15656
|
-
}
|
|
15657
|
-
function setGlobalSymbol(symbol, value) {
|
|
15658
|
-
globalThis[symbol] = value;
|
|
15659
|
-
}
|
|
15660
|
-
function deleteGlobalSymbol(symbol) {
|
|
15661
|
-
delete globalThis[symbol];
|
|
15662
|
-
}
|
|
15663
|
-
var Interceptor = class {
|
|
15664
|
-
constructor(symbol) {
|
|
15665
|
-
this.symbol = symbol;
|
|
15666
|
-
this.readyState = "INACTIVE";
|
|
15667
|
-
this.emitter = new Emitter();
|
|
15668
|
-
this.subscriptions = [];
|
|
15669
|
-
this.logger = new Logger(symbol.description);
|
|
15670
|
-
this.emitter.setMaxListeners(0);
|
|
15671
|
-
this.logger.info("constructing the interceptor...");
|
|
15672
|
-
}
|
|
15673
|
-
/**
|
|
15674
|
-
* Determine if this interceptor can be applied
|
|
15675
|
-
* in the current environment.
|
|
15676
|
-
*/
|
|
15677
|
-
checkEnvironment() {
|
|
15678
|
-
return true;
|
|
15679
|
-
}
|
|
15680
|
-
/**
|
|
15681
|
-
* Apply this interceptor to the current process.
|
|
15682
|
-
* Returns an already running interceptor instance if it's present.
|
|
15683
|
-
*/
|
|
15684
|
-
apply() {
|
|
15685
|
-
const logger$2 = this.logger.extend("apply");
|
|
15686
|
-
logger$2.info("applying the interceptor...");
|
|
15687
|
-
if (this.readyState === "APPLIED") {
|
|
15688
|
-
logger$2.info("intercepted already applied!");
|
|
15689
|
-
return;
|
|
15690
|
-
}
|
|
15691
|
-
const shouldApply = this.checkEnvironment();
|
|
15692
|
-
if (!shouldApply) {
|
|
15693
|
-
logger$2.info("the interceptor cannot be applied in this environment!");
|
|
15694
|
-
return;
|
|
15695
|
-
}
|
|
15696
|
-
this.readyState = "APPLYING";
|
|
15697
|
-
const runningInstance = this.getInstance();
|
|
15698
|
-
if (runningInstance) {
|
|
15699
|
-
logger$2.info("found a running instance, reusing...");
|
|
15700
|
-
this.on = (event, listener) => {
|
|
15701
|
-
logger$2.info("proxying the \"%s\" listener", event);
|
|
15702
|
-
runningInstance.emitter.addListener(event, listener);
|
|
15703
|
-
this.subscriptions.push(() => {
|
|
15704
|
-
runningInstance.emitter.removeListener(event, listener);
|
|
15705
|
-
logger$2.info("removed proxied \"%s\" listener!", event);
|
|
15706
|
-
});
|
|
15707
|
-
return this;
|
|
15708
|
-
};
|
|
15709
|
-
this.readyState = "APPLIED";
|
|
15710
|
-
return;
|
|
15711
|
-
}
|
|
15712
|
-
logger$2.info("no running instance found, setting up a new instance...");
|
|
15713
|
-
this.setup();
|
|
15714
|
-
this.setInstance();
|
|
15715
|
-
this.readyState = "APPLIED";
|
|
15716
|
-
}
|
|
15717
|
-
/**
|
|
15718
|
-
* Setup the module augments and stubs necessary for this interceptor.
|
|
15719
|
-
* This method is not run if there's a running interceptor instance
|
|
15720
|
-
* to prevent instantiating an interceptor multiple times.
|
|
15721
|
-
*/
|
|
15722
|
-
setup() {}
|
|
15723
|
-
/**
|
|
15724
|
-
* Listen to the interceptor's public events.
|
|
15725
|
-
*/
|
|
15726
|
-
on(event, listener) {
|
|
15727
|
-
const logger$2 = this.logger.extend("on");
|
|
15728
|
-
if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
|
|
15729
|
-
logger$2.info("cannot listen to events, already disposed!");
|
|
15730
|
-
return this;
|
|
15731
|
-
}
|
|
15732
|
-
logger$2.info("adding \"%s\" event listener:", event, listener);
|
|
15733
|
-
this.emitter.on(event, listener);
|
|
15734
|
-
return this;
|
|
15735
|
-
}
|
|
15736
|
-
once(event, listener) {
|
|
15737
|
-
this.emitter.once(event, listener);
|
|
15738
|
-
return this;
|
|
15739
|
-
}
|
|
15740
|
-
off(event, listener) {
|
|
15741
|
-
this.emitter.off(event, listener);
|
|
15742
|
-
return this;
|
|
15743
|
-
}
|
|
15744
|
-
removeAllListeners(event) {
|
|
15745
|
-
this.emitter.removeAllListeners(event);
|
|
15746
|
-
return this;
|
|
15747
|
-
}
|
|
15748
|
-
/**
|
|
15749
|
-
* Disposes of any side-effects this interceptor has introduced.
|
|
15750
|
-
*/
|
|
15751
|
-
dispose() {
|
|
15752
|
-
const logger$2 = this.logger.extend("dispose");
|
|
15753
|
-
if (this.readyState === "DISPOSED") {
|
|
15754
|
-
logger$2.info("cannot dispose, already disposed!");
|
|
15755
|
-
return;
|
|
15756
|
-
}
|
|
15757
|
-
logger$2.info("disposing the interceptor...");
|
|
15758
|
-
this.readyState = "DISPOSING";
|
|
15759
|
-
if (!this.getInstance()) {
|
|
15760
|
-
logger$2.info("no interceptors running, skipping dispose...");
|
|
15761
|
-
return;
|
|
15762
|
-
}
|
|
15763
|
-
this.clearInstance();
|
|
15764
|
-
logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
|
|
15765
|
-
if (this.subscriptions.length > 0) {
|
|
15766
|
-
logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
15767
|
-
for (const dispose of this.subscriptions) dispose();
|
|
15768
|
-
this.subscriptions = [];
|
|
15769
|
-
logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
|
|
15770
|
-
}
|
|
15771
|
-
this.emitter.removeAllListeners();
|
|
15772
|
-
logger$2.info("destroyed the listener!");
|
|
15773
|
-
this.readyState = "DISPOSED";
|
|
15774
|
-
}
|
|
15775
|
-
getInstance() {
|
|
15776
|
-
var _a$1;
|
|
15777
|
-
const instance = getGlobalSymbol(this.symbol);
|
|
15778
|
-
this.logger.info("retrieved global instance:", (_a$1 = instance == null ? void 0 : instance.constructor) == null ? void 0 : _a$1.name);
|
|
15779
|
-
return instance;
|
|
15780
|
-
}
|
|
15781
|
-
setInstance() {
|
|
15782
|
-
setGlobalSymbol(this.symbol, this);
|
|
15783
|
-
this.logger.info("set global instance!", this.symbol.description);
|
|
15784
|
-
}
|
|
15785
|
-
clearInstance() {
|
|
15786
|
-
deleteGlobalSymbol(this.symbol);
|
|
15787
|
-
this.logger.info("cleared global instance!", this.symbol.description);
|
|
15788
|
-
}
|
|
15789
|
-
};
|
|
15790
|
-
function createRequestId() {
|
|
15791
|
-
return Math.random().toString(16).slice(2);
|
|
15792
|
-
}
|
|
15793
|
-
|
|
15794
|
-
//#endregion
|
|
15795
|
-
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
|
|
15276
|
+
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
|
|
15796
15277
|
function bindEvent(target, event) {
|
|
15797
15278
|
Object.defineProperties(event, {
|
|
15798
15279
|
target: {
|
|
@@ -16290,11 +15771,11 @@ var WebSocketInterceptor = _WebSocketInterceptor;
|
|
|
16290
15771
|
WebSocketInterceptor.symbol = Symbol("websocket");
|
|
16291
15772
|
|
|
16292
15773
|
//#endregion
|
|
16293
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15774
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/ws/webSocketInterceptor.mjs
|
|
16294
15775
|
const webSocketInterceptor = new WebSocketInterceptor();
|
|
16295
15776
|
|
|
16296
15777
|
//#endregion
|
|
16297
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15778
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isHandlerKind.mjs
|
|
16298
15779
|
function isHandlerKind(kind) {
|
|
16299
15780
|
return (input) => {
|
|
16300
15781
|
return input != null && typeof input === "object" && "__kind" in input && input.__kind === kind;
|
|
@@ -16302,41 +15783,37 @@ function isHandlerKind(kind) {
|
|
|
16302
15783
|
}
|
|
16303
15784
|
|
|
16304
15785
|
//#endregion
|
|
16305
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15786
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/ws/handleWebSocketEvent.mjs
|
|
16306
15787
|
function handleWebSocketEvent(options) {
|
|
16307
15788
|
webSocketInterceptor.on("connection", async (connection) => {
|
|
16308
|
-
const handlers = options.getHandlers();
|
|
16309
|
-
|
|
16310
|
-
const matchingHandlers = [];
|
|
16311
|
-
for (const handler of handlers) if (isHandlerKind("EventHandler")(handler) && handler.predicate({
|
|
16312
|
-
event: connectionEvent,
|
|
16313
|
-
parsedResult: handler.parse({ event: connectionEvent })
|
|
16314
|
-
})) matchingHandlers.push(handler);
|
|
16315
|
-
if (matchingHandlers.length > 0) {
|
|
15789
|
+
const handlers = options.getHandlers().filter(isHandlerKind("EventHandler"));
|
|
15790
|
+
if (handlers.length > 0) {
|
|
16316
15791
|
options?.onMockedConnection(connection);
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
connection: "upgrade"
|
|
16322
|
-
} });
|
|
16323
|
-
await onUnhandledRequest(request, options.getUnhandledRequestStrategy()).catch((error$2) => {
|
|
16324
|
-
const errorEvent = new Event("error");
|
|
16325
|
-
Object.defineProperty(errorEvent, "cause", {
|
|
16326
|
-
enumerable: true,
|
|
16327
|
-
configurable: false,
|
|
16328
|
-
value: error$2
|
|
16329
|
-
});
|
|
16330
|
-
connection.client.socket.dispatchEvent(errorEvent);
|
|
16331
|
-
});
|
|
16332
|
-
options?.onPassthroughConnection(connection);
|
|
16333
|
-
connection.server.connect();
|
|
15792
|
+
await Promise.all(handlers.map((handler) => {
|
|
15793
|
+
return handler.run(connection);
|
|
15794
|
+
}));
|
|
15795
|
+
return;
|
|
16334
15796
|
}
|
|
15797
|
+
const request = new Request(connection.client.url, { headers: {
|
|
15798
|
+
upgrade: "websocket",
|
|
15799
|
+
connection: "upgrade"
|
|
15800
|
+
} });
|
|
15801
|
+
await onUnhandledRequest(request, options.getUnhandledRequestStrategy()).catch((error$2) => {
|
|
15802
|
+
const errorEvent = new Event("error");
|
|
15803
|
+
Object.defineProperty(errorEvent, "cause", {
|
|
15804
|
+
enumerable: true,
|
|
15805
|
+
configurable: false,
|
|
15806
|
+
value: error$2
|
|
15807
|
+
});
|
|
15808
|
+
connection.client.socket.dispatchEvent(errorEvent);
|
|
15809
|
+
});
|
|
15810
|
+
options?.onPassthroughConnection(connection);
|
|
15811
|
+
connection.server.connect();
|
|
16335
15812
|
});
|
|
16336
15813
|
}
|
|
16337
15814
|
|
|
16338
15815
|
//#endregion
|
|
16339
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
15816
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/node/index.mjs
|
|
16340
15817
|
var DEFAULT_LISTEN_OPTIONS = { onUnhandledRequest: "warn" };
|
|
16341
15818
|
var SetupServerCommonApi = class extends SetupApi {
|
|
16342
15819
|
interceptor;
|
|
@@ -16441,202 +15918,677 @@ var SetupServerApi = class extends SetupServerCommonApi {
|
|
|
16441
15918
|
}, callback, ...args);
|
|
16442
15919
|
};
|
|
16443
15920
|
}
|
|
16444
|
-
close() {
|
|
16445
|
-
super.close();
|
|
16446
|
-
store.disable();
|
|
15921
|
+
close() {
|
|
15922
|
+
super.close();
|
|
15923
|
+
store.disable();
|
|
15924
|
+
}
|
|
15925
|
+
};
|
|
15926
|
+
var setupServer = (...handlers) => {
|
|
15927
|
+
return new SetupServerApi(handlers);
|
|
15928
|
+
};
|
|
15929
|
+
|
|
15930
|
+
//#endregion
|
|
15931
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
|
|
15932
|
+
const SOURCE_FRAME = /[\/\\]msw[\/\\]src[\/\\](.+)/;
|
|
15933
|
+
const BUILD_FRAME = /(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;
|
|
15934
|
+
function getCallFrame(error$2) {
|
|
15935
|
+
const stack = error$2.stack;
|
|
15936
|
+
if (!stack) return;
|
|
15937
|
+
const frames = stack.split("\n").slice(1);
|
|
15938
|
+
const declarationFrame = frames.find((frame) => {
|
|
15939
|
+
return !(SOURCE_FRAME.test(frame) || BUILD_FRAME.test(frame));
|
|
15940
|
+
});
|
|
15941
|
+
if (!declarationFrame) return;
|
|
15942
|
+
const declarationPath = declarationFrame.replace(/\s*at [^()]*\(([^)]+)\)/, "$1").replace(/^@/, "");
|
|
15943
|
+
return declarationPath;
|
|
15944
|
+
}
|
|
15945
|
+
|
|
15946
|
+
//#endregion
|
|
15947
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
|
|
15948
|
+
function isIterable(fn) {
|
|
15949
|
+
if (!fn) return false;
|
|
15950
|
+
return Reflect.has(fn, Symbol.iterator) || Reflect.has(fn, Symbol.asyncIterator);
|
|
15951
|
+
}
|
|
15952
|
+
|
|
15953
|
+
//#endregion
|
|
15954
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
|
|
15955
|
+
var RequestHandler = class RequestHandler {
|
|
15956
|
+
static cache = /* @__PURE__ */ new WeakMap();
|
|
15957
|
+
__kind;
|
|
15958
|
+
info;
|
|
15959
|
+
/**
|
|
15960
|
+
* Indicates whether this request handler has been used
|
|
15961
|
+
* (its resolver has successfully executed).
|
|
15962
|
+
*/
|
|
15963
|
+
isUsed;
|
|
15964
|
+
resolver;
|
|
15965
|
+
resolverIterator;
|
|
15966
|
+
resolverIteratorResult;
|
|
15967
|
+
options;
|
|
15968
|
+
constructor(args) {
|
|
15969
|
+
this.resolver = args.resolver;
|
|
15970
|
+
this.options = args.options;
|
|
15971
|
+
const callFrame = getCallFrame(/* @__PURE__ */ new Error());
|
|
15972
|
+
this.info = {
|
|
15973
|
+
...args.info,
|
|
15974
|
+
callFrame
|
|
15975
|
+
};
|
|
15976
|
+
this.isUsed = false;
|
|
15977
|
+
this.__kind = "RequestHandler";
|
|
15978
|
+
}
|
|
15979
|
+
/**
|
|
15980
|
+
* Parse the intercepted request to extract additional information from it.
|
|
15981
|
+
* Parsed result is then exposed to other methods of this request handler.
|
|
15982
|
+
*/
|
|
15983
|
+
async parse(_args) {
|
|
15984
|
+
return {};
|
|
15985
|
+
}
|
|
15986
|
+
/**
|
|
15987
|
+
* Test if this handler matches the given request.
|
|
15988
|
+
*
|
|
15989
|
+
* This method is not used internally but is exposed
|
|
15990
|
+
* as a convenience method for consumers writing custom
|
|
15991
|
+
* handlers.
|
|
15992
|
+
*/
|
|
15993
|
+
async test(args) {
|
|
15994
|
+
const parsedResult = await this.parse({
|
|
15995
|
+
request: args.request,
|
|
15996
|
+
resolutionContext: args.resolutionContext
|
|
15997
|
+
});
|
|
15998
|
+
return this.predicate({
|
|
15999
|
+
request: args.request,
|
|
16000
|
+
parsedResult,
|
|
16001
|
+
resolutionContext: args.resolutionContext
|
|
16002
|
+
});
|
|
16003
|
+
}
|
|
16004
|
+
extendResolverArgs(_args) {
|
|
16005
|
+
return {};
|
|
16006
|
+
}
|
|
16007
|
+
cloneRequestOrGetFromCache(request) {
|
|
16008
|
+
const existingClone = RequestHandler.cache.get(request);
|
|
16009
|
+
if (typeof existingClone !== "undefined") return existingClone;
|
|
16010
|
+
const clonedRequest = request.clone();
|
|
16011
|
+
RequestHandler.cache.set(request, clonedRequest);
|
|
16012
|
+
return clonedRequest;
|
|
16013
|
+
}
|
|
16014
|
+
/**
|
|
16015
|
+
* Execute this request handler and produce a mocked response
|
|
16016
|
+
* using the given resolver function.
|
|
16017
|
+
*/
|
|
16018
|
+
async run(args) {
|
|
16019
|
+
if (this.isUsed && this.options?.once) return null;
|
|
16020
|
+
const requestClone = this.cloneRequestOrGetFromCache(args.request);
|
|
16021
|
+
const parsedResult = await this.parse({
|
|
16022
|
+
request: args.request,
|
|
16023
|
+
resolutionContext: args.resolutionContext
|
|
16024
|
+
});
|
|
16025
|
+
const shouldInterceptRequest = this.predicate({
|
|
16026
|
+
request: args.request,
|
|
16027
|
+
parsedResult,
|
|
16028
|
+
resolutionContext: args.resolutionContext
|
|
16029
|
+
});
|
|
16030
|
+
if (!shouldInterceptRequest) return null;
|
|
16031
|
+
if (this.isUsed && this.options?.once) return null;
|
|
16032
|
+
this.isUsed = true;
|
|
16033
|
+
const executeResolver = this.wrapResolver(this.resolver);
|
|
16034
|
+
const resolverExtras = this.extendResolverArgs({
|
|
16035
|
+
request: args.request,
|
|
16036
|
+
parsedResult
|
|
16037
|
+
});
|
|
16038
|
+
const mockedResponsePromise = executeResolver({
|
|
16039
|
+
...resolverExtras,
|
|
16040
|
+
requestId: args.requestId,
|
|
16041
|
+
request: args.request
|
|
16042
|
+
}).catch((errorOrResponse) => {
|
|
16043
|
+
if (errorOrResponse instanceof Response) return errorOrResponse;
|
|
16044
|
+
throw errorOrResponse;
|
|
16045
|
+
});
|
|
16046
|
+
const mockedResponse = await mockedResponsePromise;
|
|
16047
|
+
const executionResult = this.createExecutionResult({
|
|
16048
|
+
request: requestClone,
|
|
16049
|
+
requestId: args.requestId,
|
|
16050
|
+
response: mockedResponse,
|
|
16051
|
+
parsedResult
|
|
16052
|
+
});
|
|
16053
|
+
return executionResult;
|
|
16054
|
+
}
|
|
16055
|
+
wrapResolver(resolver) {
|
|
16056
|
+
return async (info) => {
|
|
16057
|
+
if (!this.resolverIterator) {
|
|
16058
|
+
const result = await resolver(info);
|
|
16059
|
+
if (!isIterable(result)) return result;
|
|
16060
|
+
this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();
|
|
16061
|
+
}
|
|
16062
|
+
this.isUsed = false;
|
|
16063
|
+
const { done, value } = await this.resolverIterator.next();
|
|
16064
|
+
const nextResponse = await value;
|
|
16065
|
+
if (nextResponse) this.resolverIteratorResult = nextResponse.clone();
|
|
16066
|
+
if (done) {
|
|
16067
|
+
this.isUsed = true;
|
|
16068
|
+
return this.resolverIteratorResult?.clone();
|
|
16069
|
+
}
|
|
16070
|
+
return nextResponse;
|
|
16071
|
+
};
|
|
16072
|
+
}
|
|
16073
|
+
createExecutionResult(args) {
|
|
16074
|
+
return {
|
|
16075
|
+
handler: this,
|
|
16076
|
+
request: args.request,
|
|
16077
|
+
requestId: args.requestId,
|
|
16078
|
+
response: args.response,
|
|
16079
|
+
parsedResult: args.parsedResult
|
|
16080
|
+
};
|
|
16081
|
+
}
|
|
16082
|
+
};
|
|
16083
|
+
|
|
16084
|
+
//#endregion
|
|
16085
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isStringEqual.mjs
|
|
16086
|
+
function isStringEqual(actual, expected) {
|
|
16087
|
+
return actual.toLowerCase() === expected.toLowerCase();
|
|
16088
|
+
}
|
|
16089
|
+
|
|
16090
|
+
//#endregion
|
|
16091
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
|
|
16092
|
+
function getStatusCodeColor(status$1) {
|
|
16093
|
+
if (status$1 < 300) return "#69AB32";
|
|
16094
|
+
if (status$1 < 400) return "#F0BB4B";
|
|
16095
|
+
return "#E95F5D";
|
|
16096
|
+
}
|
|
16097
|
+
|
|
16098
|
+
//#endregion
|
|
16099
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getTimestamp.mjs
|
|
16100
|
+
function getTimestamp(options) {
|
|
16101
|
+
const now = /* @__PURE__ */ new Date();
|
|
16102
|
+
const timestamp = `${now.getHours().toString().padStart(2, "0")}:${now.getMinutes().toString().padStart(2, "0")}:${now.getSeconds().toString().padStart(2, "0")}`;
|
|
16103
|
+
if (options?.milliseconds) return `${timestamp}.${now.getMilliseconds().toString().padStart(3, "0")}`;
|
|
16104
|
+
return timestamp;
|
|
16105
|
+
}
|
|
16106
|
+
|
|
16107
|
+
//#endregion
|
|
16108
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeRequest.mjs
|
|
16109
|
+
async function serializeRequest(request) {
|
|
16110
|
+
const requestClone = request.clone();
|
|
16111
|
+
const requestText = await requestClone.text();
|
|
16112
|
+
return {
|
|
16113
|
+
url: new URL(request.url),
|
|
16114
|
+
method: request.method,
|
|
16115
|
+
headers: Object.fromEntries(request.headers.entries()),
|
|
16116
|
+
body: requestText
|
|
16117
|
+
};
|
|
16118
|
+
}
|
|
16119
|
+
|
|
16120
|
+
//#endregion
|
|
16121
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
|
|
16122
|
+
const { message: message$1 } = source_default$1;
|
|
16123
|
+
async function serializeResponse(response) {
|
|
16124
|
+
const responseClone = response.clone();
|
|
16125
|
+
const responseText = await responseClone.text();
|
|
16126
|
+
const responseStatus = responseClone.status || 200;
|
|
16127
|
+
const responseStatusText = responseClone.statusText || message$1[responseStatus] || "OK";
|
|
16128
|
+
return {
|
|
16129
|
+
status: responseStatus,
|
|
16130
|
+
statusText: responseStatusText,
|
|
16131
|
+
headers: Object.fromEntries(responseClone.headers.entries()),
|
|
16132
|
+
body: responseText
|
|
16133
|
+
};
|
|
16134
|
+
}
|
|
16135
|
+
|
|
16136
|
+
//#endregion
|
|
16137
|
+
//#region ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
|
|
16138
|
+
var require_dist = __commonJS$4({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports) {
|
|
16139
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16140
|
+
exports.pathToRegexp = exports.tokensToRegexp = exports.regexpToFunction = exports.match = exports.tokensToFunction = exports.compile = exports.parse = void 0;
|
|
16141
|
+
/**
|
|
16142
|
+
* Tokenize input string.
|
|
16143
|
+
*/
|
|
16144
|
+
function lexer(str) {
|
|
16145
|
+
var tokens = [];
|
|
16146
|
+
var i = 0;
|
|
16147
|
+
while (i < str.length) {
|
|
16148
|
+
var char = str[i];
|
|
16149
|
+
if (char === "*" || char === "+" || char === "?") {
|
|
16150
|
+
tokens.push({
|
|
16151
|
+
type: "MODIFIER",
|
|
16152
|
+
index: i,
|
|
16153
|
+
value: str[i++]
|
|
16154
|
+
});
|
|
16155
|
+
continue;
|
|
16156
|
+
}
|
|
16157
|
+
if (char === "\\") {
|
|
16158
|
+
tokens.push({
|
|
16159
|
+
type: "ESCAPED_CHAR",
|
|
16160
|
+
index: i++,
|
|
16161
|
+
value: str[i++]
|
|
16162
|
+
});
|
|
16163
|
+
continue;
|
|
16164
|
+
}
|
|
16165
|
+
if (char === "{") {
|
|
16166
|
+
tokens.push({
|
|
16167
|
+
type: "OPEN",
|
|
16168
|
+
index: i,
|
|
16169
|
+
value: str[i++]
|
|
16170
|
+
});
|
|
16171
|
+
continue;
|
|
16172
|
+
}
|
|
16173
|
+
if (char === "}") {
|
|
16174
|
+
tokens.push({
|
|
16175
|
+
type: "CLOSE",
|
|
16176
|
+
index: i,
|
|
16177
|
+
value: str[i++]
|
|
16178
|
+
});
|
|
16179
|
+
continue;
|
|
16180
|
+
}
|
|
16181
|
+
if (char === ":") {
|
|
16182
|
+
var name$2 = "";
|
|
16183
|
+
var j = i + 1;
|
|
16184
|
+
while (j < str.length) {
|
|
16185
|
+
var code = str.charCodeAt(j);
|
|
16186
|
+
if (code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) {
|
|
16187
|
+
name$2 += str[j++];
|
|
16188
|
+
continue;
|
|
16189
|
+
}
|
|
16190
|
+
break;
|
|
16191
|
+
}
|
|
16192
|
+
if (!name$2) throw new TypeError("Missing parameter name at ".concat(i));
|
|
16193
|
+
tokens.push({
|
|
16194
|
+
type: "NAME",
|
|
16195
|
+
index: i,
|
|
16196
|
+
value: name$2
|
|
16197
|
+
});
|
|
16198
|
+
i = j;
|
|
16199
|
+
continue;
|
|
16200
|
+
}
|
|
16201
|
+
if (char === "(") {
|
|
16202
|
+
var count$1 = 1;
|
|
16203
|
+
var pattern = "";
|
|
16204
|
+
var j = i + 1;
|
|
16205
|
+
if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
|
|
16206
|
+
while (j < str.length) {
|
|
16207
|
+
if (str[j] === "\\") {
|
|
16208
|
+
pattern += str[j++] + str[j++];
|
|
16209
|
+
continue;
|
|
16210
|
+
}
|
|
16211
|
+
if (str[j] === ")") {
|
|
16212
|
+
count$1--;
|
|
16213
|
+
if (count$1 === 0) {
|
|
16214
|
+
j++;
|
|
16215
|
+
break;
|
|
16216
|
+
}
|
|
16217
|
+
} else if (str[j] === "(") {
|
|
16218
|
+
count$1++;
|
|
16219
|
+
if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
|
|
16220
|
+
}
|
|
16221
|
+
pattern += str[j++];
|
|
16222
|
+
}
|
|
16223
|
+
if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
|
|
16224
|
+
if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
|
|
16225
|
+
tokens.push({
|
|
16226
|
+
type: "PATTERN",
|
|
16227
|
+
index: i,
|
|
16228
|
+
value: pattern
|
|
16229
|
+
});
|
|
16230
|
+
i = j;
|
|
16231
|
+
continue;
|
|
16232
|
+
}
|
|
16233
|
+
tokens.push({
|
|
16234
|
+
type: "CHAR",
|
|
16235
|
+
index: i,
|
|
16236
|
+
value: str[i++]
|
|
16237
|
+
});
|
|
16238
|
+
}
|
|
16239
|
+
tokens.push({
|
|
16240
|
+
type: "END",
|
|
16241
|
+
index: i,
|
|
16242
|
+
value: ""
|
|
16243
|
+
});
|
|
16244
|
+
return tokens;
|
|
16245
|
+
}
|
|
16246
|
+
/**
|
|
16247
|
+
* Parse a string for the raw tokens.
|
|
16248
|
+
*/
|
|
16249
|
+
function parse$1(str, options) {
|
|
16250
|
+
if (options === void 0) options = {};
|
|
16251
|
+
var tokens = lexer(str);
|
|
16252
|
+
var _a$1 = options.prefixes, prefixes = _a$1 === void 0 ? "./" : _a$1, _b$1 = options.delimiter, delimiter = _b$1 === void 0 ? "/#?" : _b$1;
|
|
16253
|
+
var result = [];
|
|
16254
|
+
var key = 0;
|
|
16255
|
+
var i = 0;
|
|
16256
|
+
var path = "";
|
|
16257
|
+
var tryConsume = function(type$2) {
|
|
16258
|
+
if (i < tokens.length && tokens[i].type === type$2) return tokens[i++].value;
|
|
16259
|
+
};
|
|
16260
|
+
var mustConsume = function(type$2) {
|
|
16261
|
+
var value$1 = tryConsume(type$2);
|
|
16262
|
+
if (value$1 !== void 0) return value$1;
|
|
16263
|
+
var _a$2 = tokens[i], nextType = _a$2.type, index = _a$2.index;
|
|
16264
|
+
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type$2));
|
|
16265
|
+
};
|
|
16266
|
+
var consumeText = function() {
|
|
16267
|
+
var result$1 = "";
|
|
16268
|
+
var value$1;
|
|
16269
|
+
while (value$1 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) result$1 += value$1;
|
|
16270
|
+
return result$1;
|
|
16271
|
+
};
|
|
16272
|
+
var isSafe = function(value$1) {
|
|
16273
|
+
for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
|
|
16274
|
+
var char$1 = delimiter_1[_i];
|
|
16275
|
+
if (value$1.indexOf(char$1) > -1) return true;
|
|
16276
|
+
}
|
|
16277
|
+
return false;
|
|
16278
|
+
};
|
|
16279
|
+
var safePattern = function(prefix$1) {
|
|
16280
|
+
var prev = result[result.length - 1];
|
|
16281
|
+
var prevText = prefix$1 || (prev && typeof prev === "string" ? prev : "");
|
|
16282
|
+
if (prev && !prevText) throw new TypeError("Must have text between two parameters, missing text after \"".concat(prev.name, "\""));
|
|
16283
|
+
if (!prevText || isSafe(prevText)) return "[^".concat(escapeString(delimiter), "]+?");
|
|
16284
|
+
return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
|
|
16285
|
+
};
|
|
16286
|
+
while (i < tokens.length) {
|
|
16287
|
+
var char = tryConsume("CHAR");
|
|
16288
|
+
var name$2 = tryConsume("NAME");
|
|
16289
|
+
var pattern = tryConsume("PATTERN");
|
|
16290
|
+
if (name$2 || pattern) {
|
|
16291
|
+
var prefix = char || "";
|
|
16292
|
+
if (prefixes.indexOf(prefix) === -1) {
|
|
16293
|
+
path += prefix;
|
|
16294
|
+
prefix = "";
|
|
16295
|
+
}
|
|
16296
|
+
if (path) {
|
|
16297
|
+
result.push(path);
|
|
16298
|
+
path = "";
|
|
16299
|
+
}
|
|
16300
|
+
result.push({
|
|
16301
|
+
name: name$2 || key++,
|
|
16302
|
+
prefix,
|
|
16303
|
+
suffix: "",
|
|
16304
|
+
pattern: pattern || safePattern(prefix),
|
|
16305
|
+
modifier: tryConsume("MODIFIER") || ""
|
|
16306
|
+
});
|
|
16307
|
+
continue;
|
|
16308
|
+
}
|
|
16309
|
+
var value = char || tryConsume("ESCAPED_CHAR");
|
|
16310
|
+
if (value) {
|
|
16311
|
+
path += value;
|
|
16312
|
+
continue;
|
|
16313
|
+
}
|
|
16314
|
+
if (path) {
|
|
16315
|
+
result.push(path);
|
|
16316
|
+
path = "";
|
|
16317
|
+
}
|
|
16318
|
+
var open = tryConsume("OPEN");
|
|
16319
|
+
if (open) {
|
|
16320
|
+
var prefix = consumeText();
|
|
16321
|
+
var name_1 = tryConsume("NAME") || "";
|
|
16322
|
+
var pattern_1 = tryConsume("PATTERN") || "";
|
|
16323
|
+
var suffix = consumeText();
|
|
16324
|
+
mustConsume("CLOSE");
|
|
16325
|
+
result.push({
|
|
16326
|
+
name: name_1 || (pattern_1 ? key++ : ""),
|
|
16327
|
+
pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
|
|
16328
|
+
prefix,
|
|
16329
|
+
suffix,
|
|
16330
|
+
modifier: tryConsume("MODIFIER") || ""
|
|
16331
|
+
});
|
|
16332
|
+
continue;
|
|
16333
|
+
}
|
|
16334
|
+
mustConsume("END");
|
|
16335
|
+
}
|
|
16336
|
+
return result;
|
|
16337
|
+
}
|
|
16338
|
+
exports.parse = parse$1;
|
|
16339
|
+
/**
|
|
16340
|
+
* Compile a string to a template function for the path.
|
|
16341
|
+
*/
|
|
16342
|
+
function compile(str, options) {
|
|
16343
|
+
return tokensToFunction(parse$1(str, options), options);
|
|
16344
|
+
}
|
|
16345
|
+
exports.compile = compile;
|
|
16346
|
+
/**
|
|
16347
|
+
* Expose a method for transforming tokens into the path function.
|
|
16348
|
+
*/
|
|
16349
|
+
function tokensToFunction(tokens, options) {
|
|
16350
|
+
if (options === void 0) options = {};
|
|
16351
|
+
var reFlags = flags$1(options);
|
|
16352
|
+
var _a$1 = options.encode, encode = _a$1 === void 0 ? function(x) {
|
|
16353
|
+
return x;
|
|
16354
|
+
} : _a$1, _b$1 = options.validate, validate = _b$1 === void 0 ? true : _b$1;
|
|
16355
|
+
var matches = tokens.map(function(token) {
|
|
16356
|
+
if (typeof token === "object") return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
|
|
16357
|
+
});
|
|
16358
|
+
return function(data) {
|
|
16359
|
+
var path = "";
|
|
16360
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
16361
|
+
var token = tokens[i];
|
|
16362
|
+
if (typeof token === "string") {
|
|
16363
|
+
path += token;
|
|
16364
|
+
continue;
|
|
16365
|
+
}
|
|
16366
|
+
var value = data ? data[token.name] : void 0;
|
|
16367
|
+
var optional = token.modifier === "?" || token.modifier === "*";
|
|
16368
|
+
var repeat = token.modifier === "*" || token.modifier === "+";
|
|
16369
|
+
if (Array.isArray(value)) {
|
|
16370
|
+
if (!repeat) throw new TypeError("Expected \"".concat(token.name, "\" to not repeat, but got an array"));
|
|
16371
|
+
if (value.length === 0) {
|
|
16372
|
+
if (optional) continue;
|
|
16373
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to not be empty"));
|
|
16374
|
+
}
|
|
16375
|
+
for (var j = 0; j < value.length; j++) {
|
|
16376
|
+
var segment = encode(value[j], token);
|
|
16377
|
+
if (validate && !matches[i].test(segment)) throw new TypeError("Expected all \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
16378
|
+
path += token.prefix + segment + token.suffix;
|
|
16379
|
+
}
|
|
16380
|
+
continue;
|
|
16381
|
+
}
|
|
16382
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
16383
|
+
var segment = encode(String(value), token);
|
|
16384
|
+
if (validate && !matches[i].test(segment)) throw new TypeError("Expected \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
|
|
16385
|
+
path += token.prefix + segment + token.suffix;
|
|
16386
|
+
continue;
|
|
16387
|
+
}
|
|
16388
|
+
if (optional) continue;
|
|
16389
|
+
var typeOfMessage = repeat ? "an array" : "a string";
|
|
16390
|
+
throw new TypeError("Expected \"".concat(token.name, "\" to be ").concat(typeOfMessage));
|
|
16391
|
+
}
|
|
16392
|
+
return path;
|
|
16393
|
+
};
|
|
16394
|
+
}
|
|
16395
|
+
exports.tokensToFunction = tokensToFunction;
|
|
16396
|
+
/**
|
|
16397
|
+
* Create path match function from `path-to-regexp` spec.
|
|
16398
|
+
*/
|
|
16399
|
+
function match$1(str, options) {
|
|
16400
|
+
var keys = [];
|
|
16401
|
+
var re = pathToRegexp(str, keys, options);
|
|
16402
|
+
return regexpToFunction(re, keys, options);
|
|
16403
|
+
}
|
|
16404
|
+
exports.match = match$1;
|
|
16405
|
+
/**
|
|
16406
|
+
* Create a path match function from `path-to-regexp` output.
|
|
16407
|
+
*/
|
|
16408
|
+
function regexpToFunction(re, keys, options) {
|
|
16409
|
+
if (options === void 0) options = {};
|
|
16410
|
+
var _a$1 = options.decode, decode = _a$1 === void 0 ? function(x) {
|
|
16411
|
+
return x;
|
|
16412
|
+
} : _a$1;
|
|
16413
|
+
return function(pathname) {
|
|
16414
|
+
var m = re.exec(pathname);
|
|
16415
|
+
if (!m) return false;
|
|
16416
|
+
var path = m[0], index = m.index;
|
|
16417
|
+
var params = Object.create(null);
|
|
16418
|
+
var _loop_1 = function(i$1) {
|
|
16419
|
+
if (m[i$1] === void 0) return "continue";
|
|
16420
|
+
var key = keys[i$1 - 1];
|
|
16421
|
+
if (key.modifier === "*" || key.modifier === "+") params[key.name] = m[i$1].split(key.prefix + key.suffix).map(function(value) {
|
|
16422
|
+
return decode(value, key);
|
|
16423
|
+
});
|
|
16424
|
+
else params[key.name] = decode(m[i$1], key);
|
|
16425
|
+
};
|
|
16426
|
+
for (var i = 1; i < m.length; i++) _loop_1(i);
|
|
16427
|
+
return {
|
|
16428
|
+
path,
|
|
16429
|
+
index,
|
|
16430
|
+
params
|
|
16431
|
+
};
|
|
16432
|
+
};
|
|
16433
|
+
}
|
|
16434
|
+
exports.regexpToFunction = regexpToFunction;
|
|
16435
|
+
/**
|
|
16436
|
+
* Escape a regular expression string.
|
|
16437
|
+
*/
|
|
16438
|
+
function escapeString(str) {
|
|
16439
|
+
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
16447
16440
|
}
|
|
16448
|
-
};
|
|
16449
|
-
var setupServer = (...handlers) => {
|
|
16450
|
-
return new SetupServerApi(handlers);
|
|
16451
|
-
};
|
|
16452
|
-
|
|
16453
|
-
//#endregion
|
|
16454
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
|
|
16455
|
-
function isIterable(fn) {
|
|
16456
|
-
if (!fn) return false;
|
|
16457
|
-
return Reflect.has(fn, Symbol.iterator) || Reflect.has(fn, Symbol.asyncIterator);
|
|
16458
|
-
}
|
|
16459
|
-
|
|
16460
|
-
//#endregion
|
|
16461
|
-
//#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
|
|
16462
|
-
var RequestHandler = class RequestHandler {
|
|
16463
|
-
static cache = /* @__PURE__ */ new WeakMap();
|
|
16464
|
-
__kind;
|
|
16465
|
-
info;
|
|
16466
16441
|
/**
|
|
16467
|
-
*
|
|
16468
|
-
* (its resolver has successfully executed).
|
|
16442
|
+
* Get the flags for a regexp from the options.
|
|
16469
16443
|
*/
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
resolverIterator;
|
|
16473
|
-
resolverIteratorResult;
|
|
16474
|
-
options;
|
|
16475
|
-
constructor(args) {
|
|
16476
|
-
this.resolver = args.resolver;
|
|
16477
|
-
this.options = args.options;
|
|
16478
|
-
const callFrame = getCallFrame(new Error());
|
|
16479
|
-
this.info = {
|
|
16480
|
-
...args.info,
|
|
16481
|
-
callFrame
|
|
16482
|
-
};
|
|
16483
|
-
this.isUsed = false;
|
|
16484
|
-
this.__kind = "RequestHandler";
|
|
16444
|
+
function flags$1(options) {
|
|
16445
|
+
return options && options.sensitive ? "" : "i";
|
|
16485
16446
|
}
|
|
16486
16447
|
/**
|
|
16487
|
-
*
|
|
16488
|
-
* Parsed result is then exposed to other methods of this request handler.
|
|
16448
|
+
* Pull out keys from a regexp.
|
|
16489
16449
|
*/
|
|
16490
|
-
|
|
16491
|
-
return
|
|
16450
|
+
function regexpToRegexp(path, keys) {
|
|
16451
|
+
if (!keys) return path;
|
|
16452
|
+
var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
16453
|
+
var index = 0;
|
|
16454
|
+
var execResult = groupsRegex.exec(path.source);
|
|
16455
|
+
while (execResult) {
|
|
16456
|
+
keys.push({
|
|
16457
|
+
name: execResult[1] || index++,
|
|
16458
|
+
prefix: "",
|
|
16459
|
+
suffix: "",
|
|
16460
|
+
modifier: "",
|
|
16461
|
+
pattern: ""
|
|
16462
|
+
});
|
|
16463
|
+
execResult = groupsRegex.exec(path.source);
|
|
16464
|
+
}
|
|
16465
|
+
return path;
|
|
16492
16466
|
}
|
|
16493
16467
|
/**
|
|
16494
|
-
*
|
|
16495
|
-
*
|
|
16496
|
-
* This method is not used internally but is exposed
|
|
16497
|
-
* as a convenience method for consumers writing custom
|
|
16498
|
-
* handlers.
|
|
16468
|
+
* Transform an array into a regexp.
|
|
16499
16469
|
*/
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
resolutionContext: args.resolutionContext
|
|
16504
|
-
});
|
|
16505
|
-
return this.predicate({
|
|
16506
|
-
request: args.request,
|
|
16507
|
-
parsedResult,
|
|
16508
|
-
resolutionContext: args.resolutionContext
|
|
16470
|
+
function arrayToRegexp(paths, keys, options) {
|
|
16471
|
+
var parts = paths.map(function(path) {
|
|
16472
|
+
return pathToRegexp(path, keys, options).source;
|
|
16509
16473
|
});
|
|
16510
|
-
|
|
16511
|
-
extendResolverArgs(_args) {
|
|
16512
|
-
return {};
|
|
16513
|
-
}
|
|
16514
|
-
cloneRequestOrGetFromCache(request) {
|
|
16515
|
-
const existingClone = RequestHandler.cache.get(request);
|
|
16516
|
-
if (typeof existingClone !== "undefined") return existingClone;
|
|
16517
|
-
const clonedRequest = request.clone();
|
|
16518
|
-
RequestHandler.cache.set(request, clonedRequest);
|
|
16519
|
-
return clonedRequest;
|
|
16474
|
+
return new RegExp("(?:".concat(parts.join("|"), ")"), flags$1(options));
|
|
16520
16475
|
}
|
|
16521
16476
|
/**
|
|
16522
|
-
*
|
|
16523
|
-
* using the given resolver function.
|
|
16477
|
+
* Create a path regexp from string input.
|
|
16524
16478
|
*/
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
const requestClone = this.cloneRequestOrGetFromCache(args.request);
|
|
16528
|
-
const parsedResult = await this.parse({
|
|
16529
|
-
request: args.request,
|
|
16530
|
-
resolutionContext: args.resolutionContext
|
|
16531
|
-
});
|
|
16532
|
-
const shouldInterceptRequest = this.predicate({
|
|
16533
|
-
request: args.request,
|
|
16534
|
-
parsedResult,
|
|
16535
|
-
resolutionContext: args.resolutionContext
|
|
16536
|
-
});
|
|
16537
|
-
if (!shouldInterceptRequest) return null;
|
|
16538
|
-
if (this.isUsed && this.options?.once) return null;
|
|
16539
|
-
this.isUsed = true;
|
|
16540
|
-
const executeResolver = this.wrapResolver(this.resolver);
|
|
16541
|
-
const resolverExtras = this.extendResolverArgs({
|
|
16542
|
-
request: args.request,
|
|
16543
|
-
parsedResult
|
|
16544
|
-
});
|
|
16545
|
-
const mockedResponsePromise = executeResolver({
|
|
16546
|
-
...resolverExtras,
|
|
16547
|
-
requestId: args.requestId,
|
|
16548
|
-
request: args.request
|
|
16549
|
-
}).catch((errorOrResponse) => {
|
|
16550
|
-
if (errorOrResponse instanceof Response) return errorOrResponse;
|
|
16551
|
-
throw errorOrResponse;
|
|
16552
|
-
});
|
|
16553
|
-
const mockedResponse = await mockedResponsePromise;
|
|
16554
|
-
const executionResult = this.createExecutionResult({
|
|
16555
|
-
request: requestClone,
|
|
16556
|
-
requestId: args.requestId,
|
|
16557
|
-
response: mockedResponse,
|
|
16558
|
-
parsedResult
|
|
16559
|
-
});
|
|
16560
|
-
return executionResult;
|
|
16479
|
+
function stringToRegexp(path, keys, options) {
|
|
16480
|
+
return tokensToRegexp(parse$1(path, options), keys, options);
|
|
16561
16481
|
}
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16482
|
+
/**
|
|
16483
|
+
* Expose a function for taking tokens and returning a RegExp.
|
|
16484
|
+
*/
|
|
16485
|
+
function tokensToRegexp(tokens, keys, options) {
|
|
16486
|
+
if (options === void 0) options = {};
|
|
16487
|
+
var _a$1 = options.strict, strict = _a$1 === void 0 ? false : _a$1, _b$1 = options.start, start = _b$1 === void 0 ? true : _b$1, _c$1 = options.end, end = _c$1 === void 0 ? true : _c$1, _d = options.encode, encode = _d === void 0 ? function(x) {
|
|
16488
|
+
return x;
|
|
16489
|
+
} : _d, _e = options.delimiter, delimiter = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f;
|
|
16490
|
+
var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
|
|
16491
|
+
var delimiterRe = "[".concat(escapeString(delimiter), "]");
|
|
16492
|
+
var route = start ? "^" : "";
|
|
16493
|
+
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
16494
|
+
var token = tokens_1[_i];
|
|
16495
|
+
if (typeof token === "string") route += escapeString(encode(token));
|
|
16496
|
+
else {
|
|
16497
|
+
var prefix = escapeString(encode(token.prefix));
|
|
16498
|
+
var suffix = escapeString(encode(token.suffix));
|
|
16499
|
+
if (token.pattern) {
|
|
16500
|
+
if (keys) keys.push(token);
|
|
16501
|
+
if (prefix || suffix) if (token.modifier === "+" || token.modifier === "*") {
|
|
16502
|
+
var mod = token.modifier === "*" ? "?" : "";
|
|
16503
|
+
route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
|
|
16504
|
+
} else route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
|
|
16505
|
+
else {
|
|
16506
|
+
if (token.modifier === "+" || token.modifier === "*") throw new TypeError("Can not repeat \"".concat(token.name, "\" without a prefix and suffix"));
|
|
16507
|
+
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
16508
|
+
}
|
|
16509
|
+
} else route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
|
16576
16510
|
}
|
|
16577
|
-
|
|
16578
|
-
|
|
16511
|
+
}
|
|
16512
|
+
if (end) {
|
|
16513
|
+
if (!strict) route += "".concat(delimiterRe, "?");
|
|
16514
|
+
route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
|
|
16515
|
+
} else {
|
|
16516
|
+
var endToken = tokens[tokens.length - 1];
|
|
16517
|
+
var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
|
|
16518
|
+
if (!strict) route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
|
|
16519
|
+
if (!isEndDelimited) route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
|
|
16520
|
+
}
|
|
16521
|
+
return new RegExp(route, flags$1(options));
|
|
16579
16522
|
}
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16523
|
+
exports.tokensToRegexp = tokensToRegexp;
|
|
16524
|
+
/**
|
|
16525
|
+
* Normalize the given path string, returning a regular expression.
|
|
16526
|
+
*
|
|
16527
|
+
* An empty array can be passed in for the keys, which will hold the
|
|
16528
|
+
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
16529
|
+
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
16530
|
+
*/
|
|
16531
|
+
function pathToRegexp(path, keys, options) {
|
|
16532
|
+
if (path instanceof RegExp) return regexpToRegexp(path, keys);
|
|
16533
|
+
if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
|
|
16534
|
+
return stringToRegexp(path, keys, options);
|
|
16588
16535
|
}
|
|
16589
|
-
|
|
16536
|
+
exports.pathToRegexp = pathToRegexp;
|
|
16537
|
+
} });
|
|
16590
16538
|
|
|
16591
16539
|
//#endregion
|
|
16592
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16593
|
-
|
|
16594
|
-
|
|
16540
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs
|
|
16541
|
+
const REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g;
|
|
16542
|
+
function getSearchParams(path) {
|
|
16543
|
+
return new URL(`/${path}`, "http://localhost").searchParams;
|
|
16595
16544
|
}
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
function getStatusCodeColor(status$1) {
|
|
16600
|
-
if (status$1 < 300) return "#69AB32";
|
|
16601
|
-
if (status$1 < 400) return "#F0BB4B";
|
|
16602
|
-
return "#E95F5D";
|
|
16545
|
+
function cleanUrl(path) {
|
|
16546
|
+
if (path.endsWith("?")) return path;
|
|
16547
|
+
return path.replace(REDUNDANT_CHARACTERS_EXP, "");
|
|
16603
16548
|
}
|
|
16604
16549
|
|
|
16605
16550
|
//#endregion
|
|
16606
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16607
|
-
function
|
|
16608
|
-
|
|
16609
|
-
const timestamp = `${now.getHours().toString().padStart(2, "0")}:${now.getMinutes().toString().padStart(2, "0")}:${now.getSeconds().toString().padStart(2, "0")}`;
|
|
16610
|
-
if (options?.milliseconds) return `${timestamp}.${now.getMilliseconds().toString().padStart(3, "0")}`;
|
|
16611
|
-
return timestamp;
|
|
16551
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
|
|
16552
|
+
function isAbsoluteUrl(url) {
|
|
16553
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
16612
16554
|
}
|
|
16613
16555
|
|
|
16614
16556
|
//#endregion
|
|
16615
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
method: request.method,
|
|
16622
|
-
headers: Object.fromEntries(request.headers.entries()),
|
|
16623
|
-
body: requestText
|
|
16624
|
-
};
|
|
16557
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
|
|
16558
|
+
function getAbsoluteUrl(path, baseUrl) {
|
|
16559
|
+
if (isAbsoluteUrl(path)) return path;
|
|
16560
|
+
if (path.startsWith("*")) return path;
|
|
16561
|
+
const origin = baseUrl || typeof location !== "undefined" && location.href;
|
|
16562
|
+
return origin ? decodeURI(new URL(encodeURI(path), origin).href) : path;
|
|
16625
16563
|
}
|
|
16626
16564
|
|
|
16627
16565
|
//#endregion
|
|
16628
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
const
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16566
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
|
|
16567
|
+
function normalizePath(path, baseUrl) {
|
|
16568
|
+
if (path instanceof RegExp) return path;
|
|
16569
|
+
const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl);
|
|
16570
|
+
return cleanUrl(maybeAbsoluteUrl);
|
|
16571
|
+
}
|
|
16572
|
+
|
|
16573
|
+
//#endregion
|
|
16574
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
|
|
16575
|
+
var import_dist = __toESM$4(require_dist(), 1);
|
|
16576
|
+
function coercePath(path) {
|
|
16577
|
+
return path.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g, (_, parameterName, wildcard) => {
|
|
16578
|
+
const expression = "(.*)";
|
|
16579
|
+
if (!parameterName) return expression;
|
|
16580
|
+
return parameterName.startsWith(":") ? `${parameterName}${wildcard}` : `${parameterName}${expression}`;
|
|
16581
|
+
}).replace(/([^\/])(:)(?=\d+)/, "$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/, "$1\\$2");
|
|
16582
|
+
}
|
|
16583
|
+
function matchRequestUrl(url, path, baseUrl) {
|
|
16584
|
+
const normalizedPath = normalizePath(path, baseUrl);
|
|
16585
|
+
const cleanPath = typeof normalizedPath === "string" ? coercePath(normalizedPath) : normalizedPath;
|
|
16586
|
+
const cleanUrl$1 = getCleanUrl(url);
|
|
16587
|
+
const result = (0, import_dist.match)(cleanPath, { decode: decodeURIComponent })(cleanUrl$1);
|
|
16588
|
+
const params = result && result.params || {};
|
|
16635
16589
|
return {
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
headers: Object.fromEntries(responseClone.headers.entries()),
|
|
16639
|
-
body: responseText
|
|
16590
|
+
matches: result !== false,
|
|
16591
|
+
params
|
|
16640
16592
|
};
|
|
16641
16593
|
}
|
|
16642
16594
|
|
|
@@ -16648,7 +16600,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
16648
16600
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16649
16601
|
var __getProtoOf = Object.getPrototypeOf;
|
|
16650
16602
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16651
|
-
var __commonJS
|
|
16603
|
+
var __commonJS = (cb, mod) => function __require$2() {
|
|
16652
16604
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16653
16605
|
};
|
|
16654
16606
|
var __copyProps = (to, from, except, desc) => {
|
|
@@ -16660,11 +16612,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16660
16612
|
}
|
|
16661
16613
|
return to;
|
|
16662
16614
|
};
|
|
16663
|
-
var __toESM
|
|
16615
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
16664
16616
|
value: mod,
|
|
16665
16617
|
enumerable: true
|
|
16666
16618
|
}) : target, mod));
|
|
16667
|
-
var require_cookie = __commonJS
|
|
16619
|
+
var require_cookie = __commonJS({ "node_modules/cookie/index.js"(exports$1) {
|
|
16668
16620
|
"use strict";
|
|
16669
16621
|
exports$1.parse = parse$2;
|
|
16670
16622
|
exports$1.serialize = serialize;
|
|
@@ -16723,13 +16675,13 @@ var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
|
|
|
16723
16675
|
}
|
|
16724
16676
|
return min;
|
|
16725
16677
|
}
|
|
16726
|
-
function serialize(name, val, opt) {
|
|
16678
|
+
function serialize(name$2, val, opt) {
|
|
16727
16679
|
var enc = opt && opt.encode || encodeURIComponent;
|
|
16728
16680
|
if (typeof enc !== "function") throw new TypeError("option encode is invalid");
|
|
16729
|
-
if (!cookieNameRegExp.test(name)) throw new TypeError("argument name is invalid");
|
|
16681
|
+
if (!cookieNameRegExp.test(name$2)) throw new TypeError("argument name is invalid");
|
|
16730
16682
|
var value = enc(val);
|
|
16731
16683
|
if (!cookieValueRegExp.test(value)) throw new TypeError("argument val is invalid");
|
|
16732
|
-
var str = name + "=" + value;
|
|
16684
|
+
var str = name$2 + "=" + value;
|
|
16733
16685
|
if (!opt) return str;
|
|
16734
16686
|
if (null != opt.maxAge) {
|
|
16735
16687
|
var maxAge = Math.floor(opt.maxAge);
|
|
@@ -16801,7 +16753,7 @@ var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
|
|
|
16801
16753
|
}
|
|
16802
16754
|
}
|
|
16803
16755
|
} });
|
|
16804
|
-
var import_cookie = __toESM
|
|
16756
|
+
var import_cookie = __toESM(require_cookie(), 1);
|
|
16805
16757
|
var source_default = import_cookie.default;
|
|
16806
16758
|
/*! Bundled license information:
|
|
16807
16759
|
|
|
@@ -16815,7 +16767,7 @@ cookie/index.js:
|
|
|
16815
16767
|
*/
|
|
16816
16768
|
|
|
16817
16769
|
//#endregion
|
|
16818
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16770
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/getRequestCookies.mjs
|
|
16819
16771
|
function parseCookies(input) {
|
|
16820
16772
|
const parsedCookies = source_default.parse(input);
|
|
16821
16773
|
const cookies = {};
|
|
@@ -16840,7 +16792,7 @@ function getAllRequestCookies(request) {
|
|
|
16840
16792
|
const requestCookieHeader = request.headers.get("cookie");
|
|
16841
16793
|
const cookiesFromHeaders = requestCookieHeader ? parseCookies(requestCookieHeader) : {};
|
|
16842
16794
|
const cookiesFromDocument = getDocumentCookies(request);
|
|
16843
|
-
for (const name in cookiesFromDocument) request.headers.append("cookie", source_default.serialize(name, cookiesFromDocument[name]));
|
|
16795
|
+
for (const name$2 in cookiesFromDocument) request.headers.append("cookie", source_default.serialize(name$2, cookiesFromDocument[name$2]));
|
|
16844
16796
|
const cookiesFromStore = cookieStore.getCookiesSync(request.url);
|
|
16845
16797
|
const storedCookiesObject = Object.fromEntries(cookiesFromStore.map((cookie) => [cookie.key, cookie.value]));
|
|
16846
16798
|
for (const cookie of cookiesFromStore) request.headers.append("cookie", cookie.toString());
|
|
@@ -16852,7 +16804,7 @@ function getAllRequestCookies(request) {
|
|
|
16852
16804
|
}
|
|
16853
16805
|
|
|
16854
16806
|
//#endregion
|
|
16855
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16807
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/handlers/HttpHandler.mjs
|
|
16856
16808
|
var HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {
|
|
16857
16809
|
HttpMethods2["HEAD"] = "HEAD";
|
|
16858
16810
|
HttpMethods2["GET"] = "GET";
|
|
@@ -16925,7 +16877,7 @@ var HttpHandler = class extends RequestHandler {
|
|
|
16925
16877
|
};
|
|
16926
16878
|
|
|
16927
16879
|
//#endregion
|
|
16928
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16880
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/http.mjs
|
|
16929
16881
|
function createHttpHandler(method) {
|
|
16930
16882
|
return (path, resolver, options = {}) => {
|
|
16931
16883
|
return new HttpHandler(method, path, resolver, options);
|
|
@@ -16943,7 +16895,7 @@ const http = {
|
|
|
16943
16895
|
};
|
|
16944
16896
|
|
|
16945
16897
|
//#endregion
|
|
16946
|
-
//#region ../../node_modules/.pnpm/msw@2.
|
|
16898
|
+
//#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/HttpResponse.mjs
|
|
16947
16899
|
const bodyType = Symbol("bodyType");
|
|
16948
16900
|
var HttpResponse = class HttpResponse extends FetchResponse {
|
|
16949
16901
|
[bodyType] = null;
|
|
@@ -16952,6 +16904,9 @@ var HttpResponse = class HttpResponse extends FetchResponse {
|
|
|
16952
16904
|
super(body, responseInit);
|
|
16953
16905
|
decorateResponse(this, responseInit);
|
|
16954
16906
|
}
|
|
16907
|
+
static error() {
|
|
16908
|
+
return super.error();
|
|
16909
|
+
}
|
|
16955
16910
|
/**
|
|
16956
16911
|
* Create a `Response` with a `Content-Type: "text/plain"` body.
|
|
16957
16912
|
* @example
|
|
@@ -17032,7 +16987,7 @@ var HttpResponse = class HttpResponse extends FetchResponse {
|
|
|
17032
16987
|
var autofix = {
|
|
17033
16988
|
"run_id": 21831,
|
|
17034
16989
|
"request": { "project_id": 4505138086019073 },
|
|
17035
|
-
"status": "
|
|
16990
|
+
"status": "COMPLETED",
|
|
17036
16991
|
"updated_at": "2025-04-09T22:39:50.778146",
|
|
17037
16992
|
"steps": [
|
|
17038
16993
|
{
|
|
@@ -17473,7 +17428,7 @@ var autofix_state_default = { autofix };
|
|
|
17473
17428
|
|
|
17474
17429
|
//#endregion
|
|
17475
17430
|
//#region ../mcp-server-mocks/dist/fixtures/issue.json
|
|
17476
|
-
var id$
|
|
17431
|
+
var id$3 = "6507376925";
|
|
17477
17432
|
var shareId = null;
|
|
17478
17433
|
var shortId = "CLOUDFLARE-MCP-41";
|
|
17479
17434
|
var title$1 = "Error: Tool list_organizations is already registered";
|
|
@@ -17485,7 +17440,7 @@ var status = "unresolved";
|
|
|
17485
17440
|
var statusDetails = {};
|
|
17486
17441
|
var substatus = "ongoing";
|
|
17487
17442
|
var isPublic = false;
|
|
17488
|
-
var platform$
|
|
17443
|
+
var platform$2 = "javascript";
|
|
17489
17444
|
var project = {
|
|
17490
17445
|
"id": "4509062593708032",
|
|
17491
17446
|
"name": "CLOUDFLARE-MCP",
|
|
@@ -17510,7 +17465,7 @@ var metadata$1 = {
|
|
|
17510
17465
|
};
|
|
17511
17466
|
var numComments = 0;
|
|
17512
17467
|
var assignedTo = null;
|
|
17513
|
-
var isBookmarked = false;
|
|
17468
|
+
var isBookmarked$1 = false;
|
|
17514
17469
|
var isSubscribed = false;
|
|
17515
17470
|
var subscriptionDetails = null;
|
|
17516
17471
|
var hasSeen = true;
|
|
@@ -17652,7 +17607,7 @@ var stats = {
|
|
|
17652
17607
|
};
|
|
17653
17608
|
var participants = [];
|
|
17654
17609
|
var issue_default = {
|
|
17655
|
-
id: id$
|
|
17610
|
+
id: id$3,
|
|
17656
17611
|
shareId,
|
|
17657
17612
|
shortId,
|
|
17658
17613
|
title: title$1,
|
|
@@ -17664,13 +17619,13 @@ var issue_default = {
|
|
|
17664
17619
|
statusDetails,
|
|
17665
17620
|
substatus,
|
|
17666
17621
|
isPublic,
|
|
17667
|
-
platform: platform$
|
|
17622
|
+
platform: platform$2,
|
|
17668
17623
|
project,
|
|
17669
17624
|
type: type$1,
|
|
17670
17625
|
metadata: metadata$1,
|
|
17671
17626
|
numComments,
|
|
17672
17627
|
assignedTo,
|
|
17673
|
-
isBookmarked,
|
|
17628
|
+
isBookmarked: isBookmarked$1,
|
|
17674
17629
|
isSubscribed,
|
|
17675
17630
|
subscriptionDetails,
|
|
17676
17631
|
hasSeen,
|
|
@@ -17699,7 +17654,7 @@ var issue_default = {
|
|
|
17699
17654
|
|
|
17700
17655
|
//#endregion
|
|
17701
17656
|
//#region ../mcp-server-mocks/dist/fixtures/event.json
|
|
17702
|
-
var id = "7ca573c0f4814912aaa9bdc77d1a7d51";
|
|
17657
|
+
var id$2 = "7ca573c0f4814912aaa9bdc77d1a7d51";
|
|
17703
17658
|
var groupID = "6507376925";
|
|
17704
17659
|
var eventID = "7ca573c0f4814912aaa9bdc77d1a7d51";
|
|
17705
17660
|
var projectID = "4509062593708032";
|
|
@@ -17968,7 +17923,7 @@ var tags = [
|
|
|
17968
17923
|
"value": "https://mcp.sentry.dev/sse"
|
|
17969
17924
|
}
|
|
17970
17925
|
];
|
|
17971
|
-
var platform = "javascript";
|
|
17926
|
+
var platform$1 = "javascript";
|
|
17972
17927
|
var dateReceived = "2025-04-08T21:15:04.700878Z";
|
|
17973
17928
|
var errors = [{
|
|
17974
17929
|
"type": "js_no_source",
|
|
@@ -18015,7 +17970,7 @@ var _meta = {
|
|
|
18015
17970
|
};
|
|
18016
17971
|
var crashFile = null;
|
|
18017
17972
|
var culprit = "Object.fetch(index)";
|
|
18018
|
-
var dateCreated = "2025-04-08T21:15:04Z";
|
|
17973
|
+
var dateCreated$2 = "2025-04-08T21:15:04Z";
|
|
18019
17974
|
var fingerprints = ["60d1c667b173018c004e399b29dc927d"];
|
|
18020
17975
|
var groupingConfig = {
|
|
18021
17976
|
"enhancements": "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
|
|
@@ -18028,7 +17983,7 @@ var resolvedWith = [null];
|
|
|
18028
17983
|
var nextEventID = null;
|
|
18029
17984
|
var previousEventID = "b7ed18493f4f4817a217b03839d4c017";
|
|
18030
17985
|
var event_default = {
|
|
18031
|
-
id,
|
|
17986
|
+
id: id$2,
|
|
18032
17987
|
groupID,
|
|
18033
17988
|
eventID,
|
|
18034
17989
|
projectID,
|
|
@@ -18046,14 +18001,14 @@ var event_default = {
|
|
|
18046
18001
|
type,
|
|
18047
18002
|
metadata,
|
|
18048
18003
|
tags,
|
|
18049
|
-
platform,
|
|
18004
|
+
platform: platform$1,
|
|
18050
18005
|
dateReceived,
|
|
18051
18006
|
errors,
|
|
18052
18007
|
occurrence,
|
|
18053
18008
|
_meta,
|
|
18054
18009
|
crashFile,
|
|
18055
18010
|
culprit,
|
|
18056
|
-
dateCreated,
|
|
18011
|
+
dateCreated: dateCreated$2,
|
|
18057
18012
|
fingerprints,
|
|
18058
18013
|
groupingConfig,
|
|
18059
18014
|
release,
|
|
@@ -18064,6 +18019,19 @@ var event_default = {
|
|
|
18064
18019
|
previousEventID
|
|
18065
18020
|
};
|
|
18066
18021
|
|
|
18022
|
+
//#endregion
|
|
18023
|
+
//#region ../mcp-server-mocks/dist/fixtures/event-attachments.json
|
|
18024
|
+
var event_attachments_default = [{
|
|
18025
|
+
"id": "123",
|
|
18026
|
+
"name": "screenshot.png",
|
|
18027
|
+
"type": "event.attachment",
|
|
18028
|
+
"size": 1024,
|
|
18029
|
+
"mimetype": "image/png",
|
|
18030
|
+
"dateCreated": "2025-04-08T21:15:04.000Z",
|
|
18031
|
+
"sha1": "abc123def456",
|
|
18032
|
+
"headers": { "Content-Type": "image/png" }
|
|
18033
|
+
}];
|
|
18034
|
+
|
|
18067
18035
|
//#endregion
|
|
18068
18036
|
//#region ../mcp-server-mocks/dist/fixtures/tags.json
|
|
18069
18037
|
var tags_default = [
|
|
@@ -18164,8 +18132,173 @@ var tags_default = [
|
|
|
18164
18132
|
}
|
|
18165
18133
|
];
|
|
18166
18134
|
|
|
18135
|
+
//#endregion
|
|
18136
|
+
//#region ../mcp-server-mocks/dist/fixtures/project.json
|
|
18137
|
+
var team = {
|
|
18138
|
+
"id": "4509106733776896",
|
|
18139
|
+
"slug": "the-goats",
|
|
18140
|
+
"name": "the-goats"
|
|
18141
|
+
};
|
|
18142
|
+
var teams = [{
|
|
18143
|
+
"id": "4509106733776896",
|
|
18144
|
+
"slug": "the-goats",
|
|
18145
|
+
"name": "the-goats"
|
|
18146
|
+
}];
|
|
18147
|
+
var id$1 = "4509109104082945";
|
|
18148
|
+
var name$1 = "cloudflare-mcp";
|
|
18149
|
+
var slug$1 = "cloudflare-mcp";
|
|
18150
|
+
var isBookmarked = false;
|
|
18151
|
+
var isMember$1 = true;
|
|
18152
|
+
var access$1 = [
|
|
18153
|
+
"event:admin",
|
|
18154
|
+
"alerts:read",
|
|
18155
|
+
"project:write",
|
|
18156
|
+
"org:integrations",
|
|
18157
|
+
"alerts:write",
|
|
18158
|
+
"member:read",
|
|
18159
|
+
"team:write",
|
|
18160
|
+
"project:read",
|
|
18161
|
+
"event:read",
|
|
18162
|
+
"event:write",
|
|
18163
|
+
"project:admin",
|
|
18164
|
+
"org:read",
|
|
18165
|
+
"team:admin",
|
|
18166
|
+
"project:releases",
|
|
18167
|
+
"team:read"
|
|
18168
|
+
];
|
|
18169
|
+
var hasAccess$1 = true;
|
|
18170
|
+
var dateCreated$1 = "2025-04-06T14:13:37.825970Z";
|
|
18171
|
+
var environments = [];
|
|
18172
|
+
var eventProcessing = { "symbolicationDegraded": false };
|
|
18173
|
+
var features = [
|
|
18174
|
+
"discard-groups",
|
|
18175
|
+
"alert-filters",
|
|
18176
|
+
"similarity-embeddings",
|
|
18177
|
+
"similarity-indexing",
|
|
18178
|
+
"similarity-view"
|
|
18179
|
+
];
|
|
18180
|
+
var firstEvent = null;
|
|
18181
|
+
var firstTransactionEvent = false;
|
|
18182
|
+
var hasSessions = false;
|
|
18183
|
+
var hasProfiles = false;
|
|
18184
|
+
var hasReplays = false;
|
|
18185
|
+
var hasFeedbacks = false;
|
|
18186
|
+
var hasNewFeedbacks = false;
|
|
18187
|
+
var hasMonitors = false;
|
|
18188
|
+
var hasMinifiedStackTrace = false;
|
|
18189
|
+
var hasInsightsHttp = false;
|
|
18190
|
+
var hasInsightsDb = false;
|
|
18191
|
+
var hasInsightsAssets = false;
|
|
18192
|
+
var hasInsightsAppStart = false;
|
|
18193
|
+
var hasInsightsScreenLoad = false;
|
|
18194
|
+
var hasInsightsVitals = false;
|
|
18195
|
+
var hasInsightsCaches = false;
|
|
18196
|
+
var hasInsightsQueues = false;
|
|
18197
|
+
var hasInsightsLlmMonitoring = false;
|
|
18198
|
+
var platform = "node";
|
|
18199
|
+
var platforms = [];
|
|
18200
|
+
var latestRelease = null;
|
|
18201
|
+
var hasUserReports = false;
|
|
18202
|
+
var hasFlags = false;
|
|
18203
|
+
var latestDeploys = null;
|
|
18204
|
+
var project_default = {
|
|
18205
|
+
team,
|
|
18206
|
+
teams,
|
|
18207
|
+
id: id$1,
|
|
18208
|
+
name: name$1,
|
|
18209
|
+
slug: slug$1,
|
|
18210
|
+
isBookmarked,
|
|
18211
|
+
isMember: isMember$1,
|
|
18212
|
+
access: access$1,
|
|
18213
|
+
hasAccess: hasAccess$1,
|
|
18214
|
+
dateCreated: dateCreated$1,
|
|
18215
|
+
environments,
|
|
18216
|
+
eventProcessing,
|
|
18217
|
+
features,
|
|
18218
|
+
firstEvent,
|
|
18219
|
+
firstTransactionEvent,
|
|
18220
|
+
hasSessions,
|
|
18221
|
+
hasProfiles,
|
|
18222
|
+
hasReplays,
|
|
18223
|
+
hasFeedbacks,
|
|
18224
|
+
hasNewFeedbacks,
|
|
18225
|
+
hasMonitors,
|
|
18226
|
+
hasMinifiedStackTrace,
|
|
18227
|
+
hasInsightsHttp,
|
|
18228
|
+
hasInsightsDb,
|
|
18229
|
+
hasInsightsAssets,
|
|
18230
|
+
hasInsightsAppStart,
|
|
18231
|
+
hasInsightsScreenLoad,
|
|
18232
|
+
hasInsightsVitals,
|
|
18233
|
+
hasInsightsCaches,
|
|
18234
|
+
hasInsightsQueues,
|
|
18235
|
+
hasInsightsLlmMonitoring,
|
|
18236
|
+
platform,
|
|
18237
|
+
platforms,
|
|
18238
|
+
latestRelease,
|
|
18239
|
+
hasUserReports,
|
|
18240
|
+
hasFlags,
|
|
18241
|
+
latestDeploys
|
|
18242
|
+
};
|
|
18243
|
+
|
|
18244
|
+
//#endregion
|
|
18245
|
+
//#region ../mcp-server-mocks/dist/fixtures/team.json
|
|
18246
|
+
var id = "4509106740854784";
|
|
18247
|
+
var slug = "the-goats";
|
|
18248
|
+
var name = "the-goats";
|
|
18249
|
+
var dateCreated = "2025-04-06T14:11:23.961739Z";
|
|
18250
|
+
var isMember = true;
|
|
18251
|
+
var teamRole = "admin";
|
|
18252
|
+
var flags = { "idp:provisioned": false };
|
|
18253
|
+
var access = [
|
|
18254
|
+
"team:read",
|
|
18255
|
+
"alerts:read",
|
|
18256
|
+
"event:write",
|
|
18257
|
+
"team:write",
|
|
18258
|
+
"team:admin",
|
|
18259
|
+
"event:read",
|
|
18260
|
+
"org:read",
|
|
18261
|
+
"member:read",
|
|
18262
|
+
"project:admin",
|
|
18263
|
+
"project:write",
|
|
18264
|
+
"org:integrations",
|
|
18265
|
+
"project:releases",
|
|
18266
|
+
"alerts:write",
|
|
18267
|
+
"event:admin",
|
|
18268
|
+
"project:read"
|
|
18269
|
+
];
|
|
18270
|
+
var hasAccess = true;
|
|
18271
|
+
var isPending = false;
|
|
18272
|
+
var memberCount = 1;
|
|
18273
|
+
var avatar = {
|
|
18274
|
+
"avatarType": "letter_avatar",
|
|
18275
|
+
"avatarUuid": null
|
|
18276
|
+
};
|
|
18277
|
+
var externalTeams = [];
|
|
18278
|
+
var projects = [];
|
|
18279
|
+
var team_default = {
|
|
18280
|
+
id,
|
|
18281
|
+
slug,
|
|
18282
|
+
name,
|
|
18283
|
+
dateCreated,
|
|
18284
|
+
isMember,
|
|
18285
|
+
teamRole,
|
|
18286
|
+
flags,
|
|
18287
|
+
access,
|
|
18288
|
+
hasAccess,
|
|
18289
|
+
isPending,
|
|
18290
|
+
memberCount,
|
|
18291
|
+
avatar,
|
|
18292
|
+
externalTeams,
|
|
18293
|
+
projects
|
|
18294
|
+
};
|
|
18295
|
+
|
|
18167
18296
|
//#endregion
|
|
18168
18297
|
//#region ../mcp-server-mocks/dist/index.js
|
|
18298
|
+
/**
|
|
18299
|
+
* Standard organization payload for mock responses.
|
|
18300
|
+
* Used across multiple endpoints for consistency.
|
|
18301
|
+
*/
|
|
18169
18302
|
const OrganizationPayload = {
|
|
18170
18303
|
id: "4509106740723712",
|
|
18171
18304
|
slug: "sentry-mcp-evals",
|
|
@@ -18175,6 +18308,10 @@ const OrganizationPayload = {
|
|
|
18175
18308
|
organizationUrl: "https://sentry.io/sentry-mcp-evals"
|
|
18176
18309
|
}
|
|
18177
18310
|
};
|
|
18311
|
+
/**
|
|
18312
|
+
* Standard release payload for mock responses.
|
|
18313
|
+
* Includes typical metadata and project associations.
|
|
18314
|
+
*/
|
|
18178
18315
|
const ReleasePayload = {
|
|
18179
18316
|
id: 1402755016,
|
|
18180
18317
|
version: "8ce89484-0fec-4913-a2cd-e8e2d41dee36",
|
|
@@ -18415,13 +18552,53 @@ const EventsSpansPayload = {
|
|
|
18415
18552
|
{}
|
|
18416
18553
|
]
|
|
18417
18554
|
};
|
|
18555
|
+
/**
|
|
18556
|
+
* Builds MSW handlers for both SaaS and self-hosted Sentry instances.
|
|
18557
|
+
*
|
|
18558
|
+
* Creates handlers based on the controlOnly flag:
|
|
18559
|
+
* - controlOnly: false (default) - Creates handlers for both sentry.io and us.sentry.io
|
|
18560
|
+
* - controlOnly: true - Creates handlers only for sentry.io (main host)
|
|
18561
|
+
*
|
|
18562
|
+
* @param handlers - Array of handler definitions with method, path, fetch function, and optional controlOnly flag
|
|
18563
|
+
* @returns Array of MSW http handlers
|
|
18564
|
+
*
|
|
18565
|
+
* @example Handler Definitions
|
|
18566
|
+
* ```typescript
|
|
18567
|
+
* buildHandlers([
|
|
18568
|
+
* {
|
|
18569
|
+
* method: "get",
|
|
18570
|
+
* path: "/api/0/auth/",
|
|
18571
|
+
* fetch: () => HttpResponse.json({ user: "data" }),
|
|
18572
|
+
* controlOnly: true // Only available on sentry.io
|
|
18573
|
+
* },
|
|
18574
|
+
* {
|
|
18575
|
+
* method: "get",
|
|
18576
|
+
* path: "/api/0/organizations/",
|
|
18577
|
+
* fetch: () => HttpResponse.json([OrganizationPayload]),
|
|
18578
|
+
* controlOnly: false // Available on both sentry.io and us.sentry.io
|
|
18579
|
+
* }
|
|
18580
|
+
* ]);
|
|
18581
|
+
* ```
|
|
18582
|
+
*/
|
|
18418
18583
|
function buildHandlers(handlers) {
|
|
18419
|
-
|
|
18584
|
+
const result = [];
|
|
18585
|
+
for (const handler of handlers) {
|
|
18586
|
+
result.push(http[handler.method](`https://sentry.io${handler.path}`, handler.fetch));
|
|
18587
|
+
if (!handler.controlOnly) result.push(http[handler.method](`https://us.sentry.io${handler.path}`, handler.fetch));
|
|
18588
|
+
}
|
|
18589
|
+
return result;
|
|
18420
18590
|
}
|
|
18591
|
+
/**
|
|
18592
|
+
* Complete set of Sentry API mock handlers.
|
|
18593
|
+
*
|
|
18594
|
+
* Covers all endpoints used by the MCP server with realistic responses,
|
|
18595
|
+
* parameter validation, and error scenarios.
|
|
18596
|
+
*/
|
|
18421
18597
|
const restHandlers = buildHandlers([
|
|
18422
18598
|
{
|
|
18423
18599
|
method: "get",
|
|
18424
18600
|
path: "/api/0/auth/",
|
|
18601
|
+
controlOnly: true,
|
|
18425
18602
|
fetch: () => {
|
|
18426
18603
|
return HttpResponse.json({
|
|
18427
18604
|
id: "1",
|
|
@@ -18433,6 +18610,7 @@ const restHandlers = buildHandlers([
|
|
|
18433
18610
|
{
|
|
18434
18611
|
method: "get",
|
|
18435
18612
|
path: "/api/0/users/me/regions/",
|
|
18613
|
+
controlOnly: true,
|
|
18436
18614
|
fetch: () => {
|
|
18437
18615
|
return HttpResponse.json({ regions: [{
|
|
18438
18616
|
name: "us",
|
|
@@ -18458,41 +18636,7 @@ const restHandlers = buildHandlers([
|
|
|
18458
18636
|
method: "get",
|
|
18459
18637
|
path: "/api/0/organizations/sentry-mcp-evals/teams/",
|
|
18460
18638
|
fetch: () => {
|
|
18461
|
-
return HttpResponse.json([
|
|
18462
|
-
id: "4509106740854784",
|
|
18463
|
-
slug: "the-goats",
|
|
18464
|
-
name: "the-goats",
|
|
18465
|
-
dateCreated: "2025-04-06T14:11:23.961739Z",
|
|
18466
|
-
isMember: true,
|
|
18467
|
-
teamRole: "admin",
|
|
18468
|
-
flags: { "idp:provisioned": false },
|
|
18469
|
-
access: [
|
|
18470
|
-
"team:read",
|
|
18471
|
-
"alerts:read",
|
|
18472
|
-
"event:write",
|
|
18473
|
-
"team:write",
|
|
18474
|
-
"team:admin",
|
|
18475
|
-
"event:read",
|
|
18476
|
-
"org:read",
|
|
18477
|
-
"member:read",
|
|
18478
|
-
"project:admin",
|
|
18479
|
-
"project:write",
|
|
18480
|
-
"org:integrations",
|
|
18481
|
-
"project:releases",
|
|
18482
|
-
"alerts:write",
|
|
18483
|
-
"event:admin",
|
|
18484
|
-
"project:read"
|
|
18485
|
-
],
|
|
18486
|
-
hasAccess: true,
|
|
18487
|
-
isPending: false,
|
|
18488
|
-
memberCount: 1,
|
|
18489
|
-
avatar: {
|
|
18490
|
-
avatarType: "letter_avatar",
|
|
18491
|
-
avatarUuid: null
|
|
18492
|
-
},
|
|
18493
|
-
externalTeams: [],
|
|
18494
|
-
projects: []
|
|
18495
|
-
}]);
|
|
18639
|
+
return HttpResponse.json([team_default]);
|
|
18496
18640
|
}
|
|
18497
18641
|
},
|
|
18498
18642
|
{
|
|
@@ -18500,73 +18644,8 @@ const restHandlers = buildHandlers([
|
|
|
18500
18644
|
path: "/api/0/organizations/sentry-mcp-evals/projects/",
|
|
18501
18645
|
fetch: () => {
|
|
18502
18646
|
return HttpResponse.json([{
|
|
18503
|
-
|
|
18504
|
-
|
|
18505
|
-
slug: "the-goats",
|
|
18506
|
-
name: "the-goats"
|
|
18507
|
-
},
|
|
18508
|
-
teams: [{
|
|
18509
|
-
id: "4509106733776896",
|
|
18510
|
-
slug: "the-goats",
|
|
18511
|
-
name: "the-goats"
|
|
18512
|
-
}],
|
|
18513
|
-
id: "4509106749636608",
|
|
18514
|
-
name: "cloudflare-mcp",
|
|
18515
|
-
slug: "cloudflare-mcp",
|
|
18516
|
-
isBookmarked: false,
|
|
18517
|
-
isMember: true,
|
|
18518
|
-
access: [
|
|
18519
|
-
"event:admin",
|
|
18520
|
-
"alerts:read",
|
|
18521
|
-
"project:write",
|
|
18522
|
-
"org:integrations",
|
|
18523
|
-
"alerts:write",
|
|
18524
|
-
"member:read",
|
|
18525
|
-
"team:write",
|
|
18526
|
-
"project:read",
|
|
18527
|
-
"event:read",
|
|
18528
|
-
"event:write",
|
|
18529
|
-
"project:admin",
|
|
18530
|
-
"org:read",
|
|
18531
|
-
"team:admin",
|
|
18532
|
-
"project:releases",
|
|
18533
|
-
"team:read"
|
|
18534
|
-
],
|
|
18535
|
-
hasAccess: true,
|
|
18536
|
-
dateCreated: "2025-04-06T14:13:37.825970Z",
|
|
18537
|
-
environments: [],
|
|
18538
|
-
eventProcessing: { symbolicationDegraded: false },
|
|
18539
|
-
features: [
|
|
18540
|
-
"discard-groups",
|
|
18541
|
-
"alert-filters",
|
|
18542
|
-
"similarity-embeddings",
|
|
18543
|
-
"similarity-indexing",
|
|
18544
|
-
"similarity-view"
|
|
18545
|
-
],
|
|
18546
|
-
firstEvent: null,
|
|
18547
|
-
firstTransactionEvent: false,
|
|
18548
|
-
hasSessions: false,
|
|
18549
|
-
hasProfiles: false,
|
|
18550
|
-
hasReplays: false,
|
|
18551
|
-
hasFeedbacks: false,
|
|
18552
|
-
hasNewFeedbacks: false,
|
|
18553
|
-
hasMonitors: false,
|
|
18554
|
-
hasMinifiedStackTrace: false,
|
|
18555
|
-
hasInsightsHttp: false,
|
|
18556
|
-
hasInsightsDb: false,
|
|
18557
|
-
hasInsightsAssets: false,
|
|
18558
|
-
hasInsightsAppStart: false,
|
|
18559
|
-
hasInsightsScreenLoad: false,
|
|
18560
|
-
hasInsightsVitals: false,
|
|
18561
|
-
hasInsightsCaches: false,
|
|
18562
|
-
hasInsightsQueues: false,
|
|
18563
|
-
hasInsightsLlmMonitoring: false,
|
|
18564
|
-
platform: "node",
|
|
18565
|
-
platforms: [],
|
|
18566
|
-
latestRelease: null,
|
|
18567
|
-
hasUserReports: false,
|
|
18568
|
-
hasFlags: false,
|
|
18569
|
-
latestDeploys: null
|
|
18647
|
+
...project_default,
|
|
18648
|
+
id: "4509106749636608"
|
|
18570
18649
|
}]);
|
|
18571
18650
|
}
|
|
18572
18651
|
},
|
|
@@ -18575,13 +18654,9 @@ const restHandlers = buildHandlers([
|
|
|
18575
18654
|
path: "/api/0/organizations/sentry-mcp-evals/teams/",
|
|
18576
18655
|
fetch: () => {
|
|
18577
18656
|
return HttpResponse.json({
|
|
18657
|
+
...team_default,
|
|
18578
18658
|
id: "4509109078196224",
|
|
18579
|
-
slug: "the-goats",
|
|
18580
|
-
name: "the-goats",
|
|
18581
18659
|
dateCreated: "2025-04-07T00:05:48.196710Z",
|
|
18582
|
-
isMember: true,
|
|
18583
|
-
teamRole: "admin",
|
|
18584
|
-
flags: { "idp:provisioned": false },
|
|
18585
18660
|
access: [
|
|
18586
18661
|
"event:read",
|
|
18587
18662
|
"org:integrations",
|
|
@@ -18598,81 +18673,33 @@ const restHandlers = buildHandlers([
|
|
|
18598
18673
|
"project:read",
|
|
18599
18674
|
"project:admin",
|
|
18600
18675
|
"alerts:read"
|
|
18601
|
-
]
|
|
18602
|
-
|
|
18603
|
-
isPending: false,
|
|
18604
|
-
memberCount: 1,
|
|
18605
|
-
avatar: {
|
|
18606
|
-
avatarType: "letter_avatar",
|
|
18607
|
-
avatarUuid: null
|
|
18608
|
-
}
|
|
18609
|
-
});
|
|
18676
|
+
]
|
|
18677
|
+
}, { status: 201 });
|
|
18610
18678
|
}
|
|
18611
18679
|
},
|
|
18612
18680
|
{
|
|
18613
18681
|
method: "post",
|
|
18614
18682
|
path: "/api/0/teams/sentry-mcp-evals/the-goats/projects/",
|
|
18615
|
-
fetch: () => {
|
|
18683
|
+
fetch: async ({ request }) => {
|
|
18684
|
+
const body = await request.json();
|
|
18616
18685
|
return HttpResponse.json({
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
platform: "
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
"team:write",
|
|
18635
|
-
"alerts:write",
|
|
18636
|
-
"event:write",
|
|
18637
|
-
"org:read",
|
|
18638
|
-
"alerts:read",
|
|
18639
|
-
"event:admin",
|
|
18640
|
-
"project:admin",
|
|
18641
|
-
"event:read",
|
|
18642
|
-
"org:integrations",
|
|
18643
|
-
"project:read",
|
|
18644
|
-
"project:releases",
|
|
18645
|
-
"project:write",
|
|
18646
|
-
"member:read",
|
|
18647
|
-
"team:read",
|
|
18648
|
-
"team:admin"
|
|
18649
|
-
],
|
|
18650
|
-
hasAccess: true,
|
|
18651
|
-
hasMinifiedStackTrace: false,
|
|
18652
|
-
hasMonitors: false,
|
|
18653
|
-
hasProfiles: false,
|
|
18654
|
-
hasReplays: false,
|
|
18655
|
-
hasFeedbacks: false,
|
|
18656
|
-
hasFlags: false,
|
|
18657
|
-
hasNewFeedbacks: false,
|
|
18658
|
-
hasSessions: false,
|
|
18659
|
-
hasInsightsHttp: false,
|
|
18660
|
-
hasInsightsDb: false,
|
|
18661
|
-
hasInsightsAssets: false,
|
|
18662
|
-
hasInsightsAppStart: false,
|
|
18663
|
-
hasInsightsScreenLoad: false,
|
|
18664
|
-
hasInsightsVitals: false,
|
|
18665
|
-
hasInsightsCaches: false,
|
|
18666
|
-
hasInsightsQueues: false,
|
|
18667
|
-
hasInsightsLlmMonitoring: false,
|
|
18668
|
-
isInternal: false,
|
|
18669
|
-
isPublic: false,
|
|
18670
|
-
avatar: {
|
|
18671
|
-
avatarType: "letter_avatar",
|
|
18672
|
-
avatarUuid: null
|
|
18673
|
-
},
|
|
18674
|
-
color: "#bf3f55",
|
|
18675
|
-
status: "active"
|
|
18686
|
+
...project_default,
|
|
18687
|
+
name: body?.name || "cloudflare-mcp",
|
|
18688
|
+
slug: body?.slug || "cloudflare-mcp",
|
|
18689
|
+
platform: body?.platform || "node"
|
|
18690
|
+
});
|
|
18691
|
+
}
|
|
18692
|
+
},
|
|
18693
|
+
{
|
|
18694
|
+
method: "put",
|
|
18695
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/",
|
|
18696
|
+
fetch: async ({ request }) => {
|
|
18697
|
+
const body = await request.json();
|
|
18698
|
+
return HttpResponse.json({
|
|
18699
|
+
...project_default,
|
|
18700
|
+
slug: body?.slug || "cloudflare-mcp",
|
|
18701
|
+
name: body?.name || "cloudflare-mcp",
|
|
18702
|
+
platform: body?.platform || "node"
|
|
18676
18703
|
});
|
|
18677
18704
|
}
|
|
18678
18705
|
},
|
|
@@ -18883,9 +18910,362 @@ const restHandlers = buildHandlers([
|
|
|
18883
18910
|
method: "post",
|
|
18884
18911
|
path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
|
|
18885
18912
|
fetch: () => HttpResponse.json({ run_id: 123 })
|
|
18913
|
+
},
|
|
18914
|
+
{
|
|
18915
|
+
method: "get",
|
|
18916
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/autofix/",
|
|
18917
|
+
fetch: () => HttpResponse.json({ autofix: null })
|
|
18918
|
+
},
|
|
18919
|
+
{
|
|
18920
|
+
method: "post",
|
|
18921
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/autofix/",
|
|
18922
|
+
fetch: () => HttpResponse.json({ run_id: 12 })
|
|
18923
|
+
},
|
|
18924
|
+
{
|
|
18925
|
+
method: "get",
|
|
18926
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-45/autofix/",
|
|
18927
|
+
fetch: () => HttpResponse.json({ autofix: {
|
|
18928
|
+
run_id: 13,
|
|
18929
|
+
request: { project_id: 4505138086019073 },
|
|
18930
|
+
status: "COMPLETED",
|
|
18931
|
+
updated_at: "2025-04-09T22:39:50.778146",
|
|
18932
|
+
steps: [{
|
|
18933
|
+
type: "root_cause_analysis",
|
|
18934
|
+
key: "root_cause_analysis",
|
|
18935
|
+
index: 0,
|
|
18936
|
+
status: "COMPLETED",
|
|
18937
|
+
title: "1. **Root Cause Analysis**",
|
|
18938
|
+
output_stream: null,
|
|
18939
|
+
progress: [],
|
|
18940
|
+
description: "The analysis has completed successfully.",
|
|
18941
|
+
causes: [{
|
|
18942
|
+
description: "The analysis has completed successfully.",
|
|
18943
|
+
id: 1,
|
|
18944
|
+
root_cause_reproduction: []
|
|
18945
|
+
}]
|
|
18946
|
+
}]
|
|
18947
|
+
} })
|
|
18948
|
+
},
|
|
18949
|
+
{
|
|
18950
|
+
method: "post",
|
|
18951
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/teams/:teamSlug/",
|
|
18952
|
+
fetch: async ({ request, params }) => {
|
|
18953
|
+
const body = await request.json();
|
|
18954
|
+
const teamSlug = params.teamSlug;
|
|
18955
|
+
return HttpResponse.json({
|
|
18956
|
+
...team_default,
|
|
18957
|
+
id: "4509109078196224",
|
|
18958
|
+
slug: teamSlug,
|
|
18959
|
+
name: teamSlug,
|
|
18960
|
+
dateCreated: "2025-04-07T00:05:48.196710Z"
|
|
18961
|
+
});
|
|
18962
|
+
}
|
|
18963
|
+
},
|
|
18964
|
+
{
|
|
18965
|
+
method: "put",
|
|
18966
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/",
|
|
18967
|
+
fetch: async ({ request }) => {
|
|
18968
|
+
const body = await request.json();
|
|
18969
|
+
const updatedIssue = {
|
|
18970
|
+
...issue_default,
|
|
18971
|
+
status: body?.status || issue_default.status,
|
|
18972
|
+
assignedTo: body?.assignedTo || issue_default.assignedTo
|
|
18973
|
+
};
|
|
18974
|
+
return HttpResponse.json(updatedIssue);
|
|
18975
|
+
}
|
|
18976
|
+
},
|
|
18977
|
+
{
|
|
18978
|
+
method: "put",
|
|
18979
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/",
|
|
18980
|
+
fetch: async ({ request }) => {
|
|
18981
|
+
const body = await request.json();
|
|
18982
|
+
const updatedIssue = {
|
|
18983
|
+
...issue_default,
|
|
18984
|
+
status: body?.status || issue_default.status,
|
|
18985
|
+
assignedTo: body?.assignedTo || issue_default.assignedTo
|
|
18986
|
+
};
|
|
18987
|
+
return HttpResponse.json(updatedIssue);
|
|
18988
|
+
}
|
|
18989
|
+
},
|
|
18990
|
+
{
|
|
18991
|
+
method: "put",
|
|
18992
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/",
|
|
18993
|
+
fetch: async ({ request }) => {
|
|
18994
|
+
const body = await request.json();
|
|
18995
|
+
const updatedIssue = {
|
|
18996
|
+
...issueFixture2,
|
|
18997
|
+
status: body?.status || issueFixture2.status,
|
|
18998
|
+
assignedTo: body?.assignedTo || issueFixture2.assignedTo
|
|
18999
|
+
};
|
|
19000
|
+
return HttpResponse.json(updatedIssue);
|
|
19001
|
+
}
|
|
19002
|
+
},
|
|
19003
|
+
{
|
|
19004
|
+
method: "put",
|
|
19005
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376926/",
|
|
19006
|
+
fetch: async ({ request }) => {
|
|
19007
|
+
const body = await request.json();
|
|
19008
|
+
const updatedIssue = {
|
|
19009
|
+
...issueFixture2,
|
|
19010
|
+
status: body?.status || issueFixture2.status,
|
|
19011
|
+
assignedTo: body?.assignedTo || issueFixture2.assignedTo
|
|
19012
|
+
};
|
|
19013
|
+
return HttpResponse.json(updatedIssue);
|
|
19014
|
+
}
|
|
19015
|
+
},
|
|
19016
|
+
{
|
|
19017
|
+
method: "get",
|
|
19018
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/events/7ca573c0f4814912aaa9bdc77d1a7d51/attachments/",
|
|
19019
|
+
fetch: () => HttpResponse.json(event_attachments_default)
|
|
19020
|
+
},
|
|
19021
|
+
{
|
|
19022
|
+
method: "get",
|
|
19023
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/events/7ca573c0f4814912aaa9bdc77d1a7d51/attachments/123/",
|
|
19024
|
+
fetch: () => {
|
|
19025
|
+
const mockBlob = new Blob(["fake image data"], { type: "image/png" });
|
|
19026
|
+
return new HttpResponse(mockBlob, { headers: { "Content-Type": "image/png" } });
|
|
19027
|
+
}
|
|
18886
19028
|
}
|
|
18887
19029
|
]);
|
|
18888
|
-
const
|
|
19030
|
+
const searchHandlers = [http.post("https://mcp.sentry.dev/api/search", async ({ request }) => {
|
|
19031
|
+
const body = await request.json();
|
|
19032
|
+
let results = [{
|
|
19033
|
+
id: "product/rate-limiting.md",
|
|
19034
|
+
url: "https://docs.sentry.io/product/rate-limiting",
|
|
19035
|
+
snippet: "Learn how to configure rate limiting in Sentry to prevent quota exhaustion and control event ingestion.",
|
|
19036
|
+
relevance: .95
|
|
19037
|
+
}, {
|
|
19038
|
+
id: "product/accounts/quotas/spike-protection.md",
|
|
19039
|
+
url: "https://docs.sentry.io/product/accounts/quotas/spike-protection",
|
|
19040
|
+
snippet: "Spike protection helps prevent unexpected spikes in event volume from consuming your quota.",
|
|
19041
|
+
relevance: .87
|
|
19042
|
+
}];
|
|
19043
|
+
if (body?.guide) {
|
|
19044
|
+
const guide = body.guide;
|
|
19045
|
+
if (guide.includes("/")) {
|
|
19046
|
+
const [platformName, guideName] = guide.split("/");
|
|
19047
|
+
results = [{
|
|
19048
|
+
id: `platforms/${platformName}/guides/${guideName}.md`,
|
|
19049
|
+
url: `https://docs.sentry.io/platforms/${platformName}/guides/${guideName}`,
|
|
19050
|
+
snippet: `Setup guide for ${guideName} on ${platformName}`,
|
|
19051
|
+
relevance: .95
|
|
19052
|
+
}];
|
|
19053
|
+
} else results = [{
|
|
19054
|
+
id: `platforms/${guide}/index.md`,
|
|
19055
|
+
url: `https://docs.sentry.io/platforms/${guide}`,
|
|
19056
|
+
snippet: `Documentation for ${guide} platform`,
|
|
19057
|
+
relevance: .95
|
|
19058
|
+
}];
|
|
19059
|
+
}
|
|
19060
|
+
return HttpResponse.json({
|
|
19061
|
+
query: body?.query || "",
|
|
19062
|
+
results
|
|
19063
|
+
});
|
|
19064
|
+
})];
|
|
19065
|
+
const docsHandlers = [
|
|
19066
|
+
http.get("https://docs.sentry.io/product/rate-limiting.md", () => {
|
|
19067
|
+
return new HttpResponse(`# Project Rate Limits and Quotas
|
|
19068
|
+
|
|
19069
|
+
Rate limiting allows you to control the volume of events that Sentry accepts from your applications. This helps you manage costs and ensures that a sudden spike in errors doesn't consume your entire quota.
|
|
19070
|
+
|
|
19071
|
+
## Why Use Rate Limiting?
|
|
19072
|
+
|
|
19073
|
+
- **Cost Control**: Prevent unexpected charges from error spikes
|
|
19074
|
+
- **Noise Reduction**: Filter out repetitive or low-value events
|
|
19075
|
+
- **Resource Management**: Ensure critical projects have quota available
|
|
19076
|
+
- **Performance**: Reduce load on your Sentry organization
|
|
19077
|
+
|
|
19078
|
+
## Types of Rate Limits
|
|
19079
|
+
|
|
19080
|
+
### 1. Organization Rate Limits
|
|
19081
|
+
|
|
19082
|
+
Set a maximum number of events per hour across your entire organization:
|
|
19083
|
+
|
|
19084
|
+
\`\`\`python
|
|
19085
|
+
# In your organization settings
|
|
19086
|
+
rate_limit = 1000 # events per hour
|
|
19087
|
+
\`\`\`
|
|
19088
|
+
|
|
19089
|
+
### 2. Project Rate Limits
|
|
19090
|
+
|
|
19091
|
+
Configure limits for specific projects:
|
|
19092
|
+
|
|
19093
|
+
\`\`\`javascript
|
|
19094
|
+
// Project settings
|
|
19095
|
+
{
|
|
19096
|
+
"rateLimit": {
|
|
19097
|
+
"window": 3600, // 1 hour in seconds
|
|
19098
|
+
"limit": 500 // max events
|
|
19099
|
+
}
|
|
19100
|
+
}
|
|
19101
|
+
\`\`\`
|
|
19102
|
+
|
|
19103
|
+
### 3. Key-Based Rate Limiting
|
|
19104
|
+
|
|
19105
|
+
Rate limit by specific attributes:
|
|
19106
|
+
|
|
19107
|
+
- **By Release**: Limit events from specific releases
|
|
19108
|
+
- **By User**: Prevent single users from consuming quota
|
|
19109
|
+
- **By Transaction**: Control high-volume transactions
|
|
19110
|
+
|
|
19111
|
+
## Configuration Examples
|
|
19112
|
+
|
|
19113
|
+
### SDK Configuration
|
|
19114
|
+
|
|
19115
|
+
Configure client-side sampling to reduce events before they're sent:
|
|
19116
|
+
|
|
19117
|
+
\`\`\`javascript
|
|
19118
|
+
Sentry.init({
|
|
19119
|
+
dsn: "your-dsn",
|
|
19120
|
+
tracesSampleRate: 0.1, // Sample 10% of transactions
|
|
19121
|
+
beforeSend(event) {
|
|
19122
|
+
// Custom filtering logic
|
|
19123
|
+
if (event.exception?.values?.[0]?.value?.includes("NetworkError")) {
|
|
19124
|
+
return null; // Drop network errors
|
|
19125
|
+
}
|
|
19126
|
+
return event;
|
|
19127
|
+
}
|
|
19128
|
+
});
|
|
19129
|
+
\`\`\`
|
|
19130
|
+
|
|
19131
|
+
### Inbound Filters
|
|
19132
|
+
|
|
19133
|
+
Use Sentry's inbound filters to drop events server-side:
|
|
19134
|
+
|
|
19135
|
+
1. Go to **Project Settings** → **Inbound Filters**
|
|
19136
|
+
2. Enable filters for:
|
|
19137
|
+
- Legacy browsers
|
|
19138
|
+
- Web crawlers
|
|
19139
|
+
- Specific error messages
|
|
19140
|
+
- IP addresses
|
|
19141
|
+
|
|
19142
|
+
### Spike Protection
|
|
19143
|
+
|
|
19144
|
+
Enable spike protection to automatically limit events during traffic spikes:
|
|
19145
|
+
|
|
19146
|
+
\`\`\`python
|
|
19147
|
+
# Project settings
|
|
19148
|
+
spike_protection = {
|
|
19149
|
+
"enabled": True,
|
|
19150
|
+
"max_events_per_hour": 10000,
|
|
19151
|
+
"detection_window": 300 # 5 minutes
|
|
19152
|
+
}
|
|
19153
|
+
\`\`\`
|
|
19154
|
+
|
|
19155
|
+
## Best Practices
|
|
19156
|
+
|
|
19157
|
+
1. **Start Conservative**: Begin with lower limits and increase as needed
|
|
19158
|
+
2. **Monitor Usage**: Regularly review your quota consumption
|
|
19159
|
+
3. **Use Sampling**: Implement transaction sampling for high-volume apps
|
|
19160
|
+
4. **Filter Noise**: Drop known low-value events at the SDK level
|
|
19161
|
+
5. **Set Alerts**: Configure notifications for quota thresholds
|
|
19162
|
+
|
|
19163
|
+
## Rate Limit Headers
|
|
19164
|
+
|
|
19165
|
+
Sentry returns rate limit information in response headers:
|
|
19166
|
+
|
|
19167
|
+
\`\`\`
|
|
19168
|
+
X-Sentry-Rate-Limit: 60
|
|
19169
|
+
X-Sentry-Rate-Limit-Remaining: 42
|
|
19170
|
+
X-Sentry-Rate-Limit-Reset: 1634567890
|
|
19171
|
+
\`\`\`
|
|
19172
|
+
|
|
19173
|
+
## Quota Management
|
|
19174
|
+
|
|
19175
|
+
### Viewing Quota Usage
|
|
19176
|
+
|
|
19177
|
+
1. Navigate to **Settings** → **Subscription**
|
|
19178
|
+
2. View usage by:
|
|
19179
|
+
- Project
|
|
19180
|
+
- Event type
|
|
19181
|
+
- Time period
|
|
19182
|
+
|
|
19183
|
+
### On-Demand Budgets
|
|
19184
|
+
|
|
19185
|
+
Purchase additional events when approaching limits:
|
|
19186
|
+
|
|
19187
|
+
\`\`\`bash
|
|
19188
|
+
# Via API
|
|
19189
|
+
curl -X POST https://sentry.io/api/0/organizations/{org}/quotas/ \\
|
|
19190
|
+
-H 'Authorization: Bearer <token>' \\
|
|
19191
|
+
-d '{"events": 100000}'
|
|
19192
|
+
\`\`\`
|
|
19193
|
+
|
|
19194
|
+
## Troubleshooting
|
|
19195
|
+
|
|
19196
|
+
### Events Being Dropped?
|
|
19197
|
+
|
|
19198
|
+
Check:
|
|
19199
|
+
1. Organization and project rate limits
|
|
19200
|
+
2. Spike protection status
|
|
19201
|
+
3. SDK sampling configuration
|
|
19202
|
+
4. Inbound filter settings
|
|
19203
|
+
|
|
19204
|
+
### Rate Limit Errors
|
|
19205
|
+
|
|
19206
|
+
If you see 429 errors:
|
|
19207
|
+
- Review your rate limit configuration
|
|
19208
|
+
- Implement exponential backoff
|
|
19209
|
+
- Consider event buffering
|
|
19210
|
+
|
|
19211
|
+
## Related Documentation
|
|
19212
|
+
|
|
19213
|
+
- [SDK Configuration Guide](/platforms/javascript/configuration)
|
|
19214
|
+
- [Quotas and Billing](/product/quotas)
|
|
19215
|
+
- [Filtering Events](/product/data-management/filtering)`, { headers: { "Content-Type": "text/markdown" } });
|
|
19216
|
+
}),
|
|
19217
|
+
http.get("https://docs.sentry.io/product/accounts/quotas/spike-protection.md", () => {
|
|
19218
|
+
return new HttpResponse(`# Spike Protection
|
|
19219
|
+
|
|
19220
|
+
Spike protection prevents sudden spikes in event volume from consuming your entire quota.
|
|
19221
|
+
|
|
19222
|
+
## How it works
|
|
19223
|
+
|
|
19224
|
+
When Sentry detects an abnormal spike in events, it automatically activates spike protection...`, { headers: { "Content-Type": "text/markdown" } });
|
|
19225
|
+
}),
|
|
19226
|
+
http.get("https://docs.sentry.io/*.md", () => {
|
|
19227
|
+
return new HttpResponse(null, { status: 404 });
|
|
19228
|
+
})
|
|
19229
|
+
];
|
|
19230
|
+
/**
|
|
19231
|
+
* Configured MSW server instance with all Sentry API mock handlers.
|
|
19232
|
+
*
|
|
19233
|
+
* Ready-to-use mock server for testing and development. Includes all endpoints
|
|
19234
|
+
* with realistic data, parameter validation, and error scenarios.
|
|
19235
|
+
*
|
|
19236
|
+
* @example Test Setup
|
|
19237
|
+
* ```typescript
|
|
19238
|
+
* import { mswServer } from "@sentry/mcp-server-mocks";
|
|
19239
|
+
*
|
|
19240
|
+
* beforeAll(() => mswServer.listen({ onUnhandledRequest: 'error' }));
|
|
19241
|
+
* afterEach(() => mswServer.resetHandlers());
|
|
19242
|
+
* afterAll(() => mswServer.close());
|
|
19243
|
+
* ```
|
|
19244
|
+
*
|
|
19245
|
+
* @example Development Usage
|
|
19246
|
+
* ```typescript
|
|
19247
|
+
* import { mswServer } from "@sentry/mcp-server-mocks";
|
|
19248
|
+
*
|
|
19249
|
+
* // Start intercepting requests
|
|
19250
|
+
* mswServer.listen();
|
|
19251
|
+
*
|
|
19252
|
+
* // Your MCP server will now use mock responses
|
|
19253
|
+
* const apiService = new SentryApiService({ host: "sentry.io" });
|
|
19254
|
+
* const orgs = await apiService.listOrganizations();
|
|
19255
|
+
* console.log(orgs); // Returns mock organization data
|
|
19256
|
+
* ```
|
|
19257
|
+
*
|
|
19258
|
+
* @note User Data Endpoint Restrictions
|
|
19259
|
+
* The following endpoints are configured with `controlOnly: true` to work ONLY
|
|
19260
|
+
* with the main host (sentry.io) and will NOT respond to requests from
|
|
19261
|
+
* region-specific hosts (us.sentry.io, de.sentry.io):
|
|
19262
|
+
* - `/api/0/auth/` (whoami endpoint)
|
|
19263
|
+
* - `/api/0/users/me/regions/` (find_organizations endpoint)
|
|
19264
|
+
*
|
|
19265
|
+
* This matches the real Sentry API behavior where user data must always be queried
|
|
19266
|
+
* from the main API server.
|
|
19267
|
+
*/
|
|
19268
|
+
const mswServer = setupServer(...restHandlers, ...searchHandlers, ...docsHandlers);
|
|
18889
19269
|
|
|
18890
19270
|
//#endregion
|
|
18891
19271
|
//#region src/test-setup.ts
|