@qwen-code/qwen-code 0.24.2 → 0.24.3-nightly.20260922.c5920f479b
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 +4 -0
- package/bundled/browser-use/runtime/native-host.js +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/cli.js +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/bundled/browser-use/runtime/node_modules/playwright-core/lib/xdg-open +0 -0
- package/bundled/browser-use/runtime/scripts/native-host-setup.js +0 -0
- package/bundled/qc-helper/docs/configuration/settings.md +2 -2
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +3 -1
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/bundled/qc-helper/docs/support/tos-privacy.md +29 -1
- package/bundled/review/SKILL.md +12 -9
- package/chunks/{MaxSizedBox-ME5JA4KF.js → MaxSizedBox-2UQBLSYK.js} +56 -49
- package/chunks/{StandaloneSessionPicker-W3GFW47V.js → StandaloneSessionPicker-BYHP27ER.js} +74 -67
- package/chunks/{acp-subagent-executor-ZFDOLQUK.js → acp-subagent-executor-J7YZ6IL5.js} +59 -52
- package/chunks/{acpAgent-GRN3VRGG.js → acpAgent-JKPY6W6M.js} +203 -162
- package/chunks/{agent-I7GJXDQ2.js → agent-SPPLYAI6.js} +38 -32
- package/chunks/{agent-headless-CHQTBAY4.js → agent-headless-Z353PCKY.js} +38 -32
- package/chunks/{anthropicContentGenerator-P3PBOK2C.js → anthropicContentGenerator-G3573GQN.js} +3 -3
- package/chunks/{artifact-tool-3B3YPLNI.js → artifact-tool-WR4WGBUS.js} +3 -2
- package/chunks/{askUserQuestion-YIK445UI.js → askUserQuestion-MFDVFUUE.js} +3 -2
- package/chunks/{bridge-FPDMUBTB.js → bridge-G27UWKRS.js} +59 -52
- package/chunks/bwrap-execution-LSZQILPP.js +34 -0
- package/chunks/{caption-audio-V6S7IOLZ.js → caption-audio-MORSEOKW.js} +5 -4
- package/chunks/{caption-image-LKRZR2BO.js → caption-image-XBQMQEWA.js} +5 -4
- package/chunks/{channel-management-service-B5JCH6G4.js → channel-management-service-DISO7Z3P.js} +2 -2
- package/chunks/{channel-settings-store-3QLN4ATE.js → channel-settings-store-4OMKGIWC.js} +63 -56
- package/chunks/{channel-worker-group-M4MSCXVZ.js → channel-worker-group-EJEMLDPE.js} +5 -5
- package/chunks/{channel-worker-manager-UEAF66Y2.js → channel-worker-manager-GI3GMPHV.js} +5 -5
- package/chunks/{channel-worker-supervisor-KNSB6NQS.js → channel-worker-supervisor-GGTS6MM5.js} +4 -4
- package/chunks/{chunk-6GB4CDE4.js → chunk-25YSERTP.js} +2 -2
- package/chunks/{chunk-2I5YG2XF.js → chunk-26PZUG7F.js} +1 -1
- package/chunks/{chunk-4XNECBYG.js → chunk-2N3PR63W.js} +1 -1
- package/chunks/chunk-2SENA3WV.js +2808 -0
- package/chunks/{chunk-LELCSQ67.js → chunk-355YBH4V.js} +3 -3
- package/chunks/{chunk-2TK7KLDO.js → chunk-3IA6GRNP.js} +2 -2
- package/chunks/{chunk-LCMK6QMW.js → chunk-3J6GB22N.js} +19 -17
- package/chunks/{chunk-GZJLGE6Y.js → chunk-3MKDXSGP.js} +3 -3
- package/chunks/{chunk-LKV5IRBA.js → chunk-3PKSUDZC.js} +85 -4
- package/chunks/{chunk-MR5FRME7.js → chunk-3RXCA7OA.js} +2 -2
- package/chunks/{chunk-SZBKX3U3.js → chunk-3TLNAUHY.js} +4 -4
- package/chunks/{chunk-GPKTOXFJ.js → chunk-43H36F3M.js} +2 -2
- package/chunks/chunk-4M7RD5QQ.js +58 -0
- package/chunks/{chunk-BIQXRY5B.js → chunk-4VSTV4C2.js} +109 -5
- package/chunks/{chunk-IE7SAZGL.js → chunk-4ZBC5VHM.js} +1 -1
- package/chunks/{chunk-JU5DOXQM.js → chunk-52YTEDEN.js} +1 -1
- package/chunks/{chunk-QEPQKAUY.js → chunk-5E4BPDCX.js} +1 -1
- package/chunks/{chunk-QBVHHMV4.js → chunk-5M7TPY64.js} +36 -19
- package/chunks/{chunk-MOWCV77B.js → chunk-5NFAKADR.js} +1 -1
- package/chunks/chunk-5R36APDE.js +70 -0
- package/chunks/{chunk-TPDNW6O5.js → chunk-5XEZQQG3.js} +0 -8
- package/chunks/{chunk-DPZAQ4XR.js → chunk-66X6VCS4.js} +8 -8
- package/chunks/{chunk-2G3I5XLI.js → chunk-6DTUE7PD.js} +3 -3
- package/chunks/{chunk-3J43HE2J.js → chunk-6GI7NAZS.js} +1 -1
- package/chunks/{chunk-UE4ZRIXK.js → chunk-6UZ6ROAB.js} +1 -1
- package/chunks/{chunk-TOCM6MGP.js → chunk-6VYMCB5O.js} +2 -2
- package/chunks/{chunk-VQUX7GWP.js → chunk-76RJOIUO.js} +1710 -3754
- package/chunks/{chunk-U5JK32FE.js → chunk-7JDVJX7A.js} +28 -5857
- package/chunks/{chunk-UKCBRQY5.js → chunk-A4ZCL47R.js} +4 -4
- package/chunks/{chunk-64LX7PWR.js → chunk-AAXOCCZC.js} +99 -55
- package/chunks/{chunk-2VYTJ4MO.js → chunk-AGBF3DK2.js} +4 -4
- package/chunks/{chunk-JG23BJ7Y.js → chunk-AJSG5SMC.js} +2 -2
- package/chunks/{chunk-D4JFXQ6K.js → chunk-AJUGNY75.js} +3 -3
- package/chunks/{chunk-E6UTJIPI.js → chunk-ATZ4RQ6I.js} +1 -1
- package/chunks/{chunk-AB5N5FEG.js → chunk-BAANRD56.js} +1 -1
- package/chunks/{chunk-D2YMJSVP.js → chunk-BAT3FBGG.js} +16 -16
- package/chunks/{chunk-T4D3QLUZ.js → chunk-BHU5SD32.js} +1 -1
- package/chunks/{chunk-GI7MRANQ.js → chunk-BM2KDSJ5.js} +3 -3
- package/chunks/{chunk-42QJ7NLB.js → chunk-BVNEEYJM.js} +4 -55
- package/chunks/{chunk-6FZEVPBU.js → chunk-BYLLILBC.js} +1 -1
- package/chunks/{chunk-RGD7JAX6.js → chunk-C5I7TKPB.js} +34 -21
- package/chunks/{chunk-AFLJYB2T.js → chunk-CBJSEYCS.js} +5 -5
- package/chunks/{chunk-FMJWXNYH.js → chunk-CDBKAOEI.js} +17 -13
- package/chunks/{chunk-XXXA63AB.js → chunk-CEG3V62N.js} +1 -1
- package/chunks/{chunk-65I7S4Z3.js → chunk-CHBZHMBA.js} +2 -35
- package/chunks/{chunk-5ROHUAQL.js → chunk-CKNRWTLY.js} +8 -8
- package/chunks/{chunk-M64HFJ3A.js → chunk-D42TSQKU.js} +1 -1
- package/chunks/{chunk-NRWMNRBC.js → chunk-D4K23BD4.js} +1 -1
- package/chunks/{chunk-3UOW7K5U.js → chunk-DOIW42MT.js} +61 -53
- package/chunks/{chunk-ZHJSA55C.js → chunk-DOS7HMLA.js} +1 -1
- package/chunks/{chunk-VE2U4MWB.js → chunk-DQGUUZYR.js} +58 -32
- package/chunks/{chunk-7HMBOUQG.js → chunk-EBQGFHXX.js} +3 -3
- package/chunks/{chunk-ES2Y3FEA.js → chunk-EJUVYCCB.js} +1 -1
- package/chunks/chunk-ELYIK7SN.js +47 -0
- package/chunks/{chunk-CCOIMIDP.js → chunk-EVVBE5KO.js} +9 -7
- package/chunks/{chunk-IXWDQRM4.js → chunk-FLTE323L.js} +38 -36
- package/chunks/{chunk-TCO2ZOLV.js → chunk-FNZJI6SW.js} +3 -3
- package/chunks/{chunk-CK267TVO.js → chunk-FPFIAK47.js} +2 -2
- package/chunks/{chunk-3SQIYYDQ.js → chunk-G7CUNATW.js} +1 -1
- package/chunks/{chunk-INLMCZR4.js → chunk-GKFEDGAE.js} +2 -2
- package/chunks/{chunk-MYXULCXF.js → chunk-GNGQGEZD.js} +1 -1
- package/chunks/{chunk-DBOYH5UO.js → chunk-HBNRUWEL.js} +1 -1
- package/chunks/{chunk-RFVQJSIW.js → chunk-HDRYBFLF.js} +2 -2
- package/chunks/{chunk-GSMPCYYA.js → chunk-HREJUZRW.js} +8 -8
- package/chunks/{chunk-ZJSCBHAJ.js → chunk-I3FKVESV.js} +7 -7
- package/chunks/{chunk-FDW5VK44.js → chunk-I3K2QRZ5.js} +1 -1
- package/chunks/{chunk-7PQVNBGJ.js → chunk-IEJRGNVB.js} +6 -6
- package/chunks/{chunk-OMHE7I7L.js → chunk-IODSADQ4.js} +1 -1
- package/chunks/{chunk-UGLJ75YV.js → chunk-J7R5RCVZ.js} +4 -4
- package/chunks/{chunk-ANKISCKU.js → chunk-JBUMBQAO.js} +12 -2
- package/chunks/{chunk-CXXHL3XJ.js → chunk-JV63FNE5.js} +65 -252
- package/chunks/{chunk-3GH6T7SH.js → chunk-K7X5PJPK.js} +13 -11
- package/chunks/{chunk-SA4UQS3Y.js → chunk-KEIOGBLQ.js} +1 -1
- package/chunks/{chunk-5FATGXYO.js → chunk-KXNVXPHH.js} +8 -8
- package/chunks/{chunk-QO2IAC7M.js → chunk-L3MWQUHC.js} +4 -4
- package/chunks/{chunk-TAANUOHC.js → chunk-LFIKUSEE.js} +1 -1
- package/chunks/{chunk-EMK56JRM.js → chunk-M5WC3FNO.js} +2 -2
- package/chunks/{chunk-3TJ7LPMA.js → chunk-MBRTV2UG.js} +2 -2
- package/chunks/{chunk-DYGOUAKK.js → chunk-MNM5AZTY.js} +1 -1
- package/chunks/{chunk-4LDMRC23.js → chunk-MRFNXTCO.js} +10 -7
- package/chunks/{chunk-XBOKF4YG.js → chunk-MZW7ZV3F.js} +2436 -641
- package/chunks/{chunk-REXIMUUM.js → chunk-N6APTOMX.js} +1 -1
- package/chunks/{chunk-JPRL7GPK.js → chunk-NBUQ3YNG.js} +7 -7
- package/chunks/chunk-NEF3HSR4.js +168 -0
- package/chunks/{chunk-LCIR5C23.js → chunk-NJMEC7A2.js} +3 -3
- package/chunks/{chunk-7WIDY7UD.js → chunk-NOX67UUP.js} +4 -4
- package/chunks/{chunk-VYCIVHT7.js → chunk-NQA6TO6A.js} +50 -29
- package/chunks/chunk-NXRQI7RF.js +5861 -0
- package/chunks/{chunk-UZTJ5WJA.js → chunk-NZXYQF5P.js} +1 -1
- package/chunks/{chunk-MJJQ5LM4.js → chunk-O6YSRMC3.js} +2 -2
- package/chunks/{chunk-TDWH5KJE.js → chunk-OU26ZZOL.js} +1 -1
- package/chunks/{chunk-5YJEHFWB.js → chunk-OUKL6WIM.js} +2 -2
- package/chunks/{chunk-WLEIIPES.js → chunk-PA4HU5IQ.js} +2 -2
- package/chunks/{chunk-RJNH4CSX.js → chunk-PBGTHUVH.js} +35 -5
- package/chunks/{chunk-E5JQUFYU.js → chunk-PPLSJANE.js} +2 -2
- package/chunks/{chunk-X5N23GYD.js → chunk-PTNDMFQG.js} +2 -2
- package/chunks/{chunk-PETY4UMR.js → chunk-Q27HTD3R.js} +1 -1
- package/chunks/{chunk-GULGI7D3.js → chunk-R3AHEE2K.js} +6 -6
- package/chunks/{chunk-QCCRC27E.js → chunk-R44DZ23E.js} +1 -1
- package/chunks/{chunk-UVZY7QW2.js → chunk-ROUICKRT.js} +2 -2
- package/chunks/{chunk-ISF3Z6VK.js → chunk-RUGHX5XY.js} +1 -1
- package/chunks/{chunk-EDJCJMEW.js → chunk-S3AB2WUV.js} +1 -1
- package/chunks/{chunk-FSEZM6ZQ.js → chunk-SLOEVQ4B.js} +1 -1
- package/chunks/{chunk-RAHX5SNW.js → chunk-SRVXS7MS.js} +1 -1
- package/chunks/{chunk-2GM7XM6X.js → chunk-TIB3YUQT.js} +1 -1
- package/chunks/{chunk-MXOOWEZK.js → chunk-TTAC3FUB.js} +1 -1
- package/chunks/{chunk-BJEZBTUO.js → chunk-TUYJ6S3L.js} +1 -1
- package/chunks/{chunk-SHLIELH4.js → chunk-U3SLLGA2.js} +4 -4
- package/chunks/{chunk-AK35QRVW.js → chunk-U5P7R5TF.js} +2 -2
- package/chunks/{chunk-QHBVY32Y.js → chunk-UCTRVNWC.js} +11 -11
- package/chunks/{chunk-PGYKW4PY.js → chunk-UI5A24EA.js} +1 -1
- package/chunks/{chunk-EMG7QXJD.js → chunk-UOZK4OCS.js} +5 -5
- package/chunks/{chunk-W2GM3FPJ.js → chunk-URUUVBBE.js} +16 -14
- package/chunks/{chunk-KLL6VL42.js → chunk-UYEC4WMY.js} +46 -21
- package/chunks/{chunk-U6YCUEJQ.js → chunk-UYG7RE35.js} +2 -2
- package/chunks/{chunk-N63V7CTG.js → chunk-V2SYRTNQ.js} +1 -1
- package/chunks/{chunk-R6MPLPS7.js → chunk-V6SJJPYX.js} +2 -2
- package/chunks/{chunk-FJWGA4KA.js → chunk-VEPREHJ6.js} +5 -5
- package/chunks/{chunk-5XWVWTLB.js → chunk-VM3RQNIN.js} +2 -2
- package/chunks/{chunk-HYLPVFWL.js → chunk-VT3MGD7H.js} +1 -1
- package/chunks/{chunk-QTEONSAO.js → chunk-VV3VZTEY.js} +3 -3
- package/chunks/{chunk-Q554UD37.js → chunk-W7WPPCAO.js} +1 -1
- package/chunks/{chunk-TSVKTGQ4.js → chunk-WE5SP7GB.js} +2 -2
- package/chunks/{chunk-KVMLTZTU.js → chunk-WK5KFFP6.js} +1 -1
- package/chunks/{chunk-MOTCWW3N.js → chunk-WMHO25KU.js} +2 -2
- package/chunks/{chunk-TBVO3WMD.js → chunk-WQ7QSGFJ.js} +1 -1
- package/chunks/{chunk-GT3O7YG4.js → chunk-WX7PKX74.js} +6 -6
- package/chunks/{chunk-4ZYD4QI5.js → chunk-WXHBA2D3.js} +1 -1
- package/chunks/{chunk-PKX5AAEO.js → chunk-XFEXE6ND.js} +1 -1
- package/chunks/{chunk-K2PTCHZG.js → chunk-XJKPE3EC.js} +33 -27
- package/chunks/{chunk-TICLGWQT.js → chunk-XMIGHXPE.js} +1 -1
- package/chunks/{chunk-N75DNP5S.js → chunk-Y7SX7OZ5.js} +1 -1
- package/chunks/{chunk-S564PKIP.js → chunk-YAQ6GGRB.js} +1 -1
- package/chunks/chunk-YPKYQHFS.js +25 -0
- package/chunks/{chunk-2PZMELFA.js → chunk-YT23NYGA.js} +8 -8
- package/chunks/{chunk-JQ67JJHH.js → chunk-Z3SC4CMZ.js} +21 -19
- package/chunks/{chunk-O6NXPJIT.js → chunk-Z5NOA6BK.js} +11 -11
- package/chunks/{chunk-ICISMV7V.js → chunk-ZGMW5674.js} +4 -4
- package/chunks/{chunk-JPYUKGCM.js → chunk-ZPNQI23P.js} +3 -3
- package/chunks/{clip-audio-OL5ZHBOH.js → clip-audio-4GTC7XXJ.js} +3 -2
- package/chunks/{clip-image-GKDHKWSA.js → clip-image-CVP6R7WG.js} +3 -2
- package/chunks/{clip-video-OE4GBBS2.js → clip-video-RMIOCVAT.js} +3 -2
- package/chunks/{codex-subagent-executor-XTYEHFTH.js → codex-subagent-executor-TYKHL27C.js} +61 -54
- package/chunks/{config-utils-A7FSZDCO.js → config-utils-B6C4QOV6.js} +57 -50
- package/chunks/{container-execution-environment-XS6X47MH.js → container-execution-environment-RPXKL3HT.js} +9 -0
- package/chunks/{contextCommand-ODDENDGH.js → contextCommand-KOIZRPHI.js} +57 -50
- package/chunks/{convert-image-JT75DK5E.js → convert-image-24SLHDCH.js} +3 -2
- package/chunks/{core-runtime-7OWIKZP7.js → core-runtime-CCSNQWDB.js} +55 -48
- package/chunks/{create-sub-session-MNPEQ4J2.js → create-sub-session-3RVVDCXG.js} +3 -2
- package/chunks/{create-sub-session-YFYNWAU3.js → create-sub-session-MKTYFHP7.js} +56 -49
- package/chunks/{cron-create-RHRWMLNX.js → cron-create-NXQ27MQQ.js} +2 -1
- package/chunks/{cron-delete-CTZBKOT2.js → cron-delete-2F75IAB5.js} +2 -1
- package/chunks/{cron-list-SGNRBA52.js → cron-list-7IEDSU4D.js} +2 -1
- package/chunks/{daemon-BPTR7VCR.js → daemon-Y6AOK7LF.js} +4 -1
- package/chunks/{daemon-git-worktree-guard-SJ7YWRBD.js → daemon-git-worktree-guard-E5375FNN.js} +57 -50
- package/chunks/{daemon-status-provider-MCQ3OGR5.js → daemon-status-provider-KRLNNU2R.js} +64 -57
- package/chunks/{daemon-trust-policy-BUGBZHZX.js → daemon-trust-policy-RBCKDR5J.js} +61 -54
- package/chunks/{daemon-trust-policy-monitor-7Q7XOMIB.js → daemon-trust-policy-monitor-T7RR2DHY.js} +61 -54
- package/chunks/{deferred-core-runtime-Q2534BF7.js → deferred-core-runtime-KA2PDNYC.js} +55 -48
- package/chunks/{display-image-XBM4DXNT.js → display-image-WYMDGOWV.js} +3 -2
- package/chunks/{downsample-audio-ZVH75DNJ.js → downsample-audio-T5P5IEPZ.js} +3 -2
- package/chunks/{downsample-image-4D6XYIRR.js → downsample-image-6L67FEII.js} +3 -2
- package/chunks/{downscale-video-CPSH7IDV.js → downscale-video-RYVKNSAU.js} +3 -2
- package/chunks/{edit-H5N6BDMS.js → edit-MQXQYVTJ.js} +40 -33
- package/chunks/{enter-worktree-4TWVSLRD.js → enter-worktree-UF4HQH7B.js} +7 -5
- package/chunks/{enterPlanMode-WTIJMZPK.js → enterPlanMode-E6K4DZUM.js} +38 -32
- package/chunks/{environment-BHQMXGGR.js → environment-PIJ3S2V7.js} +57 -50
- package/chunks/{errors-Q3CZYRPL.js → errors-ZV4QJH4P.js} +57 -50
- package/chunks/{exec-YFYZG5FI.js → exec-G6SFU4KT.js} +2 -1
- package/chunks/{execution-tool-RXGXRHKL.js → execution-tool-JEGGTXNM.js} +41 -34
- package/chunks/{execution-worker-5FBYMFHO.js → execution-worker-FXXJDMBP.js} +49 -42
- package/chunks/{exit-worktree-X5TWEER7.js → exit-worktree-KGKIHZF7.js} +7 -5
- package/chunks/{exitPlanMode-55IBAAUE.js → exitPlanMode-QI6MMXBP.js} +38 -32
- package/chunks/{extract-audio-WMI3JVZW.js → extract-audio-5YD7BSS3.js} +3 -2
- package/chunks/{extract-keyframes-XWYFKXJY.js → extract-keyframes-6SMSQOK5.js} +3 -2
- package/chunks/{fast-path-2QQ5KBFD.js → fast-path-5LKH6KDM.js} +6 -6
- package/chunks/{fast-path-settings-TLOSL5ML.js → fast-path-settings-4BKAJEUA.js} +3 -2
- package/chunks/{glob-VTPB5X62.js → glob-NH5QHEPA.js} +39 -33
- package/chunks/{goal-tools-YHMFTEOO.js → goal-tools-E2BAQDNC.js} +38 -32
- package/chunks/{grep-AXABIEJD.js → grep-AIFXREQI.js} +4 -3
- package/chunks/{handleAutoUpdate-C3NOVKTN.js → handleAutoUpdate-2F7SRHBM.js} +58 -51
- package/chunks/{i18n-MSGWV3QQ.js → i18n-ZIHGKKWD.js} +56 -49
- package/chunks/{image-gen-JK7PLS5E.js → image-gen-F4QUJLNV.js} +2 -1
- package/chunks/{initializer-HWN6XOPB.js → initializer-T7IBOIGZ.js} +61 -54
- package/chunks/{installationInfo-ABC2KRUN.js → installationInfo-LVRJ53UK.js} +55 -48
- package/chunks/{list-LF3J3XDD.js → list-IHQB4BO6.js} +64 -57
- package/chunks/{list-agents-6EQJPTZS.js → list-agents-QYEGD7BM.js} +2 -1
- package/chunks/{llm-NO6O6P34.js → llm-RMRNE62A.js} +144 -118
- package/chunks/{llm-content-generator-7HAG22CO.js → llm-content-generator-RCWZR4T5.js} +3 -3
- package/chunks/{loadedSettingsAdapter-AVY5HFYC.js → loadedSettingsAdapter-CQUTLPEL.js} +61 -54
- package/chunks/{local-execution-environment-APGBUWE4.js → local-execution-environment-RKX5MQNL.js} +49 -42
- package/chunks/{loggingContentGenerator-4L2WNHZ6.js → loggingContentGenerator-ERFLZQVR.js} +40 -34
- package/chunks/{loop-wakeup-RF3XTGKT.js → loop-wakeup-76JNT4WU.js} +2 -1
- package/chunks/{ls-FDTLJBRV.js → ls-D7KTHDNN.js} +3 -2
- package/chunks/{lsp-DFJWXIPB.js → lsp-6UUCOSFX.js} +2 -1
- package/chunks/{managed-npm-update-J2ZPD66O.js → managed-npm-update-ANG4AUQG.js} +55 -48
- package/chunks/{mcp-3PIE3HYX.js → mcp-SAOE57Y3.js} +61 -54
- package/chunks/{model-call-collection-ZGJESJQG.js → model-call-collection-FVK7MJER.js} +4 -3
- package/chunks/{model-configuration-TIUNBSA7.js → model-configuration-UZAIOH6V.js} +61 -54
- package/chunks/{modelConfigUtils-5AOF7V2F.js → modelConfigUtils-O5A6OTCH.js} +56 -49
- package/chunks/{monitor-KQQHCVPC.js → monitor-Z5CUIU55.js} +147 -80
- package/chunks/{nonInteractiveCli-DRHFARV2.js → nonInteractiveCli-ATF2BYRU.js} +100 -93
- package/chunks/{nonInteractiveToolExecutor-ZT47OSWE.js → nonInteractiveToolExecutor-PMGPTOLX.js} +39 -33
- package/chunks/{notebook-edit-W2BQ4QPF.js → notebook-edit-K5V4GH6Y.js} +39 -33
- package/chunks/{ocr-image-2PSF2IAR.js → ocr-image-5S3CK7CF.js} +5 -4
- package/chunks/{omni-TNXXOXEW.js → omni-JQCDE5RB.js} +13 -12
- package/chunks/{openaiContentGenerator-G73YTTX6.js → openaiContentGenerator-T7TLLLWH.js} +17 -14
- package/chunks/{openaiResponsesContentGenerator-GT2QA7HT.js → openaiResponsesContentGenerator-TND3FWH3.js} +2 -2
- package/chunks/{pidfile-65TYNQZO.js → pidfile-ZEQB6VB2.js} +55 -48
- package/chunks/{processUtils-OYVVZD7E.js → processUtils-4TGTF4TT.js} +2 -2
- package/chunks/{prompt-terminal-ledger-SOHAMM2Z.js → prompt-terminal-ledger-PSQRJ7TE.js} +56 -49
- package/chunks/{qwenContentGenerator-3FMMD3SU.js → qwenContentGenerator-VXCFN6VT.js} +41 -35
- package/chunks/{reactive-degrade-RCHTZLHO.js → reactive-degrade-H3R3MGZX.js} +10 -9
- package/chunks/{read-file-ZO5MAQRF.js → read-file-RAS5XPDC.js} +10 -7
- package/chunks/{read-mcp-resource-B2GMAZPJ.js → read-mcp-resource-5LHGYLKO.js} +2 -1
- package/chunks/{recall-media-memory-tool-LV4MEI4V.js → recall-media-memory-tool-KJSYTPWC.js} +2 -1
- package/chunks/{record-artifact-YZC2JO6M.js → record-artifact-HBLFENQR.js} +5 -3
- package/chunks/{record-source-UD4VB654.js → record-source-R573ATSB.js} +6 -5
- package/chunks/{report-findings-3VDQHUWI.js → report-findings-KJ4TYZ36.js} +6 -4
- package/chunks/{request-shutdown-IIQL6AP6.js → request-shutdown-NO5ZWADD.js} +5 -4
- package/chunks/{resumeHistoryUtils-WVAODL3D.js → resumeHistoryUtils-26WUCBRC.js} +61 -54
- package/chunks/{ripGrep-ICSMQC67.js → ripGrep-FII3JUIY.js} +13 -10
- package/chunks/{run-qwen-serve-7JVXBD5X.js → run-qwen-serve-5FFRWVX2.js} +345 -122
- package/chunks/{runtime-SPDHMWL2.js → runtime-HC4IWLN3.js} +64 -57
- package/chunks/{sandbox-AGO4URGF.js → sandbox-GH3UMS6U.js} +63 -56
- package/chunks/{sandboxConfig-GQSKEK3A.js → sandboxConfig-2322DX7U.js} +56 -49
- package/chunks/{scheduled-tasks-NESFIYHB.js → scheduled-tasks-4LQ2X275.js} +62 -55
- package/chunks/{scheduler-IMSC6H47.js → scheduler-BGIBM4N7.js} +60 -50
- package/chunks/{sdk-exporters-http-33ZUNG6F.js → sdk-exporters-http-LOJRQMTP.js} +2 -1
- package/chunks/{sdk-impl-UDJ5SKN5.js → sdk-impl-GRYEDRD7.js} +4 -3
- package/chunks/{send-message-5VICTSBX.js → send-message-POBGHN4M.js} +5 -4
- package/chunks/{serve-GE2YQFZW.js → serve-M5F7RROO.js} +61 -54
- package/chunks/{server-LZDC5WLZ.js → server-EX5EXBNO.js} +543 -191
- package/chunks/{session-NAL5T5QR.js → session-IWSPAKFT.js} +101 -94
- package/chunks/{session-attachments-root-SDTVDDHX.js → session-attachments-root-2RNZOLG3.js} +55 -48
- package/chunks/{session-pr-refresh-QLHN7R76.js → session-pr-refresh-UGNEADXX.js} +61 -54
- package/chunks/{settings-WC7MAKFU.js → settings-TILSWYE4.js} +60 -53
- package/chunks/{shell-UE45BTE7.js → shell-B5NNIPCW.js} +38 -32
- package/chunks/{skill-NDQFTO4T.js → skill-JZUPYZRN.js} +12 -9
- package/chunks/{skill-settings-5QJZJXOA.js → skill-settings-GQDU7ODI.js} +61 -54
- package/chunks/{spawnChannel-DOUIQJXZ.js → spawnChannel-64TB7L3B.js} +58 -51
- package/chunks/{standalone-update-2DN4ELDA.js → standalone-update-HS325LEO.js} +57 -50
- package/chunks/{start-opentui-ui-LA3LPF6Y.js → start-opentui-ui-4CWAUUUK.js} +133 -124
- package/chunks/{startInteractiveUI-FESZ72F3.js → startInteractiveUI-A62PLYJ6.js} +139 -131
- package/chunks/{syntheticOutput-IBR4IZUU.js → syntheticOutput-DTUQ3N3J.js} +3 -2
- package/chunks/{task-create-LTAMU773.js → task-create-2LMS6ZFJ.js} +6 -5
- package/chunks/{task-list-JROVWKLY.js → task-list-D22BRKR6.js} +2 -1
- package/chunks/{task-stop-MHQKQDFQ.js → task-stop-UZDE2G5W.js} +3 -2
- package/chunks/{task-update-RMYMZM6A.js → task-update-RHBIB6YU.js} +6 -5
- package/chunks/{team-create-YNUMJ5GO.js → team-create-HVQVFTF4.js} +40 -34
- package/chunks/{team-delete-EX7BR2LA.js → team-delete-WG4S3QD4.js} +2 -1
- package/chunks/{team-plan-approval-AZXG3HFN.js → team-plan-approval-BNDQPKSX.js} +38 -32
- package/chunks/{terminal-image-renderer-ZNSJFZVA.js → terminal-image-renderer-MFAKYDQ6.js} +57 -50
- package/chunks/{theme-manager-5HQOVK6C.js → theme-manager-PWNYQBAO.js} +55 -48
- package/chunks/{todoWrite-BF3INMCU.js → todoWrite-2DRDC5EG.js} +2 -1
- package/chunks/{tool-call-ZVU2G5XX.js → tool-call-WBTV7ZZW.js} +6 -5
- package/chunks/{tool-result-media-CGSR3JMM.js → tool-result-media-ZSLKUG33.js} +10 -9
- package/chunks/{tool-search-ANXFKRMW.js → tool-search-OEVYUB7E.js} +13 -10
- package/chunks/{total-session-admission-YBOZM7OG.js → total-session-admission-D3FLWCTP.js} +59 -52
- package/chunks/{transcribe-audio-AQZWRIF5.js → transcribe-audio-HGBJBFP4.js} +4 -3
- package/chunks/{trustedFolders-4ANVY47B.js → trustedFolders-DI54YXAI.js} +56 -49
- package/chunks/{understand-video-segments-R2UXRHKY.js → understand-video-segments-5NFKV5QK.js} +5 -4
- package/chunks/{update-relaunch-A66PFRWV.js → update-relaunch-VUPZZGIN.js} +5 -5
- package/chunks/{updateCheck-CGW4ZICA.js → updateCheck-FNEI7PEB.js} +57 -50
- package/chunks/{upload-config-53PGAD6C.js → upload-config-W7XUNP27.js} +4 -4
- package/chunks/{useAutoAcceptIndicator-LCCWXBQX.js → useAutoAcceptIndicator-QLJNSTHJ.js} +62 -55
- package/chunks/{validateNonInterActiveAuth-HGHZE5G5.js → validateNonInterActiveAuth-FDAHJIWY.js} +97 -90
- package/chunks/{version-AYPF2XZG.js → version-7MDLWCQE.js} +1 -1
- package/chunks/{web-fetch-BCIFCTLU.js → web-fetch-GWRQQM4B.js} +12 -9
- package/chunks/{web-search-E262B3IC.js → web-search-RVHDBVOP.js} +6 -5
- package/chunks/{web-shell-static-G654DFN2.js → web-shell-static-GI6FVIMI.js} +4 -3
- package/chunks/{workflow-5UJVVBKP.js → workflow-YP6UKMKN.js} +41 -35
- package/chunks/{workspace-providers-status-ZNWPVLFH.js → workspace-providers-status-4B6XIG25.js} +66 -59
- package/chunks/{workspace-registration-store-CSOD2L3Q.js → workspace-registration-store-SGVFIJHK.js} +1 -1
- package/chunks/{workspace-registry-YLT7CXIQ.js → workspace-registry-ZHLB3535.js} +59 -52
- package/chunks/{workspace-runtime-coordinator-VRJNYOYA.js → workspace-runtime-coordinator-USNYEVBV.js} +60 -53
- package/chunks/{workspace-service-LD63VWNX.js → workspace-service-AAM2WWXC.js} +65 -58
- package/chunks/{workspace-skills-status-OXAHXVR5.js → workspace-skills-status-Y5CUP3QM.js} +64 -57
- package/chunks/{workspace-trust-reconciler-EMAYOLR6.js → workspace-trust-reconciler-T4K6GXNL.js} +65 -58
- package/chunks/{write-file-GSN6CT5R.js → write-file-XQKLFDZR.js} +41 -34
- package/chunks/{zoom-image-5CPVN2KD.js → zoom-image-W2MC5TCI.js} +12 -9
- package/cli.js +12 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.css +1 -1
- package/export-transcript-document.js +105 -101
- package/package.json +4 -4
- package/sandboxBwrapRelay.js +29 -3
- package/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/vendor/ripgrep/arm64-linux/rg +0 -0
- package/vendor/ripgrep/x64-darwin/rg +0 -0
- package/vendor/ripgrep/x64-linux/rg +0 -0
- package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
- package/vendor/tree-sitter/tree-sitter.wasm +0 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BoGedP8r.js → abnfDiagram-VCTEODGH-C78-6a3S.js} +1 -1
- package/web-shell/assets/{arc-B0xm-EAq.js → arc-CmH9kaGN.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-DiNagfRJ.js → architectureDiagram-5GKGNRK7-CZFRQon0.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-EEcQWUWl.js → blockDiagram-NRAW4CY4-D93O-_k2.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BvW_nn93.js → c4Diagram-UCG6FXSJ-c1-FollP.js} +1 -1
- package/web-shell/assets/capture-worklet-DvBxuiSL.js +76 -0
- package/web-shell/assets/channel-BfBKWer9.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-B4jI17Cn.js → chunk-2Q5K7J3B-VliKALcT.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BJqaAvlZ.js → chunk-5VM5RSS4-Ca-iUyV8.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-C0Ju4Hf-.js → chunk-F27PBJKO-CRaXmQAl.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-I1BYIJwg.js → chunk-G27WJ6UU-CoE3C1be.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-Cnyab3JU.js → chunk-JWPE2WC7-C-XC7xOy.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-DV-HUbga.js → chunk-LCL6LL3I-WSw87jpb.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-zromK3LN.js → chunk-POPQ4Y6H-WOEnJxNN.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-CRTcS0Li.js → chunk-SVP7TREG-B4MgK57I.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-C7t9Y5dp.js → chunk-XXDRQBXY-DeHKjG0R.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CnVzQeNi.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CnVzQeNi.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-pYqimMDR.js → cose-bilkent-JH36ORCC-CiEycMW6.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-CZE7POLH.js → cynefin-OW5HDTMX-BXRzkKgt.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DAiwFQTo.js → cynefinDiagram-5FMLGOSQ-Bxe5sVPR.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CujXJf4M.js → dagre-3AP2YEHR-BAyoqY_Q.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-jA7L0GxC.js → diagram-S7CK7UJ4-Dr8MbamH.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-Cq-AJp-u.js → diagram-UQ7AKVKN-DWcanl3k.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-Drk-2m9j.js → diagram-VSXAHHWV-DDRg51Xz.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-BvjF2q85.js → diagram-VX7I27RA-BL4Ol6IK.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-DFFJyEWC.js → diagram-Z3DM3KII-x7iAuqyv.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-552tv6tR.js → ebnfDiagram-PWID7BFC-Dg7ilPH-.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-BO6qRo35.js → erDiagram-SSCWMZ5O-BO961Uqz.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-DCxuaOR6.js → flowDiagram-A5DVABFB-BV-ZYOGr.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BkKh0yeR.js → ganttDiagram-EL5Y4UJY-CTdamWWv.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BQlQLZ8w.js → gitGraphDiagram-WWUBYQGX-Ba81EL7L.js} +1 -1
- package/web-shell/assets/{index-B0bERnDx.js → index-Bv0V9OXG.js} +524 -489
- package/web-shell/assets/{index-lb-zgZOV.js → index-CfqC97ch.js} +1 -1
- package/web-shell/assets/index-LyplXTTk.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-7Ba9Yqy8.js → infoDiagram-RXCK75RN-D4tuAQsz.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-I6Gp1QB4.js → ishikawaDiagram-5VMMS53U-CwG0Fujf.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BhgZwHgO.js → journeyDiagram-EYS64GPL-JxciZI1D.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-D9Dp43hm.js → kanban-definition-3QL26DDD-B0HxTlm2.js} +1 -1
- package/web-shell/assets/{layout-CgsZclxS.js → layout-B42L5DL1.js} +1 -1
- package/web-shell/assets/{linear-Drh5DEW5.js → linear-B6_uNDIL.js} +1 -1
- package/web-shell/assets/{mermaid.core-CDSrg0Wk.js → mermaid.core-WgQeKvd3.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-C6EqGkzE.js → mindmap-definition-FBJOCRG2-Dw16VoQA.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-pZrH8Go8.js → pegDiagram-XKGWAZYB-CQGRgdCn.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BMOrGNAB.js → pieDiagram-E7YTZNPT-CLIhVHyK.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-aOjXRFWV.js → quadrantDiagram-AXDQQJYC-CZrclYWs.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-C4V6eoOZ.js → railroadDiagram-O6MQD6OU-DB_C2CwU.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C6NZbgbz.js → requirementDiagram-EFPCY7ZU-CgkiWWJV.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-C7lEEAPR.js → sankeyDiagram-P5KCCOFB-Sd0bLsuo.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DSM8FnIj.js → sequenceDiagram-WJ2MYXX4-DQVPWwN9.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BUvKK3KC.js → sizeCapture-X5ZJPWSS-DMkCZFSe.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-BnMNYnSz.js → stateDiagram-HBIQ2CUA-BkPJTy7E.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CSOW7jZq.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-5wCXDaoD.js → swimlanes-XN3QIQJK-BiOUk5ss.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CK09Ak8R.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-HwXl1O0d.js → timeline-definition-24CTP7MA-CQUSj0Ao.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-lz3VObUA.js → vennDiagram-4TSXK5OY-BzcmpzYR.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-29xS19u_.js → wardleyDiagram-VM6X3IG4-CvhXOzPK.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BY8S5eJH.js → xychartDiagram-S5SC5T6Z-BkvDwHZO.js} +1 -1
- package/web-shell/index.html +2 -2
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-B_cQkC7L.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Cun05rpU.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Cun05rpU.js +0 -1
- package/web-shell/assets/index-iUOVxoEW.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-D9jbQn8y.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DX2chy2x.js +0 -8
- package/chunks/{chunk-I2GU2HMQ.js → chunk-M6SELBSG.js} +5 -5
- /package/chunks/{chunk-JRP4GQAF.js → chunk-S5SS7OXV.js} +0 -0
- /package/chunks/{chunk-KA72THKQ.js → chunk-TOLTIUAR.js} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
BaseDeclarativeTool,
|
|
8
8
|
BaseToolInvocation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5XEZQQG3.js";
|
|
10
10
|
import {
|
|
11
11
|
ToolDisplayNames,
|
|
12
12
|
ToolNames
|
|
@@ -290,6 +290,7 @@ var TOOL_GUIDANCE_LINE_GATES = [
|
|
|
290
290
|
tools: [ToolNames.READ_FILE, ToolNames.WRITE_FILE]
|
|
291
291
|
},
|
|
292
292
|
{ prefix: "- **Background Processes:**", tools: [ToolNames.SHELL] },
|
|
293
|
+
{ prefix: "- **Monitor Processes:**", tools: [ToolNames.MONITOR] },
|
|
293
294
|
{ prefix: "- **Interactive Commands:**", tools: [ToolNames.SHELL] },
|
|
294
295
|
{ prefix: "- **Subagent Delegation:**", tools: [ToolNames.AGENT] },
|
|
295
296
|
{
|
|
@@ -357,7 +358,7 @@ When requested to perform tasks like fixing bugs, adding features, refactoring,
|
|
|
357
358
|
`;
|
|
358
359
|
}
|
|
359
360
|
__name(getSoftwareEngineeringTasksSection, "getSoftwareEngineeringTasksSection");
|
|
360
|
-
function getToolGuidanceSection(
|
|
361
|
+
function getToolGuidanceSection(codeModeOnly, todoWriteEnabled, surface) {
|
|
361
362
|
const taskManagementToolGuidance = todoWriteEnabled ? `- **Task Management:** Use '${ToolNames.TODO_WRITE}' only when explicit tracking adds value. Keep plans concise, outcome-oriented, and current; do not create a todo list for simple or single-step work unless the user explicitly requests one.
|
|
362
363
|
` : "";
|
|
363
364
|
const directControls = todoWriteEnabled ? `'${ToolNames.TODO_WRITE}', '${ToolNames.AGENT}' and the other direct controls` : `'${ToolNames.AGENT}' and the other direct controls`;
|
|
@@ -365,7 +366,7 @@ function getToolGuidanceSection(questions, codeModeOnly, todoWriteEnabled, surfa
|
|
|
365
366
|
return `
|
|
366
367
|
## Using Your Tools
|
|
367
368
|
- **Calling Convention:** Ordinary tools exist only inside '${ToolNames.EXEC}', as \`tools.<name>(args)\`. Every other tool declared to you \u2014 ${directControls} \u2014 is called directly and is not reachable through \`tools\`.
|
|
368
|
-
- **Prefer Dedicated Tools:** Do NOT use \`tools.${ToolNames.SHELL}\` to run commands when a relevant dedicated tool is provided.
|
|
369
|
+
- **Prefer Dedicated Tools:** Do NOT use \`tools.${ToolNames.SHELL}\` to run commands when a relevant dedicated tool is provided. Dedicated tools make actions easier to review:
|
|
369
370
|
- To read files use \`tools.${ToolNames.READ_FILE}\` instead of cat, head, tail, or sed
|
|
370
371
|
- To edit files use \`tools.${ToolNames.EDIT}\` instead of sed or awk
|
|
371
372
|
- To create files use \`tools.${ToolNames.WRITE_FILE}\` instead of cat with heredoc or echo redirection
|
|
@@ -374,10 +375,9 @@ function getToolGuidanceSection(questions, codeModeOnly, todoWriteEnabled, surfa
|
|
|
374
375
|
- Reserve \`tools.${ToolNames.SHELL}\` exclusively for system commands and terminal operations that require shell execution. If you are unsure and there is a relevant dedicated tool, default to using the dedicated tool and only fallback on \`tools.${ToolNames.SHELL}\` for these if it is absolutely necessary.
|
|
375
376
|
- **Batch Into One Program:** Put independent calls in a single '${ToolNames.EXEC}' program and await them together with \`Promise.all\`. Sequence calls only when a later one needs a value an earlier one produced. Whatever you need to see must be passed to \`text()\` \u2014 a result you only assign is never reported back to you. A denied or failed call aborts the whole program, so keep a call that may be refused out of a batch you would then have to repeat.
|
|
376
377
|
- **Tool Fallback:** If a tool returns empty, unhelpful, or unexpected results, try an alternative tool that can accomplish the same goal before telling the user it cannot be done. Never give up after a single tool failure.
|
|
377
|
-
${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when referring to files with tools like \`tools.${ToolNames.READ_FILE}\` or \`tools.${ToolNames.WRITE_FILE}\`. Relative paths are not supported.
|
|
378
|
+
${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when referring to files with tools like \`tools.${ToolNames.READ_FILE}\` or \`tools.${ToolNames.WRITE_FILE}\`. Relative paths are not supported.
|
|
378
379
|
- **Background Processes:** Use background execution with \`is_background: true\` for commands that are unlikely to stop on their own, e.g. \`node server.js\`. Do not append a trailing \`&\` when using the shell tool's managed background mode. If unsure, follow the active interaction mode's question guidance.
|
|
379
380
|
- **Interactive Commands:** Try to avoid shell commands that are likely to require user interaction (e.g. \`git rebase -i\`). Use non-interactive versions of commands (e.g. \`npm init -y\` instead of \`npm init\`) when available, and otherwise remind the user that interactive shell commands are not supported and may cause hangs until canceled by the user.
|
|
380
|
-
- **Questions:** ${questions}
|
|
381
381
|
- **Subagent Delegation:** Use the '${ToolNames.AGENT}' tool with specialized agents when the task at hand matches the agent's description. Subagents are valuable for parallelizing independent queries or for protecting the main context window from excessive results, but they should not be used excessively when not needed. Importantly, avoid duplicating work that subagents are already doing - if you delegate research to a subagent, do not also perform the same searches yourself. A background subagent's result arrives as a task notification in a later turn; while waiting, do not read its transcript, predict its findings, or launch a replacement for the same task.
|
|
382
382
|
- **Codebase Search:** For simple, directed codebase searches (e.g. for a specific file/class/function) call \`tools.${ToolNames.GREP}\` or \`tools.${ToolNames.GLOB}\` yourself. For broader codebase exploration and deep research, use the '${ToolNames.AGENT}' tool with subagent_type=Explore. This is slower than calling them yourself, so use this only when a simple, directed search proves to be insufficient or when your task will clearly require more than 3 queries.
|
|
383
383
|
- **Respect Tool Decisions:** Tool permissions are enforced by the runtime. If a call is denied or canceled, respect that decision and do _not_ try the same action through another path. Retry only if the user subsequently requests that action.
|
|
@@ -385,7 +385,7 @@ ${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when re
|
|
|
385
385
|
}
|
|
386
386
|
const directGuidance = `
|
|
387
387
|
## Using Your Tools
|
|
388
|
-
- **Prefer Dedicated Tools:** Do NOT use the '${ToolNames.SHELL}' to run commands when a relevant dedicated tool is provided.
|
|
388
|
+
- **Prefer Dedicated Tools:** Do NOT use the '${ToolNames.SHELL}' to run commands when a relevant dedicated tool is provided. Dedicated tools make actions easier to review:
|
|
389
389
|
- To read files use '${ToolNames.READ_FILE}' instead of cat, head, tail, or sed
|
|
390
390
|
- To edit files use '${ToolNames.EDIT}' instead of sed or awk
|
|
391
391
|
- To create files use '${ToolNames.WRITE_FILE}' instead of cat with heredoc or echo redirection
|
|
@@ -393,11 +393,11 @@ ${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when re
|
|
|
393
393
|
- To search the content of files, use '${ToolNames.GREP}' instead of grep or rg
|
|
394
394
|
- Reserve using the '${ToolNames.SHELL}' exclusively for system commands and terminal operations that require shell execution. If you are unsure and there is a relevant dedicated tool, default to using the dedicated tool and only fallback on using the '${ToolNames.SHELL}' tool for these if it is absolutely necessary.
|
|
395
395
|
- **Tool Fallback:** If a tool returns empty, unhelpful, or unexpected results, try an alternative tool that can accomplish the same goal before telling the user it cannot be done. Never give up after a single tool failure.
|
|
396
|
-
${taskManagementToolGuidance}- **Parallel Tool Calls:**
|
|
397
|
-
- **File Paths:** Always use absolute paths when referring to files with tools like '${ToolNames.READ_FILE}' or '${ToolNames.WRITE_FILE}'. Relative paths are not supported.
|
|
396
|
+
${taskManagementToolGuidance}- **Parallel Tool Calls:** Call independent tools in parallel; run dependent calls sequentially, using earlier results to supply later arguments.
|
|
397
|
+
- **File Paths:** Always use absolute paths when referring to files with tools like '${ToolNames.READ_FILE}' or '${ToolNames.WRITE_FILE}'. Relative paths are not supported.
|
|
398
398
|
- **Background Processes:** Use background execution with \`is_background: true\` for commands that are unlikely to stop on their own, e.g. \`node server.js\`. Do not append a trailing \`&\` when using the shell tool's managed background mode. If unsure, follow the active interaction mode's question guidance.
|
|
399
|
+
- **Monitor Processes:** Use the '${ToolNames.MONITOR}' tool with \`command: "tail -f log.txt"\` when a long-running command's output should stream back to you as events, e.g. a log file or a \`--watch\` build. Keep using \`is_background: true\` instead when the command produces no output, or when you only need its result at the end.
|
|
399
400
|
- **Interactive Commands:** Try to avoid shell commands that are likely to require user interaction (e.g. \`git rebase -i\`). Use non-interactive versions of commands (e.g. \`npm init -y\` instead of \`npm init\`) when available, and otherwise remind the user that interactive shell commands are not supported and may cause hangs until canceled by the user.
|
|
400
|
-
- **Questions:** ${questions}
|
|
401
401
|
- **Subagent Delegation:** Use the '${ToolNames.AGENT}' tool with specialized agents when the task at hand matches the agent's description. Subagents are valuable for parallelizing independent queries or for protecting the main context window from excessive results, but they should not be used excessively when not needed. Importantly, avoid duplicating work that subagents are already doing - if you delegate research to a subagent, do not also perform the same searches yourself. A background subagent's result arrives as a task notification in a later turn; while waiting, do not read its transcript, predict its findings, or launch a replacement for the same task.
|
|
402
402
|
- **Codebase Search:** For simple, directed codebase searches (e.g. for a specific file/class/function) use the '${ToolNames.GREP}' or '${ToolNames.GLOB}' tools directly. For broader codebase exploration and deep research, use the '${ToolNames.AGENT}' tool with subagent_type=Explore. This is slower than using '${ToolNames.GREP}' or '${ToolNames.GLOB}' directly, so use this only when a simple, directed search proves to be insufficient or when your task will clearly require more than 3 queries.
|
|
403
403
|
- **Respect Tool Decisions:** Tool permissions are enforced by the runtime. If a call is denied or canceled, respect that decision and do _not_ try the same action through another path. Retry only if the user subsequently requests that action.
|
|
@@ -419,7 +419,6 @@ When you create a todo list:
|
|
|
419
419
|
` : "";
|
|
420
420
|
const coreIdentity = resolveCoreIdentityOverride() ?? getDefaultCoreIdentitySentence(interaction.role, Boolean(outputStyle));
|
|
421
421
|
const toolGuidance = getToolGuidanceSection(
|
|
422
|
-
interaction.questions,
|
|
423
422
|
codeModeOnly,
|
|
424
423
|
todoWriteEnabled,
|
|
425
424
|
surface
|
|
@@ -430,10 +429,8 @@ ${coreIdentity}
|
|
|
430
429
|
# Core Mandates
|
|
431
430
|
|
|
432
431
|
- **UserPromptSubmit Context:** Text inside a \`<qwen:user-prompt-submit-context>\` tag is model context added by a configured \`UserPromptSubmit\` hook, not user input.
|
|
433
|
-
- **Conventions:**
|
|
434
|
-
- **Libraries/Frameworks:**
|
|
435
|
-
- **Style & Structure:** Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
|
|
436
|
-
- **Idiomatic Changes:** When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
|
|
432
|
+
- **Conventions:** Never assume file contents. Read relevant code, imports, tests, and configuration before making changes. Follow the project's formatting, naming, typing, structure, and architectural patterns.
|
|
433
|
+
- **Libraries/Frameworks:** Verify a dependency's availability and established usage in project manifests, imports, or neighboring code before using it.
|
|
437
434
|
- **Comments:** Default to none. Only add a comment when the _why_ cannot be conveyed through naming or code structure \u2014 a hidden constraint, a subtle invariant, or a workaround for a specific bug. Do not narrate what the code does. Do not edit comments that are separate from the code you are changing. *NEVER* talk to the user or describe your changes through comments.
|
|
438
435
|
- **Proactiveness:** Fulfill the user's request thoroughly. When the task involves code modifications, add tests to verify the change works. Consider all created files, especially tests, to be permanent artifacts unless the user says otherwise.
|
|
439
436
|
- **Confirm Ambiguity/Expansion:** Do not take significant actions beyond the clear scope of the request without following the active interaction mode's question guidance. If asked *how* to do something, explain first, don't just do it.
|
|
@@ -461,10 +458,7 @@ Before your first tool call, briefly state what you're about to do. While workin
|
|
|
461
458
|
Final responses should be concise by default, but their shape and depth must match the request. Lead with the outcome for simple tasks. For code reviews, explanations, investigations, or substantial changes, provide enough structured detail and include code references, verification results, risks, and next steps when relevant so the user can understand and act on the result.
|
|
462
459
|
|
|
463
460
|
## Tone and Style (CLI Interaction)
|
|
464
|
-
- **
|
|
465
|
-
- **Adaptive Detail:** Use the minimum length and structure needed for clarity. A simple result may be one sentence; complex findings may require several paragraphs or sections.
|
|
466
|
-
- **Clarity over Brevity (When Needed):** While conciseness is key, prioritize clarity for essential explanations or when seeking necessary clarification if a request is ambiguous.
|
|
467
|
-
- **No Chitchat:** Avoid conversational filler and chitchat. Get straight to the action or answer.
|
|
461
|
+
- **Style:** Be professional and direct; omit chitchat. Use enough detail for clarity: a simple result may be one sentence; complex findings may require several paragraphs or sections.
|
|
468
462
|
- **Formatting:** Use GitHub-flavored Markdown. Responses will be rendered in monospace.
|
|
469
463
|
- **Tools vs. Text:** Use tools for actions, text output *only* for communication. Do not add explanatory comments within tool calls or code blocks unless specifically part of the required code/command itself.
|
|
470
464
|
- **Handling Inability:** If unable/unwilling to fulfill a request, state so briefly (1-2 sentences) without excessive justification. Offer alternatives if appropriate.
|
|
@@ -541,7 +535,7 @@ ${(function() {
|
|
|
541
535
|
${codeModeOnly ? codeModeToolCallExamples : filterToolCallExamples(getToolCallExamples(model || ""), surface)}
|
|
542
536
|
|
|
543
537
|
# Final Reminder
|
|
544
|
-
|
|
538
|
+
Keep going until the user's query is completely resolved, or report the specific blocker that prevents completion.
|
|
545
539
|
|
|
546
540
|
Interaction mode reminder: ${interaction.questions}
|
|
547
541
|
`.trim();
|
|
@@ -715,16 +709,6 @@ You are a specialized context summarizer that creates a comprehensive markdown s
|
|
|
715
709
|
__name(getProjectSummaryPrompt, "getProjectSummaryPrompt");
|
|
716
710
|
var generalToolCallExamples = `
|
|
717
711
|
# Examples (Illustrating Tone and Workflow)
|
|
718
|
-
<example>
|
|
719
|
-
user: 1 + 2
|
|
720
|
-
model: 3
|
|
721
|
-
</example>
|
|
722
|
-
|
|
723
|
-
<example>
|
|
724
|
-
user: is 13 a prime number?
|
|
725
|
-
model: true
|
|
726
|
-
</example>
|
|
727
|
-
|
|
728
712
|
<example>
|
|
729
713
|
user: start the server implemented in server.js
|
|
730
714
|
model: [tool_call: ${ToolNames.SHELL} for 'node server.js' with is_background: true because it must run in the background]
|
|
@@ -732,77 +716,40 @@ model: [tool_call: ${ToolNames.SHELL} for 'node server.js' with is_background: t
|
|
|
732
716
|
|
|
733
717
|
<example>
|
|
734
718
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
735
|
-
model:
|
|
736
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
719
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
737
720
|
[tool_call: ${ToolNames.GLOB} for pattern 'tests/test_auth.py']
|
|
738
721
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/tests/test_auth.py' with offset 0 and limit 10]
|
|
739
|
-
(After analysis)
|
|
740
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
741
|
-
I'll also confirm 'requests' is a dependency.
|
|
742
722
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/requirements.txt']
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
Here's the plan:
|
|
747
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
748
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
749
|
-
3. Remove the old 'urllib' import.
|
|
750
|
-
4. Run the project's linter and tests to verify the changes.
|
|
723
|
+
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/src/auth.py']
|
|
724
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
751
725
|
|
|
752
726
|
[tool_call: ${ToolNames.EDIT} for file_path '/path/to/src/auth.py' replacing old_string with new_string]
|
|
753
|
-
|
|
727
|
+
Running the project's checks...
|
|
754
728
|
[tool_call: ${ToolNames.SHELL} for 'ruff check src/auth.py && pytest']
|
|
755
729
|
(After verification passes)
|
|
756
|
-
|
|
757
|
-
Would you like me to write a commit message and commit these changes?
|
|
758
|
-
</example>
|
|
759
|
-
|
|
760
|
-
<example>
|
|
761
|
-
user: Delete the temp directory.
|
|
762
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
730
|
+
Refactored the auth logic; the linter and tests passed.
|
|
763
731
|
</example>
|
|
764
732
|
|
|
765
733
|
<example>
|
|
766
734
|
user: Write tests for someFile.ts
|
|
767
735
|
model:
|
|
768
|
-
|
|
736
|
+
I'll read the source and existing tests to follow project conventions.
|
|
769
737
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/someFile.ts']
|
|
770
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
771
738
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/existingTest.test.ts']
|
|
772
739
|
(After reviewing existing tests and the file content)
|
|
773
740
|
I'll check whether the intended test file already exists.
|
|
774
741
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/someFile.test.ts']
|
|
775
742
|
(After read_file reports that /path/to/someFile.test.ts does not exist)
|
|
776
743
|
[tool_call: ${ToolNames.WRITE_FILE} for file_path '/path/to/someFile.test.ts' with content '(test code content)']
|
|
777
|
-
|
|
744
|
+
(After confirming the project's test command)
|
|
778
745
|
[tool_call: ${ToolNames.SHELL} for 'npm run test']
|
|
779
746
|
(After verification passes)
|
|
780
|
-
|
|
747
|
+
Added the tests; the project's test command passed.
|
|
781
748
|
</example>
|
|
782
749
|
|
|
783
|
-
<example>
|
|
784
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
785
|
-
model:
|
|
786
|
-
[tool_call: ${ToolNames.GLOB} for pattern './**/app.config']
|
|
787
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
788
|
-
I found the following 'app.config' files:
|
|
789
|
-
- /path/to/moduleA/app.config
|
|
790
|
-
- /path/to/moduleB/app.config
|
|
791
|
-
To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them?
|
|
792
|
-
</example>
|
|
793
750
|
`.trim();
|
|
794
751
|
var codeModeToolCallExamples = `
|
|
795
752
|
# Examples (Illustrating Tone and Workflow)
|
|
796
|
-
<example>
|
|
797
|
-
user: 1 + 2
|
|
798
|
-
model: 3
|
|
799
|
-
</example>
|
|
800
|
-
|
|
801
|
-
<example>
|
|
802
|
-
user: is 13 a prime number?
|
|
803
|
-
model: true
|
|
804
|
-
</example>
|
|
805
|
-
|
|
806
753
|
<example>
|
|
807
754
|
user: start the server implemented in server.js
|
|
808
755
|
model: [tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.SHELL}({ command: 'node server.js', is_background: true });]
|
|
@@ -810,45 +757,35 @@ model: [tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.SHELL}
|
|
|
810
757
|
|
|
811
758
|
<example>
|
|
812
759
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
813
|
-
model:
|
|
814
|
-
First I'll check for a test safety net and confirm 'requests' is a dependency. Those two lookups are independent, so they go in one program.
|
|
760
|
+
model: I'll inspect the source, tests, and dependencies. Independent reads go in one program.
|
|
815
761
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
816
|
-
const [tests, requirements] = await Promise.all([
|
|
762
|
+
const [tests, requirements, source] = await Promise.all([
|
|
817
763
|
tools.${ToolNames.GLOB}({ pattern: 'tests/test_auth.py' }),
|
|
818
764
|
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/requirements.txt' }),
|
|
765
|
+
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/src/auth.py' }),
|
|
819
766
|
]);
|
|
820
767
|
text(tests.output);
|
|
821
768
|
text(requirements.output);
|
|
769
|
+
text(source.output);
|
|
822
770
|
]
|
|
823
|
-
(After
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
Here's the plan:
|
|
827
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
828
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
829
|
-
3. Remove the old 'urllib' import.
|
|
830
|
-
4. Run the project's linter and tests to verify the changes.
|
|
771
|
+
(After finding /path/to/tests/test_auth.py)
|
|
772
|
+
[tool_call: ${ToolNames.EXEC} with source: text((await tools.${ToolNames.READ_FILE}({ file_path: '/path/to/tests/test_auth.py' })).output);]
|
|
773
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
831
774
|
|
|
832
775
|
[tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.EDIT}({ file_path: '/path/to/src/auth.py', old_string: '(exact old code)', new_string: '(new code)' });]
|
|
833
|
-
|
|
776
|
+
Running the project's checks...
|
|
834
777
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
835
778
|
const checks = await tools.${ToolNames.SHELL}({ command: 'ruff check src/auth.py && pytest' });
|
|
836
779
|
text(checks.output);
|
|
837
780
|
]
|
|
838
781
|
(After verification passes)
|
|
839
|
-
|
|
840
|
-
Would you like me to write a commit message and commit these changes?
|
|
841
|
-
</example>
|
|
842
|
-
|
|
843
|
-
<example>
|
|
844
|
-
user: Delete the temp directory.
|
|
845
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
782
|
+
Refactored the auth logic; the linter and tests passed.
|
|
846
783
|
</example>
|
|
847
784
|
|
|
848
785
|
<example>
|
|
849
786
|
user: Write tests for someFile.ts
|
|
850
787
|
model:
|
|
851
|
-
|
|
788
|
+
I'll read the source and an existing test together to follow project conventions.
|
|
852
789
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
853
790
|
const [source, existing] = await Promise.all([
|
|
854
791
|
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/someFile.ts' }),
|
|
@@ -862,41 +799,18 @@ Now I'll check whether the intended test file already exists. A failed call abor
|
|
|
862
799
|
[tool_call: ${ToolNames.EXEC} with source: text((await tools.${ToolNames.READ_FILE}({ file_path: '/path/to/someFile.test.ts' })).output);]
|
|
863
800
|
(After ${ToolNames.READ_FILE} reports that /path/to/someFile.test.ts does not exist)
|
|
864
801
|
[tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.WRITE_FILE}({ file_path: '/path/to/someFile.test.ts', content: '(test code content)' });]
|
|
865
|
-
|
|
802
|
+
(After confirming the project's test command)
|
|
866
803
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
867
804
|
const result = await tools.${ToolNames.SHELL}({ command: 'npm run test' });
|
|
868
805
|
text(result.output);
|
|
869
806
|
]
|
|
870
807
|
(After verification passes)
|
|
871
|
-
|
|
808
|
+
Added the tests; the project's test command passed.
|
|
872
809
|
</example>
|
|
873
810
|
|
|
874
|
-
<example>
|
|
875
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
876
|
-
model:
|
|
877
|
-
[tool_call: ${ToolNames.EXEC} with source:
|
|
878
|
-
const found = await tools.${ToolNames.GLOB}({ pattern: './**/app.config' });
|
|
879
|
-
text(found.output);
|
|
880
|
-
]
|
|
881
|
-
(Assuming the glob call returns paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
882
|
-
I found the following 'app.config' files:
|
|
883
|
-
- /path/to/moduleA/app.config
|
|
884
|
-
- /path/to/moduleB/app.config
|
|
885
|
-
To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them?
|
|
886
|
-
</example>
|
|
887
811
|
`.trim();
|
|
888
812
|
var qwenCoderToolCallExamples = `
|
|
889
813
|
# Examples (Illustrating Tone and Workflow)
|
|
890
|
-
<example>
|
|
891
|
-
user: 1 + 2
|
|
892
|
-
model: 3
|
|
893
|
-
</example>
|
|
894
|
-
|
|
895
|
-
<example>
|
|
896
|
-
user: is 13 a prime number?
|
|
897
|
-
model: true
|
|
898
|
-
</example>
|
|
899
|
-
|
|
900
814
|
<example>
|
|
901
815
|
user: start the server implemented in server.js
|
|
902
816
|
model:
|
|
@@ -914,8 +828,7 @@ true
|
|
|
914
828
|
|
|
915
829
|
<example>
|
|
916
830
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
917
|
-
model:
|
|
918
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
831
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
919
832
|
<tool_call>
|
|
920
833
|
<function=${ToolNames.GLOB}>
|
|
921
834
|
<parameter=pattern>
|
|
@@ -936,9 +849,6 @@ tests/test_auth.py
|
|
|
936
849
|
</parameter>
|
|
937
850
|
</function>
|
|
938
851
|
</tool_call>
|
|
939
|
-
(After analysis)
|
|
940
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
941
|
-
I'll also confirm 'requests' is a dependency.
|
|
942
852
|
<tool_call>
|
|
943
853
|
<function=${ToolNames.READ_FILE}>
|
|
944
854
|
<parameter=file_path>
|
|
@@ -946,14 +856,14 @@ I'll also confirm 'requests' is a dependency.
|
|
|
946
856
|
</parameter>
|
|
947
857
|
</function>
|
|
948
858
|
</tool_call>
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
859
|
+
<tool_call>
|
|
860
|
+
<function=${ToolNames.READ_FILE}>
|
|
861
|
+
<parameter=file_path>
|
|
862
|
+
/path/to/src/auth.py
|
|
863
|
+
</parameter>
|
|
864
|
+
</function>
|
|
865
|
+
</tool_call>
|
|
866
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
957
867
|
|
|
958
868
|
<tool_call>
|
|
959
869
|
<function=${ToolNames.EDIT}>
|
|
@@ -968,7 +878,7 @@ Here's the plan:
|
|
|
968
878
|
</parameter>
|
|
969
879
|
</function>
|
|
970
880
|
</tool_call>
|
|
971
|
-
|
|
881
|
+
Running the project's checks...
|
|
972
882
|
<tool_call>
|
|
973
883
|
<function=${ToolNames.SHELL}>
|
|
974
884
|
<parameter=command>
|
|
@@ -977,19 +887,13 @@ ruff check src/auth.py && pytest
|
|
|
977
887
|
</function>
|
|
978
888
|
</tool_call>
|
|
979
889
|
(After verification passes)
|
|
980
|
-
|
|
981
|
-
Would you like me to write a commit message and commit these changes?
|
|
982
|
-
</example>
|
|
983
|
-
|
|
984
|
-
<example>
|
|
985
|
-
user: Delete the temp directory.
|
|
986
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
890
|
+
Refactored the auth logic; the linter and tests passed.
|
|
987
891
|
</example>
|
|
988
892
|
|
|
989
893
|
<example>
|
|
990
894
|
user: Write tests for someFile.ts
|
|
991
895
|
model:
|
|
992
|
-
|
|
896
|
+
I'll read the source and existing tests to follow project conventions.
|
|
993
897
|
<tool_call>
|
|
994
898
|
<function=${ToolNames.READ_FILE}>
|
|
995
899
|
<parameter=file_path>
|
|
@@ -997,7 +901,6 @@ Okay, I can write those tests. First, I'll read someFile.ts to understand its fu
|
|
|
997
901
|
</parameter>
|
|
998
902
|
</function>
|
|
999
903
|
</tool_call>
|
|
1000
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1001
904
|
<tool_call>
|
|
1002
905
|
<function=${ToolNames.READ_FILE}>
|
|
1003
906
|
<parameter=file_path>
|
|
@@ -1025,7 +928,7 @@ I'll check whether the intended test file already exists.
|
|
|
1025
928
|
</parameter>
|
|
1026
929
|
</function>
|
|
1027
930
|
</tool_call>
|
|
1028
|
-
|
|
931
|
+
(After confirming the project's test command)
|
|
1029
932
|
<tool_call>
|
|
1030
933
|
<function=${ToolNames.SHELL}>
|
|
1031
934
|
<parameter=command>
|
|
@@ -1034,38 +937,12 @@ npm run test
|
|
|
1034
937
|
</function>
|
|
1035
938
|
</tool_call>
|
|
1036
939
|
(After verification passes)
|
|
1037
|
-
|
|
940
|
+
Added the tests; the project's test command passed.
|
|
1038
941
|
</example>
|
|
1039
942
|
|
|
1040
|
-
<example>
|
|
1041
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1042
|
-
model:
|
|
1043
|
-
<tool_call>
|
|
1044
|
-
<function=${ToolNames.GLOB}>
|
|
1045
|
-
<parameter=pattern>
|
|
1046
|
-
./**/app.config
|
|
1047
|
-
</parameter>
|
|
1048
|
-
</function>
|
|
1049
|
-
</tool_call>
|
|
1050
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1051
|
-
I found the following 'app.config' files:
|
|
1052
|
-
- /path/to/moduleA/app.config
|
|
1053
|
-
- /path/to/moduleB/app.config
|
|
1054
|
-
To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them?
|
|
1055
|
-
</example>
|
|
1056
943
|
`.trim();
|
|
1057
944
|
var qwenVlToolCallExamples = `
|
|
1058
945
|
# Examples (Illustrating Tone and Workflow)
|
|
1059
|
-
<example>
|
|
1060
|
-
user: 1 + 2
|
|
1061
|
-
model: 3
|
|
1062
|
-
</example>
|
|
1063
|
-
|
|
1064
|
-
<example>
|
|
1065
|
-
user: is 13 a prime number?
|
|
1066
|
-
model: true
|
|
1067
|
-
</example>
|
|
1068
|
-
|
|
1069
946
|
<example>
|
|
1070
947
|
user: start the server implemented in server.js
|
|
1071
948
|
model:
|
|
@@ -1076,54 +953,39 @@ model:
|
|
|
1076
953
|
|
|
1077
954
|
<example>
|
|
1078
955
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
1079
|
-
model:
|
|
1080
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
956
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
1081
957
|
<tool_call>
|
|
1082
958
|
{"name": "${ToolNames.GLOB}", "arguments": {"pattern": "tests/test_auth.py"}}
|
|
1083
959
|
</tool_call>
|
|
1084
960
|
<tool_call>
|
|
1085
961
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/tests/test_auth.py", "offset": 0, "limit": 10}}
|
|
1086
962
|
</tool_call>
|
|
1087
|
-
(After analysis)
|
|
1088
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
1089
|
-
I'll also confirm 'requests' is a dependency.
|
|
1090
963
|
<tool_call>
|
|
1091
964
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/requirements.txt"}}
|
|
1092
965
|
</tool_call>
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
1098
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
1099
|
-
3. Remove the old 'urllib' import.
|
|
1100
|
-
4. Run the project's linter and tests to verify the changes.
|
|
966
|
+
<tool_call>
|
|
967
|
+
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/src/auth.py"}}
|
|
968
|
+
</tool_call>
|
|
969
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
1101
970
|
|
|
1102
971
|
<tool_call>
|
|
1103
972
|
{"name": "${ToolNames.EDIT}", "arguments": {"file_path": "/path/to/src/auth.py", "old_string": "(old code content)", "new_string": "(new code content)"}}
|
|
1104
973
|
</tool_call>
|
|
1105
|
-
|
|
974
|
+
Running the project's checks...
|
|
1106
975
|
<tool_call>
|
|
1107
976
|
{"name": "${ToolNames.SHELL}", "arguments": {"command": "ruff check src/auth.py && pytest"}}
|
|
1108
977
|
</tool_call>
|
|
1109
978
|
(After verification passes)
|
|
1110
|
-
|
|
1111
|
-
Would you like me to write a commit message and commit these changes?
|
|
1112
|
-
</example>
|
|
1113
|
-
|
|
1114
|
-
<example>
|
|
1115
|
-
user: Delete the temp directory.
|
|
1116
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
979
|
+
Refactored the auth logic; the linter and tests passed.
|
|
1117
980
|
</example>
|
|
1118
981
|
|
|
1119
982
|
<example>
|
|
1120
983
|
user: Write tests for someFile.ts
|
|
1121
984
|
model:
|
|
1122
|
-
|
|
985
|
+
I'll read the source and existing tests to follow project conventions.
|
|
1123
986
|
<tool_call>
|
|
1124
987
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/someFile.ts"}}
|
|
1125
988
|
</tool_call>
|
|
1126
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1127
989
|
<tool_call>
|
|
1128
990
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/existingTest.test.ts"}}
|
|
1129
991
|
</tool_call>
|
|
@@ -1136,39 +998,17 @@ I'll check whether the intended test file already exists.
|
|
|
1136
998
|
<tool_call>
|
|
1137
999
|
{"name": "${ToolNames.WRITE_FILE}", "arguments": {"file_path": "/path/to/someFile.test.ts", "content": "(test code content)"}}
|
|
1138
1000
|
</tool_call>
|
|
1139
|
-
|
|
1001
|
+
(After confirming the project's test command)
|
|
1140
1002
|
<tool_call>
|
|
1141
1003
|
{"name": "${ToolNames.SHELL}", "arguments": {"command": "npm run test"}}
|
|
1142
1004
|
</tool_call>
|
|
1143
1005
|
(After verification passes)
|
|
1144
|
-
|
|
1006
|
+
Added the tests; the project's test command passed.
|
|
1145
1007
|
</example>
|
|
1146
1008
|
|
|
1147
|
-
<example>
|
|
1148
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1149
|
-
model:
|
|
1150
|
-
<tool_call>
|
|
1151
|
-
{"name": "${ToolNames.GLOB}", "arguments": {"pattern": "./**/app.config"}}
|
|
1152
|
-
</tool_call>
|
|
1153
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1154
|
-
I found the following 'app.config' files:
|
|
1155
|
-
- /path/to/moduleA/app.config
|
|
1156
|
-
- /path/to/moduleB/app.config
|
|
1157
|
-
To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them?
|
|
1158
|
-
</example>
|
|
1159
1009
|
`.trim();
|
|
1160
1010
|
var gemma4ToolCallExamples = `
|
|
1161
1011
|
# Examples (Illustrating Tone and Workflow)
|
|
1162
|
-
<example>
|
|
1163
|
-
user: 1 + 2
|
|
1164
|
-
model: 3
|
|
1165
|
-
</example>
|
|
1166
|
-
|
|
1167
|
-
<example>
|
|
1168
|
-
user: is 13 a prime number?
|
|
1169
|
-
model: true
|
|
1170
|
-
</example>
|
|
1171
|
-
|
|
1172
1012
|
<example>
|
|
1173
1013
|
user: start the server implemented in server.js
|
|
1174
1014
|
model: <|tool_call>call:${ToolNames.SHELL}{command:<|"|>node server.js<|"|>,is_background:true}<tool_call|>
|
|
@@ -1176,64 +1016,37 @@ model: <|tool_call>call:${ToolNames.SHELL}{command:<|"|>node server.js<|"|>,is_b
|
|
|
1176
1016
|
|
|
1177
1017
|
<example>
|
|
1178
1018
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
1179
|
-
model:
|
|
1180
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
1019
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
1181
1020
|
<|tool_call>call:${ToolNames.GLOB}{pattern:<|"|>tests/test_auth.py<|"|>}<tool_call|>
|
|
1182
1021
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/tests/test_auth.py<|"|>,offset:0,limit:10}<tool_call|>
|
|
1183
|
-
(After analysis)
|
|
1184
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
1185
|
-
I'll also confirm 'requests' is a dependency.
|
|
1186
1022
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/requirements.txt<|"|>}<tool_call|>
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
Here's the plan:
|
|
1191
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
1192
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
1193
|
-
3. Remove the old 'urllib' import.
|
|
1194
|
-
4. Run the project's linter and tests to verify the changes.
|
|
1023
|
+
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/src/auth.py<|"|>}<tool_call|>
|
|
1024
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
1195
1025
|
|
|
1196
1026
|
<|tool_call>call:${ToolNames.EDIT}{file_path:<|"|>/path/to/src/auth.py<|"|>,old_string:<|"|>(old code content)<|"|>,new_string:<|"|>(new code content)<|"|>}<tool_call|>
|
|
1197
|
-
|
|
1027
|
+
Running the project's checks...
|
|
1198
1028
|
<|tool_call>call:${ToolNames.SHELL}{command:<|"|>ruff check src/auth.py && pytest<|"|>}<tool_call|>
|
|
1199
1029
|
(After verification passes)
|
|
1200
|
-
|
|
1201
|
-
Would you like me to write a commit message and commit these changes?
|
|
1202
|
-
</example>
|
|
1203
|
-
|
|
1204
|
-
<example>
|
|
1205
|
-
user: Delete the temp directory.
|
|
1206
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
1030
|
+
Refactored the auth logic; the linter and tests passed.
|
|
1207
1031
|
</example>
|
|
1208
1032
|
|
|
1209
1033
|
<example>
|
|
1210
1034
|
user: Write tests for someFile.ts
|
|
1211
1035
|
model:
|
|
1212
|
-
|
|
1036
|
+
I'll read the source and existing tests to follow project conventions.
|
|
1213
1037
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/someFile.ts<|"|>}<tool_call|>
|
|
1214
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1215
1038
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/existingTest.test.ts<|"|>}<tool_call|>
|
|
1216
1039
|
(After reviewing existing tests and the file content)
|
|
1217
1040
|
I'll check whether the intended test file already exists.
|
|
1218
1041
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/someFile.test.ts<|"|>}<tool_call|>
|
|
1219
1042
|
(After read_file reports that /path/to/someFile.test.ts does not exist)
|
|
1220
1043
|
<|tool_call>call:${ToolNames.WRITE_FILE}{file_path:<|"|>/path/to/someFile.test.ts<|"|>,content:<|"|>(test code content)<|"|>}<tool_call|>
|
|
1221
|
-
|
|
1044
|
+
(After confirming the project's test command)
|
|
1222
1045
|
<|tool_call>call:${ToolNames.SHELL}{command:<|"|>npm run test<|"|>}<tool_call|>
|
|
1223
1046
|
(After verification passes)
|
|
1224
|
-
|
|
1047
|
+
Added the tests; the project's test command passed.
|
|
1225
1048
|
</example>
|
|
1226
1049
|
|
|
1227
|
-
<example>
|
|
1228
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1229
|
-
model:
|
|
1230
|
-
<|tool_call>call:${ToolNames.GLOB}{pattern:<|"|>./**/app.config<|"|>}<tool_call|>
|
|
1231
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1232
|
-
I found the following 'app.config' files:
|
|
1233
|
-
- /path/to/moduleA/app.config
|
|
1234
|
-
- /path/to/moduleB/app.config
|
|
1235
|
-
To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them?
|
|
1236
|
-
</example>
|
|
1237
1050
|
`.trim();
|
|
1238
1051
|
function getToolCallExamples(model) {
|
|
1239
1052
|
const toolCallStyle = process.env["QWEN_CODE_TOOL_CALL_STYLE"];
|