@qwen-code/qwen-code 0.20.0-preview.0 → 0.20.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 +16 -19
- package/bundled/qc-helper/docs/features/commands.md +0 -54
- package/bundled/qc-helper/docs/features/sub-agents.md +7 -16
- package/bundled/qc-helper/docs/integration-github-action.md +10 -10
- package/bundled/qc-helper/docs/qwen-serve.md +1 -2
- package/bundled/review/DESIGN.md +2 -2
- package/bundled/review/SKILL.md +4 -4
- package/chunks/{MaxSizedBox-53BTJ3JK.js → MaxSizedBox-B5YGZSYE.js} +34 -41
- package/chunks/{StandaloneSessionPicker-VMFIXQ44.js → StandaloneSessionPicker-CEGO2AZX.js} +50 -57
- package/chunks/{acpAgent-5WYAVSFG.js → acpAgent-YUR43TLG.js} +496 -1487
- package/chunks/{agent-44FM7PBX.js → agent-H4JIDL7S.js} +30 -37
- package/chunks/agent-headless-TTBEREQV.js +61 -0
- package/chunks/{anthropicContentGenerator-NMSS7IMV.js → anthropicContentGenerator-HVKLXOOU.js} +12 -13
- package/chunks/{artifact-tool-56T5IMBP.js → artifact-tool-WBCAMD3O.js} +3 -3
- package/chunks/{askUserQuestion-E25OBIC2.js → askUserQuestion-6DZC4UV5.js} +3 -3
- package/chunks/{bridge-IQZT3KU2.js → bridge-VL7ITBU5.js} +35 -42
- package/chunks/{build-GHIZ4MSZ.js → build-SSCNEHZZ.js} +1 -1
- package/chunks/{ca-N6VVUFVB.js → ca-2SL2BXTK.js} +201 -611
- package/chunks/{channel-worker-group-LFBT7K64.js → channel-worker-group-53CMOPFT.js} +5 -5
- package/chunks/{channel-worker-manager-3RUPERG2.js → channel-worker-manager-UTXILKC2.js} +5 -5
- package/chunks/{channel-worker-supervisor-A3KVATD3.js → channel-worker-supervisor-ZGO2W2MD.js} +4 -4
- package/chunks/{chunk-2LI23QA6.js → chunk-2HOVDT7W.js} +1 -1
- package/chunks/{chunk-JWJVZHT5.js → chunk-2LL7TXB4.js} +2 -2
- package/chunks/{chunk-22OH7L7I.js → chunk-333CXMNJ.js} +5 -5
- package/chunks/{chunk-J3VSRG5Y.js → chunk-33XUAINQ.js} +21 -61
- package/chunks/{chunk-S4BT3PX3.js → chunk-4EP2PYYL.js} +5 -5
- package/chunks/{chunk-CJTAUXKG.js → chunk-4ILMYHEI.js} +3 -3
- package/chunks/{chunk-JIHHXJFH.js → chunk-4N3KMAIL.js} +32 -128
- package/chunks/{chunk-6ZBPS62S.js → chunk-4ODB7WIB.js} +1 -1
- package/chunks/{chunk-YDLVKCZJ.js → chunk-4XNLIGVA.js} +298 -576
- package/chunks/{chunk-Q6DEGTYO.js → chunk-542SK7KV.js} +1608 -243
- package/chunks/{chunk-EPN5MKRH.js → chunk-5JBR5XIK.js} +2 -2
- package/chunks/{chunk-E4IMU4Y5.js → chunk-5SCI6E3E.js} +1 -1
- package/chunks/{chunk-IE7TPOXP.js → chunk-6AFUCL3D.js} +1 -1
- package/chunks/{chunk-5I5BM454.js → chunk-6EFTQYW7.js} +1 -1
- package/chunks/{chunk-45AIVIUL.js → chunk-7PZ2ATFZ.js} +29 -54
- package/chunks/{chunk-VI7UU7ZI.js → chunk-7RMOXZTC.js} +4 -4
- package/chunks/{chunk-C3YZ5CLY.js → chunk-7SXZC7ID.js} +6 -7
- package/chunks/{chunk-X6KLM4LZ.js → chunk-A5LYNIW7.js} +8 -8
- package/chunks/{chunk-GZBHRTNM.js → chunk-AJSJ5TTU.js} +1 -1
- package/chunks/{chunk-IT27F3ES.js → chunk-AKX4WPPP.js} +86 -307
- package/chunks/{chunk-EJFHUF3D.js → chunk-ANPINBOF.js} +5 -5
- package/chunks/{chunk-JJEFX6U5.js → chunk-AQIEINAY.js} +1766 -28
- package/chunks/{chunk-7Z6JQEL6.js → chunk-AYCDXHZB.js} +1 -1
- package/chunks/{chunk-BKZEHVPV.js → chunk-B3KGZCQN.js} +169 -177
- package/chunks/{chunk-6X4GWOPW.js → chunk-BDBMYST4.js} +1 -1
- package/chunks/{chunk-BEKZWVJJ.js → chunk-BMWMT5Y2.js} +373 -3
- package/chunks/{chunk-5MZSD2JX.js → chunk-BRRF37CO.js} +6 -6
- package/chunks/{chunk-QLJUC7TG.js → chunk-BVLROR2T.js} +1 -1
- package/chunks/{chunk-OQB4EXO4.js → chunk-C27BYUX6.js} +11 -14
- package/chunks/{chunk-VTKWURCJ.js → chunk-CB2HFGRV.js} +6 -31
- package/chunks/chunk-CPCVCKKF.js +358 -0
- package/chunks/{chunk-OAGG6CRR.js → chunk-CV63PP6U.js} +1 -1
- package/chunks/{chunk-XFWD3PCA.js → chunk-CZF3E5GF.js} +1 -1
- package/chunks/{chunk-QF4DPYPH.js → chunk-D22SX43D.js} +1 -1
- package/chunks/{chunk-X6N25LXS.js → chunk-D2VIDMVM.js} +2 -2
- package/chunks/{chunk-7KZ2KYAD.js → chunk-DBE4QFZS.js} +23 -27
- package/chunks/{chunk-VHYCUGOT.js → chunk-DP5GXXNZ.js} +1 -5
- package/chunks/{chunk-Q2YKNMLS.js → chunk-EAUYY7SS.js} +3 -3
- package/chunks/{chunk-KHOVYUHX.js → chunk-EIAK6Q2B.js} +2 -2
- package/chunks/{chunk-NPQDJGKU.js → chunk-EZVDJFZ7.js} +1 -1
- package/chunks/{chunk-FODK6UMO.js → chunk-FEOZBUMT.js} +27 -0
- package/chunks/{chunk-6NHK6HS7.js → chunk-FLSVD6BS.js} +3 -3
- package/chunks/{chunk-XP32LURS.js → chunk-FQD7GFSV.js} +3 -3
- package/chunks/{chunk-T2L47JJK.js → chunk-FSL5W5TI.js} +3 -3
- package/chunks/{chunk-JCW2R7WC.js → chunk-G45X5TRN.js} +72 -1
- package/chunks/{chunk-ZHERRXZJ.js → chunk-GKY2OJ7R.js} +1 -1
- package/chunks/{chunk-6IL7KRLE.js → chunk-GMGDLUC7.js} +1 -1
- package/chunks/{chunk-E5MVGARW.js → chunk-HZPN55E5.js} +1 -1
- package/chunks/{chunk-LMQNDPVP.js → chunk-I2PYAYFM.js} +3 -3
- package/chunks/{chunk-JD5FHQ3N.js → chunk-IR46U7RB.js} +3 -3
- package/chunks/{chunk-BXXWWCLA.js → chunk-IVPSS6EL.js} +4 -4
- package/chunks/{chunk-4K56OJFJ.js → chunk-JD3MKVKL.js} +1 -1
- package/chunks/{chunk-SP5WRGVG.js → chunk-JNWZQ27S.js} +3 -3
- package/chunks/{chunk-RUNR5DAE.js → chunk-KDC6GNQR.js} +4 -4
- package/chunks/{chunk-JT7HACMQ.js → chunk-KG3XV6FH.js} +2 -29
- package/chunks/{chunk-BRHHXGWL.js → chunk-KOR3XKCA.js} +4 -10
- package/chunks/{chunk-H4OWOFZL.js → chunk-KQNM4EO7.js} +5 -137
- package/chunks/{chunk-4K7VDKAD.js → chunk-KTUQMDEP.js} +1 -1
- package/chunks/{chunk-6RQ5IPUX.js → chunk-KX6UK4VJ.js} +19929 -22391
- package/chunks/{chunk-JYS55H6Z.js → chunk-MAQQGNQ5.js} +7 -66
- package/chunks/{chunk-GOWMC4CS.js → chunk-MJ6S23WZ.js} +4 -4
- package/chunks/{chunk-D7WXIW7H.js → chunk-NBMIC7DR.js} +4 -4
- package/chunks/{chunk-NYPUWHHC.js → chunk-NDMQLV4Y.js} +4 -4
- package/chunks/{chunk-FFFM6NJV.js → chunk-NEEB7UEN.js} +2 -1
- package/chunks/{chunk-6AWRQ4T2.js → chunk-NGFEPAE6.js} +6 -8
- package/chunks/{chunk-RVLZCXEE.js → chunk-NIJEXGV6.js} +10 -79
- package/chunks/{chunk-6OHCY3OB.js → chunk-O3OCNYY5.js} +2 -2
- package/chunks/{chunk-J63IP5ZT.js → chunk-O3Z73NBP.js} +7 -7
- package/chunks/{chunk-RWCQJC5W.js → chunk-OEO2ERWK.js} +33 -54
- package/chunks/{chunk-KQQ757OQ.js → chunk-OLMETXLX.js} +2 -2
- package/chunks/{chunk-LIZRAKPB.js → chunk-OOCI5VVU.js} +1 -1
- package/chunks/{chunk-GPSKDNEE.js → chunk-OONJNQ42.js} +3 -3
- package/chunks/{chunk-YM3SZTH4.js → chunk-OP4MOGXF.js} +1 -8
- package/chunks/{chunk-CHLNJN3C.js → chunk-OWCALFEG.js} +1 -1
- package/chunks/{chunk-5JX7FPHW.js → chunk-OYZWQNWG.js} +2 -2
- package/chunks/{chunk-QBUDF33N.js → chunk-PBATSWUQ.js} +1 -1
- package/chunks/{chunk-DKZISEDB.js → chunk-PBWEWI4N.js} +69 -76
- package/chunks/{chunk-DORJSBMF.js → chunk-PF4CHQOJ.js} +6 -6
- package/chunks/{chunk-SOMSZ6W3.js → chunk-PGEPSDJI.js} +8 -13
- package/chunks/{chunk-4LVZNIDO.js → chunk-QKYTTBYW.js} +1 -1
- package/chunks/{chunk-VYPFXUCB.js → chunk-R3VWUU2E.js} +1 -1
- package/chunks/{chunk-RV4C2ZFG.js → chunk-RFIAR4YL.js} +1 -1
- package/chunks/{chunk-66RKDODM.js → chunk-S2PD3EZD.js} +1 -1
- package/chunks/{chunk-RAUHV362.js → chunk-S2W2LVDU.js} +3 -3
- package/chunks/{chunk-VLBJ7ZUG.js → chunk-S2XVRHDN.js} +1 -1
- package/chunks/chunk-SEKHYHMS.js +45 -0
- package/chunks/{chunk-KNTYRZD4.js → chunk-SJMV7ZBK.js} +8 -8
- package/chunks/{chunk-THJNPLI4.js → chunk-TB6UDU4T.js} +16 -16
- package/chunks/{chunk-CMRYLH67.js → chunk-TIH2ZTOC.js} +2 -2
- package/chunks/{chunk-K4VB66QF.js → chunk-TKLLK6XQ.js} +11 -11
- package/chunks/{chunk-QTROYZUC.js → chunk-TMQ6XQCX.js} +53 -170
- package/chunks/{chunk-QNLNLENL.js → chunk-UEY4AYUL.js} +2 -2
- package/chunks/{chunk-FSXCGBXB.js → chunk-VDWBQ5AW.js} +1 -1
- package/chunks/{chunk-45DNGJKC.js → chunk-VEXFOTEO.js} +3 -3
- package/chunks/{chunk-A7CUSHP7.js → chunk-VZQUV7VK.js} +1 -1
- package/chunks/chunk-W7FJ3N32.js +49 -0
- package/chunks/{chunk-UGYMA4EI.js → chunk-W7H223ZZ.js} +1 -1
- package/chunks/{chunk-UH3WSE5L.js → chunk-X6YQWCIJ.js} +1 -13
- package/chunks/{chunk-H4AR2JQF.js → chunk-XVVH63JG.js} +3 -3
- package/chunks/{chunk-QKTHJXCS.js → chunk-Y2ENGUD6.js} +1 -1
- package/chunks/{chunk-QD6BRERJ.js → chunk-YWEW33JY.js} +7 -7
- package/chunks/{chunk-57FIIFJN.js → chunk-ZEOZL37W.js} +1 -1
- package/chunks/chunk-ZFKNWQGQ.js +74639 -0
- package/chunks/{computer-use-FMEBQMCB.js → computer-use-NIWQNUZF.js} +35 -42
- package/chunks/{config-utils-WYUQ7II4.js → config-utils-AHQ6YZ66.js} +3 -3
- package/chunks/contextCommand-L2COEUHS.js +66 -0
- package/chunks/{create-sub-session-MLELTOCW.js → create-sub-session-MGNX52P3.js} +30 -37
- package/chunks/{create-sub-session-AZ77LBL3.js → create-sub-session-P26FE5GG.js} +3 -3
- package/chunks/{cron-create-KTWJM7QT.js → cron-create-JWFHBDRQ.js} +5 -5
- package/chunks/{cron-delete-2P3I5ULL.js → cron-delete-GDX4E26G.js} +5 -5
- package/chunks/{cron-list-PXDPGEDQ.js → cron-list-USMAIWPT.js} +5 -5
- package/chunks/{daemon-KLPTQIE4.js → daemon-RG2MAI6T.js} +81 -138
- package/chunks/daemon-status-provider-NL4IAG7B.js +74 -0
- package/chunks/{de-4IBXM7CN.js → de-I7ZIYXZC.js} +1 -5
- package/chunks/{dist-HMU6CYS4.js → dist-2BHAYBKP.js} +2 -2
- package/chunks/{dist-PJLG2XYX.js → dist-2MIU4UUH.js} +1 -1
- package/chunks/{dist-UIFWIFRO.js → dist-53PZYC5B.js} +2 -2
- package/chunks/{dist-OAV7LJGJ.js → dist-AU7NQQRP.js} +1 -1
- package/chunks/{dist-OMW6WDEO.js → dist-FUTEXY6A.js} +1 -1
- package/chunks/{dist-XRYV6TJP.js → dist-WGTQO7F2.js} +25 -65
- package/chunks/{earlyInputCapture-N3J42S2G.js → earlyInputCapture-L6I2A22T.js} +31 -38
- package/chunks/{edit-T6GO7VPW.js → edit-3QV3JZJL.js} +37 -42
- package/chunks/{en-USMCCJAJ.js → en-XE34GKAA.js} +1 -5
- package/chunks/{enter-worktree-OL3FMR3A.js → enter-worktree-4GMMF7EG.js} +35 -42
- package/chunks/{enterPlanMode-LEP7BSBX.js → enterPlanMode-L5UWBAUC.js} +36 -48
- package/chunks/{environment-6LNBH2LJ.js → environment-3OV7UQOT.js} +32 -39
- package/chunks/{errors-IM3H4DNG.js → errors-LEOF5QG4.js} +32 -39
- package/chunks/{exit-worktree-6MOANJMY.js → exit-worktree-DDP57JLV.js} +35 -42
- package/chunks/{exitPlanMode-VLBSWDJK.js → exitPlanMode-CJBLGPIP.js} +35 -42
- package/chunks/{fast-path-3Z3JY4BL.js → fast-path-M6RP2ING.js} +3 -4
- package/chunks/{fast-path-settings-XB3CPUJT.js → fast-path-settings-DAOVFADC.js} +2 -2
- package/chunks/{fr-WVHEBDDB.js → fr-X7KDVZIY.js} +1 -5
- package/chunks/{gemini-VDE6O6CX.js → gemini-H4PHBJTL.js} +89 -97
- package/chunks/{geminiContentGenerator-NN4ZWALY.js → geminiContentGenerator-VURJYPWP.js} +5 -5
- package/chunks/{getMachineId-bsd-QFVLPUPT.js → getMachineId-bsd-EXV7SWPA.js} +1 -1
- package/chunks/{getMachineId-darwin-DGMQQE2E.js → getMachineId-darwin-IUOMFXU3.js} +1 -1
- package/chunks/{getMachineId-linux-R4Z6CSWC.js → getMachineId-linux-K7XJYFHL.js} +1 -1
- package/chunks/{getMachineId-unsupported-Z3SBVBUV.js → getMachineId-unsupported-EA5FDRJ6.js} +1 -1
- package/chunks/{getMachineId-win-SCK5UFDT.js → getMachineId-win-KBA6RAI5.js} +1 -1
- package/chunks/{glob-7AZHIY3Z.js → glob-2KUSRAVQ.js} +35 -42
- package/chunks/{grep-E2KEORSD.js → grep-B5RXVESV.js} +35 -42
- package/chunks/handleAutoUpdate-QQVIWXKT.js +67 -0
- package/chunks/{i18n-VP4NCTZN.js → i18n-N6OBDORT.js} +31 -38
- package/chunks/initializer-6WCFNDLL.js +72 -0
- package/chunks/installationInfo-6J3WPXNS.js +64 -0
- package/chunks/{ja-KY4ROZTE.js → ja-2ICT3KXF.js} +1 -5
- package/chunks/{keychain-token-storage-6ACJDYIB.js → keychain-token-storage-DWRJMNH3.js} +3 -3
- package/chunks/list-HOWQSWP6.js +75 -0
- package/chunks/loadedSettingsAdapter-AO4YBRXZ.js +69 -0
- package/chunks/{loop-wakeup-RNMRVA66.js → loop-wakeup-5GLTUBHA.js} +6 -6
- package/chunks/{ls-J2ZI5XYK.js → ls-FHBY3Y7I.js} +5 -5
- package/chunks/{lsp-UMS3NUB5.js → lsp-B6VMEW6Y.js} +3 -3
- package/chunks/mcp-QH7QNXOH.js +69 -0
- package/chunks/{monitor-NDYKU5VS.js → monitor-GLJZDNPS.js} +35 -42
- package/chunks/nonInteractiveCli-TI7EMPXD.js +126 -0
- package/chunks/{notebook-edit-GF3HSMXN.js → notebook-edit-AVCIWS4F.js} +38 -43
- package/chunks/{openaiContentGenerator-GE2I3C2T.js → openaiContentGenerator-B7W24G3D.js} +17 -22
- package/chunks/{pidfile-KS4IGGNX.js → pidfile-UEHAT6DH.js} +31 -38
- package/chunks/{processUtils-TEQQ47A2.js → processUtils-XZPY2PBB.js} +2 -2
- package/chunks/{pt-OK455PLH.js → pt-JJ4XPIBP.js} +1 -5
- package/chunks/{qwenContentGenerator-NDYOEIUY.js → qwenContentGenerator-6GUTWJIC.js} +35 -44
- package/chunks/{qwenOAuth2-CXDOBPSK.js → qwenOAuth2-GASEEWGU.js} +15 -18
- package/chunks/{read-file-QDVJX75S.js → read-file-SQJONF6A.js} +11 -13
- package/chunks/{read-mcp-resource-F6HYMDUY.js → read-mcp-resource-AKCL7I43.js} +3 -3
- package/chunks/{record-artifact-7GCFLDD7.js → record-artifact-PEUB7727.js} +3 -3
- package/chunks/{resumeHistoryUtils-5EAQ76W4.js → resumeHistoryUtils-PFQ2A23X.js} +36 -43
- package/chunks/ripGrep-QCK22GDU.js +59 -0
- package/chunks/{ru-7SPDGMGD.js → ru-STR4KTW7.js} +1 -5
- package/chunks/{run-qwen-serve-TC6M3WTJ.js → run-qwen-serve-OZGR3FQA.js} +82 -104
- package/chunks/{runtime-BB73E3Z3.js → runtime-SNVAP6EH.js} +40 -49
- package/chunks/{scheduler-NDU5OFSJ.js → scheduler-Z7QLMUWA.js} +30 -37
- package/chunks/{send-message-PYIJ2PZL.js → send-message-3RHE7HSM.js} +4 -6
- package/chunks/{serve-BTIRWZJ4.js → serve-BT7KS6SC.js} +36 -43
- package/chunks/{server-JKAQBE2E.js → server-SO64U3X5.js} +284 -988
- package/chunks/{session-66QFVVDS.js → session-2KL2WQAH.js} +173 -92
- package/chunks/{settings-NBN6GY7E.js → settings-KITVOUSV.js} +39 -46
- package/chunks/{shell-JDSLAQVH.js → shell-BITUVH2R.js} +30 -37
- package/chunks/{skill-TNMHTO3C.js → skill-SOQHY455.js} +20 -24
- package/chunks/{spawnChannel-TFLHHXOC.js → spawnChannel-2BU3AULL.js} +32 -39
- package/chunks/{src-YFXMPRBL.js → src-43LM7JLB.js} +209 -279
- package/chunks/{standalone-update-2CQVQRSC.js → standalone-update-YG5JUYCM.js} +32 -39
- package/chunks/{startInteractiveUI-6C6PENRW.js → startInteractiveUI-3RGTGEX5.js} +895 -1092
- package/chunks/{syntheticOutput-H7RTI5KL.js → syntheticOutput-FG5PQKIR.js} +4 -4
- package/chunks/{task-create-7474AJJD.js → task-create-HX32YXO7.js} +8 -10
- package/chunks/{task-list-633HGOIB.js → task-list-QWSY4ZIU.js} +6 -6
- package/chunks/{task-stop-MNUGHPIA.js → task-stop-GWC6UWAL.js} +3 -3
- package/chunks/{task-update-66GQB5LI.js → task-update-NCTAB73Q.js} +8 -10
- package/chunks/{team-create-IPBHD26Z.js → team-create-FXN3PEBP.js} +35 -42
- package/chunks/{team-delete-BB3CG3QF.js → team-delete-KK37HTOG.js} +6 -6
- package/chunks/{team-plan-approval-WIGEJXXM.js → team-plan-approval-GEIZ356Q.js} +35 -42
- package/chunks/theme-manager-IAETOI25.js +63 -0
- package/chunks/{todoWrite-KRAUN54W.js → todoWrite-ERCAMLFS.js} +5 -5
- package/chunks/{tool-search-J3CBYJRB.js → tool-search-XKK7DNOK.js} +17 -21
- package/chunks/total-session-admission-BJLDHKJN.js +69 -0
- package/chunks/{trustedFolders-5FJRCHGN.js → trustedFolders-5XCVNEUU.js} +31 -38
- package/chunks/{update-relaunch-S5APSFJS.js → update-relaunch-FMVZK6XF.js} +17 -17
- package/chunks/updateCheck-YZZB7YBU.js +70 -0
- package/chunks/{useAutoAcceptIndicator-WZVJ52U3.js → useAutoAcceptIndicator-ZSQX4I2H.js} +40 -47
- package/chunks/{validateNonInterActiveAuth-64SVMELJ.js → validateNonInterActiveAuth-PRVEB6GG.js} +72 -79
- package/chunks/{version-SQL27GUA.js → version-AZMG6KWL.js} +1 -1
- package/chunks/{web-fetch-K7QCHIOJ.js → web-fetch-EPGJ5OQQ.js} +41 -100
- package/chunks/{workflow-BFTW72A5.js → workflow-UTNVPW22.js} +39 -47
- package/chunks/workspace-providers-status-EADV364W.js +72 -0
- package/chunks/{workspace-registration-store-VAVPVIF3.js → workspace-registration-store-F3ZX3YHT.js} +2 -8
- package/chunks/workspace-registry-W6VMFYZU.js +73 -0
- package/chunks/workspace-service-F3KIN2UN.js +84 -0
- package/chunks/workspace-skills-status-YVICUR5Y.js +71 -0
- package/chunks/write-file-CVGF2OKV.js +596 -0
- package/chunks/{zh-WY5DWYZD.js → zh-6ANG2HTL.js} +1 -5
- package/chunks/{zh-TW-BM47YBFH.js → zh-TW-4RR3YHNN.js} +1 -5
- package/cli-entry.js +12 -164
- package/cli.js +11 -18
- package/locales/ca.js +203 -772
- package/locales/de.js +2 -8
- package/locales/en.js +2 -8
- package/locales/fr.js +2 -8
- package/locales/ja.js +2 -8
- package/locales/pt.js +2 -8
- package/locales/ru.js +2 -8
- package/locales/zh-TW.js +2 -8
- package/locales/zh.js +2 -8
- package/package.json +3 -3
- package/web-shell/assets/{arc-ByltRugA.js → arc-Buk1besA.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-CCRTto5d.js → architectureDiagram-3BPJPVTR-B1aUKYDC.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Jfy36u1L.js → blockDiagram-GPEHLZMM-CRTdg3Zx.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-4d5FfEZ0.js → c4Diagram-AAUBKEIU-DFdRMp5g.js} +1 -1
- package/web-shell/assets/channel-04R0vLbG.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-BPwxCEro.js → chunk-2J33WTMH-4rYQdkEI.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-jY7ZmJWY.js → chunk-4BX2VUAB-Coi-pQJy.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-C98HgCsS.js → chunk-55IACEB6-BtBjz02t.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-cDu-ge-q.js → chunk-727SXJPM-CGYOWorl.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BKdJwxXK.js → chunk-AQP2D5EJ-CH5AKhqx.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DnuxqwMu.js → chunk-FMBD7UC4-Cd50-w85.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-C4fZNPv0.js → chunk-ND2GUHAM-C2wF3KCK.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-Cf4XWOmz.js → chunk-QZHKN3VN-pCeRTaWi.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Bw9SOwAV.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Bw9SOwAV.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C82mFiqj.js → cose-bilkent-S5V4N54A-B-_fAB6D.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-Df8KACER.js → dagre-BM42HDAG-ChSPNHpL.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-EzNs7s_2.js → diagram-2AECGRRQ-BX7cFOF3.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BRLNvreg.js → diagram-5GNKFQAL-BQUTW92n.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-2HLYHRjC.js → diagram-KO2AKTUF-BkYPh3e4.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DeH0NzSp.js → diagram-LMA3HP47-Cl6jsNyx.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-k5Gn47-G.js → diagram-OG6HWLK6-DRWoHz8n.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-gPHFo79f.js → erDiagram-TEJ5UH35-CGvFcZco.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-DYBOiTRW.js → flowDiagram-I6XJVG4X-vms6oVdv.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-cxjAuic9.js → ganttDiagram-6RSMTGT7-ukT_sfmi.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-3nPqpmCP.js → gitGraphDiagram-PVQCEYII-Bn2ZE2Ut.js} +1 -1
- package/web-shell/assets/index-DgkKrjw3.js +1187 -0
- package/web-shell/assets/index-Rv6mOAN9.css +5 -0
- package/web-shell/assets/{index-Cl8d-1bK.js → index-wFXp7W68.js} +1 -1
- package/web-shell/assets/{infoDiagram-5YYISTIA-Dph21pR5.js → infoDiagram-5YYISTIA-DHJdSi7x.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js → ishikawaDiagram-YF4QCWOH-DOvd2Wph.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CR-IzvnU.js → journeyDiagram-JHISSGLW-CH_urMCT.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BYmuybuC.js → kanban-definition-UN3LZRKU-FKiBdgbH.js} +1 -1
- package/web-shell/assets/{linear-CngEEoy8.js → linear-0ZVQFVKf.js} +1 -1
- package/web-shell/assets/{mermaid.core-G6fbZRPf.js → mermaid.core-DJ05ZZIK.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BtnqnUwJ.js → mindmap-definition-RKZ34NQL-BPuUhkUm.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-XTq6UHIA.js → pieDiagram-4H26LBE5-yLFKcXyG.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D1J5PrsS.js → quadrantDiagram-W4KKPZXB-irWqc1pE.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CLcBUy3t.js → requirementDiagram-4Y6WPE33-B_4uMoIV.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-iwKV02_6.js → sankeyDiagram-5OEKKPKP-ciA4GPwk.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-7NFYQcEX.js → sequenceDiagram-3UESZ5HK-CRdZvy0U.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-Bvm4Wih6.js → stateDiagram-AJRCARHV-DaYIkCCn.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DWBoO4UY.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-B4FZFE9O.js → timeline-definition-PNZ67QCA-oBUKv6iH.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-CvMBpmtL.js → vennDiagram-CIIHVFJN-CGW9Sdmb.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-E3ag2327.js → wardley-L42UT6IY-CvwKJOCm.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BEXWlgxC.js → wardleyDiagram-YWT4CUSO-Ipc260sN.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CICK05gI.js → xychartDiagram-2RQKCTM6-D6-CM7pK.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/agent-headless-CDBMKM44.js +0 -68
- package/chunks/chunk-2RFKHEXL.js +0 -74
- package/chunks/chunk-43T5WDQ7.js +0 -127
- package/chunks/chunk-6PVPNMXU.js +0 -29
- package/chunks/chunk-7362QS5B.js +0 -2256
- package/chunks/chunk-FMXMKPI5.js +0 -1780
- package/chunks/chunk-GLNBDYUX.js +0 -38
- package/chunks/chunk-HTR4WV6U.js +0 -327
- package/chunks/chunk-KWK7UE6L.js +0 -6194
- package/chunks/chunk-M7WBGLYP.js +0 -151
- package/chunks/chunk-NABLFI57.js +0 -82
- package/chunks/chunk-OQ5SYCPE.js +0 -10017
- package/chunks/chunk-OZYV6F53.js +0 -391
- package/chunks/chunk-TJQXJJX7.js +0 -121
- package/chunks/chunk-U7ZFW55U.js +0 -2098
- package/chunks/chunk-WHGVTP7Q.js +0 -1049
- package/chunks/chunk-XHATNRQA.js +0 -1500
- package/chunks/chunk-ZJVVETCV.js +0 -20600
- package/chunks/contextCommand-5YK3QNNJ.js +0 -73
- package/chunks/daemon-status-provider-FXMOD242.js +0 -81
- package/chunks/handleAutoUpdate-BCNVTQWW.js +0 -74
- package/chunks/initializer-5UB4SRPK.js +0 -79
- package/chunks/installationInfo-LNYJCXN3.js +0 -73
- package/chunks/list-NIZ77KPE.js +0 -82
- package/chunks/loadedSettingsAdapter-IQPRO2SO.js +0 -76
- package/chunks/managed-npm-update-GFRDCD77.js +0 -333
- package/chunks/mcp-TCUL7LT2.js +0 -76
- package/chunks/nonInteractiveCli-UHSHJDFD.js +0 -133
- package/chunks/ripGrep-WANMXNVT.js +0 -66
- package/chunks/sdk-exporters-grpc-ETLH47EP.js +0 -23214
- package/chunks/sdk-exporters-http-T3POX73F.js +0 -563
- package/chunks/sdk-impl-NSLPDH6I.js +0 -9193
- package/chunks/theme-manager-OZYKJG3W.js +0 -70
- package/chunks/total-session-admission-CNBQRM44.js +0 -76
- package/chunks/updateCheck-BPSMOZXS.js +0 -89
- package/chunks/web-search-KQPQFM7A.js +0 -731
- package/chunks/workspace-providers-status-4PLI2VFC.js +0 -79
- package/chunks/workspace-registry-I4ZRHGBS.js +0 -80
- package/chunks/workspace-service-RXYBWBDJ.js +0 -91
- package/chunks/workspace-skills-status-35Z2FU4I.js +0 -78
- package/chunks/write-file-KCL5RI2I.js +0 -66
- package/web-shell/assets/channel-4N2UIFcG.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +0 -1
- package/web-shell/assets/index-B7jzUZ_s.css +0 -5
- package/web-shell/assets/index-gE8OWwj_.js +0 -1197
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +0 -1
- package/chunks/{chunk-QZJY47IE.js → chunk-PEJWA3QQ.js} +5 -5
|
@@ -9,13 +9,12 @@ 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";
|
|
12
15
|
import {
|
|
13
16
|
require_mime_db
|
|
14
17
|
} from "./chunk-T2NCM2ET.js";
|
|
15
|
-
import {
|
|
16
|
-
MAX_WORKSPACE_PATH_LENGTH,
|
|
17
|
-
translateAndCheckAbsoluteWorkspacePath
|
|
18
|
-
} from "./chunk-2RFKHEXL.js";
|
|
19
18
|
import {
|
|
20
19
|
writeStderrLine
|
|
21
20
|
} from "./chunk-OWAK7LMW.js";
|
|
@@ -9070,11 +9069,11 @@ var require_mime_types = __commonJS({
|
|
|
9070
9069
|
return exts[0];
|
|
9071
9070
|
}
|
|
9072
9071
|
__name(extension, "extension");
|
|
9073
|
-
function lookup(
|
|
9074
|
-
if (!
|
|
9072
|
+
function lookup(path3) {
|
|
9073
|
+
if (!path3 || typeof path3 !== "string") {
|
|
9075
9074
|
return false;
|
|
9076
9075
|
}
|
|
9077
|
-
var extension2 = extname("x." +
|
|
9076
|
+
var extension2 = extname("x." + path3).toLowerCase().slice(1);
|
|
9078
9077
|
if (!extension2) {
|
|
9079
9078
|
return false;
|
|
9080
9079
|
}
|
|
@@ -10205,13 +10204,13 @@ var require_view = __commonJS({
|
|
|
10205
10204
|
"use strict";
|
|
10206
10205
|
init_esbuild_shims();
|
|
10207
10206
|
var debug = require_src()("express:view");
|
|
10208
|
-
var
|
|
10207
|
+
var path3 = __require("node:path");
|
|
10209
10208
|
var fs = __require("node:fs");
|
|
10210
|
-
var dirname2 =
|
|
10211
|
-
var basename2 =
|
|
10212
|
-
var extname =
|
|
10213
|
-
var join2 =
|
|
10214
|
-
var resolve =
|
|
10209
|
+
var dirname2 = path3.dirname;
|
|
10210
|
+
var basename2 = path3.basename;
|
|
10211
|
+
var extname = path3.extname;
|
|
10212
|
+
var join2 = path3.join;
|
|
10213
|
+
var resolve = path3.resolve;
|
|
10215
10214
|
module.exports = View;
|
|
10216
10215
|
function View(name, options) {
|
|
10217
10216
|
var opts = options || {};
|
|
@@ -10241,17 +10240,17 @@ var require_view = __commonJS({
|
|
|
10241
10240
|
}
|
|
10242
10241
|
__name(View, "View");
|
|
10243
10242
|
View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name) {
|
|
10244
|
-
var
|
|
10243
|
+
var path4;
|
|
10245
10244
|
var roots = [].concat(this.root);
|
|
10246
10245
|
debug('lookup "%s"', name);
|
|
10247
|
-
for (var i = 0; i < roots.length && !
|
|
10246
|
+
for (var i = 0; i < roots.length && !path4; i++) {
|
|
10248
10247
|
var root = roots[i];
|
|
10249
10248
|
var loc = resolve(root, name);
|
|
10250
10249
|
var dir = dirname2(loc);
|
|
10251
10250
|
var file = basename2(loc);
|
|
10252
|
-
|
|
10251
|
+
path4 = this.resolve(dir, file);
|
|
10253
10252
|
}
|
|
10254
|
-
return
|
|
10253
|
+
return path4;
|
|
10255
10254
|
}, "lookup");
|
|
10256
10255
|
View.prototype.render = /* @__PURE__ */ __name(function render(options, callback) {
|
|
10257
10256
|
var sync = true;
|
|
@@ -10273,21 +10272,21 @@ var require_view = __commonJS({
|
|
|
10273
10272
|
}, "render");
|
|
10274
10273
|
View.prototype.resolve = /* @__PURE__ */ __name(function resolve2(dir, file) {
|
|
10275
10274
|
var ext = this.ext;
|
|
10276
|
-
var
|
|
10277
|
-
var stat = tryStat(
|
|
10275
|
+
var path4 = join2(dir, file);
|
|
10276
|
+
var stat = tryStat(path4);
|
|
10278
10277
|
if (stat && stat.isFile()) {
|
|
10279
|
-
return
|
|
10278
|
+
return path4;
|
|
10280
10279
|
}
|
|
10281
|
-
|
|
10282
|
-
stat = tryStat(
|
|
10280
|
+
path4 = join2(dir, basename2(file, ext), "index" + ext);
|
|
10281
|
+
stat = tryStat(path4);
|
|
10283
10282
|
if (stat && stat.isFile()) {
|
|
10284
|
-
return
|
|
10283
|
+
return path4;
|
|
10285
10284
|
}
|
|
10286
10285
|
}, "resolve");
|
|
10287
|
-
function tryStat(
|
|
10288
|
-
debug('stat "%s"',
|
|
10286
|
+
function tryStat(path4) {
|
|
10287
|
+
debug('stat "%s"', path4);
|
|
10289
10288
|
try {
|
|
10290
|
-
return fs.statSync(
|
|
10289
|
+
return fs.statSync(path4);
|
|
10291
10290
|
} catch (e) {
|
|
10292
10291
|
return void 0;
|
|
10293
10292
|
}
|
|
@@ -11468,15 +11467,15 @@ var require_dist2 = __commonJS({
|
|
|
11468
11467
|
let index = 0;
|
|
11469
11468
|
function consumeUntil(end) {
|
|
11470
11469
|
const output = [];
|
|
11471
|
-
let
|
|
11470
|
+
let path3 = "";
|
|
11472
11471
|
function writePath() {
|
|
11473
|
-
if (!
|
|
11472
|
+
if (!path3)
|
|
11474
11473
|
return;
|
|
11475
11474
|
output.push({
|
|
11476
11475
|
type: "text",
|
|
11477
|
-
value: encodePath(
|
|
11476
|
+
value: encodePath(path3)
|
|
11478
11477
|
});
|
|
11479
|
-
|
|
11478
|
+
path3 = "";
|
|
11480
11479
|
}
|
|
11481
11480
|
__name(writePath, "writePath");
|
|
11482
11481
|
while (index < chars.length) {
|
|
@@ -11489,7 +11488,7 @@ var require_dist2 = __commonJS({
|
|
|
11489
11488
|
if (index === chars.length) {
|
|
11490
11489
|
throw new PathError(`Unexpected end after \\ at index ${index}`, str);
|
|
11491
11490
|
}
|
|
11492
|
-
|
|
11491
|
+
path3 += chars[index++];
|
|
11493
11492
|
continue;
|
|
11494
11493
|
}
|
|
11495
11494
|
if (value === ":" || value === "*") {
|
|
@@ -11533,7 +11532,7 @@ var require_dist2 = __commonJS({
|
|
|
11533
11532
|
if (value === "}" || value === "(" || value === ")" || value === "[" || value === "]" || value === "+" || value === "?" || value === "!") {
|
|
11534
11533
|
throw new PathError(`Unexpected ${value} at index ${index - 1}`, str);
|
|
11535
11534
|
}
|
|
11536
|
-
|
|
11535
|
+
path3 += value;
|
|
11537
11536
|
}
|
|
11538
11537
|
if (end) {
|
|
11539
11538
|
throw new PathError(`Unexpected end at index ${index}, expected ${end}`, str);
|
|
@@ -11545,17 +11544,17 @@ var require_dist2 = __commonJS({
|
|
|
11545
11544
|
return new TokenData(consumeUntil(""), str);
|
|
11546
11545
|
}
|
|
11547
11546
|
__name(parse, "parse");
|
|
11548
|
-
function compile(
|
|
11547
|
+
function compile(path3, options = {}) {
|
|
11549
11548
|
const { encode = encodeURIComponent, delimiter = DEFAULT_DELIMITER } = options;
|
|
11550
|
-
const data = typeof
|
|
11549
|
+
const data = typeof path3 === "object" ? path3 : parse(path3, options);
|
|
11551
11550
|
const fn = tokensToFunction(data.tokens, delimiter, encode);
|
|
11552
|
-
return /* @__PURE__ */ __name(function
|
|
11551
|
+
return /* @__PURE__ */ __name(function path4(params = {}) {
|
|
11553
11552
|
const missing = [];
|
|
11554
|
-
const
|
|
11553
|
+
const path5 = fn(params, missing);
|
|
11555
11554
|
if (missing.length) {
|
|
11556
11555
|
throw new TypeError(`Missing parameters: ${missing.join(", ")}`);
|
|
11557
11556
|
}
|
|
11558
|
-
return
|
|
11557
|
+
return path5;
|
|
11559
11558
|
}, "path");
|
|
11560
11559
|
}
|
|
11561
11560
|
__name(compile, "compile");
|
|
@@ -11620,9 +11619,9 @@ var require_dist2 = __commonJS({
|
|
|
11620
11619
|
};
|
|
11621
11620
|
}
|
|
11622
11621
|
__name(tokenToFunction, "tokenToFunction");
|
|
11623
|
-
function match(
|
|
11622
|
+
function match(path3, options = {}) {
|
|
11624
11623
|
const { decode = decodeURIComponent, delimiter = DEFAULT_DELIMITER } = options;
|
|
11625
|
-
const { regexp, keys } = pathToRegexp(
|
|
11624
|
+
const { regexp, keys } = pathToRegexp(path3, options);
|
|
11626
11625
|
const decoders = keys.map((key) => {
|
|
11627
11626
|
if (decode === false)
|
|
11628
11627
|
return NOOP_VALUE;
|
|
@@ -11634,7 +11633,7 @@ var require_dist2 = __commonJS({
|
|
|
11634
11633
|
const m = regexp.exec(input);
|
|
11635
11634
|
if (!m)
|
|
11636
11635
|
return false;
|
|
11637
|
-
const
|
|
11636
|
+
const path4 = m[0];
|
|
11638
11637
|
const params = /* @__PURE__ */ Object.create(null);
|
|
11639
11638
|
for (let i = 1; i < m.length; i++) {
|
|
11640
11639
|
if (m[i] === void 0)
|
|
@@ -11643,22 +11642,22 @@ var require_dist2 = __commonJS({
|
|
|
11643
11642
|
const decoder = decoders[i - 1];
|
|
11644
11643
|
params[key.name] = decoder(m[i]);
|
|
11645
11644
|
}
|
|
11646
|
-
return { path:
|
|
11645
|
+
return { path: path4, params };
|
|
11647
11646
|
}, "match");
|
|
11648
11647
|
}
|
|
11649
11648
|
__name(match, "match");
|
|
11650
|
-
function pathToRegexp(
|
|
11649
|
+
function pathToRegexp(path3, options = {}) {
|
|
11651
11650
|
const { delimiter = DEFAULT_DELIMITER, end = true, sensitive = false, trailing = true } = options;
|
|
11652
11651
|
const keys = [];
|
|
11653
11652
|
let source = "";
|
|
11654
11653
|
let combinations = 0;
|
|
11655
|
-
function process2(
|
|
11656
|
-
if (Array.isArray(
|
|
11657
|
-
for (const p of
|
|
11654
|
+
function process2(path4) {
|
|
11655
|
+
if (Array.isArray(path4)) {
|
|
11656
|
+
for (const p of path4)
|
|
11658
11657
|
process2(p);
|
|
11659
11658
|
return;
|
|
11660
11659
|
}
|
|
11661
|
-
const data = typeof
|
|
11660
|
+
const data = typeof path4 === "object" ? path4 : parse(path4, options);
|
|
11662
11661
|
flatten(data.tokens, 0, [], (tokens) => {
|
|
11663
11662
|
if (combinations >= 256) {
|
|
11664
11663
|
throw new PathError("Too many path combinations", data.originalPath);
|
|
@@ -11670,7 +11669,7 @@ var require_dist2 = __commonJS({
|
|
|
11670
11669
|
});
|
|
11671
11670
|
}
|
|
11672
11671
|
__name(process2, "process");
|
|
11673
|
-
process2(
|
|
11672
|
+
process2(path3);
|
|
11674
11673
|
let pattern = `^(?:${source})`;
|
|
11675
11674
|
if (trailing)
|
|
11676
11675
|
pattern += "(?:" + escape(delimiter) + "$)?";
|
|
@@ -11820,18 +11819,18 @@ var require_layer = __commonJS({
|
|
|
11820
11819
|
var TRAILING_SLASH_REGEXP = /\/+$/;
|
|
11821
11820
|
var MATCHING_GROUP_REGEXP = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
11822
11821
|
module.exports = Layer;
|
|
11823
|
-
function Layer(
|
|
11822
|
+
function Layer(path3, options, fn) {
|
|
11824
11823
|
if (!(this instanceof Layer)) {
|
|
11825
|
-
return new Layer(
|
|
11824
|
+
return new Layer(path3, options, fn);
|
|
11826
11825
|
}
|
|
11827
|
-
debug("new %o",
|
|
11826
|
+
debug("new %o", path3);
|
|
11828
11827
|
const opts = options || {};
|
|
11829
11828
|
this.handle = fn;
|
|
11830
11829
|
this.keys = [];
|
|
11831
11830
|
this.name = fn.name || "<anonymous>";
|
|
11832
11831
|
this.params = void 0;
|
|
11833
11832
|
this.path = void 0;
|
|
11834
|
-
this.slash =
|
|
11833
|
+
this.slash = path3 === "/" && opts.end === false;
|
|
11835
11834
|
function matcher(_path) {
|
|
11836
11835
|
if (_path instanceof RegExp) {
|
|
11837
11836
|
const keys = [];
|
|
@@ -11871,7 +11870,7 @@ var require_layer = __commonJS({
|
|
|
11871
11870
|
});
|
|
11872
11871
|
}
|
|
11873
11872
|
__name(matcher, "matcher");
|
|
11874
|
-
this.matchers = Array.isArray(
|
|
11873
|
+
this.matchers = Array.isArray(path3) ? path3.map(matcher) : [matcher(path3)];
|
|
11875
11874
|
}
|
|
11876
11875
|
__name(Layer, "Layer");
|
|
11877
11876
|
Layer.prototype.handleError = /* @__PURE__ */ __name(function handleError(error, req, res, next) {
|
|
@@ -11912,9 +11911,9 @@ var require_layer = __commonJS({
|
|
|
11912
11911
|
next(err);
|
|
11913
11912
|
}
|
|
11914
11913
|
}, "handleRequest");
|
|
11915
|
-
Layer.prototype.match = /* @__PURE__ */ __name(function match(
|
|
11914
|
+
Layer.prototype.match = /* @__PURE__ */ __name(function match(path3) {
|
|
11916
11915
|
let match2;
|
|
11917
|
-
if (
|
|
11916
|
+
if (path3 != null) {
|
|
11918
11917
|
if (this.slash) {
|
|
11919
11918
|
this.params = {};
|
|
11920
11919
|
this.path = "";
|
|
@@ -11922,7 +11921,7 @@ var require_layer = __commonJS({
|
|
|
11922
11921
|
}
|
|
11923
11922
|
let i = 0;
|
|
11924
11923
|
while (!match2 && i < this.matchers.length) {
|
|
11925
|
-
match2 = this.matchers[i](
|
|
11924
|
+
match2 = this.matchers[i](path3);
|
|
11926
11925
|
i++;
|
|
11927
11926
|
}
|
|
11928
11927
|
}
|
|
@@ -11951,13 +11950,13 @@ var require_layer = __commonJS({
|
|
|
11951
11950
|
}
|
|
11952
11951
|
}
|
|
11953
11952
|
__name(decodeParam, "decodeParam");
|
|
11954
|
-
function loosen(
|
|
11955
|
-
if (
|
|
11956
|
-
return
|
|
11953
|
+
function loosen(path3) {
|
|
11954
|
+
if (path3 instanceof RegExp || path3 === "/") {
|
|
11955
|
+
return path3;
|
|
11957
11956
|
}
|
|
11958
|
-
return Array.isArray(
|
|
11957
|
+
return Array.isArray(path3) ? path3.map(function(p) {
|
|
11959
11958
|
return loosen(p);
|
|
11960
|
-
}) : String(
|
|
11959
|
+
}) : String(path3).replace(TRAILING_SLASH_REGEXP, "");
|
|
11961
11960
|
}
|
|
11962
11961
|
__name(loosen, "loosen");
|
|
11963
11962
|
}
|
|
@@ -11975,9 +11974,9 @@ var require_route = __commonJS({
|
|
|
11975
11974
|
var flatten = Array.prototype.flat;
|
|
11976
11975
|
var methods = METHODS.map((method) => method.toLowerCase());
|
|
11977
11976
|
module.exports = Route;
|
|
11978
|
-
function Route(
|
|
11979
|
-
debug("new %o",
|
|
11980
|
-
this.path =
|
|
11977
|
+
function Route(path3) {
|
|
11978
|
+
debug("new %o", path3);
|
|
11979
|
+
this.path = path3;
|
|
11981
11980
|
this.stack = [];
|
|
11982
11981
|
this.methods = /* @__PURE__ */ Object.create(null);
|
|
11983
11982
|
}
|
|
@@ -12190,8 +12189,8 @@ var require_router = __commonJS({
|
|
|
12190
12189
|
if (++sync > 100) {
|
|
12191
12190
|
return setImmediate(next, err);
|
|
12192
12191
|
}
|
|
12193
|
-
const
|
|
12194
|
-
if (
|
|
12192
|
+
const path3 = getPathname(req);
|
|
12193
|
+
if (path3 == null) {
|
|
12195
12194
|
return done(layerError);
|
|
12196
12195
|
}
|
|
12197
12196
|
let layer;
|
|
@@ -12199,7 +12198,7 @@ var require_router = __commonJS({
|
|
|
12199
12198
|
let route;
|
|
12200
12199
|
while (match !== true && idx < stack.length) {
|
|
12201
12200
|
layer = stack[idx++];
|
|
12202
|
-
match = matchLayer(layer,
|
|
12201
|
+
match = matchLayer(layer, path3);
|
|
12203
12202
|
route = layer.route;
|
|
12204
12203
|
if (typeof match !== "boolean") {
|
|
12205
12204
|
layerError = layerError || match;
|
|
@@ -12237,19 +12236,19 @@ var require_router = __commonJS({
|
|
|
12237
12236
|
} else if (route) {
|
|
12238
12237
|
layer.handleRequest(req, res, next);
|
|
12239
12238
|
} else {
|
|
12240
|
-
trimPrefix(layer, layerError, layerPath,
|
|
12239
|
+
trimPrefix(layer, layerError, layerPath, path3);
|
|
12241
12240
|
}
|
|
12242
12241
|
sync = 0;
|
|
12243
12242
|
});
|
|
12244
12243
|
}
|
|
12245
12244
|
__name(next, "next");
|
|
12246
|
-
function trimPrefix(layer, layerError, layerPath,
|
|
12245
|
+
function trimPrefix(layer, layerError, layerPath, path3) {
|
|
12247
12246
|
if (layerPath.length !== 0) {
|
|
12248
|
-
if (layerPath !==
|
|
12247
|
+
if (layerPath !== path3.substring(0, layerPath.length)) {
|
|
12249
12248
|
next(layerError);
|
|
12250
12249
|
return;
|
|
12251
12250
|
}
|
|
12252
|
-
const c =
|
|
12251
|
+
const c = path3[layerPath.length];
|
|
12253
12252
|
if (c && c !== "/") {
|
|
12254
12253
|
next(layerError);
|
|
12255
12254
|
return;
|
|
@@ -12274,7 +12273,7 @@ var require_router = __commonJS({
|
|
|
12274
12273
|
}, "handle");
|
|
12275
12274
|
Router.prototype.use = /* @__PURE__ */ __name(function use(handler) {
|
|
12276
12275
|
let offset = 0;
|
|
12277
|
-
let
|
|
12276
|
+
let path3 = "/";
|
|
12278
12277
|
if (typeof handler !== "function") {
|
|
12279
12278
|
let arg = handler;
|
|
12280
12279
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -12282,7 +12281,7 @@ var require_router = __commonJS({
|
|
|
12282
12281
|
}
|
|
12283
12282
|
if (typeof arg !== "function") {
|
|
12284
12283
|
offset = 1;
|
|
12285
|
-
|
|
12284
|
+
path3 = handler;
|
|
12286
12285
|
}
|
|
12287
12286
|
}
|
|
12288
12287
|
const callbacks = flatten.call(slice.call(arguments, offset), Infinity);
|
|
@@ -12294,8 +12293,8 @@ var require_router = __commonJS({
|
|
|
12294
12293
|
if (typeof fn !== "function") {
|
|
12295
12294
|
throw new TypeError("argument handler must be a function");
|
|
12296
12295
|
}
|
|
12297
|
-
debug("use %o %s",
|
|
12298
|
-
const layer = new Layer(
|
|
12296
|
+
debug("use %o %s", path3, fn.name || "<anonymous>");
|
|
12297
|
+
const layer = new Layer(path3, {
|
|
12299
12298
|
sensitive: this.caseSensitive,
|
|
12300
12299
|
strict: false,
|
|
12301
12300
|
end: false
|
|
@@ -12305,9 +12304,9 @@ var require_router = __commonJS({
|
|
|
12305
12304
|
}
|
|
12306
12305
|
return this;
|
|
12307
12306
|
}, "use");
|
|
12308
|
-
Router.prototype.route = /* @__PURE__ */ __name(function route(
|
|
12309
|
-
const route2 = new Route(
|
|
12310
|
-
const layer = new Layer(
|
|
12307
|
+
Router.prototype.route = /* @__PURE__ */ __name(function route(path3) {
|
|
12308
|
+
const route2 = new Route(path3);
|
|
12309
|
+
const layer = new Layer(path3, {
|
|
12311
12310
|
sensitive: this.caseSensitive,
|
|
12312
12311
|
strict: this.strict,
|
|
12313
12312
|
end: true
|
|
@@ -12321,8 +12320,8 @@ var require_router = __commonJS({
|
|
|
12321
12320
|
return route2;
|
|
12322
12321
|
}, "route");
|
|
12323
12322
|
methods.concat("all").forEach(function(method) {
|
|
12324
|
-
Router.prototype[method] = function(
|
|
12325
|
-
const route = this.route(
|
|
12323
|
+
Router.prototype[method] = function(path3) {
|
|
12324
|
+
const route = this.route(path3);
|
|
12326
12325
|
route[method].apply(route, slice.call(arguments, 1));
|
|
12327
12326
|
return this;
|
|
12328
12327
|
};
|
|
@@ -12354,9 +12353,9 @@ var require_router = __commonJS({
|
|
|
12354
12353
|
return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : void 0;
|
|
12355
12354
|
}
|
|
12356
12355
|
__name(getProtohost, "getProtohost");
|
|
12357
|
-
function matchLayer(layer,
|
|
12356
|
+
function matchLayer(layer, path3) {
|
|
12358
12357
|
try {
|
|
12359
|
-
return layer.match(
|
|
12358
|
+
return layer.match(path3);
|
|
12360
12359
|
} catch (err) {
|
|
12361
12360
|
return err;
|
|
12362
12361
|
}
|
|
@@ -12594,7 +12593,7 @@ var require_application = __commonJS({
|
|
|
12594
12593
|
}, "handle");
|
|
12595
12594
|
app.use = /* @__PURE__ */ __name(function use(fn) {
|
|
12596
12595
|
var offset = 0;
|
|
12597
|
-
var
|
|
12596
|
+
var path3 = "/";
|
|
12598
12597
|
if (typeof fn !== "function") {
|
|
12599
12598
|
var arg = fn;
|
|
12600
12599
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -12602,7 +12601,7 @@ var require_application = __commonJS({
|
|
|
12602
12601
|
}
|
|
12603
12602
|
if (typeof arg !== "function") {
|
|
12604
12603
|
offset = 1;
|
|
12605
|
-
|
|
12604
|
+
path3 = fn;
|
|
12606
12605
|
}
|
|
12607
12606
|
}
|
|
12608
12607
|
var fns = flatten.call(slice.call(arguments, offset), Infinity);
|
|
@@ -12612,12 +12611,12 @@ var require_application = __commonJS({
|
|
|
12612
12611
|
var router = this.router;
|
|
12613
12612
|
fns.forEach(function(fn2) {
|
|
12614
12613
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
12615
|
-
return router.use(
|
|
12614
|
+
return router.use(path3, fn2);
|
|
12616
12615
|
}
|
|
12617
|
-
debug(".use app under %s",
|
|
12618
|
-
fn2.mountpath =
|
|
12616
|
+
debug(".use app under %s", path3);
|
|
12617
|
+
fn2.mountpath = path3;
|
|
12619
12618
|
fn2.parent = this;
|
|
12620
|
-
router.use(
|
|
12619
|
+
router.use(path3, /* @__PURE__ */ __name(function mounted_app(req, res, next) {
|
|
12621
12620
|
var orig = req.app;
|
|
12622
12621
|
fn2.handle(req, res, function(err) {
|
|
12623
12622
|
Object.setPrototypeOf(req, orig.request);
|
|
@@ -12629,8 +12628,8 @@ var require_application = __commonJS({
|
|
|
12629
12628
|
}, this);
|
|
12630
12629
|
return this;
|
|
12631
12630
|
}, "use");
|
|
12632
|
-
app.route = /* @__PURE__ */ __name(function route(
|
|
12633
|
-
return this.router.route(
|
|
12631
|
+
app.route = /* @__PURE__ */ __name(function route(path3) {
|
|
12632
|
+
return this.router.route(path3);
|
|
12634
12633
|
}, "route");
|
|
12635
12634
|
app.engine = /* @__PURE__ */ __name(function engine(ext, fn) {
|
|
12636
12635
|
if (typeof fn !== "function") {
|
|
@@ -12673,7 +12672,7 @@ var require_application = __commonJS({
|
|
|
12673
12672
|
}
|
|
12674
12673
|
return this;
|
|
12675
12674
|
}, "set");
|
|
12676
|
-
app.path = /* @__PURE__ */ __name(function
|
|
12675
|
+
app.path = /* @__PURE__ */ __name(function path3() {
|
|
12677
12676
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
12678
12677
|
}, "path");
|
|
12679
12678
|
app.enabled = /* @__PURE__ */ __name(function enabled(setting) {
|
|
@@ -12689,17 +12688,17 @@ var require_application = __commonJS({
|
|
|
12689
12688
|
return this.set(setting, false);
|
|
12690
12689
|
}, "disable");
|
|
12691
12690
|
methods.forEach(function(method) {
|
|
12692
|
-
app[method] = function(
|
|
12691
|
+
app[method] = function(path3) {
|
|
12693
12692
|
if (method === "get" && arguments.length === 1) {
|
|
12694
|
-
return this.set(
|
|
12693
|
+
return this.set(path3);
|
|
12695
12694
|
}
|
|
12696
|
-
var route = this.route(
|
|
12695
|
+
var route = this.route(path3);
|
|
12697
12696
|
route[method].apply(route, slice.call(arguments, 1));
|
|
12698
12697
|
return this;
|
|
12699
12698
|
};
|
|
12700
12699
|
});
|
|
12701
|
-
app.all = /* @__PURE__ */ __name(function all(
|
|
12702
|
-
var route = this.route(
|
|
12700
|
+
app.all = /* @__PURE__ */ __name(function all(path3) {
|
|
12701
|
+
var route = this.route(path3);
|
|
12703
12702
|
var args = slice.call(arguments, 1);
|
|
12704
12703
|
for (var i = 0; i < methods.length; i++) {
|
|
12705
12704
|
route[methods[i]].apply(route, args);
|
|
@@ -13669,7 +13668,7 @@ var require_request = __commonJS({
|
|
|
13669
13668
|
var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
|
|
13670
13669
|
return subdomains2.slice(offset);
|
|
13671
13670
|
}, "subdomains"));
|
|
13672
|
-
defineGetter(req, "path", /* @__PURE__ */ __name(function
|
|
13671
|
+
defineGetter(req, "path", /* @__PURE__ */ __name(function path3() {
|
|
13673
13672
|
return parse(this).pathname;
|
|
13674
13673
|
}, "path"));
|
|
13675
13674
|
defineGetter(req, "host", /* @__PURE__ */ __name(function host() {
|
|
@@ -13892,8 +13891,8 @@ var require_content_disposition = __commonJS({
|
|
|
13892
13891
|
this.parameters = parameters;
|
|
13893
13892
|
}
|
|
13894
13893
|
__name(ContentDisposition, "ContentDisposition");
|
|
13895
|
-
function basename2(
|
|
13896
|
-
const normalized =
|
|
13894
|
+
function basename2(path3) {
|
|
13895
|
+
const normalized = path3.replaceAll("\\", "/");
|
|
13897
13896
|
let end = normalized.length;
|
|
13898
13897
|
while (end > 0 && normalized[end - 1] === "/") {
|
|
13899
13898
|
end--;
|
|
@@ -14153,28 +14152,28 @@ var require_send = __commonJS({
|
|
|
14153
14152
|
var ms = require_ms();
|
|
14154
14153
|
var onFinished = require_on_finished();
|
|
14155
14154
|
var parseRange = require_range_parser();
|
|
14156
|
-
var
|
|
14155
|
+
var path3 = __require("path");
|
|
14157
14156
|
var statuses = require_statuses();
|
|
14158
14157
|
var Stream = __require("stream");
|
|
14159
14158
|
var util = __require("util");
|
|
14160
|
-
var extname =
|
|
14161
|
-
var join2 =
|
|
14162
|
-
var normalize =
|
|
14163
|
-
var resolve =
|
|
14164
|
-
var sep =
|
|
14159
|
+
var extname = path3.extname;
|
|
14160
|
+
var join2 = path3.join;
|
|
14161
|
+
var normalize = path3.normalize;
|
|
14162
|
+
var resolve = path3.resolve;
|
|
14163
|
+
var sep = path3.sep;
|
|
14165
14164
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
14166
14165
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
14167
14166
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
14168
14167
|
module.exports = send;
|
|
14169
|
-
function send(req,
|
|
14170
|
-
return new SendStream(req,
|
|
14168
|
+
function send(req, path4, options) {
|
|
14169
|
+
return new SendStream(req, path4, options);
|
|
14171
14170
|
}
|
|
14172
14171
|
__name(send, "send");
|
|
14173
|
-
function SendStream(req,
|
|
14172
|
+
function SendStream(req, path4, options) {
|
|
14174
14173
|
Stream.call(this);
|
|
14175
14174
|
var opts = options || {};
|
|
14176
14175
|
this.options = opts;
|
|
14177
|
-
this.path =
|
|
14176
|
+
this.path = path4;
|
|
14178
14177
|
this.req = req;
|
|
14179
14178
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
14180
14179
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -14289,10 +14288,10 @@ var require_send = __commonJS({
|
|
|
14289
14288
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
14290
14289
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
14291
14290
|
}, "isRangeFresh");
|
|
14292
|
-
SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(
|
|
14291
|
+
SendStream.prototype.redirect = /* @__PURE__ */ __name(function redirect(path4) {
|
|
14293
14292
|
var res = this.res;
|
|
14294
14293
|
if (hasListeners(this, "directory")) {
|
|
14295
|
-
this.emit("directory", res,
|
|
14294
|
+
this.emit("directory", res, path4);
|
|
14296
14295
|
return;
|
|
14297
14296
|
}
|
|
14298
14297
|
if (this.hasTrailingSlash()) {
|
|
@@ -14312,38 +14311,38 @@ var require_send = __commonJS({
|
|
|
14312
14311
|
SendStream.prototype.pipe = /* @__PURE__ */ __name(function pipe(res) {
|
|
14313
14312
|
var root = this._root;
|
|
14314
14313
|
this.res = res;
|
|
14315
|
-
var
|
|
14316
|
-
if (
|
|
14314
|
+
var path4 = decode(this.path);
|
|
14315
|
+
if (path4 === -1) {
|
|
14317
14316
|
this.error(400);
|
|
14318
14317
|
return res;
|
|
14319
14318
|
}
|
|
14320
|
-
if (~
|
|
14319
|
+
if (~path4.indexOf("\0")) {
|
|
14321
14320
|
this.error(400);
|
|
14322
14321
|
return res;
|
|
14323
14322
|
}
|
|
14324
14323
|
var parts;
|
|
14325
14324
|
if (root !== null) {
|
|
14326
|
-
if (
|
|
14327
|
-
|
|
14325
|
+
if (path4) {
|
|
14326
|
+
path4 = normalize("." + sep + path4);
|
|
14328
14327
|
}
|
|
14329
|
-
if (UP_PATH_REGEXP.test(
|
|
14330
|
-
debug('malicious path "%s"',
|
|
14328
|
+
if (UP_PATH_REGEXP.test(path4)) {
|
|
14329
|
+
debug('malicious path "%s"', path4);
|
|
14331
14330
|
this.error(403);
|
|
14332
14331
|
return res;
|
|
14333
14332
|
}
|
|
14334
|
-
parts =
|
|
14335
|
-
|
|
14333
|
+
parts = path4.split(sep);
|
|
14334
|
+
path4 = normalize(join2(root, path4));
|
|
14336
14335
|
} else {
|
|
14337
|
-
if (UP_PATH_REGEXP.test(
|
|
14338
|
-
debug('malicious path "%s"',
|
|
14336
|
+
if (UP_PATH_REGEXP.test(path4)) {
|
|
14337
|
+
debug('malicious path "%s"', path4);
|
|
14339
14338
|
this.error(403);
|
|
14340
14339
|
return res;
|
|
14341
14340
|
}
|
|
14342
|
-
parts = normalize(
|
|
14343
|
-
|
|
14341
|
+
parts = normalize(path4).split(sep);
|
|
14342
|
+
path4 = resolve(path4);
|
|
14344
14343
|
}
|
|
14345
14344
|
if (containsDotFile(parts)) {
|
|
14346
|
-
debug('%s dotfile "%s"', this._dotfiles,
|
|
14345
|
+
debug('%s dotfile "%s"', this._dotfiles, path4);
|
|
14347
14346
|
switch (this._dotfiles) {
|
|
14348
14347
|
case "allow":
|
|
14349
14348
|
break;
|
|
@@ -14357,13 +14356,13 @@ var require_send = __commonJS({
|
|
|
14357
14356
|
}
|
|
14358
14357
|
}
|
|
14359
14358
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
14360
|
-
this.sendIndex(
|
|
14359
|
+
this.sendIndex(path4);
|
|
14361
14360
|
return res;
|
|
14362
14361
|
}
|
|
14363
|
-
this.sendFile(
|
|
14362
|
+
this.sendFile(path4);
|
|
14364
14363
|
return res;
|
|
14365
14364
|
}, "pipe");
|
|
14366
|
-
SendStream.prototype.send = /* @__PURE__ */ __name(function send2(
|
|
14365
|
+
SendStream.prototype.send = /* @__PURE__ */ __name(function send2(path4, stat) {
|
|
14367
14366
|
var len = stat.size;
|
|
14368
14367
|
var options = this.options;
|
|
14369
14368
|
var opts = {};
|
|
@@ -14375,9 +14374,9 @@ var require_send = __commonJS({
|
|
|
14375
14374
|
this.headersAlreadySent();
|
|
14376
14375
|
return;
|
|
14377
14376
|
}
|
|
14378
|
-
debug('pipe "%s"',
|
|
14379
|
-
this.setHeader(
|
|
14380
|
-
this.type(
|
|
14377
|
+
debug('pipe "%s"', path4);
|
|
14378
|
+
this.setHeader(path4, stat);
|
|
14379
|
+
this.type(path4);
|
|
14381
14380
|
if (this.isConditionalGET()) {
|
|
14382
14381
|
if (this.isPreconditionFailure()) {
|
|
14383
14382
|
this.error(412);
|
|
@@ -14426,28 +14425,28 @@ var require_send = __commonJS({
|
|
|
14426
14425
|
res.end();
|
|
14427
14426
|
return;
|
|
14428
14427
|
}
|
|
14429
|
-
this.stream(
|
|
14428
|
+
this.stream(path4, opts);
|
|
14430
14429
|
}, "send");
|
|
14431
|
-
SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(
|
|
14430
|
+
SendStream.prototype.sendFile = /* @__PURE__ */ __name(function sendFile(path4) {
|
|
14432
14431
|
var i = 0;
|
|
14433
14432
|
var self = this;
|
|
14434
|
-
debug('stat "%s"',
|
|
14435
|
-
fs.stat(
|
|
14436
|
-
var pathEndsWithSep =
|
|
14437
|
-
if (err && err.code === "ENOENT" && !extname(
|
|
14433
|
+
debug('stat "%s"', path4);
|
|
14434
|
+
fs.stat(path4, /* @__PURE__ */ __name(function onstat(err, stat) {
|
|
14435
|
+
var pathEndsWithSep = path4[path4.length - 1] === sep;
|
|
14436
|
+
if (err && err.code === "ENOENT" && !extname(path4) && !pathEndsWithSep) {
|
|
14438
14437
|
return next(err);
|
|
14439
14438
|
}
|
|
14440
14439
|
if (err) return self.onStatError(err);
|
|
14441
|
-
if (stat.isDirectory()) return self.redirect(
|
|
14440
|
+
if (stat.isDirectory()) return self.redirect(path4);
|
|
14442
14441
|
if (pathEndsWithSep) return self.error(404);
|
|
14443
|
-
self.emit("file",
|
|
14444
|
-
self.send(
|
|
14442
|
+
self.emit("file", path4, stat);
|
|
14443
|
+
self.send(path4, stat);
|
|
14445
14444
|
}, "onstat"));
|
|
14446
14445
|
function next(err) {
|
|
14447
14446
|
if (self._extensions.length <= i) {
|
|
14448
14447
|
return err ? self.onStatError(err) : self.error(404);
|
|
14449
14448
|
}
|
|
14450
|
-
var p =
|
|
14449
|
+
var p = path4 + "." + self._extensions[i++];
|
|
14451
14450
|
debug('stat "%s"', p);
|
|
14452
14451
|
fs.stat(p, function(err2, stat) {
|
|
14453
14452
|
if (err2) return next(err2);
|
|
@@ -14458,7 +14457,7 @@ var require_send = __commonJS({
|
|
|
14458
14457
|
}
|
|
14459
14458
|
__name(next, "next");
|
|
14460
14459
|
}, "sendFile");
|
|
14461
|
-
SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(
|
|
14460
|
+
SendStream.prototype.sendIndex = /* @__PURE__ */ __name(function sendIndex(path4) {
|
|
14462
14461
|
var i = -1;
|
|
14463
14462
|
var self = this;
|
|
14464
14463
|
function next(err) {
|
|
@@ -14466,7 +14465,7 @@ var require_send = __commonJS({
|
|
|
14466
14465
|
if (err) return self.onStatError(err);
|
|
14467
14466
|
return self.error(404);
|
|
14468
14467
|
}
|
|
14469
|
-
var p = join2(
|
|
14468
|
+
var p = join2(path4, self._index[i]);
|
|
14470
14469
|
debug('stat "%s"', p);
|
|
14471
14470
|
fs.stat(p, function(err2, stat) {
|
|
14472
14471
|
if (err2) return next(err2);
|
|
@@ -14478,10 +14477,10 @@ var require_send = __commonJS({
|
|
|
14478
14477
|
__name(next, "next");
|
|
14479
14478
|
next();
|
|
14480
14479
|
}, "sendIndex");
|
|
14481
|
-
SendStream.prototype.stream = /* @__PURE__ */ __name(function stream(
|
|
14480
|
+
SendStream.prototype.stream = /* @__PURE__ */ __name(function stream(path4, options) {
|
|
14482
14481
|
var self = this;
|
|
14483
14482
|
var res = this.res;
|
|
14484
|
-
var stream2 = fs.createReadStream(
|
|
14483
|
+
var stream2 = fs.createReadStream(path4, options);
|
|
14485
14484
|
this.emit("stream", stream2);
|
|
14486
14485
|
stream2.pipe(res);
|
|
14487
14486
|
function cleanup() {
|
|
@@ -14497,17 +14496,17 @@ var require_send = __commonJS({
|
|
|
14497
14496
|
self.emit("end");
|
|
14498
14497
|
}, "onend"));
|
|
14499
14498
|
}, "stream");
|
|
14500
|
-
SendStream.prototype.type = /* @__PURE__ */ __name(function type(
|
|
14499
|
+
SendStream.prototype.type = /* @__PURE__ */ __name(function type(path4) {
|
|
14501
14500
|
var res = this.res;
|
|
14502
14501
|
if (res.getHeader("Content-Type")) return;
|
|
14503
|
-
var ext = extname(
|
|
14502
|
+
var ext = extname(path4);
|
|
14504
14503
|
var type2 = mime.contentType(ext) || "application/octet-stream";
|
|
14505
14504
|
debug("content-type %s", type2);
|
|
14506
14505
|
res.setHeader("Content-Type", type2);
|
|
14507
14506
|
}, "type");
|
|
14508
|
-
SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(
|
|
14507
|
+
SendStream.prototype.setHeader = /* @__PURE__ */ __name(function setHeader(path4, stat) {
|
|
14509
14508
|
var res = this.res;
|
|
14510
|
-
this.emit("headers", res,
|
|
14509
|
+
this.emit("headers", res, path4, stat);
|
|
14511
14510
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
14512
14511
|
debug("accept ranges");
|
|
14513
14512
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -14571,9 +14570,9 @@ var require_send = __commonJS({
|
|
|
14571
14570
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
14572
14571
|
}
|
|
14573
14572
|
__name(createHttpError, "createHttpError");
|
|
14574
|
-
function decode(
|
|
14573
|
+
function decode(path4) {
|
|
14575
14574
|
try {
|
|
14576
|
-
return decodeURIComponent(
|
|
14575
|
+
return decodeURIComponent(path4);
|
|
14577
14576
|
} catch (err) {
|
|
14578
14577
|
return -1;
|
|
14579
14578
|
}
|
|
@@ -14728,7 +14727,7 @@ var require_response = __commonJS({
|
|
|
14728
14727
|
var http = __require("node:http");
|
|
14729
14728
|
var onFinished = require_on_finished();
|
|
14730
14729
|
var mime = require_mime_types();
|
|
14731
|
-
var
|
|
14730
|
+
var path3 = __require("node:path");
|
|
14732
14731
|
var pathIsAbsolute = __require("node:path").isAbsolute;
|
|
14733
14732
|
var statuses = require_statuses();
|
|
14734
14733
|
var sign = require_cookie_signature().sign;
|
|
@@ -14737,8 +14736,8 @@ var require_response = __commonJS({
|
|
|
14737
14736
|
var setCharset = require_utils2().setCharset;
|
|
14738
14737
|
var cookie = require_cookie();
|
|
14739
14738
|
var send = require_send();
|
|
14740
|
-
var extname =
|
|
14741
|
-
var resolve =
|
|
14739
|
+
var extname = path3.extname;
|
|
14740
|
+
var resolve = path3.resolve;
|
|
14742
14741
|
var vary = require_vary();
|
|
14743
14742
|
var { Buffer: Buffer2 } = __require("node:buffer");
|
|
14744
14743
|
var res = Object.create(http.ServerResponse.prototype);
|
|
@@ -14884,26 +14883,26 @@ var require_response = __commonJS({
|
|
|
14884
14883
|
this.type("txt");
|
|
14885
14884
|
return this.send(body);
|
|
14886
14885
|
}, "sendStatus");
|
|
14887
|
-
res.sendFile = /* @__PURE__ */ __name(function sendFile(
|
|
14886
|
+
res.sendFile = /* @__PURE__ */ __name(function sendFile(path4, options, callback) {
|
|
14888
14887
|
var done = callback;
|
|
14889
14888
|
var req = this.req;
|
|
14890
14889
|
var res2 = this;
|
|
14891
14890
|
var next = req.next;
|
|
14892
14891
|
var opts = options || {};
|
|
14893
|
-
if (!
|
|
14892
|
+
if (!path4) {
|
|
14894
14893
|
throw new TypeError("path argument is required to res.sendFile");
|
|
14895
14894
|
}
|
|
14896
|
-
if (typeof
|
|
14895
|
+
if (typeof path4 !== "string") {
|
|
14897
14896
|
throw new TypeError("path must be a string to res.sendFile");
|
|
14898
14897
|
}
|
|
14899
14898
|
if (typeof options === "function") {
|
|
14900
14899
|
done = options;
|
|
14901
14900
|
opts = {};
|
|
14902
14901
|
}
|
|
14903
|
-
if (!opts.root && !pathIsAbsolute(
|
|
14902
|
+
if (!opts.root && !pathIsAbsolute(path4)) {
|
|
14904
14903
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
14905
14904
|
}
|
|
14906
|
-
var pathname = encodeURI(
|
|
14905
|
+
var pathname = encodeURI(path4);
|
|
14907
14906
|
opts.etag = this.app.enabled("etag");
|
|
14908
14907
|
var file = send(req, pathname, opts);
|
|
14909
14908
|
sendfile(res2, file, opts, function(err) {
|
|
@@ -14914,7 +14913,7 @@ var require_response = __commonJS({
|
|
|
14914
14913
|
}
|
|
14915
14914
|
});
|
|
14916
14915
|
}, "sendFile");
|
|
14917
|
-
res.download = /* @__PURE__ */ __name(function download(
|
|
14916
|
+
res.download = /* @__PURE__ */ __name(function download(path4, filename, options, callback) {
|
|
14918
14917
|
var done = callback;
|
|
14919
14918
|
var name = filename;
|
|
14920
14919
|
var opts = options || null;
|
|
@@ -14931,7 +14930,7 @@ var require_response = __commonJS({
|
|
|
14931
14930
|
opts = filename;
|
|
14932
14931
|
}
|
|
14933
14932
|
var headers = {
|
|
14934
|
-
"Content-Disposition": contentDisposition(name ||
|
|
14933
|
+
"Content-Disposition": contentDisposition(name || path4)
|
|
14935
14934
|
};
|
|
14936
14935
|
if (opts && opts.headers) {
|
|
14937
14936
|
var keys = Object.keys(opts.headers);
|
|
@@ -14944,7 +14943,7 @@ var require_response = __commonJS({
|
|
|
14944
14943
|
}
|
|
14945
14944
|
opts = Object.create(opts);
|
|
14946
14945
|
opts.headers = headers;
|
|
14947
|
-
var fullPath = !opts.root ? resolve(
|
|
14946
|
+
var fullPath = !opts.root ? resolve(path4) : path4;
|
|
14948
14947
|
return this.sendFile(fullPath, opts, done);
|
|
14949
14948
|
}, "download");
|
|
14950
14949
|
res.contentType = res.type = /* @__PURE__ */ __name(function contentType(type) {
|
|
@@ -15237,11 +15236,11 @@ var require_serve_static = __commonJS({
|
|
|
15237
15236
|
}
|
|
15238
15237
|
var forwardError = !fallthrough;
|
|
15239
15238
|
var originalUrl = parseUrl.original(req);
|
|
15240
|
-
var
|
|
15241
|
-
if (
|
|
15242
|
-
|
|
15239
|
+
var path3 = parseUrl(req).pathname;
|
|
15240
|
+
if (path3 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
15241
|
+
path3 = "";
|
|
15243
15242
|
}
|
|
15244
|
-
var stream = send(req,
|
|
15243
|
+
var stream = send(req, path3, opts);
|
|
15245
15244
|
stream.on("directory", onDirectory);
|
|
15246
15245
|
if (setHeaders) {
|
|
15247
15246
|
stream.on("headers", setHeaders);
|
|
@@ -16567,8 +16566,6 @@ var SERVE_CAPABILITY_REGISTRY = {
|
|
|
16567
16566
|
workspace_mcp: { since: "v1" },
|
|
16568
16567
|
workspace_skills: { since: "v1" },
|
|
16569
16568
|
workspace_providers: { since: "v1" },
|
|
16570
|
-
workspace_acp_preheat: { since: "v1" },
|
|
16571
|
-
workspace_acp_status: { since: "v1" },
|
|
16572
16569
|
auth_provider_install: { since: "v1" },
|
|
16573
16570
|
// Workspace memory CRUD (`GET/POST /workspace/memory`). Daemon exposes
|
|
16574
16571
|
// hierarchical QWEN.md state and accepts append/replace writes scoped
|
|
@@ -16791,9 +16788,6 @@ var SERVE_CAPABILITY_REGISTRY = {
|
|
|
16791
16788
|
// Singular session shell routes resolve the owning live workspace runtime.
|
|
16792
16789
|
multi_workspace_session_shell: { since: "v1" },
|
|
16793
16790
|
persistent_workspace_registration: { since: "v1" },
|
|
16794
|
-
// Optional presentation-only names and updates to those names for workspace
|
|
16795
|
-
// runtimes. Workspace ids and canonical paths remain the routing identities.
|
|
16796
|
-
workspace_display_name: { since: "v1" },
|
|
16797
16791
|
workspace_runtime_removal: { since: "v1" },
|
|
16798
16792
|
// Workspace-qualified core REST routes under `/workspaces/:workspace/...`.
|
|
16799
16793
|
// Covers core file/status/permissions/trust/lifecycle/MCP/tool, memory,
|
|
@@ -16983,6 +16977,7 @@ var CAPABILITIES_SCHEMA_VERSION = 1;
|
|
|
16983
16977
|
|
|
16984
16978
|
// packages/cli/src/serve/server/request-helpers.ts
|
|
16985
16979
|
init_esbuild_shims();
|
|
16980
|
+
import * as path2 from "node:path";
|
|
16986
16981
|
function sendJsonBodyParserError(res, err) {
|
|
16987
16982
|
if (err instanceof SyntaxError && "status" in err && err.status === 400) {
|
|
16988
16983
|
res.status(400).json({ error: "Invalid JSON in request body" });
|
|
@@ -17042,10 +17037,8 @@ function parseOptionalWorkspaceCwd(body, boundWorkspace, res) {
|
|
|
17042
17037
|
});
|
|
17043
17038
|
return void 0;
|
|
17044
17039
|
}
|
|
17045
|
-
const cwd =
|
|
17046
|
-
|
|
17047
|
-
);
|
|
17048
|
-
if (cwd === null) {
|
|
17040
|
+
const cwd = hasCwd ? body["cwd"] : boundWorkspace;
|
|
17041
|
+
if (!path2.isAbsolute(cwd)) {
|
|
17049
17042
|
res.status(400).json({ error: "`cwd` must be an absolute path when provided" });
|
|
17050
17043
|
return void 0;
|
|
17051
17044
|
}
|
|
@@ -17216,8 +17209,8 @@ var MAX_BUCKETS = 1e4;
|
|
|
17216
17209
|
var GC_REQUEST_INTERVAL = 1e3;
|
|
17217
17210
|
var GC_TIMER_INTERVAL_MS = 5 * 60 * 1e3;
|
|
17218
17211
|
var WORKSPACE_QUALIFIED_ACP_PATH = /^\/workspaces\/[^/]+\/acp$/i;
|
|
17219
|
-
function resolveTier(method,
|
|
17220
|
-
const p =
|
|
17212
|
+
function resolveTier(method, path3, workspaceQualifiedAcpEnabled) {
|
|
17213
|
+
const p = path3.endsWith("/") && path3.length > 1 ? path3.slice(0, -1) : path3;
|
|
17221
17214
|
if (method === "OPTIONS") return null;
|
|
17222
17215
|
if ((method === "GET" || method === "HEAD") && (p === "/health" || p === "/demo"))
|
|
17223
17216
|
return null;
|
|
@@ -17605,7 +17598,6 @@ async function buildDaemonStatusResponse(detail, input) {
|
|
|
17605
17598
|
workspaces: workspaceRuntimes.map((runtime) => ({
|
|
17606
17599
|
id: runtime.workspaceId,
|
|
17607
17600
|
cwd: runtime.workspaceCwd,
|
|
17608
|
-
...runtime.displayName !== void 0 ? { displayName: runtime.displayName } : {},
|
|
17609
17601
|
primary: runtime.primary,
|
|
17610
17602
|
trusted: runtime.trusted
|
|
17611
17603
|
}))
|