@qwen-code/qwen-code 0.19.11 → 0.19.12-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/bundled/batch/SKILL.md +6 -0
  2. package/bundled/qc-helper/docs/configuration/model-providers.md +11 -0
  3. package/bundled/qc-helper/docs/configuration/settings.md +11 -10
  4. package/bundled/qc-helper/docs/features/channels/overview.md +66 -11
  5. package/bundled/qc-helper/docs/features/sub-agents.md +8 -8
  6. package/bundled/qc-helper/docs/features/worktree.md +2 -2
  7. package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +42 -7
  8. package/bundled/qc-helper/docs/qwen-serve.md +102 -40
  9. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
  10. package/bundled/review/SKILL.md +60 -49
  11. package/bundled/simplify/SKILL.md +1 -1
  12. package/chunks/{MaxSizedBox-L6TGYDM3.js → MaxSizedBox-3KIWAU6Z.js} +31 -32
  13. package/chunks/{StandaloneSessionPicker-AKEQHU5P.js → StandaloneSessionPicker-TF626NO7.js} +45 -46
  14. package/chunks/acp-startup-profiler-N3RHHXJ3.js +25 -0
  15. package/chunks/{acpAgent-PTNBGJDN.js → acpAgent-JDVJXVBO.js} +1863 -507
  16. package/chunks/{agent-AJOMOZPJ.js → agent-BONWC4VY.js} +26 -27
  17. package/chunks/{agent-headless-CYKOMAXS.js → agent-headless-H7HKMGLZ.js} +26 -27
  18. package/chunks/{anthropicContentGenerator-HBRXJSP4.js → anthropicContentGenerator-ZZRGFEES.js} +35 -12
  19. package/chunks/{artifact-tool-MIZLXBLF.js → artifact-tool-PHO5XEGZ.js} +5 -5
  20. package/chunks/{askUserQuestion-XMJVPNWM.js → askUserQuestion-CEPBT47X.js} +2 -47
  21. package/chunks/{bridge-QKISWPCI.js → bridge-ATN2TLWJ.js} +31 -32
  22. package/chunks/{ca-CODEN7TD.js → ca-2SL2BXTK.js} +3 -2
  23. package/chunks/{channel-worker-group-SOUWTFHC.js → channel-worker-group-S3H5QHTI.js} +4 -4
  24. package/chunks/{channel-worker-manager-LOVSV3WW.js → channel-worker-manager-ZJ4HTMO2.js} +4 -4
  25. package/chunks/{channel-worker-supervisor-XW6MHJBQ.js → channel-worker-supervisor-JA6VZ5V5.js} +3 -3
  26. package/chunks/{chunk-ZIXOTAPZ.js → chunk-2DZ7E27L.js} +92 -3
  27. package/chunks/{chunk-L5U3ELZX.js → chunk-335ECZTA.js} +1 -1
  28. package/chunks/{chunk-2FO5GFKZ.js → chunk-3DJY4IFO.js} +1 -1
  29. package/chunks/{chunk-4AGTGMCQ.js → chunk-3PE7OY2G.js} +12 -12
  30. package/chunks/{chunk-QOTQH4CB.js → chunk-4AGBO6RB.js} +27 -10
  31. package/chunks/{chunk-Y66VOBRP.js → chunk-4CA4WUMS.js} +2 -2
  32. package/chunks/{chunk-LQIDP6K5.js → chunk-4CHDYDG3.js} +1 -1
  33. package/chunks/{chunk-574PTLMU.js → chunk-4OVECYBM.js} +407 -92
  34. package/chunks/{chunk-TV6K2FB4.js → chunk-4RPARQ5D.js} +2 -2
  35. package/chunks/{chunk-TL4R5TRK.js → chunk-4W55BHOC.js} +2 -2
  36. package/chunks/{chunk-RCEEXIOO.js → chunk-4XCVGEEX.js} +3 -3
  37. package/chunks/{chunk-3DWIFU7L.js → chunk-53UMEONK.js} +1 -1
  38. package/chunks/{chunk-AU3MFJPL.js → chunk-54KPEDM2.js} +8 -8
  39. package/chunks/{chunk-T76DGHGG.js → chunk-66F4IJ4L.js} +5 -5
  40. package/chunks/{chunk-YLSSEUAM.js → chunk-675SVDMD.js} +354 -278
  41. package/chunks/{chunk-NVTQZXR7.js → chunk-6QGZVKOO.js} +91 -52
  42. package/chunks/{chunk-NJOFRXTM.js → chunk-6TDA4EVC.js} +4200 -3450
  43. package/chunks/{chunk-BYH2JRK3.js → chunk-6WZZHJSZ.js} +5 -5
  44. package/chunks/{chunk-7X7TEQNX.js → chunk-76BFY7AF.js} +13 -0
  45. package/chunks/chunk-7KS72E2N.js +883 -0
  46. package/chunks/{chunk-CF5VJRGC.js → chunk-7LMAKIWE.js} +1 -1
  47. package/chunks/{chunk-WMNXXRGL.js → chunk-7O7WZH7N.js} +31 -31
  48. package/chunks/{chunk-7ZYHLN67.js → chunk-7OZGMFHC.js} +26 -75
  49. package/chunks/{chunk-6WPJRYLZ.js → chunk-7SX6WZNO.js} +3 -3
  50. package/chunks/{chunk-JGUT3LWZ.js → chunk-ANRANWVE.js} +4 -1
  51. package/chunks/{chunk-JD44PNGJ.js → chunk-AWOU24F6.js} +10 -5
  52. package/chunks/{chunk-6WGZDD67.js → chunk-BEFQGC6H.js} +2 -2
  53. package/chunks/{chunk-KXYJPRT5.js → chunk-BEZPRKD3.js} +28 -6
  54. package/chunks/{chunk-FYQ22K62.js → chunk-CHVH4DVN.js} +6 -5
  55. package/chunks/{chunk-LS56TX3M.js → chunk-CMHJEUVB.js} +1 -1
  56. package/chunks/{chunk-FXKOAEXP.js → chunk-CXWUXRD5.js} +14 -14
  57. package/chunks/{chunk-CAHY5ABC.js → chunk-DULSE2SH.js} +1 -1
  58. package/chunks/{chunk-SQ5BK3GO.js → chunk-DYUPBU7H.js} +1 -1
  59. package/chunks/{chunk-FNX3LGAK.js → chunk-E655RDRL.js} +1 -1
  60. package/chunks/{chunk-N5VIZTND.js → chunk-EWPLL4OT.js} +1 -1
  61. package/chunks/{chunk-FSA7ERJ2.js → chunk-F2RR4HO2.js} +1 -1
  62. package/chunks/{chunk-S63Z5V42.js → chunk-F2YCCUXI.js} +4 -4
  63. package/chunks/{chunk-3AYLDB6B.js → chunk-FEZXQXW2.js} +1 -1
  64. package/chunks/{chunk-OWT2CAEQ.js → chunk-GEHSF7MS.js} +105 -12
  65. package/chunks/{chunk-LXLTBIDP.js → chunk-HCCR43AY.js} +1 -1
  66. package/chunks/{chunk-7NMU22Q3.js → chunk-HQ7MDVBO.js} +18 -7
  67. package/chunks/{chunk-KSZKSE23.js → chunk-HVWPSGDY.js} +1 -1
  68. package/chunks/{chunk-YFVO2HOR.js → chunk-HZXU6YZW.js} +5 -5
  69. package/chunks/{chunk-HASK4LMI.js → chunk-IKLWU6YS.js} +13 -6
  70. package/chunks/{chunk-GNBBAQ6J.js → chunk-ILQ42UG6.js} +111 -40
  71. package/chunks/{chunk-THXDQSTA.js → chunk-IQRQVPGN.js} +49 -154
  72. package/chunks/{chunk-SPJQO2CE.js → chunk-J2MKYJKZ.js} +2 -2
  73. package/chunks/{chunk-SUARMD4Q.js → chunk-J6NT5YTN.js} +28 -2
  74. package/chunks/{chunk-TYLOFD2U.js → chunk-JCJPZMJV.js} +1 -1
  75. package/chunks/{chunk-BYB3GF2T.js → chunk-JCYMQU5F.js} +133 -6
  76. package/chunks/{chunk-6EDDYPI3.js → chunk-JUNVFQVY.js} +4 -4
  77. package/chunks/{chunk-CH2XVB47.js → chunk-K7P34F2J.js} +3 -3
  78. package/chunks/{chunk-5VWYKIMW.js → chunk-KANTXY7B.js} +2 -2
  79. package/chunks/{chunk-K7VD4XLT.js → chunk-LHEQDKAR.js} +1 -1
  80. package/chunks/{chunk-A2HWMJVO.js → chunk-LKR7QQ63.js} +3 -3
  81. package/chunks/{chunk-4HUDDSO5.js → chunk-LLIGYAQU.js} +4 -4
  82. package/chunks/{chunk-5Z452MMD.js → chunk-LODZMRXC.js} +154 -83
  83. package/chunks/{chunk-FBU7WRZI.js → chunk-LPHGXXZX.js} +6 -1
  84. package/chunks/{chunk-CPFIQVZJ.js → chunk-LYFDJTXE.js} +1 -1
  85. package/chunks/{chunk-TIOE2OPE.js → chunk-MCYZTKBV.js} +2 -2
  86. package/chunks/{chunk-ZQIYGQCG.js → chunk-MHEZV3OY.js} +506 -143
  87. package/chunks/{chunk-JWICTOXS.js → chunk-NGTQA57Y.js} +2 -2
  88. package/chunks/{chunk-5CNYZ7TN.js → chunk-NJQPQ4IO.js} +7 -7
  89. package/chunks/chunk-NSZJQACR.js +45 -0
  90. package/chunks/{chunk-DOPUYNXO.js → chunk-NUHSLBJZ.js} +7 -7
  91. package/chunks/{chunk-CITWNIXJ.js → chunk-NVUGS23Y.js} +5 -5
  92. package/chunks/{chunk-2Z5UX4KI.js → chunk-OSSDHJDU.js} +1 -1
  93. package/chunks/{chunk-YUZI3WAC.js → chunk-OWAK7LMW.js} +7 -0
  94. package/chunks/{chunk-Y3KFTWVX.js → chunk-OZWJAFFE.js} +6 -6
  95. package/chunks/{chunk-YGYSMY2R.js → chunk-PSISZNIT.js} +1629 -1142
  96. package/chunks/{chunk-4ROQY23C.js → chunk-PTXVHS2O.js} +7 -7
  97. package/chunks/{chunk-OKAIGAYW.js → chunk-QGONRHUS.js} +3 -3
  98. package/chunks/{chunk-PZL23GTM.js → chunk-QR6U5QPP.js} +8 -0
  99. package/chunks/chunk-QSG4ZFG4.js +257 -0
  100. package/chunks/{chunk-BXBDC476.js → chunk-R32BTEZY.js} +5 -5
  101. package/chunks/{chunk-AVEOWVOM.js → chunk-R3VWUU2E.js} +1 -1
  102. package/chunks/{chunk-RP5R7MB6.js → chunk-R4RIMOJL.js} +12 -12
  103. package/chunks/{chunk-ARKANCNX.js → chunk-SGPFJMRP.js} +1 -1
  104. package/chunks/{chunk-3M75MSVA.js → chunk-SMASS3CY.js} +1 -1
  105. package/chunks/{chunk-4IJMTYCB.js → chunk-SNONG66P.js} +818 -29
  106. package/chunks/chunk-TDKQP3M6.js +201 -0
  107. package/chunks/{chunk-VFX7EZIR.js → chunk-TFV3XVAZ.js} +8 -1
  108. package/chunks/{chunk-4LD5APFL.js → chunk-TYQMGACW.js} +1 -0
  109. package/chunks/{chunk-7NFB7LBQ.js → chunk-UE5TZ55T.js} +8 -0
  110. package/chunks/{chunk-F333XEAU.js → chunk-UOA2IHRI.js} +4 -3
  111. package/chunks/{chunk-VRR65QYW.js → chunk-V4PCIS25.js} +5 -1
  112. package/chunks/{chunk-WIEO4CWB.js → chunk-VAJS2E2D.js} +1 -1
  113. package/chunks/{chunk-GLNHPRZT.js → chunk-W4DFAUAO.js} +1 -1
  114. package/chunks/{chunk-STZQCNN3.js → chunk-W7H223ZZ.js} +1 -1
  115. package/chunks/{chunk-6Y6ORE2G.js → chunk-WACI4VES.js} +288 -20
  116. package/chunks/{chunk-WTNZ6DXB.js → chunk-WEPXQKGP.js} +1 -1
  117. package/chunks/{chunk-4BJVSIS3.js → chunk-WHQNBBWW.js} +2 -2
  118. package/chunks/{chunk-QDJ2R4CM.js → chunk-WTHRMVKB.js} +3 -3
  119. package/chunks/{chunk-L4Y55KIS.js → chunk-X6YQWCIJ.js} +1 -1
  120. package/chunks/{chunk-Q6TUALBE.js → chunk-XAAEDML2.js} +1 -1
  121. package/chunks/{chunk-BUAXJVNP.js → chunk-XACBIZJB.js} +3 -3
  122. package/chunks/{chunk-2OG646IN.js → chunk-XFJU7SVP.js} +4 -4
  123. package/chunks/{chunk-KKRTYONM.js → chunk-XSPFQQRE.js} +3 -3
  124. package/chunks/{chunk-V2DXTLUE.js → chunk-Y5UDBQYF.js} +3 -3
  125. package/chunks/{chunk-MQOVXZAF.js → chunk-YN2I5I42.js} +529 -61
  126. package/chunks/{chunk-FMNYGWOD.js → chunk-Z4ZCVYJ5.js} +14 -8
  127. package/chunks/{chunk-SY7NEYX4.js → chunk-ZFHHBRRA.js} +2 -2
  128. package/chunks/{chunk-QYG4BY6Q.js → chunk-ZPVGEMVC.js} +1 -1
  129. package/chunks/{computer-use-VZZMJEQ7.js → computer-use-UY4A72X7.js} +26 -27
  130. package/chunks/{config-utils-IQQT3GCI.js → config-utils-KWTRFP7D.js} +3 -3
  131. package/chunks/{contextCommand-PORKIZSY.js → contextCommand-3DZ2SVH6.js} +30 -31
  132. package/chunks/{create-sub-session-EAB2U5XW.js → create-sub-session-DIJOV6HV.js} +2 -2
  133. package/chunks/{create-sub-session-XVFKHAFW.js → create-sub-session-OT7WXLDO.js} +27 -28
  134. package/chunks/{cron-create-GMVKSXZT.js → cron-create-X462ERYA.js} +4 -4
  135. package/chunks/{cron-delete-VDZKUAVK.js → cron-delete-SL5UJUM3.js} +4 -4
  136. package/chunks/{cron-list-UG7C7RAR.js → cron-list-3MD6SVXI.js} +4 -4
  137. package/chunks/{daemon-IHR6WSPB.js → daemon-ZW6LHOXT.js} +91 -14
  138. package/chunks/{daemon-status-provider-ABLBA3UJ.js → daemon-status-provider-GTZOYSBO.js} +35 -36
  139. package/chunks/{de-NOXPCSYN.js → de-I7ZIYXZC.js} +3 -2
  140. package/chunks/{dist-PX2ERZ6I.js → dist-HCUUS6IH.js} +2 -2
  141. package/chunks/{dist-VYWUKURL.js → dist-O2IP3G5D.js} +1 -1
  142. package/chunks/{dist-GXJVCOS7.js → dist-RZBJT5O2.js} +2 -1
  143. package/chunks/{dist-V2YVLYOW.js → dist-Y54RURGT.js} +3 -1
  144. package/chunks/{dist-DOPL5LSQ.js → dist-YTPTCUAD.js} +1 -1
  145. package/chunks/{dist-4WCQEZIN.js → dist-ZJHKKWUD.js} +1 -1
  146. package/chunks/{earlyInputCapture-DJCU5SPU.js → earlyInputCapture-GGWVGBZ7.js} +27 -28
  147. package/chunks/{edit-O4VV5AO6.js → edit-JN467GIR.js} +27 -28
  148. package/chunks/{en-JFVULHTB.js → en-XE34GKAA.js} +7 -3
  149. package/chunks/{enter-worktree-XQYDDI2I.js → enter-worktree-MMO4VBQE.js} +26 -27
  150. package/chunks/{enterPlanMode-CESVMQBV.js → enterPlanMode-BRZOG4DB.js} +27 -30
  151. package/chunks/{environment-5KXOLZNR.js → environment-LOCDCWMZ.js} +29 -30
  152. package/chunks/{errors-EBUTCBAQ.js → errors-XXSL5HGG.js} +29 -30
  153. package/chunks/{exit-worktree-MWGNSPNX.js → exit-worktree-UD7PI5H5.js} +26 -27
  154. package/chunks/exitPlanMode-EIUETQI6.js +389 -0
  155. package/chunks/{fast-path-6V73F2T2.js → fast-path-ULGAEUVK.js} +2 -2
  156. package/chunks/{fr-HVFNU42H.js → fr-X7KDVZIY.js} +3 -2
  157. package/chunks/{gemini-TEFJZCIZ.js → gemini-KW3APZ4P.js} +133 -80
  158. package/chunks/{geminiContentGenerator-M56BEXWI.js → geminiContentGenerator-4BQ5QHPR.js} +5 -5
  159. package/chunks/{glob-DMYFEEAZ.js → glob-FPKAMR6B.js} +32 -28
  160. package/chunks/{grep-GYE47MD4.js → grep-MOGRCYB4.js} +32 -28
  161. package/chunks/{handleAutoUpdate-OLUY4L7L.js → handleAutoUpdate-QUMRZZOS.js} +33 -34
  162. package/chunks/{i18n-462JC7IY.js → i18n-F3W6YUYP.js} +28 -29
  163. package/chunks/{initializer-Y7WD4D2I.js → initializer-KLU2KAIZ.js} +33 -34
  164. package/chunks/{installationInfo-I2Z3BKCE.js → installationInfo-P3ZP2SIZ.js} +27 -28
  165. package/chunks/{ja-PY5AF544.js → ja-2ICT3KXF.js} +3 -2
  166. package/chunks/{keychain-token-storage-AU22CQI6.js → keychain-token-storage-K23CFKGN.js} +2 -2
  167. package/chunks/{list-XQ5MSAXP.js → list-4X6D5JD2.js} +35 -36
  168. package/chunks/{loadedSettingsAdapter-TQOWYE7C.js → loadedSettingsAdapter-446B6WKA.js} +32 -33
  169. package/chunks/{loop-wakeup-QXWZSCYM.js → loop-wakeup-6H7OENTB.js} +5 -5
  170. package/chunks/{ls-2OUTG3IZ.js → ls-APTSOOS5.js} +4 -4
  171. package/chunks/{lsp-4VMNXZW6.js → lsp-HPACPJAN.js} +2 -2
  172. package/chunks/{mcp-22LLEEVM.js → mcp-JYVOJZOD.js} +32 -33
  173. package/chunks/{monitor-VKG324X3.js → monitor-KY7YH7TL.js} +26 -27
  174. package/chunks/nonInteractiveCli-EK35TLVJ.js +129 -0
  175. package/chunks/{notebook-edit-FJJRBQ3S.js → notebook-edit-IHGW42QK.js} +27 -28
  176. package/chunks/{openaiContentGenerator-4T2OGTR5.js → openaiContentGenerator-FURUCKQJ.js} +13 -14
  177. package/chunks/{pidfile-XL3MDCBM.js → pidfile-WKUVXDMR.js} +27 -28
  178. package/chunks/{processUtils-7UCFN34D.js → processUtils-LHSRN76X.js} +2 -2
  179. package/chunks/{pt-A3PRQXMU.js → pt-JJ4XPIBP.js} +3 -2
  180. package/chunks/{qwenContentGenerator-PQUXJDIZ.js → qwenContentGenerator-NRLM7R36.js} +30 -31
  181. package/chunks/{qwenOAuth2-LEYOU7RU.js → qwenOAuth2-5FNX3AWH.js} +22 -5
  182. package/chunks/{read-file-3EYQML7E.js → read-file-VLEAEXFP.js} +9 -10
  183. package/chunks/{read-mcp-resource-JUFHCKSC.js → read-mcp-resource-C6NT52T6.js} +2 -2
  184. package/chunks/{record-artifact-DWSMBXYY.js → record-artifact-ENCU7QCL.js} +2 -2
  185. package/chunks/{ripGrep-S6WPGQNA.js → ripGrep-MT23EIDD.js} +26 -27
  186. package/chunks/{ru-IBCWUTOC.js → ru-STR4KTW7.js} +3 -2
  187. package/chunks/{run-qwen-serve-NSKBT3HU.js → run-qwen-serve-5HWOQFLI.js} +63 -47
  188. package/chunks/{runtime-LG5ZZ3VH.js → runtime-6IVKJSLW.js} +38 -37
  189. package/chunks/{scheduler-PLX3VVTB.js → scheduler-63GJG75U.js} +26 -27
  190. package/chunks/{send-message-JZ752NWD.js → send-message-5GZ4FX2V.js} +3 -3
  191. package/chunks/{serve-S2ZLRZZR.js → serve-3LL7RRDP.js} +32 -33
  192. package/chunks/{server-5ECMV4TM.js → server-AA24QLPA.js} +1672 -615
  193. package/chunks/{session-ILSONWG4.js → session-LRVCFQQQ.js} +102 -75
  194. package/chunks/{settings-BOE7WWSA.js → settings-ZX3OKUT4.js} +36 -37
  195. package/chunks/{shell-VW664JIZ.js → shell-KR3IMYH6.js} +26 -27
  196. package/chunks/{skill-COHV6625.js → skill-QLM2LSF7.js} +11 -12
  197. package/chunks/{spawnChannel-5UUR5XOZ.js → spawnChannel-6WFOK3SA.js} +28 -29
  198. package/chunks/{src-XPKFZ3RN.js → src-ADLNIPHD.js} +101 -72
  199. package/chunks/{standalone-update-IOOJ2NZQ.js → standalone-update-C54OTJWJ.js} +29 -30
  200. package/chunks/{startInteractiveUI-3NGJGXXS.js → startInteractiveUI-KFAOS6HC.js} +2342 -1796
  201. package/chunks/{stdioHelpers-UMY72QRP.js → stdioHelpers-HGIYTWAY.js} +3 -1
  202. package/chunks/{syntheticOutput-LELY6HAI.js → syntheticOutput-ULOVVLY4.js} +3 -3
  203. package/chunks/{task-create-QY3BIMNM.js → task-create-DUE2PMNI.js} +7 -7
  204. package/chunks/{task-list-D2U47WBJ.js → task-list-WVPNX7BZ.js} +5 -5
  205. package/chunks/{task-stop-N6E5IYLH.js → task-stop-CPEQWOT6.js} +2 -2
  206. package/chunks/{task-update-HJCQILLB.js → task-update-HY2LNFFB.js} +7 -7
  207. package/chunks/{team-create-UPLVZQFX.js → team-create-Q5B5M7UD.js} +26 -27
  208. package/chunks/{team-delete-RCWYDRF4.js → team-delete-JJV6IUOA.js} +5 -5
  209. package/chunks/{team-plan-approval-F5F432RO.js → team-plan-approval-J55PXNY2.js} +26 -27
  210. package/chunks/{theme-manager-JJE4BJ67.js → theme-manager-QWTDRPHV.js} +27 -28
  211. package/chunks/todoWrite-JHHIDOIV.js +358 -0
  212. package/chunks/{tool-search-LRXI4JLZ.js → tool-search-LSSKWZKH.js} +10 -11
  213. package/chunks/{total-session-admission-I4DHN6UP.js → total-session-admission-S6ATY5HY.js} +32 -33
  214. package/chunks/{trustedFolders-SEH7LNX2.js → trustedFolders-CY4TUPDJ.js} +28 -29
  215. package/chunks/turndown.cjs-FZHGMUTY.js +17670 -0
  216. package/chunks/{update-relaunch-T6ZKBUA6.js → update-relaunch-IOKOUV3K.js} +6 -6
  217. package/chunks/{updateCheck-FWLXZPRO.js → updateCheck-YNRFE4V7.js} +30 -31
  218. package/chunks/{validateNonInterActiveAuth-X6K2VWYT.js → validateNonInterActiveAuth-OXTECS4B.js} +68 -68
  219. package/chunks/{version-LIFSOGSE.js → version-2CZQQDL5.js} +1 -1
  220. package/chunks/web-fetch-7QTEGJI5.js +938 -0
  221. package/chunks/{workflow-NX2DFWGD.js → workflow-G3CZU256.js} +29 -30
  222. package/chunks/{workspace-providers-status-VYD6M2NE.js → workspace-providers-status-UHQOIPAZ.js} +35 -36
  223. package/chunks/{workspace-registration-store-2Y6PWOEL.js → workspace-registration-store-5WPCMX4F.js} +1 -1
  224. package/chunks/{workspace-registry-PKBDBWCA.js → workspace-registry-LAQCRQTH.js} +32 -33
  225. package/chunks/{workspace-service-HHORUHTS.js → workspace-service-6ZEUJY2Z.js} +38 -39
  226. package/chunks/{workspace-skills-status-O5Q26LIY.js → workspace-skills-status-YG6OITSM.js} +33 -34
  227. package/chunks/{write-file-NVAEZ3J2.js → write-file-E7T3PU3B.js} +60 -28
  228. package/chunks/{zh-PAUNIMHQ.js → zh-6ANG2HTL.js} +7 -3
  229. package/chunks/{zh-TW-GNEUIUFF.js → zh-TW-4RR3YHNN.js} +7 -3
  230. package/cli-entry.js +37 -2
  231. package/cli.js +17 -11
  232. package/locales/ca.js +3 -2
  233. package/locales/de.js +3 -2
  234. package/locales/en.js +10 -5
  235. package/locales/fr.js +3 -2
  236. package/locales/ja.js +3 -2
  237. package/locales/pt.js +3 -2
  238. package/locales/ru.js +3 -2
  239. package/locales/zh-TW.js +9 -3
  240. package/locales/zh.js +9 -3
  241. package/package.json +3 -3
  242. package/web-shell/assets/{arc-H74fE8UR.js → arc-_dVIKMdB.js} +1 -1
  243. package/web-shell/assets/{architectureDiagram-3BPJPVTR-DN3kEq-I.js → architectureDiagram-3BPJPVTR-MuN3nKpL.js} +1 -1
  244. package/web-shell/assets/{blockDiagram-GPEHLZMM-BrqbsFUF.js → blockDiagram-GPEHLZMM-BtmvJjzx.js} +1 -1
  245. package/web-shell/assets/{c4Diagram-AAUBKEIU-ClFhU1P-.js → c4Diagram-AAUBKEIU-Dvi58_BU.js} +1 -1
  246. package/web-shell/assets/channel-Bi5TehaT.js +1 -0
  247. package/web-shell/assets/{chunk-2J33WTMH-jCIcG0_M.js → chunk-2J33WTMH-YqxOVhS1.js} +1 -1
  248. package/web-shell/assets/{chunk-4BX2VUAB-DSkGe62-.js → chunk-4BX2VUAB-DoBgbC9z.js} +1 -1
  249. package/web-shell/assets/{chunk-55IACEB6-BxBHOGTd.js → chunk-55IACEB6-3NEQrBAr.js} +1 -1
  250. package/web-shell/assets/{chunk-727SXJPM-v_DS7dH7.js → chunk-727SXJPM-DrCZQxp0.js} +1 -1
  251. package/web-shell/assets/{chunk-AQP2D5EJ-1RzEKRPq.js → chunk-AQP2D5EJ-m_g3zjgv.js} +1 -1
  252. package/web-shell/assets/{chunk-FMBD7UC4-DyrSbLOX.js → chunk-FMBD7UC4-D1_crABJ.js} +1 -1
  253. package/web-shell/assets/{chunk-ND2GUHAM-BCmdsZiy.js → chunk-ND2GUHAM-BdhgVtBx.js} +1 -1
  254. package/web-shell/assets/{chunk-QZHKN3VN-CphHGW2D.js → chunk-QZHKN3VN-BlmThhm-.js} +1 -1
  255. package/web-shell/assets/classDiagram-4FO5ZUOK-BKhhRdd1.js +1 -0
  256. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BKhhRdd1.js +1 -0
  257. package/web-shell/assets/{cose-bilkent-S5V4N54A-D5kRC7Fi.js → cose-bilkent-S5V4N54A-Cbjm_00Z.js} +1 -1
  258. package/web-shell/assets/{dagre-BM42HDAG-DIiyJJ0U.js → dagre-BM42HDAG-C39QNVgC.js} +1 -1
  259. package/web-shell/assets/{diagram-2AECGRRQ-BOcuB8xU.js → diagram-2AECGRRQ-DNXSAixC.js} +1 -1
  260. package/web-shell/assets/{diagram-5GNKFQAL-CMgiZ4d3.js → diagram-5GNKFQAL-BCbGUPEA.js} +1 -1
  261. package/web-shell/assets/{diagram-KO2AKTUF-Ctx8pfN0.js → diagram-KO2AKTUF-1eujKSDC.js} +1 -1
  262. package/web-shell/assets/{diagram-LMA3HP47-BT5REAWC.js → diagram-LMA3HP47-DUMKXgql.js} +1 -1
  263. package/web-shell/assets/{diagram-OG6HWLK6-CJkUqXcp.js → diagram-OG6HWLK6-BFktU3_u.js} +1 -1
  264. package/web-shell/assets/{erDiagram-TEJ5UH35-DyvNNX6v.js → erDiagram-TEJ5UH35-BvJC7DLk.js} +1 -1
  265. package/web-shell/assets/{flowDiagram-I6XJVG4X-VBf8_My8.js → flowDiagram-I6XJVG4X-Cgu3PlOt.js} +1 -1
  266. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CviJnR7B.js → ganttDiagram-6RSMTGT7-DLNXN5Xh.js} +1 -1
  267. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BY66_Oze.js → gitGraphDiagram-PVQCEYII-BQFRDv6R.js} +1 -1
  268. package/web-shell/assets/index-C_ouplMQ.js +1187 -0
  269. package/web-shell/assets/{index-DhYuvi3j.js → index-CdC3pjP3.js} +1 -1
  270. package/web-shell/assets/index-XGDFJE-X.css +5 -0
  271. package/web-shell/assets/{infoDiagram-5YYISTIA-D2jaewWZ.js → infoDiagram-5YYISTIA-DT2mOSvp.js} +1 -1
  272. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-BpnNTyi5.js → ishikawaDiagram-YF4QCWOH-9fy_K4bd.js} +1 -1
  273. package/web-shell/assets/{journeyDiagram-JHISSGLW-CA55GNZF.js → journeyDiagram-JHISSGLW-CoGSEuhE.js} +1 -1
  274. package/web-shell/assets/{kanban-definition-UN3LZRKU-DyiSl_Ts.js → kanban-definition-UN3LZRKU-BP9hHYIj.js} +1 -1
  275. package/web-shell/assets/{linear-B-sN3dkV.js → linear-uIroDsmp.js} +1 -1
  276. package/web-shell/assets/{mermaid.core-xf9SXDdb.js → mermaid.core-BUwoStsA.js} +5 -5
  277. package/web-shell/assets/{mindmap-definition-RKZ34NQL-DXhr2kRk.js → mindmap-definition-RKZ34NQL-DZB-FWim.js} +1 -1
  278. package/web-shell/assets/{pieDiagram-4H26LBE5-DUXpbfGQ.js → pieDiagram-4H26LBE5-YPptloKl.js} +1 -1
  279. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-NeDQYeWw.js → quadrantDiagram-W4KKPZXB-dgk3DSzm.js} +1 -1
  280. package/web-shell/assets/{requirementDiagram-4Y6WPE33-BSbFRL1A.js → requirementDiagram-4Y6WPE33-BH2En2i9.js} +1 -1
  281. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-gg27cAaN.js → sankeyDiagram-5OEKKPKP-BB98feeI.js} +1 -1
  282. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-Bi_1TSs4.js → sequenceDiagram-3UESZ5HK-CunAIGh8.js} +1 -1
  283. package/web-shell/assets/{stateDiagram-AJRCARHV-CboCCRaf.js → stateDiagram-AJRCARHV-DTJs_-I2.js} +1 -1
  284. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DrfFMYta.js +1 -0
  285. package/web-shell/assets/{timeline-definition-PNZ67QCA-DrGpF_jn.js → timeline-definition-PNZ67QCA-Cd4AN7O0.js} +1 -1
  286. package/web-shell/assets/{vennDiagram-CIIHVFJN-DCaJU67x.js → vennDiagram-CIIHVFJN-xIG-rUU9.js} +1 -1
  287. package/web-shell/assets/{wardley-L42UT6IY-p0QcW1aP.js → wardley-L42UT6IY-D1UyjIcG.js} +1 -1
  288. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DiEVxj1W.js → wardleyDiagram-YWT4CUSO-BVM0Mb99.js} +1 -1
  289. package/web-shell/assets/{xychartDiagram-2RQKCTM6-iQB8nSlA.js → xychartDiagram-2RQKCTM6-BX31JDSz.js} +1 -1
  290. package/web-shell/index.html +2 -2
  291. package/chunks/chunk-2HRYPZT5.js +0 -25
  292. package/chunks/chunk-QAW7PIHT.js +0 -168
  293. package/chunks/chunk-RTV5TUYB.js +0 -143
  294. package/chunks/chunk-ZPAHLFZU.js +0 -172
  295. package/chunks/exitPlanMode-HYQL4XMB.js +0 -909
  296. package/chunks/nonInteractiveCli-UMYUT643.js +0 -129
  297. package/chunks/todoWrite-FKCGATPJ.js +0 -531
  298. package/chunks/web-fetch-CFCWTCAP.js +0 -5673
  299. package/web-shell/assets/channel-NFC5ADAa.js +0 -1
  300. package/web-shell/assets/classDiagram-4FO5ZUOK-DHgwjz3X.js +0 -1
  301. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHgwjz3X.js +0 -1
  302. package/web-shell/assets/index-8xIBbHV3.js +0 -1143
  303. package/web-shell/assets/index-DLyhlZZO.css +0 -5
  304. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CXRqms6P.js +0 -1
@@ -1,129 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- runNonInteractive,
5
- skipHeadlessLoopSentinel
6
- } from "./chunk-FXKOAEXP.js";
7
- import "./chunk-CH2XVB47.js";
8
- import "./chunk-HASK4LMI.js";
9
- import "./chunk-CPFIQVZJ.js";
10
- import "./chunk-QDJ2R4CM.js";
11
- import "./chunk-THXDQSTA.js";
12
- import "./chunk-FMNYGWOD.js";
13
- import "./chunk-YGYSMY2R.js";
14
- import "./chunk-FYQ22K62.js";
15
- import "./chunk-NVTQZXR7.js";
16
- import "./chunk-4WGODMVR.js";
17
- import "./chunk-KW7NOTN6.js";
18
- import "./chunk-OWT2CAEQ.js";
19
- import "./chunk-5DTTYNB7.js";
20
- import "./chunk-NHDKSOEY.js";
21
- import "./chunk-7X7TEQNX.js";
22
- import "./chunk-HTHUX2T5.js";
23
- import "./chunk-TL4R5TRK.js";
24
- import "./chunk-V2DXTLUE.js";
25
- import "./chunk-YAF2MQZ6.js";
26
- import "./chunk-Q6TUALBE.js";
27
- import "./chunk-6Y6ORE2G.js";
28
- import "./chunk-CF5VJRGC.js";
29
- import "./chunk-SUARMD4Q.js";
30
- import "./chunk-QHTIBUWB.js";
31
- import "./chunk-L573Z2QZ.js";
32
- import "./chunk-RXFQM6FQ.js";
33
- import "./chunk-Y3KFTWVX.js";
34
- import "./chunk-6H67XLET.js";
35
- import "./chunk-CITWNIXJ.js";
36
- import "./chunk-4HUDDSO5.js";
37
- import "./chunk-S63Z5V42.js";
38
- import "./chunk-E5Z2AVNV.js";
39
- import "./chunk-ZIXOTAPZ.js";
40
- import "./chunk-3M75MSVA.js";
41
- import "./chunk-FSA7ERJ2.js";
42
- import "./chunk-6RLROE6G.js";
43
- import "./chunk-COH43MRJ.js";
44
- import "./chunk-7NMU22Q3.js";
45
- import "./chunk-YFVO2HOR.js";
46
- import "./chunk-57OAHC2Y.js";
47
- import "./chunk-5CNYZ7TN.js";
48
- import "./chunk-FNX3LGAK.js";
49
- import "./chunk-V6WHFGST.js";
50
- import "./chunk-W7FJ3N32.js";
51
- import "./chunk-KSZKSE23.js";
52
- import "./chunk-TJTKSVIV.js";
53
- import "./chunk-M5GB774H.js";
54
- import "./chunk-LXLTBIDP.js";
55
- import "./chunk-3DWIFU7L.js";
56
- import "./chunk-ZQIYGQCG.js";
57
- import "./chunk-UDXSXLER.js";
58
- import "./chunk-4ROQY23C.js";
59
- import "./chunk-GNBBAQ6J.js";
60
- import "./chunk-RKUWKYED.js";
61
- import "./chunk-4AGTGMCQ.js";
62
- import "./chunk-JWICTOXS.js";
63
- import "./chunk-GOXKNSDZ.js";
64
- import "./chunk-IDS7MSUP.js";
65
- import "./chunk-QRUIS3DN.js";
66
- import "./chunk-2OG646IN.js";
67
- import "./chunk-ALGGS7UH.js";
68
- import "./chunk-MR3PXB6E.js";
69
- import "./chunk-YUZI3WAC.js";
70
- import "./chunk-XFSFZCM5.js";
71
- import "./chunk-GLNHPRZT.js";
72
- import "./chunk-VJNBRRZG.js";
73
- import "./chunk-NJOFRXTM.js";
74
- import "./chunk-T4TZQJ7W.js";
75
- import "./chunk-H6XPXXMH.js";
76
- import "./chunk-5M6IDOMF.js";
77
- import "./chunk-A2HWMJVO.js";
78
- import "./chunk-RCEEXIOO.js";
79
- import "./chunk-KKRTYONM.js";
80
- import "./chunk-TV6K2FB4.js";
81
- import "./chunk-E2UVIFI2.js";
82
- import "./chunk-XU457J4V.js";
83
- import "./chunk-VDDGDZMA.js";
84
- import "./chunk-SPJQO2CE.js";
85
- import "./chunk-SZRN75WQ.js";
86
- import "./chunk-HTO4JFDZ.js";
87
- import "./chunk-CPBF7KYF.js";
88
- import "./chunk-F333XEAU.js";
89
- import "./chunk-6AM5D4ME.js";
90
- import "./chunk-2Z5UX4KI.js";
91
- import "./chunk-ARKANCNX.js";
92
- import "./chunk-L5U3ELZX.js";
93
- import "./chunk-TYLOFD2U.js";
94
- import "./chunk-MQOVXZAF.js";
95
- import "./chunk-4WKAA4KS.js";
96
- import "./chunk-CR3C7WXL.js";
97
- import "./chunk-RTV5TUYB.js";
98
- import "./chunk-VGC4I5JJ.js";
99
- import "./chunk-FBU7WRZI.js";
100
- import "./chunk-Y66VOBRP.js";
101
- import "./chunk-WTNZ6DXB.js";
102
- import "./chunk-JGUT3LWZ.js";
103
- import "./chunk-OKAIGAYW.js";
104
- import "./chunk-ZPAHLFZU.js";
105
- import "./chunk-JESCGQM3.js";
106
- import "./chunk-WIEO4CWB.js";
107
- import "./chunk-XVNQMZ2I.js";
108
- import "./chunk-FEOZBUMT.js";
109
- import "./chunk-VRR65QYW.js";
110
- import "./chunk-A4UCTEB5.js";
111
- import "./chunk-XWRJCPHC.js";
112
- import "./chunk-4LD5APFL.js";
113
- import "./chunk-TYAMGABM.js";
114
- import "./chunk-FCMNKVXT.js";
115
- import "./chunk-DJ2GSRLV.js";
116
- import "./chunk-LQIDP6K5.js";
117
- import "./chunk-7NFB7LBQ.js";
118
- import "./chunk-QYG4BY6Q.js";
119
- import "./chunk-CAHY5ABC.js";
120
- import "./chunk-75DOP5OR.js";
121
- import "./chunk-DMTGGOSA.js";
122
- import "./chunk-YQ3U5MUC.js";
123
- import "./chunk-TB6UDU4T.js";
124
- import "./chunk-5O2XNYP6.js";
125
- import "./chunk-J2S4EL5Y.js";
126
- export {
127
- runNonInteractive,
128
- skipHeadlessLoopSentinel
129
- };
@@ -1,531 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- detectTodoChanges
5
- } from "./chunk-ARKANCNX.js";
6
- import {
7
- BaseDeclarativeTool,
8
- BaseToolInvocation,
9
- ToolDisplayNames,
10
- ToolNames
11
- } from "./chunk-JGUT3LWZ.js";
12
- import {
13
- atomicWriteFile
14
- } from "./chunk-WIEO4CWB.js";
15
- import {
16
- Storage,
17
- createDebugLogger
18
- } from "./chunk-7NFB7LBQ.js";
19
- import "./chunk-TB6UDU4T.js";
20
- import {
21
- init_esbuild_shims
22
- } from "./chunk-5O2XNYP6.js";
23
- import {
24
- __name
25
- } from "./chunk-J2S4EL5Y.js";
26
-
27
- // packages/core/src/tools/todoWrite.ts
28
- init_esbuild_shims();
29
- import * as fs from "fs/promises";
30
- import * as fsSync from "fs";
31
- import * as path from "path";
32
- var debugLogger = createDebugLogger("TODO_WRITE");
33
- var todoWriteToolSchemaData = {
34
- name: "todo_write",
35
- description: "Creates and manages a structured task list for your current coding session. This helps track progress, organize complex tasks, and demonstrate thoroughness.",
36
- parametersJsonSchema: {
37
- type: "object",
38
- properties: {
39
- todos: {
40
- type: "array",
41
- items: {
42
- type: "object",
43
- properties: {
44
- content: {
45
- type: "string",
46
- minLength: 1
47
- },
48
- status: {
49
- type: "string",
50
- enum: ["pending", "in_progress", "completed"]
51
- },
52
- id: {
53
- type: "string"
54
- }
55
- },
56
- required: ["content", "status", "id"],
57
- additionalProperties: false
58
- },
59
- description: "The updated todo list"
60
- }
61
- },
62
- required: ["todos"],
63
- $schema: "http://json-schema.org/draft-07/schema#"
64
- }
65
- };
66
- var todoWriteToolDescription = `
67
- Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
68
- It also helps the user understand the progress of the task and overall progress of their requests.
69
-
70
- ## When to Use This Tool
71
- Use this tool proactively in these scenarios:
72
-
73
- 1. Complex multi-step tasks - When a task requires 3 or more distinct steps or actions
74
- 2. Non-trivial and complex tasks - Tasks that require careful planning or multiple operations
75
- 3. User explicitly requests todo list - When the user directly asks you to use the todo list
76
- 4. User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)
77
- 5. After receiving new instructions - Immediately capture user requirements as todos
78
- 6. When you start working on a task - Mark it as in_progress BEFORE beginning work. Ideally you should only have one todo as in_progress at a time
79
- 7. After completing a task - Mark it as completed and add any new follow-up tasks discovered during implementation
80
-
81
- ## When NOT to Use This Tool
82
-
83
- Skip using this tool when:
84
- 1. There is only a single, straightforward task
85
- 2. The task is trivial and tracking it provides no organizational benefit
86
- 3. The task can be completed in less than 3 trivial steps
87
- 4. The task is purely conversational or informational
88
-
89
- NOTE that you should not use this tool if there is only one trivial task to do. In this case you are better off just doing the task directly.
90
-
91
- ## Examples of When to Use the Todo List
92
-
93
- <example>
94
- User: I want to add a dark mode toggle to the application settings. Make sure you run the tests and build when you're done!
95
- Assistant: I'll help add a dark mode toggle to your application settings. Let me create a todo list to track this implementation.
96
- *Creates todo list with the following items:*
97
- 1. Create dark mode toggle component in Settings page
98
- 2. Add dark mode state management (context/store)
99
- 3. Implement CSS-in-JS styles for dark theme
100
- 4. Update existing components to support theme switching
101
- 5. Run tests and build process, addressing any failures or errors that occur
102
- *Begins working on the first task*
103
-
104
- <reasoning>
105
- The assistant used the todo list because:
106
- 1. Adding dark mode is a multi-step feature requiring UI, state management, and styling changes
107
- 2. The user explicitly requested tests and build be run afterward
108
- 3. The assistant inferred that tests and build need to pass by adding "Ensure tests and build succeed" as the final task
109
- </reasoning>
110
- </example>
111
-
112
- <example>
113
- User: Help me rename the function getCwd to getCurrentWorkingDirectory across my project
114
- Assistant: Let me first search through your codebase to find all occurrences of 'getCwd'.
115
- *Uses grep or search tools to locate all instances of getCwd in the codebase*
116
- Assistant: I've found 15 instances of 'getCwd' across 8 different files. Let me create a todo list to track these changes.
117
- *Creates todo list with specific items for each file that needs updating*
118
-
119
- <reasoning>
120
- The assistant used the todo list because:
121
- 1. First, the assistant searched to understand the scope of the task
122
- 2. Upon finding multiple occurrences across different files, it determined this was a complex task with multiple steps
123
- 3. The todo list helps ensure every instance is tracked and updated systematically
124
- 4. This approach prevents missing any occurrences and maintains code consistency
125
- </reasoning>
126
- </example>
127
-
128
-
129
- <example>
130
- User: I need to implement these features for my e-commerce site: user registration, product catalog, shopping cart, and checkout flow.
131
- Assistant: I'll help implement these features. First, let's add all the features to the todo list.
132
- *Creates a todo list breaking down each feature into specific tasks based on the project architecture*
133
- Assistant: Let's start with user registration. This will involve creating database models, API endpoints, and frontend forms that integrate with your existing authentication system.
134
-
135
- <reasoning>
136
- The assistant used the todo list because:
137
- 1. The user provided multiple complex features to implement in a comma separated list
138
- 2. The todo list helps organize these large features into manageable tasks
139
- 3. This approach allows for tracking progress across the entire implementation
140
- </reasoning>
141
- </example>
142
-
143
- <example>
144
- User: Can you help optimize my React application? It's rendering slowly and has performance issues.</user>
145
- Assistant: I'll help optimize your React application. First, let me examine your codebase to identify potential performance bottlenecks.
146
- *Reviews component structure, render patterns, state management, and data fetching*
147
- Assistant: After analyzing your codebase, I've identified several performance issues. Let me create a todo list to track our optimization efforts.
148
- *Creates todo list with items like: 1) Implement memoization for expensive calculations in ProductList, 2) Add virtualization for long lists in Dashboard, 3) Optimize image loading in Gallery component, 4) Fix state update loops in ShoppingCart, 5) Review bundle size and implement code splitting*
149
- Let's start by implementing memoization for the expensive calculations in your ProductList component.</assistant>
150
-
151
- <reasoning>
152
- The assistant used the todo list because:
153
- 1. First, the assistant examined the codebase to identify specific performance issues
154
- 2. Based on this analysis, it identified multiple optimization opportunities
155
- 3. Performance optimization is a non-trivial task requiring multiple steps
156
- 4. The todo list helps methodically track improvements across different components
157
- 5. This systematic approach ensures all performance bottlenecks are addressed
158
- </reasoning>
159
- </example>
160
-
161
- ## Examples of When NOT to Use the Todo List
162
-
163
- <example>
164
- User: How do I print 'Hello World' in Python?
165
- Assistant: In Python, you can print "Hello World" with this simple code:
166
-
167
- python
168
- print("Hello World")
169
-
170
- This will output the text "Hello World" to the console when executed.</assistant>
171
-
172
- <reasoning>
173
- The assistant did not use the todo list because this is a single, trivial task that can be completed in one step. There's no need to track multiple tasks or steps for such a straightforward request.
174
- </reasoning>
175
- </example>
176
-
177
- <example>
178
- User: What does the git status command do?
179
- Assistant: The git status command shows the current state of your working directory and staging area. It displays which changes have been staged, which haven't, and which files aren't being tracked by Git. This is a fundamental command for understanding the current state of your repository before making commits.
180
-
181
- <reasoning>
182
- The assistant did not use the todo list because this is an informational request with no actual coding task to complete. The user is simply asking for an explanation, not for the assistant to perform multiple steps or tasks.
183
- </reasoning>
184
- </example>
185
-
186
- <example>
187
- User: Can you add a comment to the calculateTotal function to explain what it does?
188
- Assistant: Sure, let me add a comment to the calculateTotal function to explain what it does.
189
- * Uses the Edit tool to add a comment to the calculateTotal function *
190
-
191
- <reasoning>
192
- The assistant did not use the todo list because this is a single, straightforward task confined to one location in the code. Adding a comment doesn't require tracking multiple steps or systematic organization.
193
- </reasoning>
194
- </example>
195
-
196
- <example>
197
- User: Run npm install for me and tell me what happens.
198
- Assistant: I'll run the npm install command for you.
199
-
200
- *Executes: npm install*
201
-
202
- The command completed successfully. Here's the output:
203
- [Output of npm install command]
204
-
205
- All dependencies have been installed according to your package.json file.
206
-
207
- <reasoning>
208
- The assistant did not use the todo list because this is a single command execution with immediate results. There are no multiple steps to track or organize, making the todo list unnecessary for this straightforward task.
209
- </reasoning>
210
- </example>
211
-
212
- ## Planning with Todos
213
-
214
- Before breaking work into low-level edits, use the todo list to reflect the overall approach at a meaningful level (for example: investigate, design, implement, verify). This helps maintain a global view of the task instead of jumping between isolated local changes.
215
-
216
- When new information changes your understanding of the task, update the todo structure to reflect the revised plan rather than only appending isolated follow-up items. The todo list should continue to represent the current overall strategy.
217
-
218
- ## Task States and Management
219
-
220
- 1. **Task States**: Use these states to track progress:
221
- - pending: Task not yet started
222
- - in_progress: Currently working on (limit to ONE task at a time)
223
- - completed: Task finished successfully
224
-
225
- 2. **Task Management**:
226
- - Update task status in real-time as you work
227
- - Mark tasks complete IMMEDIATELY after finishing (don't batch completions)
228
- - Only have ONE task in_progress at any time
229
- - Complete current tasks before starting new ones
230
- - Remove tasks that are no longer relevant from the list entirely
231
-
232
- 3. **Task Completion Requirements**:
233
- - ONLY mark a task as completed when you have FULLY accomplished it
234
- - If you encounter errors, blockers, or cannot finish, keep the task as in_progress
235
- - When blocked, create a new task describing what needs to be resolved
236
- - Never mark a task as completed if:
237
- - Tests are failing
238
- - Implementation is partial
239
- - You encountered unresolved errors
240
- - You couldn't find necessary files or dependencies
241
-
242
- 4. **Task Breakdown**:
243
- - Create specific, actionable items
244
- - Break complex tasks into smaller, manageable steps
245
- - Use clear, descriptive task names
246
-
247
- When in doubt, use this tool. Being proactive with task management demonstrates attentiveness and ensures you complete all requirements successfully.
248
- `;
249
- var TODO_SUBDIR = "todos";
250
- function getTodoFilePath(sessionId) {
251
- const todoDir = path.join(Storage.getRuntimeBaseDir(), TODO_SUBDIR);
252
- const filename = `${sessionId || "default"}.json`;
253
- return path.join(todoDir, filename);
254
- }
255
- __name(getTodoFilePath, "getTodoFilePath");
256
- async function readTodosFromFile(sessionId) {
257
- try {
258
- const todoFilePath = getTodoFilePath(sessionId);
259
- const content = await fs.readFile(todoFilePath, "utf-8");
260
- const data = JSON.parse(content);
261
- return Array.isArray(data.todos) ? data.todos : [];
262
- } catch (err) {
263
- const error = err;
264
- if (!(error instanceof Error) || error.code !== "ENOENT") {
265
- throw err;
266
- }
267
- return [];
268
- }
269
- }
270
- __name(readTodosFromFile, "readTodosFromFile");
271
- async function writeTodosToFile(todos, sessionId) {
272
- const todoFilePath = getTodoFilePath(sessionId);
273
- const todoDir = path.dirname(todoFilePath);
274
- await fs.mkdir(todoDir, { recursive: true });
275
- const data = {
276
- todos,
277
- sessionId: sessionId || "default"
278
- };
279
- await atomicWriteFile(todoFilePath, JSON.stringify(data, null, 2), {
280
- encoding: "utf-8"
281
- });
282
- }
283
- __name(writeTodosToFile, "writeTodosToFile");
284
- function createBlockedTodoResult(message, systemMessage) {
285
- return {
286
- llmContent: `${message}
287
-
288
- <system-reminder>
289
- ${systemMessage}
290
- </system-reminder>`,
291
- returnDisplay: message
292
- };
293
- }
294
- __name(createBlockedTodoResult, "createBlockedTodoResult");
295
- var TodoWriteToolInvocation = class extends BaseToolInvocation {
296
- constructor(config, params, operationType = "update") {
297
- super(params);
298
- this.config = config;
299
- this.operationType = operationType;
300
- }
301
- static {
302
- __name(this, "TodoWriteToolInvocation");
303
- }
304
- operationType;
305
- getDescription() {
306
- return this.operationType === "create" ? "Create todos" : "Update todos";
307
- }
308
- async execute(_signal) {
309
- const { todos, modified_by_user, modified_content } = this.params;
310
- const sessionId = this.config.getSessionId();
311
- try {
312
- const oldTodos = await readTodosFromFile(sessionId);
313
- let finalTodos;
314
- if (modified_by_user && modified_content !== void 0) {
315
- const data = JSON.parse(modified_content);
316
- finalTodos = Array.isArray(data.todos) ? data.todos : [];
317
- } else {
318
- finalTodos = todos;
319
- }
320
- const changes = detectTodoChanges(oldTodos, finalTodos);
321
- const oldTodosMap = new Map(oldTodos.map((t) => [t.id, t]));
322
- const hookSystem = this.config.getHookSystem();
323
- if (hookSystem && changes.created.length > 0) {
324
- const createdResults = await Promise.all(
325
- changes.created.map(
326
- (todo) => hookSystem.fireTodoCreatedEvent(
327
- todo.id,
328
- todo.content,
329
- todo.status,
330
- finalTodos,
331
- "validation" /* Validation */,
332
- _signal
333
- )
334
- )
335
- );
336
- const blockedCreatedResult = createdResults.find(
337
- (result) => result.finalOutput?.decision === "block"
338
- );
339
- if (blockedCreatedResult?.finalOutput) {
340
- const reason = blockedCreatedResult.finalOutput.reason || "Hook blocked todo creation";
341
- return createBlockedTodoResult(
342
- `Todo creation blocked: ${reason}`,
343
- `Todo list was not modified because a TodoCreated hook blocked the operation: ${reason}`
344
- );
345
- }
346
- }
347
- if (hookSystem && changes.completed.length > 0) {
348
- const completedResults = await Promise.all(
349
- changes.completed.map((todo) => {
350
- const oldTodo = oldTodosMap.get(todo.id);
351
- const previousStatus = oldTodo?.status ?? "pending";
352
- return hookSystem.fireTodoCompletedEvent(
353
- todo.id,
354
- todo.content,
355
- previousStatus,
356
- finalTodos,
357
- "validation" /* Validation */,
358
- _signal
359
- );
360
- })
361
- );
362
- const blockedCompletedResult = completedResults.find(
363
- (result) => result.finalOutput?.decision === "block"
364
- );
365
- if (blockedCompletedResult?.finalOutput) {
366
- const reason = blockedCompletedResult.finalOutput.reason || "Hook blocked todo completion";
367
- return createBlockedTodoResult(
368
- `Todo completion blocked: ${reason}`,
369
- `Todo list was not modified because a TodoCompleted hook blocked the operation: ${reason}`
370
- );
371
- }
372
- }
373
- await writeTodosToFile(finalTodos, sessionId);
374
- let postWriteError;
375
- try {
376
- if (hookSystem && changes.created.length > 0) {
377
- await Promise.all(
378
- changes.created.map(
379
- (todo) => hookSystem.fireTodoCreatedEvent(
380
- todo.id,
381
- todo.content,
382
- todo.status,
383
- finalTodos,
384
- "postWrite" /* PostWrite */,
385
- _signal
386
- )
387
- )
388
- );
389
- }
390
- if (hookSystem && changes.completed.length > 0) {
391
- await Promise.all(
392
- changes.completed.map((todo) => {
393
- const oldTodo = oldTodosMap.get(todo.id);
394
- const previousStatus = oldTodo?.status ?? "pending";
395
- return hookSystem.fireTodoCompletedEvent(
396
- todo.id,
397
- todo.content,
398
- previousStatus,
399
- finalTodos,
400
- "postWrite" /* PostWrite */,
401
- _signal
402
- );
403
- })
404
- );
405
- }
406
- } catch (error) {
407
- postWriteError = error instanceof Error ? error : new Error(String(error));
408
- debugLogger.error(
409
- `[TodoWriteTool] Post-write hooks failed after todos were persisted: ${postWriteError.message}`
410
- );
411
- }
412
- const todoResultDisplay = {
413
- type: "todo_list",
414
- todos: finalTodos,
415
- changes
416
- };
417
- const todosJson = JSON.stringify(finalTodos);
418
- let llmContent;
419
- const postWriteReminder = postWriteError ? `
420
-
421
- <system-reminder>
422
- Todos were persisted successfully, but post-write hooks failed with error: ${postWriteError.message}. Do not tell the user the write failed; only handle any follow-up hook issues if needed.
423
- </system-reminder>` : "";
424
- if (finalTodos.length === 0) {
425
- llmContent = `Todo list has been cleared.
426
-
427
- <system-reminder>
428
- Your todo list is now empty. DO NOT mention this explicitly to the user. You have no pending tasks in your todo list.
429
- </system-reminder>${postWriteReminder}`;
430
- } else {
431
- llmContent = `Todos have been modified successfully. Ensure that you continue to use the todo list to track your progress. Please proceed with the current tasks if applicable
432
-
433
- <system-reminder>
434
- Your todo list has changed. DO NOT mention this explicitly to the user. Here are the latest contents of your todo list:
435
-
436
- ${todosJson}. Continue on with the tasks at hand if applicable.
437
- </system-reminder>${postWriteReminder}`;
438
- }
439
- return {
440
- llmContent,
441
- returnDisplay: todoResultDisplay
442
- };
443
- } catch (error) {
444
- const errorMessage = error instanceof Error ? error.message : String(error);
445
- debugLogger.error(
446
- `[TodoWriteTool] Error executing todo_write: ${errorMessage}`
447
- );
448
- const errorLlmContent = `Failed to modify todos. An error occurred during the operation.
449
-
450
- <system-reminder>
451
- Todo list modification failed with error: ${errorMessage}. You may need to retry or handle this error appropriately.
452
- </system-reminder>`;
453
- return {
454
- llmContent: errorLlmContent,
455
- returnDisplay: `Error writing todos: ${errorMessage}`
456
- };
457
- }
458
- }
459
- };
460
- async function readTodosForSession(sessionId) {
461
- return readTodosFromFile(sessionId);
462
- }
463
- __name(readTodosForSession, "readTodosForSession");
464
- async function listTodoSessions() {
465
- try {
466
- const todoDir = path.join(Storage.getRuntimeBaseDir(), TODO_SUBDIR);
467
- const files = await fs.readdir(todoDir);
468
- return files.filter((file) => file.endsWith(".json")).map((file) => file.replace(".json", ""));
469
- } catch (err) {
470
- const error = err;
471
- if (!(error instanceof Error) || error.code !== "ENOENT") {
472
- throw err;
473
- }
474
- return [];
475
- }
476
- }
477
- __name(listTodoSessions, "listTodoSessions");
478
- var TodoWriteTool = class _TodoWriteTool extends BaseDeclarativeTool {
479
- constructor(config) {
480
- super(
481
- _TodoWriteTool.Name,
482
- ToolDisplayNames.TODO_WRITE,
483
- todoWriteToolDescription,
484
- "think" /* Think */,
485
- todoWriteToolSchemaData.parametersJsonSchema
486
- );
487
- this.config = config;
488
- }
489
- static {
490
- __name(this, "TodoWriteTool");
491
- }
492
- static Name = ToolNames.TODO_WRITE;
493
- validateToolParams(params) {
494
- if (!Array.isArray(params.todos)) {
495
- return 'Parameter "todos" must be an array.';
496
- }
497
- for (const todo of params.todos) {
498
- if (!todo.id || typeof todo.id !== "string" || todo.id.trim() === "") {
499
- return 'Each todo must have a non-empty "id" string.';
500
- }
501
- if (!todo.content || typeof todo.content !== "string" || todo.content.trim() === "") {
502
- return 'Each todo must have a non-empty "content" string.';
503
- }
504
- if (!["pending", "in_progress", "completed"].includes(todo.status)) {
505
- return 'Each todo must have a valid "status" (pending, in_progress, completed).';
506
- }
507
- }
508
- const ids = params.todos.map((todo) => todo.id);
509
- const uniqueIds = new Set(ids);
510
- if (ids.length !== uniqueIds.size) {
511
- return "Todo IDs must be unique within the array.";
512
- }
513
- return null;
514
- }
515
- createInvocation(params) {
516
- const sessionId = this.config.getSessionId();
517
- const todoFilePath = getTodoFilePath(sessionId);
518
- const operationType = fsSync.existsSync(todoFilePath) ? "update" : "create";
519
- return new TodoWriteToolInvocation(this.config, params, operationType);
520
- }
521
- };
522
- export {
523
- TodoWriteTool,
524
- listTodoSessions,
525
- readTodosForSession
526
- };
527
- /**
528
- * @license
529
- * Copyright 2025 Google LLC
530
- * SPDX-License-Identifier: Apache-2.0
531
- */