@sentry/mcp-server 0.14.0 → 0.16.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/dist/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-B8ZWokLV.cjs} +57 -24
- package/dist/analyze-issue-with-seer-B8ZWokLV.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-szIqv1_I.js} +57 -24
- package/dist/analyze-issue-with-seer-szIqv1_I.js.map +1 -0
- package/dist/api-client/client.cjs +2 -1
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -1
- package/dist/api-client/index.cjs +2 -1
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/api-utils-B-9vnzoA.cjs +86 -0
- package/dist/api-utils-B-9vnzoA.cjs.map +1 -0
- package/dist/api-utils-CHRiLf2Y.js +69 -0
- package/dist/api-utils-CHRiLf2Y.js.map +1 -0
- package/dist/{client-Dkw5iYu3.cjs → client-C_lwH0jz.cjs} +102 -51
- package/dist/client-C_lwH0jz.cjs.map +1 -0
- package/dist/{client-CILwfx6G.d.cts → client-D8vrUp2k.d.cts} +39 -7
- package/dist/client-D8vrUp2k.d.cts.map +1 -0
- package/dist/{client-BCN17Wbp.d.ts → client-h32L1Hx5.d.ts} +39 -7
- package/dist/client-h32L1Hx5.d.ts.map +1 -0
- package/dist/{client-DOYWNvVM.js → client-pyNUFaLN.js} +102 -51
- package/dist/client-pyNUFaLN.js.map +1 -0
- package/dist/{create-dsn-CDcL2DLD.js → create-dsn-CEEytIa4.js} +2 -2
- package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-CEEytIa4.js.map} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-CI7MSiQu.cjs} +2 -2
- package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-CI7MSiQu.cjs.map} +1 -1
- package/dist/{create-project-DY5mFznV.js → create-project-CoV1e-vp.js} +3 -3
- package/dist/{create-project-DY5mFznV.js.map → create-project-CoV1e-vp.js.map} +1 -1
- package/dist/{create-project-Bg5uDkc4.cjs → create-project-DnLKRG1p.cjs} +3 -3
- package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-DnLKRG1p.cjs.map} +1 -1
- package/dist/{create-team-5purh64V.cjs → create-team-DKpKxVIY.cjs} +2 -2
- package/dist/{create-team-5purh64V.cjs.map → create-team-DKpKxVIY.cjs.map} +1 -1
- package/dist/{create-team-C2R7EUC3.js → create-team-HWN88CJQ.js} +2 -2
- package/dist/{create-team-C2R7EUC3.js.map → create-team-HWN88CJQ.js.map} +1 -1
- package/dist/errors-BtJEw2Z-.cjs +38 -0
- package/dist/errors-BtJEw2Z-.cjs.map +1 -0
- package/dist/errors-D_R568zP.js +26 -0
- package/dist/errors-D_R568zP.js.map +1 -0
- package/dist/errors.cjs +2 -1
- package/dist/errors.d.cts +10 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +10 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +2 -2
- package/dist/fetch-utils-B0CB5xLM.d.ts +33 -0
- package/dist/fetch-utils-B0CB5xLM.d.ts.map +1 -0
- package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
- package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
- package/dist/fetch-utils-SuGtrQRz.cjs +64 -0
- package/dist/fetch-utils-SuGtrQRz.cjs.map +1 -0
- package/dist/fetch-utils-gHZdOZV2.js +52 -0
- package/dist/fetch-utils-gHZdOZV2.js.map +1 -0
- package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BB9dQP0b.js} +2 -2
- package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BB9dQP0b.js.map} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-vriZSwr7.cjs} +2 -2
- package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-vriZSwr7.cjs.map} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs → find-errors-BQFHuBHi.cjs} +6 -3
- package/dist/find-errors-BQFHuBHi.cjs.map +1 -0
- package/dist/{find-errors-CuRm4PzL.js → find-errors-CSPsT-Jp.js} +6 -3
- package/dist/find-errors-CSPsT-Jp.js.map +1 -0
- package/dist/{find-issues-C3uk59rn.cjs → find-issues-BG80wLZw.cjs} +7 -4
- package/dist/find-issues-BG80wLZw.cjs.map +1 -0
- package/dist/{find-issues-CAtNGBly.js → find-issues-DoUD8vP0.js} +7 -4
- package/dist/find-issues-DoUD8vP0.js.map +1 -0
- package/dist/{find-organizations-ojXwWWzk.js → find-organizations-BILg1hUb.js} +3 -3
- package/dist/find-organizations-BILg1hUb.js.map +1 -0
- package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-Cx5vCj4j.cjs} +3 -3
- package/dist/find-organizations-Cx5vCj4j.cjs.map +1 -0
- package/dist/{find-projects-BZWhlYJh.cjs → find-projects-CN99WBex.cjs} +3 -3
- package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-CN99WBex.cjs.map} +1 -1
- package/dist/{find-projects-fcLG4KpT.js → find-projects-CgCj2_eq.js} +3 -3
- package/dist/{find-projects-fcLG4KpT.js.map → find-projects-CgCj2_eq.js.map} +1 -1
- package/dist/{find-releases-BUozr0Z-.js → find-releases-BsQF3wc5.js} +2 -2
- package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BsQF3wc5.js.map} +1 -1
- package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-Cm11xU5S.cjs} +2 -2
- package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-Cm11xU5S.cjs.map} +1 -1
- package/dist/{find-tags-d-wF1Se8.js → find-tags-BRaa2i-r.js} +2 -2
- package/dist/{find-tags-d-wF1Se8.js.map → find-tags-BRaa2i-r.js.map} +1 -1
- package/dist/{find-tags-Byk4d3oZ.cjs → find-tags-BjibTJBm.cjs} +2 -2
- package/dist/{find-tags-Byk4d3oZ.cjs.map → find-tags-BjibTJBm.cjs.map} +1 -1
- package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-CS443jRa.cjs} +3 -3
- package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-CS443jRa.cjs.map} +1 -1
- package/dist/{find-teams-BZ118EIK.js → find-teams-XgUg8Nj5.js} +3 -3
- package/dist/{find-teams-BZ118EIK.js.map → find-teams-XgUg8Nj5.js.map} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-B0s_rr0H.cjs} +2 -2
- package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-B0s_rr0H.cjs.map} +1 -1
- package/dist/{find-transactions-DZCj81jP.js → find-transactions-Cob_B_3u.js} +2 -2
- package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-Cob_B_3u.js.map} +1 -1
- package/dist/{formatting-BlMiQa9i.cjs → formatting-AXU4XsjJ.cjs} +33 -2
- package/dist/formatting-AXU4XsjJ.cjs.map +1 -0
- package/dist/{formatting-CHh9Q_OW.d.cts → formatting-DnSI0DHf.d.ts} +7 -5
- package/dist/formatting-DnSI0DHf.d.ts.map +1 -0
- package/dist/{formatting-pUm38KOj.js → formatting-WGc5qrhv.js} +34 -2
- package/dist/formatting-WGc5qrhv.js.map +1 -0
- package/dist/{formatting-kdIeURER.d.ts → formatting-aGQ7M_2w.d.cts} +7 -5
- package/dist/formatting-aGQ7M_2w.d.cts.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
- package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
- package/dist/{get-doc-DaTCenOE.cjs → get-doc-ByXR3EWc.cjs} +4 -4
- package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-ByXR3EWc.cjs.map} +1 -1
- package/dist/{get-doc-YTiQznr1.js → get-doc-C1IEG2pH.js} +4 -4
- package/dist/{get-doc-YTiQznr1.js.map → get-doc-C1IEG2pH.js.map} +1 -1
- package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-CuGUfVAD.cjs} +2 -2
- package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-CuGUfVAD.cjs.map} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-N11gSV23.js} +2 -2
- package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-N11gSV23.js.map} +1 -1
- package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-BrEGybe0.js} +30 -14
- package/dist/get-issue-details-BrEGybe0.js.map +1 -0
- package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-EklkHsWi.cjs} +30 -14
- package/dist/get-issue-details-EklkHsWi.cjs.map +1 -0
- package/dist/index.cjs +37 -37
- package/dist/index.js +37 -37
- package/dist/internal/fetch-utils.cjs +3 -2
- package/dist/internal/fetch-utils.d.cts +2 -2
- package/dist/internal/fetch-utils.d.ts +2 -2
- package/dist/internal/fetch-utils.js +2 -2
- package/dist/internal/formatting.cjs +2 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.js +2 -1
- package/dist/internal/issue-helpers.cjs +2 -1
- package/dist/internal/issue-helpers.js +2 -1
- package/dist/internal/test-fixtures.d.cts +38 -38
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +170 -170
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -1
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
- package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-D2p1Gkgm.js} +15 -19
- package/dist/issue-helpers-D2p1Gkgm.js.map +1 -0
- package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-DvsTfq9u.cjs} +14 -19
- package/dist/issue-helpers-DvsTfq9u.cjs.map +1 -0
- package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
- package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
- package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
- package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{prompts-C8Y9w5c4.js → prompts-Cuwmybyc.js} +2 -2
- package/dist/{prompts-C8Y9w5c4.js.map → prompts-Cuwmybyc.js.map} +1 -1
- package/dist/{prompts-Df3i1XSB.cjs → prompts-uWAbMvLe.cjs} +2 -2
- package/dist/{prompts-Df3i1XSB.cjs.map → prompts-uWAbMvLe.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.js +2 -2
- package/dist/{resources-BM_YQGcb.cjs → resources-BlgeiG6C.cjs} +2 -2
- package/dist/{resources-BM_YQGcb.cjs.map → resources-BlgeiG6C.cjs.map} +1 -1
- package/dist/{resources-BHF8a1ZB.js → resources-CwWOjB8_.js} +2 -2
- package/dist/{resources-BHF8a1ZB.js.map → resources-CwWOjB8_.js.map} +1 -1
- package/dist/resources.cjs +2 -2
- package/dist/resources.js +2 -2
- package/dist/{schema--5m4KI84.d.ts → schema-BW_fxx99.d.cts} +559 -559
- package/dist/{schema-ya35hkEL.d.cts.map → schema-BW_fxx99.d.cts.map} +1 -1
- package/dist/{schema-ya35hkEL.d.cts → schema-DkWOa2-c.d.ts} +428 -428
- package/dist/{schema--5m4KI84.d.ts.map → schema-DkWOa2-c.d.ts.map} +1 -1
- package/dist/{search-docs-BLbB_GV2.js → search-docs-BKUeMSyn.js} +3 -3
- package/dist/{search-docs-BLbB_GV2.js.map → search-docs-BKUeMSyn.js.map} +1 -1
- package/dist/{search-docs-D5Foht_0.cjs → search-docs-Cr-gyE5m.cjs} +3 -3
- package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-Cr-gyE5m.cjs.map} +1 -1
- package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-BdE7DddW.js} +5 -3
- package/dist/seer-utils-BdE7DddW.js.map +1 -0
- package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-BvdVTH85.cjs} +16 -2
- package/dist/seer-utils-BvdVTH85.cjs.map +1 -0
- package/dist/{server-BpEIZVaZ.cjs → server-9IEGGN8V.cjs} +41 -25
- package/dist/{server-DOy-M9Ko.js.map → server-9IEGGN8V.cjs.map} +1 -1
- package/dist/{server-DOy-M9Ko.js → server-BhNrW6bw.js} +41 -25
- package/dist/server-BhNrW6bw.js.map +1 -0
- package/dist/server.cjs +34 -34
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +34 -34
- package/dist/{stdio-B2NDq7Ax.js → stdio-CQmibRBR.js} +3 -3
- package/dist/{stdio-B2NDq7Ax.js.map → stdio-CQmibRBR.js.map} +1 -1
- package/dist/{stdio-DMEgJ_fG.cjs → stdio-mw-fEjO4.cjs} +3 -3
- package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-mw-fEjO4.cjs.map} +1 -1
- package/dist/test-setup.cjs +1 -16
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1 -16
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/tools/analyze-issue-with-seer.cjs +9 -8
- package/dist/tools/analyze-issue-with-seer.js +9 -8
- package/dist/tools/create-dsn.cjs +4 -4
- package/dist/tools/create-dsn.js +4 -4
- package/dist/tools/create-project.cjs +5 -5
- package/dist/tools/create-project.js +5 -5
- package/dist/tools/create-team.cjs +4 -4
- package/dist/tools/create-team.js +4 -4
- package/dist/tools/find-dsns.cjs +4 -4
- package/dist/tools/find-dsns.js +4 -4
- package/dist/tools/find-errors.cjs +4 -4
- package/dist/tools/find-errors.js +4 -4
- package/dist/tools/find-issues.cjs +4 -4
- package/dist/tools/find-issues.js +4 -4
- package/dist/tools/find-organizations.cjs +4 -4
- package/dist/tools/find-organizations.js +4 -4
- package/dist/tools/find-projects.cjs +4 -4
- package/dist/tools/find-projects.js +4 -4
- package/dist/tools/find-releases.cjs +4 -4
- package/dist/tools/find-releases.js +4 -4
- package/dist/tools/find-tags.cjs +4 -4
- package/dist/tools/find-tags.js +4 -4
- package/dist/tools/find-teams.cjs +4 -4
- package/dist/tools/find-teams.js +4 -4
- package/dist/tools/find-transactions.cjs +4 -4
- package/dist/tools/find-transactions.js +4 -4
- package/dist/tools/get-doc.cjs +4 -4
- package/dist/tools/get-doc.js +4 -4
- package/dist/tools/get-event-attachment.cjs +4 -4
- package/dist/tools/get-event-attachment.js +4 -4
- package/dist/tools/get-issue-details.cjs +8 -7
- package/dist/tools/get-issue-details.js +8 -7
- package/dist/tools/index.cjs +31 -31
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.js +31 -31
- package/dist/tools/search-docs.cjs +4 -3
- package/dist/tools/search-docs.js +4 -3
- package/dist/tools/update-issue.cjs +9 -8
- package/dist/tools/update-issue.js +9 -8
- package/dist/tools/update-project.cjs +5 -5
- package/dist/tools/update-project.js +5 -5
- package/dist/tools/utils/api-utils.cjs +6 -4
- package/dist/tools/utils/api-utils.d.cts +22 -5
- package/dist/tools/utils/api-utils.d.cts.map +1 -1
- package/dist/tools/utils/api-utils.d.ts +22 -5
- package/dist/tools/utils/api-utils.d.ts.map +1 -1
- package/dist/tools/utils/api-utils.js +4 -4
- package/dist/tools/utils/fetch-utils.cjs +3 -2
- package/dist/tools/utils/fetch-utils.d.cts +2 -2
- package/dist/tools/utils/fetch-utils.d.ts +2 -2
- package/dist/tools/utils/fetch-utils.js +2 -2
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +5 -3
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +4 -4
- package/dist/tools/utils/issue-utils.js +5 -3
- package/dist/tools/utils/seer-utils.cjs +3 -1
- package/dist/tools/utils/seer-utils.d.cts +6 -4
- package/dist/tools/utils/seer-utils.d.cts.map +1 -1
- package/dist/tools/utils/seer-utils.d.ts +6 -4
- package/dist/tools/utils/seer-utils.d.ts.map +1 -1
- package/dist/tools/utils/seer-utils.js +2 -2
- package/dist/tools/whoami.cjs +4 -4
- package/dist/tools/whoami.js +4 -4
- package/dist/tools-AYbI0sEf.js +48 -0
- package/dist/{tools-mThAUo_3.js.map → tools-AYbI0sEf.js.map} +1 -1
- package/dist/{tools-19Ms1kck.cjs → tools-CwQFlJzn.cjs} +21 -21
- package/dist/{tools-19Ms1kck.cjs.map → tools-CwQFlJzn.cjs.map} +1 -1
- package/dist/transports/stdio.cjs +36 -36
- package/dist/transports/stdio.js +36 -36
- package/dist/{types-Bg17IGWJ.d.cts → types-BAbu4Vzx.d.cts} +2 -2
- package/dist/{types-Bg17IGWJ.d.cts.map → types-BAbu4Vzx.d.cts.map} +1 -1
- package/dist/{types-CtTBwGbw.d.ts → types-CoY5KVni.d.ts} +2 -2
- package/dist/{types-CtTBwGbw.d.ts.map → types-CoY5KVni.d.ts.map} +1 -1
- package/dist/{update-issue-DmLElHPS.js → update-issue-ClbiTLyL.js} +13 -7
- package/dist/update-issue-ClbiTLyL.js.map +1 -0
- package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-_4vzwHfZ.cjs} +13 -7
- package/dist/update-issue-_4vzwHfZ.cjs.map +1 -0
- package/dist/{update-project-CijYCtG1.cjs → update-project-2EEnezbZ.cjs} +4 -4
- package/dist/{update-project-CijYCtG1.cjs.map → update-project-2EEnezbZ.cjs.map} +1 -1
- package/dist/{update-project-BNPev7W8.js → update-project-CExfO7tG.js} +4 -4
- package/dist/{update-project-BNPev7W8.js.map → update-project-CExfO7tG.js.map} +1 -1
- package/dist/version-3e1twbPm.js +6 -0
- package/dist/{version-C4uvMmw0.js.map → version-3e1twbPm.js.map} +1 -1
- package/dist/{version-Ddz4xg_q.cjs → version-Cp9p-38J.cjs} +2 -2
- package/dist/{version-Ddz4xg_q.cjs.map → version-Cp9p-38J.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-DesNZnaQ.js → whoami-DhoaHHY5.js} +2 -2
- package/dist/{whoami-DesNZnaQ.js.map → whoami-DhoaHHY5.js.map} +1 -1
- package/dist/{whoami-CEgbTUqt.cjs → whoami-m0N5F6BN.cjs} +2 -2
- package/dist/{whoami-CEgbTUqt.cjs.map → whoami-m0N5F6BN.cjs.map} +1 -1
- package/package.json +3 -3
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
- package/dist/api-utils-C6QJAzFL.js +0 -31
- package/dist/api-utils-C6QJAzFL.js.map +0 -1
- package/dist/api-utils-d36iteNO.cjs +0 -36
- package/dist/api-utils-d36iteNO.cjs.map +0 -1
- package/dist/client-BCN17Wbp.d.ts.map +0 -1
- package/dist/client-CILwfx6G.d.cts.map +0 -1
- package/dist/client-DOYWNvVM.js.map +0 -1
- package/dist/client-Dkw5iYu3.cjs.map +0 -1
- package/dist/errors-CIoxzIug.js +0 -15
- package/dist/errors-CIoxzIug.js.map +0 -1
- package/dist/errors-YmiXLOyx.cjs +0 -21
- package/dist/errors-YmiXLOyx.cjs.map +0 -1
- package/dist/fetch-utils-BMKjO-cc.js +0 -29
- package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
- package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
- package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
- package/dist/fetch-utils-oab6uNp3.cjs +0 -35
- package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
- package/dist/find-errors-CuRm4PzL.js.map +0 -1
- package/dist/find-errors-Drzv7hzM.cjs.map +0 -1
- package/dist/find-issues-C3uk59rn.cjs.map +0 -1
- package/dist/find-issues-CAtNGBly.js.map +0 -1
- package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
- package/dist/find-organizations-ojXwWWzk.js.map +0 -1
- package/dist/formatting-BlMiQa9i.cjs.map +0 -1
- package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
- package/dist/formatting-kdIeURER.d.ts.map +0 -1
- package/dist/formatting-pUm38KOj.js.map +0 -1
- package/dist/get-issue-details-CxChU4U9.js.map +0 -1
- package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
- package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
- package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
- package/dist/seer-utils-Ckr8nYlz.js.map +0 -1
- package/dist/seer-utils-CzYEEZb2.cjs.map +0 -1
- package/dist/server-BpEIZVaZ.cjs.map +0 -1
- package/dist/tools-mThAUo_3.js +0 -48
- package/dist/update-issue-B6eZhAPJ.cjs.map +0 -1
- package/dist/update-issue-DmLElHPS.js.map +0 -1
- package/dist/version-C4uvMmw0.js +0 -6
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-CHRiLf2Y.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamPlatform, ParamRegionUrl, ParamTeamSlug } from "./schema-DtsnsxMl.js";
|
|
4
|
-
import { logError } from "./logging-
|
|
4
|
+
import { logError } from "./logging-DzxYBMrn.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { setTag } from "@sentry/core";
|
|
7
7
|
|
|
@@ -73,4 +73,4 @@ var create_project_default = defineTool({
|
|
|
73
73
|
|
|
74
74
|
//#endregion
|
|
75
75
|
export { create_project_default };
|
|
76
|
-
//# sourceMappingURL=create-project-
|
|
76
|
+
//# sourceMappingURL=create-project-CoV1e-vp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project-
|
|
1
|
+
{"version":3,"file":"create-project-CoV1e-vp.js","names":["context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAcA,6BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,UAAU;EACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,YAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-B-9vnzoA.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
|
-
const require_logging = require('./logging-
|
|
5
|
+
const require_logging = require('./logging-CX2buXiG.cjs');
|
|
6
6
|
const zod = require_chunk.__toESM(require("zod"));
|
|
7
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
8
|
|
|
@@ -79,4 +79,4 @@ Object.defineProperty(exports, 'create_project_default', {
|
|
|
79
79
|
return create_project_default;
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
//# sourceMappingURL=create-project-
|
|
82
|
+
//# sourceMappingURL=create-project-DnLKRG1p.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-project-
|
|
1
|
+
{"version":3,"file":"create-project-DnLKRG1p.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","context: ServerContext","clientKey: ClientKey | null"],"sources":["../src/tools/create-project.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { logError } from \"../logging\";\nimport type { ServerContext } from \"../types\";\nimport type { ClientKey } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamTeamSlug,\n ParamPlatform,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"create_project\",\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"team.slug\", params.teamSlug);\n\n const project = await apiService.createProject({\n organizationSlug,\n teamSlug: params.teamSlug,\n name: params.name,\n platform: params.platform,\n });\n let clientKey: ClientKey | null = null;\n try {\n clientKey = await apiService.createClientKey({\n organizationSlug,\n projectSlug: project.slug,\n name: \"Default\",\n });\n } catch (err) {\n logError(err);\n }\n let output = `# New Project in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${project.id}\\n`;\n output += `**Slug**: ${project.slug}\\n`;\n output += `**Name**: ${project.name}\\n`;\n if (clientKey) {\n output += `**SENTRY_DSN**: ${clientKey?.dsn.public}\\n\\n`;\n } else {\n output += \"**SENTRY_DSN**: There was an error fetching this value.\\n\\n\";\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.\\n`;\n output += `- You should always inform the user of the **SENTRY_DSN** and Project Slug values.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAcA,6BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,UAAUC;EACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;EACH,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,aAAa,OAAO,SAAS;EAEpC,MAAM,UAAU,MAAM,WAAW,cAAc;GAC7C;GACA,UAAU,OAAO;GACjB,MAAM,OAAO;GACb,UAAU,OAAO;EAClB,EAAC;EACF,IAAIC,YAA8B;AAClC,MAAI;AACF,eAAY,MAAM,WAAW,gBAAgB;IAC3C;IACA,aAAa,QAAQ;IACrB,MAAM;GACP,EAAC;EACH,SAAQ,KAAK;AACZ,4BAAS,IAAI;EACd;EACD,IAAI,UAAU,qBAAqB,iBAAiB;AACpD,aAAW,UAAU,QAAQ,GAAG;AAChC,aAAW,YAAY,QAAQ,KAAK;AACpC,aAAW,YAAY,QAAQ,KAAK;AACpC,MAAI,UACF,YAAW,kBAAkB,WAAW,IAAI,OAAO;MAEnD,WAAU;AAEZ,YAAU;AACV,aAAW;AACX,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-B-9vnzoA.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -50,4 +50,4 @@ Object.defineProperty(exports, 'create_team_default', {
|
|
|
50
50
|
return create_team_default;
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
//# sourceMappingURL=create-team-
|
|
53
|
+
//# sourceMappingURL=create-team-DKpKxVIY.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-team-
|
|
1
|
+
{"version":3,"file":"create-team-DKpKxVIY.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAOA,0BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-CHRiLf2Y.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
@@ -44,4 +44,4 @@ var create_team_default = defineTool({
|
|
|
44
44
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { create_team_default };
|
|
47
|
-
//# sourceMappingURL=create-team-
|
|
47
|
+
//# sourceMappingURL=create-team-HWN88CJQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-team-
|
|
1
|
+
{"version":3,"file":"create-team-HWN88CJQ.js","names":["context: ServerContext"],"sources":["../src/tools/create-team.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"create_team\",\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const team = await apiService.createTeam({\n organizationSlug,\n name: params.name,\n });\n let output = `# New Team in **${organizationSlug}**\\n\\n`;\n output += `**ID**: ${team.id}\\n`;\n output += `**Slug**: ${team.slug}\\n`;\n output += `**Name**: ${team.name}\\n`;\n output += \"# Using this information\\n\\n\";\n output += `- You should always inform the user of the Team Slug value.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;AAOA,0BAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;CACpE;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,OAAO,MAAM,WAAW,WAAW;GACvC;GACA,MAAM,OAAO;EACd,EAAC;EACF,IAAI,UAAU,kBAAkB,iBAAiB;AACjD,aAAW,UAAU,KAAK,GAAG;AAC7B,aAAW,YAAY,KAAK,KAAK;AACjC,aAAW,YAAY,KAAK,KAAK;AACjC,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/errors.ts
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when user input validation fails.
|
|
5
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
6
|
+
*/
|
|
7
|
+
var UserInputError = class extends Error {
|
|
8
|
+
constructor(message, options) {
|
|
9
|
+
super(message, options);
|
|
10
|
+
this.name = "UserInputError";
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Error thrown when configuration is invalid or missing.
|
|
15
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
16
|
+
* Typically used for environment configuration issues, connection settings, etc.
|
|
17
|
+
*/
|
|
18
|
+
var ConfigurationError = class extends Error {
|
|
19
|
+
constructor(message, options) {
|
|
20
|
+
super(message, options);
|
|
21
|
+
this.name = "ConfigurationError";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
Object.defineProperty(exports, 'ConfigurationError', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return ConfigurationError;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, 'UserInputError', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return UserInputError;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=errors-BtJEw2Z-.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-BtJEw2Z-.cjs","names":["message: string","options?: ErrorOptions"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = \"UserInputError\";\n }\n}\n\n/**\n * Error thrown when configuration is invalid or missing.\n * These errors should be returned to the user directly without logging to Sentry.\n * Typically used for environment configuration issues, connection settings, etc.\n */\nexport class ConfigurationError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = \"ConfigurationError\";\n }\n}\n"],"mappings":";;;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiBC,SAAwB;AACnD,QAAM,SAAS,QAAQ;AACvB,OAAK,OAAO;CACb;AACF;;;;;;AAOD,IAAa,qBAAb,cAAwC,MAAM;CAC5C,YAAYD,SAAiBC,SAAwB;AACnD,QAAM,SAAS,QAAQ;AACvB,OAAK,OAAO;CACb;AACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/errors.ts
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when user input validation fails.
|
|
4
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
5
|
+
*/
|
|
6
|
+
var UserInputError = class extends Error {
|
|
7
|
+
constructor(message, options) {
|
|
8
|
+
super(message, options);
|
|
9
|
+
this.name = "UserInputError";
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Error thrown when configuration is invalid or missing.
|
|
14
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
15
|
+
* Typically used for environment configuration issues, connection settings, etc.
|
|
16
|
+
*/
|
|
17
|
+
var ConfigurationError = class extends Error {
|
|
18
|
+
constructor(message, options) {
|
|
19
|
+
super(message, options);
|
|
20
|
+
this.name = "ConfigurationError";
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ConfigurationError, UserInputError };
|
|
26
|
+
//# sourceMappingURL=errors-D_R568zP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-D_R568zP.js","names":["message: string","options?: ErrorOptions"],"sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error thrown when user input validation fails.\n * These errors should be returned to the user directly without logging to Sentry.\n */\nexport class UserInputError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = \"UserInputError\";\n }\n}\n\n/**\n * Error thrown when configuration is invalid or missing.\n * These errors should be returned to the user directly without logging to Sentry.\n * Typically used for environment configuration issues, connection settings, etc.\n */\nexport class ConfigurationError extends Error {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = \"ConfigurationError\";\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,iBAAb,cAAoC,MAAM;CACxC,YAAYA,SAAiBC,SAAwB;AACnD,QAAM,SAAS,QAAQ;AACvB,OAAK,OAAO;CACb;AACF;;;;;;AAOD,IAAa,qBAAb,cAAwC,MAAM;CAC5C,YAAYD,SAAiBC,SAAwB;AACnD,QAAM,SAAS,QAAQ;AACvB,OAAK,OAAO;CACb;AACF"}
|
package/dist/errors.cjs
CHANGED
package/dist/errors.d.cts
CHANGED
|
@@ -4,9 +4,17 @@
|
|
|
4
4
|
* These errors should be returned to the user directly without logging to Sentry.
|
|
5
5
|
*/
|
|
6
6
|
declare class UserInputError extends Error {
|
|
7
|
-
constructor(message: string);
|
|
7
|
+
constructor(message: string, options?: ErrorOptions);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Error thrown when configuration is invalid or missing.
|
|
11
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
12
|
+
* Typically used for environment configuration issues, connection settings, etc.
|
|
13
|
+
*/
|
|
14
|
+
declare class ConfigurationError extends Error {
|
|
15
|
+
constructor(message: string, options?: ErrorOptions);
|
|
8
16
|
}
|
|
9
17
|
//# sourceMappingURL=errors.d.ts.map
|
|
10
18
|
//#endregion
|
|
11
|
-
export { UserInputError };
|
|
19
|
+
export { ConfigurationError, UserInputError };
|
|
12
20
|
//# sourceMappingURL=errors.d.cts.map
|
package/dist/errors.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.cts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;
|
|
1
|
+
{"version":3,"file":"errors.d.cts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;AAAoC,cAAvB,cAAA,SAAuB,KAAA,CAAA;EAAK,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EACA,YADA;AAYzC;;;;AAA6C;;cAAhC,kBAAA,SAA2B,KAAA;yCACC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -4,9 +4,17 @@
|
|
|
4
4
|
* These errors should be returned to the user directly without logging to Sentry.
|
|
5
5
|
*/
|
|
6
6
|
declare class UserInputError extends Error {
|
|
7
|
-
constructor(message: string);
|
|
7
|
+
constructor(message: string, options?: ErrorOptions);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Error thrown when configuration is invalid or missing.
|
|
11
|
+
* These errors should be returned to the user directly without logging to Sentry.
|
|
12
|
+
* Typically used for environment configuration issues, connection settings, etc.
|
|
13
|
+
*/
|
|
14
|
+
declare class ConfigurationError extends Error {
|
|
15
|
+
constructor(message: string, options?: ErrorOptions);
|
|
8
16
|
}
|
|
9
17
|
//# sourceMappingURL=errors.d.ts.map
|
|
10
18
|
//#endregion
|
|
11
|
-
export { UserInputError };
|
|
19
|
+
export { ConfigurationError, UserInputError };
|
|
12
20
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","names":[],"sources":["../src/errors.ts"],"sourcesContent":[],"mappings":";;AAIA;;;AAAoC,cAAvB,cAAA,SAAuB,KAAA,CAAA;EAAK,WAAA,CAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EACA,YADA;AAYzC;;;;AAA6C;;cAAhC,kBAAA,SAA2B,KAAA;yCACC"}
|
package/dist/errors.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UserInputError } from "./errors-
|
|
1
|
+
import { ConfigurationError, UserInputError } from "./errors-D_R568zP.js";
|
|
2
2
|
|
|
3
|
-
export { UserInputError };
|
|
3
|
+
export { ConfigurationError, UserInputError };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
declare function fetchWithTimeout(url: string | URL, options?: RequestInit, timeoutMs?: number): Promise<Response>;
|
|
11
|
+
/**
|
|
12
|
+
* Retry a function with exponential backoff
|
|
13
|
+
* @param fn - The async function to retry
|
|
14
|
+
* @param options - Retry options
|
|
15
|
+
* @param options.maxRetries - Maximum number of retries (default: 3)
|
|
16
|
+
* @param options.initialDelay - Initial delay in milliseconds (default: 1000)
|
|
17
|
+
* @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)
|
|
18
|
+
* @returns Promise with the function result
|
|
19
|
+
* @throws The last error if all retries are exhausted
|
|
20
|
+
*/
|
|
21
|
+
declare function retryWithBackoff<T>(fn: () => Promise<T>, {
|
|
22
|
+
maxRetries,
|
|
23
|
+
initialDelay,
|
|
24
|
+
shouldRetry
|
|
25
|
+
}?: {
|
|
26
|
+
maxRetries?: number;
|
|
27
|
+
initialDelay?: number;
|
|
28
|
+
shouldRetry?: (error: unknown) => boolean;
|
|
29
|
+
}): Promise<T>;
|
|
30
|
+
//# sourceMappingURL=fetch-utils.d.ts.map
|
|
31
|
+
//#endregion
|
|
32
|
+
export { fetchWithTimeout, retryWithBackoff };
|
|
33
|
+
//# sourceMappingURL=fetch-utils-B0CB5xLM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-B0CB5xLM.d.ts","names":[],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;AAIU;AA8BY,iBAlCA,gBAAA,CAkCgB,GAAA,EAAA,MAAA,GAjCtB,GAiCsB,EAAA,OAAA,CAAA,EAhC3B,WAgC2B,EAAA,SAAA,CAAA,EAAA,MAAA,CAAA,EA9BnC,OA8BmC,CA9B3B,QA8B2B,CAAA;;;;;;;;;AAW5B;;iBAXY,8BACV,QAAQ;;;;;;;;IAUjB,QAAQ"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
declare function fetchWithTimeout(url: string | URL, options?: RequestInit, timeoutMs?: number): Promise<Response>;
|
|
11
|
+
/**
|
|
12
|
+
* Retry a function with exponential backoff
|
|
13
|
+
* @param fn - The async function to retry
|
|
14
|
+
* @param options - Retry options
|
|
15
|
+
* @param options.maxRetries - Maximum number of retries (default: 3)
|
|
16
|
+
* @param options.initialDelay - Initial delay in milliseconds (default: 1000)
|
|
17
|
+
* @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)
|
|
18
|
+
* @returns Promise with the function result
|
|
19
|
+
* @throws The last error if all retries are exhausted
|
|
20
|
+
*/
|
|
21
|
+
declare function retryWithBackoff<T>(fn: () => Promise<T>, {
|
|
22
|
+
maxRetries,
|
|
23
|
+
initialDelay,
|
|
24
|
+
shouldRetry
|
|
25
|
+
}?: {
|
|
26
|
+
maxRetries?: number;
|
|
27
|
+
initialDelay?: number;
|
|
28
|
+
shouldRetry?: (error: unknown) => boolean;
|
|
29
|
+
}): Promise<T>;
|
|
30
|
+
//# sourceMappingURL=fetch-utils.d.ts.map
|
|
31
|
+
//#endregion
|
|
32
|
+
export { fetchWithTimeout, retryWithBackoff };
|
|
33
|
+
//# sourceMappingURL=fetch-utils-CTLoW1R8.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-CTLoW1R8.d.cts","names":[],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":[],"mappings":";;AAQA;;;;;;AAIU;AA8BY,iBAlCA,gBAAA,CAkCgB,GAAA,EAAA,MAAA,GAjCtB,GAiCsB,EAAA,OAAA,CAAA,EAhC3B,WAgC2B,EAAA,SAAA,CAAA,EAAA,MAAA,CAAA,EA9BnC,OA8BmC,CA9B3B,QA8B2B,CAAA;;;;;;;;;AAW5B;;iBAXY,8BACV,QAAQ;;;;;;;;IAUjB,QAAQ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/internal/fetch-utils.ts
|
|
3
|
+
/**
|
|
4
|
+
* Fetch with timeout using AbortController
|
|
5
|
+
* @param url - The URL to fetch
|
|
6
|
+
* @param options - Standard fetch options
|
|
7
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
8
|
+
* @returns Promise<Response>
|
|
9
|
+
* @throws Error if request times out
|
|
10
|
+
*/
|
|
11
|
+
async function fetchWithTimeout(url, options = {}, timeoutMs = 3e4) {
|
|
12
|
+
const controller = new AbortController();
|
|
13
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetch(url, {
|
|
16
|
+
...options,
|
|
17
|
+
signal: controller.signal
|
|
18
|
+
});
|
|
19
|
+
return response;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
if (error instanceof Error && error.name === "AbortError") throw new Error(`Request timeout after ${timeoutMs}ms`);
|
|
22
|
+
throw error;
|
|
23
|
+
} finally {
|
|
24
|
+
clearTimeout(timeoutId);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retry a function with exponential backoff
|
|
29
|
+
* @param fn - The async function to retry
|
|
30
|
+
* @param options - Retry options
|
|
31
|
+
* @param options.maxRetries - Maximum number of retries (default: 3)
|
|
32
|
+
* @param options.initialDelay - Initial delay in milliseconds (default: 1000)
|
|
33
|
+
* @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)
|
|
34
|
+
* @returns Promise with the function result
|
|
35
|
+
* @throws The last error if all retries are exhausted
|
|
36
|
+
*/
|
|
37
|
+
async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, shouldRetry = (error) => true } = {}) {
|
|
38
|
+
let lastError;
|
|
39
|
+
let delay = initialDelay;
|
|
40
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) try {
|
|
41
|
+
return await fn();
|
|
42
|
+
} catch (error) {
|
|
43
|
+
lastError = error;
|
|
44
|
+
if (attempt === maxRetries || !shouldRetry(error)) throw error;
|
|
45
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
46
|
+
delay = Math.min(delay * 2, 3e4);
|
|
47
|
+
}
|
|
48
|
+
throw lastError;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
Object.defineProperty(exports, 'fetchWithTimeout', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return fetchWithTimeout;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, 'retryWithBackoff', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return retryWithBackoff;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=fetch-utils-SuGtrQRz.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-SuGtrQRz.cjs","names":["url: string | URL","options: RequestInit","fn: () => Promise<T>","error: unknown","lastError: unknown"],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":["/**\n * Fetch with timeout using AbortController\n * @param url - The URL to fetch\n * @param options - Standard fetch options\n * @param timeoutMs - Timeout in milliseconds (default: 30000)\n * @returns Promise<Response>\n * @throws Error if request times out\n */\nexport async function fetchWithTimeout(\n url: string | URL,\n options: RequestInit = {},\n timeoutMs = 30000,\n): Promise<Response> {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetch(url, {\n ...options,\n signal: controller.signal,\n });\n return response;\n } catch (error) {\n if (error instanceof Error && error.name === \"AbortError\") {\n throw new Error(`Request timeout after ${timeoutMs}ms`);\n }\n throw error;\n } finally {\n clearTimeout(timeoutId);\n }\n}\n\n/**\n * Retry a function with exponential backoff\n * @param fn - The async function to retry\n * @param options - Retry options\n * @param options.maxRetries - Maximum number of retries (default: 3)\n * @param options.initialDelay - Initial delay in milliseconds (default: 1000)\n * @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)\n * @returns Promise with the function result\n * @throws The last error if all retries are exhausted\n */\nexport async function retryWithBackoff<T>(\n fn: () => Promise<T>,\n {\n maxRetries = 3,\n initialDelay = 1000,\n shouldRetry = (error: unknown) => true,\n }: {\n maxRetries?: number;\n initialDelay?: number;\n shouldRetry?: (error: unknown) => boolean;\n } = {},\n): Promise<T> {\n let lastError: unknown;\n let delay = initialDelay;\n\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\n try {\n return await fn();\n } catch (error) {\n lastError = error;\n\n // Don't retry if we've exhausted attempts or if the error is non-retryable\n if (attempt === maxRetries || !shouldRetry(error)) {\n throw error;\n }\n\n // Wait before retrying with exponential backoff\n await new Promise((resolve) => setTimeout(resolve, delay));\n delay = Math.min(delay * 2, 30000); // Cap at 30 seconds\n }\n }\n\n throw lastError;\n}\n"],"mappings":";;;;;;;;;;AAQA,eAAsB,iBACpBA,KACAC,UAAuB,CAAE,GACzB,YAAY,KACO;CACnB,MAAM,aAAa,IAAI;CACvB,MAAM,YAAY,WAAW,MAAM,WAAW,OAAO,EAAE,UAAU;AAEjE,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,GAAG;GACH,QAAQ,WAAW;EACpB,EAAC;AACF,SAAO;CACR,SAAQ,OAAO;AACd,MAAI,iBAAiB,SAAS,MAAM,SAAS,aAC3C,OAAM,IAAI,OAAO,wBAAwB,UAAU;AAErD,QAAM;CACP,UAAS;AACR,eAAa,UAAU;CACxB;AACF;;;;;;;;;;;AAYD,eAAsB,iBACpBC,IACA,EACE,aAAa,GACb,eAAe,KACf,cAAc,CAACC,UAAmB,MAKnC,GAAG,CAAE,GACM;CACZ,IAAIC;CACJ,IAAI,QAAQ;AAEZ,MAAK,IAAI,UAAU,GAAG,WAAW,YAAY,UAC3C,KAAI;AACF,SAAO,MAAM,IAAI;CAClB,SAAQ,OAAO;AACd,cAAY;AAGZ,MAAI,YAAY,eAAe,YAAY,MAAM,CAC/C,OAAM;AAIR,QAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,MAAM;AACzD,UAAQ,KAAK,IAAI,QAAQ,GAAG,IAAM;CACnC;AAGH,OAAM;AACP"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/internal/fetch-utils.ts
|
|
2
|
+
/**
|
|
3
|
+
* Fetch with timeout using AbortController
|
|
4
|
+
* @param url - The URL to fetch
|
|
5
|
+
* @param options - Standard fetch options
|
|
6
|
+
* @param timeoutMs - Timeout in milliseconds (default: 30000)
|
|
7
|
+
* @returns Promise<Response>
|
|
8
|
+
* @throws Error if request times out
|
|
9
|
+
*/
|
|
10
|
+
async function fetchWithTimeout(url, options = {}, timeoutMs = 3e4) {
|
|
11
|
+
const controller = new AbortController();
|
|
12
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
13
|
+
try {
|
|
14
|
+
const response = await fetch(url, {
|
|
15
|
+
...options,
|
|
16
|
+
signal: controller.signal
|
|
17
|
+
});
|
|
18
|
+
return response;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
if (error instanceof Error && error.name === "AbortError") throw new Error(`Request timeout after ${timeoutMs}ms`);
|
|
21
|
+
throw error;
|
|
22
|
+
} finally {
|
|
23
|
+
clearTimeout(timeoutId);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retry a function with exponential backoff
|
|
28
|
+
* @param fn - The async function to retry
|
|
29
|
+
* @param options - Retry options
|
|
30
|
+
* @param options.maxRetries - Maximum number of retries (default: 3)
|
|
31
|
+
* @param options.initialDelay - Initial delay in milliseconds (default: 1000)
|
|
32
|
+
* @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)
|
|
33
|
+
* @returns Promise with the function result
|
|
34
|
+
* @throws The last error if all retries are exhausted
|
|
35
|
+
*/
|
|
36
|
+
async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, shouldRetry = (error) => true } = {}) {
|
|
37
|
+
let lastError;
|
|
38
|
+
let delay = initialDelay;
|
|
39
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) try {
|
|
40
|
+
return await fn();
|
|
41
|
+
} catch (error) {
|
|
42
|
+
lastError = error;
|
|
43
|
+
if (attempt === maxRetries || !shouldRetry(error)) throw error;
|
|
44
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
45
|
+
delay = Math.min(delay * 2, 3e4);
|
|
46
|
+
}
|
|
47
|
+
throw lastError;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { fetchWithTimeout, retryWithBackoff };
|
|
52
|
+
//# sourceMappingURL=fetch-utils-gHZdOZV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-utils-gHZdOZV2.js","names":["url: string | URL","options: RequestInit","fn: () => Promise<T>","error: unknown","lastError: unknown"],"sources":["../src/internal/fetch-utils.ts"],"sourcesContent":["/**\n * Fetch with timeout using AbortController\n * @param url - The URL to fetch\n * @param options - Standard fetch options\n * @param timeoutMs - Timeout in milliseconds (default: 30000)\n * @returns Promise<Response>\n * @throws Error if request times out\n */\nexport async function fetchWithTimeout(\n url: string | URL,\n options: RequestInit = {},\n timeoutMs = 30000,\n): Promise<Response> {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetch(url, {\n ...options,\n signal: controller.signal,\n });\n return response;\n } catch (error) {\n if (error instanceof Error && error.name === \"AbortError\") {\n throw new Error(`Request timeout after ${timeoutMs}ms`);\n }\n throw error;\n } finally {\n clearTimeout(timeoutId);\n }\n}\n\n/**\n * Retry a function with exponential backoff\n * @param fn - The async function to retry\n * @param options - Retry options\n * @param options.maxRetries - Maximum number of retries (default: 3)\n * @param options.initialDelay - Initial delay in milliseconds (default: 1000)\n * @param options.shouldRetry - Predicate to determine if error should be retried (default: always retry)\n * @returns Promise with the function result\n * @throws The last error if all retries are exhausted\n */\nexport async function retryWithBackoff<T>(\n fn: () => Promise<T>,\n {\n maxRetries = 3,\n initialDelay = 1000,\n shouldRetry = (error: unknown) => true,\n }: {\n maxRetries?: number;\n initialDelay?: number;\n shouldRetry?: (error: unknown) => boolean;\n } = {},\n): Promise<T> {\n let lastError: unknown;\n let delay = initialDelay;\n\n for (let attempt = 0; attempt <= maxRetries; attempt++) {\n try {\n return await fn();\n } catch (error) {\n lastError = error;\n\n // Don't retry if we've exhausted attempts or if the error is non-retryable\n if (attempt === maxRetries || !shouldRetry(error)) {\n throw error;\n }\n\n // Wait before retrying with exponential backoff\n await new Promise((resolve) => setTimeout(resolve, delay));\n delay = Math.min(delay * 2, 30000); // Cap at 30 seconds\n }\n }\n\n throw lastError;\n}\n"],"mappings":";;;;;;;;;AAQA,eAAsB,iBACpBA,KACAC,UAAuB,CAAE,GACzB,YAAY,KACO;CACnB,MAAM,aAAa,IAAI;CACvB,MAAM,YAAY,WAAW,MAAM,WAAW,OAAO,EAAE,UAAU;AAEjE,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,GAAG;GACH,QAAQ,WAAW;EACpB,EAAC;AACF,SAAO;CACR,SAAQ,OAAO;AACd,MAAI,iBAAiB,SAAS,MAAM,SAAS,aAC3C,OAAM,IAAI,OAAO,wBAAwB,UAAU;AAErD,QAAM;CACP,UAAS;AACR,eAAa,UAAU;CACxB;AACF;;;;;;;;;;;AAYD,eAAsB,iBACpBC,IACA,EACE,aAAa,GACb,eAAe,KACf,cAAc,CAACC,UAAmB,MAKnC,GAAG,CAAE,GACM;CACZ,IAAIC;CACJ,IAAI,QAAQ;AAEZ,MAAK,IAAI,UAAU,GAAG,WAAW,YAAY,UAC3C,KAAI;AACF,SAAO,MAAM,IAAI;CAClB,SAAQ,OAAO;AACd,cAAY;AAGZ,MAAI,YAAY,eAAe,YAAY,MAAM,CAC/C,OAAM;AAIR,QAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,MAAM;AACzD,UAAQ,KAAK,IAAI,QAAQ,GAAG,IAAM;CACnC;AAGH,OAAM;AACP"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-CHRiLf2Y.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { setTag } from "@sentry/core";
|
|
5
5
|
|
|
@@ -49,4 +49,4 @@ var find_dsns_default = defineTool({
|
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
51
|
export { find_dsns_default };
|
|
52
|
-
//# sourceMappingURL=find-dsns-
|
|
52
|
+
//# sourceMappingURL=find-dsns-BB9dQP0b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-dsns-
|
|
1
|
+
{"version":3,"file":"find-dsns-BB9dQP0b.js","names":["context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;AAWA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,SAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-B-9vnzoA.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
6
|
|
|
@@ -55,4 +55,4 @@ Object.defineProperty(exports, 'find_dsns_default', {
|
|
|
55
55
|
return find_dsns_default;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
//# sourceMappingURL=find-dsns-
|
|
58
|
+
//# sourceMappingURL=find-dsns-vriZSwr7.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-dsns-
|
|
1
|
+
{"version":3,"file":"find-dsns-vriZSwr7.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","context: ServerContext"],"sources":["../src/tools/find-dsns.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlug,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_dsns\",\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n setTag(\"project.slug\", params.projectSlug);\n\n const clientKeys = await apiService.listClientKeys({\n organizationSlug,\n projectSlug: params.projectSlug,\n });\n let output = `# DSNs in **${organizationSlug}/${params.projectSlug}**\\n\\n`;\n if (clientKeys.length === 0) {\n output +=\n \"No DSNs were found.\\n\\nYou can create new one using the `create_dsn` tool.\";\n return output;\n }\n for (const clientKey of clientKeys) {\n output += `## ${clientKey.name}\\n`;\n output += `**ID**: ${clientKey.id}\\n`;\n output += `**DSN**: ${clientKey.dsn.public}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output +=\n \"- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\\n\";\n return output;\n },\n});\n"],"mappings":";;;;;;;AAWA,wBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAaC;CACd;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,4BAAO,gBAAgB,OAAO,YAAY;EAE1C,MAAM,aAAa,MAAM,WAAW,eAAe;GACjD;GACA,aAAa,OAAO;EACrB,EAAC;EACF,IAAI,UAAU,cAAc,iBAAiB,GAAG,OAAO,YAAY;AACnE,MAAI,WAAW,WAAW,GAAG;AAC3B,aACE;AACF,UAAO;EACR;AACD,OAAK,MAAM,aAAa,YAAY;AAClC,cAAW,KAAK,UAAU,KAAK;AAC/B,cAAW,UAAU,UAAU,GAAG;AAClC,cAAW,WAAW,UAAU,IAAI,OAAO;EAC5C;AACD,YAAU;AACV,YACE;AACF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-B-9vnzoA.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -54,13 +54,16 @@ var find_errors_default = require_defineTool.defineTool({
|
|
|
54
54
|
const organizationSlug = params.organizationSlug;
|
|
55
55
|
(0, __sentry_core.setTag)("organization.slug", organizationSlug);
|
|
56
56
|
if (params.projectSlug) (0, __sentry_core.setTag)("project.slug", params.projectSlug);
|
|
57
|
-
const eventList = await apiService.searchErrors({
|
|
57
|
+
const eventList = await require_api_utils.withApiErrorHandling(() => apiService.searchErrors({
|
|
58
58
|
organizationSlug,
|
|
59
59
|
projectSlug: params.projectSlug,
|
|
60
60
|
filename: params.filename,
|
|
61
61
|
query: params.query,
|
|
62
62
|
transaction: params.transaction,
|
|
63
63
|
sortBy: params.sortBy
|
|
64
|
+
}), {
|
|
65
|
+
organizationSlug,
|
|
66
|
+
projectSlug: params.projectSlug
|
|
64
67
|
});
|
|
65
68
|
let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : ""}**\n\n`;
|
|
66
69
|
if (params.query) output += `These errors match the query \`${params.query}\`\n`;
|
|
@@ -94,4 +97,4 @@ Object.defineProperty(exports, 'find_errors_default', {
|
|
|
94
97
|
return find_errors_default;
|
|
95
98
|
}
|
|
96
99
|
});
|
|
97
|
-
//# sourceMappingURL=find-errors-
|
|
100
|
+
//# sourceMappingURL=find-errors-BQFHuBHi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-errors-BQFHuBHi.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/find-errors.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext, withApiErrorHandling } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamTransaction,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_errors\",\n description: [\n \"Find errors in Sentry using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n filename: z\n .string()\n .trim()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n if (params.projectSlug) setTag(\"project.slug\", params.projectSlug);\n\n const eventList = await withApiErrorHandling(\n () =>\n apiService.searchErrors({\n organizationSlug,\n projectSlug: params.projectSlug,\n filename: params.filename,\n query: params.query,\n transaction: params.transaction,\n sortBy: params.sortBy as \"last_seen\" | \"count\" | undefined,\n }),\n {\n organizationSlug,\n projectSlug: params.projectSlug,\n },\n );\n let output = `# Errors in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (params.query)\n output += `These errors match the query \\`${params.query}\\`\\n`;\n if (params.filename)\n output += `These errors are limited to the file suffix \\`${params.filename}\\`\\n`;\n output += \"\\n\";\n if (eventList.length === 0) {\n output += `No results found\\n\\n`;\n output += `We searched within the ${organizationSlug} organization.\\n\\n`;\n return output;\n }\n for (const eventSummary of eventList) {\n output += `## ${eventSummary.issue}\\n\\n`;\n output += `**Description**: ${eventSummary.title}\\n`;\n output += `**Issue ID**: ${eventSummary.issue}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, eventSummary.issue)}\\n`;\n output += `**Project**: ${eventSummary.project}\\n`;\n output += `**Last Seen**: ${eventSummary[\"last_seen()\"]}\\n`;\n output += `**Occurrences**: ${eventSummary[\"count()\"]}\\n\\n`;\n }\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the Issue ID in commit messages (e.g. \\`Fixes <issueID>\\`) to automatically close the issue when the commit is merged.\\n`;\n output += `- You can get more details about an error by using the tool: \\`get_issue_details(organizationSlug=\"${organizationSlug}\", issueId=<issueID>)\\`\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAaA,0BAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAa,qCAAsB,UAAU;EAC7C,UAAU,MACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;EACb,aAAa,gCAAiB,UAAU;EACxC,OAAO,0BAAW,UAAU;EAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;CACJ;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,MAAI,OAAO,YAAa,2BAAO,gBAAgB,OAAO,YAAY;EAElE,MAAM,YAAY,MAAM,uCACtB,MACE,WAAW,aAAa;GACtB;GACA,aAAa,OAAO;GACpB,UAAU,OAAO;GACjB,OAAO,OAAO;GACd,aAAa,OAAO;GACpB,QAAQ,OAAO;EAChB,EAAC,EACJ;GACE;GACA,aAAa,OAAO;EACrB,EACF;EACD,IAAI,UAAU,gBAAgB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AACpG,MAAI,OAAO,MACT,YAAW,iCAAiC,OAAO,MAAM;AAC3D,MAAI,OAAO,SACT,YAAW,gDAAgD,OAAO,SAAS;AAC7E,YAAU;AACV,MAAI,UAAU,WAAW,GAAG;AAC1B,cAAW;AACX,cAAW,yBAAyB,iBAAiB;AACrD,UAAO;EACR;AACD,OAAK,MAAM,gBAAgB,WAAW;AACpC,cAAW,KAAK,aAAa,MAAM;AACnC,cAAW,mBAAmB,aAAa,MAAM;AACjD,cAAW,gBAAgB,aAAa,MAAM;AAC9C,cAAW,WAAW,WAAW,YAAY,kBAAkB,aAAa,MAAM,CAAC;AACnF,cAAW,eAAe,aAAa,QAAQ;AAC/C,cAAW,iBAAiB,aAAa,eAAe;AACxD,cAAW,mBAAmB,aAAa,WAAW;EACvD;AACD,YAAU;AACV,aAAW;AACX,aAAW,qGAAqG,iBAAiB;AACjI,SAAO;CACR;AACF,EAAC"}
|