@bryanhu/codexly 0.30.0 → 0.31.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/CHANGELOG.md +356 -4
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/dist/{chunk-YEWVIPEB.js → chunk-5NDBX6YW.js} +636 -376
- package/dist/{chunk-T3TXYERG.js → chunk-IQDWF7SH.js} +267 -105
- package/dist/{chunk-W6U4V35J.js → chunk-XAI75BER.js} +28 -1
- package/dist/{chunk-MWNYYQDP.js → chunk-XUFOQLNM.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/client/index.js +13 -2
- package/dist/protocol/index.js +1 -1
- package/dist/providers/codex/index.js +2 -2
- package/dist/server/index.js +4 -4
- package/dist/web/.vite/manifest.json +157 -156
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{abnfDiagram-N423BO3Z-B5zsWXWU.js → abnfDiagram-N423BO3Z-BjOk39fK.js} +1 -1
- package/dist/web/assets/abnfDiagram-N423BO3Z-BjOk39fK.js.br +0 -0
- package/dist/web/assets/abnfDiagram-N423BO3Z-BjOk39fK.js.gz +0 -0
- package/dist/web/assets/agent-settings-panel-CD856VbZ.js +1 -0
- package/dist/web/assets/agent-settings-panel-CD856VbZ.js.br +0 -0
- package/dist/web/assets/agent-settings-panel-CD856VbZ.js.gz +0 -0
- package/dist/web/assets/{architectureDiagram-T3A2C74G-VAJJokz3.js → architectureDiagram-T3A2C74G-CszOrw8P.js} +1 -1
- package/dist/web/assets/architectureDiagram-T3A2C74G-CszOrw8P.js.br +0 -0
- package/dist/web/assets/architectureDiagram-T3A2C74G-CszOrw8P.js.gz +0 -0
- package/dist/web/assets/{attachments-CuciRoPj.js → attachments-hHYcCn48.js} +1 -1
- package/dist/web/assets/attachments-hHYcCn48.js.br +0 -0
- package/dist/web/assets/attachments-hHYcCn48.js.gz +0 -0
- package/dist/web/assets/{background-image-picker-D4S9VbWK.js → background-image-picker-g1MOp3xh.js} +1 -1
- package/dist/web/assets/background-image-picker-g1MOp3xh.js.br +0 -0
- package/dist/web/assets/background-image-picker-g1MOp3xh.js.gz +0 -0
- package/dist/web/assets/{chunk-5RXB4S5H-fk5DV184.js → chunk-5RXB4S5H-CzjZ3jYa.js} +1 -1
- package/dist/web/assets/chunk-5RXB4S5H-CzjZ3jYa.js.br +0 -0
- package/dist/web/assets/chunk-5RXB4S5H-CzjZ3jYa.js.gz +0 -0
- package/dist/web/assets/{chunk-6Q2QTUOP-BOd4EM_k.js → chunk-6Q2QTUOP-4wecdxpy.js} +1 -1
- package/dist/web/assets/chunk-6Q2QTUOP-4wecdxpy.js.br +0 -0
- package/dist/web/assets/chunk-6Q2QTUOP-4wecdxpy.js.gz +0 -0
- package/dist/web/assets/{chunk-GF5L2VYU-4S3VMyhe.js → chunk-GF5L2VYU-BME1MVPj.js} +1 -1
- package/dist/web/assets/chunk-GF5L2VYU-BME1MVPj.js.br +0 -0
- package/dist/web/assets/chunk-GF5L2VYU-BME1MVPj.js.gz +0 -0
- package/dist/web/assets/{chunk-JQJVKLGR-BwAdww_a.js → chunk-JQJVKLGR-BNnsgjF4.js} +1 -1
- package/dist/web/assets/chunk-JQJVKLGR-BNnsgjF4.js.br +0 -0
- package/dist/web/assets/chunk-JQJVKLGR-BNnsgjF4.js.gz +0 -0
- package/dist/web/assets/{classDiagram-JCYQIIEL-CWvbxTV4.js → classDiagram-JCYQIIEL-DfsU-iz3.js} +1 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-DfsU-iz3.js.br +0 -0
- package/dist/web/assets/classDiagram-JCYQIIEL-DfsU-iz3.js.gz +0 -0
- package/dist/web/assets/{classDiagram-v2-OCEON4UE-CWvbxTV4.js → classDiagram-v2-OCEON4UE-DfsU-iz3.js} +1 -1
- package/dist/web/assets/classDiagram-v2-OCEON4UE-DfsU-iz3.js.br +0 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-DfsU-iz3.js.gz +0 -0
- package/dist/web/assets/{code-highlighter-BjWXy_Iw.js → code-highlighter-0eqb-Lkx.js} +1 -1
- package/dist/web/assets/code-highlighter-0eqb-Lkx.js.br +0 -0
- package/dist/web/assets/code-highlighter-0eqb-Lkx.js.gz +0 -0
- package/dist/web/assets/{commit-settings-panel-a9GtBcyN.js → commit-settings-panel-BVWa135n.js} +1 -1
- package/dist/web/assets/commit-settings-panel-BVWa135n.js.br +0 -0
- package/dist/web/assets/commit-settings-panel-BVWa135n.js.gz +0 -0
- package/dist/web/assets/{cynefinDiagram-MW4NZA55-Ds3L2HYC.js → cynefinDiagram-MW4NZA55-frpmFdyz.js} +1 -1
- package/dist/web/assets/cynefinDiagram-MW4NZA55-frpmFdyz.js.br +0 -0
- package/dist/web/assets/cynefinDiagram-MW4NZA55-frpmFdyz.js.gz +0 -0
- package/dist/web/assets/{diagram-7IWD3JNH-oAuqSBBd.js → diagram-7IWD3JNH-FttE2mF9.js} +1 -1
- package/dist/web/assets/diagram-7IWD3JNH-FttE2mF9.js.br +0 -0
- package/dist/web/assets/diagram-7IWD3JNH-FttE2mF9.js.gz +0 -0
- package/dist/web/assets/{diagram-LBJQPF4R-BTr0W5cj.js → diagram-LBJQPF4R-DWNj_QF3.js} +1 -1
- package/dist/web/assets/diagram-LBJQPF4R-DWNj_QF3.js.br +0 -0
- package/dist/web/assets/diagram-LBJQPF4R-DWNj_QF3.js.gz +0 -0
- package/dist/web/assets/{diagram-Q27KOJAE-Xmz7kPoV.js → diagram-Q27KOJAE-YijAHa46.js} +1 -1
- package/dist/web/assets/diagram-Q27KOJAE-YijAHa46.js.br +0 -0
- package/dist/web/assets/diagram-Q27KOJAE-YijAHa46.js.gz +0 -0
- package/dist/web/assets/{diagram-UB23O5K3-Ccoz8RvZ.js → diagram-UB23O5K3-BOM6whDm.js} +1 -1
- package/dist/web/assets/diagram-UB23O5K3-BOM6whDm.js.br +0 -0
- package/dist/web/assets/diagram-UB23O5K3-BOM6whDm.js.gz +0 -0
- package/dist/web/assets/{ebnfDiagram-BXEA7PRR-XLCtKL91.js → ebnfDiagram-BXEA7PRR-DsJVty4x.js} +1 -1
- package/dist/web/assets/ebnfDiagram-BXEA7PRR-DsJVty4x.js.br +0 -0
- package/dist/web/assets/ebnfDiagram-BXEA7PRR-DsJVty4x.js.gz +0 -0
- package/dist/web/assets/{erDiagram-JOGREHBK-S2CHNYGV.js → erDiagram-JOGREHBK-CDedc87q.js} +1 -1
- package/dist/web/assets/erDiagram-JOGREHBK-CDedc87q.js.br +0 -0
- package/dist/web/assets/erDiagram-JOGREHBK-CDedc87q.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-F6jB7Qb_.js → file-review-dialog-ZlSRByDh.js} +2 -2
- package/dist/web/assets/file-review-dialog-ZlSRByDh.js.br +0 -0
- package/dist/web/assets/file-review-dialog-ZlSRByDh.js.gz +0 -0
- package/dist/web/assets/{flowDiagram-UKHOOZJN-DZbuh7hy.js → flowDiagram-UKHOOZJN-CoVA1HXU.js} +1 -1
- package/dist/web/assets/flowDiagram-UKHOOZJN-CoVA1HXU.js.br +0 -0
- package/dist/web/assets/flowDiagram-UKHOOZJN-CoVA1HXU.js.gz +0 -0
- package/dist/web/assets/{git-commit-review-BT1DisdC.js → git-commit-review-DdmNEtaT.js} +2 -2
- package/dist/web/assets/git-commit-review-DdmNEtaT.js.br +0 -0
- package/dist/web/assets/git-commit-review-DdmNEtaT.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-D4wJqH0T.js → git-history-panel-BJmnH2Dh.js} +1 -1
- package/dist/web/assets/git-history-panel-BJmnH2Dh.js.br +0 -0
- package/dist/web/assets/git-history-panel-BJmnH2Dh.js.gz +0 -0
- package/dist/web/assets/{global-search-dialog-B7WhRB5J.js → global-search-dialog-PYK9IIEa.js} +1 -1
- package/dist/web/assets/global-search-dialog-PYK9IIEa.js.br +0 -0
- package/dist/web/assets/global-search-dialog-PYK9IIEa.js.gz +0 -0
- package/dist/web/assets/{global-settings-about-DF9t5LPK.js → global-settings-about-BFGYjZyv.js} +1 -1
- package/dist/web/assets/global-settings-about-BFGYjZyv.js.br +0 -0
- package/dist/web/assets/global-settings-about-BFGYjZyv.js.gz +0 -0
- package/dist/web/assets/global-settings-page-CrhhVjyg.js +2 -0
- package/dist/web/assets/global-settings-page-CrhhVjyg.js.br +0 -0
- package/dist/web/assets/global-settings-page-CrhhVjyg.js.gz +0 -0
- package/dist/web/assets/{global-settings-pets-D8Grr4dJ.js → global-settings-pets-BjntH3Nh.js} +1 -1
- package/dist/web/assets/global-settings-pets-BjntH3Nh.js.br +0 -0
- package/dist/web/assets/global-settings-pets-BjntH3Nh.js.gz +0 -0
- package/dist/web/assets/{highlighted-body-OFNGDK62-T0waXgH6.js → highlighted-body-OFNGDK62-FjBSs__o.js} +1 -1
- package/dist/web/assets/highlighted-body-OFNGDK62-FjBSs__o.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-FjBSs__o.js.gz +0 -0
- package/dist/web/assets/{history-task-timeline-BLiCPMY2.js → history-task-timeline-DHtwHEWB.js} +1 -1
- package/dist/web/assets/history-task-timeline-DHtwHEWB.js.br +0 -0
- package/dist/web/assets/history-task-timeline-DHtwHEWB.js.gz +0 -0
- package/dist/web/assets/{image-preview-DHojYYCu.js → image-preview-CxAsQ_9O.js} +2 -2
- package/dist/web/assets/image-preview-CxAsQ_9O.js.br +0 -0
- package/dist/web/assets/image-preview-CxAsQ_9O.js.gz +0 -0
- package/dist/web/assets/{image-preview-content-bIMPrgXt.js → image-preview-content-BxJgppkC.js} +1 -1
- package/dist/web/assets/image-preview-content-BxJgppkC.js.br +0 -0
- package/dist/web/assets/image-preview-content-BxJgppkC.js.gz +0 -0
- package/dist/web/assets/index-CV1MnZmV.css +2 -0
- package/dist/web/assets/index-CV1MnZmV.css.br +0 -0
- package/dist/web/assets/index-CV1MnZmV.css.gz +0 -0
- package/dist/web/assets/{index-ySw7zE7v.js → index-CYyqBE6B.js} +3 -3
- package/dist/web/assets/index-CYyqBE6B.js.br +0 -0
- package/dist/web/assets/index-CYyqBE6B.js.gz +0 -0
- package/dist/web/assets/{infoDiagram-6WML65LV-8JSDIKEQ.js → infoDiagram-6WML65LV-DSZvXJp0.js} +1 -1
- package/dist/web/assets/infoDiagram-6WML65LV-DSZvXJp0.js.br +0 -0
- package/dist/web/assets/infoDiagram-6WML65LV-DSZvXJp0.js.gz +0 -0
- package/dist/web/assets/initial-deps-CP3yrzZ7.js +1 -0
- package/dist/web/assets/initial-deps-CP3yrzZ7.js.br +0 -0
- package/dist/web/assets/initial-deps-CP3yrzZ7.js.gz +0 -0
- package/dist/web/assets/{installed-skills-pane-Bnwd2-z8.js → installed-skills-pane-DAmIV2Rn.js} +1 -1
- package/dist/web/assets/installed-skills-pane-DAmIV2Rn.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-DAmIV2Rn.js.gz +0 -0
- package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-BBsZ0aSy.js → ishikawaDiagram-WSZJBQD7-DVUvT7ny.js} +1 -1
- package/dist/web/assets/ishikawaDiagram-WSZJBQD7-DVUvT7ny.js.br +0 -0
- package/dist/web/assets/ishikawaDiagram-WSZJBQD7-DVUvT7ny.js.gz +0 -0
- package/dist/web/assets/{kanban-definition-27J2QSJJ-DUC5stHg.js → kanban-definition-27J2QSJJ-C0G0BsDc.js} +1 -1
- package/dist/web/assets/kanban-definition-27J2QSJJ-C0G0BsDc.js.br +0 -0
- package/dist/web/assets/kanban-definition-27J2QSJJ-C0G0BsDc.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-CgZbm6_f.js → lazy-message-response-ClOOqJ2R.js} +2 -2
- package/dist/web/assets/lazy-message-response-ClOOqJ2R.js.br +0 -0
- package/dist/web/assets/lazy-message-response-ClOOqJ2R.js.gz +0 -0
- package/dist/web/assets/{mcp-management-pane-BwR_barH.js → mcp-management-pane-Dxb0V9mJ.js} +1 -1
- package/dist/web/assets/mcp-management-pane-Dxb0V9mJ.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-Dxb0V9mJ.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-CTpPHU79.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-CTpPHU79.js.br +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-CTpPHU79.js.gz +0 -0
- package/dist/web/assets/{message-response-BuAZphla.js → message-response-BqaS9_Ak.js} +6 -6
- package/dist/web/assets/message-response-BqaS9_Ak.js.br +0 -0
- package/dist/web/assets/message-response-BqaS9_Ak.js.gz +0 -0
- package/dist/web/assets/{mindmap-definition-FAOFIHXS-DGzAA5ft.js → mindmap-definition-FAOFIHXS-e4xaDG0C.js} +1 -1
- package/dist/web/assets/mindmap-definition-FAOFIHXS-e4xaDG0C.js.br +0 -0
- package/dist/web/assets/mindmap-definition-FAOFIHXS-e4xaDG0C.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BINszJdR.js +1 -0
- package/dist/web/assets/official-plugins-pane-BINszJdR.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BINszJdR.js.gz +0 -0
- package/dist/web/assets/{patch-diff-viewer-BigjXoO6.js → patch-diff-viewer-uRBXpth4.js} +2 -2
- package/dist/web/assets/patch-diff-viewer-uRBXpth4.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-uRBXpth4.js.gz +0 -0
- package/dist/web/assets/{pegDiagram-VL7TDLO6-BfAVCl7E.js → pegDiagram-VL7TDLO6-yAZdMeDN.js} +1 -1
- package/dist/web/assets/pegDiagram-VL7TDLO6-yAZdMeDN.js.br +0 -0
- package/dist/web/assets/pegDiagram-VL7TDLO6-yAZdMeDN.js.gz +0 -0
- package/dist/web/assets/{personalization-settings-panel-D-Gd--Rl.js → personalization-settings-panel-Sw_yJQCY.js} +1 -1
- package/dist/web/assets/personalization-settings-panel-Sw_yJQCY.js.br +0 -0
- package/dist/web/assets/personalization-settings-panel-Sw_yJQCY.js.gz +0 -0
- package/dist/web/assets/{pieDiagram-7S7Q4E2Y-kgcNar0g.js → pieDiagram-7S7Q4E2Y-DKgKZ9K6.js} +1 -1
- package/dist/web/assets/pieDiagram-7S7Q4E2Y-DKgKZ9K6.js.br +0 -0
- package/dist/web/assets/pieDiagram-7S7Q4E2Y-DKgKZ9K6.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-DJCEoy22.js → project-file-popup-page-BK__Q18L.js} +1 -1
- package/dist/web/assets/project-file-popup-page-BK__Q18L.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-BK__Q18L.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-B_iPZ4Xn.js → project-source-panel-Dd__SIgT.js} +3 -3
- package/dist/web/assets/project-source-panel-Dd__SIgT.js.br +0 -0
- package/dist/web/assets/project-source-panel-Dd__SIgT.js.gz +0 -0
- package/dist/web/assets/{prompt-input-BDkiLB2S.js → prompt-input-D7ZkQ_gQ.js} +1 -1
- package/dist/web/assets/prompt-input-D7ZkQ_gQ.js.br +0 -0
- package/dist/web/assets/prompt-input-D7ZkQ_gQ.js.gz +0 -0
- package/dist/web/assets/{prompt-reference-token-_srKof11.js → prompt-reference-token-BBMnimT4.js} +1 -1
- package/dist/web/assets/prompt-reference-token-BBMnimT4.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-BBMnimT4.js.gz +0 -0
- package/dist/web/assets/{railroadDiagram-AXF67PYL-CmHkSqa8.js → railroadDiagram-AXF67PYL-BBVyDlId.js} +1 -1
- package/dist/web/assets/railroadDiagram-AXF67PYL-BBVyDlId.js.br +0 -0
- package/dist/web/assets/railroadDiagram-AXF67PYL-BBVyDlId.js.gz +0 -0
- package/dist/web/assets/{requirementDiagram-LRYGKXZP-I035gQYY.js → requirementDiagram-LRYGKXZP-1CJGSuUO.js} +1 -1
- package/dist/web/assets/requirementDiagram-LRYGKXZP-1CJGSuUO.js.br +0 -0
- package/dist/web/assets/requirementDiagram-LRYGKXZP-1CJGSuUO.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-date-time-picker-BCFLWNkx.js → scheduled-task-date-time-picker-BoLv1Roe.js} +1 -1
- package/dist/web/assets/scheduled-task-date-time-picker-BoLv1Roe.js.br +0 -0
- package/dist/web/assets/{scheduled-task-date-time-picker-BCFLWNkx.js.gz → scheduled-task-date-time-picker-BoLv1Roe.js.gz} +0 -0
- package/dist/web/assets/{scheduled-tasks-container-Q8NazFRD.js → scheduled-tasks-container-CH4kKvAd.js} +2 -2
- package/dist/web/assets/scheduled-tasks-container-CH4kKvAd.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-CH4kKvAd.js.gz +0 -0
- package/dist/web/assets/{sequenceDiagram-SI44F4Z6-BomGpYgp.js → sequenceDiagram-SI44F4Z6-C073VZDH.js} +1 -1
- package/dist/web/assets/sequenceDiagram-SI44F4Z6-C073VZDH.js.br +0 -0
- package/dist/web/assets/sequenceDiagram-SI44F4Z6-C073VZDH.js.gz +0 -0
- package/dist/web/assets/{sheet-YYYqH36Y.js → sheet-DietHvw8.js} +1 -1
- package/dist/web/assets/sheet-DietHvw8.js.br +0 -0
- package/dist/web/assets/sheet-DietHvw8.js.gz +0 -0
- package/dist/web/assets/{shiki-bundle-DirQN6eN.js → shiki-bundle-DC-eDV05.js} +1 -1
- package/dist/web/assets/shiki-bundle-DC-eDV05.js.br +1 -0
- package/dist/web/assets/shiki-bundle-DC-eDV05.js.gz +0 -0
- package/dist/web/assets/{skills-market-container-Dra_SRsM.js → skills-market-container--2yomrH9.js} +2 -2
- package/dist/web/assets/skills-market-container--2yomrH9.js.br +0 -0
- package/dist/web/assets/skills-market-container--2yomrH9.js.gz +0 -0
- package/dist/web/assets/{stateDiagram-OKZ733FA-C5gL7nOO.js → stateDiagram-OKZ733FA-BUJVFo5h.js} +1 -1
- package/dist/web/assets/stateDiagram-OKZ733FA-BUJVFo5h.js.br +0 -0
- package/dist/web/assets/stateDiagram-OKZ733FA-BUJVFo5h.js.gz +0 -0
- package/dist/web/assets/{stateDiagram-v2-UEYNNEHI-QvfdP3k_.js → stateDiagram-v2-UEYNNEHI-DZH6sQ3n.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-DZH6sQ3n.js.br +4 -0
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-DZH6sQ3n.js.gz +0 -0
- package/dist/web/assets/{swimlanesDiagram-ULZ7WXOC-CaCw1cJg.js → swimlanesDiagram-ULZ7WXOC-BbRbJrCo.js} +1 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-BbRbJrCo.js.br +0 -0
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-BbRbJrCo.js.gz +0 -0
- package/dist/web/assets/{third-party-marketplace-pane-D98JmIr4.js → third-party-marketplace-pane-B8mrwncM.js} +1 -1
- package/dist/web/assets/third-party-marketplace-pane-B8mrwncM.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-B8mrwncM.js.gz +0 -0
- package/dist/web/assets/{timeline-definition-Z64GVDOM-DJi8dcVA.js → timeline-definition-Z64GVDOM-CyaFUBPU.js} +1 -1
- package/dist/web/assets/timeline-definition-Z64GVDOM-CyaFUBPU.js.br +0 -0
- package/dist/web/assets/timeline-definition-Z64GVDOM-CyaFUBPU.js.gz +0 -0
- package/dist/web/assets/{vennDiagram-T6HMQDX7-CrKTcaED.js → vennDiagram-T6HMQDX7-D2V-UUrU.js} +1 -1
- package/dist/web/assets/vennDiagram-T6HMQDX7-D2V-UUrU.js.br +0 -0
- package/dist/web/assets/{vennDiagram-T6HMQDX7-CrKTcaED.js.gz → vennDiagram-T6HMQDX7-D2V-UUrU.js.gz} +0 -0
- package/dist/web/assets/{wardleyDiagram-T6FBY63Y-bLfKjN8C.js → wardleyDiagram-T6FBY63Y-BrvOdgtd.js} +1 -1
- package/dist/web/assets/wardleyDiagram-T6FBY63Y-BrvOdgtd.js.br +0 -0
- package/dist/web/assets/wardleyDiagram-T6FBY63Y-BrvOdgtd.js.gz +0 -0
- package/dist/web/assets/{workbench-inspector-changes-DYK3o-JB.js → workbench-inspector-changes-B4aWIRfS.js} +1 -1
- package/dist/web/assets/workbench-inspector-changes-B4aWIRfS.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-B4aWIRfS.js.gz +0 -0
- package/dist/web/assets/{workbench-pet-canvas-UNLOz4Hj.js → workbench-pet-canvas-Cn4RQA28.js} +1 -1
- package/dist/web/assets/workbench-pet-canvas-Cn4RQA28.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-Cn4RQA28.js.gz +0 -0
- package/dist/web/assets/{workbench-shell-dY_e5m74.js → workbench-shell-CfrE67rt.js} +4 -4
- package/dist/web/assets/workbench-shell-CfrE67rt.js.br +0 -0
- package/dist/web/assets/workbench-shell-CfrE67rt.js.gz +0 -0
- package/dist/web/assets/{xychartDiagram-ELKLHX3M-Cx1crMso.js → xychartDiagram-ELKLHX3M-BCQllPKr.js} +1 -1
- package/dist/web/assets/xychartDiagram-ELKLHX3M-BCQllPKr.js.br +0 -0
- package/dist/web/assets/xychartDiagram-ELKLHX3M-BCQllPKr.js.gz +0 -0
- package/dist/web/index.html +3 -3
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +2 -2
- package/dist/web/assets/abnfDiagram-N423BO3Z-B5zsWXWU.js.br +0 -0
- package/dist/web/assets/abnfDiagram-N423BO3Z-B5zsWXWU.js.gz +0 -0
- package/dist/web/assets/agent-settings-panel-D0fbmF3P.js +0 -1
- package/dist/web/assets/agent-settings-panel-D0fbmF3P.js.br +0 -0
- package/dist/web/assets/agent-settings-panel-D0fbmF3P.js.gz +0 -0
- package/dist/web/assets/architectureDiagram-T3A2C74G-VAJJokz3.js.br +0 -0
- package/dist/web/assets/architectureDiagram-T3A2C74G-VAJJokz3.js.gz +0 -0
- package/dist/web/assets/attachments-CuciRoPj.js.br +0 -0
- package/dist/web/assets/attachments-CuciRoPj.js.gz +0 -0
- package/dist/web/assets/background-image-picker-D4S9VbWK.js.br +0 -0
- package/dist/web/assets/background-image-picker-D4S9VbWK.js.gz +0 -0
- package/dist/web/assets/chunk-5RXB4S5H-fk5DV184.js.br +0 -0
- package/dist/web/assets/chunk-5RXB4S5H-fk5DV184.js.gz +0 -0
- package/dist/web/assets/chunk-6Q2QTUOP-BOd4EM_k.js.br +0 -0
- package/dist/web/assets/chunk-6Q2QTUOP-BOd4EM_k.js.gz +0 -0
- package/dist/web/assets/chunk-GF5L2VYU-4S3VMyhe.js.br +0 -0
- package/dist/web/assets/chunk-GF5L2VYU-4S3VMyhe.js.gz +0 -0
- package/dist/web/assets/chunk-JQJVKLGR-BwAdww_a.js.br +0 -0
- package/dist/web/assets/chunk-JQJVKLGR-BwAdww_a.js.gz +0 -0
- package/dist/web/assets/classDiagram-JCYQIIEL-CWvbxTV4.js.br +0 -0
- package/dist/web/assets/classDiagram-JCYQIIEL-CWvbxTV4.js.gz +0 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-CWvbxTV4.js.br +0 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-CWvbxTV4.js.gz +0 -0
- package/dist/web/assets/code-highlighter-BjWXy_Iw.js.br +0 -0
- package/dist/web/assets/code-highlighter-BjWXy_Iw.js.gz +0 -0
- package/dist/web/assets/commit-settings-panel-a9GtBcyN.js.br +0 -0
- package/dist/web/assets/commit-settings-panel-a9GtBcyN.js.gz +0 -0
- package/dist/web/assets/cynefinDiagram-MW4NZA55-Ds3L2HYC.js.br +0 -0
- package/dist/web/assets/cynefinDiagram-MW4NZA55-Ds3L2HYC.js.gz +0 -0
- package/dist/web/assets/diagram-7IWD3JNH-oAuqSBBd.js.br +0 -0
- package/dist/web/assets/diagram-7IWD3JNH-oAuqSBBd.js.gz +0 -0
- package/dist/web/assets/diagram-LBJQPF4R-BTr0W5cj.js.br +0 -0
- package/dist/web/assets/diagram-LBJQPF4R-BTr0W5cj.js.gz +0 -0
- package/dist/web/assets/diagram-Q27KOJAE-Xmz7kPoV.js.br +0 -0
- package/dist/web/assets/diagram-Q27KOJAE-Xmz7kPoV.js.gz +0 -0
- package/dist/web/assets/diagram-UB23O5K3-Ccoz8RvZ.js.br +0 -0
- package/dist/web/assets/diagram-UB23O5K3-Ccoz8RvZ.js.gz +0 -0
- package/dist/web/assets/ebnfDiagram-BXEA7PRR-XLCtKL91.js.br +0 -0
- package/dist/web/assets/ebnfDiagram-BXEA7PRR-XLCtKL91.js.gz +0 -0
- package/dist/web/assets/erDiagram-JOGREHBK-S2CHNYGV.js.br +0 -0
- package/dist/web/assets/erDiagram-JOGREHBK-S2CHNYGV.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-F6jB7Qb_.js.br +0 -0
- package/dist/web/assets/file-review-dialog-F6jB7Qb_.js.gz +0 -0
- package/dist/web/assets/flowDiagram-UKHOOZJN-DZbuh7hy.js.br +0 -5
- package/dist/web/assets/flowDiagram-UKHOOZJN-DZbuh7hy.js.gz +0 -0
- package/dist/web/assets/git-commit-review-BT1DisdC.js.br +0 -0
- package/dist/web/assets/git-commit-review-BT1DisdC.js.gz +0 -0
- package/dist/web/assets/git-history-panel-D4wJqH0T.js.br +0 -0
- package/dist/web/assets/git-history-panel-D4wJqH0T.js.gz +0 -0
- package/dist/web/assets/global-search-dialog-B7WhRB5J.js.br +0 -0
- package/dist/web/assets/global-search-dialog-B7WhRB5J.js.gz +0 -0
- package/dist/web/assets/global-settings-about-DF9t5LPK.js.br +0 -0
- package/dist/web/assets/global-settings-about-DF9t5LPK.js.gz +0 -0
- package/dist/web/assets/global-settings-page-t1WBVqHm.js +0 -2
- package/dist/web/assets/global-settings-page-t1WBVqHm.js.br +0 -0
- package/dist/web/assets/global-settings-page-t1WBVqHm.js.gz +0 -0
- package/dist/web/assets/global-settings-pets-D8Grr4dJ.js.br +0 -0
- package/dist/web/assets/global-settings-pets-D8Grr4dJ.js.gz +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-T0waXgH6.js.br +0 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-T0waXgH6.js.gz +0 -0
- package/dist/web/assets/history-task-timeline-BLiCPMY2.js.br +0 -0
- package/dist/web/assets/history-task-timeline-BLiCPMY2.js.gz +0 -0
- package/dist/web/assets/image-preview-DHojYYCu.js.br +0 -0
- package/dist/web/assets/image-preview-DHojYYCu.js.gz +0 -0
- package/dist/web/assets/image-preview-content-bIMPrgXt.js.br +0 -0
- package/dist/web/assets/image-preview-content-bIMPrgXt.js.gz +0 -0
- package/dist/web/assets/index-ukQTBvh0.css +0 -2
- package/dist/web/assets/index-ukQTBvh0.css.br +0 -0
- package/dist/web/assets/index-ukQTBvh0.css.gz +0 -0
- package/dist/web/assets/index-ySw7zE7v.js.br +0 -0
- package/dist/web/assets/index-ySw7zE7v.js.gz +0 -0
- package/dist/web/assets/infoDiagram-6WML65LV-8JSDIKEQ.js.br +0 -0
- package/dist/web/assets/infoDiagram-6WML65LV-8JSDIKEQ.js.gz +0 -0
- package/dist/web/assets/initial-deps-BOjpvLsi.js +0 -1
- package/dist/web/assets/initial-deps-BOjpvLsi.js.br +0 -0
- package/dist/web/assets/initial-deps-BOjpvLsi.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-Bnwd2-z8.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-Bnwd2-z8.js.gz +0 -0
- package/dist/web/assets/ishikawaDiagram-WSZJBQD7-BBsZ0aSy.js.br +0 -0
- package/dist/web/assets/ishikawaDiagram-WSZJBQD7-BBsZ0aSy.js.gz +0 -0
- package/dist/web/assets/kanban-definition-27J2QSJJ-DUC5stHg.js.br +0 -0
- package/dist/web/assets/kanban-definition-27J2QSJJ-DUC5stHg.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-CgZbm6_f.js.br +0 -0
- package/dist/web/assets/lazy-message-response-CgZbm6_f.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-BwR_barH.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-BwR_barH.js.gz +0 -0
- package/dist/web/assets/mermaid-GHXKKRXX-DCtqsNyY.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-DCtqsNyY.js.br +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-DCtqsNyY.js.gz +0 -0
- package/dist/web/assets/message-response-BuAZphla.js.br +0 -0
- package/dist/web/assets/message-response-BuAZphla.js.gz +0 -0
- package/dist/web/assets/mindmap-definition-FAOFIHXS-DGzAA5ft.js.br +0 -0
- package/dist/web/assets/mindmap-definition-FAOFIHXS-DGzAA5ft.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BYlHv1Zw.js +0 -1
- package/dist/web/assets/official-plugins-pane-BYlHv1Zw.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BYlHv1Zw.js.gz +0 -0
- package/dist/web/assets/patch-diff-viewer-BigjXoO6.js.br +0 -0
- package/dist/web/assets/patch-diff-viewer-BigjXoO6.js.gz +0 -0
- package/dist/web/assets/pegDiagram-VL7TDLO6-BfAVCl7E.js.br +0 -0
- package/dist/web/assets/pegDiagram-VL7TDLO6-BfAVCl7E.js.gz +0 -0
- package/dist/web/assets/personalization-settings-panel-D-Gd--Rl.js.br +0 -0
- package/dist/web/assets/personalization-settings-panel-D-Gd--Rl.js.gz +0 -0
- package/dist/web/assets/pieDiagram-7S7Q4E2Y-kgcNar0g.js.br +0 -0
- package/dist/web/assets/pieDiagram-7S7Q4E2Y-kgcNar0g.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-DJCEoy22.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-DJCEoy22.js.gz +0 -0
- package/dist/web/assets/project-source-panel-B_iPZ4Xn.js.br +0 -0
- package/dist/web/assets/project-source-panel-B_iPZ4Xn.js.gz +0 -0
- package/dist/web/assets/prompt-input-BDkiLB2S.js.br +0 -0
- package/dist/web/assets/prompt-input-BDkiLB2S.js.gz +0 -0
- package/dist/web/assets/prompt-reference-token-_srKof11.js.br +0 -0
- package/dist/web/assets/prompt-reference-token-_srKof11.js.gz +0 -0
- package/dist/web/assets/railroadDiagram-AXF67PYL-CmHkSqa8.js.br +0 -0
- package/dist/web/assets/railroadDiagram-AXF67PYL-CmHkSqa8.js.gz +0 -0
- package/dist/web/assets/requirementDiagram-LRYGKXZP-I035gQYY.js.br +0 -0
- package/dist/web/assets/requirementDiagram-LRYGKXZP-I035gQYY.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-BCFLWNkx.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-Q8NazFRD.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-Q8NazFRD.js.gz +0 -0
- package/dist/web/assets/sequenceDiagram-SI44F4Z6-BomGpYgp.js.br +0 -0
- package/dist/web/assets/sequenceDiagram-SI44F4Z6-BomGpYgp.js.gz +0 -0
- package/dist/web/assets/sheet-YYYqH36Y.js.br +0 -0
- package/dist/web/assets/sheet-YYYqH36Y.js.gz +0 -0
- package/dist/web/assets/shiki-bundle-DirQN6eN.js.br +0 -0
- package/dist/web/assets/shiki-bundle-DirQN6eN.js.gz +0 -0
- package/dist/web/assets/skills-market-container-Dra_SRsM.js.br +0 -0
- package/dist/web/assets/skills-market-container-Dra_SRsM.js.gz +0 -0
- package/dist/web/assets/stateDiagram-OKZ733FA-C5gL7nOO.js.br +0 -0
- package/dist/web/assets/stateDiagram-OKZ733FA-C5gL7nOO.js.gz +0 -0
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-QvfdP3k_.js.br +0 -0
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-QvfdP3k_.js.gz +0 -0
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-CaCw1cJg.js.br +0 -0
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-CaCw1cJg.js.gz +0 -0
- package/dist/web/assets/third-party-marketplace-pane-D98JmIr4.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-D98JmIr4.js.gz +0 -0
- package/dist/web/assets/timeline-definition-Z64GVDOM-DJi8dcVA.js.br +0 -0
- package/dist/web/assets/timeline-definition-Z64GVDOM-DJi8dcVA.js.gz +0 -0
- package/dist/web/assets/vennDiagram-T6HMQDX7-CrKTcaED.js.br +0 -0
- package/dist/web/assets/wardleyDiagram-T6FBY63Y-bLfKjN8C.js.br +0 -0
- package/dist/web/assets/wardleyDiagram-T6FBY63Y-bLfKjN8C.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DYK3o-JB.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DYK3o-JB.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-UNLOz4Hj.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-UNLOz4Hj.js.gz +0 -0
- package/dist/web/assets/workbench-shell-dY_e5m74.js.br +0 -0
- package/dist/web/assets/workbench-shell-dY_e5m74.js.gz +0 -0
- package/dist/web/assets/xychartDiagram-ELKLHX3M-Cx1crMso.js.br +0 -0
- package/dist/web/assets/xychartDiagram-ELKLHX3M-Cx1crMso.js.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { value_exports } from './chunk-
|
|
3
|
-
import { require_pino, require_safe_stable_stringify, CodexProtocolMappingError, CodexProviderConnectionError, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError } from './chunk-
|
|
2
|
+
import { value_exports } from './chunk-XUFOQLNM.js';
|
|
3
|
+
import { require_pino, require_safe_stable_stringify, CodexProtocolMappingError, CodexProviderConnectionError, RpcConnectionClosedError, RpcProtocolError, RpcResponseError, RpcTimeoutError } from './chunk-IQDWF7SH.js';
|
|
4
4
|
import { normalizeCustomModelReasoning, WorkbenchPetProviderError, listTaskCatalog, PendingRequestResolutionError, restoreAsyncQuestionAnswers, deleteArchivedTasks, queryCompletedTasks, CompletedTasksQueryError, submitTask, TaskSubmissionError, collectQuestionGroups, formatQuestionAnswers, ProjectTodoError, saveProjectTodo } from './chunk-REIMOLGX.js';
|
|
5
|
-
import { Type, SkillInstallScopeSchema, ScheduledTaskSchema, SubmitTaskResponseSchema, AgentTaskSchema, AsyncQuestionGroupSchema, AnswerAsyncQuestionResultSchema, AgentTurnSchema, DEFAULT_COMMIT_MESSAGE_MODEL, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_FILE_BYTES, AccessStatusResponseSchema, PairAccessRequestSchema, BingWallpaperCatalogSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, AgentMutationErrorSchema, InstallAppUpdateResponseSchema, InstallAppUpdateRequestSchema, EventStreamMetricsResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_TEXT_BYTES, GlobalInstructionsSchema, MemorySettingsSchema, AgentPreferencesSchema, SaveGlobalInstructionsSchema, MemorySettingsUpdateSchema, PersonalizationResetSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, StartOfficialProviderLoginRequestSchema, AgentProviderConnectionMutationResponseSchema, CancelProviderLoginRequestSchema, ConfigureCustomProviderResponseSchema, ConfigureCustomProviderRequestSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetDownloadRequestSchema, ProjectPageSchema, HostFileListingSchema, HostFileQuerySchema, ProjectDirectoryListingSchema, ProjectDirectoryQuerySchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectRootQuerySchema, OpenProjectRequestSchema, ReorderProjectsResponseSchema, ReorderProjectsRequestSchema, AgentSkillPageSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AddProjectResponseSchema, AddProjectRequestSchema, RenameProjectResponseSchema, RenameProjectRequestSchema, RemoveProjectResponseSchema, RemoveProjectRequestSchema, InstalledSkillPageSchema, OfficialPluginPageSchema, OfficialPluginDetailSchema, OfficialPluginInstallResponseSchema, OfficialPluginUninstallResponseSchema, ClawhubSkillPageSchema, ClawhubSkillDetailSchema, ConfiguredMcpServerPageSchema, OpenSkillDirectoryResponseSchema, SetSkillEnabledResponseSchema, SetMcpServerEnabledResponseSchema, SkillInstallResponseSchema, ScheduledTaskPreviewSchema, ScheduledTaskPreviewRequestSchema, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskInputSchema, DeleteScheduledTaskResponseSchema, SetScheduledTaskEnabledRequestSchema, AgentTaskPageSchema, UnsubscribeAgentTaskResponseSchema, AgentTaskSnapshotResponseSchema, AgentMcpServerPageSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, PinAgentTaskResponseSchema, PinAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, ArchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnarchiveAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteAgentTaskRequestSchema, TaskSearchPageSchema, TaskSearchQuerySchema, SearchOccurrencesPageSchema, SearchOccurrencesQuerySchema, StartAgentTaskResponseSchema, StartAgentTaskRequestSchema, StartAgentTurnResponseSchema, StartAgentTurnRequestSchema, SteerAgentTurnResponseSchema, SteerAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, InterruptAgentTurnRequestSchema, ResolvePendingRequestResponseSchema, ResolvePendingRequestRequestSchema, SubmitTaskRequestSchema, AsyncQuestionPageSchema, AnswerAsyncQuestionResponseSchema, AnswerAsyncQuestionRequestSchema, DismissAsyncQuestionsRequestSchema, ProjectTodoPageSchema, ProjectTodoResponseSchema, ProjectTodoDraftSchema, SaveProjectTodoRequestSchema, DeleteProjectTodoResponseSchema, DeleteProjectTodoRequestSchema, AgentQueuedSubmissionListSchema, AddAgentQueuedSubmissionResponseSchema, AddAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentQueuedSubmissionRequestSchema, AgentPromptInputSchema, AgentProviderConnectionRecordSchema, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, CODEXLY_USER_AGENT, CreateProjectDirectoryResponseSchema, CreateProjectDirectoryRequestSchema, isValidProjectDirectoryName, ProjectGitStatusSchema, ProjectGitStatusQuerySchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileDiffQuerySchema, SwitchProjectBranchRequestSchema, CreateProjectBranchRequestSchema, GenerateCommitMessageResponseSchema, GenerateCommitMessageRequestSchema, CommitProjectChangesResponseSchema, CommitProjectChangesRequestSchema, ProjectSourceFileQuerySchema, ProjectFileTreeSchema, ProjectFileTreeQuerySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, StopProjectFileSearchResponseSchema, StopProjectFileSearchRequestSchema, ProjectSourceFileSchema, AgentAttachmentUploadResponseSchema, HostFileKindSchema, ImportHostAttachmentRequestSchema, AgentAttachmentKindSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, ReloadAgentMcpServersResponseSchema, ReloadAgentMcpServersRequestSchema, ReviewAgentTaskResponseSchema, ReviewAgentTaskRequestSchema, CompactAgentTaskResponseSchema, CompactAgentTaskRequestSchema, ForkAgentTaskResponseSchema, ForkAgentTaskRequestSchema, UploadAgentFeedbackResponseSchema, UploadAgentFeedbackRequestSchema, DeleteArchivedTasksResponseSchema, DeleteArchivedTasksRequestSchema, AgentTaskCatalogSchema, TaskCatalogQuerySchema, CompletedTasksPageSchema, CompletedTasksQuerySchema, UpdateTaskSettingsAndDefaultsResponseSchema, UpdateTaskSettingsAndDefaultsRequestSchema, NavigableAgentTaskResponseSchema, OpenAgentTaskAttachmentResponseSchema, OpenAgentTaskAttachmentRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentGoalRequestSchema, ClearAgentGoalResponseSchema, ProjectTodoSchema, AgentMessageAttachmentSchema, ProjectGitWorktreePageSchema, CreateTaskWorktreeResponseSchema, CreateProjectWorktreeRequestSchema, CreateProjectWorktreeResponseSchema, ProjectWorktreeMutationResponseSchema, SwitchProjectWorktreeRequestSchema, RenameProjectFileResponseSchema, RenameProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteProjectFileRequestSchema, MAX_EVENT_BATCH_SIZE } from './chunk-
|
|
5
|
+
import { Type, SkillInstallScopeSchema, ScheduledTaskSchema, SubmitTaskResponseSchema, AgentTaskSchema, AsyncQuestionGroupSchema, AnswerAsyncQuestionResultSchema, AgentTurnSchema, DEFAULT_COMMIT_MESSAGE_MODEL, TEMPORARY_TASK_API_PATH, TEMPORARY_TASK_SCOPE_ID, MAX_AGENT_FILE_BYTES, AccessStatusResponseSchema, PairAccessRequestSchema, BingWallpaperCatalogSchema, HealthResponseSchema, AppInfoResponseSchema, AppUpdateProgressResponseSchema, AgentMutationErrorSchema, InstallAppUpdateResponseSchema, InstallAppUpdateRequestSchema, EventStreamMetricsResponseSchema, AgentCapabilitiesSchema, AgentModelPageSchema, AgentGlobalSettingsResponseSchema, AgentGlobalSettingsSchema, MAX_AGENT_IMAGE_BYTES, MAX_AGENT_TEXT_BYTES, GlobalInstructionsSchema, MemorySettingsSchema, AgentPreferencesSchema, SaveGlobalInstructionsSchema, MemorySettingsUpdateSchema, PersonalizationResetSchema, HistoryCompressionResultSchema, AgentProviderConnectionStatusSchema, StartOfficialProviderLoginResponseSchema, StartOfficialProviderLoginRequestSchema, AgentProviderConnectionMutationResponseSchema, CancelProviderLoginRequestSchema, ConfigureCustomProviderResponseSchema, ConfigureCustomProviderRequestSchema, WorkbenchPetCatalogResponseSchema, WorkbenchPetDownloadResponseSchema, WorkbenchPetDownloadRequestSchema, ProjectPageSchema, HostFileListingSchema, HostFileQuerySchema, ProjectDirectoryListingSchema, ProjectDirectoryQuerySchema, ProjectOpenCapabilitiesResponseSchema, OpenProjectResponseSchema, ProjectRootQuerySchema, OpenProjectRequestSchema, ReorderProjectsResponseSchema, ReorderProjectsRequestSchema, AgentSkillPageSchema, AgentProjectDefaultsResponseSchema, AgentProjectDefaultsSchema, AddProjectResponseSchema, AddProjectRequestSchema, RenameProjectResponseSchema, RenameProjectRequestSchema, RemoveProjectResponseSchema, RemoveProjectRequestSchema, PluginReconcileResultSchema, InstalledSkillPageSchema, OfficialPluginPageSchema, OfficialPluginDetailSchema, OfficialPluginInstallResponseSchema, OfficialPluginUninstallResponseSchema, ClawhubSkillPageSchema, ClawhubSkillDetailSchema, ConfiguredMcpServerPageSchema, OpenSkillDirectoryResponseSchema, SetSkillEnabledResponseSchema, SetMcpServerEnabledResponseSchema, SkillInstallResponseSchema, ScheduledTaskPreviewSchema, ScheduledTaskPreviewRequestSchema, ScheduledTaskPageSchema, ScheduledTaskMutationResponseSchema, ScheduledTaskInputSchema, DeleteScheduledTaskResponseSchema, SetScheduledTaskEnabledRequestSchema, AgentTaskPageSchema, UnsubscribeAgentTaskResponseSchema, AgentTaskSnapshotResponseSchema, AgentMcpServerPageSchema, AgentBackgroundTerminalPageSchema, TerminateAgentBackgroundTerminalResponseSchema, PinAgentTaskResponseSchema, PinAgentTaskRequestSchema, RenameAgentTaskResponseSchema, RenameAgentTaskRequestSchema, ArchiveAgentTaskResponseSchema, ArchiveAgentTaskRequestSchema, UnarchiveAgentTaskResponseSchema, UnarchiveAgentTaskRequestSchema, DeleteAgentTaskResponseSchema, DeleteAgentTaskRequestSchema, TaskSearchPageSchema, TaskSearchQuerySchema, SearchOccurrencesPageSchema, SearchOccurrencesQuerySchema, StartAgentTaskResponseSchema, StartAgentTaskRequestSchema, StartAgentTurnResponseSchema, StartAgentTurnRequestSchema, SteerAgentTurnResponseSchema, SteerAgentTurnRequestSchema, InterruptAgentTurnResponseSchema, InterruptAgentTurnRequestSchema, ResolvePendingRequestResponseSchema, ResolvePendingRequestRequestSchema, SubmitTaskRequestSchema, AsyncQuestionPageSchema, AnswerAsyncQuestionResponseSchema, AnswerAsyncQuestionRequestSchema, DismissAsyncQuestionsRequestSchema, ProjectTodoPageSchema, ProjectTodoResponseSchema, ProjectTodoDraftSchema, SaveProjectTodoRequestSchema, DeleteProjectTodoResponseSchema, DeleteProjectTodoRequestSchema, AgentQueuedSubmissionListSchema, AddAgentQueuedSubmissionResponseSchema, AddAgentQueuedSubmissionRequestSchema, UpdateAgentQueuedSubmissionResponseSchema, UpdateAgentQueuedSubmissionRequestSchema, DeleteAgentQueuedSubmissionResponseSchema, ReorderAgentQueuedSubmissionsResponseSchema, ReorderAgentQueuedSubmissionsRequestSchema, StartAgentQueuedSubmissionResponseSchema, StartAgentQueuedSubmissionRequestSchema, AgentPromptInputSchema, AgentProviderConnectionRecordSchema, MAX_AGENT_IMAGES, MAX_AGENT_IMAGE_TOTAL_BYTES, MAX_AGENT_FILE_TOTAL_BYTES, CODEXLY_USER_AGENT, CreateProjectDirectoryResponseSchema, CreateProjectDirectoryRequestSchema, isValidProjectDirectoryName, ProjectGitStatusSchema, ProjectGitStatusQuerySchema, ProjectGitHistoryPageSchema, ProjectGitHistoryQuerySchema, ProjectGitCommitFilesPageSchema, ProjectGitCommitFilesQuerySchema, ProjectGitCommitFileDiffSchema, ProjectGitCommitFileDiffQuerySchema, SwitchProjectBranchRequestSchema, CreateProjectBranchRequestSchema, GenerateCommitMessageResponseSchema, GenerateCommitMessageRequestSchema, CommitProjectChangesResponseSchema, CommitProjectChangesRequestSchema, ProjectSourceFileQuerySchema, ProjectFileTreeSchema, ProjectFileTreeQuerySchema, ProjectFileSearchPageSchema, ProjectFileSearchQuerySchema, StopProjectFileSearchResponseSchema, StopProjectFileSearchRequestSchema, ProjectSourceFileSchema, AgentAttachmentUploadResponseSchema, HostFileKindSchema, ImportHostAttachmentRequestSchema, AgentAttachmentKindSchema, AgentTaskSettingsResponseSchema, AgentTaskSettingsSchema, ReloadAgentMcpServersResponseSchema, ReloadAgentMcpServersRequestSchema, ReviewAgentTaskResponseSchema, ReviewAgentTaskRequestSchema, CompactAgentTaskResponseSchema, CompactAgentTaskRequestSchema, ForkAgentTaskResponseSchema, ForkAgentTaskRequestSchema, UploadAgentFeedbackResponseSchema, UploadAgentFeedbackRequestSchema, DeleteArchivedTasksResponseSchema, DeleteArchivedTasksRequestSchema, AgentTaskCatalogSchema, TaskCatalogQuerySchema, CompletedTasksPageSchema, CompletedTasksQuerySchema, UpdateTaskSettingsAndDefaultsResponseSchema, UpdateTaskSettingsAndDefaultsRequestSchema, NavigableAgentTaskResponseSchema, OpenAgentTaskAttachmentResponseSchema, OpenAgentTaskAttachmentRequestSchema, UpdateAgentGoalResponseSchema, UpdateAgentGoalRequestSchema, ClearAgentGoalResponseSchema, ProjectTodoSchema, AgentMessageAttachmentSchema, ProjectGitWorktreePageSchema, CreateTaskWorktreeResponseSchema, CreateProjectWorktreeRequestSchema, CreateProjectWorktreeResponseSchema, ProjectWorktreeMutationResponseSchema, SwitchProjectWorktreeRequestSchema, RenameProjectFileResponseSchema, RenameProjectFileRequestSchema, DeleteProjectFileResponseSchema, DeleteProjectFileRequestSchema, MAX_EVENT_BATCH_SIZE } from './chunk-XAI75BER.js';
|
|
6
6
|
import { __commonJS, __require, __toESM } from './chunk-K6J42667.js';
|
|
7
7
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
8
8
|
import { randomBytes, createHash, timingSafeEqual, randomUUID } from 'crypto';
|
|
@@ -1460,9 +1460,9 @@ var require_avvio = __commonJS({
|
|
|
1460
1460
|
}
|
|
1461
1461
|
});
|
|
1462
1462
|
|
|
1463
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
1463
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/symbols.js
|
|
1464
1464
|
var require_symbols2 = __commonJS({
|
|
1465
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
1465
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/symbols.js"(exports, module) {
|
|
1466
1466
|
var keys = {
|
|
1467
1467
|
kAvvioBoot: /* @__PURE__ */ Symbol("fastify.avvioBoot"),
|
|
1468
1468
|
kChildren: /* @__PURE__ */ Symbol("fastify.children"),
|
|
@@ -1633,9 +1633,9 @@ var require_process_warning = __commonJS({
|
|
|
1633
1633
|
}
|
|
1634
1634
|
});
|
|
1635
1635
|
|
|
1636
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
1636
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/warnings.js
|
|
1637
1637
|
var require_warnings = __commonJS({
|
|
1638
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
1638
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/warnings.js"(exports, module) {
|
|
1639
1639
|
var { createWarning } = require_process_warning();
|
|
1640
1640
|
var FSTWRN001 = createWarning({
|
|
1641
1641
|
name: "FastifyWarning",
|
|
@@ -1661,6 +1661,12 @@ var require_warnings = __commonJS({
|
|
|
1661
1661
|
message: 'You are using /%s/ Content-Type which may be vulnerable to CORS attack. Please make sure your RegExp start with "^" or include ";?" to proper detection of the essence MIME type.',
|
|
1662
1662
|
unlimited: true
|
|
1663
1663
|
});
|
|
1664
|
+
var FSTSEC002 = createWarning({
|
|
1665
|
+
name: "FastifySecurity",
|
|
1666
|
+
code: "FSTSEC002",
|
|
1667
|
+
message: "The headers schema for %s: %s references an external $ref (%s) that is not case-normalized. Header names in the referenced schema keep their original case and will not match the lowercased request headers, so case-insensitive assertions such as required and dependencies may not apply. Inline the header schema instead of referencing it with an external $ref.",
|
|
1668
|
+
unlimited: true
|
|
1669
|
+
});
|
|
1664
1670
|
var FSTDEP022 = createWarning({
|
|
1665
1671
|
name: "FastifyWarning",
|
|
1666
1672
|
code: "FSTDEP022",
|
|
@@ -1690,6 +1696,7 @@ var require_warnings = __commonJS({
|
|
|
1690
1696
|
FSTWRN003,
|
|
1691
1697
|
FSTWRN004,
|
|
1692
1698
|
FSTSEC001,
|
|
1699
|
+
FSTSEC002,
|
|
1693
1700
|
FSTDEP022,
|
|
1694
1701
|
FSTDEP023,
|
|
1695
1702
|
FSTDEP024,
|
|
@@ -1698,9 +1705,9 @@ var require_warnings = __commonJS({
|
|
|
1698
1705
|
}
|
|
1699
1706
|
});
|
|
1700
1707
|
|
|
1701
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
1708
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/errors.js
|
|
1702
1709
|
var require_errors2 = __commonJS({
|
|
1703
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
1710
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/errors.js"(exports, module) {
|
|
1704
1711
|
var createError = require_error();
|
|
1705
1712
|
var codes = {
|
|
1706
1713
|
/**
|
|
@@ -2229,9 +2236,9 @@ var require_errors2 = __commonJS({
|
|
|
2229
2236
|
}
|
|
2230
2237
|
});
|
|
2231
2238
|
|
|
2232
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2239
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/hooks.js
|
|
2233
2240
|
var require_hooks = __commonJS({
|
|
2234
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2241
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/hooks.js"(exports, module) {
|
|
2235
2242
|
var applicationHooks = [
|
|
2236
2243
|
"onRoute",
|
|
2237
2244
|
"onRegister",
|
|
@@ -2593,9 +2600,9 @@ var require_hooks = __commonJS({
|
|
|
2593
2600
|
}
|
|
2594
2601
|
});
|
|
2595
2602
|
|
|
2596
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2603
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/noop-set.js
|
|
2597
2604
|
var require_noop_set = __commonJS({
|
|
2598
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2605
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/noop-set.js"(exports, module) {
|
|
2599
2606
|
module.exports = function noopSet() {
|
|
2600
2607
|
return {
|
|
2601
2608
|
[Symbol.iterator]: function* () {
|
|
@@ -2612,9 +2619,9 @@ var require_noop_set = __commonJS({
|
|
|
2612
2619
|
}
|
|
2613
2620
|
});
|
|
2614
2621
|
|
|
2615
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2622
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/promise.js
|
|
2616
2623
|
var require_promise = __commonJS({
|
|
2617
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2624
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/promise.js"(exports, module) {
|
|
2618
2625
|
var { kTestInternals } = require_symbols2();
|
|
2619
2626
|
function withResolvers() {
|
|
2620
2627
|
let res, rej;
|
|
@@ -2635,9 +2642,9 @@ var require_promise = __commonJS({
|
|
|
2635
2642
|
}
|
|
2636
2643
|
});
|
|
2637
2644
|
|
|
2638
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2645
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/server.js
|
|
2639
2646
|
var require_server = __commonJS({
|
|
2640
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2647
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/server.js"(exports, module) {
|
|
2641
2648
|
var http = __require("http");
|
|
2642
2649
|
var https = __require("https");
|
|
2643
2650
|
var http2 = __require("http2");
|
|
@@ -2962,9 +2969,9 @@ var require_server = __commonJS({
|
|
|
2962
2969
|
}
|
|
2963
2970
|
});
|
|
2964
2971
|
|
|
2965
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2972
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-status.js
|
|
2966
2973
|
var require_error_status = __commonJS({
|
|
2967
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2974
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-status.js"(exports, module) {
|
|
2968
2975
|
var {
|
|
2969
2976
|
kReplyHasStatusCode
|
|
2970
2977
|
} = require_symbols2();
|
|
@@ -2978,9 +2985,9 @@ var require_error_status = __commonJS({
|
|
|
2978
2985
|
}
|
|
2979
2986
|
});
|
|
2980
2987
|
|
|
2981
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
2988
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/wrap-thenable.js
|
|
2982
2989
|
var require_wrap_thenable = __commonJS({
|
|
2983
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
2990
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/wrap-thenable.js"(exports, module) {
|
|
2984
2991
|
var {
|
|
2985
2992
|
kReplyIsError,
|
|
2986
2993
|
kReplyHijacked
|
|
@@ -3040,9 +3047,9 @@ var require_wrap_thenable = __commonJS({
|
|
|
3040
3047
|
}
|
|
3041
3048
|
});
|
|
3042
3049
|
|
|
3043
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
3050
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/validation.js
|
|
3044
3051
|
var require_validation = __commonJS({
|
|
3045
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
3052
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/validation.js"(exports, module) {
|
|
3046
3053
|
var {
|
|
3047
3054
|
kSchemaHeaders: headersSchema,
|
|
3048
3055
|
kSchemaParams: paramsSchema,
|
|
@@ -3054,7 +3061,7 @@ var require_validation = __commonJS({
|
|
|
3054
3061
|
var {
|
|
3055
3062
|
FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX
|
|
3056
3063
|
} = require_errors2();
|
|
3057
|
-
var { FSTWRN001 } = require_warnings();
|
|
3064
|
+
var { FSTWRN001, FSTSEC002 } = require_warnings();
|
|
3058
3065
|
function compileSchemasForSerialization(context, compile) {
|
|
3059
3066
|
if (!context.schema || !context.schema.response) {
|
|
3060
3067
|
return;
|
|
@@ -3090,6 +3097,135 @@ var require_validation = __commonJS({
|
|
|
3090
3097
|
return acc;
|
|
3091
3098
|
}, {});
|
|
3092
3099
|
}
|
|
3100
|
+
function lowerCaseHeadersSchema(schema) {
|
|
3101
|
+
if (Array.isArray(schema)) {
|
|
3102
|
+
return schema.map(lowerCaseHeadersSchema);
|
|
3103
|
+
}
|
|
3104
|
+
if (schema === null || typeof schema !== "object") {
|
|
3105
|
+
return schema;
|
|
3106
|
+
}
|
|
3107
|
+
const result = {};
|
|
3108
|
+
for (const key of Object.keys(schema)) {
|
|
3109
|
+
const value = schema[key];
|
|
3110
|
+
switch (key) {
|
|
3111
|
+
case "properties": {
|
|
3112
|
+
if (value === null || typeof value !== "object") {
|
|
3113
|
+
result.properties = value;
|
|
3114
|
+
break;
|
|
3115
|
+
}
|
|
3116
|
+
const normalized = {};
|
|
3117
|
+
for (const prop of Object.keys(value)) {
|
|
3118
|
+
normalized[prop.toLowerCase()] = lowerCaseHeadersSchema(value[prop]);
|
|
3119
|
+
}
|
|
3120
|
+
result.properties = normalized;
|
|
3121
|
+
break;
|
|
3122
|
+
}
|
|
3123
|
+
case "required":
|
|
3124
|
+
result.required = Array.isArray(value) ? value.map((name) => name.toLowerCase()) : value;
|
|
3125
|
+
break;
|
|
3126
|
+
case "dependencies": {
|
|
3127
|
+
if (value === null || typeof value !== "object") {
|
|
3128
|
+
result.dependencies = value;
|
|
3129
|
+
break;
|
|
3130
|
+
}
|
|
3131
|
+
const normalized = {};
|
|
3132
|
+
for (const dep of Object.keys(value)) {
|
|
3133
|
+
const depValue = value[dep];
|
|
3134
|
+
if (Array.isArray(depValue)) {
|
|
3135
|
+
normalized[dep.toLowerCase()] = depValue.map((name) => name.toLowerCase());
|
|
3136
|
+
} else {
|
|
3137
|
+
normalized[dep.toLowerCase()] = lowerCaseHeadersSchema(depValue);
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
result.dependencies = normalized;
|
|
3141
|
+
break;
|
|
3142
|
+
}
|
|
3143
|
+
case "dependentSchemas": {
|
|
3144
|
+
if (value === null || typeof value !== "object") {
|
|
3145
|
+
result.dependentSchemas = value;
|
|
3146
|
+
break;
|
|
3147
|
+
}
|
|
3148
|
+
const normalized = {};
|
|
3149
|
+
for (const dep of Object.keys(value)) {
|
|
3150
|
+
normalized[dep.toLowerCase()] = lowerCaseHeadersSchema(value[dep]);
|
|
3151
|
+
}
|
|
3152
|
+
result.dependentSchemas = normalized;
|
|
3153
|
+
break;
|
|
3154
|
+
}
|
|
3155
|
+
case "dependentRequired": {
|
|
3156
|
+
if (value === null || typeof value !== "object") {
|
|
3157
|
+
result.dependentRequired = value;
|
|
3158
|
+
break;
|
|
3159
|
+
}
|
|
3160
|
+
const normalized = {};
|
|
3161
|
+
for (const dep of Object.keys(value)) {
|
|
3162
|
+
normalized[dep.toLowerCase()] = value[dep].map((name) => name.toLowerCase());
|
|
3163
|
+
}
|
|
3164
|
+
result.dependentRequired = normalized;
|
|
3165
|
+
break;
|
|
3166
|
+
}
|
|
3167
|
+
// Arrays of subschemas (`allOf`/`anyOf`/`oneOf`) or a single subschema
|
|
3168
|
+
// (`not`/`if`/`then`/`else`/`items`/`additionalItems`/...). `lowerCaseHeadersSchema`
|
|
3169
|
+
// handles arrays, objects and booleans, so recursing here covers them all.
|
|
3170
|
+
case "allOf":
|
|
3171
|
+
case "anyOf":
|
|
3172
|
+
case "oneOf":
|
|
3173
|
+
case "not":
|
|
3174
|
+
case "if":
|
|
3175
|
+
case "then":
|
|
3176
|
+
case "else":
|
|
3177
|
+
case "items":
|
|
3178
|
+
case "additionalItems":
|
|
3179
|
+
case "additionalProperties":
|
|
3180
|
+
case "unevaluatedItems":
|
|
3181
|
+
case "unevaluatedProperties":
|
|
3182
|
+
case "contains":
|
|
3183
|
+
case "propertyNames":
|
|
3184
|
+
case "contentSchema":
|
|
3185
|
+
result[key] = lowerCaseHeadersSchema(value);
|
|
3186
|
+
break;
|
|
3187
|
+
// Maps of subschemas whose keys are not header names (definition names,
|
|
3188
|
+
// regex patterns): keep the keys, normalize the subschema values.
|
|
3189
|
+
case "definitions":
|
|
3190
|
+
case "$defs":
|
|
3191
|
+
case "patternProperties": {
|
|
3192
|
+
if (value === null || typeof value !== "object") {
|
|
3193
|
+
result[key] = value;
|
|
3194
|
+
break;
|
|
3195
|
+
}
|
|
3196
|
+
const normalized = {};
|
|
3197
|
+
for (const k2 of Object.keys(value)) {
|
|
3198
|
+
normalized[k2] = lowerCaseHeadersSchema(value[k2]);
|
|
3199
|
+
}
|
|
3200
|
+
result[key] = normalized;
|
|
3201
|
+
break;
|
|
3202
|
+
}
|
|
3203
|
+
default:
|
|
3204
|
+
result[key] = value;
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
return result;
|
|
3208
|
+
}
|
|
3209
|
+
function findExternalHeaderRef(schema) {
|
|
3210
|
+
if (Array.isArray(schema)) {
|
|
3211
|
+
for (const item of schema) {
|
|
3212
|
+
const ref = findExternalHeaderRef(item);
|
|
3213
|
+
if (ref !== void 0) return ref;
|
|
3214
|
+
}
|
|
3215
|
+
return void 0;
|
|
3216
|
+
}
|
|
3217
|
+
if (schema === null || typeof schema !== "object") {
|
|
3218
|
+
return void 0;
|
|
3219
|
+
}
|
|
3220
|
+
if (typeof schema.$ref === "string" && schema.$ref[0] !== "#") {
|
|
3221
|
+
return schema.$ref;
|
|
3222
|
+
}
|
|
3223
|
+
for (const key of Object.keys(schema)) {
|
|
3224
|
+
const ref = findExternalHeaderRef(schema[key]);
|
|
3225
|
+
if (ref !== void 0) return ref;
|
|
3226
|
+
}
|
|
3227
|
+
return void 0;
|
|
3228
|
+
}
|
|
3093
3229
|
function compileSchemasForValidation(context, compile, isCustom) {
|
|
3094
3230
|
const { schema } = context;
|
|
3095
3231
|
if (!schema) {
|
|
@@ -3097,28 +3233,22 @@ var require_validation = __commonJS({
|
|
|
3097
3233
|
}
|
|
3098
3234
|
const { method, url } = context.config || {};
|
|
3099
3235
|
const headers = schema.headers;
|
|
3100
|
-
if (headers
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
if (headers.properties) {
|
|
3111
|
-
headersSchemaLowerCase.properties = {};
|
|
3112
|
-
Object.keys(headers.properties).forEach((k2) => {
|
|
3113
|
-
headersSchemaLowerCase.properties[k2.toLowerCase()] = headers.properties[k2];
|
|
3114
|
-
});
|
|
3236
|
+
if (headers !== void 0) {
|
|
3237
|
+
if (isCustom || typeof headers !== "object" || headers === null || Object.getPrototypeOf(headers) !== Object.prototype) {
|
|
3238
|
+
context[headersSchema] = compile({ schema: headers, method, url, httpPart: "headers" });
|
|
3239
|
+
} else {
|
|
3240
|
+
const headersSchemaLowerCase = lowerCaseHeadersSchema(headers);
|
|
3241
|
+
const externalRef = findExternalHeaderRef(headers);
|
|
3242
|
+
if (externalRef !== void 0) {
|
|
3243
|
+
FSTSEC002(method, url, externalRef);
|
|
3244
|
+
}
|
|
3245
|
+
context[headersSchema] = compile({ schema: headersSchemaLowerCase, method, url, httpPart: "headers" });
|
|
3115
3246
|
}
|
|
3116
|
-
context[headersSchema] = compile({ schema: headersSchemaLowerCase, method, url, httpPart: "headers" });
|
|
3117
3247
|
} else if (Object.hasOwn(schema, "headers")) {
|
|
3118
3248
|
FSTWRN001("headers", method, url);
|
|
3119
3249
|
}
|
|
3120
|
-
if (schema.body) {
|
|
3121
|
-
const contentProperty = schema.body.content;
|
|
3250
|
+
if (schema.body !== void 0) {
|
|
3251
|
+
const contentProperty = schema.body !== null && typeof schema.body === "object" ? schema.body.content : void 0;
|
|
3122
3252
|
if (contentProperty) {
|
|
3123
3253
|
const contentTypeSchemas = {};
|
|
3124
3254
|
for (const contentType of Object.keys(contentProperty)) {
|
|
@@ -3132,29 +3262,30 @@ var require_validation = __commonJS({
|
|
|
3132
3262
|
} else if (Object.hasOwn(schema, "body")) {
|
|
3133
3263
|
FSTWRN001("body", method, url);
|
|
3134
3264
|
}
|
|
3135
|
-
if (schema.querystring) {
|
|
3265
|
+
if (schema.querystring !== void 0) {
|
|
3136
3266
|
context[querystringSchema] = compile({ schema: schema.querystring, method, url, httpPart: "querystring" });
|
|
3137
3267
|
} else if (Object.hasOwn(schema, "querystring")) {
|
|
3138
3268
|
FSTWRN001("querystring", method, url);
|
|
3139
3269
|
}
|
|
3140
|
-
if (schema.params) {
|
|
3270
|
+
if (schema.params !== void 0) {
|
|
3141
3271
|
context[paramsSchema] = compile({ schema: schema.params, method, url, httpPart: "params" });
|
|
3142
3272
|
} else if (Object.hasOwn(schema, "params")) {
|
|
3143
3273
|
FSTWRN001("params", method, url);
|
|
3144
3274
|
}
|
|
3145
3275
|
}
|
|
3146
3276
|
function validateParam(validatorFunction, request2, paramName) {
|
|
3147
|
-
|
|
3277
|
+
if (validatorFunction == null) return false;
|
|
3278
|
+
const value = request2[paramName];
|
|
3148
3279
|
let ret;
|
|
3149
3280
|
try {
|
|
3150
|
-
const data =
|
|
3151
|
-
if (validatorFunction
|
|
3281
|
+
const data = value === void 0 ? null : value;
|
|
3282
|
+
if (validatorFunction.schemaEnv) {
|
|
3152
3283
|
ret = validatorFunction(data, {
|
|
3153
3284
|
parentData: request2,
|
|
3154
3285
|
parentDataProperty: paramName
|
|
3155
3286
|
});
|
|
3156
3287
|
} else {
|
|
3157
|
-
ret = validatorFunction
|
|
3288
|
+
ret = validatorFunction(data);
|
|
3158
3289
|
}
|
|
3159
3290
|
} catch (err2) {
|
|
3160
3291
|
err2.statusCode = 500;
|
|
@@ -3162,7 +3293,7 @@ var require_validation = __commonJS({
|
|
|
3162
3293
|
}
|
|
3163
3294
|
if (ret && typeof ret.then === "function") {
|
|
3164
3295
|
return ret.then((res) => {
|
|
3165
|
-
return
|
|
3296
|
+
return res === false ? validatorFunction.errors : false;
|
|
3166
3297
|
}).catch((err2) => {
|
|
3167
3298
|
return err2;
|
|
3168
3299
|
});
|
|
@@ -3946,9 +4077,9 @@ var require_toad_cache = __commonJS({
|
|
|
3946
4077
|
}
|
|
3947
4078
|
});
|
|
3948
4079
|
|
|
3949
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
4080
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type.js
|
|
3950
4081
|
var require_content_type = __commonJS({
|
|
3951
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
4082
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type.js"(exports, module) {
|
|
3952
4083
|
var { LruMap: Lru } = require_toad_cache();
|
|
3953
4084
|
var keyValuePairsReg = /(?:^|;)\s*([\w!#$%&'*+.^`|~-]+)=("(?:[\t\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\t\u0020-\u00ff])*"|[\w!#$%&'*+.^`|~-]+)/gu;
|
|
3954
4085
|
var quotedPairReg = /\\([\t\u0020-\u00ff])/gu;
|
|
@@ -4073,9 +4204,9 @@ var require_content_type = __commonJS({
|
|
|
4073
4204
|
}
|
|
4074
4205
|
});
|
|
4075
4206
|
|
|
4076
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
4207
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/handle-request.js
|
|
4077
4208
|
var require_handle_request = __commonJS({
|
|
4078
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
4209
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/handle-request.js"(exports, module) {
|
|
4079
4210
|
var diagnostics = __require("diagnostics_channel");
|
|
4080
4211
|
var wrapThenable = require_wrap_thenable();
|
|
4081
4212
|
var { validate: validateSchema } = require_validation();
|
|
@@ -4261,9 +4392,9 @@ var require_handle_request = __commonJS({
|
|
|
4261
4392
|
}
|
|
4262
4393
|
});
|
|
4263
4394
|
|
|
4264
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
4395
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/config-validator.js
|
|
4265
4396
|
var require_config_validator = __commonJS({
|
|
4266
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
4397
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/config-validator.js"(exports, module) {
|
|
4267
4398
|
module.exports = validate10;
|
|
4268
4399
|
module.exports.default = validate10;
|
|
4269
4400
|
var schema11 = { "properties": { "connectionTimeout": { "type": "integer", "default": 0 }, "keepAliveTimeout": { "type": "integer", "default": 72e3 }, "forceCloseConnections": { "oneOf": [{ "type": "string", "pattern": "idle" }, { "type": "boolean" }] }, "maxRequestsPerSocket": { "type": "integer", "default": 0, "nullable": true }, "requestTimeout": { "type": "integer", "default": 0 }, "handlerTimeout": { "type": "integer", "default": 0 }, "bodyLimit": { "type": "integer", "default": 1048576 }, "caseSensitive": { "type": "boolean", "default": true }, "allowUnsafeRegex": { "type": "boolean", "default": false }, "http2": { "type": "boolean" }, "https": { "if": { "not": { "oneOf": [{ "type": "boolean" }, { "type": "null" }, { "type": "object", "additionalProperties": false, "required": ["allowHTTP1"], "properties": { "allowHTTP1": { "type": "boolean" } } }] } }, "then": { "setDefaultValue": true } }, "ignoreTrailingSlash": { "type": "boolean", "default": false }, "ignoreDuplicateSlashes": { "type": "boolean", "default": false }, "disableRequestLogging": { "default": false }, "maxParamLength": { "type": "integer", "default": 100 }, "onProtoPoisoning": { "type": "string", "default": "error" }, "onConstructorPoisoning": { "type": "string", "default": "error" }, "pluginTimeout": { "type": "integer", "default": 1e4 }, "requestIdHeader": { "anyOf": [{ "type": "boolean" }, { "type": "string" }], "default": false }, "requestIdLogLabel": { "type": "string", "default": "reqId" }, "http2SessionTimeout": { "type": "integer", "default": 72e3 }, "exposeHeadRoutes": { "type": "boolean", "default": true }, "useSemicolonDelimiter": { "type": "boolean", "default": false }, "routerOptions": { "type": "object", "additionalProperties": true, "properties": { "ignoreTrailingSlash": { "type": "boolean", "default": false }, "ignoreDuplicateSlashes": { "type": "boolean", "default": false }, "maxParamLength": { "type": "integer", "default": 100 }, "allowUnsafeRegex": { "type": "boolean", "default": false }, "useSemicolonDelimiter": { "type": "boolean", "default": false } } }, "constraints": { "type": "object", "additionalProperties": { "type": "object", "required": ["name", "storage", "validate", "deriveConstraint"], "additionalProperties": true, "properties": { "name": { "type": "string" }, "storage": {}, "validate": {}, "deriveConstraint": {} } } } } };
|
|
@@ -5604,9 +5735,9 @@ var require_rfdc = __commonJS({
|
|
|
5604
5735
|
}
|
|
5605
5736
|
});
|
|
5606
5737
|
|
|
5607
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
5738
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/initial-config-validation.js
|
|
5608
5739
|
var require_initial_config_validation = __commonJS({
|
|
5609
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
5740
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/initial-config-validation.js"(exports, module) {
|
|
5610
5741
|
var validate = require_config_validator();
|
|
5611
5742
|
var deepClone = require_rfdc()({ circles: true, proto: false });
|
|
5612
5743
|
var { FST_ERR_INIT_OPTS_INVALID } = require_errors2();
|
|
@@ -5636,9 +5767,9 @@ var require_initial_config_validation = __commonJS({
|
|
|
5636
5767
|
}
|
|
5637
5768
|
});
|
|
5638
5769
|
|
|
5639
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
5770
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/log-controller.js
|
|
5640
5771
|
var require_log_controller = __commonJS({
|
|
5641
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
5772
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/log-controller.js"(exports, module) {
|
|
5642
5773
|
var { defaultInitOptions } = require_initial_config_validation();
|
|
5643
5774
|
var LogController2 = class {
|
|
5644
5775
|
/**
|
|
@@ -5817,9 +5948,9 @@ var require_abstract_logging = __commonJS({
|
|
|
5817
5948
|
}
|
|
5818
5949
|
});
|
|
5819
5950
|
|
|
5820
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
5951
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-pino.js
|
|
5821
5952
|
var require_logger_pino = __commonJS({
|
|
5822
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
5953
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-pino.js"(exports, module) {
|
|
5823
5954
|
var pino = require_pino();
|
|
5824
5955
|
var { serializersSym } = pino.symbols;
|
|
5825
5956
|
var {
|
|
@@ -5874,9 +6005,9 @@ var require_logger_pino = __commonJS({
|
|
|
5874
6005
|
}
|
|
5875
6006
|
});
|
|
5876
6007
|
|
|
5877
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6008
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-factory.js
|
|
5878
6009
|
var require_logger_factory = __commonJS({
|
|
5879
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6010
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/logger-factory.js"(exports, module) {
|
|
5880
6011
|
var { performance: performance2 } = __require("perf_hooks");
|
|
5881
6012
|
var {
|
|
5882
6013
|
FST_ERR_LOG_LOGGER_AND_LOGGER_INSTANCE_PROVIDED,
|
|
@@ -5979,9 +6110,9 @@ var require_logger_factory = __commonJS({
|
|
|
5979
6110
|
}
|
|
5980
6111
|
});
|
|
5981
6112
|
|
|
5982
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6113
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schemas.js
|
|
5983
6114
|
var require_schemas = __commonJS({
|
|
5984
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6115
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schemas.js"(exports, module) {
|
|
5985
6116
|
var fastClone = require_rfdc()({ circles: false, proto: true });
|
|
5986
6117
|
var { kSchemaVisited, kSchemaResponse } = require_symbols2();
|
|
5987
6118
|
var kFluentSchema = /* @__PURE__ */ Symbol.for("fluent-schema-object");
|
|
@@ -6022,8 +6153,8 @@ var require_schemas = __commonJS({
|
|
|
6022
6153
|
if (routeSchemas[kSchemaVisited]) {
|
|
6023
6154
|
return routeSchemas;
|
|
6024
6155
|
}
|
|
6025
|
-
if (routeSchemas.query) {
|
|
6026
|
-
if (routeSchemas.querystring) {
|
|
6156
|
+
if (routeSchemas.query !== void 0) {
|
|
6157
|
+
if (routeSchemas.querystring !== void 0) {
|
|
6027
6158
|
throw new FST_ERR_SCH_DUPLICATE("querystring");
|
|
6028
6159
|
}
|
|
6029
6160
|
routeSchemas.querystring = routeSchemas.query;
|
|
@@ -6262,9 +6393,9 @@ var require_serializer = __commonJS({
|
|
|
6262
6393
|
}
|
|
6263
6394
|
});
|
|
6264
6395
|
|
|
6265
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6396
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-serializer.js
|
|
6266
6397
|
var require_error_serializer = __commonJS({
|
|
6267
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6398
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-serializer.js"(exports, module) {
|
|
6268
6399
|
var Serializer = require_serializer();
|
|
6269
6400
|
var serializerState = { "mode": "standalone" };
|
|
6270
6401
|
var serializer = Serializer.restoreFromState(serializerState);
|
|
@@ -6361,9 +6492,9 @@ var require_error_serializer = __commonJS({
|
|
|
6361
6492
|
}
|
|
6362
6493
|
});
|
|
6363
6494
|
|
|
6364
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6495
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-handler.js
|
|
6365
6496
|
var require_error_handler = __commonJS({
|
|
6366
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6497
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/error-handler.js"(exports, module) {
|
|
6367
6498
|
var statusCodes = __require("http").STATUS_CODES;
|
|
6368
6499
|
var wrapThenable = require_wrap_thenable();
|
|
6369
6500
|
var { setErrorStatusCode } = require_error_status();
|
|
@@ -6495,9 +6626,9 @@ var require_error_handler = __commonJS({
|
|
|
6495
6626
|
}
|
|
6496
6627
|
});
|
|
6497
6628
|
|
|
6498
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6629
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/decorate.js
|
|
6499
6630
|
var require_decorate = __commonJS({
|
|
6500
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6631
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/decorate.js"(exports, module) {
|
|
6501
6632
|
var {
|
|
6502
6633
|
kReply,
|
|
6503
6634
|
kRequest,
|
|
@@ -6634,9 +6765,9 @@ var require_decorate = __commonJS({
|
|
|
6634
6765
|
}
|
|
6635
6766
|
});
|
|
6636
6767
|
|
|
6637
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
6768
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/reply.js
|
|
6638
6769
|
var require_reply = __commonJS({
|
|
6639
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
6770
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/reply.js"(exports, module) {
|
|
6640
6771
|
var eos = __require("stream").finished;
|
|
6641
6772
|
var {
|
|
6642
6773
|
kFourOhFourContext,
|
|
@@ -7125,7 +7256,9 @@ var require_reply = __commonJS({
|
|
|
7125
7256
|
header += trailerName;
|
|
7126
7257
|
}
|
|
7127
7258
|
if (header !== "") {
|
|
7128
|
-
reply
|
|
7259
|
+
if (!isHttp2Reply(reply)) {
|
|
7260
|
+
reply.header("Transfer-Encoding", "chunked");
|
|
7261
|
+
}
|
|
7129
7262
|
reply.header("Trailer", header.trim());
|
|
7130
7263
|
} else {
|
|
7131
7264
|
reply[kReplyTrailers] = null;
|
|
@@ -8492,9 +8625,9 @@ var require_proxy_addr = __commonJS({
|
|
|
8492
8625
|
}
|
|
8493
8626
|
});
|
|
8494
8627
|
|
|
8495
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
8628
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/request.js
|
|
8496
8629
|
var require_request = __commonJS({
|
|
8497
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
8630
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/request.js"(exports, module) {
|
|
8498
8631
|
var proxyAddr = require_proxy_addr();
|
|
8499
8632
|
var {
|
|
8500
8633
|
kHasBeenDecorated,
|
|
@@ -8830,9 +8963,9 @@ var require_request = __commonJS({
|
|
|
8830
8963
|
}
|
|
8831
8964
|
});
|
|
8832
8965
|
|
|
8833
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
8966
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/context.js
|
|
8834
8967
|
var require_context = __commonJS({
|
|
8835
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
8968
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/context.js"(exports, module) {
|
|
8836
8969
|
var {
|
|
8837
8970
|
kFourOhFourContext,
|
|
8838
8971
|
kReplySerializerDefault,
|
|
@@ -9021,9 +9154,9 @@ var require_secure_json_parse = __commonJS({
|
|
|
9021
9154
|
}
|
|
9022
9155
|
});
|
|
9023
9156
|
|
|
9024
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
9157
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type-parser.js
|
|
9025
9158
|
var require_content_type_parser = __commonJS({
|
|
9026
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
9159
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/content-type-parser.js"(exports, module) {
|
|
9027
9160
|
var { AsyncResource } = __require("async_hooks");
|
|
9028
9161
|
var { FifoMap: Fifo } = require_toad_cache();
|
|
9029
9162
|
var { parse: secureJsonParse } = require_secure_json_parse();
|
|
@@ -9141,6 +9274,7 @@ var require_content_type_parser = __commonJS({
|
|
|
9141
9274
|
}
|
|
9142
9275
|
parser4 = this.customParsers.get(contentType.mediaType);
|
|
9143
9276
|
if (parser4 !== void 0) {
|
|
9277
|
+
this.cache.set(ct, parser4);
|
|
9144
9278
|
return parser4;
|
|
9145
9279
|
}
|
|
9146
9280
|
for (let j2 = 0; j2 !== this.parserRegExpList.length; ++j2) {
|
|
@@ -9189,7 +9323,9 @@ var require_content_type_parser = __commonJS({
|
|
|
9189
9323
|
return;
|
|
9190
9324
|
}
|
|
9191
9325
|
const resource = new AsyncResource("content-type-parser:run", request2);
|
|
9192
|
-
|
|
9326
|
+
function done(error, body) {
|
|
9327
|
+
resource.runInAsyncScope(onDone, void 0, error, body);
|
|
9328
|
+
}
|
|
9193
9329
|
if (parser4.asString === true || parser4.asBuffer === true) {
|
|
9194
9330
|
rawBody(
|
|
9195
9331
|
request2,
|
|
@@ -22914,9 +23050,9 @@ var require_fast_json_stringify_compiler = __commonJS({
|
|
|
22914
23050
|
}
|
|
22915
23051
|
});
|
|
22916
23052
|
|
|
22917
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
23053
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schema-controller.js
|
|
22918
23054
|
var require_schema_controller = __commonJS({
|
|
22919
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
23055
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/schema-controller.js"(exports, module) {
|
|
22920
23056
|
var { buildSchemas } = require_schemas();
|
|
22921
23057
|
function buildSchemaController(parentSchemaCtrl, opts) {
|
|
22922
23058
|
if (parentSchemaCtrl) {
|
|
@@ -24979,9 +25115,9 @@ var require_semver2 = __commonJS({
|
|
|
24979
25115
|
}
|
|
24980
25116
|
});
|
|
24981
25117
|
|
|
24982
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
25118
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-utils.js
|
|
24983
25119
|
var require_plugin_utils = __commonJS({
|
|
24984
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
25120
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-utils.js"(exports, module) {
|
|
24985
25121
|
var semver = require_semver2();
|
|
24986
25122
|
var assert = __require("assert");
|
|
24987
25123
|
var kRegisteredPlugins = /* @__PURE__ */ Symbol.for("registered-plugin");
|
|
@@ -25112,9 +25248,9 @@ var require_plugin_utils = __commonJS({
|
|
|
25112
25248
|
}
|
|
25113
25249
|
});
|
|
25114
25250
|
|
|
25115
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
25251
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/req-id-gen-factory.js
|
|
25116
25252
|
var require_req_id_gen_factory = __commonJS({
|
|
25117
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
25253
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/req-id-gen-factory.js"(exports, module) {
|
|
25118
25254
|
var { kGenReqId } = require_symbols2();
|
|
25119
25255
|
function reqIdGenFactory(requestIdHeader, optGenReqId) {
|
|
25120
25256
|
const genReqId = optGenReqId || buildDefaultGenReqId();
|
|
@@ -28279,9 +28415,9 @@ var require_find_my_way = __commonJS({
|
|
|
28279
28415
|
}
|
|
28280
28416
|
});
|
|
28281
28417
|
|
|
28282
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
28418
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/head-route.js
|
|
28283
28419
|
var require_head_route = __commonJS({
|
|
28284
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
28420
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/head-route.js"(exports, module) {
|
|
28285
28421
|
function headRouteOnSendHandler(req, reply, payload, done) {
|
|
28286
28422
|
if (payload === void 0) {
|
|
28287
28423
|
reply.header("content-length", "0");
|
|
@@ -28317,9 +28453,9 @@ var require_head_route = __commonJS({
|
|
|
28317
28453
|
}
|
|
28318
28454
|
});
|
|
28319
28455
|
|
|
28320
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
28456
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/route.js
|
|
28321
28457
|
var require_route = __commonJS({
|
|
28322
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
28458
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/route.js"(exports, module) {
|
|
28323
28459
|
var FindMyWay = require_find_my_way();
|
|
28324
28460
|
var Context = require_context();
|
|
28325
28461
|
var handleRequest = require_handle_request();
|
|
@@ -28657,7 +28793,7 @@ var require_route = __commonJS({
|
|
|
28657
28793
|
if (opts.schema) {
|
|
28658
28794
|
context.schema = normalizeSchema(context.schema, this.initialConfig);
|
|
28659
28795
|
const schemaController = this[kSchemaController];
|
|
28660
|
-
const hasValidationSchema = opts.schema.body || opts.schema.headers || opts.schema.querystring || opts.schema.params;
|
|
28796
|
+
const hasValidationSchema = opts.schema.body !== void 0 || opts.schema.headers !== void 0 || opts.schema.querystring !== void 0 || opts.schema.params !== void 0;
|
|
28661
28797
|
if (!opts.validatorCompiler && hasValidationSchema) {
|
|
28662
28798
|
schemaController.setupValidator(this[kOptions]);
|
|
28663
28799
|
}
|
|
@@ -28869,9 +29005,9 @@ var require_route = __commonJS({
|
|
|
28869
29005
|
}
|
|
28870
29006
|
});
|
|
28871
29007
|
|
|
28872
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
29008
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/four-oh-four.js
|
|
28873
29009
|
var require_four_oh_four = __commonJS({
|
|
28874
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
29010
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/four-oh-four.js"(exports, module) {
|
|
28875
29011
|
var FindMyWay = require_find_my_way();
|
|
28876
29012
|
var Reply = require_reply();
|
|
28877
29013
|
var Request = require_request();
|
|
@@ -28895,17 +29031,14 @@ var require_four_oh_four = __commonJS({
|
|
|
28895
29031
|
function fourOhFour(options) {
|
|
28896
29032
|
const { logger } = options;
|
|
28897
29033
|
const router = FindMyWay({
|
|
28898
|
-
onBadUrl:
|
|
28899
|
-
onMaxParamLength:
|
|
29034
|
+
onBadUrl: options.routerOptions.onBadUrl,
|
|
29035
|
+
onMaxParamLength: options.routerOptions.onMaxParamLength,
|
|
28900
29036
|
defaultRoute: fourOhFourFallBack
|
|
28901
29037
|
});
|
|
28902
|
-
let _routeEventHandler = null;
|
|
28903
29038
|
return { router, setNotFoundHandler, setContext, arrange404 };
|
|
28904
29039
|
function arrange404(instance) {
|
|
28905
29040
|
instance[kFourOhFourLevelInstance] = instance;
|
|
28906
29041
|
instance[kCanSetNotFoundHandler] = true;
|
|
28907
|
-
router.onBadUrl = router.onBadUrl.bind(instance);
|
|
28908
|
-
router.onMaxParamLength = router.onMaxParamLength.bind(instance);
|
|
28909
29042
|
router.defaultRoute = router.defaultRoute.bind(instance);
|
|
28910
29043
|
}
|
|
28911
29044
|
function basic404(request2, reply) {
|
|
@@ -28917,18 +29050,8 @@ var require_four_oh_four = __commonJS({
|
|
|
28917
29050
|
statusCode: 404
|
|
28918
29051
|
});
|
|
28919
29052
|
}
|
|
28920
|
-
function createRouteEventHandler() {
|
|
28921
|
-
return function onRouteEvent(path, req, res) {
|
|
28922
|
-
const fourOhFourContext = this[kFourOhFourLevelInstance][kFourOhFourContext];
|
|
28923
|
-
const id = getGenReqId(fourOhFourContext.server, req);
|
|
28924
|
-
const childLogger = createChildLogger(fourOhFourContext, logger, req, id);
|
|
28925
|
-
const request2 = new Request(id, null, req, null, childLogger, fourOhFourContext);
|
|
28926
|
-
const reply = new Reply(res, request2, childLogger);
|
|
28927
|
-
_routeEventHandler(request2, reply);
|
|
28928
|
-
};
|
|
28929
|
-
}
|
|
28930
29053
|
function setContext(instance, context) {
|
|
28931
|
-
const _404Context = Object.
|
|
29054
|
+
const _404Context = Object.create(instance[kFourOhFourContext]);
|
|
28932
29055
|
_404Context.onSend = context.onSend;
|
|
28933
29056
|
context[kFourOhFourContext] = _404Context;
|
|
28934
29057
|
}
|
|
@@ -28968,10 +29091,8 @@ var require_four_oh_four = __commonJS({
|
|
|
28968
29091
|
if (handler) {
|
|
28969
29092
|
this[kFourOhFourLevelInstance][kCanSetNotFoundHandler] = false;
|
|
28970
29093
|
handler = handler.bind(this);
|
|
28971
|
-
_routeEventHandler = handler;
|
|
28972
29094
|
} else {
|
|
28973
29095
|
handler = basic404;
|
|
28974
|
-
_routeEventHandler = basic404;
|
|
28975
29096
|
}
|
|
28976
29097
|
this.after((notHandledErr, done) => {
|
|
28977
29098
|
_setNotFoundHandler.call(this, prefix, opts, handler, avvio, routeHandler);
|
|
@@ -29017,9 +29138,9 @@ var require_four_oh_four = __commonJS({
|
|
|
29017
29138
|
}
|
|
29018
29139
|
});
|
|
29019
29140
|
|
|
29020
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
29141
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-override.js
|
|
29021
29142
|
var require_plugin_override = __commonJS({
|
|
29022
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
29143
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/lib/plugin-override.js"(exports, module) {
|
|
29023
29144
|
var {
|
|
29024
29145
|
kAvvioBoot,
|
|
29025
29146
|
kChildren,
|
|
@@ -31033,10 +31154,10 @@ var require_light_my_request = __commonJS({
|
|
|
31033
31154
|
}
|
|
31034
31155
|
});
|
|
31035
31156
|
|
|
31036
|
-
// node_modules/.pnpm/fastify@5.12.
|
|
31157
|
+
// node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/fastify.js
|
|
31037
31158
|
var require_fastify = __commonJS({
|
|
31038
|
-
"node_modules/.pnpm/fastify@5.12.
|
|
31039
|
-
var VERSION = "5.12.
|
|
31159
|
+
"node_modules/.pnpm/fastify@5.12.5/node_modules/fastify/fastify.js"(exports, module) {
|
|
31160
|
+
var VERSION = "5.12.5";
|
|
31040
31161
|
var Avvio = require_avvio();
|
|
31041
31162
|
var http = __require("http");
|
|
31042
31163
|
var diagnostics = __require("diagnostics_channel");
|
|
@@ -40325,9 +40446,9 @@ var require_cookie = __commonJS({
|
|
|
40325
40446
|
}
|
|
40326
40447
|
});
|
|
40327
40448
|
|
|
40328
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40449
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js
|
|
40329
40450
|
var require_sbmh = __commonJS({
|
|
40330
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40451
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js"(exports, module) {
|
|
40331
40452
|
var { EventEmitter: EventEmitter2 } = __require("events");
|
|
40332
40453
|
var { inherits } = __require("util");
|
|
40333
40454
|
function SBMH(needle) {
|
|
@@ -40347,7 +40468,7 @@ var require_sbmh = __commonJS({
|
|
|
40347
40468
|
}
|
|
40348
40469
|
this.maxMatches = Infinity;
|
|
40349
40470
|
this.matches = 0;
|
|
40350
|
-
this._occ = new
|
|
40471
|
+
this._occ = new Uint16Array(256).fill(needleLength);
|
|
40351
40472
|
this._lookbehind_size = 0;
|
|
40352
40473
|
this._needle = needle;
|
|
40353
40474
|
this._bufpos = 0;
|
|
@@ -40457,9 +40578,9 @@ var require_sbmh = __commonJS({
|
|
|
40457
40578
|
}
|
|
40458
40579
|
});
|
|
40459
40580
|
|
|
40460
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40581
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js
|
|
40461
40582
|
var require_PartStream = __commonJS({
|
|
40462
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40583
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js"(exports, module) {
|
|
40463
40584
|
var inherits = __require("util").inherits;
|
|
40464
40585
|
var ReadableStream = __require("stream").Readable;
|
|
40465
40586
|
function PartStream(opts) {
|
|
@@ -40472,9 +40593,9 @@ var require_PartStream = __commonJS({
|
|
|
40472
40593
|
}
|
|
40473
40594
|
});
|
|
40474
40595
|
|
|
40475
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40596
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/getLimit.js
|
|
40476
40597
|
var require_getLimit = __commonJS({
|
|
40477
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40598
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/getLimit.js"(exports, module) {
|
|
40478
40599
|
module.exports = function getLimit(limits, name, defaultLimit) {
|
|
40479
40600
|
if (!limits || limits[name] === void 0 || limits[name] === null) {
|
|
40480
40601
|
return defaultLimit;
|
|
@@ -40487,66 +40608,93 @@ var require_getLimit = __commonJS({
|
|
|
40487
40608
|
}
|
|
40488
40609
|
});
|
|
40489
40610
|
|
|
40490
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40611
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js
|
|
40491
40612
|
var require_HeaderParser = __commonJS({
|
|
40492
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40613
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js"(exports, module) {
|
|
40493
40614
|
var EventEmitter2 = __require("events").EventEmitter;
|
|
40494
40615
|
var inherits = __require("util").inherits;
|
|
40495
40616
|
var getLimit = require_getLimit();
|
|
40496
|
-
var StreamSearch = require_sbmh();
|
|
40497
40617
|
var B_DCRLF = Buffer.from("\r\n\r\n");
|
|
40498
|
-
var
|
|
40499
|
-
var RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/;
|
|
40618
|
+
var S_DCRLF = "\r\n\r\n";
|
|
40500
40619
|
function HeaderParser(cfg) {
|
|
40501
40620
|
EventEmitter2.call(this);
|
|
40502
40621
|
cfg = cfg || {};
|
|
40503
|
-
const self2 = this;
|
|
40504
40622
|
this.nread = 0;
|
|
40505
40623
|
this.maxed = false;
|
|
40506
40624
|
this.npairs = 0;
|
|
40507
40625
|
this.maxHeaderPairs = getLimit(cfg, "maxHeaderPairs", 2e3);
|
|
40508
40626
|
this.maxHeaderSize = getLimit(cfg, "maxHeaderSize", 80 * 1024);
|
|
40509
40627
|
this.buffer = "";
|
|
40510
|
-
this.header =
|
|
40628
|
+
this.header = /* @__PURE__ */ Object.create(null);
|
|
40511
40629
|
this.finished = false;
|
|
40512
|
-
this.
|
|
40513
|
-
this.ss.on("info", function(isMatch, data, start, end) {
|
|
40514
|
-
if (data && !self2.maxed) {
|
|
40515
|
-
if (self2.nread + end - start >= self2.maxHeaderSize) {
|
|
40516
|
-
end = self2.maxHeaderSize - self2.nread + start;
|
|
40517
|
-
self2.nread = self2.maxHeaderSize;
|
|
40518
|
-
self2.maxed = true;
|
|
40519
|
-
} else {
|
|
40520
|
-
self2.nread += end - start;
|
|
40521
|
-
}
|
|
40522
|
-
self2.buffer += data.toString("binary", start, end);
|
|
40523
|
-
}
|
|
40524
|
-
if (isMatch) {
|
|
40525
|
-
self2._finish();
|
|
40526
|
-
}
|
|
40527
|
-
});
|
|
40630
|
+
this.tail = "";
|
|
40528
40631
|
}
|
|
40529
40632
|
inherits(HeaderParser, EventEmitter2);
|
|
40530
40633
|
HeaderParser.prototype.push = function(data) {
|
|
40531
|
-
|
|
40532
|
-
|
|
40533
|
-
|
|
40634
|
+
if (!Buffer.isBuffer(data)) {
|
|
40635
|
+
data = Buffer.from(data, "binary");
|
|
40636
|
+
}
|
|
40637
|
+
let end = data.length;
|
|
40638
|
+
let appendEnd = data.length;
|
|
40639
|
+
let found = false;
|
|
40640
|
+
const tail = this.tail;
|
|
40641
|
+
for (let i2 = tail.length; i2 > 0; --i2) {
|
|
40642
|
+
if (tail.endsWith(S_DCRLF.slice(0, i2))) {
|
|
40643
|
+
let matched = data.length >= S_DCRLF.length - i2;
|
|
40644
|
+
for (let j2 = i2; matched && j2 < S_DCRLF.length; ++j2) {
|
|
40645
|
+
matched = data[j2 - i2] === S_DCRLF.charCodeAt(j2);
|
|
40646
|
+
}
|
|
40647
|
+
if (matched) {
|
|
40648
|
+
end = S_DCRLF.length - i2;
|
|
40649
|
+
appendEnd = 0;
|
|
40650
|
+
found = true;
|
|
40651
|
+
break;
|
|
40652
|
+
}
|
|
40653
|
+
}
|
|
40654
|
+
}
|
|
40655
|
+
if (!found) {
|
|
40656
|
+
const pos = data.indexOf(B_DCRLF);
|
|
40657
|
+
if (pos !== -1) {
|
|
40658
|
+
end = pos + B_DCRLF.length;
|
|
40659
|
+
appendEnd = pos;
|
|
40660
|
+
found = true;
|
|
40661
|
+
}
|
|
40662
|
+
}
|
|
40663
|
+
if (!found) {
|
|
40664
|
+
this.tail = data.length >= 3 ? data.toString("binary", data.length - 3) : (tail + data.toString("binary")).slice(-3);
|
|
40665
|
+
} else {
|
|
40666
|
+
this.tail = "";
|
|
40667
|
+
}
|
|
40668
|
+
if (appendEnd !== 0 && !this.maxed) {
|
|
40669
|
+
const remaining = this.maxHeaderSize - this.nread;
|
|
40670
|
+
if (appendEnd >= remaining) {
|
|
40671
|
+
this.buffer += data.toString("binary", 0, remaining);
|
|
40672
|
+
this.nread = this.maxHeaderSize;
|
|
40673
|
+
this.maxed = true;
|
|
40674
|
+
} else {
|
|
40675
|
+
this.buffer += data.toString("binary", 0, appendEnd);
|
|
40676
|
+
this.nread += appendEnd;
|
|
40677
|
+
}
|
|
40678
|
+
}
|
|
40679
|
+
if (found) {
|
|
40680
|
+
this._finish();
|
|
40681
|
+
return end;
|
|
40534
40682
|
}
|
|
40535
40683
|
};
|
|
40536
40684
|
HeaderParser.prototype.reset = function() {
|
|
40537
40685
|
this.finished = false;
|
|
40538
40686
|
this.buffer = "";
|
|
40539
|
-
this.header =
|
|
40540
|
-
this.
|
|
40687
|
+
this.header = /* @__PURE__ */ Object.create(null);
|
|
40688
|
+
this.tail = "";
|
|
40541
40689
|
};
|
|
40542
40690
|
HeaderParser.prototype._finish = function() {
|
|
40543
40691
|
if (this.buffer) {
|
|
40544
40692
|
this._parseHeader();
|
|
40545
40693
|
}
|
|
40546
|
-
this.ss.matches = this.ss.maxMatches;
|
|
40547
40694
|
const header = this.header;
|
|
40548
|
-
this.header =
|
|
40695
|
+
this.header = /* @__PURE__ */ Object.create(null);
|
|
40549
40696
|
this.buffer = "";
|
|
40697
|
+
this.tail = "";
|
|
40550
40698
|
this.finished = true;
|
|
40551
40699
|
this.nread = this.npairs = 0;
|
|
40552
40700
|
this.maxed = false;
|
|
@@ -40556,39 +40704,47 @@ var require_HeaderParser = __commonJS({
|
|
|
40556
40704
|
if (this.npairs === this.maxHeaderPairs) {
|
|
40557
40705
|
return;
|
|
40558
40706
|
}
|
|
40559
|
-
const
|
|
40560
|
-
|
|
40561
|
-
let
|
|
40562
|
-
|
|
40563
|
-
|
|
40707
|
+
const buffer = this.buffer;
|
|
40708
|
+
let h2;
|
|
40709
|
+
let lineStart = 0;
|
|
40710
|
+
while (lineStart < buffer.length) {
|
|
40711
|
+
let lineEnd = buffer.indexOf("\r\n", lineStart);
|
|
40712
|
+
if (lineEnd === -1) {
|
|
40713
|
+
lineEnd = buffer.length;
|
|
40714
|
+
}
|
|
40715
|
+
if (lineEnd === lineStart) {
|
|
40716
|
+
lineStart = lineEnd + 2;
|
|
40564
40717
|
continue;
|
|
40565
40718
|
}
|
|
40566
|
-
if (
|
|
40567
|
-
|
|
40568
|
-
|
|
40569
|
-
|
|
40570
|
-
}
|
|
40719
|
+
if ((buffer[lineStart] === " " || buffer[lineStart] === " ") && h2) {
|
|
40720
|
+
this.header[h2][this.header[h2].length - 1] += buffer.slice(lineStart, lineEnd);
|
|
40721
|
+
lineStart = lineEnd + 2;
|
|
40722
|
+
continue;
|
|
40571
40723
|
}
|
|
40572
|
-
const posColon =
|
|
40573
|
-
if (posColon === -1 || posColon ===
|
|
40724
|
+
const posColon = buffer.indexOf(":", lineStart);
|
|
40725
|
+
if (posColon === -1 || posColon === lineStart || posColon > lineEnd) {
|
|
40574
40726
|
return;
|
|
40575
40727
|
}
|
|
40576
|
-
|
|
40577
|
-
|
|
40578
|
-
|
|
40579
|
-
|
|
40728
|
+
h2 = buffer.slice(lineStart, posColon).toLowerCase();
|
|
40729
|
+
let valueStart = posColon + 1;
|
|
40730
|
+
if (buffer[valueStart] === " " || buffer[valueStart] === " ") {
|
|
40731
|
+
++valueStart;
|
|
40732
|
+
}
|
|
40733
|
+
const values = this.header[h2] || (this.header[h2] = []);
|
|
40734
|
+
values.push(buffer.slice(valueStart, lineEnd));
|
|
40580
40735
|
if (++this.npairs === this.maxHeaderPairs) {
|
|
40581
40736
|
break;
|
|
40582
40737
|
}
|
|
40738
|
+
lineStart = lineEnd + 2;
|
|
40583
40739
|
}
|
|
40584
40740
|
};
|
|
40585
40741
|
module.exports = HeaderParser;
|
|
40586
40742
|
}
|
|
40587
40743
|
});
|
|
40588
40744
|
|
|
40589
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40745
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
|
|
40590
40746
|
var require_Dicer = __commonJS({
|
|
40591
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40747
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js"(exports, module) {
|
|
40592
40748
|
var WritableStream = __require("stream").Writable;
|
|
40593
40749
|
var inherits = __require("util").inherits;
|
|
40594
40750
|
var StreamSearch = require_sbmh();
|
|
@@ -40825,9 +40981,9 @@ var require_Dicer = __commonJS({
|
|
|
40825
40981
|
}
|
|
40826
40982
|
});
|
|
40827
40983
|
|
|
40828
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40984
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/decodeText.js
|
|
40829
40985
|
var require_decodeText = __commonJS({
|
|
40830
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
40986
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/decodeText.js"(exports, module) {
|
|
40831
40987
|
var utf8Decoder = new TextDecoder("utf-8");
|
|
40832
40988
|
var textDecoders = /* @__PURE__ */ new Map([
|
|
40833
40989
|
["utf-8", utf8Decoder],
|
|
@@ -40870,12 +41026,23 @@ var require_decodeText = __commonJS({
|
|
|
40870
41026
|
}
|
|
40871
41027
|
}
|
|
40872
41028
|
}
|
|
41029
|
+
function isAscii(data) {
|
|
41030
|
+
for (var i2 = 0, len = data.length; i2 < len; ++i2) {
|
|
41031
|
+
if (data.charCodeAt(i2) > 127) {
|
|
41032
|
+
return false;
|
|
41033
|
+
}
|
|
41034
|
+
}
|
|
41035
|
+
return true;
|
|
41036
|
+
}
|
|
40873
41037
|
var decoders = {
|
|
40874
41038
|
utf8: (data, sourceEncoding) => {
|
|
40875
41039
|
if (data.length === 0) {
|
|
40876
41040
|
return "";
|
|
40877
41041
|
}
|
|
40878
41042
|
if (typeof data === "string") {
|
|
41043
|
+
if (isAscii(data)) {
|
|
41044
|
+
return data;
|
|
41045
|
+
}
|
|
40879
41046
|
data = Buffer.from(data, sourceEncoding);
|
|
40880
41047
|
}
|
|
40881
41048
|
return data.utf8Slice(0, data.length);
|
|
@@ -40933,9 +41100,9 @@ var require_decodeText = __commonJS({
|
|
|
40933
41100
|
}
|
|
40934
41101
|
});
|
|
40935
41102
|
|
|
40936
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41103
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/parseParams.js
|
|
40937
41104
|
var require_parseParams = __commonJS({
|
|
40938
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41105
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/parseParams.js"(exports, module) {
|
|
40939
41106
|
var decodeText = require_decodeText();
|
|
40940
41107
|
var RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g;
|
|
40941
41108
|
var EncodedLookup = {
|
|
@@ -41427,11 +41594,58 @@ var require_parseParams = __commonJS({
|
|
|
41427
41594
|
function encodedReplacer(match) {
|
|
41428
41595
|
return EncodedLookup[match];
|
|
41429
41596
|
}
|
|
41597
|
+
function decodeUtf8Text(text) {
|
|
41598
|
+
for (var i2 = 0, len = text.length; i2 < len; ++i2) {
|
|
41599
|
+
if (text.charCodeAt(i2) > 127) {
|
|
41600
|
+
return decodeText(text, "binary", "utf8");
|
|
41601
|
+
}
|
|
41602
|
+
}
|
|
41603
|
+
return text;
|
|
41604
|
+
}
|
|
41430
41605
|
var STATE_KEY = 0;
|
|
41431
41606
|
var STATE_VALUE = 1;
|
|
41432
41607
|
var STATE_CHARSET = 2;
|
|
41433
41608
|
var STATE_LANG = 3;
|
|
41609
|
+
function parseFormDataDisposition(str) {
|
|
41610
|
+
if (!str.startsWith('form-data; name="')) {
|
|
41611
|
+
return;
|
|
41612
|
+
}
|
|
41613
|
+
let valueStart = 17;
|
|
41614
|
+
let valueEnd = str.indexOf('"', valueStart);
|
|
41615
|
+
if (valueEnd === -1 || str.indexOf("\\", valueStart) !== -1) {
|
|
41616
|
+
return;
|
|
41617
|
+
}
|
|
41618
|
+
const res = ["form-data", ["name", decodeUtf8Text(str.slice(valueStart, valueEnd))]];
|
|
41619
|
+
let pos = valueEnd + 1;
|
|
41620
|
+
while (pos < str.length && str[pos] !== ";") {
|
|
41621
|
+
++pos;
|
|
41622
|
+
}
|
|
41623
|
+
if (pos === str.length) {
|
|
41624
|
+
return res;
|
|
41625
|
+
}
|
|
41626
|
+
++pos;
|
|
41627
|
+
while (str[pos] === " " || str[pos] === " ") {
|
|
41628
|
+
++pos;
|
|
41629
|
+
}
|
|
41630
|
+
if (!str.startsWith('filename="', pos)) {
|
|
41631
|
+
return;
|
|
41632
|
+
}
|
|
41633
|
+
valueStart = pos + 10;
|
|
41634
|
+
valueEnd = str.indexOf('"', valueStart);
|
|
41635
|
+
if (valueEnd === -1 || str.indexOf("\\", valueStart) !== -1) {
|
|
41636
|
+
return;
|
|
41637
|
+
}
|
|
41638
|
+
res.push(["filename", decodeUtf8Text(str.slice(valueStart, valueEnd))]);
|
|
41639
|
+
return res;
|
|
41640
|
+
}
|
|
41434
41641
|
function parseParams(str) {
|
|
41642
|
+
if (str.indexOf(";") === -1) {
|
|
41643
|
+
return [decodeUtf8Text(str)];
|
|
41644
|
+
}
|
|
41645
|
+
const fastFormData = parseFormDataDisposition(str);
|
|
41646
|
+
if (fastFormData !== void 0) {
|
|
41647
|
+
return fastFormData;
|
|
41648
|
+
}
|
|
41435
41649
|
const res = [];
|
|
41436
41650
|
let state = STATE_KEY;
|
|
41437
41651
|
let charset = "";
|
|
@@ -41495,7 +41709,7 @@ var require_parseParams = __commonJS({
|
|
|
41495
41709
|
}
|
|
41496
41710
|
charset = "";
|
|
41497
41711
|
} else if (tmp.length) {
|
|
41498
|
-
tmp =
|
|
41712
|
+
tmp = decodeUtf8Text(tmp);
|
|
41499
41713
|
}
|
|
41500
41714
|
if (res[p2] === void 0) {
|
|
41501
41715
|
res[p2] = tmp;
|
|
@@ -41518,7 +41732,7 @@ var require_parseParams = __commonJS({
|
|
|
41518
41732
|
charset
|
|
41519
41733
|
);
|
|
41520
41734
|
} else if (tmp) {
|
|
41521
|
-
tmp =
|
|
41735
|
+
tmp = decodeUtf8Text(tmp);
|
|
41522
41736
|
}
|
|
41523
41737
|
if (res[p2] === void 0) {
|
|
41524
41738
|
if (tmp) {
|
|
@@ -41533,9 +41747,9 @@ var require_parseParams = __commonJS({
|
|
|
41533
41747
|
}
|
|
41534
41748
|
});
|
|
41535
41749
|
|
|
41536
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41750
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/basename.js
|
|
41537
41751
|
var require_basename = __commonJS({
|
|
41538
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41752
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports, module) {
|
|
41539
41753
|
module.exports = function basename8(path) {
|
|
41540
41754
|
if (typeof path !== "string") {
|
|
41541
41755
|
return "";
|
|
@@ -41554,9 +41768,9 @@ var require_basename = __commonJS({
|
|
|
41554
41768
|
}
|
|
41555
41769
|
});
|
|
41556
41770
|
|
|
41557
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41771
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/types/multipart.js
|
|
41558
41772
|
var require_multipart = __commonJS({
|
|
41559
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
41773
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/types/multipart.js"(exports, module) {
|
|
41560
41774
|
var { Readable: Readable4 } = __require("stream");
|
|
41561
41775
|
var { inherits } = __require("util");
|
|
41562
41776
|
var Dicer = require_Dicer();
|
|
@@ -41651,13 +41865,18 @@ var require_multipart = __commonJS({
|
|
|
41651
41865
|
let filename;
|
|
41652
41866
|
let nsize = 0;
|
|
41653
41867
|
if (header["content-type"]) {
|
|
41654
|
-
|
|
41655
|
-
if (
|
|
41656
|
-
contype =
|
|
41657
|
-
|
|
41658
|
-
|
|
41659
|
-
|
|
41660
|
-
|
|
41868
|
+
const contentType = header["content-type"][0];
|
|
41869
|
+
if (contentType.length !== 0 && contentType.indexOf(";") === -1 && contentType.indexOf(" ") === -1 && contentType.indexOf(" ") === -1) {
|
|
41870
|
+
contype = contentType.toLowerCase();
|
|
41871
|
+
} else {
|
|
41872
|
+
parsed = parseParams(contentType);
|
|
41873
|
+
if (parsed[0]) {
|
|
41874
|
+
contype = parsed[0].toLowerCase();
|
|
41875
|
+
for (i2 = 0, len = parsed.length; i2 < len; ++i2) {
|
|
41876
|
+
if (RE_CHARSET.test(parsed[i2][0])) {
|
|
41877
|
+
charset = parsed[i2][1].toLowerCase();
|
|
41878
|
+
break;
|
|
41879
|
+
}
|
|
41661
41880
|
}
|
|
41662
41881
|
}
|
|
41663
41882
|
}
|
|
@@ -41833,9 +42052,9 @@ var require_multipart = __commonJS({
|
|
|
41833
42052
|
}
|
|
41834
42053
|
});
|
|
41835
42054
|
|
|
41836
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42055
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/Decoder.js
|
|
41837
42056
|
var require_Decoder = __commonJS({
|
|
41838
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42057
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/utils/Decoder.js"(exports, module) {
|
|
41839
42058
|
var RE_PLUS = /\+/g;
|
|
41840
42059
|
var HEX = [
|
|
41841
42060
|
0,
|
|
@@ -42011,9 +42230,9 @@ var require_Decoder = __commonJS({
|
|
|
42011
42230
|
}
|
|
42012
42231
|
});
|
|
42013
42232
|
|
|
42014
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42233
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/types/urlencoded.js
|
|
42015
42234
|
var require_urlencoded = __commonJS({
|
|
42016
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42235
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/lib/types/urlencoded.js"(exports, module) {
|
|
42017
42236
|
var Decoder = require_Decoder();
|
|
42018
42237
|
var decodeText = require_decodeText();
|
|
42019
42238
|
var getLimit = require_getLimit();
|
|
@@ -42225,9 +42444,9 @@ var require_urlencoded = __commonJS({
|
|
|
42225
42444
|
}
|
|
42226
42445
|
});
|
|
42227
42446
|
|
|
42228
|
-
// node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42229
|
-
var
|
|
42230
|
-
"node_modules/.pnpm/@fastify+busboy@3.2.
|
|
42447
|
+
// node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/index.js
|
|
42448
|
+
var require_busboy = __commonJS({
|
|
42449
|
+
"node_modules/.pnpm/@fastify+busboy@3.2.1/node_modules/@fastify/busboy/index.js"(exports, module) {
|
|
42231
42450
|
var WritableStream = __require("stream").Writable;
|
|
42232
42451
|
var { inherits } = __require("util");
|
|
42233
42452
|
var Dicer = require_Dicer();
|
|
@@ -42742,7 +42961,7 @@ var require_deepmerge = __commonJS({
|
|
|
42742
42961
|
// node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/index.js
|
|
42743
42962
|
var require_multipart2 = __commonJS({
|
|
42744
42963
|
"node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/index.js"(exports, module) {
|
|
42745
|
-
var Busboy =
|
|
42964
|
+
var Busboy = require_busboy();
|
|
42746
42965
|
var os = __require("os");
|
|
42747
42966
|
var fp = require_fastify_plugin();
|
|
42748
42967
|
var { createWriteStream: createWriteStream2 } = __require("fs");
|
|
@@ -56272,6 +56491,199 @@ var AgentEventStream = class {
|
|
|
56272
56491
|
}
|
|
56273
56492
|
};
|
|
56274
56493
|
|
|
56494
|
+
// packages/server/src/routes/context.ts
|
|
56495
|
+
var MutationHttpError = class extends Error {
|
|
56496
|
+
constructor(code, message, statusCode, retryable = false) {
|
|
56497
|
+
super(message);
|
|
56498
|
+
this.code = code;
|
|
56499
|
+
this.statusCode = statusCode;
|
|
56500
|
+
this.retryable = retryable;
|
|
56501
|
+
this.name = "MutationHttpError";
|
|
56502
|
+
}
|
|
56503
|
+
code;
|
|
56504
|
+
statusCode;
|
|
56505
|
+
retryable;
|
|
56506
|
+
};
|
|
56507
|
+
function toMcpProviderHttpError(error) {
|
|
56508
|
+
const message = error instanceof Error && error.message.trim().length > 0 ? error.message : "MCP provider request failed";
|
|
56509
|
+
return new MutationHttpError("PROVIDER_ERROR", message, 502, true);
|
|
56510
|
+
}
|
|
56511
|
+
|
|
56512
|
+
// packages/server/src/routes/schemas.ts
|
|
56513
|
+
var ProjectParamsSchema = {
|
|
56514
|
+
additionalProperties: false,
|
|
56515
|
+
properties: { projectId: { minLength: 1, type: "string" } },
|
|
56516
|
+
required: ["projectId"],
|
|
56517
|
+
type: "object"
|
|
56518
|
+
};
|
|
56519
|
+
var ProjectAttachmentParamsSchema = {
|
|
56520
|
+
additionalProperties: false,
|
|
56521
|
+
properties: {
|
|
56522
|
+
kind: AgentAttachmentKindSchema,
|
|
56523
|
+
projectId: { minLength: 1, type: "string" }
|
|
56524
|
+
},
|
|
56525
|
+
required: ["kind", "projectId"],
|
|
56526
|
+
type: "object"
|
|
56527
|
+
};
|
|
56528
|
+
var ProjectHostAttachmentParamsSchema = {
|
|
56529
|
+
additionalProperties: false,
|
|
56530
|
+
properties: {
|
|
56531
|
+
kind: HostFileKindSchema,
|
|
56532
|
+
projectId: { minLength: 1, type: "string" }
|
|
56533
|
+
},
|
|
56534
|
+
required: ["kind", "projectId"],
|
|
56535
|
+
type: "object"
|
|
56536
|
+
};
|
|
56537
|
+
var ProjectStoredAttachmentParamsSchema = {
|
|
56538
|
+
additionalProperties: false,
|
|
56539
|
+
properties: {
|
|
56540
|
+
attachmentId: { minLength: 1, type: "string" },
|
|
56541
|
+
projectId: { minLength: 1, type: "string" }
|
|
56542
|
+
},
|
|
56543
|
+
required: ["attachmentId", "projectId"],
|
|
56544
|
+
type: "object"
|
|
56545
|
+
};
|
|
56546
|
+
var ProjectTaskParamsSchema = {
|
|
56547
|
+
additionalProperties: false,
|
|
56548
|
+
properties: {
|
|
56549
|
+
projectId: { minLength: 1, type: "string" },
|
|
56550
|
+
taskId: { minLength: 1, type: "string" }
|
|
56551
|
+
},
|
|
56552
|
+
required: ["projectId", "taskId"],
|
|
56553
|
+
type: "object"
|
|
56554
|
+
};
|
|
56555
|
+
var ProjectTaskTurnParamsSchema = {
|
|
56556
|
+
additionalProperties: false,
|
|
56557
|
+
properties: {
|
|
56558
|
+
projectId: { minLength: 1, type: "string" },
|
|
56559
|
+
taskId: { minLength: 1, type: "string" },
|
|
56560
|
+
turnId: { minLength: 1, type: "string" }
|
|
56561
|
+
},
|
|
56562
|
+
required: ["projectId", "taskId", "turnId"],
|
|
56563
|
+
type: "object"
|
|
56564
|
+
};
|
|
56565
|
+
var ProjectTaskQueueParamsSchema = {
|
|
56566
|
+
additionalProperties: false,
|
|
56567
|
+
properties: {
|
|
56568
|
+
projectId: { minLength: 1, type: "string" },
|
|
56569
|
+
queuedSubmissionId: { minLength: 1, type: "string" },
|
|
56570
|
+
taskId: { minLength: 1, type: "string" }
|
|
56571
|
+
},
|
|
56572
|
+
required: ["projectId", "taskId", "queuedSubmissionId"],
|
|
56573
|
+
type: "object"
|
|
56574
|
+
};
|
|
56575
|
+
var ProjectTaskTerminalParamsSchema = {
|
|
56576
|
+
additionalProperties: false,
|
|
56577
|
+
properties: {
|
|
56578
|
+
projectId: { minLength: 1, type: "string" },
|
|
56579
|
+
taskId: { minLength: 1, type: "string" },
|
|
56580
|
+
terminalId: { minLength: 1, type: "string" }
|
|
56581
|
+
},
|
|
56582
|
+
required: ["projectId", "taskId", "terminalId"],
|
|
56583
|
+
type: "object"
|
|
56584
|
+
};
|
|
56585
|
+
var ProjectTaskAttachmentParamsSchema = {
|
|
56586
|
+
additionalProperties: false,
|
|
56587
|
+
properties: {
|
|
56588
|
+
attachmentId: { minLength: 1, type: "string" },
|
|
56589
|
+
projectId: { minLength: 1, type: "string" },
|
|
56590
|
+
taskId: { minLength: 1, type: "string" }
|
|
56591
|
+
},
|
|
56592
|
+
required: ["attachmentId", "projectId", "taskId"],
|
|
56593
|
+
type: "object"
|
|
56594
|
+
};
|
|
56595
|
+
var ProjectTaskPendingRequestParamsSchema = {
|
|
56596
|
+
additionalProperties: false,
|
|
56597
|
+
properties: {
|
|
56598
|
+
projectId: { minLength: 1, type: "string" },
|
|
56599
|
+
requestId: { minLength: 1, type: "string" },
|
|
56600
|
+
taskId: { minLength: 1, type: "string" }
|
|
56601
|
+
},
|
|
56602
|
+
required: ["projectId", "taskId", "requestId"],
|
|
56603
|
+
type: "object"
|
|
56604
|
+
};
|
|
56605
|
+
var IdempotencyHeadersSchema = {
|
|
56606
|
+
properties: { "idempotency-key": { minLength: 1, type: "string" } },
|
|
56607
|
+
required: ["idempotency-key"],
|
|
56608
|
+
type: "object"
|
|
56609
|
+
};
|
|
56610
|
+
var TaskPageQuerySchema = {
|
|
56611
|
+
additionalProperties: false,
|
|
56612
|
+
properties: {
|
|
56613
|
+
archived: { const: true, type: "boolean" },
|
|
56614
|
+
completed: { const: true, type: "boolean" },
|
|
56615
|
+
cursor: { minLength: 1, type: "string" },
|
|
56616
|
+
limit: { maximum: 100, minimum: 1, type: "integer" },
|
|
56617
|
+
pinned: { const: true, type: "boolean" },
|
|
56618
|
+
searchTerm: { maxLength: 200, minLength: 1, type: "string" }
|
|
56619
|
+
},
|
|
56620
|
+
type: "object"
|
|
56621
|
+
};
|
|
56622
|
+
var TaskSnapshotQuerySchema = {
|
|
56623
|
+
additionalProperties: false,
|
|
56624
|
+
properties: { cursor: { maxLength: 8192, minLength: 1, type: "string" } },
|
|
56625
|
+
type: "object"
|
|
56626
|
+
};
|
|
56627
|
+
var EventQuerySchema = {
|
|
56628
|
+
additionalProperties: false,
|
|
56629
|
+
properties: { afterSequence: { minimum: 0, type: "integer" } },
|
|
56630
|
+
required: ["afterSequence"],
|
|
56631
|
+
type: "object"
|
|
56632
|
+
};
|
|
56633
|
+
var ErrorResponseSchema = {
|
|
56634
|
+
additionalProperties: false,
|
|
56635
|
+
properties: {
|
|
56636
|
+
code: { minLength: 1, type: "string" },
|
|
56637
|
+
message: { minLength: 1, type: "string" }
|
|
56638
|
+
},
|
|
56639
|
+
required: ["code", "message"],
|
|
56640
|
+
type: "object"
|
|
56641
|
+
};
|
|
56642
|
+
|
|
56643
|
+
// packages/server/src/routes/history-storage-routes.ts
|
|
56644
|
+
var registerHistoryStorageRoutes = (app, context, done) => {
|
|
56645
|
+
app.post(
|
|
56646
|
+
"/v1/history/compress",
|
|
56647
|
+
{
|
|
56648
|
+
schema: {
|
|
56649
|
+
body: { type: "object", additionalProperties: false },
|
|
56650
|
+
headers: IdempotencyHeadersSchema,
|
|
56651
|
+
response: {
|
|
56652
|
+
200: HistoryCompressionResultSchema,
|
|
56653
|
+
502: AgentMutationErrorSchema,
|
|
56654
|
+
503: AgentMutationErrorSchema
|
|
56655
|
+
}
|
|
56656
|
+
}
|
|
56657
|
+
},
|
|
56658
|
+
(request2) => context.runIdempotent(
|
|
56659
|
+
["compress-history"],
|
|
56660
|
+
request2.headers["idempotency-key"],
|
|
56661
|
+
request2.body,
|
|
56662
|
+
async () => {
|
|
56663
|
+
const storage = context.provider.historyStorage;
|
|
56664
|
+
if (storage === void 0)
|
|
56665
|
+
throw new MutationHttpError(
|
|
56666
|
+
"PROVIDER_ERROR",
|
|
56667
|
+
"History compression is unavailable",
|
|
56668
|
+
503,
|
|
56669
|
+
true
|
|
56670
|
+
);
|
|
56671
|
+
try {
|
|
56672
|
+
return await storage.compress();
|
|
56673
|
+
} catch (error) {
|
|
56674
|
+
throw new MutationHttpError(
|
|
56675
|
+
"PROVIDER_ERROR",
|
|
56676
|
+
error instanceof Error ? error.message : "History compression request failed",
|
|
56677
|
+
502,
|
|
56678
|
+
true
|
|
56679
|
+
);
|
|
56680
|
+
}
|
|
56681
|
+
}
|
|
56682
|
+
)
|
|
56683
|
+
);
|
|
56684
|
+
done();
|
|
56685
|
+
};
|
|
56686
|
+
|
|
56275
56687
|
// packages/server/src/app.ts
|
|
56276
56688
|
var import_fastify2 = __toESM(require_fastify(), 1);
|
|
56277
56689
|
|
|
@@ -63479,24 +63891,6 @@ async function resolveHostAttachment(kind, requestedPath) {
|
|
|
63479
63891
|
}
|
|
63480
63892
|
}
|
|
63481
63893
|
|
|
63482
|
-
// packages/server/src/routes/context.ts
|
|
63483
|
-
var MutationHttpError = class extends Error {
|
|
63484
|
-
constructor(code, message, statusCode, retryable = false) {
|
|
63485
|
-
super(message);
|
|
63486
|
-
this.code = code;
|
|
63487
|
-
this.statusCode = statusCode;
|
|
63488
|
-
this.retryable = retryable;
|
|
63489
|
-
this.name = "MutationHttpError";
|
|
63490
|
-
}
|
|
63491
|
-
code;
|
|
63492
|
-
statusCode;
|
|
63493
|
-
retryable;
|
|
63494
|
-
};
|
|
63495
|
-
function toMcpProviderHttpError(error) {
|
|
63496
|
-
const message = error instanceof Error && error.message.trim().length > 0 ? error.message : "MCP provider request failed";
|
|
63497
|
-
return new MutationHttpError("PROVIDER_ERROR", message, 502, true);
|
|
63498
|
-
}
|
|
63499
|
-
|
|
63500
63894
|
// packages/server/src/request-logging.ts
|
|
63501
63895
|
var import_fastify = __toESM(require_fastify(), 1);
|
|
63502
63896
|
var requestErrorCodes = /* @__PURE__ */ new WeakMap();
|
|
@@ -63601,21 +63995,9 @@ function taskFromSnapshot(snapshot, overrides = {}) {
|
|
|
63601
63995
|
}
|
|
63602
63996
|
function createModelCatalogLoader(provider, repository) {
|
|
63603
63997
|
return async () => {
|
|
63604
|
-
const
|
|
63605
|
-
|
|
63606
|
-
|
|
63607
|
-
]);
|
|
63608
|
-
let models;
|
|
63609
|
-
try {
|
|
63610
|
-
const providerModels = await provider.listModels();
|
|
63611
|
-
models = activeConnection.mode === "custom" ? normalizeCustomModelReasoning(providerModels) : providerModels;
|
|
63612
|
-
} catch (error) {
|
|
63613
|
-
const cacheMatchesConnection = storedConnection?.mode === activeConnection.mode && storedConnection.customBaseUrl === activeConnection.customBaseUrl;
|
|
63614
|
-
if (cacheMatchesConnection && storedConnection.customModels !== null) {
|
|
63615
|
-
return activeConnection.mode === "custom" ? normalizeCustomModelReasoning(storedConnection.customModels) : storedConnection.customModels;
|
|
63616
|
-
}
|
|
63617
|
-
throw error;
|
|
63618
|
-
}
|
|
63998
|
+
const activeConnection = await provider.readProviderConnection();
|
|
63999
|
+
const providerModels = await provider.listModels();
|
|
64000
|
+
const models = activeConnection.mode === "custom" ? normalizeCustomModelReasoning(providerModels) : providerModels;
|
|
63619
64001
|
await repository.writeProviderConnection({
|
|
63620
64002
|
customBaseUrl: activeConnection.customBaseUrl,
|
|
63621
64003
|
customModels: {
|
|
@@ -66128,6 +66510,7 @@ function createSkillMarketService(options) {
|
|
|
66128
66510
|
const { page } = await discover(forceReload);
|
|
66129
66511
|
return { ...page, data: await enrichInstalledSkills(page.data) };
|
|
66130
66512
|
},
|
|
66513
|
+
reconcileOfficialPlugins: () => options.provider.reconcileOfficialPlugins(),
|
|
66131
66514
|
async listOfficialPlugins(forceRefetch) {
|
|
66132
66515
|
const projects = await options.projectRepository.list();
|
|
66133
66516
|
return options.provider.listOfficialPlugins(projects, forceRefetch);
|
|
@@ -66714,137 +67097,6 @@ var registerAccessRoutes = (app, options, done) => {
|
|
|
66714
67097
|
done();
|
|
66715
67098
|
};
|
|
66716
67099
|
|
|
66717
|
-
// packages/server/src/routes/schemas.ts
|
|
66718
|
-
var ProjectParamsSchema = {
|
|
66719
|
-
additionalProperties: false,
|
|
66720
|
-
properties: { projectId: { minLength: 1, type: "string" } },
|
|
66721
|
-
required: ["projectId"],
|
|
66722
|
-
type: "object"
|
|
66723
|
-
};
|
|
66724
|
-
var ProjectAttachmentParamsSchema = {
|
|
66725
|
-
additionalProperties: false,
|
|
66726
|
-
properties: {
|
|
66727
|
-
kind: AgentAttachmentKindSchema,
|
|
66728
|
-
projectId: { minLength: 1, type: "string" }
|
|
66729
|
-
},
|
|
66730
|
-
required: ["kind", "projectId"],
|
|
66731
|
-
type: "object"
|
|
66732
|
-
};
|
|
66733
|
-
var ProjectHostAttachmentParamsSchema = {
|
|
66734
|
-
additionalProperties: false,
|
|
66735
|
-
properties: {
|
|
66736
|
-
kind: HostFileKindSchema,
|
|
66737
|
-
projectId: { minLength: 1, type: "string" }
|
|
66738
|
-
},
|
|
66739
|
-
required: ["kind", "projectId"],
|
|
66740
|
-
type: "object"
|
|
66741
|
-
};
|
|
66742
|
-
var ProjectStoredAttachmentParamsSchema = {
|
|
66743
|
-
additionalProperties: false,
|
|
66744
|
-
properties: {
|
|
66745
|
-
attachmentId: { minLength: 1, type: "string" },
|
|
66746
|
-
projectId: { minLength: 1, type: "string" }
|
|
66747
|
-
},
|
|
66748
|
-
required: ["attachmentId", "projectId"],
|
|
66749
|
-
type: "object"
|
|
66750
|
-
};
|
|
66751
|
-
var ProjectTaskParamsSchema = {
|
|
66752
|
-
additionalProperties: false,
|
|
66753
|
-
properties: {
|
|
66754
|
-
projectId: { minLength: 1, type: "string" },
|
|
66755
|
-
taskId: { minLength: 1, type: "string" }
|
|
66756
|
-
},
|
|
66757
|
-
required: ["projectId", "taskId"],
|
|
66758
|
-
type: "object"
|
|
66759
|
-
};
|
|
66760
|
-
var ProjectTaskTurnParamsSchema = {
|
|
66761
|
-
additionalProperties: false,
|
|
66762
|
-
properties: {
|
|
66763
|
-
projectId: { minLength: 1, type: "string" },
|
|
66764
|
-
taskId: { minLength: 1, type: "string" },
|
|
66765
|
-
turnId: { minLength: 1, type: "string" }
|
|
66766
|
-
},
|
|
66767
|
-
required: ["projectId", "taskId", "turnId"],
|
|
66768
|
-
type: "object"
|
|
66769
|
-
};
|
|
66770
|
-
var ProjectTaskQueueParamsSchema = {
|
|
66771
|
-
additionalProperties: false,
|
|
66772
|
-
properties: {
|
|
66773
|
-
projectId: { minLength: 1, type: "string" },
|
|
66774
|
-
queuedSubmissionId: { minLength: 1, type: "string" },
|
|
66775
|
-
taskId: { minLength: 1, type: "string" }
|
|
66776
|
-
},
|
|
66777
|
-
required: ["projectId", "taskId", "queuedSubmissionId"],
|
|
66778
|
-
type: "object"
|
|
66779
|
-
};
|
|
66780
|
-
var ProjectTaskTerminalParamsSchema = {
|
|
66781
|
-
additionalProperties: false,
|
|
66782
|
-
properties: {
|
|
66783
|
-
projectId: { minLength: 1, type: "string" },
|
|
66784
|
-
taskId: { minLength: 1, type: "string" },
|
|
66785
|
-
terminalId: { minLength: 1, type: "string" }
|
|
66786
|
-
},
|
|
66787
|
-
required: ["projectId", "taskId", "terminalId"],
|
|
66788
|
-
type: "object"
|
|
66789
|
-
};
|
|
66790
|
-
var ProjectTaskAttachmentParamsSchema = {
|
|
66791
|
-
additionalProperties: false,
|
|
66792
|
-
properties: {
|
|
66793
|
-
attachmentId: { minLength: 1, type: "string" },
|
|
66794
|
-
projectId: { minLength: 1, type: "string" },
|
|
66795
|
-
taskId: { minLength: 1, type: "string" }
|
|
66796
|
-
},
|
|
66797
|
-
required: ["attachmentId", "projectId", "taskId"],
|
|
66798
|
-
type: "object"
|
|
66799
|
-
};
|
|
66800
|
-
var ProjectTaskPendingRequestParamsSchema = {
|
|
66801
|
-
additionalProperties: false,
|
|
66802
|
-
properties: {
|
|
66803
|
-
projectId: { minLength: 1, type: "string" },
|
|
66804
|
-
requestId: { minLength: 1, type: "string" },
|
|
66805
|
-
taskId: { minLength: 1, type: "string" }
|
|
66806
|
-
},
|
|
66807
|
-
required: ["projectId", "taskId", "requestId"],
|
|
66808
|
-
type: "object"
|
|
66809
|
-
};
|
|
66810
|
-
var IdempotencyHeadersSchema = {
|
|
66811
|
-
properties: { "idempotency-key": { minLength: 1, type: "string" } },
|
|
66812
|
-
required: ["idempotency-key"],
|
|
66813
|
-
type: "object"
|
|
66814
|
-
};
|
|
66815
|
-
var TaskPageQuerySchema = {
|
|
66816
|
-
additionalProperties: false,
|
|
66817
|
-
properties: {
|
|
66818
|
-
archived: { const: true, type: "boolean" },
|
|
66819
|
-
completed: { const: true, type: "boolean" },
|
|
66820
|
-
cursor: { minLength: 1, type: "string" },
|
|
66821
|
-
limit: { maximum: 100, minimum: 1, type: "integer" },
|
|
66822
|
-
pinned: { const: true, type: "boolean" },
|
|
66823
|
-
searchTerm: { maxLength: 200, minLength: 1, type: "string" }
|
|
66824
|
-
},
|
|
66825
|
-
type: "object"
|
|
66826
|
-
};
|
|
66827
|
-
var TaskSnapshotQuerySchema = {
|
|
66828
|
-
additionalProperties: false,
|
|
66829
|
-
properties: { cursor: { maxLength: 8192, minLength: 1, type: "string" } },
|
|
66830
|
-
type: "object"
|
|
66831
|
-
};
|
|
66832
|
-
var EventQuerySchema = {
|
|
66833
|
-
additionalProperties: false,
|
|
66834
|
-
properties: { afterSequence: { minimum: 0, type: "integer" } },
|
|
66835
|
-
required: ["afterSequence"],
|
|
66836
|
-
type: "object"
|
|
66837
|
-
};
|
|
66838
|
-
var ErrorResponseSchema = {
|
|
66839
|
-
additionalProperties: false,
|
|
66840
|
-
properties: {
|
|
66841
|
-
code: { minLength: 1, type: "string" },
|
|
66842
|
-
message: { minLength: 1, type: "string" }
|
|
66843
|
-
},
|
|
66844
|
-
required: ["code", "message"],
|
|
66845
|
-
type: "object"
|
|
66846
|
-
};
|
|
66847
|
-
|
|
66848
67100
|
// packages/server/src/routes/event-routes.ts
|
|
66849
67101
|
var MAX_TIMER_DELAY_MS = 2147483647;
|
|
66850
67102
|
function scheduleSessionExpiry(socket, expiresAt) {
|
|
@@ -68760,23 +69012,18 @@ function createSerializableModelPage(page) {
|
|
|
68760
69012
|
nextCursor: page.nextCursor
|
|
68761
69013
|
};
|
|
68762
69014
|
}
|
|
68763
|
-
async function resolveReconnectModels(input, provider
|
|
69015
|
+
async function resolveReconnectModels(input, provider) {
|
|
68764
69016
|
if (input.models !== void 0) return void 0;
|
|
68765
|
-
const
|
|
68766
|
-
provider.readProviderConnection(),
|
|
68767
|
-
repository.readProviderConnection()
|
|
68768
|
-
]);
|
|
69017
|
+
const activeConnection = await provider.readProviderConnection();
|
|
68769
69018
|
if (activeConnection.mode === "custom" && hasSameBaseUrl(activeConnection.customBaseUrl, input.baseUrl)) {
|
|
68770
69019
|
try {
|
|
68771
69020
|
return normalizeCustomModelReasoning(
|
|
68772
69021
|
createSerializableModelPage(await provider.listModels())
|
|
68773
69022
|
);
|
|
68774
69023
|
} catch {
|
|
69024
|
+
return { data: [], nextCursor: null };
|
|
68775
69025
|
}
|
|
68776
69026
|
}
|
|
68777
|
-
if (persistedConnection?.mode === "custom" && persistedConnection.customModels !== null && hasSameBaseUrl(persistedConnection.customBaseUrl, input.baseUrl)) {
|
|
68778
|
-
return normalizeCustomModelReasoning(persistedConnection.customModels);
|
|
68779
|
-
}
|
|
68780
69027
|
return void 0;
|
|
68781
69028
|
}
|
|
68782
69029
|
|
|
@@ -68850,11 +69097,7 @@ var registerProviderConnectionRoutes = (app, context, done) => {
|
|
|
68850
69097
|
request2.headers["idempotency-key"],
|
|
68851
69098
|
request2.body,
|
|
68852
69099
|
async () => {
|
|
68853
|
-
const fallbackModels = await resolveReconnectModels(
|
|
68854
|
-
request2.body,
|
|
68855
|
-
provider,
|
|
68856
|
-
providerConnectionRepository
|
|
68857
|
-
);
|
|
69100
|
+
const fallbackModels = await resolveReconnectModels(request2.body, provider);
|
|
68858
69101
|
const result = fallbackModels === void 0 ? await provider.configureCustomProvider(request2.body) : await provider.configureCustomProvider(request2.body, fallbackModels);
|
|
68859
69102
|
await providerConnectionRepository.writeProviderConnection({
|
|
68860
69103
|
customBaseUrl: result.status.customBaseUrl,
|
|
@@ -71710,6 +71953,22 @@ var mutationErrors = {
|
|
|
71710
71953
|
};
|
|
71711
71954
|
var registerSkillMarketRoutes = (app, context, done) => {
|
|
71712
71955
|
const { runIdempotent, skillMarketService } = context;
|
|
71956
|
+
app.post(
|
|
71957
|
+
"/v1/plugins/official/reconcile",
|
|
71958
|
+
{
|
|
71959
|
+
schema: {
|
|
71960
|
+
body: Type.Object({}, { additionalProperties: false }),
|
|
71961
|
+
headers: IdempotencyHeadersSchema,
|
|
71962
|
+
response: { 200: PluginReconcileResultSchema, ...mutationErrors }
|
|
71963
|
+
}
|
|
71964
|
+
},
|
|
71965
|
+
(request2) => runIdempotent(
|
|
71966
|
+
["reconcile-official-plugins"],
|
|
71967
|
+
request2.headers["idempotency-key"],
|
|
71968
|
+
request2.body,
|
|
71969
|
+
() => skillMarketService.reconcileOfficialPlugins()
|
|
71970
|
+
)
|
|
71971
|
+
);
|
|
71713
71972
|
app.get(
|
|
71714
71973
|
"/v1/skills/installed",
|
|
71715
71974
|
{ schema: { response: { 200: InstalledSkillPageSchema } } },
|
|
@@ -73602,6 +73861,7 @@ async function createCodexlyServer(options) {
|
|
|
73602
73861
|
});
|
|
73603
73862
|
await app.register(registerRuntimeRoutes, routeContext);
|
|
73604
73863
|
await app.register(registerPersonalizationRoutes, routeContext);
|
|
73864
|
+
await app.register(registerHistoryStorageRoutes, routeContext);
|
|
73605
73865
|
await app.register(registerProviderConnectionRoutes, routeContext);
|
|
73606
73866
|
await app.register(registerPetRoutes, routeContext);
|
|
73607
73867
|
await app.register(registerProjectRoutes, routeContext);
|