@qwen-code/qwen-code 0.24.5-preview.0 → 0.24.5
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/browser-use/SKILL.md +11 -10
- package/bundled/browser-use/runtime/index.js +70 -31
- package/bundled/browser-use/runtime/native-host.js +1 -0
- package/bundled/browser-use/runtime/scripts/native-host-setup.js +1 -0
- package/bundled/computer-use/SKILL.md +182 -224
- package/bundled/qc-helper/docs/configuration/model-providers.md +13 -2
- package/bundled/qc-helper/docs/conversations-recovery.md +10 -0
- package/bundled/qc-helper/docs/features/browser-use.md +22 -12
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +2 -2
- package/bundled/qc-helper/docs/features/channels/dws.md +7 -7
- package/bundled/qc-helper/docs/features/channels/feishu.md +1 -1
- package/bundled/qc-helper/docs/features/channels/github.md +13 -9
- package/bundled/qc-helper/docs/features/channels/gitlab.md +12 -5
- package/bundled/qc-helper/docs/features/channels/overview.md +121 -46
- package/bundled/qc-helper/docs/features/channels/plugins.md +12 -12
- package/bundled/qc-helper/docs/features/channels/qqbot.md +5 -5
- package/bundled/qc-helper/docs/features/channels/telegram.md +5 -5
- package/bundled/qc-helper/docs/features/channels/wecom.md +5 -4
- package/bundled/qc-helper/docs/features/channels/weixin.md +3 -3
- package/bundled/qc-helper/docs/features/code-review.md +4 -0
- package/bundled/qc-helper/docs/features/computer-use.md +1 -1
- package/bundled/qc-helper/docs/quickstart.md +14 -14
- package/bundled/qc-helper/docs/qwen-serve.md +10 -4
- package/bundled/review/SKILL.md +44 -9
- package/bundled/review/references/persistence.md +3 -4
- package/chunks/{MaxSizedBox-3RXPTLCS.js → MaxSizedBox-4MLWQHF3.js} +33 -31
- package/chunks/{StandaloneSessionPicker-74775YBZ.js → StandaloneSessionPicker-PDNU6KJJ.js} +50 -48
- package/chunks/{acp-subagent-executor-OQXOMTFK.js → acp-subagent-executor-JB2J6N73.js} +35 -33
- package/chunks/{acpAgent-MD56LD7L.js → acpAgent-CAPZFZCW.js} +123 -97
- package/chunks/{agent-75EZNG2Q.js → agent-MTWGIPWC.js} +18 -16
- package/chunks/{agent-headless-TQ6MWUDT.js → agent-headless-Z27XJSXK.js} +18 -16
- package/chunks/{anthropicContentGenerator-DCDXTX3R.js → anthropicContentGenerator-VAFZRJWG.js} +3 -3
- package/chunks/{askUserQuestion-2NU6CXK2.js → askUserQuestion-V4OFZD5D.js} +1 -1
- package/chunks/{bridge-KGJYQUWD.js → bridge-BUCSJHCE.js} +35 -33
- package/chunks/{channel-management-service-YN4A3BJ6.js → channel-management-service-Q2B7WUPL.js} +27 -10
- package/chunks/{channel-settings-store-773UOD6B.js → channel-settings-store-U25CVEL6.js} +42 -40
- package/chunks/{channel-worker-group-AKPVHRUO.js → channel-worker-group-QNX4OIMZ.js} +5 -5
- package/chunks/{channel-worker-manager-TDAQSKWX.js → channel-worker-manager-IJCPV4WY.js} +24 -5
- package/chunks/{channel-worker-supervisor-PUMSN4J2.js → channel-worker-supervisor-ENJ2AE2N.js} +4 -4
- package/chunks/{chunk-OU4ZCLGJ.js → chunk-242INZ6Y.js} +1 -1
- package/chunks/{chunk-JOFZBTVL.js → chunk-245NB3M4.js} +1 -1
- package/chunks/{chunk-LISITUEH.js → chunk-26KGIWIW.js} +1 -1
- package/chunks/{chunk-WPHZEGFC.js → chunk-2RQEWY2P.js} +1 -1
- package/chunks/{chunk-DCTJ3GVF.js → chunk-2SCE6YR2.js} +3 -3
- package/chunks/{chunk-STKUN7BR.js → chunk-2XNGG7R3.js} +1 -1
- package/chunks/{chunk-OQE7AA2W.js → chunk-36ZMEEBW.js} +16 -12
- package/chunks/{chunk-Y53WH7VD.js → chunk-44K6Q5AW.js} +3 -3
- package/chunks/{chunk-N4VKU36J.js → chunk-465XOJLQ.js} +1 -1
- package/chunks/{chunk-HD4IXPPC.js → chunk-4A4XNQEZ.js} +3 -3
- package/chunks/{chunk-RXB6Y33E.js → chunk-4VULJ3LV.js} +1 -1
- package/chunks/{chunk-EBRC4GX2.js → chunk-4XXUGJJS.js} +1 -1
- package/chunks/{chunk-MVC4XLNM.js → chunk-53IRNMPU.js} +118 -5
- package/chunks/{chunk-VGLXXHTF.js → chunk-5BLOZPTW.js} +1 -1
- package/chunks/{chunk-3SK2A75W.js → chunk-5OJQLD3P.js} +3 -3
- package/chunks/{chunk-WVNCMGAO.js → chunk-6FURC4LI.js} +1 -1
- package/chunks/{chunk-WVTM33Q3.js → chunk-6KXQIDK2.js} +4 -4
- package/chunks/{chunk-ZKDUQHU4.js → chunk-7MNHZUTA.js} +35 -18
- package/chunks/{chunk-JEIPBSGX.js → chunk-7P5WZQXF.js} +7 -7
- package/chunks/{chunk-GGUOO2XC.js → chunk-7RCAMBLN.js} +1 -1
- package/chunks/{chunk-FBLGI2SO.js → chunk-AAOMFXVZ.js} +7 -7
- package/chunks/{chunk-JM76TMGV.js → chunk-ACLD6C3R.js} +8798 -7901
- package/chunks/{chunk-4FCWKBOC.js → chunk-ALTMZEBU.js} +6 -6
- package/chunks/{chunk-ZHQSWNO6.js → chunk-AN62TPO6.js} +1 -1
- package/chunks/{chunk-U5DPG7JW.js → chunk-AYTI24XN.js} +1 -1
- package/chunks/{chunk-B53FO7JN.js → chunk-AZN2GSLM.js} +2 -2
- package/chunks/{chunk-6KQQPPFF.js → chunk-B3J4BSPL.js} +1 -1
- package/chunks/{chunk-SLSH5TFD.js → chunk-BMCDSO77.js} +4 -4
- package/chunks/{chunk-DBYUN4U3.js → chunk-BUDUHXX3.js} +1 -1
- package/chunks/{chunk-TS4Y2MHO.js → chunk-CGREZDGO.js} +1 -1
- package/chunks/chunk-CLNDQINM.js +523 -0
- package/chunks/{chunk-LNUQA3OE.js → chunk-CVRZNFXO.js} +1 -1
- package/chunks/{chunk-3DBI3LLL.js → chunk-CWLTXYKP.js} +4 -4
- package/chunks/{chunk-B3XMX4SN.js → chunk-DACCX4JI.js} +4 -4
- package/chunks/{chunk-YWZOEHBT.js → chunk-DE2WI7RU.js} +192 -62
- package/chunks/{chunk-3TQVPDCN.js → chunk-DU53RB7A.js} +2 -2
- package/chunks/{chunk-2KZURPTB.js → chunk-DZCTQ2MF.js} +6 -1
- package/chunks/{chunk-35SABQFH.js → chunk-DZUNDX4M.js} +1 -1
- package/chunks/{chunk-4INF7OYV.js → chunk-ELY2U74S.js} +2 -2
- package/chunks/chunk-EMGHODF7.js +56 -0
- package/chunks/{chunk-5FZKG4JB.js → chunk-EMOTEATH.js} +1 -1
- package/chunks/{chunk-LW7WW3Z5.js → chunk-ERGQUKZ2.js} +1 -1
- package/chunks/{chunk-TNWJJEDT.js → chunk-ES6EQNGR.js} +6 -6
- package/chunks/{chunk-E3TLOFX7.js → chunk-EUHSEMO4.js} +62 -7
- package/chunks/{chunk-N25B6FZN.js → chunk-EYCDA5MN.js} +2 -0
- package/chunks/{chunk-GPTEZLRR.js → chunk-F4ERRMCO.js} +25 -23
- package/chunks/{chunk-SXFZ5P7F.js → chunk-FE7D3WKV.js} +1 -1
- package/chunks/{chunk-XEXNBTYX.js → chunk-FH45BQGZ.js} +3 -3
- package/chunks/{chunk-CAORZAZD.js → chunk-FLBUHGL4.js} +10 -10
- package/chunks/{chunk-X2R47SFR.js → chunk-FLVPNMCS.js} +1 -1
- package/chunks/{chunk-5SZSV2CK.js → chunk-FVIJFKEQ.js} +3 -3
- package/chunks/{chunk-KFLDZ3HB.js → chunk-G6XRNTXF.js} +1 -1
- package/chunks/{chunk-2JHQ2J3Y.js → chunk-G72UHXC3.js} +5 -5
- package/chunks/{chunk-4A255ZI6.js → chunk-GAHZJLQG.js} +2 -2
- package/chunks/{chunk-7IVZOKKW.js → chunk-GKJGKTWJ.js} +3 -3
- package/chunks/{chunk-KY4HZXLV.js → chunk-GLPNIOEV.js} +33 -2
- package/chunks/{chunk-6PRSQUPJ.js → chunk-GQZZGEMS.js} +1 -1
- package/chunks/{chunk-G2AE7GYZ.js → chunk-GRUASRWC.js} +1 -1
- package/chunks/{chunk-HH7R6RLK.js → chunk-GTQ35GRO.js} +1 -1
- package/chunks/{chunk-LWRJLRZS.js → chunk-GYLDOFLU.js} +3 -3
- package/chunks/{chunk-MZRJ2JJS.js → chunk-HDSI3RDN.js} +136 -9
- package/chunks/{chunk-RO5K7QUL.js → chunk-HHMJ5ONX.js} +45 -31
- package/chunks/{chunk-E4HNTYHK.js → chunk-HVVQYSBA.js} +32 -9
- package/chunks/{chunk-H2GVLBFU.js → chunk-I36GIR6K.js} +64 -2
- package/chunks/{chunk-VTFLRL55.js → chunk-IBRV4T3I.js} +2 -2
- package/chunks/{chunk-4VSTV4C2.js → chunk-IH22ZGZI.js} +53 -2
- package/chunks/{chunk-AOW7WIWE.js → chunk-IQH7Q5OP.js} +4 -4
- package/chunks/{chunk-OB444SG3.js → chunk-IYKGSUTA.js} +1 -1
- package/chunks/{chunk-HS5OZTQF.js → chunk-J2FLXQJM.js} +1 -1
- package/chunks/{chunk-BBCH7PBA.js → chunk-KACKEW2M.js} +2 -2
- package/chunks/{chunk-JE3J5HFM.js → chunk-KAOHUUM7.js} +62 -251
- package/chunks/{chunk-JCMDVGPR.js → chunk-KGLPVCX7.js} +2 -2
- package/chunks/{chunk-QKXZOHHQ.js → chunk-LDURD6EP.js} +15 -62
- package/chunks/{chunk-O4IH5UEC.js → chunk-LLIYDIGU.js} +20 -20
- package/chunks/{chunk-3XHMOJCP.js → chunk-MBC3PULP.js} +1 -1
- package/chunks/{chunk-SRZA7OU4.js → chunk-MMCGLNPP.js} +6 -6
- package/chunks/{chunk-3NG2ZQAJ.js → chunk-NZC74TT2.js} +1 -1
- package/chunks/{chunk-47C3HPMW.js → chunk-O5YL6KSX.js} +47 -18
- package/chunks/{chunk-EIHZ4FFM.js → chunk-O6PPYFQN.js} +3 -3
- package/chunks/{chunk-XCU752HT.js → chunk-OICDXWXP.js} +13 -19
- package/chunks/{chunk-VJCKLKZX.js → chunk-OOU7XOZF.js} +3 -3
- package/chunks/{chunk-OM5NSL25.js → chunk-P4P7CH7H.js} +38 -38
- package/chunks/{chunk-CIS4SY3R.js → chunk-PPBZHGEQ.js} +3 -3
- package/chunks/{chunk-PB7JBAHF.js → chunk-PVBIEIVZ.js} +0 -1
- package/chunks/{chunk-GG3MO6NO.js → chunk-PWGMHXIV.js} +2 -2
- package/chunks/{chunk-6N2PJAZG.js → chunk-PX2ZOOGQ.js} +1 -1
- package/chunks/{chunk-NNN2PKPV.js → chunk-PYYPSK6Q.js} +36 -495
- package/chunks/{chunk-TKOQGFRE.js → chunk-PZOWKCPJ.js} +1 -1
- package/chunks/{chunk-PJ546DX4.js → chunk-Q36IJ74U.js} +17 -11
- package/chunks/chunk-Q4FJVWI4.js +78 -0
- package/chunks/{chunk-PA4HU5IQ.js → chunk-QATPE3SN.js} +13 -7
- package/chunks/{chunk-MBUUQJPV.js → chunk-QGKAYDES.js} +5 -5
- package/chunks/{chunk-TFBQ5CKI.js → chunk-QNEBHC2E.js} +1 -1
- package/chunks/{chunk-6NA357SF.js → chunk-QTNSMJKU.js} +1 -1
- package/chunks/{chunk-TDLEDOJN.js → chunk-QU7VULWX.js} +5 -4
- package/chunks/{chunk-LOTGIM6V.js → chunk-R3IFSY55.js} +20 -20
- package/chunks/{chunk-ZX6EZ7EH.js → chunk-RBE3WRSN.js} +3 -3
- package/chunks/{chunk-YSZ2XZTG.js → chunk-RBKZ6SK4.js} +5 -5
- package/chunks/{chunk-FLRFAPDA.js → chunk-RCL6OXZC.js} +5 -5
- package/chunks/{chunk-H4W6TJFJ.js → chunk-RONRTFAQ.js} +1 -1
- package/chunks/{chunk-ZEGLZ3MN.js → chunk-SCYKHWRM.js} +5 -5
- package/chunks/{chunk-STUJ7IMZ.js → chunk-SI7XKACY.js} +56 -56
- package/chunks/{chunk-RL2HSTEB.js → chunk-SYZPPX3O.js} +1492 -1140
- package/chunks/{chunk-VUYJRNG5.js → chunk-T7TJPVTY.js} +3 -3
- package/chunks/{chunk-4V5YKOBI.js → chunk-TF7UC7F6.js} +3 -3
- package/chunks/{chunk-NXZD3VNX.js → chunk-TL7DSR47.js} +1 -1
- package/chunks/{chunk-BVFBDXI2.js → chunk-TPFV5YZK.js} +1 -1
- package/chunks/{chunk-YIHOHHJL.js → chunk-TZHXHWEW.js} +1 -1
- package/chunks/{chunk-3X5BDEXS.js → chunk-U6RMVE5X.js} +8 -8
- package/chunks/{chunk-HRVFPNGT.js → chunk-VFNKO4FK.js} +4 -4
- package/chunks/{chunk-VPALWDQL.js → chunk-VUIH3BQL.js} +31 -12
- package/chunks/{chunk-WVNML4HH.js → chunk-VW33WARJ.js} +1 -1
- package/chunks/{chunk-MICQVBPI.js → chunk-WCLHOKAZ.js} +1 -1
- package/chunks/{chunk-KMQ2ZH3Q.js → chunk-WVWCRZ6M.js} +2 -2
- package/chunks/{chunk-5NFAKADR.js → chunk-WZCVB2ER.js} +1 -36
- package/chunks/{chunk-JNQEW7B2.js → chunk-X3A72KX5.js} +6 -6
- package/chunks/{chunk-3JSIWFNA.js → chunk-XHHUGXYW.js} +527 -135
- package/chunks/{chunk-VIA4STCR.js → chunk-YCCBLTSL.js} +3 -3
- package/chunks/{chunk-Q5IEY2TN.js → chunk-Z3I5B4DH.js} +1 -1
- package/chunks/{chunk-O346IB64.js → chunk-ZAJNI63I.js} +1 -1
- package/chunks/{chunk-QR4U27UW.js → chunk-ZJFCDRVP.js} +4 -4
- package/chunks/{codex-subagent-executor-437LQYGM.js → codex-subagent-executor-IKWULWIZ.js} +35 -33
- package/chunks/{config-utils-CVLI36KM.js → config-utils-3IOTAFBG.js} +38 -34
- package/chunks/{contextCommand-2KSW7H5F.js → contextCommand-ZKG2JFCR.js} +33 -31
- package/chunks/{core-runtime-4IB27E7J.js → core-runtime-5CAK5DSM.js} +32 -30
- package/chunks/{create-sub-session-A73TQDAN.js → create-sub-session-DG4CVOQC.js} +33 -31
- package/chunks/{daemon-Y6AOK7LF.js → daemon-D4OAVQKB.js} +1 -1
- package/chunks/{daemon-git-worktree-guard-BTKVV3DZ.js → daemon-git-worktree-guard-S3SFT3H7.js} +32 -30
- package/chunks/{daemon-status-provider-ETDIOWMS.js → daemon-status-provider-GG64ZJR3.js} +40 -38
- package/chunks/{daemon-trust-policy-U5SPHJLP.js → daemon-trust-policy-XNWYLQ32.js} +38 -36
- package/chunks/{daemon-trust-policy-monitor-QKRCO5WI.js → daemon-trust-policy-monitor-DR5CRWMM.js} +38 -36
- package/chunks/{deferred-core-runtime-FRELZPIE.js → deferred-core-runtime-V4Q674KN.js} +32 -30
- package/chunks/{dist-54LGNLWW.js → dist-3M75XY4G.js} +1 -1
- package/chunks/{dist-YZBMQPNS.js → dist-6U5NQYA7.js} +5 -5
- package/chunks/{dist-FVMLRUVM.js → dist-AS2RPYOB.js} +1 -1
- package/chunks/{dist-HANHY2MK.js → dist-GFT4GU72.js} +2 -2
- package/chunks/{dist-Y5GP7SWL.js → dist-J7JK3GPY.js} +10 -9
- package/chunks/{dist-O723VE2K.js → dist-JTPRKF5H.js} +30 -27
- package/chunks/{dist-MGZKUISU.js → dist-MOO5VOC5.js} +7 -20
- package/chunks/{dist-IZ66D5A3.js → dist-NJ2L5QKL.js} +1 -1
- package/chunks/{dist-EI2XAB4W.js → dist-YC6LDCKH.js} +22 -28
- package/chunks/{edit-TQ3CABYP.js → edit-FPIWTN3L.js} +20 -18
- package/chunks/{enter-worktree-J46XVFRS.js → enter-worktree-55OWD4LT.js} +4 -3
- package/chunks/{enterPlanMode-JHOWELZO.js → enterPlanMode-GDZVXYB2.js} +18 -16
- package/chunks/{environment-LUM7XX27.js → environment-Q2BVTUQO.js} +36 -32
- package/chunks/{errors-SH32ID5I.js → errors-MZTLVUEM.js} +34 -32
- package/chunks/{execution-sandbox-settings-HIYVUBII.js → execution-sandbox-settings-3WJ67GX3.js} +3 -1
- package/chunks/{execution-tool-IIEL25CL.js → execution-tool-DZ4XSEFZ.js} +21 -19
- package/chunks/{execution-worker-NKKEZ4XF.js → execution-worker-L3TM3F5D.js} +24 -22
- package/chunks/{exit-worktree-BC4SDZCC.js → exit-worktree-MI6N4OUP.js} +4 -3
- package/chunks/{exitPlanMode-PUICCCQ5.js → exitPlanMode-VIGOD2KP.js} +18 -16
- package/chunks/{fast-path-QH3QTZZA.js → fast-path-JCKEFUUL.js} +4 -4
- package/chunks/{fast-path-settings-TQAYWLXR.js → fast-path-settings-VIYSH3SD.js} +2 -2
- package/chunks/{glob-OEB4WH3Z.js → glob-UOKQZHKL.js} +18 -16
- package/chunks/{goal-tools-KWGKFUSK.js → goal-tools-G4RIX4ER.js} +18 -16
- package/chunks/{handleAutoUpdate-KEA7JSUD.js → handleAutoUpdate-UZZEGL3N.js} +34 -32
- package/chunks/{i18n-AC3MUXKZ.js → i18n-IL33FVND.js} +32 -30
- package/chunks/{initializer-WBD32BEX.js → initializer-BCXBRM6Y.js} +38 -36
- package/chunks/{installationInfo-JRGFTKWY.js → installationInfo-V7OKUOJV.js} +32 -30
- package/chunks/{list-S7KW7NBX.js → list-LQHG6SXA.js} +41 -39
- package/chunks/{llm-E32WLISX.js → llm-JWCANCDC.js} +85 -74
- package/chunks/{llm-content-generator-OMKJHC5P.js → llm-content-generator-OXMMHUVK.js} +3 -3
- package/chunks/{loadedSettingsAdapter-5OSU3J46.js → loadedSettingsAdapter-EKXSRWMY.js} +38 -36
- package/chunks/{local-execution-environment-IQHCTUJ5.js → local-execution-environment-XIQLRMLF.js} +24 -22
- package/chunks/{loggingContentGenerator-JIYG3LJS.js → loggingContentGenerator-6KHNZDTZ.js} +20 -18
- package/chunks/{managed-npm-update-RKAT7AMQ.js → managed-npm-update-MBUH5TIX.js} +32 -30
- package/chunks/managed-runtime-attestation-worker-G23AEEMF.js +367 -0
- package/chunks/{mcp-SV72BZKG.js → mcp-AYVCEEN7.js} +38 -36
- package/chunks/{model-call-collection-PKDMVCZN.js → model-call-collection-OKUGOY4B.js} +1 -1
- package/chunks/{model-configuration-A52XMQW7.js → model-configuration-Q3MNGG3B.js} +38 -36
- package/chunks/{modelConfigUtils-7O4P3SLE.js → modelConfigUtils-WC5XDR34.js} +33 -31
- package/chunks/{monitor-ZXRV2DJB.js → monitor-7JUZXYZN.js} +18 -16
- package/chunks/{nonInteractiveCli-UPSGIYRC.js → nonInteractiveCli-B3GCZ6NJ.js} +74 -73
- package/chunks/{nonInteractiveToolExecutor-TDKVR43J.js → nonInteractiveToolExecutor-IUHO7PXG.js} +19 -17
- package/chunks/{notebook-edit-FBVHAHYM.js → notebook-edit-IYDACZDW.js} +19 -17
- package/chunks/{omni-3NREMV2Q.js → omni-DLBHISHC.js} +10 -7
- package/chunks/{openaiContentGenerator-EWPBZFIT.js → openaiContentGenerator-W5GN6H6Z.js} +12 -10
- package/chunks/{openaiResponsesContentGenerator-3CI3PINB.js → openaiResponsesContentGenerator-BXXRYJQQ.js} +5 -5
- package/chunks/{pidfile-BBUANGZX.js → pidfile-QIBF53CW.js} +32 -30
- package/chunks/{processUtils-6OHQLG7W.js → processUtils-2LU22KCR.js} +2 -2
- package/chunks/{prompt-terminal-ledger-ZBFYXJ4L.js → prompt-terminal-ledger-LXFVLR6C.js} +33 -31
- package/chunks/{qwenContentGenerator-62F5IKXJ.js → qwenContentGenerator-LYMLXBWI.js} +21 -19
- package/chunks/{reactive-degrade-URJMXJ7N.js → reactive-degrade-HPYBJHYA.js} +6 -6
- package/chunks/{read-file-IM4Q5TKI.js → read-file-SXS2MKDY.js} +6 -3
- package/chunks/{record-artifact-K4XSMW4X.js → record-artifact-XP3X7RE5.js} +3 -2
- package/chunks/{record-source-XZCI3IGU.js → record-source-2VBLKVIE.js} +2 -2
- package/chunks/{report-findings-MCGXBQFX.js → report-findings-D2QUYUOG.js} +4 -3
- package/chunks/{request-shutdown-TT62PREA.js → request-shutdown-R5SA5GE3.js} +1 -1
- package/chunks/{resumeHistoryUtils-O3NQMDVR.js → resumeHistoryUtils-UPGZGP5V.js} +35 -33
- package/chunks/{ripGrep-BG2FEVIV.js → ripGrep-X33VVIN5.js} +8 -5
- package/chunks/{run-qwen-serve-GMLWJITM.js → run-qwen-serve-CUB2NZ6P.js} +278 -79
- package/chunks/{runtime-SSGPOXRZ.js → runtime-2DAVBADX.js} +43 -41
- package/chunks/{sandboxConfig-ALYLLNWY.js → sandboxConfig-ESBH3F27.js} +34 -32
- package/chunks/{scheduled-tasks-QJTC5XQ7.js → scheduled-tasks-TGWYXZWW.js} +38 -36
- package/chunks/{scheduler-PEXTY7IG.js → scheduler-XGLZCXPN.js} +34 -32
- package/chunks/{send-message-3UM7XRTB.js → send-message-FBU6WDID.js} +1 -1
- package/chunks/{serve-OVAUTKXK.js → serve-7RX4AIID.js} +38 -36
- package/chunks/{server-3MMYOOJW.js → server-MJETIFJS.js} +1789 -375
- package/chunks/{session-PZBIKBQJ.js → session-7AVYU3TC.js} +75 -74
- package/chunks/{session-attachments-root-ESP5CNBV.js → session-attachments-root-RONFQ3D3.js} +32 -30
- package/chunks/{session-pr-refresh-B3N7PKUP.js → session-pr-refresh-ZPT6TAD4.js} +37 -35
- package/chunks/{settings-KSQ2DGPY.js → settings-FPMUAVWD.js} +37 -35
- package/chunks/{shell-3V26EVNC.js → shell-THD5EYOK.js} +18 -16
- package/chunks/{skill-XP7F3LBV.js → skill-2D6KXDC5.js} +52 -13
- package/chunks/{skill-settings-PDESL7S3.js → skill-settings-XW7X244B.js} +38 -36
- package/chunks/{spawnChannel-NVO7CCBW.js → spawnChannel-DBSAAUUT.js} +34 -32
- package/chunks/{standalone-update-FDWS2EGF.js → standalone-update-TFAWA676.js} +33 -31
- package/chunks/{start-opentui-ui-WIFFY5UD.js → start-opentui-ui-VYMAXPBH.js} +87 -86
- package/chunks/{startInteractiveUI-YBLIRIHD.js → startInteractiveUI-Z54XKH35.js} +1037 -966
- package/chunks/{task-create-PEI7AJLE.js → task-create-PVF66J3R.js} +2 -2
- package/chunks/{task-update-MQZRWBGK.js → task-update-RSIITTOK.js} +2 -2
- package/chunks/{team-create-Z5JUEMB7.js → team-create-TPCELNBJ.js} +18 -16
- package/chunks/{team-plan-approval-ZLLHMEQN.js → team-plan-approval-RUURGHQL.js} +18 -16
- package/chunks/{terminal-image-renderer-QFO2JTTT.js → terminal-image-renderer-SLJVUD4Z.js} +32 -30
- package/chunks/{theme-manager-N7ILUTRY.js → theme-manager-VBOIN2KT.js} +32 -30
- package/chunks/{tool-call-PLSQ34VE.js → tool-call-DUHP6UXC.js} +2 -2
- package/chunks/{tool-result-media-OAHUKGRK.js → tool-result-media-WU6QAREN.js} +10 -7
- package/chunks/{tool-search-534QKE2X.js → tool-search-ET4NH2LK.js} +7 -4
- package/chunks/{total-session-admission-EZJQKTPF.js → total-session-admission-UWMJWTWP.js} +35 -33
- package/chunks/{trustedFolders-4ZEV6RXD.js → trustedFolders-3WNZBUH7.js} +33 -31
- package/chunks/{update-relaunch-GB3SGRDP.js → update-relaunch-SHS3BD6V.js} +5 -5
- package/chunks/{updateCheck-DVAGAEQ4.js → updateCheck-MDF2FCRN.js} +32 -30
- package/chunks/{upload-config-DMZVTDH7.js → upload-config-LVVUIKA2.js} +4 -4
- package/chunks/{useAutoAcceptIndicator-PTQBS42B.js → useAutoAcceptIndicator-26OOM7OM.js} +41 -39
- package/chunks/{validateNonInterActiveAuth-DU3WXVSU.js → validateNonInterActiveAuth-TBCZCQIN.js} +72 -71
- package/chunks/{version-PNMZGKCV.js → version-MICV7I4Y.js} +1 -1
- package/chunks/{web-fetch-LMCOAHW6.js → web-fetch-3O2DFRE5.js} +13 -9
- package/chunks/{web-search-N7RR74LA.js → web-search-5FS3NB3D.js} +4 -4
- package/chunks/{web-shell-static-GI6FVIMI.js → web-shell-static-E3O6NW7Y.js} +4 -3
- package/chunks/{workflow-ZZPHI7FK.js → workflow-FRJO5ZUI.js} +19 -17
- package/chunks/{workspace-providers-status-TU73CNRF.js → workspace-providers-status-I5MO7Z2T.js} +43 -41
- package/chunks/{workspace-registration-store-743FRSOU.js → workspace-registration-store-CBHKV34L.js} +1 -1
- package/chunks/{workspace-registry-S7QTXFWM.js → workspace-registry-2UKNZO5M.js} +35 -33
- package/chunks/{workspace-runtime-coordinator-GWNDUIGO.js → workspace-runtime-coordinator-TKCI5WJW.js} +36 -34
- package/chunks/{workspace-service-CERZFJ3B.js → workspace-service-M3ZKR6WL.js} +40 -38
- package/chunks/{workspace-skills-status-5M3EIAUY.js → workspace-skills-status-OC3EYL7U.js} +41 -39
- package/chunks/{workspace-trust-reconciler-Q3LUKMQB.js → workspace-trust-reconciler-YQZSUOH4.js} +41 -39
- package/chunks/{write-file-CT54LXQL.js → write-file-BATJLBJX.js} +21 -19
- package/chunks/{zoom-image-EU3PGSZM.js → zoom-image-5I7DDLQE.js} +10 -6
- package/cli-entry.js +13 -0
- package/cli.js +24 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.css +1 -1
- package/export-transcript-document.js +104 -104
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-DDYEvG-M.js → abnfDiagram-VCTEODGH-DQHroFS1.js} +1 -1
- package/web-shell/assets/{arc-DQncKWFX.js → arc-BrOc_HVh.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-C0-8u9zj.js → architectureDiagram-5GKGNRK7-DXce8IH6.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-Cpt59Ge5.js → blockDiagram-NRAW4CY4-96A3Q3-l.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BvESWh83.js → c4Diagram-UCG6FXSJ-CQBg2PSg.js} +1 -1
- package/web-shell/assets/channel-CBP6pwSs.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-wKulGIU6.js → chunk-2Q5K7J3B-i_jhVz-t.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BX6kRoq7.js → chunk-5VM5RSS4-Cx3gMrWT.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-wA4IqTt-.js → chunk-F27PBJKO-B9WwW7C0.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-B7hzevlb.js → chunk-G27WJ6UU-B8t0FNPI.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BdBg9pJg.js → chunk-JWPE2WC7-Dg0__6CF.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-DghmF6LJ.js → chunk-LCL6LL3I-DUwE5g3m.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-BbReTOod.js → chunk-POPQ4Y6H-BirYW5iS.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-C1t0_19D.js → chunk-SVP7TREG-_ONJKtFF.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DQBby5mI.js → chunk-XXDRQBXY-DGi0chgj.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-_4_fFrN3.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-_4_fFrN3.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CNrSyg7B.js → cose-bilkent-JH36ORCC-BSSFxREn.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-DoxgDRN-.js → cynefin-OW5HDTMX-h-oYVCez.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BmUwbS8Q.js → cynefinDiagram-5FMLGOSQ-CXj6T7Pm.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BJrOVIjc.js → dagre-3AP2YEHR-Ch9GIhJm.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-TDX4KU9V.js → diagram-S7CK7UJ4-Cq3W541T.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-D3VUQkGl.js → diagram-UQ7AKVKN-Bm1R5-sN.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CqCpgViy.js → diagram-VSXAHHWV-BW2qG6Vh.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-CthqfwCs.js → diagram-VX7I27RA-DN96PhRe.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-BRY3Ahvu.js → diagram-Z3DM3KII-A8MnwaJr.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-tJvTnIwp.js → ebnfDiagram-PWID7BFC-CZTpUypI.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DT4b7w5B.js → erDiagram-SSCWMZ5O-CbxCRFru.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-C5oirWSf.js → flowDiagram-A5DVABFB-Bt1PM2Dy.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-ZD3kNlO4.js → ganttDiagram-EL5Y4UJY-CTgim3LX.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bp1sg_wH.js → gitGraphDiagram-WWUBYQGX-h4jX7S4l.js} +1 -1
- package/web-shell/assets/{index-DSIzVof7.js → index-BDxWHGNm.js} +1 -1
- package/web-shell/assets/index-Bd3iA5Er.js +2407 -0
- package/web-shell/assets/index-DuwfO01z.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-Btumz_CZ.js → infoDiagram-RXCK75RN-DsIsFmZ4.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-Dx8_uvso.js → ishikawaDiagram-5VMMS53U-BgF2V3rC.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DS5spUhj.js → journeyDiagram-EYS64GPL-CJ2ibWhB.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-DttC9d4D.js → kanban-definition-3QL26DDD-oqNfpjND.js} +1 -1
- package/web-shell/assets/{layout-BDOJQJbX.js → layout-DKF2f-UC.js} +1 -1
- package/web-shell/assets/{linear-BsUVMxld.js → linear-CadmYA8J.js} +1 -1
- package/web-shell/assets/{mermaid.core-De4-EW4Z.js → mermaid.core-BSD13L-h.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BsYY98Wv.js → mindmap-definition-FBJOCRG2-Cg3jlHzV.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DXnnQrVY.js → pegDiagram-XKGWAZYB-BGzqlBWk.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-DGLAGUYR.js → pieDiagram-E7YTZNPT-BVDdPYnC.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Y8DcMTa5.js → quadrantDiagram-AXDQQJYC-D7maRW6r.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-ZgauslUZ.js → railroadDiagram-O6MQD6OU-C7J0Nnqc.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-Kxtu4twe.js → requirementDiagram-EFPCY7ZU-CDEpUB7S.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BKsLF9EA.js → sankeyDiagram-P5KCCOFB-DoA0BWeR.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-D8sCv1NK.js → sequenceDiagram-WJ2MYXX4-DlqRjDLl.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BX8sokZX.js → sizeCapture-X5ZJPWSS-3l2EJ1DB.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DFMl58kv.js → stateDiagram-HBIQ2CUA-Bdq0N6Lr.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DtdYpKZp.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-BnMwURLN.js → swimlanes-XN3QIQJK-B4ArxdLV.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B_iL0Dc4.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-C8y77DDz.js → timeline-definition-24CTP7MA-B_Ug6D_k.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DOWQgX9u.js → vennDiagram-4TSXK5OY-BR9tvaDT.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BM0AVIzE.js → wardleyDiagram-VM6X3IG4-BdGIt6qE.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-B18-YghG.js → xychartDiagram-S5SC5T6Z-NxS8XkXN.js} +1 -1
- package/web-shell/index.html +2 -2
- package/web-shell/sw.js +1 -1
- package/bundled/computer-use/references/macos.md +0 -208
- package/bundled/computer-use/references/windows-linux.md +0 -247
- package/web-shell/assets/channel-B88Zt8_x.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Dp-7ruHm.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Dp-7ruHm.js +0 -1
- package/web-shell/assets/index-CpxLhWqx.js +0 -2337
- package/web-shell/assets/index-mr0Sw0G-.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B3HSbbo2.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-FnO0SUMi.js +0 -8
|
@@ -360,7 +360,7 @@ When requested to perform tasks like fixing bugs, adding features, refactoring,
|
|
|
360
360
|
`;
|
|
361
361
|
}
|
|
362
362
|
__name(getSoftwareEngineeringTasksSection, "getSoftwareEngineeringTasksSection");
|
|
363
|
-
function getToolGuidanceSection(
|
|
363
|
+
function getToolGuidanceSection(codeModeOnly, todoWriteEnabled, surface) {
|
|
364
364
|
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.
|
|
365
365
|
` : "";
|
|
366
366
|
const directControls = todoWriteEnabled ? `'${ToolNames.TODO_WRITE}', '${ToolNames.AGENT}' and the other direct controls` : `'${ToolNames.AGENT}' and the other direct controls`;
|
|
@@ -368,7 +368,7 @@ function getToolGuidanceSection(questions, codeModeOnly, todoWriteEnabled, surfa
|
|
|
368
368
|
return `
|
|
369
369
|
## Using Your Tools
|
|
370
370
|
- **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\`.
|
|
371
|
-
- **Prefer Dedicated Tools:** Do NOT use \`tools.${ToolNames.SHELL}\` to run commands when a relevant dedicated tool is provided.
|
|
371
|
+
- **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:
|
|
372
372
|
- To read files use \`tools.${ToolNames.READ_FILE}\` instead of cat, head, tail, or sed
|
|
373
373
|
- To edit files use \`tools.${ToolNames.EDIT}\` instead of sed or awk
|
|
374
374
|
- To create files use \`tools.${ToolNames.WRITE_FILE}\` instead of cat with heredoc or echo redirection
|
|
@@ -377,10 +377,9 @@ function getToolGuidanceSection(questions, codeModeOnly, todoWriteEnabled, surfa
|
|
|
377
377
|
- 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.
|
|
378
378
|
- **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.
|
|
379
379
|
- **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.
|
|
380
|
-
${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.
|
|
380
|
+
${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.
|
|
381
381
|
- **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.
|
|
382
382
|
- **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.
|
|
383
|
-
- **Questions:** ${questions}
|
|
384
383
|
- **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.
|
|
385
384
|
- **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.
|
|
386
385
|
- **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.
|
|
@@ -388,7 +387,7 @@ ${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when re
|
|
|
388
387
|
}
|
|
389
388
|
const directGuidance = `
|
|
390
389
|
## Using Your Tools
|
|
391
|
-
- **Prefer Dedicated Tools:** Do NOT use the '${ToolNames.SHELL}' to run commands when a relevant dedicated tool is provided.
|
|
390
|
+
- **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:
|
|
392
391
|
- To read files use '${ToolNames.READ_FILE}' instead of cat, head, tail, or sed
|
|
393
392
|
- To edit files use '${ToolNames.EDIT}' instead of sed or awk
|
|
394
393
|
- To create files use '${ToolNames.WRITE_FILE}' instead of cat with heredoc or echo redirection
|
|
@@ -396,12 +395,11 @@ ${taskManagementToolGuidance}- **File Paths:** Always use absolute paths when re
|
|
|
396
395
|
- To search the content of files, use '${ToolNames.GREP}' instead of grep or rg
|
|
397
396
|
- 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.
|
|
398
397
|
- **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.
|
|
399
|
-
${taskManagementToolGuidance}- **Parallel Tool Calls:**
|
|
400
|
-
- **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
|
+
${taskManagementToolGuidance}- **Parallel Tool Calls:** Call independent tools in parallel; run dependent calls sequentially, using earlier results to supply later arguments.
|
|
399
|
+
- **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.
|
|
401
400
|
- **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.
|
|
402
401
|
- **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.
|
|
403
402
|
- **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.
|
|
404
|
-
- **Questions:** ${questions}
|
|
405
403
|
- **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.
|
|
406
404
|
- **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.
|
|
407
405
|
- **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.
|
|
@@ -423,7 +421,6 @@ When you create a todo list:
|
|
|
423
421
|
` : "";
|
|
424
422
|
const coreIdentity = resolveCoreIdentityOverride() ?? getDefaultCoreIdentitySentence(interaction.role, Boolean(outputStyle));
|
|
425
423
|
const toolGuidance = getToolGuidanceSection(
|
|
426
|
-
interaction.questions,
|
|
427
424
|
codeModeOnly,
|
|
428
425
|
todoWriteEnabled,
|
|
429
426
|
surface
|
|
@@ -434,10 +431,8 @@ ${coreIdentity}
|
|
|
434
431
|
# Core Mandates
|
|
435
432
|
|
|
436
433
|
- **UserPromptSubmit Context:** Text inside a \`<qwen:user-prompt-submit-context>\` tag is model context added by a configured \`UserPromptSubmit\` hook, not user input.
|
|
437
|
-
- **Conventions:**
|
|
438
|
-
- **Libraries/Frameworks:**
|
|
439
|
-
- **Style & Structure:** Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
|
|
440
|
-
- **Idiomatic Changes:** When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
|
|
434
|
+
- **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.
|
|
435
|
+
- **Libraries/Frameworks:** Verify a dependency's availability and established usage in project manifests, imports, or neighboring code before using it.
|
|
441
436
|
- **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.
|
|
442
437
|
- **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.
|
|
443
438
|
- **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.
|
|
@@ -465,10 +460,7 @@ Before your first tool call, briefly state what you're about to do. While workin
|
|
|
465
460
|
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.
|
|
466
461
|
|
|
467
462
|
## Tone and Style (CLI Interaction)
|
|
468
|
-
- **
|
|
469
|
-
- **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.
|
|
470
|
-
- **Clarity over Brevity (When Needed):** While conciseness is key, prioritize clarity for essential explanations or when seeking necessary clarification if a request is ambiguous.
|
|
471
|
-
- **No Chitchat:** Avoid conversational filler and chitchat. Get straight to the action or answer.
|
|
463
|
+
- **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.
|
|
472
464
|
- **Formatting:** Use GitHub-flavored Markdown. Responses will be rendered in monospace.
|
|
473
465
|
- **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.
|
|
474
466
|
- **Handling Inability:** If unable/unwilling to fulfill a request, state so briefly (1-2 sentences) without excessive justification. Offer alternatives if appropriate.
|
|
@@ -552,7 +544,7 @@ ${(function() {
|
|
|
552
544
|
${codeModeOnly ? codeModeToolCallExamples : filterToolCallExamples(getToolCallExamples(model || ""), surface)}
|
|
553
545
|
|
|
554
546
|
# Final Reminder
|
|
555
|
-
|
|
547
|
+
Keep going until the user's query is completely resolved, or report the specific blocker that prevents completion.
|
|
556
548
|
|
|
557
549
|
Interaction mode reminder: ${interaction.questions}
|
|
558
550
|
`.trim();
|
|
@@ -726,16 +718,6 @@ You are a specialized context summarizer that creates a comprehensive markdown s
|
|
|
726
718
|
__name(getProjectSummaryPrompt, "getProjectSummaryPrompt");
|
|
727
719
|
var generalToolCallExamples = `
|
|
728
720
|
# Examples (Illustrating Tone and Workflow)
|
|
729
|
-
<example>
|
|
730
|
-
user: 1 + 2
|
|
731
|
-
model: 3
|
|
732
|
-
</example>
|
|
733
|
-
|
|
734
|
-
<example>
|
|
735
|
-
user: is 13 a prime number?
|
|
736
|
-
model: true
|
|
737
|
-
</example>
|
|
738
|
-
|
|
739
721
|
<example>
|
|
740
722
|
user: start the server implemented in server.js
|
|
741
723
|
model: [tool_call: ${ToolNames.SHELL} for 'node server.js' with is_background: true because it must run in the background]
|
|
@@ -743,77 +725,40 @@ model: [tool_call: ${ToolNames.SHELL} for 'node server.js' with is_background: t
|
|
|
743
725
|
|
|
744
726
|
<example>
|
|
745
727
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
746
|
-
model:
|
|
747
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
728
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
748
729
|
[tool_call: ${ToolNames.GLOB} for pattern 'tests/test_auth.py']
|
|
749
730
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/tests/test_auth.py' with offset 0 and limit 10]
|
|
750
|
-
(After analysis)
|
|
751
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
752
|
-
I'll also confirm 'requests' is a dependency.
|
|
753
731
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/requirements.txt']
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
Here's the plan:
|
|
758
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
759
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
760
|
-
3. Remove the old 'urllib' import.
|
|
761
|
-
4. Run the project's linter and tests to verify the changes.
|
|
732
|
+
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/src/auth.py']
|
|
733
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
762
734
|
|
|
763
735
|
[tool_call: ${ToolNames.EDIT} for file_path '/path/to/src/auth.py' replacing old_string with new_string]
|
|
764
|
-
|
|
736
|
+
Running the project's checks...
|
|
765
737
|
[tool_call: ${ToolNames.SHELL} for 'ruff check src/auth.py && pytest']
|
|
766
738
|
(After verification passes)
|
|
767
|
-
|
|
768
|
-
Would you like me to write a commit message and commit these changes?
|
|
769
|
-
</example>
|
|
770
|
-
|
|
771
|
-
<example>
|
|
772
|
-
user: Delete the temp directory.
|
|
773
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
739
|
+
Refactored the auth logic; the linter and tests passed.
|
|
774
740
|
</example>
|
|
775
741
|
|
|
776
742
|
<example>
|
|
777
743
|
user: Write tests for someFile.ts
|
|
778
744
|
model:
|
|
779
|
-
|
|
745
|
+
I'll read the source and existing tests to follow project conventions.
|
|
780
746
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/someFile.ts']
|
|
781
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
782
747
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/existingTest.test.ts']
|
|
783
748
|
(After reviewing existing tests and the file content)
|
|
784
749
|
I'll check whether the intended test file already exists.
|
|
785
750
|
[tool_call: ${ToolNames.READ_FILE} for file_path '/path/to/someFile.test.ts']
|
|
786
751
|
(After read_file reports that /path/to/someFile.test.ts does not exist)
|
|
787
752
|
[tool_call: ${ToolNames.WRITE_FILE} for file_path '/path/to/someFile.test.ts' with content '(test code content)']
|
|
788
|
-
|
|
753
|
+
(After confirming the project's test command)
|
|
789
754
|
[tool_call: ${ToolNames.SHELL} for 'npm run test']
|
|
790
755
|
(After verification passes)
|
|
791
|
-
|
|
756
|
+
Added the tests; the project's test command passed.
|
|
792
757
|
</example>
|
|
793
758
|
|
|
794
|
-
<example>
|
|
795
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
796
|
-
model:
|
|
797
|
-
[tool_call: ${ToolNames.GLOB} for pattern './**/app.config']
|
|
798
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
799
|
-
I found the following 'app.config' files:
|
|
800
|
-
- /path/to/moduleA/app.config
|
|
801
|
-
- /path/to/moduleB/app.config
|
|
802
|
-
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?
|
|
803
|
-
</example>
|
|
804
759
|
`.trim();
|
|
805
760
|
var codeModeToolCallExamples = `
|
|
806
761
|
# Examples (Illustrating Tone and Workflow)
|
|
807
|
-
<example>
|
|
808
|
-
user: 1 + 2
|
|
809
|
-
model: 3
|
|
810
|
-
</example>
|
|
811
|
-
|
|
812
|
-
<example>
|
|
813
|
-
user: is 13 a prime number?
|
|
814
|
-
model: true
|
|
815
|
-
</example>
|
|
816
|
-
|
|
817
762
|
<example>
|
|
818
763
|
user: start the server implemented in server.js
|
|
819
764
|
model: [tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.SHELL}({ command: 'node server.js', is_background: true });]
|
|
@@ -821,45 +766,35 @@ model: [tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.SHELL}
|
|
|
821
766
|
|
|
822
767
|
<example>
|
|
823
768
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
824
|
-
model:
|
|
825
|
-
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.
|
|
769
|
+
model: I'll inspect the source, tests, and dependencies. Independent reads go in one program.
|
|
826
770
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
827
|
-
const [tests, requirements] = await Promise.all([
|
|
771
|
+
const [tests, requirements, source] = await Promise.all([
|
|
828
772
|
tools.${ToolNames.GLOB}({ pattern: 'tests/test_auth.py' }),
|
|
829
773
|
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/requirements.txt' }),
|
|
774
|
+
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/src/auth.py' }),
|
|
830
775
|
]);
|
|
831
776
|
text(tests.output);
|
|
832
777
|
text(requirements.output);
|
|
778
|
+
text(source.output);
|
|
833
779
|
]
|
|
834
|
-
(After
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
Here's the plan:
|
|
838
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
839
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
840
|
-
3. Remove the old 'urllib' import.
|
|
841
|
-
4. Run the project's linter and tests to verify the changes.
|
|
780
|
+
(After finding /path/to/tests/test_auth.py)
|
|
781
|
+
[tool_call: ${ToolNames.EXEC} with source: text((await tools.${ToolNames.READ_FILE}({ file_path: '/path/to/tests/test_auth.py' })).output);]
|
|
782
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
842
783
|
|
|
843
784
|
[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)' });]
|
|
844
|
-
|
|
785
|
+
Running the project's checks...
|
|
845
786
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
846
787
|
const checks = await tools.${ToolNames.SHELL}({ command: 'ruff check src/auth.py && pytest' });
|
|
847
788
|
text(checks.output);
|
|
848
789
|
]
|
|
849
790
|
(After verification passes)
|
|
850
|
-
|
|
851
|
-
Would you like me to write a commit message and commit these changes?
|
|
852
|
-
</example>
|
|
853
|
-
|
|
854
|
-
<example>
|
|
855
|
-
user: Delete the temp directory.
|
|
856
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
791
|
+
Refactored the auth logic; the linter and tests passed.
|
|
857
792
|
</example>
|
|
858
793
|
|
|
859
794
|
<example>
|
|
860
795
|
user: Write tests for someFile.ts
|
|
861
796
|
model:
|
|
862
|
-
|
|
797
|
+
I'll read the source and an existing test together to follow project conventions.
|
|
863
798
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
864
799
|
const [source, existing] = await Promise.all([
|
|
865
800
|
tools.${ToolNames.READ_FILE}({ file_path: '/path/to/someFile.ts' }),
|
|
@@ -873,41 +808,18 @@ Now I'll check whether the intended test file already exists. A failed call abor
|
|
|
873
808
|
[tool_call: ${ToolNames.EXEC} with source: text((await tools.${ToolNames.READ_FILE}({ file_path: '/path/to/someFile.test.ts' })).output);]
|
|
874
809
|
(After ${ToolNames.READ_FILE} reports that /path/to/someFile.test.ts does not exist)
|
|
875
810
|
[tool_call: ${ToolNames.EXEC} with source: await tools.${ToolNames.WRITE_FILE}({ file_path: '/path/to/someFile.test.ts', content: '(test code content)' });]
|
|
876
|
-
|
|
811
|
+
(After confirming the project's test command)
|
|
877
812
|
[tool_call: ${ToolNames.EXEC} with source:
|
|
878
813
|
const result = await tools.${ToolNames.SHELL}({ command: 'npm run test' });
|
|
879
814
|
text(result.output);
|
|
880
815
|
]
|
|
881
816
|
(After verification passes)
|
|
882
|
-
|
|
817
|
+
Added the tests; the project's test command passed.
|
|
883
818
|
</example>
|
|
884
819
|
|
|
885
|
-
<example>
|
|
886
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
887
|
-
model:
|
|
888
|
-
[tool_call: ${ToolNames.EXEC} with source:
|
|
889
|
-
const found = await tools.${ToolNames.GLOB}({ pattern: './**/app.config' });
|
|
890
|
-
text(found.output);
|
|
891
|
-
]
|
|
892
|
-
(Assuming the glob call returns paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
893
|
-
I found the following 'app.config' files:
|
|
894
|
-
- /path/to/moduleA/app.config
|
|
895
|
-
- /path/to/moduleB/app.config
|
|
896
|
-
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?
|
|
897
|
-
</example>
|
|
898
820
|
`.trim();
|
|
899
821
|
var qwenCoderToolCallExamples = `
|
|
900
822
|
# Examples (Illustrating Tone and Workflow)
|
|
901
|
-
<example>
|
|
902
|
-
user: 1 + 2
|
|
903
|
-
model: 3
|
|
904
|
-
</example>
|
|
905
|
-
|
|
906
|
-
<example>
|
|
907
|
-
user: is 13 a prime number?
|
|
908
|
-
model: true
|
|
909
|
-
</example>
|
|
910
|
-
|
|
911
823
|
<example>
|
|
912
824
|
user: start the server implemented in server.js
|
|
913
825
|
model:
|
|
@@ -925,8 +837,7 @@ true
|
|
|
925
837
|
|
|
926
838
|
<example>
|
|
927
839
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
928
|
-
model:
|
|
929
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
840
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
930
841
|
<tool_call>
|
|
931
842
|
<function=${ToolNames.GLOB}>
|
|
932
843
|
<parameter=pattern>
|
|
@@ -947,9 +858,6 @@ tests/test_auth.py
|
|
|
947
858
|
</parameter>
|
|
948
859
|
</function>
|
|
949
860
|
</tool_call>
|
|
950
|
-
(After analysis)
|
|
951
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
952
|
-
I'll also confirm 'requests' is a dependency.
|
|
953
861
|
<tool_call>
|
|
954
862
|
<function=${ToolNames.READ_FILE}>
|
|
955
863
|
<parameter=file_path>
|
|
@@ -957,14 +865,14 @@ I'll also confirm 'requests' is a dependency.
|
|
|
957
865
|
</parameter>
|
|
958
866
|
</function>
|
|
959
867
|
</tool_call>
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
868
|
+
<tool_call>
|
|
869
|
+
<function=${ToolNames.READ_FILE}>
|
|
870
|
+
<parameter=file_path>
|
|
871
|
+
/path/to/src/auth.py
|
|
872
|
+
</parameter>
|
|
873
|
+
</function>
|
|
874
|
+
</tool_call>
|
|
875
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
968
876
|
|
|
969
877
|
<tool_call>
|
|
970
878
|
<function=${ToolNames.EDIT}>
|
|
@@ -979,7 +887,7 @@ Here's the plan:
|
|
|
979
887
|
</parameter>
|
|
980
888
|
</function>
|
|
981
889
|
</tool_call>
|
|
982
|
-
|
|
890
|
+
Running the project's checks...
|
|
983
891
|
<tool_call>
|
|
984
892
|
<function=${ToolNames.SHELL}>
|
|
985
893
|
<parameter=command>
|
|
@@ -988,19 +896,13 @@ ruff check src/auth.py && pytest
|
|
|
988
896
|
</function>
|
|
989
897
|
</tool_call>
|
|
990
898
|
(After verification passes)
|
|
991
|
-
|
|
992
|
-
Would you like me to write a commit message and commit these changes?
|
|
993
|
-
</example>
|
|
994
|
-
|
|
995
|
-
<example>
|
|
996
|
-
user: Delete the temp directory.
|
|
997
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
899
|
+
Refactored the auth logic; the linter and tests passed.
|
|
998
900
|
</example>
|
|
999
901
|
|
|
1000
902
|
<example>
|
|
1001
903
|
user: Write tests for someFile.ts
|
|
1002
904
|
model:
|
|
1003
|
-
|
|
905
|
+
I'll read the source and existing tests to follow project conventions.
|
|
1004
906
|
<tool_call>
|
|
1005
907
|
<function=${ToolNames.READ_FILE}>
|
|
1006
908
|
<parameter=file_path>
|
|
@@ -1008,7 +910,6 @@ Okay, I can write those tests. First, I'll read someFile.ts to understand its fu
|
|
|
1008
910
|
</parameter>
|
|
1009
911
|
</function>
|
|
1010
912
|
</tool_call>
|
|
1011
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1012
913
|
<tool_call>
|
|
1013
914
|
<function=${ToolNames.READ_FILE}>
|
|
1014
915
|
<parameter=file_path>
|
|
@@ -1036,7 +937,7 @@ I'll check whether the intended test file already exists.
|
|
|
1036
937
|
</parameter>
|
|
1037
938
|
</function>
|
|
1038
939
|
</tool_call>
|
|
1039
|
-
|
|
940
|
+
(After confirming the project's test command)
|
|
1040
941
|
<tool_call>
|
|
1041
942
|
<function=${ToolNames.SHELL}>
|
|
1042
943
|
<parameter=command>
|
|
@@ -1045,38 +946,12 @@ npm run test
|
|
|
1045
946
|
</function>
|
|
1046
947
|
</tool_call>
|
|
1047
948
|
(After verification passes)
|
|
1048
|
-
|
|
949
|
+
Added the tests; the project's test command passed.
|
|
1049
950
|
</example>
|
|
1050
951
|
|
|
1051
|
-
<example>
|
|
1052
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1053
|
-
model:
|
|
1054
|
-
<tool_call>
|
|
1055
|
-
<function=${ToolNames.GLOB}>
|
|
1056
|
-
<parameter=pattern>
|
|
1057
|
-
./**/app.config
|
|
1058
|
-
</parameter>
|
|
1059
|
-
</function>
|
|
1060
|
-
</tool_call>
|
|
1061
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1062
|
-
I found the following 'app.config' files:
|
|
1063
|
-
- /path/to/moduleA/app.config
|
|
1064
|
-
- /path/to/moduleB/app.config
|
|
1065
|
-
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?
|
|
1066
|
-
</example>
|
|
1067
952
|
`.trim();
|
|
1068
953
|
var qwenVlToolCallExamples = `
|
|
1069
954
|
# Examples (Illustrating Tone and Workflow)
|
|
1070
|
-
<example>
|
|
1071
|
-
user: 1 + 2
|
|
1072
|
-
model: 3
|
|
1073
|
-
</example>
|
|
1074
|
-
|
|
1075
|
-
<example>
|
|
1076
|
-
user: is 13 a prime number?
|
|
1077
|
-
model: true
|
|
1078
|
-
</example>
|
|
1079
|
-
|
|
1080
955
|
<example>
|
|
1081
956
|
user: start the server implemented in server.js
|
|
1082
957
|
model:
|
|
@@ -1087,54 +962,39 @@ model:
|
|
|
1087
962
|
|
|
1088
963
|
<example>
|
|
1089
964
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
1090
|
-
model:
|
|
1091
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
965
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
1092
966
|
<tool_call>
|
|
1093
967
|
{"name": "${ToolNames.GLOB}", "arguments": {"pattern": "tests/test_auth.py"}}
|
|
1094
968
|
</tool_call>
|
|
1095
969
|
<tool_call>
|
|
1096
970
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/tests/test_auth.py", "offset": 0, "limit": 10}}
|
|
1097
971
|
</tool_call>
|
|
1098
|
-
(After analysis)
|
|
1099
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
1100
|
-
I'll also confirm 'requests' is a dependency.
|
|
1101
972
|
<tool_call>
|
|
1102
973
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/requirements.txt"}}
|
|
1103
974
|
</tool_call>
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
1109
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
1110
|
-
3. Remove the old 'urllib' import.
|
|
1111
|
-
4. Run the project's linter and tests to verify the changes.
|
|
975
|
+
<tool_call>
|
|
976
|
+
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/src/auth.py"}}
|
|
977
|
+
</tool_call>
|
|
978
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
1112
979
|
|
|
1113
980
|
<tool_call>
|
|
1114
981
|
{"name": "${ToolNames.EDIT}", "arguments": {"file_path": "/path/to/src/auth.py", "old_string": "(old code content)", "new_string": "(new code content)"}}
|
|
1115
982
|
</tool_call>
|
|
1116
|
-
|
|
983
|
+
Running the project's checks...
|
|
1117
984
|
<tool_call>
|
|
1118
985
|
{"name": "${ToolNames.SHELL}", "arguments": {"command": "ruff check src/auth.py && pytest"}}
|
|
1119
986
|
</tool_call>
|
|
1120
987
|
(After verification passes)
|
|
1121
|
-
|
|
1122
|
-
Would you like me to write a commit message and commit these changes?
|
|
1123
|
-
</example>
|
|
1124
|
-
|
|
1125
|
-
<example>
|
|
1126
|
-
user: Delete the temp directory.
|
|
1127
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
988
|
+
Refactored the auth logic; the linter and tests passed.
|
|
1128
989
|
</example>
|
|
1129
990
|
|
|
1130
991
|
<example>
|
|
1131
992
|
user: Write tests for someFile.ts
|
|
1132
993
|
model:
|
|
1133
|
-
|
|
994
|
+
I'll read the source and existing tests to follow project conventions.
|
|
1134
995
|
<tool_call>
|
|
1135
996
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/someFile.ts"}}
|
|
1136
997
|
</tool_call>
|
|
1137
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1138
998
|
<tool_call>
|
|
1139
999
|
{"name": "${ToolNames.READ_FILE}", "arguments": {"file_path": "/path/to/existingTest.test.ts"}}
|
|
1140
1000
|
</tool_call>
|
|
@@ -1147,39 +1007,17 @@ I'll check whether the intended test file already exists.
|
|
|
1147
1007
|
<tool_call>
|
|
1148
1008
|
{"name": "${ToolNames.WRITE_FILE}", "arguments": {"file_path": "/path/to/someFile.test.ts", "content": "(test code content)"}}
|
|
1149
1009
|
</tool_call>
|
|
1150
|
-
|
|
1010
|
+
(After confirming the project's test command)
|
|
1151
1011
|
<tool_call>
|
|
1152
1012
|
{"name": "${ToolNames.SHELL}", "arguments": {"command": "npm run test"}}
|
|
1153
1013
|
</tool_call>
|
|
1154
1014
|
(After verification passes)
|
|
1155
|
-
|
|
1015
|
+
Added the tests; the project's test command passed.
|
|
1156
1016
|
</example>
|
|
1157
1017
|
|
|
1158
|
-
<example>
|
|
1159
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1160
|
-
model:
|
|
1161
|
-
<tool_call>
|
|
1162
|
-
{"name": "${ToolNames.GLOB}", "arguments": {"pattern": "./**/app.config"}}
|
|
1163
|
-
</tool_call>
|
|
1164
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1165
|
-
I found the following 'app.config' files:
|
|
1166
|
-
- /path/to/moduleA/app.config
|
|
1167
|
-
- /path/to/moduleB/app.config
|
|
1168
|
-
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?
|
|
1169
|
-
</example>
|
|
1170
1018
|
`.trim();
|
|
1171
1019
|
var gemma4ToolCallExamples = `
|
|
1172
1020
|
# Examples (Illustrating Tone and Workflow)
|
|
1173
|
-
<example>
|
|
1174
|
-
user: 1 + 2
|
|
1175
|
-
model: 3
|
|
1176
|
-
</example>
|
|
1177
|
-
|
|
1178
|
-
<example>
|
|
1179
|
-
user: is 13 a prime number?
|
|
1180
|
-
model: true
|
|
1181
|
-
</example>
|
|
1182
|
-
|
|
1183
1021
|
<example>
|
|
1184
1022
|
user: start the server implemented in server.js
|
|
1185
1023
|
model: <|tool_call>call:${ToolNames.SHELL}{command:<|"|>node server.js<|"|>,is_background:true}<tool_call|>
|
|
@@ -1187,64 +1025,37 @@ model: <|tool_call>call:${ToolNames.SHELL}{command:<|"|>node server.js<|"|>,is_b
|
|
|
1187
1025
|
|
|
1188
1026
|
<example>
|
|
1189
1027
|
user: Refactor the auth logic in src/auth.py to use the requests library instead of urllib.
|
|
1190
|
-
model:
|
|
1191
|
-
First, I'll analyze the code and check for a test safety net before planning any changes.
|
|
1028
|
+
model: I'll inspect the source, tests, and dependencies before refactoring.
|
|
1192
1029
|
<|tool_call>call:${ToolNames.GLOB}{pattern:<|"|>tests/test_auth.py<|"|>}<tool_call|>
|
|
1193
1030
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/tests/test_auth.py<|"|>,offset:0,limit:10}<tool_call|>
|
|
1194
|
-
(After analysis)
|
|
1195
|
-
Great, 'tests/test_auth.py' exists and covers the core authentication logic. With this safety net in place, I can safely plan the refactoring.
|
|
1196
|
-
I'll also confirm 'requests' is a dependency.
|
|
1197
1031
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/requirements.txt<|"|>}<tool_call|>
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
Here's the plan:
|
|
1202
|
-
1. Replace the 'urllib' calls with 'requests'.
|
|
1203
|
-
2. Add proper 'try...except' error handling for the new network calls.
|
|
1204
|
-
3. Remove the old 'urllib' import.
|
|
1205
|
-
4. Run the project's linter and tests to verify the changes.
|
|
1032
|
+
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/src/auth.py<|"|>}<tool_call|>
|
|
1033
|
+
(After inspecting the source, tests, dependencies, and project check commands)
|
|
1206
1034
|
|
|
1207
1035
|
<|tool_call>call:${ToolNames.EDIT}{file_path:<|"|>/path/to/src/auth.py<|"|>,old_string:<|"|>(old code content)<|"|>,new_string:<|"|>(new code content)<|"|>}<tool_call|>
|
|
1208
|
-
|
|
1036
|
+
Running the project's checks...
|
|
1209
1037
|
<|tool_call>call:${ToolNames.SHELL}{command:<|"|>ruff check src/auth.py && pytest<|"|>}<tool_call|>
|
|
1210
1038
|
(After verification passes)
|
|
1211
|
-
|
|
1212
|
-
Would you like me to write a commit message and commit these changes?
|
|
1213
|
-
</example>
|
|
1214
|
-
|
|
1215
|
-
<example>
|
|
1216
|
-
user: Delete the temp directory.
|
|
1217
|
-
model: I can run \`rm -rf /path/to/project/temp\`. This will permanently delete the directory and all its contents.
|
|
1039
|
+
Refactored the auth logic; the linter and tests passed.
|
|
1218
1040
|
</example>
|
|
1219
1041
|
|
|
1220
1042
|
<example>
|
|
1221
1043
|
user: Write tests for someFile.ts
|
|
1222
1044
|
model:
|
|
1223
|
-
|
|
1045
|
+
I'll read the source and existing tests to follow project conventions.
|
|
1224
1046
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/someFile.ts<|"|>}<tool_call|>
|
|
1225
|
-
Now I'll look for existing or related test files to understand current testing conventions and dependencies.
|
|
1226
1047
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/existingTest.test.ts<|"|>}<tool_call|>
|
|
1227
1048
|
(After reviewing existing tests and the file content)
|
|
1228
1049
|
I'll check whether the intended test file already exists.
|
|
1229
1050
|
<|tool_call>call:${ToolNames.READ_FILE}{file_path:<|"|>/path/to/someFile.test.ts<|"|>}<tool_call|>
|
|
1230
1051
|
(After read_file reports that /path/to/someFile.test.ts does not exist)
|
|
1231
1052
|
<|tool_call>call:${ToolNames.WRITE_FILE}{file_path:<|"|>/path/to/someFile.test.ts<|"|>,content:<|"|>(test code content)<|"|>}<tool_call|>
|
|
1232
|
-
|
|
1053
|
+
(After confirming the project's test command)
|
|
1233
1054
|
<|tool_call>call:${ToolNames.SHELL}{command:<|"|>npm run test<|"|>}<tool_call|>
|
|
1234
1055
|
(After verification passes)
|
|
1235
|
-
|
|
1056
|
+
Added the tests; the project's test command passed.
|
|
1236
1057
|
</example>
|
|
1237
1058
|
|
|
1238
|
-
<example>
|
|
1239
|
-
user: Where are all the 'app.config' files in this project? I need to check their settings.
|
|
1240
|
-
model:
|
|
1241
|
-
<|tool_call>call:${ToolNames.GLOB}{pattern:<|"|>./**/app.config<|"|>}<tool_call|>
|
|
1242
|
-
(Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config'])
|
|
1243
|
-
I found the following 'app.config' files:
|
|
1244
|
-
- /path/to/moduleA/app.config
|
|
1245
|
-
- /path/to/moduleB/app.config
|
|
1246
|
-
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?
|
|
1247
|
-
</example>
|
|
1248
1059
|
`.trim();
|
|
1249
1060
|
function getToolCallExamples(model) {
|
|
1250
1061
|
const toolCallStyle = process.env["QWEN_CODE_TOOL_CALL_STYLE"];
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
} from "./chunk-LDNRKF24.js";
|
|
12
12
|
import {
|
|
13
13
|
IdeClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SYZPPX3O.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthEvent,
|
|
17
17
|
IdeConnectionEvent,
|
|
18
18
|
logAuth,
|
|
19
19
|
logIdeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HDSI3RDN.js";
|
|
21
21
|
import {
|
|
22
22
|
getErrorMessage
|
|
23
23
|
} from "./chunk-S34QJ6IR.js";
|