@qwen-code/qwen-code 0.21.7 → 0.21.8-nightly.20260810.55e20db328
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/README.md +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +73 -59
- package/bundled/qc-helper/docs/extension/introduction.md +15 -1
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +40 -2
- package/bundled/qc-helper/docs/features/channels/feishu.md +13 -2
- package/bundled/qc-helper/docs/features/channels/github.md +13 -11
- package/bundled/qc-helper/docs/features/channels/gitlab.md +13 -11
- package/bundled/qc-helper/docs/features/channels/overview.md +49 -31
- package/bundled/qc-helper/docs/features/channels/plugins.md +2 -2
- package/bundled/qc-helper/docs/features/channels/qqbot.md +4 -2
- package/bundled/qc-helper/docs/features/channels/telegram.md +4 -2
- package/bundled/qc-helper/docs/features/channels/wecom.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +4 -0
- package/bundled/qc-helper/docs/features/commands.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +52 -0
- package/bundled/qc-helper/docs/integration-jetbrains.md +1 -0
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve.md +10 -5
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +50 -36
- package/bundled/review/SKILL.md +32 -5
- package/chunks/{MaxSizedBox-ANWZBPTS.js → MaxSizedBox-A52T4GEU.js} +29 -25
- package/chunks/{StandaloneSessionPicker-XKS3VU3A.js → StandaloneSessionPicker-4J654SOB.js} +48 -44
- package/chunks/{acp-startup-profiler-ORIQ2CCQ.js → acp-startup-profiler-B5BYAMYQ.js} +2 -2
- package/chunks/{acpAgent-KUAZ3GCZ.js → acpAgent-65AM4AOR.js} +1833 -843
- package/chunks/{agent-T6PTGX5R.js → agent-SVQ7U7NJ.js} +28 -24
- package/chunks/{agent-headless-PR7YCB7S.js → agent-headless-XXGY2SQO.js} +28 -24
- package/chunks/{artifact-tool-U4VOZIK5.js → artifact-tool-N652YE4L.js} +1 -1
- package/chunks/{askUserQuestion-XOBQLPFA.js → askUserQuestion-ONW74PKJ.js} +1 -1
- package/chunks/{bridge-NU6YEEHK.js → bridge-Y32B5S3G.js} +34 -30
- package/chunks/{ca-NYKNH222.js → ca-ZLKAB4K3.js} +6 -0
- package/chunks/{channel-management-service-FSQ7SHYI.js → channel-management-service-PHELKOW2.js} +19 -10
- package/chunks/{channel-settings-store-35VQVUVV.js → channel-settings-store-OW43U6VB.js} +36 -32
- package/chunks/{channel-worker-group-JWQK224X.js → channel-worker-group-MSHT6CWR.js} +7 -7
- package/chunks/{channel-worker-manager-77E3OXRQ.js → channel-worker-manager-XXD3GDSK.js} +7 -7
- package/chunks/{channel-worker-supervisor-62YWUGP2.js → channel-worker-supervisor-IVSDIMI4.js} +4 -4
- package/chunks/{chunk-HYRDKNUY.js → chunk-2545EHZR.js} +1 -1
- package/chunks/{chunk-SPMY6CX6.js → chunk-2ASQDZSJ.js} +3 -3
- package/chunks/{chunk-CJXIIILK.js → chunk-2FRY5CRX.js} +1 -1
- package/chunks/{chunk-CNIID3TV.js → chunk-2UUMVNYT.js} +1 -1
- package/chunks/{chunk-KXSDEOFU.js → chunk-3KJQZEN3.js} +1 -1
- package/chunks/{chunk-22NBYCPD.js → chunk-3P2LV43B.js} +1 -1
- package/chunks/{chunk-Y7E5LNLO.js → chunk-47ZUMGGY.js} +2634 -2114
- package/chunks/{chunk-LA7YLSR6.js → chunk-4EOURKA4.js} +839 -153
- package/chunks/chunk-4JRM2BSM.js +48 -0
- package/chunks/{chunk-BGG4MBYD.js → chunk-4PYCZH2V.js} +4 -187
- package/chunks/{chunk-L4N6TIP7.js → chunk-4TRQPFDP.js} +4 -2
- package/chunks/{chunk-6XJMFJ4D.js → chunk-5WZL724W.js} +177 -120
- package/chunks/{chunk-23RZCH76.js → chunk-5ZTS3OQ3.js} +3 -3
- package/chunks/{chunk-VWOVHOTT.js → chunk-67EWJE77.js} +1 -1
- package/chunks/{chunk-3K7FH2KQ.js → chunk-67N6HB5H.js} +1310 -171
- package/chunks/{chunk-CXE7E23H.js → chunk-6Q5ABMTU.js} +45 -17
- package/chunks/{chunk-NG2R4N5O.js → chunk-6ZRFAKXK.js} +1 -1
- package/chunks/{chunk-RERATVSK.js → chunk-7XX5IBXL.js} +145 -10
- package/chunks/{chunk-S7CV4KO6.js → chunk-AKJQSWV4.js} +4 -4
- package/chunks/{chunk-5KH532V7.js → chunk-AUWN7BAG.js} +1 -1
- package/chunks/{chunk-DBOFL3LQ.js → chunk-BL65MO72.js} +10 -10
- package/chunks/{chunk-AKA24BGO.js → chunk-BT6GQIEJ.js} +1 -1
- package/chunks/{chunk-W7U4ESW2.js → chunk-CG3WBKJK.js} +1 -1
- package/chunks/{chunk-2M5N3DHY.js → chunk-CMOBWHWW.js} +1 -1
- package/chunks/chunk-COBO5EBO.js +135 -0
- package/chunks/chunk-CPG6P4GG.js +82 -0
- package/chunks/{chunk-3NB7TSE2.js → chunk-D2D7J3EW.js} +1 -1
- package/chunks/{chunk-NLREQJFK.js → chunk-DA4HRSBW.js} +15 -0
- package/chunks/{chunk-RNVQB725.js → chunk-DPMJLKUP.js} +2 -2
- package/chunks/{chunk-DIEFUBV6.js → chunk-DX3RGJMS.js} +218 -37
- package/chunks/{chunk-33ACCIIY.js → chunk-DZUO626D.js} +1 -1
- package/chunks/chunk-E2FPSSKP.js +244 -0
- package/chunks/{chunk-72LNFGUY.js → chunk-E2N554HK.js} +3 -3
- package/chunks/{chunk-6EOI4HOK.js → chunk-E2T7FLDU.js} +12 -17
- package/chunks/{chunk-EUQTXRKZ.js → chunk-EISUQQPS.js} +6 -6
- package/chunks/{chunk-H2UQ2M5Z.js → chunk-EUVOKP6Y.js} +96 -22
- package/chunks/{chunk-RMH5OWLD.js → chunk-F3II4BTZ.js} +1 -1
- package/chunks/{chunk-P3LEG54R.js → chunk-F6TUUA2U.js} +3 -3
- package/chunks/chunk-F6WFNA7U.js +22 -0
- package/chunks/{chunk-RZHU3ILK.js → chunk-FAD7OC7V.js} +4 -4
- package/chunks/{chunk-OMKQH5C5.js → chunk-FWWQIFDT.js} +6 -23
- package/chunks/{chunk-TLV2IMHR.js → chunk-FYB4GIDW.js} +3 -3
- package/chunks/{chunk-ZJ3VGYHK.js → chunk-GY24H6IA.js} +40 -22
- package/chunks/{chunk-P2AJ7FTI.js → chunk-H4JC7LZX.js} +1 -1
- package/chunks/{chunk-55LYDVPU.js → chunk-HDYQYYWB.js} +1 -1
- package/chunks/{chunk-PQBHU2IA.js → chunk-HKI3KHAO.js} +11 -11
- package/chunks/{chunk-Y4NGLFGJ.js → chunk-HUWENAHO.js} +1 -1
- package/chunks/{chunk-3ULCB3NE.js → chunk-HV76SFIA.js} +1 -1
- package/chunks/{chunk-CSZEXZBE.js → chunk-HWXGX534.js} +3 -3
- package/chunks/{chunk-E33LOKRA.js → chunk-I5VM3SKY.js} +22 -5
- package/chunks/{chunk-LZC3B5N2.js → chunk-IA7TGCN2.js} +2 -2
- package/chunks/{chunk-RGSBTHSU.js → chunk-KMS57JDD.js} +137 -7
- package/chunks/{chunk-VOARQPTA.js → chunk-KP25NJNM.js} +65 -21
- package/chunks/{chunk-6M26GBKX.js → chunk-L2AFWWJE.js} +42 -3
- package/chunks/{chunk-ZXU5UHMI.js → chunk-LHEC5V6G.js} +2 -2
- package/chunks/{chunk-J26HHFI5.js → chunk-LP2QGNSP.js} +32 -2
- package/chunks/{chunk-R574ATRM.js → chunk-M2PNLYGY.js} +41 -0
- package/chunks/{chunk-MKVZE4ZJ.js → chunk-MFDYOYZZ.js} +3 -2
- package/chunks/{chunk-ALGGS7UH.js → chunk-NPQ5ZKRP.js} +82 -1
- package/chunks/{chunk-YHEEE624.js → chunk-NV3F44FL.js} +7 -3
- package/chunks/{chunk-6GONZVLS.js → chunk-NZMXUSKS.js} +1 -1
- package/chunks/{chunk-HQB2KUAN.js → chunk-O277O7U6.js} +1 -1
- package/chunks/{chunk-Y4EWSQF7.js → chunk-OBP6QWD5.js} +2 -2
- package/chunks/{chunk-CYR3HI5X.js → chunk-OQTXYMKW.js} +2 -2
- package/chunks/{chunk-TYKC75AX.js → chunk-OR6R3IUW.js} +2 -2
- package/chunks/{chunk-TRLYP7OF.js → chunk-OSVH4SMN.js} +16 -141
- package/chunks/{chunk-FPM27XN4.js → chunk-OW2BWT2P.js} +4 -4
- package/chunks/{chunk-TDXGKHDN.js → chunk-P5ULXPK5.js} +2 -2
- package/chunks/{chunk-24ER7UV4.js → chunk-PBRVUF5B.js} +1 -1
- package/chunks/{chunk-LKRMNRSN.js → chunk-PDPFQ2FO.js} +2 -0
- package/chunks/{chunk-2VSTGY6M.js → chunk-PJRW65JO.js} +1 -1
- package/chunks/{chunk-6HVUFDS2.js → chunk-PNVPFARW.js} +22 -13
- package/chunks/{chunk-IC4Z6LX6.js → chunk-PYQADEFD.js} +5 -0
- package/chunks/chunk-R4ZA6GBK.js +208 -0
- package/chunks/{chunk-KR4ZSC7K.js → chunk-RMPLEWF3.js} +3 -3
- package/chunks/{chunk-EORNAQDT.js → chunk-RQ6U2JJQ.js} +1 -1
- package/chunks/{chunk-AE77C5ZU.js → chunk-RYQMJCUO.js} +1 -1
- package/chunks/{chunk-6UWFTUQL.js → chunk-S5CULOHB.js} +75 -31
- package/chunks/{chunk-7UFKAV7Y.js → chunk-S6HYI3MF.js} +2 -2
- package/chunks/chunk-SAH4BD2J.js +92 -0
- package/chunks/chunk-SR7RZ4MS.js +202 -0
- package/chunks/{chunk-QETYKPMG.js → chunk-T2O6NIOY.js} +1 -1
- package/chunks/chunk-TQOF5KBL.js +71 -0
- package/chunks/{chunk-OHJLEW5J.js → chunk-TWFFY5BP.js} +4 -4
- package/chunks/{chunk-SCI7K3GM.js → chunk-TXO5BMR2.js} +19 -10
- package/chunks/{chunk-YJQCUTT2.js → chunk-UAB6J2IE.js} +4 -4
- package/chunks/{chunk-OFI7IGST.js → chunk-UGUKH3SU.js} +10 -10
- package/chunks/{chunk-SHZYHGQH.js → chunk-V2226RFW.js} +1 -1
- package/chunks/{chunk-KKJJB5X6.js → chunk-V47QNK5W.js} +1526 -833
- package/chunks/{chunk-W4B7UBUS.js → chunk-VHXPSL57.js} +6 -6
- package/chunks/{chunk-WUC6ZFXO.js → chunk-VKJ4KTPJ.js} +1 -1
- package/chunks/{chunk-MAJS7AT4.js → chunk-VNNWAZSI.js} +2 -2
- package/chunks/{chunk-BVWVWGLE.js → chunk-WAUGQKUU.js} +4 -64
- package/chunks/{chunk-OH2VKQXH.js → chunk-WH6QMLUW.js} +37 -30
- package/chunks/{chunk-PJOBIWUG.js → chunk-WQYWK4DG.js} +1 -1
- package/chunks/{chunk-LEMXGVEP.js → chunk-YFRFZCIP.js} +3 -3
- package/chunks/{chunk-2U3WZGZG.js → chunk-YGT2AUJ7.js} +103 -135
- package/chunks/{chunk-6XU3PH66.js → chunk-YR7ZQ4RD.js} +22 -69
- package/chunks/{chunk-OA4JVLSA.js → chunk-Z7VOMGDC.js} +22 -1
- package/chunks/{chunk-RUL4S3K3.js → chunk-ZCJBCKL5.js} +175 -60
- package/chunks/{chunk-GSS34377.js → chunk-ZI5IH2HP.js} +2 -2
- package/chunks/{chunk-CB2464BK.js → chunk-ZIKTCMQF.js} +117 -10
- package/chunks/chunk-ZLBIFIMV.js +1099 -0
- package/chunks/{chunk-D3UEZIQH.js → chunk-ZSNBQXMZ.js} +48 -55
- package/chunks/{chunk-FZBZSYKU.js → chunk-ZV7LTLFE.js} +1 -1
- package/chunks/{computer-use-KEAPATUY.js → computer-use-SLN7DV2E.js} +28 -24
- package/chunks/{config-utils-K7SCOWHD.js → config-utils-ULCSRMWD.js} +4 -4
- package/chunks/{contextCommand-ZJA6A5K5.js → contextCommand-EHFYX6FW.js} +30 -26
- package/chunks/{core-runtime-QMJPWHCI.js → core-runtime-FBSP5IIG.js} +33 -29
- package/chunks/{create-sub-session-E4PBYXV5.js → create-sub-session-QIDZUOPU.js} +1 -1
- package/chunks/{create-sub-session-DJE6XICH.js → create-sub-session-WC7YGVSL.js} +29 -25
- package/chunks/{cron-create-GRBWYMIJ.js → cron-create-VONA5JYY.js} +1 -1
- package/chunks/{cron-delete-4CMKBR2M.js → cron-delete-5JXSP2MI.js} +1 -1
- package/chunks/{cron-list-W7K4ASOA.js → cron-list-KE4F2CIR.js} +1 -1
- package/chunks/{daemon-SCTQMM7Z.js → daemon-VSX3FHTY.js} +119 -4
- package/chunks/{daemon-status-provider-FSWDPE2G.js → daemon-status-provider-WW2AD2T7.js} +39 -35
- package/chunks/{daemon-trust-policy-P5L5VFAY.js → daemon-trust-policy-E4MAYWPI.js} +35 -31
- package/chunks/{daemon-trust-policy-monitor-73JYN6ET.js → daemon-trust-policy-monitor-XVIDV6T4.js} +35 -31
- package/chunks/{de-VL76CPLV.js → de-LIW4XVLN.js} +5 -0
- package/chunks/{deferred-core-runtime-BWRCCFTE.js → deferred-core-runtime-5SVUC6UC.js} +28 -24
- package/chunks/{display-image-O2XFPQTC.js → display-image-NQRSIBXM.js} +2 -2
- package/chunks/{dist-HVBMEYWK.js → dist-3NTTUAHT.js} +1 -1
- package/chunks/{dist-7JGAAQSC.js → dist-6BMOAE3Z.js} +2 -2
- package/chunks/{dist-3BMEUGTG.js → dist-B2CGTW6T.js} +1 -1
- package/chunks/{dist-C5U4LJKW.js → dist-EWW3J4HQ.js} +5 -4
- package/chunks/{dist-K4WWQBHS.js → dist-EZE3V3Q7.js} +55 -15
- package/chunks/{dist-DPPHJAVL.js → dist-J47AXBZC.js} +918 -142
- package/chunks/{dist-SFQ34F4M.js → dist-OTUO3AS2.js} +8 -1091
- package/chunks/{dist-KS4O2NKE.js → dist-Z3CS4OVP.js} +14 -8
- package/chunks/{earlyInputCapture-L5ST23A6.js → earlyInputCapture-72FYHYRD.js} +28 -24
- package/chunks/{edit-LHHRFNFK.js → edit-SWVVWHXW.js} +28 -24
- package/chunks/{en-IRJ2WN5T.js → en-SY5GTIGX.js} +6 -0
- package/chunks/{enter-worktree-6NXCRZPF.js → enter-worktree-2HF6WQEO.js} +28 -24
- package/chunks/{enterPlanMode-ZVQT4U7D.js → enterPlanMode-OW6S7L4P.js} +28 -24
- package/chunks/{environment-GJ2HWJOS.js → environment-LRTBTDXH.js} +32 -28
- package/chunks/{errors-6RLH3XXC.js → errors-4CO2DME6.js} +30 -26
- package/chunks/{exit-worktree-I2YLUHHY.js → exit-worktree-GHJEIRGL.js} +28 -24
- package/chunks/{exitPlanMode-7CCWKO7I.js → exitPlanMode-JVP4FNNK.js} +28 -24
- package/chunks/{fast-path-DVFD4HQD.js → fast-path-HCCY7GR2.js} +24 -3
- package/chunks/{fast-path-settings-WQJU2LAT.js → fast-path-settings-MN5QQQET.js} +6 -3
- package/chunks/{fr-GK3HQYVB.js → fr-RQFO7U4P.js} +5 -0
- package/chunks/{gemini-7FWGOYD4.js → gemini-V3YVRKXU.js} +85 -72
- package/chunks/{geminiContentGenerator-V2WVLIXU.js → geminiContentGenerator-LVPMQUWX.js} +1 -1
- package/chunks/{glob-3N6GGI75.js → glob-7HRXHYDR.js} +28 -24
- package/chunks/{goal-tools-APOW6UXL.js → goal-tools-PXWN5VK3.js} +4 -2
- package/chunks/{grep-V43ILZVX.js → grep-BITQUON5.js} +28 -24
- package/chunks/{handleAutoUpdate-A5WFVWIA.js → handleAutoUpdate-DKFY454S.js} +32 -28
- package/chunks/{i18n-PLVQ4FBZ.js → i18n-53BQIQSH.js} +29 -25
- package/chunks/{image-gen-7C6IK6DC.js → image-gen-H62FLDFB.js} +7 -5
- package/chunks/{initializer-CVAIKZYL.js → initializer-Q7NUQRSU.js} +35 -31
- package/chunks/{installationInfo-J6QDHNTK.js → installationInfo-BWFHT7WU.js} +29 -25
- package/chunks/{ja-3FA46IKD.js → ja-KOZKHJHZ.js} +5 -0
- package/chunks/{list-ZZ4OUUWV.js → list-OWQKR6JK.js} +38 -34
- package/chunks/{list-agents-KFFIIS2G.js → list-agents-Z4WABFDZ.js} +1 -1
- package/chunks/{loadedSettingsAdapter-QRYRJSWL.js → loadedSettingsAdapter-HNPKQMFA.js} +35 -31
- package/chunks/{loggingContentGenerator-OJCO75HM.js → loggingContentGenerator-A5I3VQUC.js} +10 -8
- package/chunks/{loop-wakeup-TLMJPMMP.js → loop-wakeup-UZ5RL5Y2.js} +2 -2
- package/chunks/{ls-UVVE2XGE.js → ls-TVHDGIES.js} +1 -1
- package/chunks/{lsp-QMEA2VLB.js → lsp-CVN6OQPI.js} +1 -1
- package/chunks/main-PXAUXNF2.js +8 -0
- package/chunks/{managed-npm-update-PCOSCP2N.js → managed-npm-update-CUUJGUTV.js} +29 -25
- package/chunks/{mcp-M3WKKWKY.js → mcp-GJSC7ZPO.js} +35 -31
- package/chunks/{monitor-GN24FH6C.js → monitor-TZ2II7JM.js} +38 -30
- package/chunks/{nonInteractiveCli-KPTU3VSQ.js → nonInteractiveCli-22RS4EVH.js} +72 -66
- package/chunks/{notebook-edit-4YM65BBO.js → notebook-edit-YZC3YPY2.js} +36 -24
- package/chunks/{openaiContentGenerator-EDQT6GTV.js → openaiContentGenerator-OIGO5XNF.js} +21 -11
- package/chunks/{pidfile-JOIIRN2C.js → pidfile-QJQ65RJ2.js} +28 -24
- package/chunks/{process-registry-2CHQBXH5.js → process-registry-PMJOA5CO.js} +15 -0
- package/chunks/{processUtils-5SV4MX3Q.js → processUtils-V5VSDIKS.js} +2 -2
- package/chunks/{pt-3AOBKPIJ.js → pt-U6AOCTMF.js} +5 -0
- package/chunks/{qwenContentGenerator-ODRJSUGR.js → qwenContentGenerator-HXM25BGB.js} +35 -30
- package/chunks/{qwenOAuth2-NESCMZ47.js → qwenOAuth2-7MTMS2Z5.js} +7 -5
- package/chunks/{read-file-HPSODLPK.js → read-file-PMGXB3ZB.js} +8 -6
- package/chunks/{read-mcp-resource-2TNSJTC3.js → read-mcp-resource-PZ4ZF6YL.js} +1 -1
- package/chunks/{record-artifact-RAON52FC.js → record-artifact-P4HFMS7X.js} +2 -2
- package/chunks/{resumeHistoryUtils-TXCOFFMQ.js → resumeHistoryUtils-YUTPLHUH.js} +33 -29
- package/chunks/{ripGrep-ZKQGTQAO.js → ripGrep-XUS66YIV.js} +28 -24
- package/chunks/{ru-VJRAMC4W.js → ru-CMX4UMYP.js} +5 -0
- package/chunks/{run-qwen-serve-ZPKPKECF.js → run-qwen-serve-4NVSU75L.js} +261 -62
- package/chunks/{runtime-2FLNNM36.js → runtime-QLRVP6HM.js} +40 -36
- package/chunks/{scheduler-365PJHNR.js → scheduler-PBB2NSOP.js} +28 -24
- package/chunks/{sdk-exporters-http-KHAB5JSD.js → sdk-exporters-http-XVTZQRCE.js} +2 -2
- package/chunks/{sdk-impl-KD7FSTC3.js → sdk-impl-7W7AKCS4.js} +7 -3
- package/chunks/{send-message-ZM7MRUGP.js → send-message-CAMSLG2L.js} +4 -3
- package/chunks/{serve-QD2RNLKJ.js → serve-BWKTRX72.js} +37 -31
- package/chunks/{server-XLJVLTYM.js → server-E7CH7WPK.js} +1437 -593
- package/chunks/{session-3VTUHH4Q.js → session-QEKSJ6YU.js} +166 -105
- package/chunks/{settings-KULVPCQC.js → settings-BRAOSJIM.js} +34 -30
- package/chunks/{shell-3SWW22MH.js → shell-OF3CK4AT.js} +28 -24
- package/chunks/{skill-KDHWYS7W.js → skill-HLH2NO2H.js} +9 -7
- package/chunks/{skill-settings-NMY4JEJC.js → skill-settings-DRPU7YI5.js} +34 -30
- package/chunks/{spawnChannel-ZKS4Q5OU.js → spawnChannel-4KO7YTFM.js} +31 -27
- package/chunks/{standalone-update-7CXPGAQ4.js → standalone-update-DJN2R3YW.js} +30 -26
- package/chunks/{startInteractiveUI-2QQLEKM6.js → startInteractiveUI-O3WQQ2WC.js} +384 -173
- package/chunks/{syntheticOutput-ZLCUTKO2.js → syntheticOutput-PEBJQYJV.js} +2 -2
- package/chunks/{task-create-CQP5UEA3.js → task-create-5NWCQSJF.js} +5 -4
- package/chunks/{task-list-XLEZOJXP.js → task-list-53265TRZ.js} +1 -1
- package/chunks/{task-stop-7ZQM5CFF.js → task-stop-FPCOIRYX.js} +1 -1
- package/chunks/{task-update-JA75U2SN.js → task-update-5HN577LS.js} +5 -4
- package/chunks/{team-create-2WTNGAOX.js → team-create-2E4ACBJD.js} +28 -24
- package/chunks/{team-delete-MHY3UZGY.js → team-delete-MMQB4OSC.js} +1 -1
- package/chunks/{team-plan-approval-LZTYLEG4.js → team-plan-approval-LWIDXYOA.js} +28 -24
- package/chunks/{terminal-image-renderer-R5HHAFJN.js → terminal-image-renderer-PJM7663W.js} +30 -26
- package/chunks/{theme-manager-PAUCSJFF.js → theme-manager-FDQTM3RP.js} +28 -24
- package/chunks/{todoWrite-UPVOHYGD.js → todoWrite-JGV6VLOX.js} +1 -1
- package/chunks/{tool-search-2BFCGLI6.js → tool-search-TL5ZXBF4.js} +11 -8
- package/chunks/{total-session-admission-MK4SINFK.js → total-session-admission-LS6EY5KT.js} +37 -32
- package/chunks/{trustedFolders-TJ5S26N7.js → trustedFolders-5RWP5OB7.js} +32 -26
- package/chunks/{types-ML3TRJQ5.js → types-WYCFCEHR.js} +5 -3
- package/chunks/{update-relaunch-N7AYLARF.js → update-relaunch-HWQ4USKY.js} +5 -5
- package/chunks/{updateCheck-QRZ3DVT5.js → updateCheck-EZMBTEIR.js} +31 -27
- package/chunks/{useAutoAcceptIndicator-DBJ7Y5AF.js → useAutoAcceptIndicator-JDMI627A.js} +37 -33
- package/chunks/{validateNonInterActiveAuth-6ZQWUDS3.js → validateNonInterActiveAuth-RRUHC5RO.js} +67 -63
- package/chunks/{version-AJQGQWXC.js → version-XS4UTKUX.js} +1 -1
- package/chunks/{web-fetch-QWJYRXFL.js → web-fetch-2JV7H6OM.js} +14 -10
- package/chunks/{web-search-2AOXJGHU.js → web-search-RCTN2GAM.js} +10 -7
- package/chunks/{workflow-ERH3SJG2.js → workflow-6MKLKQ6R.js} +909 -273
- package/chunks/{workspace-providers-status-HZ474RA4.js → workspace-providers-status-YZ2IJ4DK.js} +38 -34
- package/chunks/{workspace-registration-store-6EUP4JXG.js → workspace-registration-store-IYN72LBS.js} +1 -1
- package/chunks/{workspace-registry-R4APRRNC.js → workspace-registry-7LFBZQLT.js} +37 -32
- package/chunks/{workspace-service-HFIFDMU7.js → workspace-service-2EHSPRJB.js} +45 -39
- package/chunks/{workspace-skills-status-HAHEIHGK.js → workspace-skills-status-5VJ2D5HN.js} +36 -32
- package/chunks/{workspace-trust-reconciler-65GTAGDK.js → workspace-trust-reconciler-X2LZ6XCI.js} +44 -39
- package/chunks/{write-file-B34CDELV.js → write-file-CJK6SCCF.js} +28 -24
- package/chunks/{zh-ARWDLDLR.js → zh-AGL2FVBI.js} +6 -0
- package/chunks/{zh-TW-Y4RGI3P7.js → zh-TW-KI66MHQY.js} +6 -0
- package/chunks/{zoom-image-HPRBZHSS.js → zoom-image-BVW4RFYW.js} +8 -6
- package/cli.js +13 -13
- package/locales/ca.js +10 -0
- package/locales/de.js +9 -0
- package/locales/en.js +10 -0
- package/locales/fr.js +9 -0
- package/locales/ja.js +9 -0
- package/locales/pt.js +9 -0
- package/locales/ru.js +9 -0
- package/locales/zh-TW.js +10 -0
- package/locales/zh.js +10 -0
- package/package.json +3 -3
- package/web-shell/assets/{arc-Ip-FFDJ0.js → arc-DDtoJrAW.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-CChqgwIb.js → architectureDiagram-3BPJPVTR-BAInIW4O.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BHN-Tfss.js → blockDiagram-GPEHLZMM-ChPDk7fP.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BhyjzDjN.js → c4Diagram-AAUBKEIU-Cd9BJuUy.js} +1 -1
- package/web-shell/assets/channel-0OQklTfP.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-BB9eyHrx.js → chunk-2J33WTMH-COQkLp56.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BeV7ce_J.js → chunk-4BX2VUAB-GUJshQ_l.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DO7kXDiV.js → chunk-55IACEB6-Boaa7c10.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-B27MPznD.js → chunk-727SXJPM-CcRXaly2.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-DHIjqjD_.js → chunk-AQP2D5EJ-BY0OARHh.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DabMqyN2.js → chunk-FMBD7UC4-DLFQfv0S.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-Dw7Nnnxc.js → chunk-ND2GUHAM-C_S0u-D2.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DdaZew1Q.js → chunk-QZHKN3VN-DP9m64hw.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CZ4-apsu.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CZ4-apsu.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-CgBpCYH5.js → cose-bilkent-S5V4N54A-CGY6zGE1.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-BB4IU8G0.js → dagre-BM42HDAG-yB7whKNn.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-BcUTHU37.js → diagram-2AECGRRQ-Bdlc59La.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-B6Lyihyv.js → diagram-5GNKFQAL-BUClP18L.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CRIJOjpG.js → diagram-KO2AKTUF-aZm08kjn.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DdNiwWWT.js → diagram-LMA3HP47-7DGwEkxC.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-Dz4b32Do.js → diagram-OG6HWLK6-CAGKayxx.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-D-8NGw77.js → erDiagram-TEJ5UH35-CptoHHQi.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Dun26LyM.js → flowDiagram-I6XJVG4X-CNOH0s7Q.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-F10Hu1Gc.js → ganttDiagram-6RSMTGT7-CCQuCU3y.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Bf8Ez6-D.js → gitGraphDiagram-PVQCEYII-B7gv9f4E.js} +1 -1
- package/web-shell/assets/{index-BXqw-nGq.js → index-BoUPVvpf.js} +1 -1
- package/web-shell/assets/index-D1YQXYsB.css +5 -0
- package/web-shell/assets/index-J4N7zCmU.js +1768 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DVgTMLvj.js → infoDiagram-5YYISTIA-Bb3KYEbR.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-uT-KepvK.js → ishikawaDiagram-YF4QCWOH-DWEzbAGi.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-Vg_XadQf.js → journeyDiagram-JHISSGLW-CmxwEqeb.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-Dyv1ESBE.js → kanban-definition-UN3LZRKU-Ci0gDD8O.js} +1 -1
- package/web-shell/assets/{linear-BMIepYX3.js → linear-BqxZqGhS.js} +1 -1
- package/web-shell/assets/{mermaid.core-zA8pJ9ag.js → mermaid.core-BDAFffHv.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BCW_BZ_5.js → mindmap-definition-RKZ34NQL-Btvx-xvS.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DseNEGp2.js → pieDiagram-4H26LBE5-CKAg7yG7.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-6Z7wr1Fi.js → quadrantDiagram-W4KKPZXB-DIt8E1mC.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CVOlCRPf.js → requirementDiagram-4Y6WPE33-BA7mQWQJ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CGhgrUJZ.js → sankeyDiagram-5OEKKPKP-D0JppnVU.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-dlqmpLuQ.js → sequenceDiagram-3UESZ5HK-29DIQFjB.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-B9EW10Xb.js → stateDiagram-AJRCARHV-iiXMdK--.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CEGK3l80.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-BBRh0mgZ.js → timeline-definition-PNZ67QCA-CeF7ngSW.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-B8Gs-REP.js → vennDiagram-CIIHVFJN-Beilq8D6.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-D_y80Ur7.js → wardley-L42UT6IY-DOYjY4zO.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-D-CNfHJ-.js → wardleyDiagram-YWT4CUSO-Dtqp8o18.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DQ5CvELo.js → xychartDiagram-2RQKCTM6-cdAc0Dfv.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-6PEXNQTX.js +0 -68
- package/chunks/chunk-IUFV6FYU.js +0 -81
- package/chunks/chunk-RXFQM6FQ.js +0 -42
- package/web-shell/assets/channel-Cu8qd6OB.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BI3KrXhq.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BI3KrXhq.js +0 -1
- package/web-shell/assets/index-QQlUCJGg.css +0 -5
- package/web-shell/assets/index-hcgjV7vS.js +0 -1768
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CJTZJJ5X.js +0 -1
- package/chunks/{anthropicContentGenerator-DTMVEL5M.js → anthropicContentGenerator-SSFE2753.js} +9 -9
- /package/chunks/{chunk-VXZBKKQR.js → chunk-NTTBXH7U.js} +0 -0
- /package/chunks/{chunk-GRC5HGPI.js → chunk-OIBUG24X.js} +0 -0
|
@@ -4,37 +4,50 @@ import {
|
|
|
4
4
|
DashScopeOpenAICompatibleProvider,
|
|
5
5
|
DefaultOpenAICompatibleProvider
|
|
6
6
|
} from "./chunk-IIJEYBNH.js";
|
|
7
|
-
import {
|
|
8
|
-
RequestTokenizer
|
|
9
|
-
} from "./chunk-B2GJNDTV.js";
|
|
10
|
-
import {
|
|
11
|
-
DEFAULT_STREAM_IDLE_TIMEOUT_MS,
|
|
12
|
-
DEFAULT_STREAM_MAX_LIFETIME_MS,
|
|
13
|
-
MAX_STREAM_GUARD_TIMEOUT_MS,
|
|
14
|
-
QWEN_STREAM_IDLE_TIMEOUT_MS_ENV,
|
|
15
|
-
QWEN_STREAM_MAX_LIFETIME_MS_ENV
|
|
16
|
-
} from "./chunk-AXMWHKXA.js";
|
|
17
|
-
import {
|
|
18
|
-
createChildAbortController
|
|
19
|
-
} from "./chunk-DJ2GSRLV.js";
|
|
20
7
|
import {
|
|
21
8
|
OpenAIContentConverter,
|
|
22
9
|
TaggedThinkingParser,
|
|
23
10
|
openaiRequestCaptureContext
|
|
24
11
|
} from "./chunk-DREZZAZM.js";
|
|
12
|
+
import {
|
|
13
|
+
applyOfficialOpenAIPromptCaching,
|
|
14
|
+
isOfficialOpenAIEndpoint
|
|
15
|
+
} from "./chunk-SAH4BD2J.js";
|
|
16
|
+
import {
|
|
17
|
+
getCurrentAgentId
|
|
18
|
+
} from "./chunk-CPG6P4GG.js";
|
|
25
19
|
import {
|
|
26
20
|
InvalidStreamError
|
|
27
21
|
} from "./chunk-2J3OJGTL.js";
|
|
22
|
+
import {
|
|
23
|
+
isInForkExecution
|
|
24
|
+
} from "./chunk-IA7TGCN2.js";
|
|
25
|
+
import {
|
|
26
|
+
getTransportCode
|
|
27
|
+
} from "./chunk-SR7RZ4MS.js";
|
|
28
28
|
import {
|
|
29
29
|
getRateLimitErrorDetails
|
|
30
30
|
} from "./chunk-M6HMMKVG.js";
|
|
31
|
+
import {
|
|
32
|
+
RequestTokenizer
|
|
33
|
+
} from "./chunk-B2GJNDTV.js";
|
|
31
34
|
import {
|
|
32
35
|
safeJsonParse
|
|
33
36
|
} from "./chunk-CKASRHZI.js";
|
|
37
|
+
import {
|
|
38
|
+
DEFAULT_STREAM_IDLE_TIMEOUT_MS,
|
|
39
|
+
DEFAULT_STREAM_MAX_LIFETIME_MS,
|
|
40
|
+
MAX_STREAM_GUARD_TIMEOUT_MS,
|
|
41
|
+
QWEN_STREAM_IDLE_TIMEOUT_MS_ENV,
|
|
42
|
+
QWEN_STREAM_MAX_LIFETIME_MS_ENV
|
|
43
|
+
} from "./chunk-AXMWHKXA.js";
|
|
34
44
|
import {
|
|
35
45
|
getToolCallPreparations,
|
|
36
46
|
runtimeDiagnostics
|
|
37
47
|
} from "./chunk-GLCZKT5V.js";
|
|
48
|
+
import {
|
|
49
|
+
createChildAbortController
|
|
50
|
+
} from "./chunk-DJ2GSRLV.js";
|
|
38
51
|
import {
|
|
39
52
|
reportOpenAiChunk,
|
|
40
53
|
reportOpenAiRequest,
|
|
@@ -43,7 +56,7 @@ import {
|
|
|
43
56
|
import {
|
|
44
57
|
ProtocolTagSanitizedEvent,
|
|
45
58
|
logProtocolTagSanitized
|
|
46
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-YGT2AUJ7.js";
|
|
47
60
|
import {
|
|
48
61
|
isQwenFamilyWireModel,
|
|
49
62
|
isTieredEffortWireModel
|
|
@@ -1479,10 +1492,18 @@ var ContentGenerationPipeline = class {
|
|
|
1479
1492
|
baseRequest["tool_choice"] = "none";
|
|
1480
1493
|
}
|
|
1481
1494
|
}
|
|
1482
|
-
|
|
1495
|
+
let providerRequest = this.config.provider.buildRequest(
|
|
1483
1496
|
baseRequest,
|
|
1484
1497
|
userPromptId
|
|
1485
1498
|
);
|
|
1499
|
+
if (this.contentGeneratorConfig.enableCacheControl !== false && isOfficialOpenAIEndpoint(this.contentGeneratorConfig)) {
|
|
1500
|
+
providerRequest = applyOfficialOpenAIPromptCaching(
|
|
1501
|
+
providerRequest,
|
|
1502
|
+
this.config.cliConfig.getSessionId?.(),
|
|
1503
|
+
request.promptCacheSharing === true,
|
|
1504
|
+
isInForkExecution() ? void 0 : getCurrentAgentId() ?? void 0
|
|
1505
|
+
);
|
|
1506
|
+
}
|
|
1486
1507
|
const model = (context.model ?? "").toLowerCase();
|
|
1487
1508
|
const isDashScope = DashScopeOpenAICompatibleProvider.isDashScopeProvider(
|
|
1488
1509
|
this.contentGeneratorConfig
|
|
@@ -1710,11 +1731,18 @@ var EnhancedErrorHandler = class {
|
|
|
1710
1731
|
);
|
|
1711
1732
|
}
|
|
1712
1733
|
if (isTimeoutError) {
|
|
1713
|
-
|
|
1734
|
+
const timeoutError = new Error(
|
|
1714
1735
|
`${errorMessage}
|
|
1715
1736
|
|
|
1716
|
-
${this.getTimeoutTroubleshootingTips()}
|
|
1737
|
+
${this.getTimeoutTroubleshootingTips()}`,
|
|
1738
|
+
{ cause: redactedError }
|
|
1717
1739
|
);
|
|
1740
|
+
const status = getErrorStatus(redactedError);
|
|
1741
|
+
const transportCode = getTransportCode(redactedError);
|
|
1742
|
+
throw Object.assign(timeoutError, {
|
|
1743
|
+
...status !== void 0 ? { status } : {},
|
|
1744
|
+
...status === void 0 && transportCode === void 0 ? { code: "ETIMEDOUT" } : {}
|
|
1745
|
+
});
|
|
1718
1746
|
}
|
|
1719
1747
|
throw redactedError;
|
|
1720
1748
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
buildPermissionSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NZMXUSKS.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveVoiceStreamConfig,
|
|
8
8
|
resolveVoiceTranscriptionConfig,
|
|
9
9
|
transcribeVoiceAudio
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RYQMJCUO.js";
|
|
11
11
|
import {
|
|
12
12
|
getVoiceSettingsScope,
|
|
13
13
|
isSelectableVoiceModel,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readVoiceMode,
|
|
17
17
|
readVoiceModel,
|
|
18
18
|
resolveVoiceTransport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HDYQYYWB.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveSkillSettings
|
|
22
22
|
} from "./chunk-Z4X5MTRT.js";
|
|
@@ -24,8 +24,9 @@ import {
|
|
|
24
24
|
WorkspacePermissionRulesSessionRequiredError,
|
|
25
25
|
WorkspaceSettingsPartialPersistError,
|
|
26
26
|
WorkspaceSkillNotFoundError,
|
|
27
|
-
WorkspaceSkillNotToggleableError
|
|
28
|
-
|
|
27
|
+
WorkspaceSkillNotToggleableError,
|
|
28
|
+
mapWorkspaceSkillToggleError
|
|
29
|
+
} from "./chunk-Z7VOMGDC.js";
|
|
29
30
|
import {
|
|
30
31
|
MCP_RESTART_SERVER_DEADLINE_MS
|
|
31
32
|
} from "./chunk-OCPBI7J5.js";
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
createIdleWorkspaceProvidersStatus,
|
|
43
44
|
createIdleWorkspaceSkillsStatus,
|
|
44
45
|
mapDomainErrorToErrorKind
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DA4HRSBW.js";
|
|
46
47
|
import {
|
|
47
48
|
McpServerNotFoundError,
|
|
48
49
|
McpServerRestartFailedError,
|
|
@@ -51,19 +52,19 @@ import {
|
|
|
51
52
|
WorkspaceInitPathEscapeError,
|
|
52
53
|
WorkspaceInitRaceError,
|
|
53
54
|
WorkspaceInitSymlinkError
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-LP2QGNSP.js";
|
|
55
56
|
import {
|
|
56
57
|
getPersistScopeForModelSelection,
|
|
57
58
|
loadSettings
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HKI3KHAO.js";
|
|
59
60
|
import {
|
|
60
61
|
getWorkspaceTrustStatus
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-YR7ZQ4RD.js";
|
|
62
63
|
import {
|
|
63
64
|
ModelsConfig,
|
|
64
65
|
SkillManager,
|
|
65
66
|
require_yauzl
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-47ZUMGGY.js";
|
|
67
68
|
import {
|
|
68
69
|
Storage,
|
|
69
70
|
createDebugLogger
|
|
@@ -1134,6 +1135,7 @@ function createDaemonWorkspaceService(deps) {
|
|
|
1134
1135
|
isChannelLive,
|
|
1135
1136
|
persistDisabledTools,
|
|
1136
1137
|
persistDisabledSkills,
|
|
1138
|
+
persistDisabledSkillsBatch,
|
|
1137
1139
|
persistSetting,
|
|
1138
1140
|
persistSettings,
|
|
1139
1141
|
skillInstallEnv,
|
|
@@ -1672,6 +1674,139 @@ function createDaemonWorkspaceService(deps) {
|
|
|
1672
1674
|
sessionsFailed
|
|
1673
1675
|
};
|
|
1674
1676
|
},
|
|
1677
|
+
async setWorkspaceSkillsEnabled(ctx, requestedSkillNames, enabled) {
|
|
1678
|
+
assertActiveGeneration();
|
|
1679
|
+
const status = await getWorkspaceSkillsStatus();
|
|
1680
|
+
const skillsByName = /* @__PURE__ */ new Map();
|
|
1681
|
+
for (const skill of status.skills) {
|
|
1682
|
+
const normalizedName = skill.name.trim().toLowerCase();
|
|
1683
|
+
if (!skillsByName.has(normalizedName)) {
|
|
1684
|
+
skillsByName.set(normalizedName, skill);
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
const disabledNames = resolveSkillSettings(
|
|
1688
|
+
loadBoundSettings(true)
|
|
1689
|
+
).disabledNames;
|
|
1690
|
+
const targets = [];
|
|
1691
|
+
for (const requestedName of requestedSkillNames) {
|
|
1692
|
+
const normalizedName = requestedName.trim().toLowerCase();
|
|
1693
|
+
const skill = skillsByName.get(normalizedName);
|
|
1694
|
+
let domainError;
|
|
1695
|
+
if (!skill) {
|
|
1696
|
+
domainError = new WorkspaceSkillNotFoundError(requestedName);
|
|
1697
|
+
} else if (skill.userInvocable === false) {
|
|
1698
|
+
domainError = new WorkspaceSkillNotToggleableError(
|
|
1699
|
+
skill.name,
|
|
1700
|
+
"not_user_invocable"
|
|
1701
|
+
);
|
|
1702
|
+
} else {
|
|
1703
|
+
const legacyInactive = skill.level === "extension" && skill.status === "disabled" && skill.disabledReason === void 0 && !disabledNames.has(normalizedName);
|
|
1704
|
+
if (skill.level === "extension" && skill.status === "disabled" && (skill.disabledReason === "inactive_extension" || legacyInactive)) {
|
|
1705
|
+
domainError = new WorkspaceSkillNotToggleableError(
|
|
1706
|
+
skill.name,
|
|
1707
|
+
"inactive_extension"
|
|
1708
|
+
);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
if (domainError) {
|
|
1712
|
+
const error = mapWorkspaceSkillToggleError(domainError);
|
|
1713
|
+
if (!error) throw domainError;
|
|
1714
|
+
targets.push({ requestedName, error });
|
|
1715
|
+
} else {
|
|
1716
|
+
targets.push({ requestedName, skillName: skill.name });
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
const validSkillNames = targets.flatMap(
|
|
1720
|
+
(target) => "skillName" in target ? [target.skillName] : []
|
|
1721
|
+
);
|
|
1722
|
+
const persisted = validSkillNames.length > 0 ? await persistDisabledSkillsBatch(
|
|
1723
|
+
boundWorkspace,
|
|
1724
|
+
validSkillNames,
|
|
1725
|
+
enabled,
|
|
1726
|
+
assertGenerationOpen
|
|
1727
|
+
) : { outcomes: [], settingsChanges: [] };
|
|
1728
|
+
assertActiveGeneration();
|
|
1729
|
+
const persistedByName = new Map(
|
|
1730
|
+
persisted.outcomes.map((outcome) => [
|
|
1731
|
+
outcome.skillName.trim().toLowerCase(),
|
|
1732
|
+
outcome
|
|
1733
|
+
])
|
|
1734
|
+
);
|
|
1735
|
+
const results = [];
|
|
1736
|
+
const errors = [];
|
|
1737
|
+
for (const target of targets) {
|
|
1738
|
+
if ("error" in target) {
|
|
1739
|
+
errors.push(target.error);
|
|
1740
|
+
continue;
|
|
1741
|
+
}
|
|
1742
|
+
const outcome = persistedByName.get(
|
|
1743
|
+
target.skillName.trim().toLowerCase()
|
|
1744
|
+
);
|
|
1745
|
+
if (!outcome) {
|
|
1746
|
+
throw new Error(
|
|
1747
|
+
`Missing persisted Skill batch outcome: ${target.skillName}`
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
if ("error" in outcome) {
|
|
1751
|
+
const error = mapWorkspaceSkillToggleError(outcome.error);
|
|
1752
|
+
if (!error) throw outcome.error;
|
|
1753
|
+
errors.push(error);
|
|
1754
|
+
} else {
|
|
1755
|
+
results.push({
|
|
1756
|
+
skillName: outcome.skillName,
|
|
1757
|
+
enabled,
|
|
1758
|
+
changed: outcome.changed
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
const changed = results.some((result) => result.changed);
|
|
1763
|
+
const channelLive = isChannelLive?.() ?? false;
|
|
1764
|
+
let activation = channelLive ? "applied" : "deferred";
|
|
1765
|
+
let sessionsRefreshed = 0;
|
|
1766
|
+
let sessionsFailed = 0;
|
|
1767
|
+
if (changed) {
|
|
1768
|
+
invalidateWorkspaceSkillsSnapshot();
|
|
1769
|
+
if (channelLive) {
|
|
1770
|
+
try {
|
|
1771
|
+
const refreshed = await invokeWorkspaceCommand(
|
|
1772
|
+
SERVE_CONTROL_EXT_METHODS.workspaceSkillsRefresh,
|
|
1773
|
+
{ cwd: boundWorkspace, reason: "settings" }
|
|
1774
|
+
);
|
|
1775
|
+
assertActiveGeneration();
|
|
1776
|
+
sessionsRefreshed = refreshed.sessionsRefreshed;
|
|
1777
|
+
sessionsFailed = refreshed.sessionsFailed;
|
|
1778
|
+
if (sessionsFailed > 0) activation = "partial";
|
|
1779
|
+
} catch (err) {
|
|
1780
|
+
if (err instanceof SessionNotFoundError || err instanceof BridgeChannelClosedError) {
|
|
1781
|
+
activation = "deferred";
|
|
1782
|
+
} else {
|
|
1783
|
+
activation = "partial";
|
|
1784
|
+
sessionsFailed = 1;
|
|
1785
|
+
writeStderrLine(
|
|
1786
|
+
`qwen serve: workspace skill refresh failed: ${err instanceof Error ? err.message : String(err)}`
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
invalidateWorkspaceSkillsSnapshot();
|
|
1791
|
+
}
|
|
1792
|
+
assertActiveGeneration();
|
|
1793
|
+
for (const change of persisted.settingsChanges) {
|
|
1794
|
+
publishWorkspaceEvent({
|
|
1795
|
+
type: "settings_changed",
|
|
1796
|
+
data: { ...change, scope: "workspace" },
|
|
1797
|
+
originatorClientId: ctx.originatorClientId
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
return {
|
|
1802
|
+
enabled,
|
|
1803
|
+
activation,
|
|
1804
|
+
sessionsRefreshed,
|
|
1805
|
+
sessionsFailed,
|
|
1806
|
+
results,
|
|
1807
|
+
errors
|
|
1808
|
+
};
|
|
1809
|
+
},
|
|
1675
1810
|
async installWorkspaceSkill(_ctx, request) {
|
|
1676
1811
|
assertActiveGeneration();
|
|
1677
1812
|
const result = await installWorkspaceSkill(
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
CLIENT_MCP_OVER_WS_CONFIG_FLAG
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M2PNLYGY.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionNotFoundError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LP2QGNSP.js";
|
|
9
9
|
import {
|
|
10
10
|
ChannelWorkerStartupError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MFDYOYZZ.js";
|
|
12
12
|
import {
|
|
13
13
|
ChannelDeliveryError,
|
|
14
14
|
ChannelWebhookEnqueueError
|
|
15
15
|
} from "./chunk-YP5KH5Y7.js";
|
|
16
16
|
import {
|
|
17
17
|
CHANNEL_LOOP_MCP_SERVER_NAME
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DX3RGJMS.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esbuild_shims
|
|
21
21
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveBundleDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-47ZUMGGY.js";
|
|
6
6
|
import {
|
|
7
7
|
Storage
|
|
8
8
|
} from "./chunk-OIVKILPI.js";
|
|
@@ -272,15 +272,15 @@ var MUST_TRANSLATE_KEYS = [
|
|
|
272
272
|
|
|
273
273
|
// import("./locales/**/*.js") in packages/cli/src/i18n/index.ts
|
|
274
274
|
var globImport_locales_js = __glob({
|
|
275
|
-
"./locales/ca.js": () => import("./ca-
|
|
276
|
-
"./locales/de.js": () => import("./de-
|
|
277
|
-
"./locales/en.js": () => import("./en-
|
|
278
|
-
"./locales/fr.js": () => import("./fr-
|
|
279
|
-
"./locales/ja.js": () => import("./ja-
|
|
280
|
-
"./locales/pt.js": () => import("./pt-
|
|
281
|
-
"./locales/ru.js": () => import("./ru-
|
|
282
|
-
"./locales/zh-TW.js": () => import("./zh-TW-
|
|
283
|
-
"./locales/zh.js": () => import("./zh-
|
|
275
|
+
"./locales/ca.js": () => import("./ca-ZLKAB4K3.js"),
|
|
276
|
+
"./locales/de.js": () => import("./de-LIW4XVLN.js"),
|
|
277
|
+
"./locales/en.js": () => import("./en-SY5GTIGX.js"),
|
|
278
|
+
"./locales/fr.js": () => import("./fr-RQFO7U4P.js"),
|
|
279
|
+
"./locales/ja.js": () => import("./ja-KOZKHJHZ.js"),
|
|
280
|
+
"./locales/pt.js": () => import("./pt-U6AOCTMF.js"),
|
|
281
|
+
"./locales/ru.js": () => import("./ru-CMX4UMYP.js"),
|
|
282
|
+
"./locales/zh-TW.js": () => import("./zh-TW-KI66MHQY.js"),
|
|
283
|
+
"./locales/zh.js": () => import("./zh-AGL2FVBI.js")
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
// packages/cli/src/i18n/index.ts
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
SchemaValidator
|
|
5
|
+
} from "./chunk-PYQADEFD.js";
|
|
6
|
+
import {
|
|
7
|
+
DEFAULT_QWEN_MODEL
|
|
8
|
+
} from "./chunk-F6WFNA7U.js";
|
|
9
|
+
import {
|
|
10
|
+
init_esbuild_shims
|
|
11
|
+
} from "./chunk-5O2XNYP6.js";
|
|
12
|
+
import {
|
|
13
|
+
__name
|
|
14
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
15
|
+
|
|
16
|
+
// packages/core/src/utils/sideQuery.ts
|
|
17
|
+
init_esbuild_shims();
|
|
18
|
+
import { readFile } from "node:fs/promises";
|
|
19
|
+
function buildDefaultPromptId(purpose) {
|
|
20
|
+
return purpose ? `side-query:${purpose}` : "side-query";
|
|
21
|
+
}
|
|
22
|
+
__name(buildDefaultPromptId, "buildDefaultPromptId");
|
|
23
|
+
function resolveDefaultModel(config, override) {
|
|
24
|
+
return override ?? config.getFastModel?.() ?? config.getModel() ?? DEFAULT_QWEN_MODEL;
|
|
25
|
+
}
|
|
26
|
+
__name(resolveDefaultModel, "resolveDefaultModel");
|
|
27
|
+
function applyThinkingDefault(callerConfig) {
|
|
28
|
+
const thinkingOverride = callerConfig?.thinkingConfig;
|
|
29
|
+
return {
|
|
30
|
+
...callerConfig ?? {},
|
|
31
|
+
thinkingConfig: thinkingOverride ? { includeThoughts: false, ...thinkingOverride } : { includeThoughts: false }
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
__name(applyThinkingDefault, "applyThinkingDefault");
|
|
35
|
+
async function getOutputLanguageInstruction(config) {
|
|
36
|
+
const outputLanguageFilePath = config.getOutputLanguageFilePath?.();
|
|
37
|
+
if (!outputLanguageFilePath) return void 0;
|
|
38
|
+
try {
|
|
39
|
+
const preference = (await readFile(outputLanguageFilePath, "utf8")).trim();
|
|
40
|
+
if (!preference) return void 0;
|
|
41
|
+
return [
|
|
42
|
+
"Follow the user-visible output language preference below for this side query.",
|
|
43
|
+
"This preference overrides any earlier language-selection rule in this system instruction.",
|
|
44
|
+
preference
|
|
45
|
+
].join("\n\n");
|
|
46
|
+
} catch {
|
|
47
|
+
return void 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
__name(getOutputLanguageInstruction, "getOutputLanguageInstruction");
|
|
51
|
+
function appendSystemInstruction(systemInstruction, outputLanguageInstruction) {
|
|
52
|
+
if (!outputLanguageInstruction) return systemInstruction;
|
|
53
|
+
if (systemInstruction === void 0) return outputLanguageInstruction;
|
|
54
|
+
if (typeof systemInstruction === "string") {
|
|
55
|
+
return `${systemInstruction}
|
|
56
|
+
|
|
57
|
+
${outputLanguageInstruction}`;
|
|
58
|
+
}
|
|
59
|
+
if (Array.isArray(systemInstruction)) {
|
|
60
|
+
return [...systemInstruction, { text: outputLanguageInstruction }];
|
|
61
|
+
}
|
|
62
|
+
if (typeof systemInstruction === "object" && "parts" in systemInstruction && Array.isArray(systemInstruction.parts)) {
|
|
63
|
+
return {
|
|
64
|
+
...systemInstruction,
|
|
65
|
+
parts: [...systemInstruction.parts, { text: outputLanguageInstruction }]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return [systemInstruction, { text: outputLanguageInstruction }];
|
|
69
|
+
}
|
|
70
|
+
__name(appendSystemInstruction, "appendSystemInstruction");
|
|
71
|
+
function isJsonOptions(options) {
|
|
72
|
+
return options.schema !== void 0 && options.schema !== null;
|
|
73
|
+
}
|
|
74
|
+
__name(isJsonOptions, "isJsonOptions");
|
|
75
|
+
async function runSideQuery(config, options) {
|
|
76
|
+
const model = resolveDefaultModel(config, options.model);
|
|
77
|
+
const promptId = options.promptId ?? buildDefaultPromptId(options.purpose);
|
|
78
|
+
const requestConfig = applyThinkingDefault(options.config);
|
|
79
|
+
const outputLanguageInstruction = options.skipOutputLanguagePreference ? void 0 : await getOutputLanguageInstruction(config);
|
|
80
|
+
const systemInstruction = appendSystemInstruction(
|
|
81
|
+
options.systemInstruction,
|
|
82
|
+
outputLanguageInstruction
|
|
83
|
+
);
|
|
84
|
+
if (isJsonOptions(options)) {
|
|
85
|
+
const response = await config.getBaseLlmClient().generateJson({
|
|
86
|
+
contents: options.contents,
|
|
87
|
+
schema: options.schema,
|
|
88
|
+
abortSignal: options.abortSignal,
|
|
89
|
+
model,
|
|
90
|
+
systemInstruction,
|
|
91
|
+
promptId,
|
|
92
|
+
config: requestConfig,
|
|
93
|
+
...options.maxAttempts !== void 0 && {
|
|
94
|
+
maxAttempts: options.maxAttempts
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const schemaError = SchemaValidator.validate(options.schema, response);
|
|
98
|
+
if (schemaError) {
|
|
99
|
+
throw new Error(`Invalid side query response: ${schemaError}`);
|
|
100
|
+
}
|
|
101
|
+
const customError2 = options.validate?.(response);
|
|
102
|
+
if (customError2) {
|
|
103
|
+
throw new Error(customError2);
|
|
104
|
+
}
|
|
105
|
+
return response;
|
|
106
|
+
}
|
|
107
|
+
const result = await config.getBaseLlmClient().generateText({
|
|
108
|
+
contents: options.contents,
|
|
109
|
+
model,
|
|
110
|
+
systemInstruction,
|
|
111
|
+
abortSignal: options.abortSignal,
|
|
112
|
+
promptId,
|
|
113
|
+
config: requestConfig,
|
|
114
|
+
...options.maxAttempts !== void 0 && {
|
|
115
|
+
maxAttempts: options.maxAttempts
|
|
116
|
+
},
|
|
117
|
+
...options.stream !== void 0 && { stream: options.stream },
|
|
118
|
+
...options.failClosed !== void 0 && { failClosed: options.failClosed }
|
|
119
|
+
});
|
|
120
|
+
const customError = options.validate?.(result.text);
|
|
121
|
+
if (customError) {
|
|
122
|
+
throw new Error(customError);
|
|
123
|
+
}
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
__name(runSideQuery, "runSideQuery");
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
runSideQuery
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @license
|
|
133
|
+
* Copyright 2025 Google LLC
|
|
134
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
135
|
+
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
isTeammate
|
|
5
|
+
} from "./chunk-S6LOFUVP.js";
|
|
6
|
+
import {
|
|
7
|
+
isInForkExecution
|
|
8
|
+
} from "./chunk-IA7TGCN2.js";
|
|
9
|
+
import {
|
|
10
|
+
init_esbuild_shims
|
|
11
|
+
} from "./chunk-5O2XNYP6.js";
|
|
12
|
+
import {
|
|
13
|
+
__name
|
|
14
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
15
|
+
|
|
16
|
+
// packages/core/src/agents/runtime/agent-context.ts
|
|
17
|
+
init_esbuild_shims();
|
|
18
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
|
+
var storage = new AsyncLocalStorage();
|
|
20
|
+
function runWithAgentContext(agentId, fn, depthOverride) {
|
|
21
|
+
const current = storage.getStore() ?? {};
|
|
22
|
+
const depth = depthOverride ?? (current.depth ?? -1) + 1;
|
|
23
|
+
return storage.run({ ...current, agentId, depth }, fn);
|
|
24
|
+
}
|
|
25
|
+
__name(runWithAgentContext, "runWithAgentContext");
|
|
26
|
+
function runWithRuntimeContentGenerator(view, fn) {
|
|
27
|
+
const current = storage.getStore() ?? {};
|
|
28
|
+
return storage.run({ ...current, runtimeView: view }, fn);
|
|
29
|
+
}
|
|
30
|
+
__name(runWithRuntimeContentGenerator, "runWithRuntimeContentGenerator");
|
|
31
|
+
function getCurrentAgentId() {
|
|
32
|
+
return storage.getStore()?.agentId ?? null;
|
|
33
|
+
}
|
|
34
|
+
__name(getCurrentAgentId, "getCurrentAgentId");
|
|
35
|
+
function getCurrentAgentDepth() {
|
|
36
|
+
return storage.getStore()?.depth ?? 0;
|
|
37
|
+
}
|
|
38
|
+
__name(getCurrentAgentDepth, "getCurrentAgentDepth");
|
|
39
|
+
function getRuntimeContentGenerator() {
|
|
40
|
+
return storage.getStore()?.runtimeView;
|
|
41
|
+
}
|
|
42
|
+
__name(getRuntimeContentGenerator, "getRuntimeContentGenerator");
|
|
43
|
+
function runOutsideAgentContext(fn) {
|
|
44
|
+
return storage.exit(fn);
|
|
45
|
+
}
|
|
46
|
+
__name(runOutsideAgentContext, "runOutsideAgentContext");
|
|
47
|
+
function isTopLevelSession() {
|
|
48
|
+
return getCurrentAgentId() === null;
|
|
49
|
+
}
|
|
50
|
+
__name(isTopLevelSession, "isTopLevelSession");
|
|
51
|
+
function childLaunchDepth() {
|
|
52
|
+
return getCurrentAgentId() !== null ? getCurrentAgentDepth() + 1 : 0;
|
|
53
|
+
}
|
|
54
|
+
__name(childLaunchDepth, "childLaunchDepth");
|
|
55
|
+
function canSpawnNestedAgent(maxDepth) {
|
|
56
|
+
return childLaunchDepth() + 1 <= maxDepth;
|
|
57
|
+
}
|
|
58
|
+
__name(canSpawnNestedAgent, "canSpawnNestedAgent");
|
|
59
|
+
function spawnBlockReason(maxDepth) {
|
|
60
|
+
if (!canSpawnNestedAgent(maxDepth)) return "depth";
|
|
61
|
+
if (isTeammate()) return "teammate";
|
|
62
|
+
if (isInForkExecution()) return "fork";
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
__name(spawnBlockReason, "spawnBlockReason");
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
runWithAgentContext,
|
|
69
|
+
runWithRuntimeContentGenerator,
|
|
70
|
+
getCurrentAgentId,
|
|
71
|
+
getCurrentAgentDepth,
|
|
72
|
+
getRuntimeContentGenerator,
|
|
73
|
+
runOutsideAgentContext,
|
|
74
|
+
isTopLevelSession,
|
|
75
|
+
childLaunchDepth,
|
|
76
|
+
spawnBlockReason
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @license
|
|
80
|
+
* Copyright 2025 Qwen
|
|
81
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
82
|
+
*/
|