@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2
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/model-providers.md +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +39 -28
- package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
- package/bundled/qc-helper/docs/features/channels/github.md +139 -0
- package/bundled/qc-helper/docs/features/channels/gitlab.md +171 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +21 -1
- package/bundled/qc-helper/docs/features/hooks.md +72 -15
- package/bundled/qc-helper/docs/features/mcp.md +9 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
- package/bundled/qc-helper/docs/features/sub-agents.md +42 -8
- package/bundled/qc-helper/docs/qwen-serve.md +11 -7
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +2 -2
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/review/DESIGN.md +19 -0
- package/bundled/review/SKILL.md +120 -61
- package/chunks/MaxSizedBox-TQBQ247P.js +88 -0
- package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-2HPTKCLX.js} +71 -69
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-2C4A5ZTJ.js} +2 -2
- package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-PS6EDGH3.js} +1628 -590
- package/chunks/agent-VDOUB35F.js +84 -0
- package/chunks/agent-headless-EO53EFS2.js +78 -0
- package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-OFHSZJBF.js} +61 -20
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-RDN2W7ND.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-OZERWH5R.js} +4 -4
- package/chunks/bridge-W7AZSRZQ.js +94 -0
- package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-6W3SK7OQ.js} +6 -1
- package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-5S7YCWX5.js} +20 -5
- package/chunks/channel-settings-store-JFVRSNER.js +91 -0
- package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-OVWGYMZS.js} +9 -5
- package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-H55GKOQA.js} +9 -5
- package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-CABBXYHK.js} +5 -4
- package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/{chunk-I7XZ3RY5.js → chunk-2KKCCLPT.js} +1 -1
- package/chunks/{chunk-MSLKI6C2.js → chunk-2LEOZTBT.js} +49 -26
- package/chunks/{chunk-3QMGYBFN.js → chunk-3APUUXRF.js} +1 -80
- package/chunks/{chunk-VV6XU5L7.js → chunk-3F2WDAV6.js} +16 -11
- package/chunks/{chunk-MUP3T3AD.js → chunk-3I6DUGQD.js} +1 -35
- package/chunks/{chunk-66RMLJHC.js → chunk-44F4LBWZ.js} +577 -208
- package/chunks/{chunk-VAK25FTU.js → chunk-45IOTAUS.js} +1 -1
- package/chunks/{chunk-JZA3JUDJ.js → chunk-4KP2F2TE.js} +1 -1
- package/chunks/{chunk-DM4Q4JJH.js → chunk-54YCNSK5.js} +36562 -45062
- package/chunks/{chunk-2Q3OT4OV.js → chunk-56Z7QEAQ.js} +200 -77
- package/chunks/{chunk-ZOIFNCKL.js → chunk-5NNHICSA.js} +3 -23
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/{chunk-RHLZR4E5.js → chunk-675H6PLP.js} +1 -1
- package/chunks/{chunk-YAF5VNU7.js → chunk-6CQWRWUC.js} +4 -5
- package/chunks/chunk-6FMJLI5M.js +1591 -0
- package/chunks/{chunk-HV3G62R6.js → chunk-6MPDY6ZG.js} +1 -1
- package/chunks/{chunk-32MVHM4T.js → chunk-6PQPKTXP.js} +1 -1
- package/chunks/{chunk-LG4GZIVV.js → chunk-6TAASXWL.js} +4 -4
- package/chunks/{chunk-OJGCZBB7.js → chunk-77V3VIKL.js} +41 -36
- package/chunks/{chunk-2OM7GEXO.js → chunk-7KAXXBER.js} +3 -3
- package/chunks/{chunk-2JM6GZ5D.js → chunk-7SJN2IWT.js} +8 -13
- package/chunks/{chunk-UUUTRMI2.js → chunk-7ULQIS27.js} +1 -1
- package/chunks/{chunk-2YZJCM5T.js → chunk-A7Y5H4TX.js} +4 -4
- package/chunks/{chunk-TOFQCPDC.js → chunk-AOHY3QJ3.js} +14 -8
- package/chunks/chunk-AQ37AY7B.js +93 -0
- package/chunks/{chunk-B6ZJ7SI6.js → chunk-AUOULH6Q.js} +383 -320
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-UH3WSE5L.js → chunk-B4AJNNOL.js} +1 -6
- package/chunks/{chunk-7FZEBPKS.js → chunk-BBIQAX4V.js} +23 -18
- package/chunks/{chunk-L26JL52R.js → chunk-CBBP4BMC.js} +64 -67
- package/chunks/{chunk-ZD6UTE4A.js → chunk-CNTR4GR6.js} +1 -1
- package/chunks/{chunk-4M377AZG.js → chunk-CO2U743O.js} +6 -6
- package/chunks/{chunk-3SJ43L4W.js → chunk-CPZAH673.js} +6 -0
- package/chunks/{chunk-VFSJ5VRH.js → chunk-CU47KXB5.js} +3 -3
- package/chunks/{chunk-EPDRMGT4.js → chunk-D4HTUMGX.js} +4 -28
- package/chunks/{chunk-XHRTVPG2.js → chunk-D6MDRSZ6.js} +7 -7
- package/chunks/{chunk-BYFNTGKI.js → chunk-DEEABGH2.js} +3111 -989
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/{chunk-B4UMZKMU.js → chunk-DQ2O5QOJ.js} +1 -1
- package/chunks/{chunk-DLWL3Z7A.js → chunk-DSFHVTWD.js} +3 -3
- package/chunks/{chunk-RWS5VYWC.js → chunk-DUNI4EBW.js} +950 -446
- package/chunks/{chunk-NL7LTRLR.js → chunk-E2BHWIDT.js} +48 -72
- package/chunks/{chunk-3MSHSCSN.js → chunk-E2FN6SM7.js} +93 -3
- package/chunks/{chunk-USTWD7QV.js → chunk-E6CJ2SMM.js} +26 -16
- package/chunks/{chunk-TF2X2WCT.js → chunk-EQNUDTL6.js} +2 -2
- package/chunks/{chunk-PANH4R3B.js → chunk-EU5TBFJI.js} +18 -12
- package/chunks/{chunk-W4CQXHT6.js → chunk-FANRZEAJ.js} +1 -1
- package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
- package/chunks/{chunk-N3FAY5CM.js → chunk-FCYYAB4S.js} +157 -4
- package/chunks/{chunk-OKY7HXPG.js → chunk-FJ5WUMUQ.js} +2 -2
- package/chunks/{chunk-M4UKFCZ2.js → chunk-FNDXMN7I.js} +231 -171
- package/chunks/{chunk-FQK6JAFG.js → chunk-FS674JW4.js} +4 -4
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
- package/chunks/{chunk-LNARWLZQ.js → chunk-GJ2GBPBD.js} +2 -2
- package/chunks/{chunk-E5WH5O3C.js → chunk-GL4JOZXU.js} +4 -4
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/{chunk-KU5XMLDK.js → chunk-GURGAJTX.js} +4 -1
- package/chunks/{chunk-5THCYPLO.js → chunk-H6I4PGRV.js} +15 -8
- package/chunks/{chunk-A5L3JMUA.js → chunk-HC45LTEN.js} +18 -4
- package/chunks/{chunk-U7TXFVUN.js → chunk-HIVKI6O6.js} +118 -95
- package/chunks/{chunk-QY5MMZ6O.js → chunk-HX6RLYUO.js} +3 -3
- package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
- package/chunks/{chunk-ER5LWJR6.js → chunk-I5BT7ADR.js} +3 -3
- package/chunks/{chunk-L5UHQJTJ.js → chunk-IGTHU3T4.js} +1 -1
- package/chunks/{chunk-BIQWWWJN.js → chunk-IIUGIWWY.js} +1 -1
- package/chunks/{chunk-ML52PL6O.js → chunk-JCJ7LKNA.js} +5856 -5334
- package/chunks/{chunk-B7QDM6Z7.js → chunk-JE2CEOBO.js} +2 -2
- package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
- package/chunks/{chunk-P5V4T7NK.js → chunk-JJPKFJBT.js} +11 -3
- package/chunks/{chunk-J6D3VXCC.js → chunk-JLZ3RBQG.js} +18 -5
- package/chunks/{chunk-PWTZEM3C.js → chunk-JXVC2PL3.js} +3 -37
- package/chunks/chunk-JYBU6YUE.js +378 -0
- package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
- package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
- package/chunks/{chunk-Z5BLYMZM.js → chunk-KR32NIAN.js} +6 -6
- package/chunks/{chunk-MK7VQDN3.js → chunk-KWHKHSIS.js} +8 -6
- package/chunks/{chunk-5U4IPFBR.js → chunk-KXDONCPU.js} +4 -4
- package/chunks/{chunk-DHHOYAPR.js → chunk-L2E5GFAG.js} +7 -7
- package/chunks/{chunk-V6VRAM7B.js → chunk-L32VV3ZJ.js} +12 -12
- package/chunks/{chunk-2W3OOD4W.js → chunk-L55JWS76.js} +6 -3
- package/chunks/{chunk-E5TUC6CA.js → chunk-LHKCY7DY.js} +3 -3
- package/chunks/{chunk-NH6KE4JX.js → chunk-LOY7RWQG.js} +3 -3
- package/chunks/{chunk-CC4N4M36.js → chunk-LYI2PZDK.js} +1 -1
- package/chunks/{chunk-3JAQDSXN.js → chunk-MB32MS4U.js} +80 -9
- package/chunks/{chunk-PR75REBZ.js → chunk-MM7TH7ZM.js} +12 -82
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-M5JM7OSF.js → chunk-N4ACHWNH.js} +2 -3
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-J56UI34H.js → chunk-NBD76HUW.js} +4 -2
- package/chunks/{chunk-C3NS4F2Q.js → chunk-NHFEMWAZ.js} +1 -1
- package/chunks/{chunk-6PSLCFQ2.js → chunk-NTDH4IML.js} +18 -9
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/chunk-O6GEWCJA.js +21 -0
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-ZE5WPL4I.js → chunk-OFZKFPYG.js} +3 -3
- package/chunks/{chunk-KIUFNBHR.js → chunk-P5VC5USY.js} +1 -1
- package/chunks/chunk-P755N4CS.js +2196 -0
- package/chunks/{chunk-BRRAJXPA.js → chunk-PCK4B6LR.js} +1 -1
- package/chunks/{chunk-TQCBGUHN.js → chunk-PJOHNFIY.js} +5 -5
- package/chunks/{chunk-G4WFQUYQ.js → chunk-PVNQRENX.js} +1 -1
- package/chunks/{chunk-DM22XS4K.js → chunk-PZEXDV3H.js} +357 -13
- package/chunks/{chunk-2JZBVYTU.js → chunk-Q3T5KA2V.js} +1 -8
- package/chunks/{chunk-SASBXAQL.js → chunk-Q5WZTTWE.js} +4 -4
- package/chunks/{chunk-SRZ6DXVG.js → chunk-QARJNL2V.js} +44 -136
- package/chunks/{chunk-YH6G52F2.js → chunk-QCXGC7QB.js} +4 -4
- package/chunks/{chunk-SQBYH7PX.js → chunk-QDK4F2N5.js} +1 -1
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/{chunk-H5FFA6TH.js → chunk-QTHQ6Z5X.js} +16 -3
- package/chunks/{chunk-5I2IWRSH.js → chunk-R2XWGR75.js} +2 -2
- package/chunks/{chunk-PHVR5UUY.js → chunk-RDJOB6S3.js} +1 -1
- package/chunks/{chunk-GDIPH4JY.js → chunk-RG64CDT2.js} +6 -6
- package/chunks/{chunk-3HBZKBMQ.js → chunk-RSVPYAGK.js} +5 -5
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-K4XWPEWB.js → chunk-SHN4KHDK.js} +4 -33
- package/chunks/{chunk-VYPFXUCB.js → chunk-SZ3KHTDR.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/chunk-T3CHYWJZ.js +758 -0
- package/chunks/{chunk-FNQ6T3CV.js → chunk-TEGJSJDF.js} +10 -7
- package/chunks/{chunk-OHNBB4XR.js → chunk-THVU3RNH.js} +1 -1
- package/chunks/{record-artifact-RQKFYO5B.js → chunk-TIRRPCFS.js} +22 -7
- package/chunks/chunk-TTJZAIFP.js +319 -0
- package/chunks/{chunk-63P4EL5V.js → chunk-TZTAV5RH.js} +1 -1
- package/chunks/{chunk-52O2CIUL.js → chunk-UV6KF7T3.js} +130 -5
- package/chunks/{chunk-QPDRAXDJ.js → chunk-V25K5ID7.js} +1 -1
- package/chunks/{chunk-3IXOIAKE.js → chunk-V4XNUDPE.js} +18 -6
- package/chunks/{chunk-WDSWXQU3.js → chunk-VEMNQMHA.js} +2 -2
- package/chunks/{chunk-LNURQEMZ.js → chunk-VMX5RZQH.js} +12 -10
- package/chunks/{chunk-JALU3ZDU.js → chunk-W3UKBMSI.js} +154 -16
- package/chunks/{chunk-DN6ZX5AY.js → chunk-WWCMSZII.js} +61 -14
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-FY3M44RD.js → chunk-XP4L6KS3.js} +3 -3
- package/chunks/{chunk-6FGBXPWM.js → chunk-XQK4XXTN.js} +38 -44
- package/chunks/{chunk-A6UO2C7C.js → chunk-XUGZYLDH.js} +167 -81
- package/chunks/{chunk-LZEMEFKY.js → chunk-YANIWTRZ.js} +1 -1
- package/chunks/{chunk-IPUUTYMV.js → chunk-YDLJGZHL.js} +1 -1
- package/chunks/{chunk-HIJQF5B5.js → chunk-YGE3IXJP.js} +1 -1
- package/chunks/{chunk-BJX6ZSUK.js → chunk-YUFIEIWC.js} +2 -2
- package/chunks/{chunk-BO4XCS7P.js → chunk-Z3S5EMOW.js} +20 -85
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-PSWQZHEA.js → chunk-ZMOJ7ISP.js} +1 -1
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-MVS3NS2N.js → chunk-ZPZ7ZJEE.js} +28 -5
- package/chunks/{computer-use-DOFAHZAB.js → computer-use-5QWCFNKD.js} +52 -50
- package/chunks/{config-utils-VFQXVGNR.js → config-utils-WADIDWGG.js} +4 -4
- package/chunks/contextCommand-4Z7T7TUM.js +83 -0
- package/chunks/core-runtime-6N4EFC2Q.js +137 -0
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-62YZWVAY.js} +3 -3
- package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-AEREHZBQ.js} +49 -47
- package/chunks/{cron-create-YIID5XAW.js → cron-create-6E7GIQTG.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-JD26XY3W.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-CUWFB44G.js} +6 -6
- package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
- package/chunks/daemon-status-provider-DDF7C5M7.js +93 -0
- package/chunks/daemon-trust-policy-Q4KSOJTR.js +88 -0
- package/chunks/daemon-trust-policy-monitor-V6FTE3IY.js +175 -0
- package/chunks/{de-HGRCYDEJ.js → de-SY6O76BF.js} +6 -1
- package/chunks/deferred-core-runtime-GHJ5GQHK.js +92 -0
- package/chunks/dist-26BIMQT6.js +4487 -0
- package/chunks/{dist-KTYYJ2C5.js → dist-2PERFI23.js} +12 -9
- package/chunks/{dist-NNVBBOGU.js → dist-OAOC5OV4.js} +2 -2
- package/chunks/{dist-K6Y4E7FX.js → dist-PVEAFLHY.js} +5 -4
- package/chunks/{dist-RTJFMNEZ.js → dist-SL2LUMML.js} +1449 -14
- package/chunks/dist-ULIG4M5H.js +13415 -0
- package/chunks/{dist-ANLAT3GS.js → dist-WGMNT3JQ.js} +2 -1
- package/chunks/{dist-BRB6EXK4.js → dist-ZHXOBXDN.js} +3 -3
- package/chunks/earlyInputCapture-TQXLLISD.js +85 -0
- package/chunks/{edit-RIEOJWKB.js → edit-FJEUV6KZ.js} +51 -49
- package/chunks/{en-MTWBNGDO.js → en-NBK3JKCE.js} +9 -1
- package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-7GE3TZ4P.js} +51 -49
- package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-KR5TMPCJ.js} +51 -49
- package/chunks/environment-SWL3CMB3.js +105 -0
- package/chunks/errors-XQE7BGZV.js +91 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-CHKTYNCV.js} +51 -49
- package/chunks/exitPlanMode-QYAG6LWX.js +76 -0
- package/chunks/{fast-path-HYE7IFEV.js → fast-path-Z2K7W6DC.js} +13 -3
- package/chunks/{fr-45RLL55O.js → fr-4KG5V7UT.js} +6 -1
- package/chunks/{gemini-NGRQX3YJ.js → gemini-YU4XKEDG.js} +107 -103
- package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-ZZX6NBO4.js} +7 -7
- package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
- package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
- package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
- package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
- package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
- package/chunks/{glob-FRTM3X2E.js → glob-VYF5CXSX.js} +51 -49
- package/chunks/goal-tools-HGO6VXPB.js +335 -0
- package/chunks/{grep-RKWVROCW.js → grep-5DP5ZUTW.js} +53 -50
- package/chunks/handleAutoUpdate-UVBJ56DL.js +84 -0
- package/chunks/i18n-UQNYHEUD.js +100 -0
- package/chunks/{image-gen-WIEM7KZA.js → image-gen-WHPIZNWF.js} +12 -12
- package/chunks/initializer-GMIICF4W.js +89 -0
- package/chunks/installationInfo-4MGG4WVI.js +83 -0
- package/chunks/{ja-B7DF7DFG.js → ja-F3GSQXMF.js} +6 -1
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-IKO4G53C.js} +3 -3
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-CPN2W334.js +92 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-PXJ7ZUFB.js} +3 -3
- package/chunks/loadedSettingsAdapter-ZQAV5NDO.js +86 -0
- package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-5E7W4IEP.js} +31 -30
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-Y26NQZ5I.js} +15 -8
- package/chunks/{ls-NTK6VOQJ.js → ls-ONQTTMQR.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-YGHHRGMD.js} +3 -3
- package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-MKKAXYXA.js} +50 -48
- package/chunks/mcp-V5NTJF6X.js +86 -0
- package/chunks/{monitor-7FEWXX5F.js → monitor-CO3ASY6E.js} +51 -49
- package/chunks/nonInteractiveCli-ZJYEOO7U.js +148 -0
- package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-Z7AEE6FM.js} +51 -49
- package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-CA3MQOP3.js} +25 -27
- package/chunks/pidfile-NL7MKDRU.js +89 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-V2LCK6T6.js → processUtils-PB5K2DYH.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EQ33KWEN.js} +6 -1
- package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-JYFNDCOS.js} +55 -53
- package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-W2ALKQDD.js} +10 -10
- package/chunks/read-file-IEOR5H5W.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-U2IJN5HM.js} +4 -4
- package/chunks/record-artifact-MGPJ7EG4.js +21 -0
- package/chunks/resumeHistoryUtils-BNBTP5AS.js +94 -0
- package/chunks/ripGrep-UMQODKEB.js +76 -0
- package/chunks/{ru-FZCNZHDC.js → ru-7OZAUKGG.js} +6 -1
- package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-RN2R6QQW.js} +982 -263
- package/chunks/runtime-QFJ2MJF5.js +122 -0
- package/chunks/{scheduler-RS2I6RU5.js → scheduler-AMYUFOZI.js} +49 -47
- package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
- package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-4BQANSJ6.js} +7 -7
- package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-Z4VXWVFX.js} +10 -10
- package/chunks/{send-message-Q6OOR6BR.js → send-message-PMP4ATVM.js} +8 -13
- package/chunks/serve-EIIYJVX3.js +92 -0
- package/chunks/{server-HRZ23U7M.js → server-EP2LLAPD.js} +4816 -1298
- package/chunks/{session-7XHZKTVV.js → session-GMPZBLOW.js} +101 -97
- package/chunks/{settings-7ZGZDXAS.js → settings-LN7RNKBS.js} +53 -51
- package/chunks/shell-EM2OWU5X.js +86 -0
- package/chunks/{skill-LIWXNLDW.js → skill-T5VPSK73.js} +22 -23
- package/chunks/skill-settings-GMR3GMNY.js +94 -0
- package/chunks/spawnChannel-YPCU62DI.js +85 -0
- package/chunks/standalone-update-JAKIM2NF.js +95 -0
- package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-YETQWGYF.js} +1240 -903
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-D7E6ZFKR.js} +4 -4
- package/chunks/task-create-NFCYD43L.js +26 -0
- package/chunks/{task-list-FOPULZEP.js → task-list-TAVMGEVD.js} +7 -7
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-ZDF2UJRM.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-6L7LHGEX.js} +12 -11
- package/chunks/{team-create-O2FROQ4R.js → team-create-LFJ6HGNY.js} +53 -51
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-DPGGRQBU.js} +7 -7
- package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-C2KLSDGO.js} +51 -49
- package/chunks/theme-manager-JQ3ZGBP5.js +80 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-2UO5G6G6.js} +34 -6
- package/chunks/{tool-search-APECNQ3Z.js → tool-search-FAZBFRJZ.js} +21 -22
- package/chunks/total-session-admission-5CALIVYO.js +88 -0
- package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
- package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
- package/chunks/trustedFolders-KOPSP44S.js +98 -0
- package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-6QL2TICS.js} +5 -5
- package/chunks/updateCheck-4Q6RIKFW.js +95 -0
- package/chunks/useAutoAcceptIndicator-Q5BMKZV3.js +96 -0
- package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-GKOC5F6Z.js} +95 -91
- package/chunks/{version-LTNUBQJY.js → version-VSATY2LD.js} +1 -1
- package/chunks/{web-fetch-L5UTI53V.js → web-fetch-JCLKL6NL.js} +19 -21
- package/chunks/{web-search-KM33JOS3.js → web-search-DSQTFUBX.js} +13 -13
- package/chunks/{workflow-K7FAWV77.js → workflow-M6QAVKVJ.js} +52 -50
- package/chunks/workspace-providers-status-YKLTLMJA.js +89 -0
- package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-5DMGKU64.js} +1 -1
- package/chunks/workspace-registry-PTYUSYXX.js +96 -0
- package/chunks/workspace-service-25ML3T47.js +103 -0
- package/chunks/workspace-skills-status-YKZWOYRX.js +89 -0
- package/chunks/workspace-trust-reconciler-5FI2S3OS.js +349 -0
- package/chunks/write-file-AY7VLP5X.js +78 -0
- package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
- package/chunks/{zh-LUIGBD55.js → zh-H3YDK5QW.js} +9 -1
- package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-JYCP7XUA.js} +9 -1
- package/chunks/zoom-image-S4LJZMD5.js +224 -0
- package/cli.js +50 -16
- package/locales/ca.js +7 -2
- package/locales/de.js +7 -2
- package/locales/en.js +10 -2
- package/locales/fr.js +7 -2
- package/locales/ja.js +7 -2
- package/locales/pt.js +7 -2
- package/locales/ru.js +7 -2
- package/locales/zh-TW.js +10 -2
- package/locales/zh.js +10 -2
- package/package.json +5 -4
- package/web-shell/assets/{arc-BbHijhiN.js → arc-xjArKHU2.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-BgrQDNYG.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-CXxWC-1_.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-Dx1tLm3v.js} +1 -1
- package/web-shell/assets/channel-B1cyk94G.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-CBxjogVR.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-izb-rY5W.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-NzLyvSb8.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-DVyKb0dl.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-BtqL7NzB.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-iNpdKIO0.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-DI7cbFmX.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-3Y_-xFYs.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BpBYZoRE.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BpBYZoRE.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A--raRatZn.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-B8SU70mO.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ewgoakXo.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-Bm_JLTnS.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-DEIUjUy9.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C2Wmrpj-.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CtYe6bFx.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-DfpHcWLV.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-CAiUhio5.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-CYc7ezr4.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-70lbkcRS.js} +1 -1
- package/web-shell/assets/index-C1k3PDuU.css +5 -0
- package/web-shell/assets/index-C2GE3DAF.js +74 -0
- package/web-shell/assets/index-DZLIXILO.js +1750 -0
- package/web-shell/assets/{index-BYo99NBH.js → index-Ww86nT9f.js} +1 -1
- package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-C7e8DWPa.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-BYLr2op-.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-hEibAHKX.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-F2rt8Uhp.js} +1 -1
- package/web-shell/assets/{linear-DCKODZe2.js → linear-DPhyNezd.js} +1 -1
- package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-ZUtnug0n.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-DDWcMoi8.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-CTRKzw1_.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CAEwYG_z.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-CRjnH9D9.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-LPQT_sOd.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-Ht2Iqvb0.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CIUdqOXu.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BmqqQZ6w.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-BcilneZF.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BljwiiH1.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-DeKjkYjq.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-L3U1H7KG.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-IJnWsgMT.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/MaxSizedBox-INHRH72H.js +0 -86
- package/chunks/agent-VXDAN5JK.js +0 -82
- package/chunks/agent-headless-K4ZMMNBD.js +0 -76
- package/chunks/bridge-LGPZCFHO.js +0 -91
- package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
- package/chunks/chunk-SZRN75WQ.js +0 -29
- package/chunks/chunk-UGYMA4EI.js +0 -219
- package/chunks/chunk-VCBZUOSI.js +0 -8575
- package/chunks/contextCommand-QIZYHDR5.js +0 -81
- package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
- package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
- package/chunks/environment-VZ7BRI4Q.js +0 -103
- package/chunks/errors-PCX25DVP.js +0 -89
- package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
- package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
- package/chunks/i18n-XEQVMRKN.js +0 -98
- package/chunks/initializer-OVGZ4FLY.js +0 -87
- package/chunks/installationInfo-5UUQJI6Y.js +0 -81
- package/chunks/list-HODU6RXD.js +0 -90
- package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
- package/chunks/mcp-J3DFWX4A.js +0 -84
- package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
- package/chunks/pidfile-4VNAR3EP.js +0 -87
- package/chunks/read-file-LZXUR4TO.js +0 -31
- package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
- package/chunks/ripGrep-2U2FRGMV.js +0 -74
- package/chunks/runtime-AXJWIEDU.js +0 -120
- package/chunks/serve-W2GC47CM.js +0 -90
- package/chunks/shell-45IPBDP5.js +0 -84
- package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
- package/chunks/src-AY65BYR7.js +0 -3166
- package/chunks/standalone-update-ZMFNKAEY.js +0 -93
- package/chunks/task-create-N7WQSGYA.js +0 -25
- package/chunks/theme-manager-YYPZFBAH.js +0 -78
- package/chunks/total-session-admission-JXES723M.js +0 -85
- package/chunks/trustedFolders-HVI7IXUH.js +0 -94
- package/chunks/updateCheck-WUJGHWZZ.js +0 -93
- package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
- package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
- package/chunks/workspace-registry-A7NQUONG.js +0 -89
- package/chunks/workspace-service-STGVSO4N.js +0 -99
- package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
- package/chunks/write-file-HUUCEG4P.js +0 -74
- package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
- package/web-shell/assets/index-B2bXx96W.js +0 -1249
- package/web-shell/assets/index-_8mKjx8q.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
- package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
- package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
- /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_esm,
|
|
5
5
|
isSpanContextValid,
|
|
6
6
|
trace
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QUGAUQGJ.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esbuild_shims
|
|
10
10
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -110,7 +110,7 @@ function getErrorMessage(error) {
|
|
|
110
110
|
`${error.message} (cause: ${detail})`
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
return error.message;
|
|
113
|
+
return truncateStringifiedErrorMessage(error.message);
|
|
114
114
|
}
|
|
115
115
|
if (error !== null && typeof error === "object" && !Array.isArray(error)) {
|
|
116
116
|
const { message, cause } = error;
|
|
@@ -176,14 +176,6 @@ var FatalError = class extends Error {
|
|
|
176
176
|
__name(this, "FatalError");
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
var FatalAuthenticationError = class extends FatalError {
|
|
180
|
-
static {
|
|
181
|
-
__name(this, "FatalAuthenticationError");
|
|
182
|
-
}
|
|
183
|
-
constructor(message) {
|
|
184
|
-
super(message, 41);
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
179
|
var FatalInputError = class extends FatalError {
|
|
188
180
|
static {
|
|
189
181
|
__name(this, "FatalInputError");
|
|
@@ -216,14 +208,6 @@ var FatalTurnLimitedError = class extends FatalError {
|
|
|
216
208
|
super(message, 53);
|
|
217
209
|
}
|
|
218
210
|
};
|
|
219
|
-
var FatalToolExecutionError = class extends FatalError {
|
|
220
|
-
static {
|
|
221
|
-
__name(this, "FatalToolExecutionError");
|
|
222
|
-
}
|
|
223
|
-
constructor(message) {
|
|
224
|
-
super(message, 54);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
211
|
var FatalBudgetExceededError = class extends FatalError {
|
|
228
212
|
static {
|
|
229
213
|
__name(this, "FatalBudgetExceededError");
|
|
@@ -289,13 +273,8 @@ import path from "node:path";
|
|
|
289
273
|
import os from "node:os";
|
|
290
274
|
import * as crypto from "node:crypto";
|
|
291
275
|
var QWEN_DIR = ".qwen";
|
|
292
|
-
var GOOGLE_ACCOUNTS_FILENAME = "google_accounts.json";
|
|
293
276
|
var isDirectoryCache = /* @__PURE__ */ new Map();
|
|
294
277
|
var VALIDATE_PATH_CACHE_MAX = 1024;
|
|
295
|
-
function _resetValidatePathCacheForTest() {
|
|
296
|
-
isDirectoryCache.clear();
|
|
297
|
-
}
|
|
298
|
-
__name(_resetValidatePathCacheForTest, "_resetValidatePathCacheForTest");
|
|
299
278
|
var SHELL_SPECIAL_CHARS = /[ \t()[\]{};|*?$`'"#&<>!~,]/;
|
|
300
279
|
var PATH_ARG_KEYS = [
|
|
301
280
|
"file_path",
|
|
@@ -554,7 +533,7 @@ import * as path2 from "node:path";
|
|
|
554
533
|
import * as os2 from "node:os";
|
|
555
534
|
import * as fs2 from "node:fs";
|
|
556
535
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
557
|
-
var
|
|
536
|
+
var GOOGLE_ACCOUNTS_FILENAME = "google_accounts.json";
|
|
558
537
|
var OAUTH_FILE = "oauth_creds.json";
|
|
559
538
|
var SKILL_PROVIDER_CONFIG_DIRS = [".qwen", ".agents"];
|
|
560
539
|
var TMP_DIR_NAME = "tmp";
|
|
@@ -633,8 +612,20 @@ var Storage = class _Storage {
|
|
|
633
612
|
* This is used to isolate runtime output paths between concurrent sessions.
|
|
634
613
|
*/
|
|
635
614
|
static runWithRuntimeBaseDir(dir, cwd, fn) {
|
|
615
|
+
if (_Storage.runtimeBaseDirContext.getStore()?.pinned) {
|
|
616
|
+
return fn();
|
|
617
|
+
}
|
|
636
618
|
const resolved = _Storage.resolveRuntimeBaseDir(dir, cwd);
|
|
637
|
-
return _Storage.runtimeBaseDirContext.run(
|
|
619
|
+
return _Storage.runtimeBaseDirContext.run(
|
|
620
|
+
{ dir: resolved, pinned: false },
|
|
621
|
+
fn
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
static runWithResolvedRuntimeBaseDir(dir, fn) {
|
|
625
|
+
return _Storage.runtimeBaseDirContext.run(
|
|
626
|
+
{ dir: path2.resolve(dir), pinned: true },
|
|
627
|
+
fn
|
|
628
|
+
);
|
|
638
629
|
}
|
|
639
630
|
static hasRuntimeBaseDirContext() {
|
|
640
631
|
return _Storage.runtimeBaseDirContext.getStore() !== void 0;
|
|
@@ -643,17 +634,20 @@ var Storage = class _Storage {
|
|
|
643
634
|
* Returns the base directory for all runtime output (temp files, debug logs,
|
|
644
635
|
* session data, todos, insights, etc.).
|
|
645
636
|
*
|
|
646
|
-
* Priority: QWEN_RUNTIME_DIR env var > setRuntimeBaseDir() value > getGlobalQwenDir()
|
|
637
|
+
* Priority: pinned runtime context > QWEN_RUNTIME_DIR env var > configurable context > setRuntimeBaseDir() value > getGlobalQwenDir()
|
|
647
638
|
* @returns Absolute path to the runtime output base directory
|
|
648
639
|
*/
|
|
649
640
|
static getRuntimeBaseDir() {
|
|
641
|
+
const contextualDir = _Storage.runtimeBaseDirContext.getStore();
|
|
642
|
+
if (contextualDir?.pinned) {
|
|
643
|
+
return contextualDir.dir ?? _Storage.getGlobalQwenDir();
|
|
644
|
+
}
|
|
650
645
|
const envDir = process.env["QWEN_RUNTIME_DIR"];
|
|
651
646
|
if (envDir) {
|
|
652
647
|
return _Storage.resolveRuntimeBaseDir(envDir) ?? _Storage.getGlobalQwenDir();
|
|
653
648
|
}
|
|
654
|
-
const contextualDir = _Storage.runtimeBaseDirContext.getStore();
|
|
655
649
|
if (contextualDir !== void 0) {
|
|
656
|
-
return contextualDir ?? _Storage.getGlobalQwenDir();
|
|
650
|
+
return contextualDir.dir ?? _Storage.getGlobalQwenDir();
|
|
657
651
|
}
|
|
658
652
|
if (_Storage.runtimeBaseDir) {
|
|
659
653
|
return _Storage.runtimeBaseDir;
|
|
@@ -681,7 +675,7 @@ var Storage = class _Storage {
|
|
|
681
675
|
return path2.join(_Storage.getGlobalQwenDir(), "installation_id");
|
|
682
676
|
}
|
|
683
677
|
static getGoogleAccountsPath() {
|
|
684
|
-
return path2.join(_Storage.getGlobalQwenDir(),
|
|
678
|
+
return path2.join(_Storage.getGlobalQwenDir(), GOOGLE_ACCOUNTS_FILENAME);
|
|
685
679
|
}
|
|
686
680
|
static getUserCommandsDir() {
|
|
687
681
|
return path2.join(_Storage.getGlobalQwenDir(), "commands");
|
|
@@ -886,6 +880,31 @@ var Storage = class _Storage {
|
|
|
886
880
|
}
|
|
887
881
|
};
|
|
888
882
|
|
|
883
|
+
// packages/core/src/telemetry/session-context.ts
|
|
884
|
+
init_esbuild_shims();
|
|
885
|
+
var sessionRootContext;
|
|
886
|
+
var currentSessionId;
|
|
887
|
+
function setSessionContext(ctx, sessionId) {
|
|
888
|
+
sessionRootContext = ctx;
|
|
889
|
+
currentSessionId = sessionId;
|
|
890
|
+
}
|
|
891
|
+
__name(setSessionContext, "setSessionContext");
|
|
892
|
+
function getSessionContext() {
|
|
893
|
+
return sessionRootContext;
|
|
894
|
+
}
|
|
895
|
+
__name(getSessionContext, "getSessionContext");
|
|
896
|
+
function getCurrentSessionId() {
|
|
897
|
+
return currentSessionId;
|
|
898
|
+
}
|
|
899
|
+
__name(getCurrentSessionId, "getCurrentSessionId");
|
|
900
|
+
|
|
901
|
+
// packages/core/src/utils/debugLogger.ts
|
|
902
|
+
init_esbuild_shims();
|
|
903
|
+
import { promises as fs4 } from "node:fs";
|
|
904
|
+
import path4 from "node:path";
|
|
905
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
906
|
+
import util from "node:util";
|
|
907
|
+
|
|
889
908
|
// packages/core/src/utils/symlink.ts
|
|
890
909
|
init_esbuild_shims();
|
|
891
910
|
import { promises as fs3 } from "node:fs";
|
|
@@ -912,24 +931,6 @@ async function updateSymlink(linkPath, targetPath, options) {
|
|
|
912
931
|
}
|
|
913
932
|
__name(updateSymlink, "updateSymlink");
|
|
914
933
|
|
|
915
|
-
// packages/core/src/telemetry/session-context.ts
|
|
916
|
-
init_esbuild_shims();
|
|
917
|
-
var sessionRootContext;
|
|
918
|
-
var currentSessionId;
|
|
919
|
-
function setSessionContext(ctx, sessionId) {
|
|
920
|
-
sessionRootContext = ctx;
|
|
921
|
-
currentSessionId = sessionId;
|
|
922
|
-
}
|
|
923
|
-
__name(setSessionContext, "setSessionContext");
|
|
924
|
-
function getSessionContext() {
|
|
925
|
-
return sessionRootContext;
|
|
926
|
-
}
|
|
927
|
-
__name(getSessionContext, "getSessionContext");
|
|
928
|
-
function getCurrentSessionId() {
|
|
929
|
-
return currentSessionId;
|
|
930
|
-
}
|
|
931
|
-
__name(getCurrentSessionId, "getCurrentSessionId");
|
|
932
|
-
|
|
933
934
|
// packages/core/src/telemetry/trace-context.ts
|
|
934
935
|
init_esbuild_shims();
|
|
935
936
|
init_esm();
|
|
@@ -984,11 +985,6 @@ function isShellTracePropagationEnabled() {
|
|
|
984
985
|
__name(isShellTracePropagationEnabled, "isShellTracePropagationEnabled");
|
|
985
986
|
|
|
986
987
|
// packages/core/src/utils/debugLogger.ts
|
|
987
|
-
init_esbuild_shims();
|
|
988
|
-
import { promises as fs4 } from "node:fs";
|
|
989
|
-
import path4 from "node:path";
|
|
990
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
991
|
-
import util from "node:util";
|
|
992
988
|
var ensureDebugDirPromise = null;
|
|
993
989
|
var ensuredDebugDirPath = null;
|
|
994
990
|
var hasWriteFailure = false;
|
|
@@ -1055,12 +1051,6 @@ function isDebugLoggingDegraded() {
|
|
|
1055
1051
|
return hasWriteFailure;
|
|
1056
1052
|
}
|
|
1057
1053
|
__name(isDebugLoggingDegraded, "isDebugLoggingDegraded");
|
|
1058
|
-
function resetDebugLoggingState() {
|
|
1059
|
-
hasWriteFailure = false;
|
|
1060
|
-
ensureDebugDirPromise = null;
|
|
1061
|
-
ensuredDebugDirPath = null;
|
|
1062
|
-
}
|
|
1063
|
-
__name(resetDebugLoggingState, "resetDebugLoggingState");
|
|
1064
1054
|
var DEBUG_LATEST_ALIAS = "latest";
|
|
1065
1055
|
var SESSION_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1066
1056
|
function updateLatestDebugLogAlias(sessionId) {
|
|
@@ -1083,10 +1073,6 @@ function setDebugLogSession(session) {
|
|
|
1083
1073
|
}
|
|
1084
1074
|
}
|
|
1085
1075
|
__name(setDebugLogSession, "setDebugLogSession");
|
|
1086
|
-
function runWithDebugLogSession(session, fn) {
|
|
1087
|
-
return sessionContext.run(session, fn);
|
|
1088
|
-
}
|
|
1089
|
-
__name(runWithDebugLogSession, "runWithDebugLogSession");
|
|
1090
1076
|
function runWithoutDebugLogSession(fn) {
|
|
1091
1077
|
return sessionContext.run(false, fn);
|
|
1092
1078
|
}
|
|
@@ -1125,22 +1111,15 @@ export {
|
|
|
1125
1111
|
getErrorStatus,
|
|
1126
1112
|
getErrorType,
|
|
1127
1113
|
FatalError,
|
|
1128
|
-
FatalAuthenticationError,
|
|
1129
1114
|
FatalInputError,
|
|
1130
1115
|
FatalSandboxError,
|
|
1131
1116
|
FatalConfigError,
|
|
1132
1117
|
FatalTurnLimitedError,
|
|
1133
|
-
FatalToolExecutionError,
|
|
1134
1118
|
FatalBudgetExceededError,
|
|
1135
1119
|
FatalCancellationError,
|
|
1136
|
-
ForbiddenError,
|
|
1137
1120
|
UnauthorizedError,
|
|
1138
|
-
BadRequestError,
|
|
1139
1121
|
toFriendlyError,
|
|
1140
1122
|
QWEN_DIR,
|
|
1141
|
-
GOOGLE_ACCOUNTS_FILENAME,
|
|
1142
|
-
_resetValidatePathCacheForTest,
|
|
1143
|
-
SHELL_SPECIAL_CHARS,
|
|
1144
1123
|
PATH_ARG_KEYS,
|
|
1145
1124
|
tildeifyPath,
|
|
1146
1125
|
expandHomeDir,
|
|
@@ -1154,7 +1133,6 @@ export {
|
|
|
1154
1133
|
isSubpath,
|
|
1155
1134
|
isSubpaths,
|
|
1156
1135
|
resolvePath,
|
|
1157
|
-
validatePath,
|
|
1158
1136
|
resolveAndValidatePath,
|
|
1159
1137
|
SKILL_PROVIDER_CONFIG_DIRS,
|
|
1160
1138
|
Storage,
|
|
@@ -1168,9 +1146,7 @@ export {
|
|
|
1168
1146
|
isShellTracePropagationEnabled,
|
|
1169
1147
|
isDebugLogFileEnabled,
|
|
1170
1148
|
isDebugLoggingDegraded,
|
|
1171
|
-
resetDebugLoggingState,
|
|
1172
1149
|
setDebugLogSession,
|
|
1173
|
-
runWithDebugLogSession,
|
|
1174
1150
|
runWithoutDebugLogSession,
|
|
1175
1151
|
createDebugLogger
|
|
1176
1152
|
};
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
CLIENT_MCP_OVER_WS_CONFIG_FLAG
|
|
5
|
+
} from "./chunk-CPZAH673.js";
|
|
6
|
+
import {
|
|
7
|
+
SessionNotFoundError
|
|
8
|
+
} from "./chunk-B4AJNNOL.js";
|
|
3
9
|
import {
|
|
4
10
|
ChannelWorkerStartupError
|
|
5
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FCYYAB4S.js";
|
|
6
12
|
import {
|
|
7
13
|
ChannelDeliveryError,
|
|
8
14
|
ChannelWebhookEnqueueError
|
|
9
15
|
} from "./chunk-U4VTUMMK.js";
|
|
16
|
+
import {
|
|
17
|
+
CHANNEL_LOOP_MCP_SERVER_NAME
|
|
18
|
+
} from "./chunk-JCJ7LKNA.js";
|
|
10
19
|
import {
|
|
11
20
|
init_esbuild_shims
|
|
12
21
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -122,6 +131,75 @@ function createChannelWorkerGroup(opts) {
|
|
|
122
131
|
...opts.shared.restartPolicy ? { restartPolicy: opts.shared.restartPolicy } : {},
|
|
123
132
|
...opts.shared.startupTimeoutMs !== void 0 ? { startupTimeoutMs: opts.shared.startupTimeoutMs } : {},
|
|
124
133
|
...opts.shared.heartbeatTimeoutMs !== void 0 ? { heartbeatTimeoutMs: opts.shared.heartbeatTimeoutMs } : {},
|
|
134
|
+
registerChannelLoopMcp: /* @__PURE__ */ __name(async ({ sessionId, ownerId, sendMessage }) => {
|
|
135
|
+
runtime.clientMcpSenderRegistry.setSession(
|
|
136
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
137
|
+
sessionId,
|
|
138
|
+
sendMessage,
|
|
139
|
+
ownerId
|
|
140
|
+
);
|
|
141
|
+
try {
|
|
142
|
+
const config = {
|
|
143
|
+
type: "sdk",
|
|
144
|
+
[CLIENT_MCP_OVER_WS_CONFIG_FLAG]: true
|
|
145
|
+
};
|
|
146
|
+
const result = await runtime.bridge.addSessionRuntimeMcpServer(
|
|
147
|
+
sessionId,
|
|
148
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
149
|
+
config,
|
|
150
|
+
ownerId
|
|
151
|
+
);
|
|
152
|
+
if (result.skipped) {
|
|
153
|
+
throw new Error(
|
|
154
|
+
`runtime MCP add skipped: ${result.reason ?? "unknown"}`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
if (result.shadowedSettings) {
|
|
158
|
+
throw new Error(
|
|
159
|
+
`channel loop MCP server conflicts with a configured MCP server`
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
if (!runtime.clientMcpSenderRegistry.ownsSession(
|
|
163
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
164
|
+
sessionId,
|
|
165
|
+
ownerId
|
|
166
|
+
)) {
|
|
167
|
+
throw new Error("Channel loop MCP registration was superseded.");
|
|
168
|
+
}
|
|
169
|
+
} catch (error) {
|
|
170
|
+
if (runtime.clientMcpSenderRegistry.deleteSession(
|
|
171
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
172
|
+
sessionId,
|
|
173
|
+
ownerId
|
|
174
|
+
)) {
|
|
175
|
+
await runtime.bridge.removeSessionRuntimeMcpServer(
|
|
176
|
+
sessionId,
|
|
177
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
178
|
+
ownerId
|
|
179
|
+
).catch(() => {
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
throw error;
|
|
183
|
+
}
|
|
184
|
+
}, "registerChannelLoopMcp"),
|
|
185
|
+
unregisterChannelLoopMcp: /* @__PURE__ */ __name(async (sessionId, ownerId) => {
|
|
186
|
+
if (!runtime.clientMcpSenderRegistry.deleteSession(
|
|
187
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
188
|
+
sessionId,
|
|
189
|
+
ownerId
|
|
190
|
+
)) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
try {
|
|
194
|
+
await runtime.bridge.removeSessionRuntimeMcpServer(
|
|
195
|
+
sessionId,
|
|
196
|
+
CHANNEL_LOOP_MCP_SERVER_NAME,
|
|
197
|
+
ownerId
|
|
198
|
+
);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
if (!(error instanceof SessionNotFoundError)) throw error;
|
|
201
|
+
}
|
|
202
|
+
}, "unregisterChannelLoopMcp"),
|
|
125
203
|
...opts.onReady ? {
|
|
126
204
|
onReady: /* @__PURE__ */ __name((snapshot) => {
|
|
127
205
|
if (entries.get(runtime.workspaceCwd)?.generation === entryGeneration) {
|
|
@@ -544,7 +622,13 @@ function createChannelWorkerGroup(opts) {
|
|
|
544
622
|
async deliverChannelMessage(request, workspaceCwd) {
|
|
545
623
|
const entry = routeEntry(request.channelName, workspaceCwd);
|
|
546
624
|
const deliver = entry?.supervisor.deliverChannelMessage;
|
|
547
|
-
if (
|
|
625
|
+
if (entry && drainingWorkspaces.has(entry.workspaceCwd)) {
|
|
626
|
+
throw new ChannelDeliveryError(
|
|
627
|
+
"channel_worker_unavailable",
|
|
628
|
+
`Channel worker for channel "${request.channelName}" is unavailable while its workspace is draining.`
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
if (!entry || !deliver) {
|
|
548
632
|
const hint = workspaceCwd ? `No channel worker for the selected workspace owns channel "${request.channelName}".` : `No channel worker owns channel "${request.channelName}".`;
|
|
549
633
|
throw new ChannelDeliveryError("channel_worker_unavailable", hint);
|
|
550
634
|
}
|
|
@@ -552,7 +636,13 @@ function createChannelWorkerGroup(opts) {
|
|
|
552
636
|
},
|
|
553
637
|
async enqueueWebhookTask(task) {
|
|
554
638
|
const entry = routeEntry(task.channelName);
|
|
555
|
-
if (
|
|
639
|
+
if (entry && drainingWorkspaces.has(entry.workspaceCwd)) {
|
|
640
|
+
throw new ChannelWebhookEnqueueError(
|
|
641
|
+
"channel_worker_unavailable",
|
|
642
|
+
`Channel worker for channel "${task.channelName}" is unavailable while its workspace is draining.`
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
if (!entry) {
|
|
556
646
|
throw new ChannelWebhookEnqueueError(
|
|
557
647
|
"channel_worker_unavailable",
|
|
558
648
|
`No channel worker owns channel "${task.channelName}".`
|
|
@@ -4,17 +4,19 @@ import {
|
|
|
4
4
|
retryContext
|
|
5
5
|
} from "./chunk-P3QQPMQA.js";
|
|
6
6
|
import {
|
|
7
|
+
formatQuotaExhaustedMessage,
|
|
7
8
|
getRateLimitErrorDetails,
|
|
8
9
|
getRetryAfterDelayMs,
|
|
9
10
|
getRetryDelayMs,
|
|
11
|
+
isQuotaExhaustedError,
|
|
10
12
|
isQwenQuotaExceededError,
|
|
11
13
|
isRateLimitError
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XQK4XXTN.js";
|
|
13
15
|
import {
|
|
14
16
|
createDebugLogger,
|
|
15
17
|
getErrorStatus,
|
|
16
18
|
isAbortError
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E2BHWIDT.js";
|
|
18
20
|
import {
|
|
19
21
|
init_esbuild_shims
|
|
20
22
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -138,20 +140,18 @@ function isRetryAbortError(error) {
|
|
|
138
140
|
return error instanceof Error && error.name === "CanceledError";
|
|
139
141
|
}
|
|
140
142
|
__name(isRetryAbortError, "isRetryAbortError");
|
|
143
|
+
var MAX_TRANSPORT_CAUSE_DEPTH = 4;
|
|
141
144
|
function getTransportCode(error) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (typeof directCode === "string" && isTransportCode(directCode)) {
|
|
147
|
-
return directCode;
|
|
148
|
-
}
|
|
149
|
-
const cause = error instanceof Error ? error.cause : void 0;
|
|
150
|
-
if (typeof cause === "object" && cause !== null) {
|
|
151
|
-
const causeCode = cause.code;
|
|
152
|
-
if (typeof causeCode === "string" && isTransportCode(causeCode)) {
|
|
153
|
-
return causeCode;
|
|
145
|
+
let current = error;
|
|
146
|
+
for (let depth = 0; depth <= MAX_TRANSPORT_CAUSE_DEPTH; depth++) {
|
|
147
|
+
if (typeof current !== "object" || current === null) {
|
|
148
|
+
return void 0;
|
|
154
149
|
}
|
|
150
|
+
const code = current.code;
|
|
151
|
+
if (typeof code === "string" && isTransportCode(code)) {
|
|
152
|
+
return code;
|
|
153
|
+
}
|
|
154
|
+
current = current instanceof Error ? current.cause : void 0;
|
|
155
155
|
}
|
|
156
156
|
return void 0;
|
|
157
157
|
}
|
|
@@ -216,7 +216,10 @@ var DEFAULT_RETRY_OPTIONS = {
|
|
|
216
216
|
};
|
|
217
217
|
function defaultShouldRetry(error, extraRetryErrorCodes) {
|
|
218
218
|
const status = getErrorStatus(error);
|
|
219
|
-
|
|
219
|
+
if (isRateLimitError(error, extraRetryErrorCodes) || status !== void 0 && status >= 500 && status < 600) {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
return classifyRetryError(error, { extraRetryErrorCodes }).kind === "transport";
|
|
220
223
|
}
|
|
221
224
|
__name(defaultShouldRetry, "defaultShouldRetry");
|
|
222
225
|
function hasRetryAfterStatus(status) {
|
|
@@ -371,6 +374,14 @@ To continue using Qwen Code, try one of these alternatives:
|
|
|
371
374
|
After setting up your API key, run /auth to configure your provider.`
|
|
372
375
|
);
|
|
373
376
|
}
|
|
377
|
+
if (isQuotaExhaustedError(error)) {
|
|
378
|
+
debugLogger.error(
|
|
379
|
+
"Quota exhausted, fast-failing",
|
|
380
|
+
retryDiagnostics,
|
|
381
|
+
error
|
|
382
|
+
);
|
|
383
|
+
throw new Error(formatQuotaExhaustedMessage(error), { cause: error });
|
|
384
|
+
}
|
|
374
385
|
const isTransient = isTransientCapacityError(error);
|
|
375
386
|
const callerAllowsRetry = hasCustomShouldRetryOnError ? shouldRetryOnError(error) : defaultShouldRetry(error, extraRetryErrorCodes);
|
|
376
387
|
const isFailFast = retryDiagnostics.diagnosis === "fail-fast";
|
|
@@ -498,7 +509,6 @@ __name(logRetryAtStatusLevel, "logRetryAtStatusLevel");
|
|
|
498
509
|
export {
|
|
499
510
|
classifyRetryError,
|
|
500
511
|
isFallbackEligible,
|
|
501
|
-
isTransientCapacityError,
|
|
502
512
|
isUnattendedMode,
|
|
503
513
|
delay,
|
|
504
514
|
retryWithBackoff
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
getPlugin
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KWHKHSIS.js";
|
|
6
6
|
import {
|
|
7
7
|
loadSettings,
|
|
8
8
|
saveSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3UKBMSI.js";
|
|
10
10
|
import {
|
|
11
11
|
init_esbuild_shims
|
|
12
12
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-6PEXNQTX.js";
|
|
9
9
|
import {
|
|
10
10
|
isWorkspaceTrusted
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P755N4CS.js";
|
|
12
12
|
import {
|
|
13
13
|
require_main
|
|
14
14
|
} from "./chunk-5M6IDOMF.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
QWEN_DIR,
|
|
17
17
|
Storage,
|
|
18
18
|
getErrorMessage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E2BHWIDT.js";
|
|
20
20
|
import {
|
|
21
21
|
init_esbuild_shims
|
|
22
22
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -148,18 +148,14 @@ function getHomeEnvFallbackVars(onReadError) {
|
|
|
148
148
|
return result;
|
|
149
149
|
}
|
|
150
150
|
__name(getHomeEnvFallbackVars, "getHomeEnvFallbackVars");
|
|
151
|
-
function findEnvFiles(settings, startDir, userLevelPaths = getUserLevelEnvPaths()) {
|
|
151
|
+
function findEnvFiles(settings, startDir, userLevelPaths = getUserLevelEnvPaths(), workspaceTrusted) {
|
|
152
152
|
const homeDir = os.homedir();
|
|
153
153
|
let realStartDir = path.resolve(startDir);
|
|
154
154
|
try {
|
|
155
155
|
realStartDir = fs.realpathSync(realStartDir);
|
|
156
156
|
} catch {
|
|
157
157
|
}
|
|
158
|
-
const isTrusted = isWorkspaceTrusted(
|
|
159
|
-
settings,
|
|
160
|
-
void 0,
|
|
161
|
-
realStartDir
|
|
162
|
-
).isTrusted;
|
|
158
|
+
const isTrusted = workspaceTrusted ?? isWorkspaceTrusted(settings, void 0, realStartDir).isTrusted;
|
|
163
159
|
const globalQwenDir = Storage.getGlobalQwenDir();
|
|
164
160
|
const legacyQwenDir = path.normalize(path.join(homeDir, QWEN_DIR));
|
|
165
161
|
const hasCustomConfigDir = path.normalize(globalQwenDir) !== legacyQwenDir;
|
|
@@ -284,9 +280,14 @@ function setRuntimeEnvIfUnset(env, key, value) {
|
|
|
284
280
|
}
|
|
285
281
|
}
|
|
286
282
|
__name(setRuntimeEnvIfUnset, "setRuntimeEnvIfUnset");
|
|
287
|
-
function buildRuntimeEnvironment(settings, startDir = process.cwd(), baseEnv = process.env) {
|
|
283
|
+
function buildRuntimeEnvironment(settings, startDir = process.cwd(), baseEnv = process.env, workspaceTrusted) {
|
|
288
284
|
const userLevelPaths = getUserLevelEnvPaths();
|
|
289
|
-
const envFilePaths = findEnvFiles(
|
|
285
|
+
const envFilePaths = findEnvFiles(
|
|
286
|
+
settings,
|
|
287
|
+
startDir,
|
|
288
|
+
userLevelPaths,
|
|
289
|
+
workspaceTrusted
|
|
290
|
+
);
|
|
290
291
|
const parsedEnvFiles = parseEnvFiles(envFilePaths, userLevelPaths);
|
|
291
292
|
const effectiveEnv = { ...baseEnv };
|
|
292
293
|
if (baseEnv["CLOUD_SHELL"] === "true") {
|
|
@@ -366,9 +367,14 @@ function loadEnvironment(settings, startDir = process.cwd()) {
|
|
|
366
367
|
publishPendingCompileCache();
|
|
367
368
|
}
|
|
368
369
|
__name(loadEnvironment, "loadEnvironment");
|
|
369
|
-
function reloadEnvironment(settings, workspaceCwd) {
|
|
370
|
+
function reloadEnvironment(settings, workspaceCwd, workspaceTrusted) {
|
|
370
371
|
const userLevelPaths = getUserLevelEnvPaths();
|
|
371
|
-
const envFilePaths = findEnvFiles(
|
|
372
|
+
const envFilePaths = findEnvFiles(
|
|
373
|
+
settings,
|
|
374
|
+
workspaceCwd,
|
|
375
|
+
userLevelPaths,
|
|
376
|
+
workspaceTrusted
|
|
377
|
+
);
|
|
372
378
|
const parsedEnvFiles = parseEnvFiles(envFilePaths, userLevelPaths);
|
|
373
379
|
if (process.env["CLOUD_SHELL"] === "true") {
|
|
374
380
|
setUpCloudShellEnvironmentInEnv(process.env, parsedEnvFiles.files);
|