@qwen-code/qwen-code 0.23.1-preview.2 → 0.23.2-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/computer-use/SKILL.md +189 -116
- package/bundled/goal-draft/SKILL.md +23 -13
- package/bundled/qc-helper/docs/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/model-providers.md +47 -1
- package/bundled/qc-helper/docs/configuration/settings.md +50 -0
- package/bundled/qc-helper/docs/conversations-recovery.md +102 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/computer-use.md +9 -7
- package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
- package/bundled/qc-helper/docs/features/goals.md +15 -3
- package/bundled/qc-helper/docs/qwen-serve.md +19 -1
- package/chunks/{MaxSizedBox-IYIQ43IZ.js → MaxSizedBox-ZZJT3PJF.js} +20 -20
- package/chunks/{StandaloneSessionPicker-AWB2OHX6.js → StandaloneSessionPicker-DIOSZTMX.js} +38 -38
- package/chunks/{acp-startup-profiler-BAL4LJTN.js → acp-startup-profiler-KEU6VAYR.js} +2 -2
- package/chunks/{acpAgent-ZC57OLS4.js → acpAgent-62JUP5A7.js} +118 -91
- package/chunks/{agent-GEBPAEJS.js → agent-NLPEQQDZ.js} +13 -13
- package/chunks/{agent-headless-63ZEYAJK.js → agent-headless-Y2GR5F2Q.js} +13 -13
- package/chunks/{anthropicContentGenerator-6XDHXIII.js → anthropicContentGenerator-I7LQZH26.js} +30 -7
- package/chunks/{askUserQuestion-3KAYLLMM.js → askUserQuestion-I5W5S3D6.js} +1 -1
- package/chunks/{bridge-MHWO5I5T.js → bridge-Q66BD62H.js} +23 -23
- package/chunks/{channel-management-service-NFRZXQFO.js → channel-management-service-TRTLQTSV.js} +4 -4
- package/chunks/{channel-settings-store-T7PMIHKC.js → channel-settings-store-R5STFWUW.js} +31 -31
- package/chunks/{channel-worker-group-O2BWK5F7.js → channel-worker-group-PIYPVCTF.js} +6 -6
- package/chunks/{channel-worker-manager-4WP7VJOD.js → channel-worker-manager-FQHEDTD2.js} +6 -6
- package/chunks/{channel-worker-supervisor-CCUXD6J5.js → channel-worker-supervisor-XJPZZ3VK.js} +3 -3
- package/chunks/{chunk-ZJ2LM2SI.js → chunk-2OR32P5M.js} +104 -33
- package/chunks/chunk-2Z3T52OC.js +82 -0
- package/chunks/{chunk-5FYGZ7E3.js → chunk-33MLFMCL.js} +2 -2
- package/chunks/{chunk-RH344FKI.js → chunk-3BTHHXXE.js} +1 -1
- package/chunks/{chunk-OFB36ZBA.js → chunk-3LPJ776W.js} +1 -1
- package/chunks/{chunk-TSLRORQR.js → chunk-43CI6YWJ.js} +1467 -1323
- package/chunks/{chunk-LTCI6ZOJ.js → chunk-45ROPFQY.js} +1 -1
- package/chunks/{chunk-W4LL5RZO.js → chunk-4ALNJDHL.js} +52 -13
- package/chunks/{chunk-RRCNEW2A.js → chunk-4BLTSTF6.js} +58 -4
- package/chunks/{chunk-3RMVM33U.js → chunk-4JKLPTV6.js} +5 -5
- package/chunks/{chunk-ZRVFHLLK.js → chunk-5DQ4YTIZ.js} +1 -1
- package/chunks/{chunk-AWDF462I.js → chunk-5GD7LYOH.js} +2 -2
- package/chunks/{chunk-HZS3JRQW.js → chunk-5VZFJTL2.js} +40 -2
- package/chunks/{chunk-537SQ2AI.js → chunk-5WC2ECUK.js} +104 -16
- package/chunks/{chunk-ZT3XUGSU.js → chunk-63ACHB2H.js} +86 -9
- package/chunks/{chunk-3K65MUKD.js → chunk-65I7S4Z3.js} +2 -1
- package/chunks/{chunk-REDVV5NC.js → chunk-6GRDHIVI.js} +7 -7
- package/chunks/{chunk-2LD5U7Q3.js → chunk-6YEOCHSE.js} +29 -1
- package/chunks/{chunk-C4NXRR7T.js → chunk-743XE7N7.js} +2 -2
- package/chunks/{chunk-I7UNCY24.js → chunk-7GZCCHJL.js} +3 -3
- package/chunks/{chunk-XX4MBBFW.js → chunk-7L35FKPF.js} +3 -3
- package/chunks/{chunk-GEV66YGE.js → chunk-7RXOEUFF.js} +1 -1
- package/chunks/{chunk-TXAEXF2B.js → chunk-BL6B2QS2.js} +21 -8
- package/chunks/{chunk-KAZWXVI3.js → chunk-CABDNUJ4.js} +2 -2
- package/chunks/{chunk-R7TKFIQO.js → chunk-CALNF3Z3.js} +1 -1
- package/chunks/{chunk-22QOQKG4.js → chunk-CG2PDIGD.js} +1 -1
- package/chunks/{chunk-MFCWL4LI.js → chunk-CPJRFFPH.js} +451 -396
- package/chunks/{chunk-LD53HMPV.js → chunk-CRZBDVP2.js} +1 -0
- package/chunks/{chunk-RSU3I6UL.js → chunk-DCPRCDSR.js} +1 -1
- package/chunks/{chunk-PLUAIHZO.js → chunk-DTB5BXRG.js} +6 -6
- package/chunks/{chunk-FWH4736Q.js → chunk-EA4NFWVG.js} +3 -3
- package/chunks/{chunk-AX23QSX3.js → chunk-EHTKOO6W.js} +4 -4
- package/chunks/{chunk-37SOBIA3.js → chunk-ERXNTINK.js} +1 -1
- package/chunks/{chunk-EGRFCIXD.js → chunk-EUXF6URV.js} +79 -18
- package/chunks/{chunk-F47DITLZ.js → chunk-FAWTMDX7.js} +14 -0
- package/chunks/{chunk-5JLQWQK6.js → chunk-FV4DM2M4.js} +2 -2
- package/chunks/{chunk-C7M445SS.js → chunk-G5QLLD53.js} +1 -1
- package/chunks/{chunk-5V4B3EWA.js → chunk-GM44O6F7.js} +1 -1
- package/chunks/{chunk-Z6DDPSGJ.js → chunk-GNY7B3CA.js} +1 -1
- package/chunks/{chunk-7PMKXGRP.js → chunk-GXIHBIHC.js} +66 -9
- package/chunks/{chunk-ERMAXPXA.js → chunk-HIXUUCGY.js} +187 -12
- package/chunks/{chunk-EJNYBDYC.js → chunk-HNLMYDQE.js} +1 -1
- package/chunks/{chunk-RCUWMVN3.js → chunk-HZ2HUXX7.js} +1 -1
- package/chunks/{chunk-SHX2HIE7.js → chunk-ISPBBKJN.js} +1 -1
- package/chunks/{chunk-QQGAR64U.js → chunk-IUJLW6ZI.js} +4 -4
- package/chunks/{chunk-IMWCUWQT.js → chunk-J3TJH52D.js} +1 -1
- package/chunks/{chunk-AIMZIXZM.js → chunk-J4ECGDA3.js} +5 -7
- package/chunks/{chunk-HPE4LEWX.js → chunk-JDPBJIKI.js} +1 -1
- package/chunks/{chunk-Y3C5COGI.js → chunk-L6ZME3W7.js} +1 -1
- package/chunks/{chunk-EPZWBYQI.js → chunk-LBKYQ33T.js} +8 -6
- package/chunks/{chunk-KTLT7VCX.js → chunk-LN3WBOKU.js} +2 -2
- package/chunks/{chunk-FXYNIZPW.js → chunk-LUVXLLMS.js} +51 -10
- package/chunks/{chunk-RQNAO42A.js → chunk-M6YLOETP.js} +1 -1
- package/chunks/{chunk-6KYWU726.js → chunk-M73KHGNR.js} +13 -66
- package/chunks/{chunk-ADJD4LZF.js → chunk-MA5OUNN6.js} +1 -1
- package/chunks/{chunk-SI6Q52UI.js → chunk-MMMA36MN.js} +3 -3
- package/chunks/{chunk-QW7BUOSI.js → chunk-MWEF5MUK.js} +20 -3
- package/chunks/{chunk-JOV46WGX.js → chunk-NB3NDQQK.js} +1 -1
- package/chunks/chunk-NOO4QFXM.js +171 -0
- package/chunks/{chunk-UTVIIA7N.js → chunk-NVS4Z6GT.js} +1 -1
- package/chunks/{chunk-VMFPZXRT.js → chunk-ODBNTMZW.js} +43 -31
- package/chunks/{chunk-UKADFFL2.js → chunk-OFVAS4AR.js} +1 -1
- package/chunks/{chunk-WQBR7LN5.js → chunk-OIPUQE3S.js} +1 -1
- package/chunks/{chunk-2C3XDBGL.js → chunk-ORREXWOM.js} +4 -4
- package/chunks/{chunk-RD3VPM4E.js → chunk-PQWM4SX2.js} +2 -2
- package/chunks/{chunk-Z6KFLEG7.js → chunk-PSPAM24S.js} +1 -0
- package/chunks/{chunk-RUMSY4ES.js → chunk-Q2F43WTJ.js} +8 -7
- package/chunks/{chunk-VYCJITND.js → chunk-QJAFSFYA.js} +1 -1
- package/chunks/{chunk-L36LLVA5.js → chunk-QLM7D7W3.js} +3 -3
- package/chunks/{chunk-NUQFUXOG.js → chunk-QTNCGZHQ.js} +2 -0
- package/chunks/{chunk-XNC2TCUO.js → chunk-QXXBW2G4.js} +4 -4
- package/chunks/{chunk-TDHVOZ65.js → chunk-R2266LQ5.js} +2 -2
- package/chunks/{chunk-QJVZLILI.js → chunk-R7OO56VZ.js} +1 -1
- package/chunks/{chunk-LYHYXJJ3.js → chunk-RDV4NLI3.js} +3 -3
- package/chunks/{chunk-733KQL63.js → chunk-RN6V5HKE.js} +3 -3
- package/chunks/{chunk-WLZRMF3C.js → chunk-RX3FYFCN.js} +353 -11
- package/chunks/{chunk-NXWYCSPL.js → chunk-SOA4HKRJ.js} +1 -1
- package/chunks/{chunk-ZNI3V2XA.js → chunk-TK4XHPKW.js} +2 -2
- package/chunks/{chunk-RGAQDQ3Z.js → chunk-UHUT4IDM.js} +18 -9
- package/chunks/{chunk-T7TP5UQL.js → chunk-ULY4ISY2.js} +4 -4
- package/chunks/{chunk-PMGWY6ZP.js → chunk-UULHYZ4W.js} +13 -10
- package/chunks/{chunk-BNWIX6BM.js → chunk-UXDVUFKU.js} +3 -3
- package/chunks/{chunk-HY3DXYZK.js → chunk-UYDQYDW2.js} +1 -1
- package/chunks/{chunk-YLFICBYK.js → chunk-VEQBVJYH.js} +3 -3
- package/chunks/{chunk-3K456UJF.js → chunk-VF6D6EGV.js} +12 -4
- package/chunks/{chunk-KP5QK3FB.js → chunk-VH764G6B.js} +397 -54
- package/chunks/{chunk-IGOIYZBG.js → chunk-VHPG7BH6.js} +2 -2
- package/chunks/{chunk-I67KJGM6.js → chunk-W3ONSAYO.js} +3 -3
- package/chunks/{chunk-SHK2SIR5.js → chunk-W673V2H3.js} +4 -4
- package/chunks/{chunk-C55CR5I4.js → chunk-W7PXLIZJ.js} +6 -6
- package/chunks/{chunk-OHOO527W.js → chunk-WG7BL3FY.js} +52 -2
- package/chunks/{chunk-B5FF3LRF.js → chunk-WIRYFL2L.js} +22 -15
- package/chunks/{chunk-P5Z7VD23.js → chunk-WZ4YULVF.js} +106 -39
- package/chunks/{chunk-WFXD5OZH.js → chunk-WZS3X663.js} +1 -1
- package/chunks/{chunk-HWZOOSEB.js → chunk-XAXTQURR.js} +3 -3
- package/chunks/{chunk-ANVC5CSK.js → chunk-XBLG564H.js} +10 -10
- package/chunks/{chunk-VU7O7CGQ.js → chunk-XDNFODER.js} +1 -1
- package/chunks/{chunk-SD7Y2PMC.js → chunk-XI7RST4D.js} +2 -2
- package/chunks/{chunk-65GHQ4FX.js → chunk-XVTCSVBK.js} +514 -47
- package/chunks/{chunk-4OCYWXKF.js → chunk-Y6ZWXM44.js} +3 -3
- package/chunks/{chunk-7IKXTGZT.js → chunk-YI2YCNSP.js} +1 -1
- package/chunks/{chunk-E4VX6LXB.js → chunk-YZTGGCEE.js} +10 -2
- package/chunks/{chunk-75UQFGFE.js → chunk-ZIPYCXQP.js} +1 -1
- package/chunks/{chunk-AUJOWIT5.js → chunk-ZUNWKOAP.js} +3 -3
- package/chunks/{config-utils-F4CFJ4MW.js → config-utils-37FHWPTP.js} +24 -24
- package/chunks/{contextCommand-OIIGGOMU.js → contextCommand-R4JUBV5N.js} +22 -22
- package/chunks/{core-runtime-JEHLOGMB.js → core-runtime-6U4OXU5C.js} +20 -20
- package/chunks/{create-sub-session-MVFBE5RA.js → create-sub-session-LLUYAGZN.js} +21 -21
- package/chunks/{daemon-LCUELM6E.js → daemon-UI6SQSBV.js} +1 -1
- package/chunks/{daemon-git-worktree-guard-5FTKLJOU.js → daemon-git-worktree-guard-O2UTNFJC.js} +20 -20
- package/chunks/{daemon-status-provider-P6A5MPMW.js → daemon-status-provider-7GMAKSTX.js} +27 -27
- package/chunks/{daemon-trust-policy-ZJ3NFYUO.js → daemon-trust-policy-VNP76VMO.js} +27 -27
- package/chunks/{daemon-trust-policy-monitor-6SDLEW7S.js → daemon-trust-policy-monitor-TD5O3BZA.js} +27 -27
- package/chunks/{deferred-core-runtime-DWOXIU5S.js → deferred-core-runtime-NJM63YJS.js} +20 -20
- package/chunks/{discovery-TUM3ZQ6U.js → discovery-XP4RMDUM.js} +4 -2
- package/chunks/{dist-NXW4DUUX.js → dist-24TCWK5H.js} +1 -1
- package/chunks/{dist-I74QLLQS.js → dist-5I4HLUTO.js} +1 -1
- package/chunks/{dist-XINEKB5A.js → dist-FDISN4AK.js} +1 -1
- package/chunks/{dist-VCAS67N5.js → dist-M4CBX53H.js} +1 -1
- package/chunks/{dist-AI25RVRA.js → dist-NQ2636VT.js} +1 -1
- package/chunks/{dist-3H3WODVS.js → dist-OR2ZQTXZ.js} +1 -1
- package/chunks/{dist-P6YWBITG.js → dist-STAGIFNB.js} +430 -51
- package/chunks/{dist-YNQU4CKC.js → dist-WZTUKIDR.js} +2 -2
- package/chunks/{dist-T4PRA5EZ.js → dist-XJ25G6OH.js} +1 -1
- package/chunks/{edit-WPVXLL3T.js → edit-GL7OA6RV.js} +13 -13
- package/chunks/{enter-worktree-5A6VW6BN.js → enter-worktree-YFTKHXHZ.js} +2 -2
- package/chunks/{enterPlanMode-JSODW7E2.js → enterPlanMode-VC4BCSZE.js} +13 -13
- package/chunks/{environment-5LLJ3I3W.js → environment-BI6IBAZJ.js} +23 -23
- package/chunks/{errors-IQT3YZEP.js → errors-D6G2ZM2R.js} +22 -22
- package/chunks/{exit-worktree-QV7E7KP6.js → exit-worktree-NF2XEMES.js} +3 -3
- package/chunks/{exitPlanMode-DDVFYNW4.js → exitPlanMode-DX446CA6.js} +13 -13
- package/chunks/{fast-path-PAUQQEVU.js → fast-path-MAYDLJIP.js} +3 -3
- package/chunks/{fast-path-settings-ISEJPRYE.js → fast-path-settings-SATXY3PD.js} +3 -3
- package/chunks/{glob-SQ7CTZ7F.js → glob-TVKRFY36.js} +13 -13
- package/chunks/{goal-tools-UWZRCLQB.js → goal-tools-CA6YANRN.js} +13 -13
- package/chunks/{handleAutoUpdate-RUPZZTSG.js → handleAutoUpdate-AW4ZAHON.js} +23 -23
- package/chunks/{i18n-SF5MPWEB.js → i18n-IH5CRAY7.js} +23 -21
- package/chunks/{image-gen-Q3RUTVKR.js → image-gen-XP4NNIYG.js} +4 -4
- package/chunks/{initializer-CK4WPYZG.js → initializer-UBR37ZNM.js} +27 -27
- package/chunks/{installationInfo-IRPQEYRF.js → installationInfo-Y52756EC.js} +20 -20
- package/chunks/{list-E3PS3EBJ.js → list-7V5JDZPO.js} +30 -30
- package/chunks/{llm-JQKBOYAF.js → llm-QDB6JVF5.js} +62 -62
- package/chunks/{llm-content-generator-2QWGBW42.js → llm-content-generator-EO6MZCEO.js} +23 -8
- package/chunks/{loadedSettingsAdapter-DGXGVYZS.js → loadedSettingsAdapter-I3YQKMC4.js} +27 -27
- package/chunks/{loggingContentGenerator-ZYURLJKK.js → loggingContentGenerator-MNXYUGDG.js} +14 -14
- package/chunks/{managed-npm-update-HTHR63EA.js → managed-npm-update-EA3EXPTO.js} +20 -20
- package/chunks/{mcp-I7G2AEWS.js → mcp-QTAJ544Y.js} +27 -27
- package/chunks/{monitor-4R76BCRZ.js → monitor-6FQKQOTP.js} +13 -13
- package/chunks/{nonInteractiveCli-24OQ3VP2.js → nonInteractiveCli-MRCTZL5X.js} +64 -61
- package/chunks/{notebook-edit-PPSH7FEX.js → notebook-edit-BQQCKI7K.js} +13 -13
- package/chunks/{openaiContentGenerator-K7V5EO7F.js → openaiContentGenerator-TTSKXNVH.js} +8 -8
- package/chunks/{pidfile-TGIUY2GG.js → pidfile-KPIS6RIT.js} +20 -20
- package/chunks/{processUtils-3USXUQWX.js → processUtils-ZCASPKK4.js} +2 -2
- package/chunks/{prompt-terminal-ledger-XHVZRXJI.js → prompt-terminal-ledger-D6HM6TV7.js} +21 -21
- package/chunks/{qwenContentGenerator-MPBOQB64.js → qwenContentGenerator-GGZEFLBD.js} +16 -16
- package/chunks/{qwenOAuth2-BS5D2LYV.js → qwenOAuth2-KX6LVYQ3.js} +4 -4
- package/chunks/{read-file-R256LDWQ.js → read-file-VE5GDFLP.js} +2 -2
- package/chunks/{resumeHistoryUtils-S43LTFHD.js → resumeHistoryUtils-HSSGMYDC.js} +23 -23
- package/chunks/{ripGrep-L7HPZ75Y.js → ripGrep-SEJE7AA6.js} +3 -3
- package/chunks/{run-qwen-serve-CTFL5R6U.js → run-qwen-serve-OJYVH7N6.js} +58 -60
- package/chunks/{runtime-FS5TL6P7.js → runtime-KGMQQFJD.js} +32 -32
- package/chunks/{scheduled-tasks-QXPV3Q35.js → scheduled-tasks-7H5HWHYD.js} +25 -25
- package/chunks/{scheduler-EXU5HMVK.js → scheduler-BE42AKDG.js} +22 -22
- package/chunks/{send-message-GQKXGMPI.js → send-message-AWKUDJBH.js} +1 -1
- package/chunks/{serve-ITJC7WNN.js → serve-KZVKYMSL.js} +27 -27
- package/chunks/{server-6JQY3PTU.js → server-PJRALPJQ.js} +1296 -822
- package/chunks/{session-PJDEKXD4.js → session-IHITXU2S.js} +63 -62
- package/chunks/{session-attachments-root-L37ORSST.js → session-attachments-root-GQ2TUI3Y.js} +20 -20
- package/chunks/{session-pr-refresh-WIFD52YL.js → session-pr-refresh-H43LULTE.js} +24 -24
- package/chunks/{settings-LO6J5SAZ.js → settings-RKEQQDFC.js} +26 -26
- package/chunks/{shell-ANAFVYGR.js → shell-6PJ444U5.js} +13 -13
- package/chunks/{skill-SHJWKSPH.js → skill-Q3UP7B5V.js} +2 -2
- package/chunks/{skill-settings-GX3XHZ5Q.js → skill-settings-LZR5YRRW.js} +26 -26
- package/chunks/{spawnChannel-WE42VBKM.js → spawnChannel-WM3DT2BF.js} +20 -20
- package/chunks/{standalone-update-CWDIKJRP.js → standalone-update-E5474IBI.js} +22 -22
- package/chunks/{start-opentui-ui-BBHGFOTF.js → start-opentui-ui-WLWZNQ2I.js} +1991 -986
- package/chunks/{startInteractiveUI-FQX7LUYP.js → startInteractiveUI-FBQSGWGO.js} +1119 -1478
- package/chunks/{team-create-WKTPCH6D.js → team-create-VIGUFUT4.js} +13 -13
- package/chunks/{team-plan-approval-Y23DL7WR.js → team-plan-approval-HQVZA3MD.js} +13 -13
- package/chunks/{terminal-image-renderer-B646HBDW.js → terminal-image-renderer-LUKNCOVM.js} +20 -20
- package/chunks/{theme-manager-BNWESY26.js → theme-manager-LOENKYLY.js} +20 -20
- package/chunks/{tool-search-PVQ5O5Y2.js → tool-search-ZIFAQCE2.js} +2 -2
- package/chunks/{total-session-admission-P5Z43KNW.js → total-session-admission-FUUJH3QH.js} +24 -24
- package/chunks/{trustedFolders-FH2LT2MZ.js → trustedFolders-C76KYROP.js} +21 -21
- package/chunks/{update-relaunch-WOWTKJSN.js → update-relaunch-4G2SRXKX.js} +5 -5
- package/chunks/{updateCheck-3MYFMM35.js → updateCheck-EIZIO7HI.js} +22 -22
- package/chunks/{useAutoAcceptIndicator-Q7ZRRRKO.js → useAutoAcceptIndicator-EAA6KSY4.js} +29 -29
- package/chunks/{validateNonInterActiveAuth-MYEWJX3G.js → validateNonInterActiveAuth-BRX22QCN.js} +59 -58
- package/chunks/{version-RO2FPO76.js → version-E56RU7PR.js} +1 -1
- package/chunks/{web-fetch-QAKY2LUA.js → web-fetch-AAUCD7RM.js} +5 -5
- package/chunks/{web-search-XA5Z4ZCD.js → web-search-HFUQF44Q.js} +18 -7
- package/chunks/{workflow-QFIOCMDM.js → workflow-3MABM53N.js} +15 -15
- package/chunks/{workspace-providers-status-B2UD7RAG.js → workspace-providers-status-2FRLBZ5I.js} +29 -29
- package/chunks/{workspace-registration-store-VZLRTI3Q.js → workspace-registration-store-YL7HLYYI.js} +1 -1
- package/chunks/{workspace-registry-GYOGG6TM.js → workspace-registry-BNRP2ELW.js} +24 -24
- package/chunks/{workspace-runtime-coordinator-7KRXGQ4V.js → workspace-runtime-coordinator-WKGF7VHS.js} +24 -24
- package/chunks/{workspace-service-DJEYGJE4.js → workspace-service-4MYO72MM.js} +31 -31
- package/chunks/{workspace-skills-status-MOKNESUC.js → workspace-skills-status-SU66TJLZ.js} +27 -27
- package/chunks/{workspace-trust-reconciler-AXOSUTQW.js → workspace-trust-reconciler-D5QT7WQB.js} +31 -31
- package/chunks/{write-file-QOYVHAKK.js → write-file-NVPQE2AZ.js} +14 -14
- package/chunks/{zoom-image-UCCLGFNC.js → zoom-image-RJHC66WG.js} +2 -2
- package/cli.js +13 -13
- package/export-transcript-document.js +126 -122
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-CTstZpXw.js → abnfDiagram-VCTEODGH-DHc6plZn.js} +1 -1
- package/web-shell/assets/{arc-DKW0mbPo.js → arc-BQ9m8TDV.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-DkMpJ42t.js → architectureDiagram-5GKGNRK7-D5ap3oVB.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-7Cp1_4i3.js → blockDiagram-NRAW4CY4-BIbnyNph.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BfaoSlBK.js → c4Diagram-UCG6FXSJ-BRsdx_iG.js} +1 -1
- package/web-shell/assets/channel-uMMdTrYk.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-_n1qzAio.js → chunk-2Q5K7J3B-3lf1fNlx.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-0cira5ZV.js → chunk-5VM5RSS4-DP8VNRc4.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-DseRXSHC.js → chunk-F27PBJKO-DrohDmZ6.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-BehQWin0.js → chunk-G27WJ6UU-UZ2QhSx6.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-B5ftg1Bb.js → chunk-JWPE2WC7-BIMHVcZK.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-D7rnbVdk.js → chunk-LCL6LL3I-izRxdSDd.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-2Bp-Orju.js → chunk-POPQ4Y6H-CXADD4PP.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-CD2goGva.js → chunk-SVP7TREG-B96d8Y_1.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DzQt-Rji.js → chunk-XXDRQBXY-CF2sVQpv.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DcY-26Ig.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DcY-26Ig.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-C-BZXSUn.js → cose-bilkent-JH36ORCC-CT6tXVAS.js} +1 -1
- package/web-shell/assets/csv-CX7rUNeC.svg +1 -0
- package/web-shell/assets/{cynefin-OW5HDTMX-BTcvowe1.js → cynefin-OW5HDTMX-X1NS4vtV.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BoUE6K81.js → cynefinDiagram-5FMLGOSQ-DNsKNOT4.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BHxy9xeB.js → dagre-3AP2YEHR-9-AHKqsb.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-DMiJIvDT.js → diagram-S7CK7UJ4-Bjgms7j6.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DXV09Aes.js → diagram-UQ7AKVKN-h6bCprbE.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CocpRomV.js → diagram-VSXAHHWV-4SbQXVLt.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-DL7nqtb4.js → diagram-VX7I27RA-B5gPCzzB.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-CPZ2Jux_.js → diagram-Z3DM3KII-DFJXIA3A.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-BX-eVNsX.js → ebnfDiagram-PWID7BFC-FwyaU7VY.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CPy_Ir6y.js → erDiagram-SSCWMZ5O-8vJQh2te.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-eknAOte9.js → flowDiagram-A5DVABFB-BzA_1gMN.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-crAxw_t7.js → ganttDiagram-EL5Y4UJY-Co-ABbVX.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-M29pa3Tc.js → gitGraphDiagram-WWUBYQGX-DW_FcyrX.js} +1 -1
- package/web-shell/assets/{index-C9R-iojE.js → index-BbMXfhNG.js} +1 -1
- package/web-shell/assets/{index-B4TLaxWs.js → index-Bu-rZoJ-.js} +462 -454
- package/web-shell/assets/index-CsPwZ1ut.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-XqspXdOU.js → infoDiagram-RXCK75RN-BEgfhUFN.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-C5KFS-7j.js → ishikawaDiagram-5VMMS53U-DCsMxQmc.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-Cc57LVRo.js → journeyDiagram-EYS64GPL-DyIEYoHz.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-C81OG-AI.js → kanban-definition-3QL26DDD-CkxjqCNr.js} +1 -1
- package/web-shell/assets/{layout-CFVu37BB.js → layout-BEWc0Al9.js} +1 -1
- package/web-shell/assets/{linear-ChBxdtWf.js → linear-CNuNxirL.js} +1 -1
- package/web-shell/assets/{mermaid.core-CMLfue0w.js → mermaid.core-DZBre674.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DFsvJThp.js → mindmap-definition-FBJOCRG2-CpafFz_F.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-BzpRzM4F.js → pegDiagram-XKGWAZYB-DfZqk_dq.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-Cv0Kankl.js → pieDiagram-E7YTZNPT-S0UWXlgC.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Bh2BJ3Ay.js → quadrantDiagram-AXDQQJYC-dd37_Ohj.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-y8rNDdDS.js → railroadDiagram-O6MQD6OU-CH8NJZ7u.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C0m2DKJ_.js → requirementDiagram-EFPCY7ZU-CFdqWYih.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BzdGnSF4.js → sankeyDiagram-P5KCCOFB-CsddcEGD.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DPzAVmzz.js → sequenceDiagram-WJ2MYXX4-BZ270mGw.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-LcHG28Zh.js → sizeCapture-X5ZJPWSS-CGaS4DBV.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-C1Bzy3IT.js → stateDiagram-HBIQ2CUA-COpIzMu6.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-D6qEVAji.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Bftk8V64.js → swimlanes-XN3QIQJK-CMF889m3.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-mem5Jj4m.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BfXHcN1A.js → timeline-definition-24CTP7MA-BelnxYz5.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DRSlI9-V.js → vennDiagram-4TSXK5OY-CU-NRqIB.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CaLmqGau.js → wardleyDiagram-VM6X3IG4-CDNKqWh-.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-8lgUT6e8.js → xychartDiagram-S5SC5T6Z-CLqguL5D.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-3UMWOKJC.js +0 -78
- package/chunks/chunk-IQAFKVXS.js +0 -22
- package/web-shell/assets/channel-CQx7VSAp.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-C-Uz8hHk.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-C-Uz8hHk.js +0 -1
- package/web-shell/assets/index-CCrkEbzz.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-LuuL5byY.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-COmnNq8s.js +0 -8
|
@@ -3,163 +3,236 @@ name: computer-use
|
|
|
3
3
|
description: Control local desktop applications through Computer Use for tasks that require reading or operating app UI. Prefer purpose-built connectors, APIs, or CLIs when available.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## node_repl + @qwen-code/cua-sdk (Computer Use)
|
|
7
7
|
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- Observe the exact current window before acting. Prefer current element tokens
|
|
14
|
-
over screenshot coordinates; use coordinates only when accessibility is
|
|
15
|
-
incomplete and the screenshot provides the target.
|
|
16
|
-
- Treat an action result as delivery evidence, not task completion. Decide from
|
|
17
|
-
fresh state and require stable postcondition evidence.
|
|
8
|
+
- Use `node_repl` (JavaScript) for all Computer Use actions.
|
|
9
|
+
- Do not use other technologies besides `node_repl` for computer interactions, unless specifically requested by the user (e.g. AppleScript, `osascript`, JXA, System Events, synthesized input).
|
|
10
|
+
- Prefer a dedicated plugin or skill when it can complete the task; use Computer Use for app interactions that are not exposed through a more specific interface.
|
|
11
|
+
- `node_repl` state is persistent across calls.
|
|
12
|
+
- For text output, use `nodeRepl.write(...)`. `nodeRepl.write(...)` takes a string. If you would like to read a whole object, wrap it with `JSON.stringify(...)`.
|
|
18
13
|
|
|
19
|
-
##
|
|
14
|
+
## Bootstrap
|
|
20
15
|
|
|
21
|
-
If `node_repl` is unavailable, run
|
|
16
|
+
If `node_repl` is unavailable, run:
|
|
22
17
|
|
|
23
18
|
```bash
|
|
24
|
-
qwen mcp add --scope user node-repl npx -y @qwen-code/node-repl-mcp@0.1.
|
|
25
|
-
npm install --no-save --package-lock=false @qwen-code/cua-sdk@0.20.
|
|
19
|
+
qwen mcp add --scope user node-repl npx -y @qwen-code/node-repl-mcp@0.1.3
|
|
20
|
+
npm install --no-save --package-lock=false @qwen-code/cua-sdk@0.20.4
|
|
26
21
|
```
|
|
27
22
|
|
|
28
|
-
Tell the user to restart Qwen Code, then stop. If only the SDK import is
|
|
29
|
-
|
|
23
|
+
Tell the user to restart Qwen Code, then stop. If only the SDK import is missing,
|
|
24
|
+
run the second command and retry.
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
Import the `ComputerUse` API directly once per fresh `node_repl` session:
|
|
32
27
|
|
|
33
28
|
```js
|
|
34
29
|
globalThis.computer = await (
|
|
35
30
|
await import('@qwen-code/cua-sdk/computer-use')
|
|
36
31
|
).ComputerUse.create();
|
|
37
|
-
globalThis.cuaRevisions ??= new Map();
|
|
38
32
|
```
|
|
39
33
|
|
|
40
|
-
##
|
|
34
|
+
## API surface
|
|
41
35
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
```ts
|
|
37
|
+
type WindowTarget = { pid: number; windowId: number };
|
|
38
|
+
type ElementTarget = {
|
|
39
|
+
pid: number;
|
|
40
|
+
windowId?: number;
|
|
41
|
+
elementToken: string;
|
|
42
|
+
};
|
|
43
|
+
type CoordinateTarget = WindowTarget & { x: number; y: number };
|
|
44
|
+
type PointOrElementTarget = CoordinateTarget | ElementTarget;
|
|
45
|
+
type ExactActionTarget = WindowTarget | ElementTarget;
|
|
46
|
+
type DeliveryOptions = { deliveryMode?: DeliveryMode };
|
|
47
|
+
|
|
48
|
+
type ComputerUse = {
|
|
49
|
+
click: (
|
|
50
|
+
args: PointOrElementTarget &
|
|
51
|
+
DeliveryOptions & { button?: MouseButton; count?: number },
|
|
52
|
+
) => Promise<object>;
|
|
53
|
+
doubleClick: (
|
|
54
|
+
args: PointOrElementTarget & DeliveryOptions,
|
|
55
|
+
) => Promise<object>;
|
|
56
|
+
rightClick: (
|
|
57
|
+
args: PointOrElementTarget & DeliveryOptions & { modifier?: string[] },
|
|
58
|
+
) => Promise<object>;
|
|
59
|
+
drag: (
|
|
60
|
+
args: WindowTarget &
|
|
61
|
+
DeliveryOptions & {
|
|
62
|
+
fromX: number;
|
|
63
|
+
fromY: number;
|
|
64
|
+
toX: number;
|
|
65
|
+
toY: number;
|
|
66
|
+
},
|
|
67
|
+
) => Promise<object>;
|
|
68
|
+
observeWindow: (
|
|
69
|
+
args: WindowTarget & { disableDiff?: boolean; includeScreenshot?: boolean },
|
|
70
|
+
) => Promise<WindowObservation>;
|
|
71
|
+
listApps: () => Promise<Array<App>>;
|
|
72
|
+
listWindows: (args: { pid: number }) => Promise<Array<Window>>;
|
|
73
|
+
performSecondaryAction: (
|
|
74
|
+
args: ElementTarget & { action: string },
|
|
75
|
+
) => Promise<object>;
|
|
76
|
+
pressKey: (
|
|
77
|
+
args: ExactActionTarget &
|
|
78
|
+
DeliveryOptions & { key: string; modifiers?: string[] },
|
|
79
|
+
) => Promise<object>;
|
|
80
|
+
hotkey: (
|
|
81
|
+
args: ExactActionTarget & DeliveryOptions & { keys: string[] },
|
|
82
|
+
) => Promise<object>;
|
|
83
|
+
scroll: (
|
|
84
|
+
args: PointOrElementTarget &
|
|
85
|
+
DeliveryOptions & { direction: Direction; amount?: number },
|
|
86
|
+
) => Promise<object>;
|
|
87
|
+
setValue: (args: ElementTarget & { value: string }) => Promise<object>;
|
|
88
|
+
typeText: (
|
|
89
|
+
args: ExactActionTarget & DeliveryOptions & { text: string },
|
|
90
|
+
) => Promise<object>;
|
|
91
|
+
close: () => Promise<void>;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
type App = {
|
|
95
|
+
name?: string;
|
|
96
|
+
bundle_id?: string;
|
|
97
|
+
pid?: number;
|
|
98
|
+
running?: boolean;
|
|
99
|
+
launch_path?: string;
|
|
100
|
+
};
|
|
48
101
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
102
|
+
type Window = {
|
|
103
|
+
window_id: number;
|
|
104
|
+
title?: string;
|
|
105
|
+
is_on_screen?: boolean;
|
|
106
|
+
on_current_space?: boolean;
|
|
107
|
+
};
|
|
52
108
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
if (state.revisionId) cuaRevisions.set(key, state.revisionId);
|
|
63
|
-
return state;
|
|
109
|
+
type WindowObservation = {
|
|
110
|
+
pid: number;
|
|
111
|
+
windowId: number;
|
|
112
|
+
mode: 'full' | 'diff' | 'no_change';
|
|
113
|
+
resyncReason?: string;
|
|
114
|
+
text: string;
|
|
115
|
+
elements: Array<Element>;
|
|
116
|
+
screenshot?: Screenshot;
|
|
64
117
|
};
|
|
118
|
+
|
|
119
|
+
type Element = {
|
|
120
|
+
element_token?: string;
|
|
121
|
+
role?: string;
|
|
122
|
+
label?: string;
|
|
123
|
+
automation_id?: string;
|
|
124
|
+
value?: unknown;
|
|
125
|
+
actions?: string[];
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
type Screenshot = {
|
|
129
|
+
images: Array<{ mimeType: string; dataBase64: string }>;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
type Direction = 'up' | 'down' | 'left' | 'right';
|
|
133
|
+
type MouseButton = 'left' | 'right' | 'middle';
|
|
134
|
+
type DeliveryMode = 'background' | 'foreground';
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Workflow
|
|
138
|
+
|
|
139
|
+
### 1. Initialize
|
|
140
|
+
|
|
141
|
+
Start by getting the state for the app and window you want to use. When the task
|
|
142
|
+
names an app, filter for that name directly:
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
var apps = await computer.listApps();
|
|
146
|
+
var matches = apps.filter(
|
|
147
|
+
(app) => app.name === 'Target App' || app.bundle_id === 'com.example.target',
|
|
148
|
+
);
|
|
149
|
+
nodeRepl.write(JSON.stringify(matches));
|
|
150
|
+
|
|
151
|
+
var windows = await computer.listWindows({ pid: matches[0].pid });
|
|
152
|
+
var target = { pid: matches[0].pid, windowId: windows[0].window_id };
|
|
153
|
+
var state = await computer.observeWindow(target);
|
|
154
|
+
nodeRepl.write(state.text); // This will return the accessibility tree
|
|
65
155
|
```
|
|
66
156
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
the tree. Emit only decision-relevant images:
|
|
157
|
+
If you cannot identify an app from the task, prior context, or builtin apps,
|
|
158
|
+
start by discovering the available apps:
|
|
70
159
|
|
|
71
160
|
```js
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
await nodeRepl.emitImage(
|
|
75
|
-
`data:${image.mimeType};base64,${image.dataBase64}`,
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
161
|
+
var apps = await computer.listApps();
|
|
162
|
+
nodeRepl.write(JSON.stringify(apps));
|
|
79
163
|
```
|
|
80
164
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
165
|
+
After performing one or more UI actions, call `observeWindow(...)` before
|
|
166
|
+
deciding what to do next. This keeps you in the current UI state. Read the
|
|
167
|
+
current actionable `element_token` values from `state.elements`; tokens for
|
|
168
|
+
unchanged elements remain valid across `diff` and `no_change` observations.
|
|
84
169
|
|
|
85
|
-
|
|
170
|
+
For token efficiency, when appropriate, the accessibility tree will be returned
|
|
171
|
+
as a diff from the most previous accessibility tree, listing only the elements
|
|
172
|
+
that were removed, added, or changed. Prefer this default diff output; pass
|
|
173
|
+
`disableDiff: true` only when you need a fresh full accessibility tree. If you
|
|
174
|
+
disregard the text from a previous call to `observeWindow`, such as when you only
|
|
175
|
+
emit the screenshot, get the full tree next time you inspect AX text.
|
|
176
|
+
`state.elements` remains the current full actionable element list when
|
|
177
|
+
`state.text` is a diff or reports no change.
|
|
86
178
|
|
|
87
|
-
|
|
88
|
-
`element_token` as `elementToken`. Use `performSecondaryAction` only when that
|
|
89
|
-
exact action appears in the element's current `actions` list.
|
|
179
|
+
### 2. Actions using app
|
|
90
180
|
|
|
91
|
-
|
|
92
|
-
expressible as window or element state, use `actAndVerify` with `verifyState`:
|
|
181
|
+
Perform one or more actions, and then fetch the latest state:
|
|
93
182
|
|
|
94
183
|
```js
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
value_equals: expectedValue,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
],
|
|
115
|
-
stableSamples: 2,
|
|
116
|
-
signal: nodeRepl.signal,
|
|
117
|
-
}),
|
|
118
|
-
});
|
|
119
|
-
nodeRepl.write(JSON.stringify(lastCuaOutcome));
|
|
120
|
-
} catch (error) {
|
|
121
|
-
nodeRepl.write(JSON.stringify(error?.details ?? { message: String(error) }));
|
|
122
|
-
throw error;
|
|
123
|
-
}
|
|
184
|
+
await computer.click({ pid: target.pid, elementToken });
|
|
185
|
+
await computer.setValue({ pid: target.pid, elementToken, value: 'openai.com' });
|
|
186
|
+
await computer.pressKey({ ...target, key: 'Enter' });
|
|
187
|
+
await computer.typeText({ ...target, text: 'hello' });
|
|
188
|
+
await computer.scroll({
|
|
189
|
+
pid: target.pid,
|
|
190
|
+
elementToken,
|
|
191
|
+
direction: 'down',
|
|
192
|
+
amount: 1,
|
|
193
|
+
});
|
|
194
|
+
await computer.performSecondaryAction({
|
|
195
|
+
pid: target.pid,
|
|
196
|
+
elementToken,
|
|
197
|
+
action: 'Show Menu',
|
|
198
|
+
});
|
|
199
|
+
nodeRepl.write((await computer.observeWindow(target)).text);
|
|
124
200
|
```
|
|
125
201
|
|
|
126
|
-
|
|
202
|
+
Notes:
|
|
127
203
|
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
|
|
204
|
+
- Prefer `element_token`-based actions over coordinate actions. If AX actions or AX text are unavailable or behave unexpectedly, switch to screenshots, coordinate clicks, and key presses.
|
|
205
|
+
- `doubleClick` and `rightClick` invoke their dedicated SDK actions; `rightClick` also accepts optional modifiers.
|
|
206
|
+
- If the UI is not behaving as expected, try fetching the latest `observeWindow(...)` state to make sure you have the latest context.
|
|
207
|
+
- Prefer using accessibility text over screenshots for efficiency, but if the interface is not fully working or not providing enough context, make sure to fetch a screenshot to get more context. The accessibility interface may be incomplete in some applications, so a screenshot helps fully understand what is going on.
|
|
208
|
+
- `performSecondaryAction` invokes an accessibility action that an element exposes besides a normal click, such as expanding a disclosure row, showing a menu, incrementing a control, or cancelling something. It requires an action actually exposed for that element in the accessibility text. Do not guess action names.
|
|
209
|
+
- `pressKey` presses one key and accepts optional modifiers; `hotkey` sends a key combination such as `{ keys: ['ctrl', 'c'] }`. Single-key examples include `"a"`, `"Enter"`, `"Tab"`, and `"Up"`.
|
|
210
|
+
- Take care when passing strings containing `\n` or `\r` to `typeText`, as it simulates pressing the return key. Many apps with message composers or forms will respond by sending the message or submitting the form rather than inserting a newline.
|
|
211
|
+
- The SDK targets an exact PID and window ID. If an action opens a dialog, menu, or new window, call `listWindows({ pid })` again and select the current window before continuing.
|
|
131
212
|
|
|
132
|
-
|
|
133
|
-
When the postcondition is visual or unsupported, observe the exact window
|
|
134
|
-
again with a screenshot and inspect the fresh result before deciding. If state
|
|
135
|
-
is unexpected, observe again rather than repeating the action blindly.
|
|
213
|
+
## Reading screenshots
|
|
136
214
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
and `operation` explain what actually happened. A committed operation can
|
|
140
|
-
still have `cancellationRequested:true`, so it still requires verification.
|
|
141
|
-
Follow an advertised escalation only after fresh state shows it is needed.
|
|
215
|
+
Request a screenshot with the observation, read its accessibility text, and
|
|
216
|
+
emit each returned image:
|
|
142
217
|
|
|
143
|
-
|
|
218
|
+
`includeScreenshot: true` is the parameter that requests a screenshot.
|
|
144
219
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
220
|
+
```js
|
|
221
|
+
var state = await computer.observeWindow({
|
|
222
|
+
...target,
|
|
223
|
+
includeScreenshot: true,
|
|
224
|
+
});
|
|
225
|
+
nodeRepl.write(state.text);
|
|
226
|
+
for (const image of state.screenshot?.images ?? []) {
|
|
227
|
+
await nodeRepl.emitImage(`data:${image.mimeType};base64,${image.dataBase64}`);
|
|
228
|
+
}
|
|
229
|
+
```
|
|
155
230
|
|
|
156
|
-
|
|
231
|
+
When all Computer Use work is complete:
|
|
157
232
|
|
|
158
233
|
```js
|
|
159
234
|
await computer.close();
|
|
160
235
|
globalThis.computer = undefined;
|
|
161
|
-
globalThis.cuaRevisions = undefined;
|
|
162
|
-
globalThis.observeCuaWindow = undefined;
|
|
163
236
|
```
|
|
164
237
|
|
|
165
|
-
Reset the REPL only when no other persistent state is needed.
|
|
238
|
+
Reset the Node REPL only when no other persistent state is needed.
|
|
@@ -13,7 +13,7 @@ allowedTools:
|
|
|
13
13
|
|
|
14
14
|
You are already inside the loaded `goal-draft` skill — do not call the `skill` tool to invoke it again; start with Step 0.
|
|
15
15
|
|
|
16
|
-
You are drafting the text for `/goal set`. You are NOT doing the work the goal describes. Do not edit files, do not run the checks, do not start on the task.
|
|
16
|
+
You are drafting the text for `/goal set`. You are NOT doing the work the goal describes. Do not edit files, do not run the checks, do not start on the task. Deliver a concise objective for approval or a command the user can run; if essential information is missing, deliver only a draft marked "Needs clarification".
|
|
17
17
|
|
|
18
18
|
## How Goals are judged (why the format below matters)
|
|
19
19
|
|
|
@@ -32,12 +32,14 @@ Say no, briefly, when the request is a normal one-shot task, needs a design or p
|
|
|
32
32
|
|
|
33
33
|
## Step 1 — check the active Goal
|
|
34
34
|
|
|
35
|
-
Call `get_goal`. If a Goal is active,
|
|
35
|
+
Call `get_goal`. If a Goal is active, preserve the user's explicit choice to edit it (same goal, tighter wording → `/goal edit`) or replace it (`/goal set`). If that choice is unclear, include it in Step 3's single round of questions; do not choose on the user's behalf. Never draft a second concurrent goal.
|
|
36
36
|
|
|
37
37
|
## Step 2 — ground the draft in the workspace
|
|
38
38
|
|
|
39
39
|
Before asking anything, verify what you can with `read_file`, `glob`, and `grep_search`: that named files and packages exist, and what the real check commands are (`package.json` scripts, `Makefile`, CI workflow, test config). Use those exact commands in "Done when". Never invent paths, IDs, or commands; write `<TODO: …>` for anything you cannot confirm.
|
|
40
40
|
|
|
41
|
+
Read only what is needed to establish the scope and verification path. Stop exploring once those are grounded; do not audit the implementation, reproduce failures, run builds or tests, install dependencies, or start services while drafting. A requested new output file is a proposed destination, not evidence that the file already exists.
|
|
42
|
+
|
|
41
43
|
## Step 3 — at most one round of questions
|
|
42
44
|
|
|
43
45
|
Ask with `ask_user_question`, 1–3 questions in one call, each with options and a recommended default. Ask only when the answer changes the check, the scope, or the budget. Typical questions:
|
|
@@ -54,7 +56,7 @@ Rules for the questions:
|
|
|
54
56
|
- Only ask things only the user can answer: what counts as done, what is off limits, how long to try.
|
|
55
57
|
- If you cannot find a concrete way to verify the outcome, you MUST ask, offering 2–3 candidate checks. Do not skip this and do not invent one.
|
|
56
58
|
|
|
57
|
-
If you cannot ask (headless, or a client without prompts),
|
|
59
|
+
If you cannot ask (headless, or a client without prompts), use a recommended default only for nonessential choices and mark it `[ASSUMPTION]` in Context. An unknown success criterion, unverified command or input path, or unresolved edit-versus-replace choice stays `<TODO: …>`; do not invent an answer just to finish the hand-off. If essential information is still missing after the single question round, keep the draft incomplete rather than starting another round.
|
|
58
60
|
|
|
59
61
|
## Step 4 — draft the objective
|
|
60
62
|
|
|
@@ -64,7 +66,7 @@ Use exactly these labels, in this order. Keep the whole objective on one line wh
|
|
|
64
66
|
Outcome: <one sentence: what is true when done>
|
|
65
67
|
Done when: 1) <command> exits 0 and its output shows <…> (paste that line); 2) <file/state assertion provable via read or grep>; 3) …
|
|
66
68
|
Must not: <files not to touch; tests/thresholds not to weaken; irreversible actions not to take>
|
|
67
|
-
Budget: stop as blocked after
|
|
69
|
+
Budget: <user's stopping agreement; otherwise stop as blocked after 20 turns, and mark that default [ASSUMPTION] in Context>
|
|
68
70
|
On block: propose blocked with the exact blocker and the decision a human must make; never claim completion without evidence for every Done-when item
|
|
69
71
|
Context: <only facts the agent cannot derive: paths, branch, environment, earlier decisions>
|
|
70
72
|
```
|
|
@@ -72,19 +74,24 @@ Context: <only facts the agent cannot derive: paths, branch, environment, earlie
|
|
|
72
74
|
Rules of thumb:
|
|
73
75
|
|
|
74
76
|
- One Outcome. Several outcomes = several goals, or a checklist file plus a single "every item in `<file>` is checked" goal.
|
|
77
|
+
- Usually 3–5 Done-when checks suffice; use fewer when enough. Do not add checks just to reach a count, and preserve explicit user requirements.
|
|
75
78
|
- Every Done-when item is binary, and at least one is tool-observable (a command with an exit code or output line, a file that exists, a grep that matches).
|
|
79
|
+
- For audits and exploratory work, agree on bounded coverage and require evidence for each conclusion. Zero defects is a valid result: never require a positive defect count. Do not invent minimum scenario counts, evidence-file counts, or exploration-round quotas; include them only when the user requested them.
|
|
76
80
|
- Prefer "the smallest safe change in `<scope>`" over open-ended refactors.
|
|
77
81
|
- Put anything that must not change on the way into Must not — this is what stops the loop from deleting a failing test to "pass".
|
|
78
82
|
- Keep it short: everything the agent can derive from the workspace stays out. Aim for under ~1200 characters.
|
|
83
|
+
- `Budget` is a stopping agreement for the model, not a runtime-enforced turn or wall-clock limit. Do not claim that writing it configures a timer or changes the Goal token budget. Preserve a user-specified budget; otherwise mark the default `[ASSUMPTION]` in Context.
|
|
84
|
+
|
|
85
|
+
For example, an audit's Done-when checks can require a report covering the agreed scenarios, observed results and evidence for each scenario, and reproduction steps for each confirmed defect (or an explicit "no confirmed defects" result). Ground the scenarios and report destination before offering the objective for use.
|
|
79
86
|
|
|
80
87
|
### Weak → strong
|
|
81
88
|
|
|
82
|
-
| Weak | Strong
|
|
83
|
-
| ----------------------------- |
|
|
84
|
-
| make checkout faster | Outcome: checkout API p95 is below 250 ms on the documented slow path. Done when: 1) `npm run bench:checkout` exits 0 and prints a p95 below 250 (paste the line); 2) `npm test` exits 0. Must not: change the benchmark, skip tests, touch files outside `src/checkout`. Budget: stop as blocked after 20 turns. On block: report the measured p95 and what blocks it.
|
|
85
|
-
| keep handling the PR comments | Outcome: every unresolved review thread on PR #123 is fixed or answered. Done when: 1) the review-threads query shows zero unresolved threads (paste the count); 2) CI on the head commit is green (paste the check summary). Must not: force-push, resolve a thread without replying to it. Budget: stop as blocked after 30 turns. On block: list the threads that need a maintainer decision.
|
|
86
|
-
| clean up the auth module | Not a goal — "clean" has no check. Ask what would be observable (zero lint warnings in `src/auth`? a file count? a coverage threshold?) or offer a refactor plan instead.
|
|
87
|
-
| get the release out | Not a goal as written — publishing is irreversible. Either narrow it to a checkable pre-release state (tag exists, changelog entry present, `npm run release:dry-run` exits 0) and put "do not publish" in Must not, or leave publishing to a human.
|
|
89
|
+
| Weak | Strong |
|
|
90
|
+
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| make checkout faster | Outcome: checkout API p95 is below 250 ms on the documented slow path. Done when: 1) `npm run bench:checkout` exits 0 and prints a p95 below 250 (paste the line); 2) `npm test` exits 0. Must not: change the benchmark, skip tests, touch files outside `src/checkout`. Budget: stop as blocked after 20 turns. On block: report the measured p95 and what blocks it. Context: [ASSUMPTION] the 20-turn budget is the drafter's default, not the user's. |
|
|
92
|
+
| keep handling the PR comments | Outcome: every unresolved review thread on PR #123 is fixed or answered. Done when: 1) the review-threads query shows zero unresolved threads (paste the count); 2) CI on the head commit is green (paste the check summary). Must not: force-push, resolve a thread without replying to it. Budget: stop as blocked after 30 turns. On block: list the threads that need a maintainer decision. |
|
|
93
|
+
| clean up the auth module | Not a goal — "clean" has no check. Ask what would be observable (zero lint warnings in `src/auth`? a file count? a coverage threshold?) or offer a refactor plan instead. |
|
|
94
|
+
| get the release out | Not a goal as written — publishing is irreversible. Either narrow it to a checkable pre-release state (tag exists, changelog entry present, `npm run release:dry-run` exits 0) and put "do not publish" in Must not, or leave publishing to a human. |
|
|
88
95
|
|
|
89
96
|
## Step 5 — self-check, then hand off
|
|
90
97
|
|
|
@@ -96,18 +103,21 @@ Check every line before printing:
|
|
|
96
103
|
4. No "after the user confirms/approves" as a completion condition — that belongs in On block as a decision a human must make.
|
|
97
104
|
5. Budget or On block is present.
|
|
98
105
|
6. Exactly one Outcome.
|
|
99
|
-
7. Every path and command in Context was verified in the workspace or is
|
|
106
|
+
7. Every path and command in Context was verified in the workspace; an unverified path or command is essential and stays `<TODO: …>`.
|
|
100
107
|
8. Under ~1200 characters.
|
|
101
108
|
9. Irreversible actions (push, delete, publish) are listed in Must not, or the user explicitly allowed them.
|
|
109
|
+
10. No invented coverage quotas, required defect findings, or claims that a prose budget is enforced by the runtime; an unrequested default Budget is marked `[ASSUMPTION]` in Context.
|
|
110
|
+
|
|
111
|
+
**If an essential item remains unresolved — an unknown success criterion, an unverified command or input path, or an unresolved edit-versus-replace choice (each written as `<TODO: …>`) —**, print only a draft marked "Needs clarification" (in the user's language) and briefly list what is missing. Do not call `propose_goal` or print a runnable `/goal set` or `/goal edit` line. Stop here; the ready-objective hand-off below does not apply.
|
|
102
112
|
|
|
103
113
|
Then hand off, and nothing else:
|
|
104
114
|
|
|
105
115
|
**If the `propose_goal` tool is available and no Goal is active**, call it with the objective on one line. The user approves or declines it in a dialog; only their approval sets the Goal. If they decline you will not be told why: stop, do not ask about it, and do not propose the same or a reworded objective again. After approval, acknowledge it in one sentence and end the turn — the Goal runtime starts the first Goal turn on its own.
|
|
106
116
|
|
|
107
|
-
**Otherwise** (headless, the tool is disabled, or a Goal is active), print:
|
|
117
|
+
**Otherwise** (Web Shell or another ACP client, headless, the tool is disabled, or a Goal is active), print:
|
|
108
118
|
|
|
109
119
|
1. The objective in a fenced code block.
|
|
110
120
|
2. One line the user can run as-is: `/goal set <objective on one line>` (or `/goal edit …` when tightening the active goal). Print it as plain text with no code markers, so it can be copied verbatim.
|
|
111
|
-
3. One sentence
|
|
121
|
+
3. One sentence explaining that the draft has not been applied and the user must run the command to apply it; include any `[ASSUMPTION]` items. Do not promise a dialog in Web Shell or other ACP sessions.
|
|
112
122
|
|
|
113
123
|
Do not run /goal yourself. Do not begin the task. Stop and wait for the user.
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'integration-github-action': 'GitHub Actions',
|
|
17
17
|
'qwen-serve': 'Daemon mode (qwen serve)',
|
|
18
18
|
'qwen-serve-deploy-local': 'Daemon mode — local launch templates',
|
|
19
|
+
'conversations-recovery': 'Conversations writer locks and recovery',
|
|
19
20
|
'Code with Qwen Code': {
|
|
20
21
|
type: 'separator',
|
|
21
22
|
title: 'Code with Qwen Code', // Title is optional
|
|
@@ -568,12 +568,58 @@ The configuration resolution follows a strict layering model with one crucial ru
|
|
|
568
568
|
| 3 | `settings.model.generationConfig` | Only used for **Runtime Models** (when no provider model is selected) |
|
|
569
569
|
| 4 | Content-generator defaults | Provider-specific defaults (e.g., OpenAI vs Gemini) - only for Runtime Models |
|
|
570
570
|
|
|
571
|
+
### Dynamic values in `customHeaders`
|
|
572
|
+
|
|
573
|
+
A `customHeaders` value may contain the placeholder `${session_id}`, which is
|
|
574
|
+
expanded per request with the current Qwen Code session ID. Use it for gateways
|
|
575
|
+
that require a stable per-conversation identifier — OpenCode Go, for example,
|
|
576
|
+
rejects requests without `x-opencode-session`:
|
|
577
|
+
|
|
578
|
+
```json
|
|
579
|
+
{
|
|
580
|
+
"generationConfig": {
|
|
581
|
+
"customHeaders": {
|
|
582
|
+
"x-opencode-session": "${session_id}"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
Because the value is resolved per request rather than baked into the SDK client,
|
|
589
|
+
`/new` and `/resume` rotate it without a restart.
|
|
590
|
+
|
|
591
|
+
⚠️ **Two steps are required.** The provider entry above is only half of it — a
|
|
592
|
+
placeholder is inert until you also switch on
|
|
593
|
+
[`outboundCorrelation.allowDynamicHeaderValues`](settings.md#outboundcorrelation):
|
|
594
|
+
|
|
595
|
+
```json
|
|
596
|
+
{
|
|
597
|
+
"outboundCorrelation": {
|
|
598
|
+
"allowDynamicHeaderValues": true
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
Until you do, a value containing a placeholder is **dropped** rather than sent,
|
|
604
|
+
and Qwen Code prints a warning at startup naming the header and this setting.
|
|
605
|
+
The header is never sent with a literal `${session_id}` in it.
|
|
606
|
+
|
|
607
|
+
The switch is global because it is a consent decision, separate from _where_ the
|
|
608
|
+
value goes: an expanded value carries live session state to whoever receives it,
|
|
609
|
+
and the switch controls only whether `${session_id}` may be expanded. It does not
|
|
610
|
+
identify which settings source supplied the header.
|
|
611
|
+
|
|
612
|
+
**Privacy note:** the session ID is a stable identifier for the life of a
|
|
613
|
+
conversation, so any host you send it to can group every request of that
|
|
614
|
+
conversation. Which hosts those are is decided by which provider entries carry
|
|
615
|
+
the header — there is no separate host list to keep in sync with your `baseUrl`.
|
|
616
|
+
|
|
571
617
|
### Atomic field treatment
|
|
572
618
|
|
|
573
619
|
The following fields are treated as atomic objects - provider values completely replace the entire object, no merging occurs:
|
|
574
620
|
|
|
575
621
|
- `samplingParams` - Temperature, top_p, max_tokens, etc.
|
|
576
|
-
- `customHeaders` - Custom HTTP headers
|
|
622
|
+
- `customHeaders` - Custom HTTP headers (may contain `${session_id}`; see [Dynamic values](#dynamic-values-in-customheaders))
|
|
577
623
|
- `extra_body` - Extra request body parameters
|
|
578
624
|
|
|
579
625
|
### Example
|
|
@@ -181,6 +181,7 @@ These settings are read from operator scopes only (User, System, and SystemDefau
|
|
|
181
181
|
| `model.maxSessionTurns` | integer | Maximum number of user/model/tool turns to keep in a session. -1 means unlimited. | `-1` |
|
|
182
182
|
| `model.maxWallTimeSeconds` | number | Wall-clock budget for headless / unattended runs, in seconds. `-1` means unlimited. Overridable per-invocation via `--max-wall-time`, which requires a positive duration (`90`, `30s`, `5m`, `1h`, `1.5h`); the minimum is 1 second — sub-second values (`500ms`, `0.5`) are rejected as typos. Omit the flag to fall back to this setting. Aborts with exit code 55 when exceeded. | `-1` |
|
|
183
183
|
| `model.goalTokenBudget` | integer | Autonomous spend window armed on each new Goal, in tokens as counted by the Goal meter (`totalTokenCount` summed over the model calls the Goal makes in its own turns). A Goal that spends its window gets one wind-down turn to hand off, then stops until you resume it, which arms another window. Unset uses the built-in default of 30,000,000; `-1` means unlimited. Zero, values above 300,000,000 (10x the default, a typo guard), other negative, fractional, or non-number values are rejected at startup. | `30000000` |
|
|
184
|
+
| `model.goalCheckpointTimeoutSeconds` | integer | Ceiling on one Goal evidence-checkpoint call, in seconds. A long Goal periodically compresses its evidence into checkpoint claims with a side model call; a call that does not finish in time is abandoned as an inconclusive check — the checkpoint stall streak is preserved rather than incremented — and a later turn retries it. Unset uses the built-in default of 180. Must be an integer between 1 and 900; other values are rejected at startup. The call is streamed, so the per-request transport timeout (`model.generationConfig.timeout`, default 120 s) bounds only connect and first response, and values above 900 are rejected because past the default stream lifetime guard that guard, not this setting, ends the call. The 900 ceiling is fixed: raising `QWEN_STREAM_MAX_LIFETIME_MS` does not lift it. | `180` |
|
|
184
185
|
| `model.maxToolCalls` | number | Cumulative tool-call budget for a run (counts every executed tool, success or failure; `structured_output` under `--json-schema` is exempt). `-1` means unlimited; `0` means "no tool calls allowed". Capped at 1,000,000 to catch typos. Overridable via `--max-tool-calls`. Aborts with exit code 55 when exceeded. | `-1` |
|
|
185
186
|
| `model.maxSubagentDepth` | number | Maximum sub-agent nesting depth (1-based levels: a top-level sub-agent is level 1). `1` keeps sub-agents available but disables nesting — the pre-nesting behavior. Values clamp to the range 1–100; non-finite values fall back to the default. Teammates, forks, and workflow-spawned agents never nest regardless of this setting. Overridable via `--max-subagent-depth`. | `5` |
|
|
186
187
|
| `model.generationConfig` | object | Advanced overrides passed to the underlying content generator. Supports request controls such as `timeout`, `maxRetries`, `retryInitialDelayMs`, `retryMaxDelayMs`, `enableCacheControl`, `splitToolMedia` (default `true`; splits tool-returned media — including images read by the built-in read_file — into a follow-up user message instead of the spec-violating `role: "tool"` message, so strict OpenAI-compatible servers like doubao / new-api / LM Studio can see it; set `false` to restore the legacy embed-in-tool behavior), `toolResultContentFormat` (default `"parts"`; set `"string"` only for legacy OpenAI-compatible runtimes whose tool templates ignore text content parts), `contextWindowSize` (override model's context window size), `modalities` (override auto-detected input modalities), `customHeaders` (custom HTTP headers for API requests), and `extra_body` (additional body parameters for OpenAI-compatible API requests only), along with fine-tuning knobs under `samplingParams` (for example `temperature`, `top_p`, `max_tokens`). Leave unset to rely on provider defaults. | `undefined` |
|
|
@@ -661,6 +662,38 @@ Configures logging and metrics collection for Qwen Code. For more information, s
|
|
|
661
662
|
| `telemetry.sensitiveSpanAttributeMaxLength` | number | Maximum JavaScript string length for each sensitive native OTel span attribute content payload. Must be between `1` and `104857600` (100 MiB). Set lower if your collector or backend rejects large attributes. | `1048576` |
|
|
662
663
|
| `telemetry.outfile` | string | Path to write telemetry to a file. When set, overrides OTLP export. | |
|
|
663
664
|
|
|
665
|
+
#### outboundCorrelation
|
|
666
|
+
|
|
667
|
+
⚠️ **Security-relevant.** Controls what client-side correlation data Qwen Code writes into outbound LLM API requests — a separate consent decision from `telemetry.*`, which governs data flowing into your OWN observability backend. All values default to off.
|
|
668
|
+
|
|
669
|
+
| Setting | Type | Description | Default |
|
|
670
|
+
| ---------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
671
|
+
| `outboundCorrelation.propagateTraceContext` | boolean | Inject W3C `traceparent` on outbound `fetch` requests and as a `TRACEPARENT` env var in shell child processes. Requires `telemetry.enabled: true`. | `false` |
|
|
672
|
+
| `outboundCorrelation.allowDynamicHeaderValues` | boolean | Allow `customHeaders` values to contain runtime placeholders such as `${session_id}`, expanded per request. When off, such a value is dropped rather than sent. | `false` |
|
|
673
|
+
|
|
674
|
+
```json
|
|
675
|
+
{
|
|
676
|
+
"outboundCorrelation": {
|
|
677
|
+
"allowDynamicHeaderValues": true
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
`allowDynamicHeaderValues` is only the consent switch. _Which_ hosts receive the
|
|
683
|
+
value and _what_ the header is called are decided where the header lives —
|
|
684
|
+
`modelProviders[].generationConfig.customHeaders`, see
|
|
685
|
+
[Dynamic values in `customHeaders`](model-providers.md#dynamic-values-in-customheaders).
|
|
686
|
+
That scoping is why there is no host allowlist here: you already chose the
|
|
687
|
+
endpoint when you wrote the provider's `baseUrl`, and providers that should not
|
|
688
|
+
send the header simply do not carry it.
|
|
689
|
+
|
|
690
|
+
If a provider entry has a placeholder while this is off, the header is dropped
|
|
691
|
+
and a warning naming both is printed at startup — so a gateway rejecting your
|
|
692
|
+
requests should never be a silent mystery.
|
|
693
|
+
|
|
694
|
+
**Privacy note:** an expanded value is a stable per-conversation identifier.
|
|
695
|
+
Only put one on a provider you already send your prompt content to.
|
|
696
|
+
|
|
664
697
|
### Example `settings.json`
|
|
665
698
|
|
|
666
699
|
Here is an example of a `settings.json` file with the nested structure, new as of v0.3.0:
|
|
@@ -791,6 +824,23 @@ When both user-level `.env` files define the same variable, the Qwen-specific
|
|
|
791
824
|
file wins: `<QWEN_HOME>/.env` (or `~/.qwen/.env` when `QWEN_HOME` is unset) is
|
|
792
825
|
loaded before `~/.env`, and existing environment values are not overwritten.
|
|
793
826
|
|
|
827
|
+
### Standalone update download source
|
|
828
|
+
|
|
829
|
+
Set `QWEN_UPDATE_BASE_URL` to use a custom HTTPS release root for standalone updates:
|
|
830
|
+
|
|
831
|
+
```bash
|
|
832
|
+
export QWEN_UPDATE_BASE_URL="https://downloads.example.com/qwen-code"
|
|
833
|
+
qwen update
|
|
834
|
+
```
|
|
835
|
+
|
|
836
|
+
For version `0.23.0`, the updater downloads the platform archive, `SHA256SUMS`, and `SHA256SUMS.sig` from `<base-url>/v0.23.0/`. Host these files using the same names and directory layout as an official release. Existing checksum and signature checks still apply, including `QWEN_REQUIRE_SIGNATURE=1` when a signature is required.
|
|
837
|
+
|
|
838
|
+
The URL must use HTTPS and cannot contain credentials, a query string, or a fragment. Surrounding whitespace and trailing slashes are removed. An empty or whitespace-only value preserves the built-in download sources and their fallback order. When a custom root is set, a failed download does not fall back to the built-in sources.
|
|
839
|
+
|
|
840
|
+
Configure this variable in the launching shell or a user-level `.env` file. It is rejected from project `.env` and `.qwen/.env` files and from the top-level `settings.json` `env` section at every scope. A user-level `.env` value is loaded at startup; restart Qwen Code after changing it.
|
|
841
|
+
|
|
842
|
+
This setting applies to `qwen update`, `/update`, and automatic standalone updates. It does not change npm registry version discovery. It is separate from the installer's `QWEN_INSTALL_BASE_URL`, which points directly to a version-specific directory.
|
|
843
|
+
|
|
794
844
|
## Command-Line Arguments
|
|
795
845
|
|
|
796
846
|
Arguments passed directly when running the CLI can override other configurations for that specific session.
|