@qwen-code/qwen-code 0.20.0-nightly.20260721.cda0e0348 → 0.20.0-preview.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/bundled/qc-helper/docs/configuration/settings.md +1 -1
- package/bundled/qc-helper/docs/features/auto-mode.md +19 -16
- package/bundled/qc-helper/docs/features/sub-agents.md +16 -7
- package/bundled/qc-helper/docs/integration-github-action.md +9 -9
- package/bundled/review/DESIGN.md +2 -2
- package/bundled/review/SKILL.md +4 -4
- package/chunks/{MaxSizedBox-EE76OHAP.js → MaxSizedBox-53BTJ3JK.js} +41 -34
- package/chunks/{StandaloneSessionPicker-WZH4PC3K.js → StandaloneSessionPicker-VMFIXQ44.js} +57 -50
- package/chunks/{acpAgent-2ATF4LMP.js → acpAgent-5WYAVSFG.js} +1135 -428
- package/chunks/{agent-KTOOFWMV.js → agent-44FM7PBX.js} +37 -30
- package/chunks/agent-headless-CDBMKM44.js +68 -0
- package/chunks/{anthropicContentGenerator-W4JLNYWQ.js → anthropicContentGenerator-NMSS7IMV.js} +13 -12
- package/chunks/{artifact-tool-WBCAMD3O.js → artifact-tool-56T5IMBP.js} +3 -3
- package/chunks/{askUserQuestion-6DZC4UV5.js → askUserQuestion-E25OBIC2.js} +3 -3
- package/chunks/{bridge-T4TLAZSJ.js → bridge-IQZT3KU2.js} +42 -35
- package/chunks/{build-SSCNEHZZ.js → build-GHIZ4MSZ.js} +1 -1
- package/chunks/{ca-ISKASTR5.js → ca-N6VVUFVB.js} +5 -1
- package/chunks/{channel-worker-group-QZV2SP5U.js → channel-worker-group-LFBT7K64.js} +3 -3
- package/chunks/{channel-worker-manager-3GMAU45H.js → channel-worker-manager-3RUPERG2.js} +3 -3
- package/chunks/{channel-worker-supervisor-QCXSXCRY.js → channel-worker-supervisor-A3KVATD3.js} +2 -2
- package/chunks/{chunk-OV2KB55J.js → chunk-22OH7L7I.js} +5 -5
- package/chunks/chunk-2RFKHEXL.js +74 -0
- package/chunks/{chunk-KRI4VCHX.js → chunk-45AIVIUL.js} +9 -9
- package/chunks/{chunk-2GFRA3MN.js → chunk-45DNGJKC.js} +3 -3
- package/chunks/{chunk-JD3MKVKL.js → chunk-4K56OJFJ.js} +1 -1
- package/chunks/{chunk-KTUQMDEP.js → chunk-4K7VDKAD.js} +1 -1
- package/chunks/{chunk-QKYTTBYW.js → chunk-4LVZNIDO.js} +1 -1
- package/chunks/{chunk-ZEOZL37W.js → chunk-57FIIFJN.js} +1 -1
- package/chunks/{chunk-6EFTQYW7.js → chunk-5I5BM454.js} +1 -1
- package/chunks/{chunk-JR6UJ24K.js → chunk-5JX7FPHW.js} +2 -2
- package/chunks/{chunk-25Y6JSH2.js → chunk-5MZSD2JX.js} +6 -6
- package/chunks/{chunk-GPILFVPY.js → chunk-66RKDODM.js} +1 -1
- package/chunks/{chunk-L4YSPHR4.js → chunk-6AWRQ4T2.js} +8 -6
- package/chunks/{chunk-GMGDLUC7.js → chunk-6IL7KRLE.js} +1 -1
- package/chunks/{chunk-JQMBPGOU.js → chunk-6NHK6HS7.js} +3 -3
- package/chunks/{chunk-EDMGFJ3E.js → chunk-6OHCY3OB.js} +2 -2
- package/chunks/chunk-6PVPNMXU.js +29 -0
- package/chunks/{chunk-NO6XTCYT.js → chunk-6RQ5IPUX.js} +18366 -16879
- package/chunks/{chunk-BDBMYST4.js → chunk-6X4GWOPW.js} +1 -1
- package/chunks/chunk-7362QS5B.js +2256 -0
- package/chunks/{chunk-USTF7LPI.js → chunk-7KZ2KYAD.js} +27 -23
- package/chunks/{chunk-AYCDXHZB.js → chunk-7Z6JQEL6.js} +1 -1
- package/chunks/{chunk-ABIL4ZQU.js → chunk-A7CUSHP7.js} +1 -1
- package/chunks/{chunk-246TW4IX.js → chunk-BEKZWVJJ.js} +3 -373
- package/chunks/{chunk-LC5CAVMS.js → chunk-BKZEHVPV.js} +171 -169
- package/chunks/{chunk-4CWPMWCD.js → chunk-BRHHXGWL.js} +6 -4
- package/chunks/{chunk-AY3CSB6F.js → chunk-BXXWWCLA.js} +4 -4
- package/chunks/{chunk-G45NOBV7.js → chunk-C3YZ5CLY.js} +7 -6
- package/chunks/{chunk-XCHUDLER.js → chunk-CHLNJN3C.js} +1 -1
- package/chunks/{chunk-JRW46GQX.js → chunk-CJTAUXKG.js} +3 -3
- package/chunks/{chunk-KTNIZG2C.js → chunk-CMRYLH67.js} +2 -2
- package/chunks/{chunk-WQQDJE2P.js → chunk-DKZISEDB.js} +54 -51
- package/chunks/{chunk-2ITGJJE2.js → chunk-DORJSBMF.js} +6 -6
- package/chunks/{chunk-5SCI6E3E.js → chunk-E4IMU4Y5.js} +1 -1
- package/chunks/{chunk-7KGXAXF7.js → chunk-E5MVGARW.js} +1 -1
- package/chunks/{chunk-FYA3Y5JR.js → chunk-EJFHUF3D.js} +5 -5
- package/chunks/{chunk-CG2HPAVD.js → chunk-EPN5MKRH.js} +2 -2
- package/chunks/{chunk-NEEB7UEN.js → chunk-FFFM6NJV.js} +1 -2
- package/chunks/chunk-FMXMKPI5.js +1780 -0
- package/chunks/{chunk-FEOZBUMT.js → chunk-FODK6UMO.js} +0 -27
- package/chunks/{chunk-DZZIOIVF.js → chunk-FSXCGBXB.js} +1 -1
- package/chunks/chunk-GLNBDYUX.js +38 -0
- package/chunks/{chunk-6MC5ASQK.js → chunk-GOWMC4CS.js} +4 -4
- package/chunks/{chunk-OONJNQ42.js → chunk-GPSKDNEE.js} +3 -3
- package/chunks/{chunk-W3BKN3LO.js → chunk-GZBHRTNM.js} +1 -1
- package/chunks/{chunk-XVVH63JG.js → chunk-H4AR2JQF.js} +3 -3
- package/chunks/{chunk-LWQ4IAOJ.js → chunk-H4OWOFZL.js} +2 -2
- package/chunks/chunk-HTR4WV6U.js +327 -0
- package/chunks/{chunk-IYZENXFW.js → chunk-IE7TPOXP.js} +1 -1
- package/chunks/{chunk-R3VZNHRX.js → chunk-IT27F3ES.js} +290 -80
- package/chunks/{chunk-5JX5EWR5.js → chunk-J3VSRG5Y.js} +61 -21
- package/chunks/{chunk-R5N7NF5D.js → chunk-J63IP5ZT.js} +7 -7
- package/chunks/{chunk-G45X5TRN.js → chunk-JCW2R7WC.js} +1 -72
- package/chunks/{chunk-U4VGYZN7.js → chunk-JD5FHQ3N.js} +3 -3
- package/chunks/{chunk-5WG2K5RH.js → chunk-JIHHXJFH.js} +90 -31
- package/chunks/{chunk-AWVS63WA.js → chunk-JJEFX6U5.js} +28 -1766
- package/chunks/{chunk-5PZ6R37W.js → chunk-JT7HACMQ.js} +2 -2
- package/chunks/{chunk-2GOPPEHK.js → chunk-JWJVZHT5.js} +2 -2
- package/chunks/{chunk-FZVSFBNW.js → chunk-JYS55H6Z.js} +41 -1
- package/chunks/{chunk-6DHWO5ZF.js → chunk-K4VB66QF.js} +11 -11
- package/chunks/{chunk-EIAK6Q2B.js → chunk-KHOVYUHX.js} +2 -2
- package/chunks/{chunk-2CWOJ2FA.js → chunk-KNTYRZD4.js} +8 -8
- package/chunks/{chunk-ACW3VNUE.js → chunk-KQQ757OQ.js} +1 -1
- package/chunks/chunk-KWK7UE6L.js +6194 -0
- package/chunks/{chunk-OOCI5VVU.js → chunk-LIZRAKPB.js} +1 -1
- package/chunks/{chunk-4RA7PWIY.js → chunk-LMQNDPVP.js} +3 -3
- package/chunks/chunk-M7WBGLYP.js +151 -0
- package/chunks/chunk-NABLFI57.js +82 -0
- package/chunks/{chunk-EZVDJFZ7.js → chunk-NPQDJGKU.js} +1 -1
- package/chunks/{chunk-GH7OEOYU.js → chunk-NYPUWHHC.js} +4 -4
- package/chunks/{chunk-DMRO4GU2.js → chunk-OAGG6CRR.js} +1 -1
- package/chunks/chunk-OQ5SYCPE.js +10017 -0
- package/chunks/{chunk-C27BYUX6.js → chunk-OQB4EXO4.js} +14 -11
- package/chunks/chunk-OZYV6F53.js +391 -0
- package/chunks/{chunk-EAUYY7SS.js → chunk-Q2YKNMLS.js} +3 -3
- package/chunks/{chunk-PYNCSQSI.js → chunk-Q6DEGTYO.js} +50 -1493
- package/chunks/{chunk-PBATSWUQ.js → chunk-QBUDF33N.js} +1 -1
- package/chunks/{chunk-32F7BZSK.js → chunk-QD6BRERJ.js} +2 -2
- package/chunks/{chunk-6RVJRVQR.js → chunk-QF4DPYPH.js} +1 -1
- package/chunks/{chunk-BVLROR2T.js → chunk-QLJUC7TG.js} +1 -1
- package/chunks/{chunk-UEY4AYUL.js → chunk-QNLNLENL.js} +2 -2
- package/chunks/{chunk-XZOBDSDG.js → chunk-QTROYZUC.js} +83 -39
- package/chunks/{chunk-BWK3FX3K.js → chunk-RAUHV362.js} +3 -3
- package/chunks/{chunk-JPRLCXAO.js → chunk-RUNR5DAE.js} +4 -4
- package/chunks/{chunk-RFIAR4YL.js → chunk-RV4C2ZFG.js} +1 -1
- package/chunks/{chunk-E5QFCC4X.js → chunk-RWCQJC5W.js} +51 -35
- package/chunks/{chunk-BUKOHGBE.js → chunk-S4BT3PX3.js} +3 -3
- package/chunks/{chunk-PFKNXN67.js → chunk-SOMSZ6W3.js} +13 -8
- package/chunks/{chunk-JNWZQ27S.js → chunk-SP5WRGVG.js} +3 -3
- package/chunks/{chunk-FSL5W5TI.js → chunk-T2L47JJK.js} +3 -3
- package/chunks/{chunk-TB6UDU4T.js → chunk-THJNPLI4.js} +16 -16
- package/chunks/chunk-TJQXJJX7.js +121 -0
- package/chunks/chunk-U7ZFW55U.js +2098 -0
- package/chunks/{chunk-W7H223ZZ.js → chunk-UGYMA4EI.js} +1 -1
- package/chunks/{chunk-X6YQWCIJ.js → chunk-UH3WSE5L.js} +13 -1
- package/chunks/{chunk-WRRF6TEQ.js → chunk-VHYCUGOT.js} +5 -1
- package/chunks/{chunk-LLDGOZMJ.js → chunk-VI7UU7ZI.js} +4 -4
- package/chunks/{chunk-IM2A6YO3.js → chunk-VLBJ7ZUG.js} +1 -1
- package/chunks/{chunk-CUJX3F4X.js → chunk-VTKWURCJ.js} +5 -5
- package/chunks/{chunk-R3VWUU2E.js → chunk-VYPFXUCB.js} +1 -1
- package/chunks/chunk-WHGVTP7Q.js +1049 -0
- package/chunks/{chunk-5YVZ2XLV.js → chunk-X6KLM4LZ.js} +8 -8
- package/chunks/{chunk-D2VIDMVM.js → chunk-X6N25LXS.js} +2 -2
- package/chunks/{chunk-B452RETY.js → chunk-XFWD3PCA.js} +1 -1
- package/chunks/chunk-XHATNRQA.js +1500 -0
- package/chunks/{chunk-YGIUIIIF.js → chunk-XP32LURS.js} +3 -3
- package/chunks/{chunk-FCUUJKZF.js → chunk-YDLVKCZJ.js} +496 -278
- package/chunks/{chunk-OP4MOGXF.js → chunk-YM3SZTH4.js} +8 -1
- package/chunks/{chunk-GKY2OJ7R.js → chunk-ZHERRXZJ.js} +1 -1
- package/chunks/chunk-ZJVVETCV.js +20600 -0
- package/chunks/{computer-use-M6MGRJF2.js → computer-use-FMEBQMCB.js} +42 -35
- package/chunks/{config-utils-MOGE4EVB.js → config-utils-WYUQ7II4.js} +1 -1
- package/chunks/contextCommand-5YK3QNNJ.js +73 -0
- package/chunks/{create-sub-session-P26FE5GG.js → create-sub-session-AZ77LBL3.js} +3 -3
- package/chunks/{create-sub-session-MB35IHCR.js → create-sub-session-MLELTOCW.js} +37 -30
- package/chunks/{cron-create-JWFHBDRQ.js → cron-create-KTWJM7QT.js} +5 -5
- package/chunks/{cron-delete-GDX4E26G.js → cron-delete-2P3I5ULL.js} +5 -5
- package/chunks/{cron-list-USMAIWPT.js → cron-list-PXDPGEDQ.js} +5 -5
- package/chunks/daemon-status-provider-FXMOD242.js +81 -0
- package/chunks/{de-I7ZIYXZC.js → de-4IBXM7CN.js} +5 -1
- package/chunks/{dist-VGJTZL4E.js → dist-XRYV6TJP.js} +32 -3
- package/chunks/{earlyInputCapture-7QJX25AC.js → earlyInputCapture-N3J42S2G.js} +38 -31
- package/chunks/{edit-BTPQWGAA.js → edit-T6GO7VPW.js} +42 -37
- package/chunks/{en-XE34GKAA.js → en-USMCCJAJ.js} +5 -1
- package/chunks/{enter-worktree-N3SEYKOO.js → enter-worktree-OL3FMR3A.js} +42 -35
- package/chunks/{enterPlanMode-TN2JV5MY.js → enterPlanMode-LEP7BSBX.js} +42 -35
- package/chunks/{environment-HP6RK262.js → environment-6LNBH2LJ.js} +39 -32
- package/chunks/{errors-VHGRDDOQ.js → errors-IM3H4DNG.js} +39 -32
- package/chunks/{exit-worktree-FI3SQY3U.js → exit-worktree-6MOANJMY.js} +42 -35
- package/chunks/{exitPlanMode-NZWRVIIY.js → exitPlanMode-VLBSWDJK.js} +42 -35
- package/chunks/{fast-path-EGP7AXNR.js → fast-path-3Z3JY4BL.js} +3 -3
- package/chunks/{fast-path-settings-DAOVFADC.js → fast-path-settings-XB3CPUJT.js} +2 -2
- package/chunks/{fr-X7KDVZIY.js → fr-WVHEBDDB.js} +5 -1
- package/chunks/{gemini-AN5YMD5O.js → gemini-VDE6O6CX.js} +89 -82
- package/chunks/{geminiContentGenerator-ABTMU4FE.js → geminiContentGenerator-NN4ZWALY.js} +5 -5
- package/chunks/{getMachineId-bsd-EXV7SWPA.js → getMachineId-bsd-QFVLPUPT.js} +1 -1
- package/chunks/{getMachineId-darwin-IUOMFXU3.js → getMachineId-darwin-DGMQQE2E.js} +1 -1
- package/chunks/{getMachineId-linux-K7XJYFHL.js → getMachineId-linux-R4Z6CSWC.js} +1 -1
- package/chunks/{getMachineId-unsupported-EA5FDRJ6.js → getMachineId-unsupported-Z3SBVBUV.js} +1 -1
- package/chunks/{getMachineId-win-KBA6RAI5.js → getMachineId-win-SCK5UFDT.js} +1 -1
- package/chunks/{glob-5YABOPJB.js → glob-7AZHIY3Z.js} +42 -35
- package/chunks/{grep-U67FKUJT.js → grep-E2KEORSD.js} +42 -35
- package/chunks/handleAutoUpdate-BCNVTQWW.js +74 -0
- package/chunks/{i18n-GMQV324P.js → i18n-VP4NCTZN.js} +38 -31
- package/chunks/initializer-5UB4SRPK.js +79 -0
- package/chunks/installationInfo-LNYJCXN3.js +73 -0
- package/chunks/{ja-2ICT3KXF.js → ja-KY4ROZTE.js} +5 -1
- package/chunks/{keychain-token-storage-DWRJMNH3.js → keychain-token-storage-6ACJDYIB.js} +3 -3
- package/chunks/list-NIZ77KPE.js +82 -0
- package/chunks/loadedSettingsAdapter-IQPRO2SO.js +76 -0
- package/chunks/{loop-wakeup-5GLTUBHA.js → loop-wakeup-RNMRVA66.js} +6 -6
- package/chunks/{ls-FHBY3Y7I.js → ls-J2ZI5XYK.js} +5 -5
- package/chunks/{lsp-B6VMEW6Y.js → lsp-UMS3NUB5.js} +3 -3
- package/chunks/managed-npm-update-GFRDCD77.js +333 -0
- package/chunks/mcp-TCUL7LT2.js +76 -0
- package/chunks/{monitor-Z7NZNNRC.js → monitor-NDYKU5VS.js} +42 -35
- package/chunks/nonInteractiveCli-UHSHJDFD.js +133 -0
- package/chunks/{notebook-edit-GFOYAQAZ.js → notebook-edit-GF3HSMXN.js} +43 -38
- package/chunks/{openaiContentGenerator-XAAYV6WR.js → openaiContentGenerator-GE2I3C2T.js} +22 -17
- package/chunks/{pidfile-ILI37KRQ.js → pidfile-KS4IGGNX.js} +38 -31
- package/chunks/{processUtils-LIPJMLVZ.js → processUtils-TEQQ47A2.js} +2 -2
- package/chunks/{pt-JJ4XPIBP.js → pt-OK455PLH.js} +5 -1
- package/chunks/{qwenContentGenerator-DLJ3KKGZ.js → qwenContentGenerator-NDYOEIUY.js} +44 -35
- package/chunks/{qwenOAuth2-J47FU5PW.js → qwenOAuth2-CXDOBPSK.js} +18 -15
- package/chunks/{read-file-LCQ2KNNP.js → read-file-QDVJX75S.js} +13 -11
- package/chunks/{read-mcp-resource-AKCL7I43.js → read-mcp-resource-F6HYMDUY.js} +3 -3
- package/chunks/{record-artifact-PEUB7727.js → record-artifact-7GCFLDD7.js} +3 -3
- package/chunks/{resumeHistoryUtils-PSCSAKA6.js → resumeHistoryUtils-5EAQ76W4.js} +43 -36
- package/chunks/ripGrep-WANMXNVT.js +66 -0
- package/chunks/{ru-STR4KTW7.js → ru-7SPDGMGD.js} +5 -1
- package/chunks/{run-qwen-serve-DQ5ZIR36.js → run-qwen-serve-TC6M3WTJ.js} +85 -80
- package/chunks/{runtime-6MQFF2A6.js → runtime-BB73E3Z3.js} +45 -38
- package/chunks/{scheduler-K4S7NY3G.js → scheduler-NDU5OFSJ.js} +37 -30
- package/chunks/sdk-exporters-grpc-ETLH47EP.js +23214 -0
- package/chunks/sdk-exporters-http-T3POX73F.js +563 -0
- package/chunks/sdk-impl-NSLPDH6I.js +9193 -0
- package/chunks/{send-message-3RHE7HSM.js → send-message-PYIJ2PZL.js} +6 -4
- package/chunks/{serve-JFAAPC5J.js → serve-BTIRWZJ4.js} +43 -36
- package/chunks/{server-QB6CHRZN.js → server-JKAQBE2E.js} +277 -208
- package/chunks/{session-FKPVXAAB.js → session-66QFVVDS.js} +81 -74
- package/chunks/{settings-CADELKSU.js → settings-NBN6GY7E.js} +46 -39
- package/chunks/{shell-EON6WVVH.js → shell-JDSLAQVH.js} +37 -30
- package/chunks/{skill-FKSYXJ5U.js → skill-TNMHTO3C.js} +24 -20
- package/chunks/{spawnChannel-VM5IHLJO.js → spawnChannel-TFLHHXOC.js} +39 -32
- package/chunks/{src-Q4XB6SVD.js → src-YFXMPRBL.js} +254 -210
- package/chunks/{standalone-update-KGZHPBMA.js → standalone-update-2CQVQRSC.js} +39 -32
- package/chunks/{startInteractiveUI-EYDJIIIZ.js → startInteractiveUI-6C6PENRW.js} +370 -266
- package/chunks/{syntheticOutput-FG5PQKIR.js → syntheticOutput-H7RTI5KL.js} +4 -4
- package/chunks/{task-create-HX32YXO7.js → task-create-7474AJJD.js} +10 -8
- package/chunks/{task-list-QWSY4ZIU.js → task-list-633HGOIB.js} +6 -6
- package/chunks/{task-stop-GWC6UWAL.js → task-stop-MNUGHPIA.js} +3 -3
- package/chunks/{task-update-NCTAB73Q.js → task-update-66GQB5LI.js} +10 -8
- package/chunks/{team-create-CYP3YKYT.js → team-create-IPBHD26Z.js} +42 -35
- package/chunks/{team-delete-KK37HTOG.js → team-delete-BB3CG3QF.js} +6 -6
- package/chunks/{team-plan-approval-5LXIFKNV.js → team-plan-approval-WIGEJXXM.js} +42 -35
- package/chunks/theme-manager-OZYKJG3W.js +70 -0
- package/chunks/{todoWrite-ERCAMLFS.js → todoWrite-KRAUN54W.js} +5 -5
- package/chunks/{tool-search-Q27QHQU3.js → tool-search-J3CBYJRB.js} +21 -17
- package/chunks/total-session-admission-CNBQRM44.js +76 -0
- package/chunks/{trustedFolders-C6664IQC.js → trustedFolders-5FJRCHGN.js} +38 -31
- package/chunks/{update-relaunch-QC3E4FZW.js → update-relaunch-S5APSFJS.js} +13 -13
- package/chunks/{updateCheck-MVUKJMBX.js → updateCheck-BPSMOZXS.js} +46 -34
- package/chunks/{useAutoAcceptIndicator-J234IFIS.js → useAutoAcceptIndicator-WZVJ52U3.js} +47 -40
- package/chunks/{validateNonInterActiveAuth-YPPEKX4N.js → validateNonInterActiveAuth-64SVMELJ.js} +75 -68
- package/chunks/{version-5IXFQ4PT.js → version-SQL27GUA.js} +1 -1
- package/chunks/{web-fetch-L62NQVKN.js → web-fetch-K7QCHIOJ.js} +100 -41
- package/chunks/web-search-KQPQFM7A.js +731 -0
- package/chunks/{workflow-6MHBBFQU.js → workflow-BFTW72A5.js} +47 -39
- package/chunks/workspace-providers-status-4PLI2VFC.js +79 -0
- package/chunks/{workspace-registration-store-P6QHCSMU.js → workspace-registration-store-VAVPVIF3.js} +2 -2
- package/chunks/workspace-registry-I4ZRHGBS.js +80 -0
- package/chunks/workspace-service-RXYBWBDJ.js +91 -0
- package/chunks/workspace-skills-status-35Z2FU4I.js +78 -0
- package/chunks/write-file-KCL5RI2I.js +66 -0
- package/chunks/{zh-TW-4RR3YHNN.js → zh-TW-BM47YBFH.js} +5 -1
- package/chunks/{zh-6ANG2HTL.js → zh-WY5DWYZD.js} +5 -1
- package/cli-entry.js +164 -12
- package/cli.js +18 -11
- package/locales/ca.js +10 -3
- package/locales/de.js +8 -2
- package/locales/en.js +8 -2
- package/locales/fr.js +8 -2
- package/locales/ja.js +8 -2
- package/locales/pt.js +8 -2
- package/locales/ru.js +8 -2
- package/locales/zh-TW.js +8 -2
- package/locales/zh.js +8 -2
- package/package.json +3 -3
- package/web-shell/assets/{arc-B0iTWRo2.js → arc-ByltRugA.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-DSQP4-9D.js → architectureDiagram-3BPJPVTR-CCRTto5d.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BNPVXVT3.js → blockDiagram-GPEHLZMM-Jfy36u1L.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DEHfJFiD.js → c4Diagram-AAUBKEIU-4d5FfEZ0.js} +1 -1
- package/web-shell/assets/channel-4N2UIFcG.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-VZ0uL1p9.js → chunk-2J33WTMH-BPwxCEro.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-D5TKmvwG.js → chunk-4BX2VUAB-jY7ZmJWY.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-BDW1Lcq-.js → chunk-55IACEB6-C98HgCsS.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Cj4h85iM.js → chunk-727SXJPM-cDu-ge-q.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-5LeqiOhZ.js → chunk-AQP2D5EJ-BKdJwxXK.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BaTgsco7.js → chunk-FMBD7UC4-DnuxqwMu.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-t3uGlIUk.js → chunk-ND2GUHAM-C4fZNPv0.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-rOnNXL2Q.js → chunk-QZHKN3VN-Cf4XWOmz.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-CcqXykgA.js → cose-bilkent-S5V4N54A-C82mFiqj.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-Dkjrchoy.js → dagre-BM42HDAG-Df8KACER.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-B6lcra9M.js → diagram-2AECGRRQ-EzNs7s_2.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-bAIzq3PT.js → diagram-5GNKFQAL-BRLNvreg.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-G9MAZDNW.js → diagram-KO2AKTUF-2HLYHRjC.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DVLF1uWZ.js → diagram-LMA3HP47-DeH0NzSp.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-Cf7y20Tc.js → diagram-OG6HWLK6-k5Gn47-G.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-C7ETZB3o.js → erDiagram-TEJ5UH35-gPHFo79f.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Cl2xgL6J.js → flowDiagram-I6XJVG4X-DYBOiTRW.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-BgjbMs3q.js → ganttDiagram-6RSMTGT7-cxjAuic9.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-JVX34Omm.js → gitGraphDiagram-PVQCEYII-3nPqpmCP.js} +1 -1
- package/web-shell/assets/index-B7jzUZ_s.css +5 -0
- package/web-shell/assets/{index-BG7Zc4f_.js → index-Cl8d-1bK.js} +1 -1
- package/web-shell/assets/index-gE8OWwj_.js +1197 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-3NYyMeZU.js → infoDiagram-5YYISTIA-Dph21pR5.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-C03VCu-U.js → ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-C9PuBRZW.js → journeyDiagram-JHISSGLW-CR-IzvnU.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-C3LvioWR.js → kanban-definition-UN3LZRKU-BYmuybuC.js} +1 -1
- package/web-shell/assets/{linear-Du6Yw8N_.js → linear-CngEEoy8.js} +1 -1
- package/web-shell/assets/{mermaid.core-BXY5D2-X.js → mermaid.core-G6fbZRPf.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-2UrHLaDp.js → mindmap-definition-RKZ34NQL-BtnqnUwJ.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-dC03ml45.js → pieDiagram-4H26LBE5-XTq6UHIA.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CD6jARrp.js → quadrantDiagram-W4KKPZXB-D1J5PrsS.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BrK8aXfv.js → requirementDiagram-4Y6WPE33-CLcBUy3t.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-B5Vitki_.js → sankeyDiagram-5OEKKPKP-iwKV02_6.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CBy2t6Bo.js → sequenceDiagram-3UESZ5HK-7NFYQcEX.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-Enrka6T2.js → stateDiagram-AJRCARHV-Bvm4Wih6.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-CwFq78ss.js → timeline-definition-PNZ67QCA-B4FZFE9O.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BkOidM0g.js → vennDiagram-CIIHVFJN-CvMBpmtL.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-D_j13hQW.js → wardley-L42UT6IY-E3ag2327.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-7EveB1w6.js → wardleyDiagram-YWT4CUSO-BEXWlgxC.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DRkBhMXr.js → xychartDiagram-2RQKCTM6-CICK05gI.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/agent-headless-WVJCQ27D.js +0 -61
- package/chunks/chunk-CPCVCKKF.js +0 -358
- package/chunks/chunk-P64HXIC5.js +0 -74712
- package/chunks/chunk-RF34V75B.js +0 -45
- package/chunks/chunk-W7FJ3N32.js +0 -49
- package/chunks/contextCommand-HTRJJYNE.js +0 -66
- package/chunks/daemon-status-provider-67EKK6S3.js +0 -74
- package/chunks/handleAutoUpdate-OOKBP5VD.js +0 -67
- package/chunks/initializer-NWALZGQ5.js +0 -72
- package/chunks/installationInfo-Y3M433E7.js +0 -66
- package/chunks/list-CQDDWHTS.js +0 -75
- package/chunks/loadedSettingsAdapter-I5KG37EI.js +0 -69
- package/chunks/mcp-24HHCBSP.js +0 -69
- package/chunks/nonInteractiveCli-GVF2XDJT.js +0 -126
- package/chunks/ripGrep-Y2XW4EFC.js +0 -59
- package/chunks/theme-manager-QOUMDWMP.js +0 -63
- package/chunks/total-session-admission-HWVCZ2WR.js +0 -69
- package/chunks/workspace-providers-status-ZTW2B5QU.js +0 -72
- package/chunks/workspace-registry-R54M5O3W.js +0 -73
- package/chunks/workspace-service-WYLRGM4A.js +0 -84
- package/chunks/workspace-skills-status-NN5QFU3A.js +0 -71
- package/chunks/write-file-EAT3CHUK.js +0 -596
- package/web-shell/assets/channel-tVz-qNSq.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CWuaBxYV.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CWuaBxYV.js +0 -1
- package/web-shell/assets/index-48bIcdqF.js +0 -1197
- package/web-shell/assets/index-BI-JAO07.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DUtYfXpW.js +0 -1
- package/chunks/{chunk-H24SOJIQ.js → chunk-D7WXIW7H.js} +3 -3
- package/chunks/{chunk-PEJWA3QQ.js → chunk-QZJY47IE.js} +5 -5
- package/chunks/{dist-XBJVSWS2.js → dist-HMU6CYS4.js} +1 -1
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
require_lib
|
|
11
11
|
} from "./chunk-WBL3FJEU.js";
|
|
12
|
-
import {
|
|
13
|
-
MAX_WORKSPACE_PATH_LENGTH
|
|
14
|
-
} from "./chunk-W7FJ3N32.js";
|
|
15
12
|
import {
|
|
16
13
|
require_mime_db
|
|
17
14
|
} from "./chunk-T2NCM2ET.js";
|
|
15
|
+
import {
|
|
16
|
+
MAX_WORKSPACE_PATH_LENGTH,
|
|
17
|
+
translateAndCheckAbsoluteWorkspacePath
|
|
18
|
+
} from "./chunk-2RFKHEXL.js";
|
|
18
19
|
import {
|
|
19
20
|
writeStderrLine
|
|
20
21
|
} from "./chunk-OWAK7LMW.js";
|
|
@@ -9069,11 +9070,11 @@ var require_mime_types = __commonJS({
|
|
|
9069
9070
|
return exts[0];
|
|
9070
9071
|
}
|
|
9071
9072
|
__name(extension, "extension");
|
|
9072
|
-
function lookup(
|
|
9073
|
-
if (!
|
|
9073
|
+
function lookup(path2) {
|
|
9074
|
+
if (!path2 || typeof path2 !== "string") {
|
|
9074
9075
|
return false;
|
|
9075
9076
|
}
|
|
9076
|
-
var extension2 = extname("x." +
|
|
9077
|
+
var extension2 = extname("x." + path2).toLowerCase().slice(1);
|
|
9077
9078
|
if (!extension2) {
|
|
9078
9079
|
return false;
|
|
9079
9080
|
}
|
|
@@ -10204,13 +10205,13 @@ var require_view = __commonJS({
|
|
|
10204
10205
|
"use strict";
|
|
10205
10206
|
init_esbuild_shims();
|
|
10206
10207
|
var debug = require_src()("express:view");
|
|
10207
|
-
var
|
|
10208
|
+
var path2 = __require("node:path");
|
|
10208
10209
|
var fs = __require("node:fs");
|
|
10209
|
-
var dirname2 =
|
|
10210
|
-
var basename2 =
|
|
10211
|
-
var extname =
|
|
10212
|
-
var join2 =
|
|
10213
|
-
var resolve =
|
|
10210
|
+
var dirname2 = path2.dirname;
|
|
10211
|
+
var basename2 = path2.basename;
|
|
10212
|
+
var extname = path2.extname;
|
|
10213
|
+
var join2 = path2.join;
|
|
10214
|
+
var resolve = path2.resolve;
|
|
10214
10215
|
module.exports = View;
|
|
10215
10216
|
function View(name, options) {
|
|
10216
10217
|
var opts = options || {};
|
|
@@ -10240,17 +10241,17 @@ var require_view = __commonJS({
|
|
|
10240
10241
|
}
|
|
10241
10242
|
__name(View, "View");
|
|
10242
10243
|
View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name) {
|
|
10243
|
-
var
|
|
10244
|
+
var path3;
|
|
10244
10245
|
var roots = [].concat(this.root);
|
|
10245
10246
|
debug('lookup "%s"', name);
|
|
10246
|
-
for (var i = 0; i < roots.length && !
|
|
10247
|
+
for (var i = 0; i < roots.length && !path3; i++) {
|
|
10247
10248
|
var root = roots[i];
|
|
10248
10249
|
var loc = resolve(root, name);
|
|
10249
10250
|
var dir = dirname2(loc);
|
|
10250
10251
|
var file = basename2(loc);
|
|
10251
|
-
|
|
10252
|
+
path3 = this.resolve(dir, file);
|
|
10252
10253
|
}
|
|
10253
|
-
return
|
|
10254
|
+
return path3;
|
|
10254
10255
|
}, "lookup");
|
|
10255
10256
|
View.prototype.render = /* @__PURE__ */ __name(function render(options, callback) {
|
|
10256
10257
|
var sync = true;
|
|
@@ -10272,21 +10273,21 @@ var require_view = __commonJS({
|
|
|
10272
10273
|
}, "render");
|
|
10273
10274
|
View.prototype.resolve = /* @__PURE__ */ __name(function resolve2(dir, file) {
|
|
10274
10275
|
var ext = this.ext;
|
|
10275
|
-
var
|
|
10276
|
-
var stat = tryStat(
|
|
10276
|
+
var path3 = join2(dir, file);
|
|
10277
|
+
var stat = tryStat(path3);
|
|
10277
10278
|
if (stat && stat.isFile()) {
|
|
10278
|
-
return
|
|
10279
|
+
return path3;
|
|
10279
10280
|
}
|
|
10280
|
-
|
|
10281
|
-
stat = tryStat(
|
|
10281
|
+
path3 = join2(dir, basename2(file, ext), "index" + ext);
|
|
10282
|
+
stat = tryStat(path3);
|
|
10282
10283
|
if (stat && stat.isFile()) {
|
|
10283
|
-
return
|
|
10284
|
+
return path3;
|
|
10284
10285
|
}
|
|
10285
10286
|
}, "resolve");
|
|
10286
|
-
function tryStat(
|
|
10287
|
-
debug('stat "%s"',
|
|
10287
|
+
function tryStat(path3) {
|
|
10288
|
+
debug('stat "%s"', path3);
|
|
10288
10289
|
try {
|
|
10289
|
-
return fs.statSync(
|
|
10290
|
+
return fs.statSync(path3);
|
|
10290
10291
|
} catch (e) {
|
|
10291
10292
|
return void 0;
|
|
10292
10293
|
}
|
|
@@ -11467,15 +11468,15 @@ var require_dist2 = __commonJS({
|
|
|
11467
11468
|
let index = 0;
|
|
11468
11469
|
function consumeUntil(end) {
|
|
11469
11470
|
const output = [];
|
|
11470
|
-
let
|
|
11471
|
+
let path2 = "";
|
|
11471
11472
|
function writePath() {
|
|
11472
|
-
if (!
|
|
11473
|
+
if (!path2)
|
|
11473
11474
|
return;
|
|
11474
11475
|
output.push({
|
|
11475
11476
|
type: "text",
|
|
11476
|
-
value: encodePath(
|
|
11477
|
+
value: encodePath(path2)
|
|
11477
11478
|
});
|
|
11478
|
-
|
|
11479
|
+
path2 = "";
|
|
11479
11480
|
}
|
|
11480
11481
|
__name(writePath, "writePath");
|
|
11481
11482
|
while (index < chars.length) {
|
|
@@ -11488,7 +11489,7 @@ var require_dist2 = __commonJS({
|
|
|
11488
11489
|
if (index === chars.length) {
|
|
11489
11490
|
throw new PathError(`Unexpected end after \\ at index ${index}`, str);
|
|
11490
11491
|
}
|
|
11491
|
-
|
|
11492
|
+
path2 += chars[index++];
|
|
11492
11493
|
continue;
|
|
11493
11494
|
}
|
|
11494
11495
|
if (value === ":" || value === "*") {
|
|
@@ -11532,7 +11533,7 @@ var require_dist2 = __commonJS({
|
|
|
11532
11533
|
if (value === "}" || value === "(" || value === ")" || value === "[" || value === "]" || value === "+" || value === "?" || value === "!") {
|
|
11533
11534
|
throw new PathError(`Unexpected ${value} at index ${index - 1}`, str);
|
|
11534
11535
|
}
|
|
11535
|
-
|
|
11536
|
+
path2 += value;
|
|
11536
11537
|
}
|
|
11537
11538
|
if (end) {
|
|
11538
11539
|
throw new PathError(`Unexpected end at index ${index}, expected ${end}`, str);
|
|
@@ -11544,17 +11545,17 @@ var require_dist2 = __commonJS({
|
|
|
11544
11545
|
return new TokenData(consumeUntil(""), str);
|
|
11545
11546
|
}
|
|
11546
11547
|
__name(parse, "parse");
|
|
11547
|
-
function compile(
|
|
11548
|
+
function compile(path2, options = {}) {
|
|
11548
11549
|
const { encode = encodeURIComponent, delimiter = DEFAULT_DELIMITER } = options;
|
|
11549
|
-
const data = typeof
|
|
11550
|
+
const data = typeof path2 === "object" ? path2 : parse(path2, options);
|
|
11550
11551
|
const fn = tokensToFunction(data.tokens, delimiter, encode);
|
|
11551
|
-
return /* @__PURE__ */ __name(function
|
|
11552
|
+
return /* @__PURE__ */ __name(function path3(params = {}) {
|
|
11552
11553
|
const missing = [];
|
|
11553
|
-
const
|
|
11554
|
+
const path4 = fn(params, missing);
|
|
11554
11555
|
if (missing.length) {
|
|
11555
11556
|
throw new TypeError(`Missing parameters: ${missing.join(", ")}`);
|
|
11556
11557
|
}
|
|
11557
|
-
return
|
|
11558
|
+
return path4;
|
|
11558
11559
|
}, "path");
|
|
11559
11560
|
}
|
|
11560
11561
|
__name(compile, "compile");
|
|
@@ -11619,9 +11620,9 @@ var require_dist2 = __commonJS({
|
|
|
11619
11620
|
};
|
|
11620
11621
|
}
|
|
11621
11622
|
__name(tokenToFunction, "tokenToFunction");
|
|
11622
|
-
function match(
|
|
11623
|
+
function match(path2, options = {}) {
|
|
11623
11624
|
const { decode = decodeURIComponent, delimiter = DEFAULT_DELIMITER } = options;
|
|
11624
|
-
const { regexp, keys } = pathToRegexp(
|
|
11625
|
+
const { regexp, keys } = pathToRegexp(path2, options);
|
|
11625
11626
|
const decoders = keys.map((key) => {
|
|
11626
11627
|
if (decode === false)
|
|
11627
11628
|
return NOOP_VALUE;
|
|
@@ -11633,7 +11634,7 @@ var require_dist2 = __commonJS({
|
|
|
11633
11634
|
const m = regexp.exec(input);
|
|
11634
11635
|
if (!m)
|
|
11635
11636
|
return false;
|
|
11636
|
-
const
|
|
11637
|
+
const path3 = m[0];
|
|
11637
11638
|
const params = /* @__PURE__ */ Object.create(null);
|
|
11638
11639
|
for (let i = 1; i < m.length; i++) {
|
|
11639
11640
|
if (m[i] === void 0)
|
|
@@ -11642,22 +11643,22 @@ var require_dist2 = __commonJS({
|
|
|
11642
11643
|
const decoder = decoders[i - 1];
|
|
11643
11644
|
params[key.name] = decoder(m[i]);
|
|
11644
11645
|
}
|
|
11645
|
-
return { path:
|
|
11646
|
+
return { path: path3, params };
|
|
11646
11647
|
}, "match");
|
|
11647
11648
|
}
|
|
11648
11649
|
__name(match, "match");
|
|
11649
|
-
function pathToRegexp(
|
|
11650
|
+
function pathToRegexp(path2, options = {}) {
|
|
11650
11651
|
const { delimiter = DEFAULT_DELIMITER, end = true, sensitive = false, trailing = true } = options;
|
|
11651
11652
|
const keys = [];
|
|
11652
11653
|
let source = "";
|
|
11653
11654
|
let combinations = 0;
|
|
11654
|
-
function process2(
|
|
11655
|
-
if (Array.isArray(
|
|
11656
|
-
for (const p of
|
|
11655
|
+
function process2(path3) {
|
|
11656
|
+
if (Array.isArray(path3)) {
|
|
11657
|
+
for (const p of path3)
|
|
11657
11658
|
process2(p);
|
|
11658
11659
|
return;
|
|
11659
11660
|
}
|
|
11660
|
-
const data = typeof
|
|
11661
|
+
const data = typeof path3 === "object" ? path3 : parse(path3, options);
|
|
11661
11662
|
flatten(data.tokens, 0, [], (tokens) => {
|
|
11662
11663
|
if (combinations >= 256) {
|
|
11663
11664
|
throw new PathError("Too many path combinations", data.originalPath);
|
|
@@ -11669,7 +11670,7 @@ var require_dist2 = __commonJS({
|
|
|
11669
11670
|
});
|
|
11670
11671
|
}
|
|
11671
11672
|
__name(process2, "process");
|
|
11672
|
-
process2(
|
|
11673
|
+
process2(path2);
|
|
11673
11674
|
let pattern = `^(?:${source})`;
|
|
11674
11675
|
if (trailing)
|
|
11675
11676
|
pattern += "(?:" + escape(delimiter) + "$)?";
|
|
@@ -11819,18 +11820,18 @@ var require_layer = __commonJS({
|
|
|
11819
11820
|
var TRAILING_SLASH_REGEXP = /\/+$/;
|
|
11820
11821
|
var MATCHING_GROUP_REGEXP = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
11821
11822
|
module.exports = Layer;
|
|
11822
|
-
function Layer(
|
|
11823
|
+
function Layer(path2, options, fn) {
|
|
11823
11824
|
if (!(this instanceof Layer)) {
|
|
11824
|
-
return new Layer(
|
|
11825
|
+
return new Layer(path2, options, fn);
|
|
11825
11826
|
}
|
|
11826
|
-
debug("new %o",
|
|
11827
|
+
debug("new %o", path2);
|
|
11827
11828
|
const opts = options || {};
|
|
11828
11829
|
this.handle = fn;
|
|
11829
11830
|
this.keys = [];
|
|
11830
11831
|
this.name = fn.name || "<anonymous>";
|
|
11831
11832
|
this.params = void 0;
|
|
11832
11833
|
this.path = void 0;
|
|
11833
|
-
this.slash =
|
|
11834
|
+
this.slash = path2 === "/" && opts.end === false;
|
|
11834
11835
|
function matcher(_path) {
|
|
11835
11836
|
if (_path instanceof RegExp) {
|
|
11836
11837
|
const keys = [];
|
|
@@ -11870,7 +11871,7 @@ var require_layer = __commonJS({
|
|
|
11870
11871
|
});
|
|
11871
11872
|
}
|
|
11872
11873
|
__name(matcher, "matcher");
|
|
11873
|
-
this.matchers = Array.isArray(
|
|
11874
|
+
this.matchers = Array.isArray(path2) ? path2.map(matcher) : [matcher(path2)];
|
|
11874
11875
|
}
|
|
11875
11876
|
__name(Layer, "Layer");
|
|
11876
11877
|
Layer.prototype.handleError = /* @__PURE__ */ __name(function handleError(error, req, res, next) {
|
|
@@ -11911,9 +11912,9 @@ var require_layer = __commonJS({
|
|
|
11911
11912
|
next(err);
|
|
11912
11913
|
}
|
|
11913
11914
|
}, "handleRequest");
|
|
11914
|
-
Layer.prototype.match = /* @__PURE__ */ __name(function match(
|
|
11915
|
+
Layer.prototype.match = /* @__PURE__ */ __name(function match(path2) {
|
|
11915
11916
|
let match2;
|
|
11916
|
-
if (
|
|
11917
|
+
if (path2 != null) {
|
|
11917
11918
|
if (this.slash) {
|
|
11918
11919
|
this.params = {};
|
|
11919
11920
|
this.path = "";
|
|
@@ -11921,7 +11922,7 @@ var require_layer = __commonJS({
|
|
|
11921
11922
|
}
|
|
11922
11923
|
let i = 0;
|
|
11923
11924
|
while (!match2 && i < this.matchers.length) {
|
|
11924
|
-
match2 = this.matchers[i](
|
|
11925
|
+
match2 = this.matchers[i](path2);
|
|
11925
11926
|
i++;
|
|
11926
11927
|
}
|
|
11927
11928
|
}
|
|
@@ -11950,13 +11951,13 @@ var require_layer = __commonJS({
|
|
|
11950
11951
|
}
|
|
11951
11952
|
}
|
|
11952
11953
|
__name(decodeParam, "decodeParam");
|
|
11953
|
-
function loosen(
|
|
11954
|
-
if (
|
|
11955
|
-
return
|
|
11954
|
+
function loosen(path2) {
|
|
11955
|
+
if (path2 instanceof RegExp || path2 === "/") {
|
|
11956
|
+
return path2;
|
|
11956
11957
|
}
|
|
11957
|
-
return Array.isArray(
|
|
11958
|
+
return Array.isArray(path2) ? path2.map(function(p) {
|
|
11958
11959
|
return loosen(p);
|
|
11959
|
-
}) : String(
|
|
11960
|
+
}) : String(path2).replace(TRAILING_SLASH_REGEXP, "");
|
|
11960
11961
|
}
|
|
11961
11962
|
__name(loosen, "loosen");
|
|
11962
11963
|
}
|
|
@@ -11974,9 +11975,9 @@ var require_route = __commonJS({
|
|
|
11974
11975
|
var flatten = Array.prototype.flat;
|
|
11975
11976
|
var methods = METHODS.map((method) => method.toLowerCase());
|
|
11976
11977
|
module.exports = Route;
|
|
11977
|
-
function Route(
|
|
11978
|
-
debug("new %o",
|
|
11979
|
-
this.path =
|
|
11978
|
+
function Route(path2) {
|
|
11979
|
+
debug("new %o", path2);
|
|
11980
|
+
this.path = path2;
|
|
11980
11981
|
this.stack = [];
|
|
11981
11982
|
this.methods = /* @__PURE__ */ Object.create(null);
|
|
11982
11983
|
}
|
|
@@ -12189,8 +12190,8 @@ var require_router = __commonJS({
|
|
|
12189
12190
|
if (++sync > 100) {
|
|
12190
12191
|
return setImmediate(next, err);
|
|
12191
12192
|
}
|
|
12192
|
-
const
|
|
12193
|
-
if (
|
|
12193
|
+
const path2 = getPathname(req);
|
|
12194
|
+
if (path2 == null) {
|
|
12194
12195
|
return done(layerError);
|
|
12195
12196
|
}
|
|
12196
12197
|
let layer;
|
|
@@ -12198,7 +12199,7 @@ var require_router = __commonJS({
|
|
|
12198
12199
|
let route;
|
|
12199
12200
|
while (match !== true && idx < stack.length) {
|
|
12200
12201
|
layer = stack[idx++];
|
|
12201
|
-
match = matchLayer(layer,
|
|
12202
|
+
match = matchLayer(layer, path2);
|
|
12202
12203
|
route = layer.route;
|
|
12203
12204
|
if (typeof match !== "boolean") {
|
|
12204
12205
|
layerError = layerError || match;
|
|
@@ -12236,19 +12237,19 @@ var require_router = __commonJS({
|
|
|
12236
12237
|
} else if (route) {
|
|
12237
12238
|
layer.handleRequest(req, res, next);
|
|
12238
12239
|
} else {
|
|
12239
|
-
trimPrefix(layer, layerError, layerPath,
|
|
12240
|
+
trimPrefix(layer, layerError, layerPath, path2);
|
|
12240
12241
|
}
|
|
12241
12242
|
sync = 0;
|
|
12242
12243
|
});
|
|
12243
12244
|
}
|
|
12244
12245
|
__name(next, "next");
|
|
12245
|
-
function trimPrefix(layer, layerError, layerPath,
|
|
12246
|
+
function trimPrefix(layer, layerError, layerPath, path2) {
|
|
12246
12247
|
if (layerPath.length !== 0) {
|
|
12247
|
-
if (layerPath !==
|
|
12248
|
+
if (layerPath !== path2.substring(0, layerPath.length)) {
|
|
12248
12249
|
next(layerError);
|
|
12249
12250
|
return;
|
|
12250
12251
|
}
|
|
12251
|
-
const c =
|
|
12252
|
+
const c = path2[layerPath.length];
|
|
12252
12253
|
if (c && c !== "/") {
|
|
12253
12254
|
next(layerError);
|
|
12254
12255
|
return;
|
|
@@ -12273,7 +12274,7 @@ var require_router = __commonJS({
|
|
|
12273
12274
|
}, "handle");
|
|
12274
12275
|
Router.prototype.use = /* @__PURE__ */ __name(function use(handler) {
|
|
12275
12276
|
let offset = 0;
|
|
12276
|
-
let
|
|
12277
|
+
let path2 = "/";
|
|
12277
12278
|
if (typeof handler !== "function") {
|
|
12278
12279
|
let arg = handler;
|
|
12279
12280
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -12281,7 +12282,7 @@ var require_router = __commonJS({
|
|
|
12281
12282
|
}
|
|
12282
12283
|
if (typeof arg !== "function") {
|
|
12283
12284
|
offset = 1;
|
|
12284
|
-
|
|
12285
|
+
path2 = handler;
|
|
12285
12286
|
}
|
|
12286
12287
|
}
|
|
12287
12288
|
const callbacks = flatten.call(slice.call(arguments, offset), Infinity);
|
|
@@ -12293,8 +12294,8 @@ var require_router = __commonJS({
|
|
|
12293
12294
|
if (typeof fn !== "function") {
|
|
12294
12295
|
throw new TypeError("argument handler must be a function");
|
|
12295
12296
|
}
|
|
12296
|
-
debug("use %o %s",
|
|
12297
|
-
const layer = new Layer(
|
|
12297
|
+
debug("use %o %s", path2, fn.name || "<anonymous>");
|
|
12298
|
+
const layer = new Layer(path2, {
|
|
12298
12299
|
sensitive: this.caseSensitive,
|
|
12299
12300
|
strict: false,
|
|
12300
12301
|
end: false
|
|
@@ -12304,9 +12305,9 @@ var require_router = __commonJS({
|
|
|
12304
12305
|
}
|
|
12305
12306
|
return this;
|
|
12306
12307
|
}, "use");
|
|
12307
|
-
Router.prototype.route = /* @__PURE__ */ __name(function route(
|
|
12308
|
-
const route2 = new Route(
|
|
12309
|
-
const layer = new Layer(
|
|
12308
|
+
Router.prototype.route = /* @__PURE__ */ __name(function route(path2) {
|
|
12309
|
+
const route2 = new Route(path2);
|
|
12310
|
+
const layer = new Layer(path2, {
|
|
12310
12311
|
sensitive: this.caseSensitive,
|
|
12311
12312
|
strict: this.strict,
|
|
12312
12313
|
end: true
|
|
@@ -12320,8 +12321,8 @@ var require_router = __commonJS({
|
|
|
12320
12321
|
return route2;
|
|
12321
12322
|
}, "route");
|
|
12322
12323
|
methods.concat("all").forEach(function(method) {
|
|
12323
|
-
Router.prototype[method] = function(
|
|
12324
|
-
const route = this.route(
|
|
12324
|
+
Router.prototype[method] = function(path2) {
|
|
12325
|
+
const route = this.route(path2);
|
|
12325
12326
|
route[method].apply(route, slice.call(arguments, 1));
|
|
12326
12327
|
return this;
|
|
12327
12328
|
};
|
|
@@ -12353,9 +12354,9 @@ var require_router = __commonJS({
|
|
|
12353
12354
|
return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : void 0;
|
|
12354
12355
|
}
|
|
12355
12356
|
__name(getProtohost, "getProtohost");
|
|
12356
|
-
function matchLayer(layer,
|
|
12357
|
+
function matchLayer(layer, path2) {
|
|
12357
12358
|
try {
|
|
12358
|
-
return layer.match(
|
|
12359
|
+
return layer.match(path2);
|
|
12359
12360
|
} catch (err) {
|
|
12360
12361
|
return err;
|
|
12361
12362
|
}
|
|
@@ -12593,7 +12594,7 @@ var require_application = __commonJS({
|
|
|
12593
12594
|
}, "handle");
|
|
12594
12595
|
app.use = /* @__PURE__ */ __name(function use(fn) {
|
|
12595
12596
|
var offset = 0;
|
|
12596
|
-
var
|
|
12597
|
+
var path2 = "/";
|
|
12597
12598
|
if (typeof fn !== "function") {
|
|
12598
12599
|
var arg = fn;
|
|
12599
12600
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -12601,7 +12602,7 @@ var require_application = __commonJS({
|
|
|
12601
12602
|
}
|
|
12602
12603
|
if (typeof arg !== "function") {
|
|
12603
12604
|
offset = 1;
|
|
12604
|
-
|
|
12605
|
+
path2 = fn;
|
|
12605
12606
|
}
|
|
12606
12607
|
}
|
|
12607
12608
|
var fns = flatten.call(slice.call(arguments, offset), Infinity);
|
|
@@ -12611,12 +12612,12 @@ var require_application = __commonJS({
|
|
|
12611
12612
|
var router = this.router;
|
|
12612
12613
|
fns.forEach(function(fn2) {
|
|
12613
12614
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
12614
|
-
return router.use(
|
|
12615
|
+
return router.use(path2, fn2);
|
|
12615
12616
|
}
|
|
12616
|
-
debug(".use app under %s",
|
|
12617
|
-
fn2.mountpath =
|
|
12617
|
+
debug(".use app under %s", path2);
|
|
12618
|
+
fn2.mountpath = path2;
|
|
12618
12619
|
fn2.parent = this;
|
|
12619
|
-
router.use(
|
|
12620
|
+
router.use(path2, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
|
|
12620
12621
|
var orig = req.app;
|
|
12621
12622
|
fn2.handle(req, res, function(err) {
|
|
12622
12623
|
Object.setPrototypeOf(req, orig.request);
|
|
@@ -12628,8 +12629,8 @@ var require_application = __commonJS({
|
|
|
12628
12629
|
}, this);
|
|
12629
12630
|
return this;
|
|
12630
12631
|
}, "use");
|
|
12631
|
-
app.route = /* @__PURE__ */ __name(function route(
|
|
12632
|
-
return this.router.route(
|
|
12632
|
+
app.route = /* @__PURE__ */ __name(function route(path2) {
|
|
12633
|
+
return this.router.route(path2);
|
|
12633
12634
|
}, "route");
|
|
12634
12635
|
app.engine = /* @__PURE__ */ __name(function engine(ext, fn) {
|
|
12635
12636
|
if (typeof fn !== "function") {
|
|
@@ -12672,7 +12673,7 @@ var require_application = __commonJS({
|
|
|
12672
12673
|
}
|
|
12673
12674
|
return this;
|
|
12674
12675
|
}, "set");
|
|
12675
|
-
app.path = /* @__PURE__ */ __name(function
|
|
12676
|
+
app.path = /* @__PURE__ */ __name(function path2() {
|
|
12676
12677
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
12677
12678
|
}, "path");
|
|
12678
12679
|
app.enabled = /* @__PURE__ */ __name(function enabled(setting) {
|
|
@@ -12688,17 +12689,17 @@ var require_application = __commonJS({
|
|
|
12688
12689
|
return this.set(setting, false);
|
|
12689
12690
|
}, "disable");
|
|
12690
12691
|
methods.forEach(function(method) {
|
|
12691
|
-
app[method] = function(
|
|
12692
|
+
app[method] = function(path2) {
|
|
12692
12693
|
if (method === "get" && arguments.length === 1) {
|
|
12693
|
-
return this.set(
|
|
12694
|
+
return this.set(path2);
|
|
12694
12695
|
}
|
|
12695
|
-
var route = this.route(
|
|
12696
|
+
var route = this.route(path2);
|
|
12696
12697
|
route[method].apply(route, slice.call(arguments, 1));
|
|
12697
12698
|
return this;
|
|
12698
12699
|
};
|
|
12699
12700
|
});
|
|
12700
|
-
app.all = /* @__PURE__ */ __name(function all(
|
|
12701
|
-
var route = this.route(
|
|
12701
|
+
app.all = /* @__PURE__ */ __name(function all(path2) {
|
|
12702
|
+
var route = this.route(path2);
|
|
12702
12703
|
var args = slice.call(arguments, 1);
|
|
12703
12704
|
for (var i = 0; i < methods.length; i++) {
|
|
12704
12705
|
route[methods[i]].apply(route, args);
|
|
@@ -13668,7 +13669,7 @@ var require_request = __commonJS({
|
|
|
13668
13669
|
var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
|
|
13669
13670
|
return subdomains2.slice(offset);
|
|
13670
13671
|
}, "subdomains"));
|
|
13671
|
-
defineGetter(req, "path", /* @__PURE__ */ __name(function
|
|
13672
|
+
defineGetter(req, "path", /* @__PURE__ */ __name(function path2() {
|
|
13672
13673
|
return parse(this).pathname;
|
|
13673
13674
|
}, "path"));
|
|
13674
13675
|
defineGetter(req, "host", /* @__PURE__ */ __name(function host() {
|
|
@@ -13891,8 +13892,8 @@ var require_content_disposition = __commonJS({
|
|
|
13891
13892
|
this.parameters = parameters;
|
|
13892
13893
|
}
|
|
13893
13894
|
__name(ContentDisposition, "ContentDisposition");
|
|
13894
|
-
function basename2(
|
|
13895
|
-
const normalized =
|
|
13895
|
+
function basename2(path2) {
|
|
13896
|
+
const normalized = path2.replaceAll("\\", "/");
|
|
13896
13897
|
let end = normalized.length;
|
|
13897
13898
|
while (end > 0 && normalized[end - 1] === "/") {
|
|
13898
13899
|
end--;
|
|
@@ -14152,28 +14153,28 @@ var require_send = __commonJS({
|
|
|
14152
14153
|
var ms = require_ms();
|
|
14153
14154
|
var onFinished = require_on_finished();
|
|
14154
14155
|
var parseRange = require_range_parser();
|
|
14155
|
-
var
|
|
14156
|
+
var path2 = __require("path");
|
|
14156
14157
|
var statuses = require_statuses();
|
|
14157
14158
|
var Stream = __require("stream");
|
|
14158
14159
|
var util = __require("util");
|
|
14159
|
-
var extname =
|
|
14160
|
-
var join2 =
|
|
14161
|
-
var normalize =
|
|
14162
|
-
var resolve =
|
|
14163
|
-
var sep =
|
|
14160
|
+
var extname = path2.extname;
|
|
14161
|
+
var join2 = path2.join;
|
|
14162
|
+
var normalize = path2.normalize;
|
|
14163
|
+
var resolve = path2.resolve;
|
|
14164
|
+
var sep = path2.sep;
|
|
14164
14165
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
14165
14166
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
14166
14167
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
14167
14168
|
module.exports = send;
|
|
14168
|
-
function send(req,
|
|
14169
|
-
return new SendStream(req,
|
|
14169
|
+
function send(req, path3, options) {
|
|
14170
|
+
return new SendStream(req, path3, options);
|
|
14170
14171
|
}
|
|
14171
14172
|
__name(send, "send");
|
|
14172
|
-
function SendStream(req,
|
|
14173
|
+
function SendStream(req, path3, options) {
|
|
14173
14174
|
Stream.call(this);
|
|
14174
14175
|
var opts = options || {};
|
|
14175
14176
|
this.options = opts;
|
|
14176
|
-
this.path =
|
|
14177
|
+
this.path = path3;
|
|
14177
14178
|
this.req = req;
|
|
14178
14179
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
14179
14180
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -14288,10 +14289,10 @@ var require_send = __commonJS({
|
|
|
14288
14289
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
14289
14290
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
14290
14291
|
}, "isRangeFresh");
|
|
14291
|
-
SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(
|
|
14292
|
+
SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path3) {
|
|
14292
14293
|
var res = this.res;
|
|
14293
14294
|
if (hasListeners(this, "directory")) {
|
|
14294
|
-
this.emit("directory", res,
|
|
14295
|
+
this.emit("directory", res, path3);
|
|
14295
14296
|
return;
|
|
14296
14297
|
}
|
|
14297
14298
|
if (this.hasTrailingSlash()) {
|
|
@@ -14311,38 +14312,38 @@ var require_send = __commonJS({
|
|
|
14311
14312
|
SendStream.prototype.pipe = /* @__PURE__ */ __name(function pipe(res) {
|
|
14312
14313
|
var root = this._root;
|
|
14313
14314
|
this.res = res;
|
|
14314
|
-
var
|
|
14315
|
-
if (
|
|
14315
|
+
var path3 = decode(this.path);
|
|
14316
|
+
if (path3 === -1) {
|
|
14316
14317
|
this.error(400);
|
|
14317
14318
|
return res;
|
|
14318
14319
|
}
|
|
14319
|
-
if (~
|
|
14320
|
+
if (~path3.indexOf("\0")) {
|
|
14320
14321
|
this.error(400);
|
|
14321
14322
|
return res;
|
|
14322
14323
|
}
|
|
14323
14324
|
var parts;
|
|
14324
14325
|
if (root !== null) {
|
|
14325
|
-
if (
|
|
14326
|
-
|
|
14326
|
+
if (path3) {
|
|
14327
|
+
path3 = normalize("." + sep + path3);
|
|
14327
14328
|
}
|
|
14328
|
-
if (UP_PATH_REGEXP.test(
|
|
14329
|
-
debug('malicious path "%s"',
|
|
14329
|
+
if (UP_PATH_REGEXP.test(path3)) {
|
|
14330
|
+
debug('malicious path "%s"', path3);
|
|
14330
14331
|
this.error(403);
|
|
14331
14332
|
return res;
|
|
14332
14333
|
}
|
|
14333
|
-
parts =
|
|
14334
|
-
|
|
14334
|
+
parts = path3.split(sep);
|
|
14335
|
+
path3 = normalize(join2(root, path3));
|
|
14335
14336
|
} else {
|
|
14336
|
-
if (UP_PATH_REGEXP.test(
|
|
14337
|
-
debug('malicious path "%s"',
|
|
14337
|
+
if (UP_PATH_REGEXP.test(path3)) {
|
|
14338
|
+
debug('malicious path "%s"', path3);
|
|
14338
14339
|
this.error(403);
|
|
14339
14340
|
return res;
|
|
14340
14341
|
}
|
|
14341
|
-
parts = normalize(
|
|
14342
|
-
|
|
14342
|
+
parts = normalize(path3).split(sep);
|
|
14343
|
+
path3 = resolve(path3);
|
|
14343
14344
|
}
|
|
14344
14345
|
if (containsDotFile(parts)) {
|
|
14345
|
-
debug('%s dotfile "%s"', this._dotfiles,
|
|
14346
|
+
debug('%s dotfile "%s"', this._dotfiles, path3);
|
|
14346
14347
|
switch (this._dotfiles) {
|
|
14347
14348
|
case "allow":
|
|
14348
14349
|
break;
|
|
@@ -14356,13 +14357,13 @@ var require_send = __commonJS({
|
|
|
14356
14357
|
}
|
|
14357
14358
|
}
|
|
14358
14359
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
14359
|
-
this.sendIndex(
|
|
14360
|
+
this.sendIndex(path3);
|
|
14360
14361
|
return res;
|
|
14361
14362
|
}
|
|
14362
|
-
this.sendFile(
|
|
14363
|
+
this.sendFile(path3);
|
|
14363
14364
|
return res;
|
|
14364
14365
|
}, "pipe");
|
|
14365
|
-
SendStream.prototype.send = /* @__PURE__ */ __name(function send2(
|
|
14366
|
+
SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path3, stat) {
|
|
14366
14367
|
var len = stat.size;
|
|
14367
14368
|
var options = this.options;
|
|
14368
14369
|
var opts = {};
|
|
@@ -14374,9 +14375,9 @@ var require_send = __commonJS({
|
|
|
14374
14375
|
this.headersAlreadySent();
|
|
14375
14376
|
return;
|
|
14376
14377
|
}
|
|
14377
|
-
debug('pipe "%s"',
|
|
14378
|
-
this.setHeader(
|
|
14379
|
-
this.type(
|
|
14378
|
+
debug('pipe "%s"', path3);
|
|
14379
|
+
this.setHeader(path3, stat);
|
|
14380
|
+
this.type(path3);
|
|
14380
14381
|
if (this.isConditionalGET()) {
|
|
14381
14382
|
if (this.isPreconditionFailure()) {
|
|
14382
14383
|
this.error(412);
|
|
@@ -14425,28 +14426,28 @@ var require_send = __commonJS({
|
|
|
14425
14426
|
res.end();
|
|
14426
14427
|
return;
|
|
14427
14428
|
}
|
|
14428
|
-
this.stream(
|
|
14429
|
+
this.stream(path3, opts);
|
|
14429
14430
|
}, "send");
|
|
14430
|
-
SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(
|
|
14431
|
+
SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path3) {
|
|
14431
14432
|
var i = 0;
|
|
14432
14433
|
var self = this;
|
|
14433
|
-
debug('stat "%s"',
|
|
14434
|
-
fs.stat(
|
|
14435
|
-
var pathEndsWithSep =
|
|
14436
|
-
if (err && err.code === "ENOENT" && !extname(
|
|
14434
|
+
debug('stat "%s"', path3);
|
|
14435
|
+
fs.stat(path3, /* @__PURE__ */ __name(function onstat(err, stat) {
|
|
14436
|
+
var pathEndsWithSep = path3[path3.length - 1] === sep;
|
|
14437
|
+
if (err && err.code === "ENOENT" && !extname(path3) && !pathEndsWithSep) {
|
|
14437
14438
|
return next(err);
|
|
14438
14439
|
}
|
|
14439
14440
|
if (err) return self.onStatError(err);
|
|
14440
|
-
if (stat.isDirectory()) return self.redirect(
|
|
14441
|
+
if (stat.isDirectory()) return self.redirect(path3);
|
|
14441
14442
|
if (pathEndsWithSep) return self.error(404);
|
|
14442
|
-
self.emit("file",
|
|
14443
|
-
self.send(
|
|
14443
|
+
self.emit("file", path3, stat);
|
|
14444
|
+
self.send(path3, stat);
|
|
14444
14445
|
}, "onstat"));
|
|
14445
14446
|
function next(err) {
|
|
14446
14447
|
if (self._extensions.length <= i) {
|
|
14447
14448
|
return err ? self.onStatError(err) : self.error(404);
|
|
14448
14449
|
}
|
|
14449
|
-
var p =
|
|
14450
|
+
var p = path3 + "." + self._extensions[i++];
|
|
14450
14451
|
debug('stat "%s"', p);
|
|
14451
14452
|
fs.stat(p, function(err2, stat) {
|
|
14452
14453
|
if (err2) return next(err2);
|
|
@@ -14457,7 +14458,7 @@ var require_send = __commonJS({
|
|
|
14457
14458
|
}
|
|
14458
14459
|
__name(next, "next");
|
|
14459
14460
|
}, "sendFile");
|
|
14460
|
-
SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(
|
|
14461
|
+
SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path3) {
|
|
14461
14462
|
var i = -1;
|
|
14462
14463
|
var self = this;
|
|
14463
14464
|
function next(err) {
|
|
@@ -14465,7 +14466,7 @@ var require_send = __commonJS({
|
|
|
14465
14466
|
if (err) return self.onStatError(err);
|
|
14466
14467
|
return self.error(404);
|
|
14467
14468
|
}
|
|
14468
|
-
var p = join2(
|
|
14469
|
+
var p = join2(path3, self._index[i]);
|
|
14469
14470
|
debug('stat "%s"', p);
|
|
14470
14471
|
fs.stat(p, function(err2, stat) {
|
|
14471
14472
|
if (err2) return next(err2);
|
|
@@ -14477,10 +14478,10 @@ var require_send = __commonJS({
|
|
|
14477
14478
|
__name(next, "next");
|
|
14478
14479
|
next();
|
|
14479
14480
|
}, "sendIndex");
|
|
14480
|
-
SendStream.prototype.stream = /* @__PURE__ */ __name(function stream(
|
|
14481
|
+
SendStream.prototype.stream = /* @__PURE__ */ __name(function stream(path3, options) {
|
|
14481
14482
|
var self = this;
|
|
14482
14483
|
var res = this.res;
|
|
14483
|
-
var stream2 = fs.createReadStream(
|
|
14484
|
+
var stream2 = fs.createReadStream(path3, options);
|
|
14484
14485
|
this.emit("stream", stream2);
|
|
14485
14486
|
stream2.pipe(res);
|
|
14486
14487
|
function cleanup() {
|
|
@@ -14496,17 +14497,17 @@ var require_send = __commonJS({
|
|
|
14496
14497
|
self.emit("end");
|
|
14497
14498
|
}, "onend"));
|
|
14498
14499
|
}, "stream");
|
|
14499
|
-
SendStream.prototype.type = /* @__PURE__ */ __name(function type(
|
|
14500
|
+
SendStream.prototype.type = /* @__PURE__ */ __name(function type(path3) {
|
|
14500
14501
|
var res = this.res;
|
|
14501
14502
|
if (res.getHeader("Content-Type")) return;
|
|
14502
|
-
var ext = extname(
|
|
14503
|
+
var ext = extname(path3);
|
|
14503
14504
|
var type2 = mime.contentType(ext) || "application/octet-stream";
|
|
14504
14505
|
debug("content-type %s", type2);
|
|
14505
14506
|
res.setHeader("Content-Type", type2);
|
|
14506
14507
|
}, "type");
|
|
14507
|
-
SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(
|
|
14508
|
+
SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path3, stat) {
|
|
14508
14509
|
var res = this.res;
|
|
14509
|
-
this.emit("headers", res,
|
|
14510
|
+
this.emit("headers", res, path3, stat);
|
|
14510
14511
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
14511
14512
|
debug("accept ranges");
|
|
14512
14513
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -14570,9 +14571,9 @@ var require_send = __commonJS({
|
|
|
14570
14571
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
14571
14572
|
}
|
|
14572
14573
|
__name(createHttpError, "createHttpError");
|
|
14573
|
-
function decode(
|
|
14574
|
+
function decode(path3) {
|
|
14574
14575
|
try {
|
|
14575
|
-
return decodeURIComponent(
|
|
14576
|
+
return decodeURIComponent(path3);
|
|
14576
14577
|
} catch (err) {
|
|
14577
14578
|
return -1;
|
|
14578
14579
|
}
|
|
@@ -14727,7 +14728,7 @@ var require_response = __commonJS({
|
|
|
14727
14728
|
var http = __require("node:http");
|
|
14728
14729
|
var onFinished = require_on_finished();
|
|
14729
14730
|
var mime = require_mime_types();
|
|
14730
|
-
var
|
|
14731
|
+
var path2 = __require("node:path");
|
|
14731
14732
|
var pathIsAbsolute = __require("node:path").isAbsolute;
|
|
14732
14733
|
var statuses = require_statuses();
|
|
14733
14734
|
var sign = require_cookie_signature().sign;
|
|
@@ -14736,8 +14737,8 @@ var require_response = __commonJS({
|
|
|
14736
14737
|
var setCharset = require_utils2().setCharset;
|
|
14737
14738
|
var cookie = require_cookie();
|
|
14738
14739
|
var send = require_send();
|
|
14739
|
-
var extname =
|
|
14740
|
-
var resolve =
|
|
14740
|
+
var extname = path2.extname;
|
|
14741
|
+
var resolve = path2.resolve;
|
|
14741
14742
|
var vary = require_vary();
|
|
14742
14743
|
var { Buffer: Buffer2 } = __require("node:buffer");
|
|
14743
14744
|
var res = Object.create(http.ServerResponse.prototype);
|
|
@@ -14883,26 +14884,26 @@ var require_response = __commonJS({
|
|
|
14883
14884
|
this.type("txt");
|
|
14884
14885
|
return this.send(body);
|
|
14885
14886
|
}, "sendStatus");
|
|
14886
|
-
res.sendFile = /* @__PURE__ */ __name(function sendFile(
|
|
14887
|
+
res.sendFile = /* @__PURE__ */ __name(function sendFile(path3, options, callback) {
|
|
14887
14888
|
var done = callback;
|
|
14888
14889
|
var req = this.req;
|
|
14889
14890
|
var res2 = this;
|
|
14890
14891
|
var next = req.next;
|
|
14891
14892
|
var opts = options || {};
|
|
14892
|
-
if (!
|
|
14893
|
+
if (!path3) {
|
|
14893
14894
|
throw new TypeError("path argument is required to res.sendFile");
|
|
14894
14895
|
}
|
|
14895
|
-
if (typeof
|
|
14896
|
+
if (typeof path3 !== "string") {
|
|
14896
14897
|
throw new TypeError("path must be a string to res.sendFile");
|
|
14897
14898
|
}
|
|
14898
14899
|
if (typeof options === "function") {
|
|
14899
14900
|
done = options;
|
|
14900
14901
|
opts = {};
|
|
14901
14902
|
}
|
|
14902
|
-
if (!opts.root && !pathIsAbsolute(
|
|
14903
|
+
if (!opts.root && !pathIsAbsolute(path3)) {
|
|
14903
14904
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
14904
14905
|
}
|
|
14905
|
-
var pathname = encodeURI(
|
|
14906
|
+
var pathname = encodeURI(path3);
|
|
14906
14907
|
opts.etag = this.app.enabled("etag");
|
|
14907
14908
|
var file = send(req, pathname, opts);
|
|
14908
14909
|
sendfile(res2, file, opts, function(err) {
|
|
@@ -14913,7 +14914,7 @@ var require_response = __commonJS({
|
|
|
14913
14914
|
}
|
|
14914
14915
|
});
|
|
14915
14916
|
}, "sendFile");
|
|
14916
|
-
res.download = /* @__PURE__ */ __name(function download(
|
|
14917
|
+
res.download = /* @__PURE__ */ __name(function download(path3, filename, options, callback) {
|
|
14917
14918
|
var done = callback;
|
|
14918
14919
|
var name = filename;
|
|
14919
14920
|
var opts = options || null;
|
|
@@ -14930,7 +14931,7 @@ var require_response = __commonJS({
|
|
|
14930
14931
|
opts = filename;
|
|
14931
14932
|
}
|
|
14932
14933
|
var headers = {
|
|
14933
|
-
"Content-Disposition": contentDisposition(name ||
|
|
14934
|
+
"Content-Disposition": contentDisposition(name || path3)
|
|
14934
14935
|
};
|
|
14935
14936
|
if (opts && opts.headers) {
|
|
14936
14937
|
var keys = Object.keys(opts.headers);
|
|
@@ -14943,7 +14944,7 @@ var require_response = __commonJS({
|
|
|
14943
14944
|
}
|
|
14944
14945
|
opts = Object.create(opts);
|
|
14945
14946
|
opts.headers = headers;
|
|
14946
|
-
var fullPath = !opts.root ? resolve(
|
|
14947
|
+
var fullPath = !opts.root ? resolve(path3) : path3;
|
|
14947
14948
|
return this.sendFile(fullPath, opts, done);
|
|
14948
14949
|
}, "download");
|
|
14949
14950
|
res.contentType = res.type = /* @__PURE__ */ __name(function contentType(type) {
|
|
@@ -15236,11 +15237,11 @@ var require_serve_static = __commonJS({
|
|
|
15236
15237
|
}
|
|
15237
15238
|
var forwardError = !fallthrough;
|
|
15238
15239
|
var originalUrl = parseUrl.original(req);
|
|
15239
|
-
var
|
|
15240
|
-
if (
|
|
15241
|
-
|
|
15240
|
+
var path2 = parseUrl(req).pathname;
|
|
15241
|
+
if (path2 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
15242
|
+
path2 = "";
|
|
15242
15243
|
}
|
|
15243
|
-
var stream = send(req,
|
|
15244
|
+
var stream = send(req, path2, opts);
|
|
15244
15245
|
stream.on("directory", onDirectory);
|
|
15245
15246
|
if (setHeaders) {
|
|
15246
15247
|
stream.on("headers", setHeaders);
|
|
@@ -16982,7 +16983,6 @@ var CAPABILITIES_SCHEMA_VERSION = 1;
|
|
|
16982
16983
|
|
|
16983
16984
|
// packages/cli/src/serve/server/request-helpers.ts
|
|
16984
16985
|
init_esbuild_shims();
|
|
16985
|
-
import * as path2 from "node:path";
|
|
16986
16986
|
function sendJsonBodyParserError(res, err) {
|
|
16987
16987
|
if (err instanceof SyntaxError && "status" in err && err.status === 400) {
|
|
16988
16988
|
res.status(400).json({ error: "Invalid JSON in request body" });
|
|
@@ -17042,8 +17042,10 @@ function parseOptionalWorkspaceCwd(body, boundWorkspace, res) {
|
|
|
17042
17042
|
});
|
|
17043
17043
|
return void 0;
|
|
17044
17044
|
}
|
|
17045
|
-
const cwd =
|
|
17046
|
-
|
|
17045
|
+
const cwd = translateAndCheckAbsoluteWorkspacePath(
|
|
17046
|
+
hasCwd ? body["cwd"] : boundWorkspace
|
|
17047
|
+
);
|
|
17048
|
+
if (cwd === null) {
|
|
17047
17049
|
res.status(400).json({ error: "`cwd` must be an absolute path when provided" });
|
|
17048
17050
|
return void 0;
|
|
17049
17051
|
}
|
|
@@ -17214,8 +17216,8 @@ var MAX_BUCKETS = 1e4;
|
|
|
17214
17216
|
var GC_REQUEST_INTERVAL = 1e3;
|
|
17215
17217
|
var GC_TIMER_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17216
17218
|
var WORKSPACE_QUALIFIED_ACP_PATH = /^\/workspaces\/[^/]+\/acp$/i;
|
|
17217
|
-
function resolveTier(method,
|
|
17218
|
-
const p =
|
|
17219
|
+
function resolveTier(method, path2, workspaceQualifiedAcpEnabled) {
|
|
17220
|
+
const p = path2.endsWith("/") && path2.length > 1 ? path2.slice(0, -1) : path2;
|
|
17219
17221
|
if (method === "OPTIONS") return null;
|
|
17220
17222
|
if ((method === "GET" || method === "HEAD") && (p === "/health" || p === "/demo"))
|
|
17221
17223
|
return null;
|