@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2-nightly.20260801.bc382c3ff

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 (437) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
  2. package/bundled/qc-helper/docs/configuration/settings.md +42 -30
  3. package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
  4. package/bundled/qc-helper/docs/features/channels/github.md +146 -0
  5. package/bundled/qc-helper/docs/features/channels/gitlab.md +177 -0
  6. package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
  7. package/bundled/qc-helper/docs/features/code-review.md +21 -1
  8. package/bundled/qc-helper/docs/features/commands.md +1 -0
  9. package/bundled/qc-helper/docs/features/hooks.md +186 -32
  10. package/bundled/qc-helper/docs/features/mcp.md +9 -1
  11. package/bundled/qc-helper/docs/features/memory.md +27 -0
  12. package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
  13. package/bundled/qc-helper/docs/features/skills.md +14 -0
  14. package/bundled/qc-helper/docs/features/sub-agents.md +75 -8
  15. package/bundled/qc-helper/docs/features/tool-use-summaries.md +7 -7
  16. package/bundled/qc-helper/docs/qwen-serve.md +32 -8
  17. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +4 -4
  18. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  19. package/bundled/review/DESIGN.md +19 -0
  20. package/bundled/review/SKILL.md +120 -61
  21. package/chunks/MaxSizedBox-CDHTDITS.js +89 -0
  22. package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-L63HUAHP.js} +76 -73
  23. package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-3RICG2YW.js} +2 -2
  24. package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-6WVVT2P3.js} +2147 -1009
  25. package/chunks/agent-KDM4CBOU.js +85 -0
  26. package/chunks/agent-headless-AS7K2K57.js +79 -0
  27. package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-WCBYB6JG.js} +388 -37
  28. package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-ANV4CFCR.js} +4 -4
  29. package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-MALEB47H.js} +4 -4
  30. package/chunks/bridge-JNEW6FES.js +95 -0
  31. package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
  32. package/chunks/{ca-25EDXPFZ.js → ca-4OJN75WT.js} +52 -6
  33. package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-QOO7TD3T.js} +21 -6
  34. package/chunks/channel-settings-store-4CSMTR4L.js +92 -0
  35. package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-ERSUOPIR.js} +10 -6
  36. package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-X247YDQ7.js} +10 -6
  37. package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-ORJIEEPP.js} +6 -5
  38. package/chunks/{chunk-LNARWLZQ.js → chunk-25QQVOCG.js} +5 -5
  39. package/chunks/{chunk-2OM7GEXO.js → chunk-2A6MHYIA.js} +3 -3
  40. package/chunks/{chunk-ER5LWJR6.js → chunk-2CTKGIFR.js} +3 -3
  41. package/chunks/{chunk-SQBYH7PX.js → chunk-2DNKEBXY.js} +1 -1
  42. package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
  43. package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
  44. package/chunks/chunk-2M5N3DHY.js +378 -0
  45. package/chunks/{chunk-CC4N4M36.js → chunk-2PNQQ4UR.js} +2 -2
  46. package/chunks/{chunk-E5TUC6CA.js → chunk-2UISUFHQ.js} +3 -3
  47. package/chunks/{chunk-PWTZEM3C.js → chunk-33FNCQSY.js} +3 -37
  48. package/chunks/{chunk-J56UI34H.js → chunk-3LGZEYOF.js} +4 -2
  49. package/chunks/{chunk-66RMLJHC.js → chunk-3MHPWQ2M.js} +590 -212
  50. package/chunks/{chunk-NL7LTRLR.js → chunk-3RXUYQJI.js} +54 -74
  51. package/chunks/{chunk-E5Z2AVNV.js → chunk-3SH53ANB.js} +0 -11
  52. package/chunks/{chunk-XHRTVPG2.js → chunk-3WXMXT7C.js} +22 -11
  53. package/chunks/{chunk-C3NS4F2Q.js → chunk-42IKVPST.js} +1 -1
  54. package/chunks/{chunk-M5JM7OSF.js → chunk-432XCUHF.js} +2 -3
  55. package/chunks/{chunk-5U4IPFBR.js → chunk-433VD3HX.js} +4 -4
  56. package/chunks/chunk-434YCHSV.js +2196 -0
  57. package/chunks/{chunk-DHHOYAPR.js → chunk-4LKVQFHM.js} +7 -7
  58. package/chunks/{chunk-IPUUTYMV.js → chunk-4NFY2S7N.js} +0 -33
  59. package/chunks/{chunk-J6D3VXCC.js → chunk-5UJ6A3CH.js} +158 -12
  60. package/chunks/{chunk-N3FAY5CM.js → chunk-5UZITEHA.js} +158 -5
  61. package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
  62. package/chunks/chunk-6FMJLI5M.js +1591 -0
  63. package/chunks/{chunk-6FGBXPWM.js → chunk-6O5DVH27.js} +38 -44
  64. package/chunks/{chunk-2RFKHEXL.js → chunk-6PLDPT2C.js} +1 -1
  65. package/chunks/{chunk-52O2CIUL.js → chunk-7IYLHTTM.js} +130 -5
  66. package/chunks/{chunk-5THCYPLO.js → chunk-7K2WTPQO.js} +15 -8
  67. package/chunks/{chunk-2Q3OT4OV.js → chunk-7MY2AR5A.js} +204 -81
  68. package/chunks/{chunk-YH6G52F2.js → chunk-A2A34TSB.js} +4 -4
  69. package/chunks/{chunk-3QMGYBFN.js → chunk-A5YZ3FA2.js} +2 -80
  70. package/chunks/{chunk-K4XWPEWB.js → chunk-A6SX5TAH.js} +4 -33
  71. package/chunks/{chunk-VYPFXUCB.js → chunk-AKA24BGO.js} +1 -1
  72. package/chunks/chunk-AQ37AY7B.js +93 -0
  73. package/chunks/{chunk-PANH4R3B.js → chunk-AQEWCKX4.js} +18 -12
  74. package/chunks/{chunk-LG4GZIVV.js → chunk-AYB4HSBI.js} +4 -4
  75. package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
  76. package/chunks/{chunk-2JZBVYTU.js → chunk-BFHXDAR7.js} +1 -8
  77. package/chunks/{chunk-2W3OOD4W.js → chunk-BGXZBI5B.js} +7 -4
  78. package/chunks/{chunk-2YZJCM5T.js → chunk-BKUN5QHP.js} +7 -7
  79. package/chunks/{chunk-UUUTRMI2.js → chunk-BV4QX43X.js} +1 -1
  80. package/chunks/{chunk-4M377AZG.js → chunk-C4L2MEIT.js} +6 -6
  81. package/chunks/{chunk-VV6XU5L7.js → chunk-CHCLO3M7.js} +19 -14
  82. package/chunks/{chunk-TOFQCPDC.js → chunk-CWEIMFFW.js} +14 -8
  83. package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
  84. package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
  85. package/chunks/{chunk-WDSWXQU3.js → chunk-DUIJ2IXG.js} +5 -13
  86. package/chunks/{chunk-3MSHSCSN.js → chunk-DVGTU5TC.js} +94 -4
  87. package/chunks/{chunk-RHLZR4E5.js → chunk-DYA25Y7U.js} +1 -1
  88. package/chunks/{chunk-MUP3T3AD.js → chunk-E4WHKETF.js} +32 -38
  89. package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
  90. package/chunks/{chunk-V6VRAM7B.js → chunk-FJHA23GM.js} +12 -12
  91. package/chunks/chunk-FYJ7W2PI.js +194 -0
  92. package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
  93. package/chunks/{chunk-LZEMEFKY.js → chunk-GALUTA2C.js} +1 -1
  94. package/chunks/{chunk-ML52PL6O.js → chunk-GB3AB7TR.js} +4374 -3779
  95. package/chunks/{chunk-SASBXAQL.js → chunk-GHJM2C2T.js} +6 -8
  96. package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
  97. package/chunks/chunk-GOFAQQZA.js +132 -0
  98. package/chunks/{chunk-BJX6ZSUK.js → chunk-GTM6IHBB.js} +2 -2
  99. package/chunks/{chunk-TF2X2WCT.js → chunk-GVISB2OH.js} +2 -2
  100. package/chunks/{chunk-OKY7HXPG.js → chunk-H36SETQS.js} +2 -2
  101. package/chunks/{chunk-7FZEBPKS.js → chunk-H4346YW5.js} +39 -22
  102. package/chunks/{chunk-LNURQEMZ.js → chunk-H4DSRWAS.js} +24 -13
  103. package/chunks/{chunk-3JAQDSXN.js → chunk-H6MC6VQX.js} +290 -179
  104. package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
  105. package/chunks/{chunk-PR75REBZ.js → chunk-I5GNT6ZS.js} +18 -82
  106. package/chunks/{chunk-MVS3NS2N.js → chunk-I6FAHB4N.js} +28 -5
  107. package/chunks/{chunk-ZOIFNCKL.js → chunk-I7JDGNG6.js} +3 -23
  108. package/chunks/{chunk-OJGCZBB7.js → chunk-II6WPWHY.js} +41 -36
  109. package/chunks/{chunk-UH3WSE5L.js → chunk-J26HHFI5.js} +2 -7
  110. package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
  111. package/chunks/{chunk-ZD6UTE4A.js → chunk-JELIWHXD.js} +1 -1
  112. package/chunks/{chunk-6PSLCFQ2.js → chunk-JRIDA5HF.js} +18 -9
  113. package/chunks/{chunk-W4CQXHT6.js → chunk-K4CGQN4Q.js} +1 -1
  114. package/chunks/{chunk-G4WFQUYQ.js → chunk-K5Q62CGR.js} +1 -1
  115. package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
  116. package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
  117. package/chunks/{chunk-DN6ZX5AY.js → chunk-KG22G46Y.js} +62 -15
  118. package/chunks/{chunk-L5UHQJTJ.js → chunk-KKN2IE7Q.js} +1 -1
  119. package/chunks/{chunk-63P4EL5V.js → chunk-KVUBYJDM.js} +2 -2
  120. package/chunks/{chunk-E5WH5O3C.js → chunk-KXSYDCP2.js} +4 -4
  121. package/chunks/{chunk-JALU3ZDU.js → chunk-LAPK3GLC.js} +212 -16
  122. package/chunks/chunk-LBOVL47Y.js +29 -0
  123. package/chunks/{chunk-FQK6JAFG.js → chunk-LBWNSLJK.js} +4 -4
  124. package/chunks/{chunk-3IXOIAKE.js → chunk-LL4U3BSH.js} +30 -10
  125. package/chunks/{chunk-B7QDM6Z7.js → chunk-LRJWFR6L.js} +4 -4
  126. package/chunks/{chunk-RWS5VYWC.js → chunk-M2F5PLOW.js} +1018 -484
  127. package/chunks/{chunk-HIJQF5B5.js → chunk-M744OFVE.js} +1 -1
  128. package/chunks/{chunk-I7XZ3RY5.js → chunk-MBKPUM5Y.js} +1 -1
  129. package/chunks/chunk-MISUEWB4.js +8749 -0
  130. package/chunks/{chunk-FNQ6T3CV.js → chunk-MOHAWIAW.js} +10 -7
  131. package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
  132. package/chunks/{chunk-QY5MMZ6O.js → chunk-MSIVKDRC.js} +4 -4
  133. package/chunks/{record-artifact-RQKFYO5B.js → chunk-MYT7N6QH.js} +22 -7
  134. package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
  135. package/chunks/{chunk-DM4Q4JJH.js → chunk-NGWYUZZO.js} +68794 -83526
  136. package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
  137. package/chunks/{chunk-PQNHRFJC.js → chunk-NYX53SV4.js} +0 -2
  138. package/chunks/{chunk-Z5BLYMZM.js → chunk-NZB4NDJL.js} +10 -10
  139. package/chunks/{chunk-SRZ6DXVG.js → chunk-O2ZYHG33.js} +47 -138
  140. package/chunks/chunk-O6GEWCJA.js +21 -0
  141. package/chunks/{chunk-PHVR5UUY.js → chunk-OBAIHYFT.js} +1 -1
  142. package/chunks/chunk-OCPBI7J5.js +18 -0
  143. package/chunks/{chunk-P5V4T7NK.js → chunk-OCRM53TT.js} +11 -3
  144. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  145. package/chunks/{chunk-KU5XMLDK.js → chunk-PDDYAXL2.js} +7 -1
  146. package/chunks/{chunk-L26JL52R.js → chunk-PGEGUNH5.js} +108 -68
  147. package/chunks/{chunk-2JM6GZ5D.js → chunk-PGP7Y3RQ.js} +8 -13
  148. package/chunks/{chunk-VFSJ5VRH.js → chunk-PHODQP2V.js} +6 -6
  149. package/chunks/{chunk-PSWQZHEA.js → chunk-PXA5AWHY.js} +1 -1
  150. package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
  151. package/chunks/chunk-QL4TN4HS.js +59 -0
  152. package/chunks/{chunk-USTWD7QV.js → chunk-QMBEW7EW.js} +26 -16
  153. package/chunks/{chunk-U4VTUMMK.js → chunk-QONSRAEV.js} +1 -1
  154. package/chunks/{chunk-NH6KE4JX.js → chunk-QYPT3QUD.js} +3 -3
  155. package/chunks/{chunk-GDIPH4JY.js → chunk-RGJ4JWSU.js} +133 -50
  156. package/chunks/{chunk-BO4XCS7P.js → chunk-RPYYTL7E.js} +77 -94
  157. package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
  158. package/chunks/{chunk-B4UMZKMU.js → chunk-SK2UKB45.js} +1 -1
  159. package/chunks/{chunk-QPDRAXDJ.js → chunk-SWEBEXPI.js} +1 -1
  160. package/chunks/chunk-T26EAKDL.js +13 -0
  161. package/chunks/chunk-T3CHYWJZ.js +758 -0
  162. package/chunks/{chunk-U7TXFVUN.js → chunk-TFFMATHX.js} +120 -95
  163. package/chunks/{chunk-M4UKFCZ2.js → chunk-TNVKFQXQ.js} +616 -217
  164. package/chunks/{chunk-5I2IWRSH.js → chunk-TYERNYH4.js} +2 -2
  165. package/chunks/{chunk-VAK25FTU.js → chunk-U25CMJYY.js} +1 -1
  166. package/chunks/{chunk-A5L3JMUA.js → chunk-UH7Z7Y45.js} +18 -4
  167. package/chunks/{chunk-BRRAJXPA.js → chunk-UHQ3L6GC.js} +1 -1
  168. package/chunks/{chunk-HV3G62R6.js → chunk-UHTJC7O3.js} +1 -1
  169. package/chunks/{chunk-3SJ43L4W.js → chunk-UKZEXS6K.js} +8 -0
  170. package/chunks/{chunk-DM22XS4K.js → chunk-UOFFZNXV.js} +361 -17
  171. package/chunks/{chunk-FY3M44RD.js → chunk-URN76TKR.js} +3 -3
  172. package/chunks/{chunk-MSLKI6C2.js → chunk-UWLG4UCE.js} +139 -31
  173. package/chunks/{chunk-A6UO2C7C.js → chunk-UWSXFI6E.js} +167 -81
  174. package/chunks/{chunk-BYFNTGKI.js → chunk-VS3GXRNZ.js} +3703 -1399
  175. package/chunks/{chunk-TQCBGUHN.js → chunk-VWF42XC6.js} +5 -5
  176. package/chunks/{chunk-32MVHM4T.js → chunk-W7XZ3KP5.js} +1 -1
  177. package/chunks/{chunk-B6ZJ7SI6.js → chunk-WISQLM4Q.js} +1526 -1420
  178. package/chunks/{chunk-H5FFA6TH.js → chunk-WK4TJUEA.js} +16 -3
  179. package/chunks/{chunk-3HBZKBMQ.js → chunk-WP4HGHFG.js} +5 -5
  180. package/chunks/{chunk-BIQWWWJN.js → chunk-XC2VAFVZ.js} +1 -1
  181. package/chunks/{chunk-EPDRMGT4.js → chunk-XC656O42.js} +4 -28
  182. package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
  183. package/chunks/{chunk-YAF5VNU7.js → chunk-XCLLRKY5.js} +4 -5
  184. package/chunks/chunk-XFDPIC4P.js +319 -0
  185. package/chunks/{chunk-KIUFNBHR.js → chunk-XSA5EKTJ.js} +1 -1
  186. package/chunks/{chunk-OHNBB4XR.js → chunk-YAVY33G4.js} +1 -1
  187. package/chunks/{chunk-DLWL3Z7A.js → chunk-YXEVDA66.js} +3 -3
  188. package/chunks/chunk-Z4X5MTRT.js +133 -0
  189. package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
  190. package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
  191. package/chunks/{chunk-ZE5WPL4I.js → chunk-ZRFJ75D7.js} +3 -3
  192. package/chunks/{chunk-MK7VQDN3.js → chunk-ZTN6OA5J.js} +8 -6
  193. package/chunks/{computer-use-DOFAHZAB.js → computer-use-Z4NCIIJN.js} +54 -51
  194. package/chunks/{config-utils-VFQXVGNR.js → config-utils-64LM6OEQ.js} +4 -4
  195. package/chunks/contextCommand-HVM7XFCB.js +84 -0
  196. package/chunks/core-runtime-NL3ZBHBU.js +138 -0
  197. package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-AM32K2HD.js} +3 -3
  198. package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-XHSCDYFU.js} +54 -51
  199. package/chunks/{cron-create-YIID5XAW.js → cron-create-HPXYE6C5.js} +6 -6
  200. package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FPVNTKPK.js} +5 -5
  201. package/chunks/{cron-list-XEGS463Q.js → cron-list-ZEI6PAAV.js} +6 -6
  202. package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
  203. package/chunks/daemon-status-provider-XD23SNAM.js +94 -0
  204. package/chunks/daemon-trust-policy-NOHK7IW5.js +89 -0
  205. package/chunks/daemon-trust-policy-monitor-ZBTSR333.js +176 -0
  206. package/chunks/{de-HGRCYDEJ.js → de-A6TI4LBB.js} +52 -6
  207. package/chunks/deferred-core-runtime-JJBHKM2C.js +93 -0
  208. package/chunks/{dist-RTJFMNEZ.js → dist-4LAMY2SK.js} +1449 -14
  209. package/chunks/{dist-NNVBBOGU.js → dist-4T4NCJFL.js} +2 -2
  210. package/chunks/dist-7KOL6OMD.js +13467 -0
  211. package/chunks/{dist-BRB6EXK4.js → dist-BH76AT7N.js} +3 -3
  212. package/chunks/dist-BXA3JXVQ.js +4749 -0
  213. package/chunks/{dist-KTYYJ2C5.js → dist-OEEFI6UU.js} +12 -9
  214. package/chunks/{dist-K6Y4E7FX.js → dist-SMLVOWKV.js} +5 -4
  215. package/chunks/{dist-ANLAT3GS.js → dist-V2RK6S6Q.js} +2 -1
  216. package/chunks/earlyInputCapture-KLAZDAIP.js +86 -0
  217. package/chunks/{edit-RIEOJWKB.js → edit-YQZWCISX.js} +53 -50
  218. package/chunks/{en-MTWBNGDO.js → en-RESOFG55.js} +55 -6
  219. package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-WLVWI3FP.js} +53 -50
  220. package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-6RYXFQUD.js} +53 -50
  221. package/chunks/environment-DXJTXSVT.js +106 -0
  222. package/chunks/errors-XGAGG2S2.js +92 -0
  223. package/chunks/esm-K5FARBNI.js +5548 -0
  224. package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-C4276VPP.js} +53 -50
  225. package/chunks/exitPlanMode-MM5HIRUF.js +77 -0
  226. package/chunks/{fast-path-HYE7IFEV.js → fast-path-PIXYOHCH.js} +17 -3
  227. package/chunks/{fr-45RLL55O.js → fr-QF7RI5ZE.js} +52 -6
  228. package/chunks/{gemini-NGRQX3YJ.js → gemini-43RLVUNP.js} +171 -109
  229. package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-PNQ4TSID.js} +7 -7
  230. package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
  231. package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
  232. package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
  233. package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
  234. package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
  235. package/chunks/{glob-FRTM3X2E.js → glob-ZMBQKAU5.js} +53 -50
  236. package/chunks/goal-tools-Y767F7LZ.js +335 -0
  237. package/chunks/{grep-RKWVROCW.js → grep-HSV37W2Q.js} +55 -51
  238. package/chunks/handleAutoUpdate-QDHZPBAY.js +85 -0
  239. package/chunks/i18n-ME22A6RN.js +101 -0
  240. package/chunks/{image-gen-WIEM7KZA.js → image-gen-IFC7ZWSB.js} +12 -12
  241. package/chunks/initializer-J7H2CHVB.js +90 -0
  242. package/chunks/installationInfo-R7FXPQN5.js +84 -0
  243. package/chunks/{ja-B7DF7DFG.js → ja-URQESVGW.js} +52 -6
  244. package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-7BT4TQ2A.js} +3 -3
  245. package/chunks/{kittyProtocolDetector-MBRTDRBK.js → kittyProtocolDetector-BFLAKYXH.js} +1 -1
  246. package/chunks/lib-RUF3WZA6.js +9 -0
  247. package/chunks/list-OYDIBA4N.js +93 -0
  248. package/chunks/{list-agents-5KJJHR6I.js → list-agents-GATIBBQQ.js} +3 -3
  249. package/chunks/loadedSettingsAdapter-OK6GK2GE.js +87 -0
  250. package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-U4ZEG4GL.js} +66 -50
  251. package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3DZMQQQQ.js} +15 -8
  252. package/chunks/{ls-NTK6VOQJ.js → ls-7F4GHXIH.js} +5 -5
  253. package/chunks/{lsp-2JI24STP.js → lsp-6FEHVBWI.js} +3 -3
  254. package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-PGKAJLLO.js} +52 -49
  255. package/chunks/mcp-S4DXJD2G.js +87 -0
  256. package/chunks/{monitor-7FEWXX5F.js → monitor-E5ZFMT74.js} +53 -50
  257. package/chunks/nonInteractiveCli-HNOHKEPE.js +149 -0
  258. package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-6QDN6VZJ.js} +53 -50
  259. package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-3NLB2C5O.js} +25 -27
  260. package/chunks/pidfile-ZMOIUGG6.js +90 -0
  261. package/chunks/process-registry-2CHQBXH5.js +157 -0
  262. package/chunks/{processUtils-V2LCK6T6.js → processUtils-E4QGQVWW.js} +2 -2
  263. package/chunks/{pt-22Q3FP73.js → pt-EEEQXRUI.js} +52 -6
  264. package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-2LFRWJTM.js} +57 -54
  265. package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-N32BUQDC.js} +10 -10
  266. package/chunks/read-file-GLDCWZBG.js +29 -0
  267. package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-AFS3UKZO.js} +4 -4
  268. package/chunks/record-artifact-ECZSCEG5.js +21 -0
  269. package/chunks/resumeHistoryUtils-F5BE5QDW.js +95 -0
  270. package/chunks/ripGrep-T23Y4AGY.js +77 -0
  271. package/chunks/{ru-FZCNZHDC.js → ru-WGZDYQAB.js} +52 -6
  272. package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TI2HGLLU.js} +1155 -272
  273. package/chunks/runtime-WCWM3DO7.js +125 -0
  274. package/chunks/{scheduler-RS2I6RU5.js → scheduler-2QZO5AV5.js} +51 -48
  275. package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
  276. package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-IKNWQJNV.js} +7 -7
  277. package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-7CUUMQDB.js} +10 -10
  278. package/chunks/{send-message-Q6OOR6BR.js → send-message-X7G2JSII.js} +8 -13
  279. package/chunks/serve-DZOMYUFU.js +93 -0
  280. package/chunks/{server-HRZ23U7M.js → server-N4AJRKIQ.js} +5299 -1584
  281. package/chunks/{session-7XHZKTVV.js → session-GS6AKMN7.js} +167 -102
  282. package/chunks/{settings-7ZGZDXAS.js → settings-CUN3SELH.js} +56 -53
  283. package/chunks/shell-NGBFVXC5.js +87 -0
  284. package/chunks/{skill-LIWXNLDW.js → skill-SC2BSO75.js} +35 -23
  285. package/chunks/skill-settings-XVPCPW5K.js +95 -0
  286. package/chunks/spawnChannel-RILO4YY3.js +86 -0
  287. package/chunks/standalone-update-TMLT6LVJ.js +96 -0
  288. package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-J45WOEOU.js} +1343 -1230
  289. package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-FHRY3BPQ.js} +4 -4
  290. package/chunks/task-create-LAQXBIHC.js +26 -0
  291. package/chunks/{task-list-FOPULZEP.js → task-list-V6K5DRDH.js} +8 -8
  292. package/chunks/{task-stop-H6RHXFVQ.js → task-stop-LQXE52L6.js} +3 -3
  293. package/chunks/{task-update-M57TFZJT.js → task-update-NXRCXSPB.js} +13 -12
  294. package/chunks/{team-create-O2FROQ4R.js → team-create-W3EVWCTA.js} +55 -52
  295. package/chunks/{team-delete-QE2UXJL7.js → team-delete-Z4KGO7RC.js} +8 -8
  296. package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-URYVKJF4.js} +53 -50
  297. package/chunks/theme-manager-CUAMS2NI.js +81 -0
  298. package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-OFIZDI7P.js} +34 -6
  299. package/chunks/{tool-search-APECNQ3Z.js → tool-search-DCICFL32.js} +21 -22
  300. package/chunks/total-session-admission-3ZTAXVUK.js +89 -0
  301. package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
  302. package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
  303. package/chunks/trustedFolders-EVCN36O5.js +99 -0
  304. package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-XLW46RHQ.js} +5 -5
  305. package/chunks/updateCheck-ZHVXDAIH.js +96 -0
  306. package/chunks/useAutoAcceptIndicator-ZGD6BJSP.js +97 -0
  307. package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-R3BAQFDY.js} +102 -97
  308. package/chunks/{version-LTNUBQJY.js → version-PMWREGCG.js} +1 -1
  309. package/chunks/{web-fetch-L5UTI53V.js → web-fetch-PGN27SGF.js} +19 -21
  310. package/chunks/{web-search-KM33JOS3.js → web-search-KW4UNMRE.js} +13 -13
  311. package/chunks/{workflow-K7FAWV77.js → workflow-SN3TJBTJ.js} +374 -323
  312. package/chunks/workspace-providers-status-O3HUZGGR.js +90 -0
  313. package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-M3FJ74RS.js} +2 -2
  314. package/chunks/workspace-registry-U7ISW23N.js +97 -0
  315. package/chunks/workspace-service-VH6IWADT.js +104 -0
  316. package/chunks/workspace-skills-status-XANARSZS.js +90 -0
  317. package/chunks/workspace-trust-reconciler-35EFR4GC.js +350 -0
  318. package/chunks/write-file-NCRSGUDT.js +79 -0
  319. package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
  320. package/chunks/{zh-LUIGBD55.js → zh-OHX23Q44.js} +52 -6
  321. package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-4G7YKDAQ.js} +52 -6
  322. package/chunks/zoom-image-X7CIADYC.js +224 -0
  323. package/cli.js +55 -48
  324. package/locales/ca.js +67 -6
  325. package/locales/de.js +69 -6
  326. package/locales/en.js +69 -6
  327. package/locales/fr.js +71 -6
  328. package/locales/ja.js +68 -6
  329. package/locales/pt.js +67 -6
  330. package/locales/ru.js +70 -6
  331. package/locales/zh-TW.js +62 -6
  332. package/locales/zh.js +62 -6
  333. package/package.json +5 -4
  334. package/web-shell/assets/{arc-BbHijhiN.js → arc-CaMTqKio.js} +1 -1
  335. package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-Bjxztij2.js} +1 -1
  336. package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-BYJzeHi9.js} +1 -1
  337. package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-fYAa-Eil.js} +1 -1
  338. package/web-shell/assets/channel-LEZei0-5.js +1 -0
  339. package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-B1OTlTml.js} +1 -1
  340. package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-DNj4uy6k.js} +1 -1
  341. package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-DAqNmg3c.js} +1 -1
  342. package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-BwB4ddxE.js} +1 -1
  343. package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-DmHR_UZs.js} +1 -1
  344. package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-BlfOXumo.js} +1 -1
  345. package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-BKogiSy7.js} +1 -1
  346. package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-DEclVrOF.js} +1 -1
  347. package/web-shell/assets/classDiagram-4FO5ZUOK-BiaRhfvf.js +1 -0
  348. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BiaRhfvf.js +1 -0
  349. package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-CwtS21WT.js} +1 -1
  350. package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-BAAIlB4p.js} +1 -1
  351. package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ChljtF_V.js} +1 -1
  352. package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-BIXVd31-.js} +1 -1
  353. package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BEiBaS15.js} +1 -1
  354. package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C-g4tWKM.js} +1 -1
  355. package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CNCCbNQG.js} +1 -1
  356. package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-v8ysnsdI.js} +1 -1
  357. package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-LKVlLjwA.js} +1 -1
  358. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DA5MrKYG.js} +1 -1
  359. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-Cyg5fe6d.js} +1 -1
  360. package/web-shell/assets/index-BgOcEaVt.js +1756 -0
  361. package/web-shell/assets/index-C2GE3DAF.js +74 -0
  362. package/web-shell/assets/{index-BYo99NBH.js → index-CKdUkVVS.js} +1 -1
  363. package/web-shell/assets/index-DA5Lvscv.css +5 -0
  364. package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-SLsfu3Qd.js} +1 -1
  365. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CmHOmTNx.js} +1 -1
  366. package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-C3gM_HFQ.js} +1 -1
  367. package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-BbHD7duM.js} +1 -1
  368. package/web-shell/assets/{linear-DCKODZe2.js → linear-CSBvm435.js} +1 -1
  369. package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-CPMw15lU.js} +5 -5
  370. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-C_tNqXQW.js} +1 -1
  371. package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-DH_N-8yY.js} +1 -1
  372. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CRbS8UkN.js} +1 -1
  373. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-DJgdZPZn.js} +1 -1
  374. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-vhL1y5zx.js} +1 -1
  375. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-UQthhFwd.js} +1 -1
  376. package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CAywEm20.js} +1 -1
  377. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-lfJQHw-7.js +1 -0
  378. package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-CLO8b3FD.js} +1 -1
  379. package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BNAAh0Mu.js} +1 -1
  380. package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CUY7bLpN.js} +1 -1
  381. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-CSg_ORdW.js} +1 -1
  382. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-BjffV208.js} +1 -1
  383. package/web-shell/index.html +2 -2
  384. package/chunks/MaxSizedBox-INHRH72H.js +0 -86
  385. package/chunks/agent-VXDAN5JK.js +0 -82
  386. package/chunks/agent-headless-K4ZMMNBD.js +0 -76
  387. package/chunks/bridge-LGPZCFHO.js +0 -91
  388. package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
  389. package/chunks/chunk-HGT6JR3U.js +0 -177
  390. package/chunks/chunk-JZA3JUDJ.js +0 -82
  391. package/chunks/chunk-SZRN75WQ.js +0 -29
  392. package/chunks/chunk-UGYMA4EI.js +0 -219
  393. package/chunks/chunk-VCBZUOSI.js +0 -8575
  394. package/chunks/contextCommand-QIZYHDR5.js +0 -81
  395. package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
  396. package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
  397. package/chunks/environment-VZ7BRI4Q.js +0 -103
  398. package/chunks/errors-PCX25DVP.js +0 -89
  399. package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
  400. package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
  401. package/chunks/i18n-XEQVMRKN.js +0 -98
  402. package/chunks/initializer-OVGZ4FLY.js +0 -87
  403. package/chunks/installationInfo-5UUQJI6Y.js +0 -81
  404. package/chunks/list-HODU6RXD.js +0 -90
  405. package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
  406. package/chunks/mcp-J3DFWX4A.js +0 -84
  407. package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
  408. package/chunks/pidfile-4VNAR3EP.js +0 -87
  409. package/chunks/read-file-LZXUR4TO.js +0 -31
  410. package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
  411. package/chunks/ripGrep-2U2FRGMV.js +0 -74
  412. package/chunks/runtime-AXJWIEDU.js +0 -120
  413. package/chunks/serve-W2GC47CM.js +0 -90
  414. package/chunks/shell-45IPBDP5.js +0 -84
  415. package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
  416. package/chunks/src-AY65BYR7.js +0 -3166
  417. package/chunks/standalone-update-ZMFNKAEY.js +0 -93
  418. package/chunks/task-create-N7WQSGYA.js +0 -25
  419. package/chunks/theme-manager-YYPZFBAH.js +0 -78
  420. package/chunks/total-session-admission-JXES723M.js +0 -85
  421. package/chunks/trustedFolders-HVI7IXUH.js +0 -94
  422. package/chunks/updateCheck-WUJGHWZZ.js +0 -93
  423. package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
  424. package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
  425. package/chunks/workspace-registry-A7NQUONG.js +0 -89
  426. package/chunks/workspace-service-STGVSO4N.js +0 -99
  427. package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
  428. package/chunks/write-file-HUUCEG4P.js +0 -74
  429. package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
  430. package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
  431. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
  432. package/web-shell/assets/index-B2bXx96W.js +0 -1249
  433. package/web-shell/assets/index-_8mKjx8q.css +0 -5
  434. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
  435. package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
  436. package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
  437. /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
@@ -1,5 +1,8 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ import {
4
+ contextCommand
5
+ } from "./chunk-7K2WTPQO.js";
3
6
  import {
4
7
  ExtensionRefreshState,
5
8
  clearSkillArgs,
@@ -9,34 +12,32 @@ import {
9
12
  staleArgsWarning,
10
13
  validateAuthMethod,
11
14
  writeSkillArgs
12
- } from "./chunk-BYFNTGKI.js";
13
- import {
14
- isKittyProtocolEnabled
15
- } from "./chunk-PQNHRFJC.js";
16
- import {
17
- contextCommand
18
- } from "./chunk-5THCYPLO.js";
15
+ } from "./chunk-VS3GXRNZ.js";
19
16
  import {
20
17
  calculateCost,
21
18
  computeSessionStats,
22
19
  diffCommand,
23
20
  filterCommandsForMode,
21
+ findInlineMathExpressions,
24
22
  getSystemInfoFields,
25
23
  levelLabel
26
- } from "./chunk-52O2CIUL.js";
24
+ } from "./chunk-7IYLHTTM.js";
25
+ import {
26
+ isKittyProtocolEnabled
27
+ } from "./chunk-NYX53SV4.js";
27
28
  import {
28
29
  VSCODE_SHIFT_ENTER_SEQUENCE,
29
30
  writeOsc52
30
- } from "./chunk-J56UI34H.js";
31
- import {
32
- rollbackStandaloneUpdate
33
- } from "./chunk-ZE5WPL4I.js";
31
+ } from "./chunk-3LGZEYOF.js";
34
32
  import {
35
33
  themeManager
36
- } from "./chunk-L5UHQJTJ.js";
34
+ } from "./chunk-KKN2IE7Q.js";
37
35
  import {
38
36
  getErrorMessage as getErrorMessage2
39
- } from "./chunk-VFSJ5VRH.js";
37
+ } from "./chunk-PHODQP2V.js";
38
+ import {
39
+ rollbackStandaloneUpdate
40
+ } from "./chunk-ZRFJ75D7.js";
40
41
  import {
41
42
  GITHUB_WORKFLOW_PATHS,
42
43
  INSIGHT_CSS,
@@ -50,11 +51,11 @@ import {
50
51
  toJson,
51
52
  toJsonl,
52
53
  toMarkdown
53
- } from "./chunk-DM22XS4K.js";
54
+ } from "./chunk-UOFFZNXV.js";
54
55
  import {
55
56
  stripUnsafeCharacters,
56
57
  toCodePoints
57
- } from "./chunk-IPUUTYMV.js";
58
+ } from "./chunk-4NFY2S7N.js";
58
59
  import {
59
60
  formatUnsupportedVoiceModelMessage,
60
61
  getVoiceSettingsScope,
@@ -62,24 +63,20 @@ import {
62
63
  isVoiceEnabled,
63
64
  readVoiceMode,
64
65
  readVoiceModel
65
- } from "./chunk-KIUFNBHR.js";
66
+ } from "./chunk-XSA5EKTJ.js";
66
67
  import {
67
68
  getExtendedSystemInfo,
68
69
  getGitVersion,
69
70
  getNpmVersion
70
- } from "./chunk-SASBXAQL.js";
71
+ } from "./chunk-GHJM2C2T.js";
71
72
  import {
72
73
  formatDuration,
73
- formatMemoryUsage,
74
74
  formatTokenCount
75
- } from "./chunk-E5Z2AVNV.js";
75
+ } from "./chunk-3SH53ANB.js";
76
76
  import {
77
77
  isInlineModelOverrideAllowed,
78
78
  parseAcpModelOption
79
- } from "./chunk-LG4GZIVV.js";
80
- import {
81
- getInstallationInfo
82
- } from "./chunk-LNARWLZQ.js";
79
+ } from "./chunk-AYB4HSBI.js";
83
80
  import {
84
81
  OUTPUT_LANGUAGE_AUTO,
85
82
  getAllSettingKeys,
@@ -91,7 +88,7 @@ import {
91
88
  resolveOutputLanguageOrPreserveAuto,
92
89
  validateSettingValue,
93
90
  writeOutputLanguageAndRegisterPath
94
- } from "./chunk-JALU3ZDU.js";
91
+ } from "./chunk-LAPK3GLC.js";
95
92
  import {
96
93
  SUPPORTED_LANGUAGES,
97
94
  getCurrentLanguage,
@@ -99,11 +96,14 @@ import {
99
96
  resolveSupportedLanguage,
100
97
  setLanguageAsync,
101
98
  t
102
- } from "./chunk-VV6XU5L7.js";
99
+ } from "./chunk-CHCLO3M7.js";
100
+ import {
101
+ getInstallationInfo
102
+ } from "./chunk-25QQVOCG.js";
103
103
  import {
104
104
  isFolderTrustEnabled,
105
105
  loadTrustedFolders
106
- } from "./chunk-VCBZUOSI.js";
106
+ } from "./chunk-434YCHSV.js";
107
107
  import {
108
108
  require_strip_json_comments
109
109
  } from "./chunk-ALGGS7UH.js";
@@ -137,6 +137,7 @@ import {
137
137
  escapeShellArg,
138
138
  findProviderByCredentials,
139
139
  flatMapTextParts,
140
+ formatMemoryUsage,
140
141
  generateSessionRecap,
141
142
  getActiveGoal,
142
143
  getArenaSystemReminder,
@@ -161,7 +162,6 @@ import {
161
162
  normalizeClaudeMcpServer,
162
163
  normalizeContent,
163
164
  normalizeSkillPriority,
164
- parse,
165
165
  parseInstallSource,
166
166
  parseLearnVideoInput,
167
167
  parseVisionModelSetting,
@@ -174,36 +174,44 @@ import {
174
174
  runForkedAgent,
175
175
  tryGenerateSessionTitle,
176
176
  unregisterGoalHook
177
- } from "./chunk-DM4Q4JJH.js";
177
+ } from "./chunk-NGWYUZZO.js";
178
178
  import {
179
179
  external_exports
180
180
  } from "./chunk-H6XPXXMH.js";
181
181
  import {
182
182
  resolveModelId
183
- } from "./chunk-PSWQZHEA.js";
183
+ } from "./chunk-PXA5AWHY.js";
184
184
  import {
185
- APPROVAL_MODES,
186
- FORK_SUBAGENT_TYPE,
187
- stripStartupContext
188
- } from "./chunk-L26JL52R.js";
185
+ getAutoSkillCuratorStatus,
186
+ parse,
187
+ recordAutoSkillUsage,
188
+ restoreArchivedAutoSkill,
189
+ runAutoSkillCurator,
190
+ setAutoSkillPinned
191
+ } from "./chunk-MISUEWB4.js";
189
192
  import {
190
193
  HookEventName,
191
194
  sanitizeUserPromptExpansionAdditionalContext
192
- } from "./chunk-3QMGYBFN.js";
195
+ } from "./chunk-A5YZ3FA2.js";
196
+ import {
197
+ APPROVAL_MODES,
198
+ FORK_SUBAGENT_TYPE,
199
+ stripStartupContext
200
+ } from "./chunk-PGEGUNH5.js";
193
201
  import {
194
202
  applySkillAllowedTools,
195
203
  buildSkillLlmContent
196
- } from "./chunk-JCW2R7WC.js";
204
+ } from "./chunk-K623ENWT.js";
197
205
  import {
198
206
  openBrowserSecurely
199
- } from "./chunk-JESCGQM3.js";
207
+ } from "./chunk-NAVJD2PQ.js";
200
208
  import {
201
209
  REASONING_EFFORT_TIERS,
202
210
  normalizeReasoningEffort
203
- } from "./chunk-XVNQMZ2I.js";
211
+ } from "./chunk-DGEIYUC3.js";
204
212
  import {
205
213
  resolveOpenAILogDir
206
- } from "./chunk-YAF5VNU7.js";
214
+ } from "./chunk-XCLLRKY5.js";
207
215
  import {
208
216
  IdeConnectionEvent,
209
217
  formatTokenUsageSummaryAsCsv,
@@ -217,14 +225,14 @@ import {
217
225
  recordSkillInvocation,
218
226
  runSideQuery,
219
227
  uiTelemetryService
220
- } from "./chunk-RWS5VYWC.js";
228
+ } from "./chunk-M2F5PLOW.js";
221
229
  import {
222
230
  getAutoMemoryRoot
223
- } from "./chunk-MUP3T3AD.js";
231
+ } from "./chunk-E4WHKETF.js";
224
232
  import {
225
233
  ToolNames,
226
234
  isShellProgressData
227
- } from "./chunk-PR75REBZ.js";
235
+ } from "./chunk-I5GNT6ZS.js";
228
236
  import {
229
237
  Storage,
230
238
  createDebugLogger,
@@ -233,12 +241,12 @@ import {
233
241
  isSubpath,
234
242
  resolvePath,
235
243
  updateSymlink
236
- } from "./chunk-NL7LTRLR.js";
244
+ } from "./chunk-3RXUYQJI.js";
237
245
  import {
238
246
  isCpuProfileRecording,
239
247
  startCpuProfile,
240
248
  stopCpuProfile
241
- } from "./chunk-32MVHM4T.js";
249
+ } from "./chunk-W7XZ3KP5.js";
242
250
  import {
243
251
  init_esbuild_shims
244
252
  } from "./chunk-5O2XNYP6.js";
@@ -250,6 +258,108 @@ import {
250
258
  // packages/cli/src/ui/utils/commandUtils.ts
251
259
  init_esbuild_shims();
252
260
  import { spawn } from "node:child_process";
261
+
262
+ // packages/cli/src/utils/commands.ts
263
+ init_esbuild_shims();
264
+ var MAX_STACKED_SKILLS = 5;
265
+ var isStackedSkillCompletableCommand = /* @__PURE__ */ __name((command) => command.kind === "skill" /* SKILL */ && command.userInvocable !== false && !command.hidden, "isStackedSkillCompletableCommand");
266
+ var isValidStackedSkillPrefix = /* @__PURE__ */ __name((prefix, commands) => {
267
+ const trimmed = prefix.trim();
268
+ if (!trimmed) return false;
269
+ const tokens = trimmed.split(/\s+/);
270
+ if (tokens.length >= MAX_STACKED_SKILLS) return false;
271
+ return tokens.every((token) => {
272
+ if (!token.startsWith("/")) return false;
273
+ const command = findCommandByName(token.slice(1), commands);
274
+ return command !== void 0 && isStackedSkillCompletableCommand(command);
275
+ });
276
+ }, "isValidStackedSkillPrefix");
277
+ var parseSlashCommand = /* @__PURE__ */ __name((query, commands) => {
278
+ const trimmed = query.trim();
279
+ const commandText = trimmed.substring(1).trim();
280
+ const parts = commandText.split(/\s+/);
281
+ const commandPath = parts.filter((p) => p);
282
+ let currentCommands = commands;
283
+ let commandToExecute;
284
+ let pathIndex = 0;
285
+ const canonicalPath = [];
286
+ let argsStart = 0;
287
+ for (const part of commandPath) {
288
+ let foundCommand = currentCommands.find((cmd) => cmd.name === part);
289
+ if (!foundCommand) {
290
+ foundCommand = currentCommands.find(
291
+ (cmd) => cmd.altNames?.includes(part)
292
+ );
293
+ }
294
+ if (foundCommand) {
295
+ commandToExecute = foundCommand;
296
+ canonicalPath.push(foundCommand.name);
297
+ pathIndex++;
298
+ const partIndex = commandText.indexOf(part, argsStart);
299
+ argsStart = partIndex + part.length;
300
+ if (foundCommand.subCommands) {
301
+ currentCommands = foundCommand.subCommands;
302
+ } else {
303
+ break;
304
+ }
305
+ } else {
306
+ break;
307
+ }
308
+ }
309
+ const args = commandToExecute ? commandText.slice(argsStart).trim() : parts.slice(pathIndex).join(" ");
310
+ return { commandToExecute, args, canonicalPath };
311
+ }, "parseSlashCommand");
312
+ var parseStackedSlashCommands = /* @__PURE__ */ __name((query, commands) => {
313
+ const trimmed = query.trim();
314
+ if (!trimmed.startsWith("/")) {
315
+ return { skills: [], remainingText: trimmed, exceededMax: false };
316
+ }
317
+ const commandText = trimmed.substring(1);
318
+ const skills = [];
319
+ let pos = 0;
320
+ let restPos = 0;
321
+ let exceededMax = false;
322
+ while (pos < commandText.length) {
323
+ while (pos < commandText.length && /\s/.test(commandText[pos])) pos++;
324
+ if (pos >= commandText.length) {
325
+ restPos = pos;
326
+ break;
327
+ }
328
+ const tokenStart = pos;
329
+ while (pos < commandText.length && !/\s/.test(commandText[pos])) pos++;
330
+ const token = commandText.slice(tokenStart, pos);
331
+ if (skills.length === 0) {
332
+ if (token.startsWith("/")) break;
333
+ const cmd2 = findCommandByName(token, commands);
334
+ if (!cmd2 || cmd2.kind !== "skill" /* SKILL */) break;
335
+ skills.push(cmd2);
336
+ restPos = pos;
337
+ continue;
338
+ }
339
+ if (!token.startsWith("/")) break;
340
+ const name = token.substring(1);
341
+ if (!name) break;
342
+ const cmd = findCommandByName(name, commands);
343
+ if (!cmd || cmd.kind !== "skill" /* SKILL */) break;
344
+ if (skills.length >= MAX_STACKED_SKILLS) {
345
+ exceededMax = true;
346
+ break;
347
+ }
348
+ skills.push(cmd);
349
+ restPos = pos;
350
+ }
351
+ if (skills.length < 2) {
352
+ return { skills: [], remainingText: trimmed, exceededMax: false };
353
+ }
354
+ const afterSkills = commandText.slice(restPos).trim();
355
+ return { skills, remainingText: afterSkills, exceededMax };
356
+ }, "parseStackedSlashCommands");
357
+ function findCommandByName(name, commands) {
358
+ return commands.find((cmd) => cmd.name === name) ?? commands.find((cmd) => cmd.altNames?.includes(name));
359
+ }
360
+ __name(findCommandByName, "findCommandByName");
361
+
362
+ // packages/cli/src/ui/utils/commandUtils.ts
253
363
  var CodePage = {
254
364
  UTF8: 65001,
255
365
  GBK: 936,
@@ -377,7 +487,6 @@ function isMidInputCompletableCommand(cmd) {
377
487
  }
378
488
  __name(isMidInputCompletableCommand, "isMidInputCompletableCommand");
379
489
  function findMidInputSlashCommand(input, cursorOffset) {
380
- if (input.startsWith("/")) return null;
381
490
  const codePoints = toCodePoints(input);
382
491
  const beforeCursor = codePoints.slice(0, cursorOffset).join("");
383
492
  const match = beforeCursor.match(/\s\/([a-zA-Z0-9_:-]*)$/);
@@ -445,7 +554,8 @@ function findSlashCommandTokens(text, commands) {
445
554
  if (isLineStart) {
446
555
  valid = cmd.userInvocable !== false && !cmd.hidden;
447
556
  } else {
448
- valid = cmd.modelInvocable === true;
557
+ const prefix = text.slice(0, start);
558
+ valid = cmd.modelInvocable === true || isStackedSkillCompletableCommand(cmd) && isValidStackedSkillPrefix(prefix, commands);
449
559
  }
450
560
  }
451
561
  tokens.push({ start, end, commandName, valid });
@@ -457,94 +567,6 @@ __name(findSlashCommandTokens, "findSlashCommandTokens");
457
567
  // packages/cli/src/nonInteractiveCliCommands.ts
458
568
  init_esbuild_shims();
459
569
 
460
- // packages/cli/src/utils/commands.ts
461
- init_esbuild_shims();
462
- var MAX_STACKED_SKILLS = 5;
463
- var parseSlashCommand = /* @__PURE__ */ __name((query, commands) => {
464
- const trimmed = query.trim();
465
- const commandText = trimmed.substring(1).trim();
466
- const parts = commandText.split(/\s+/);
467
- const commandPath = parts.filter((p) => p);
468
- let currentCommands = commands;
469
- let commandToExecute;
470
- let pathIndex = 0;
471
- const canonicalPath = [];
472
- let argsStart = 0;
473
- for (const part of commandPath) {
474
- let foundCommand = currentCommands.find((cmd) => cmd.name === part);
475
- if (!foundCommand) {
476
- foundCommand = currentCommands.find(
477
- (cmd) => cmd.altNames?.includes(part)
478
- );
479
- }
480
- if (foundCommand) {
481
- commandToExecute = foundCommand;
482
- canonicalPath.push(foundCommand.name);
483
- pathIndex++;
484
- const partIndex = commandText.indexOf(part, argsStart);
485
- argsStart = partIndex + part.length;
486
- if (foundCommand.subCommands) {
487
- currentCommands = foundCommand.subCommands;
488
- } else {
489
- break;
490
- }
491
- } else {
492
- break;
493
- }
494
- }
495
- const args = commandToExecute ? commandText.slice(argsStart).trim() : parts.slice(pathIndex).join(" ");
496
- return { commandToExecute, args, canonicalPath };
497
- }, "parseSlashCommand");
498
- var parseStackedSlashCommands = /* @__PURE__ */ __name((query, commands) => {
499
- const trimmed = query.trim();
500
- if (!trimmed.startsWith("/")) {
501
- return { skills: [], remainingText: trimmed, exceededMax: false };
502
- }
503
- const commandText = trimmed.substring(1);
504
- const skills = [];
505
- let pos = 0;
506
- let restPos = 0;
507
- let exceededMax = false;
508
- while (pos < commandText.length) {
509
- while (pos < commandText.length && /\s/.test(commandText[pos])) pos++;
510
- if (pos >= commandText.length) {
511
- restPos = pos;
512
- break;
513
- }
514
- const tokenStart = pos;
515
- while (pos < commandText.length && !/\s/.test(commandText[pos])) pos++;
516
- const token = commandText.slice(tokenStart, pos);
517
- if (skills.length === 0) {
518
- if (token.startsWith("/")) break;
519
- const cmd2 = findCommandByName(token, commands);
520
- if (!cmd2 || cmd2.kind !== "skill" /* SKILL */) break;
521
- skills.push(cmd2);
522
- restPos = pos;
523
- continue;
524
- }
525
- if (!token.startsWith("/")) break;
526
- const name = token.substring(1);
527
- if (!name) break;
528
- const cmd = findCommandByName(name, commands);
529
- if (!cmd || cmd.kind !== "skill" /* SKILL */) break;
530
- if (skills.length >= MAX_STACKED_SKILLS) {
531
- exceededMax = true;
532
- break;
533
- }
534
- skills.push(cmd);
535
- restPos = pos;
536
- }
537
- if (skills.length < 2) {
538
- return { skills: [], remainingText: trimmed, exceededMax: false };
539
- }
540
- const afterSkills = commandText.slice(restPos).trim();
541
- return { skills, remainingText: afterSkills, exceededMax };
542
- }, "parseStackedSlashCommands");
543
- function findCommandByName(name, commands) {
544
- return commands.find((cmd) => cmd.name === name) ?? commands.find((cmd) => cmd.altNames?.includes(name));
545
- }
546
- __name(findCommandByName, "findCommandByName");
547
-
548
570
  // packages/cli/src/services/CommandService.ts
549
571
  init_esbuild_shims();
550
572
  var debugLogger2 = createDebugLogger("CLI_COMMANDS");
@@ -820,6 +842,7 @@ var aboutCommand = {
820
842
  },
821
843
  kind: "built-in" /* BUILT_IN */,
822
844
  supportedModes: ["interactive", "non_interactive", "acp"],
845
+ canRunDuringStreaming: true,
823
846
  action: /* @__PURE__ */ __name(async (context) => {
824
847
  const systemInfo = await getExtendedSystemInfo(context);
825
848
  if (context.executionMode !== "interactive") {
@@ -856,6 +879,7 @@ var aboutCommand = {
856
879
  },
857
880
  kind: "built-in" /* BUILT_IN */,
858
881
  supportedModes: ["interactive", "non_interactive", "acp"],
882
+ canRunDuringStreaming: true,
859
883
  action: /* @__PURE__ */ __name(async (context) => {
860
884
  const info = await collectSessionPathInfo(context);
861
885
  const content = formatSessionPathInfo(info);
@@ -1088,6 +1112,7 @@ function snapshotToTask(s) {
1088
1112
  tokensSpent: s.tokensSpent ?? 0,
1089
1113
  tokenBudgetTotal: s.tokenBudgetTotal ?? null,
1090
1114
  perPhaseTokens: new Map(s.perPhaseTokens ?? []),
1115
+ pendingApprovals: [],
1091
1116
  script: s.script ?? "",
1092
1117
  scriptPath: s.scriptPath,
1093
1118
  result: s.result,
@@ -1561,8 +1586,8 @@ function executeArenaCommand(config, ui, input) {
1561
1586
  debugLogger4.debug("Arena agents settled");
1562
1587
  },
1563
1588
  (error) => {
1564
- const message = error instanceof Error ? error.message : String(error);
1565
- addAndRecordArenaMessage("error" /* ERROR */, `${message}`);
1589
+ const message2 = error instanceof Error ? error.message : String(error);
1590
+ addAndRecordArenaMessage("error" /* ERROR */, `${message2}`);
1566
1591
  debugLogger4.error("Arena session failed:", error);
1567
1592
  config.setArenaManager(null);
1568
1593
  for (const detach of detachListeners) {
@@ -1918,7 +1943,7 @@ var approvalModeCommand = {
1918
1943
  };
1919
1944
  }
1920
1945
  }
1921
- const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-CHSTZLZD.js") : void 0;
1946
+ const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-ZGD6BJSP.js") : void 0;
1922
1947
  if (config) {
1923
1948
  try {
1924
1949
  config.setApprovalMode(mode);
@@ -2617,6 +2642,11 @@ var cdCommand = {
2617
2642
  `Memory refresh failed: ${relocation.memoryRefreshError instanceof Error ? relocation.memoryRefreshError.message : String(relocation.memoryRefreshError)}`
2618
2643
  );
2619
2644
  }
2645
+ if (relocation.mcpRefreshError) {
2646
+ warnings.push(
2647
+ `MCP refresh failed: ${relocation.mcpRefreshError instanceof Error ? relocation.mcpRefreshError.message : String(relocation.mcpRefreshError)}`
2648
+ );
2649
+ }
2620
2650
  } catch (error) {
2621
2651
  return {
2622
2652
  type: "message",
@@ -2625,7 +2655,16 @@ var cdCommand = {
2625
2655
  };
2626
2656
  }
2627
2657
  if (trustedTargetPath) {
2628
- loadTrustedFolders().setValue(trustedTargetPath, "TRUST_FOLDER" /* TRUST_FOLDER */);
2658
+ try {
2659
+ loadTrustedFolders().setValue(
2660
+ trustedTargetPath,
2661
+ "TRUST_FOLDER" /* TRUST_FOLDER */
2662
+ );
2663
+ } catch (error) {
2664
+ warnings.push(
2665
+ `Trust setting update failed: ${error instanceof Error ? error.message : String(error)}`
2666
+ );
2667
+ }
2629
2668
  }
2630
2669
  try {
2631
2670
  await config.getGeminiClient()?.addWorkingDirectoryChangedContext(realOldDir, realTargetPath);
@@ -3013,17 +3052,17 @@ var configCommand = {
3013
3052
  })
3014
3053
  };
3015
3054
  }
3016
- let message2 = t("Set {{key}} = {{value}}", {
3055
+ let message3 = t("Set {{key}} = {{value}}", {
3017
3056
  key,
3018
3057
  value: String(newValue)
3019
3058
  });
3020
3059
  if (def.requiresRestart) {
3021
- message2 += "\n" + t("(This setting requires a restart to take effect.)");
3060
+ message3 += "\n" + t("(This setting requires a restart to take effect.)");
3022
3061
  }
3023
3062
  return {
3024
3063
  type: "message",
3025
3064
  messageType: "info",
3026
- content: message2
3065
+ content: message3
3027
3066
  };
3028
3067
  }
3029
3068
  const result = coerceValue(def, rawValue);
@@ -3058,22 +3097,22 @@ var configCommand = {
3058
3097
  };
3059
3098
  }
3060
3099
  const displayValue = isSensitiveKey(key) ? maskValue(result.value) : formatValue(result.value);
3061
- let message = t("Set {{key}} = {{value}}", {
3100
+ let message2 = t("Set {{key}} = {{value}}", {
3062
3101
  key,
3063
3102
  value: displayValue
3064
3103
  });
3065
3104
  if (def.requiresRestart) {
3066
- message += "\n" + t("(This setting requires a restart to take effect.)");
3105
+ message2 += "\n" + t("(This setting requires a restart to take effect.)");
3067
3106
  }
3068
3107
  if (isSensitiveKey(key)) {
3069
- message += "\n" + t(
3108
+ message2 += "\n" + t(
3070
3109
  "(Security-sensitive setting \u2014 verify you are not exposing credentials.)"
3071
3110
  );
3072
3111
  }
3073
3112
  return {
3074
3113
  type: "message",
3075
3114
  messageType: "info",
3076
- content: message
3115
+ content: message2
3077
3116
  };
3078
3117
  }, "action"),
3079
3118
  completion: /* @__PURE__ */ __name(async (_context, partialArg) => {
@@ -3434,13 +3473,292 @@ var compressFastCommand = {
3434
3473
  }, "action")
3435
3474
  };
3436
3475
 
3476
+ // packages/cli/src/ui/commands/curator-command.ts
3477
+ init_esbuild_shims();
3478
+ function message(content, messageType = "info") {
3479
+ return { type: "message", messageType, content };
3480
+ }
3481
+ __name(message, "message");
3482
+ function mutationGuard(config) {
3483
+ if (config.isSafeMode()) {
3484
+ return message(
3485
+ t("Auto-skill curator changes are disabled in safe mode."),
3486
+ "error"
3487
+ );
3488
+ }
3489
+ if (!config.isTrustedFolder()) {
3490
+ return message(
3491
+ t(
3492
+ "Auto-skill curator changes are only available in trusted workspaces. Trust this folder via `/trust` and try again."
3493
+ ),
3494
+ "error"
3495
+ );
3496
+ }
3497
+ return void 0;
3498
+ }
3499
+ __name(mutationGuard, "mutationGuard");
3500
+ async function refreshSkillCache(config) {
3501
+ try {
3502
+ await config.getSkillManager()?.refreshCache();
3503
+ } catch {
3504
+ }
3505
+ }
3506
+ __name(refreshSkillCache, "refreshSkillCache");
3507
+ function displayName(entry) {
3508
+ return entry.skillName === entry.directoryName ? entry.directoryName : `${entry.skillName} (${entry.directoryName})`;
3509
+ }
3510
+ __name(displayName, "displayName");
3511
+ function formatStatus(status) {
3512
+ const lines = [
3513
+ t("Auto-skill curator"),
3514
+ t("Last run: {{time}}", { time: status.lastRunAt ?? t("never") }),
3515
+ t("Active: {{count}}", { count: String(status.active.length) }),
3516
+ t("Stale: {{count}}", { count: String(status.stale.length) }),
3517
+ t("Archived: {{count}}", { count: String(status.archived.length) })
3518
+ ];
3519
+ if (status.stale.length > 0) {
3520
+ lines.push("", t("Stale skills:"));
3521
+ lines.push(...status.stale.map((entry) => ` ${displayName(entry)}`));
3522
+ }
3523
+ const pinned = [...status.active, ...status.stale].filter(
3524
+ (entry) => entry.pinned
3525
+ );
3526
+ if (pinned.length > 0) {
3527
+ lines.push("", t("Pinned skills:"));
3528
+ lines.push(...pinned.map((entry) => ` ${displayName(entry)}`));
3529
+ }
3530
+ if (status.archived.length > 0) {
3531
+ lines.push("", t("Archived skills:"));
3532
+ lines.push(...status.archived.map((entry) => ` ${displayName(entry)}`));
3533
+ }
3534
+ return lines.join("\n");
3535
+ }
3536
+ __name(formatStatus, "formatStatus");
3537
+ function formatRun(result) {
3538
+ const prefix = result.dryRun ? t("Dry run complete.") : t("Curator run complete.");
3539
+ const lines = [
3540
+ prefix,
3541
+ t("Checked: {{count}}", { count: String(result.checked) }),
3542
+ t("First observed: {{count}}", { count: String(result.seeded.length) }),
3543
+ t("Marked stale: {{count}}", {
3544
+ count: String(result.markedStale.length)
3545
+ }),
3546
+ t("Reactivated: {{count}}", {
3547
+ count: String(result.reactivated.length)
3548
+ }),
3549
+ t("{{verb}}: {{count}}", {
3550
+ verb: result.dryRun ? t("Would archive") : t("Archived"),
3551
+ count: String(result.archived.length)
3552
+ }),
3553
+ t("Skipped archive collisions: {{count}}", {
3554
+ count: String(result.skippedCollisions.length)
3555
+ }),
3556
+ t("Skipped rename errors: {{count}}", {
3557
+ count: String(result.skippedErrors.length)
3558
+ })
3559
+ ];
3560
+ if (result.archived.length > 0) {
3561
+ lines.push(
3562
+ "",
3563
+ result.dryRun ? t("Archive candidates:") : t("Archived skills:")
3564
+ );
3565
+ lines.push(...result.archived.map((name) => ` ${name}`));
3566
+ }
3567
+ if (result.skippedCollisions.length > 0) {
3568
+ lines.push("", t("Skipped archive collisions:"));
3569
+ lines.push(
3570
+ ...result.skippedCollisions.map(
3571
+ (name) => ` ${name} \u2014 remove or rename .qwen/archived-skills/${name} to re-archive`
3572
+ )
3573
+ );
3574
+ }
3575
+ if (result.skippedErrors.length > 0) {
3576
+ lines.push("", t("Skipped rename errors:"));
3577
+ lines.push(...result.skippedErrors.map((name) => ` ${name}`));
3578
+ }
3579
+ return lines.join("\n");
3580
+ }
3581
+ __name(formatRun, "formatRun");
3582
+ async function statusAction(context) {
3583
+ const config = context.services.config;
3584
+ if (!config) return message(t("Config not loaded."), "error");
3585
+ try {
3586
+ return message(
3587
+ formatStatus(await getAutoSkillCuratorStatus(config.getProjectRoot()))
3588
+ );
3589
+ } catch (error) {
3590
+ return message(
3591
+ t("Failed to read auto-skill curator status: {{message}}", {
3592
+ message: error instanceof Error ? error.message : String(error)
3593
+ }),
3594
+ "error"
3595
+ );
3596
+ }
3597
+ }
3598
+ __name(statusAction, "statusAction");
3599
+ var statusCommand = {
3600
+ name: "status",
3601
+ get description() {
3602
+ return t("Show project auto-skill lifecycle status.");
3603
+ },
3604
+ kind: "built-in" /* BUILT_IN */,
3605
+ supportedModes: ["interactive", "non_interactive", "acp"],
3606
+ action: statusAction
3607
+ };
3608
+ var runCommand = {
3609
+ name: "run",
3610
+ get description() {
3611
+ return t("Run project auto-skill lifecycle maintenance.");
3612
+ },
3613
+ argumentHint: "[--dry-run]",
3614
+ kind: "built-in" /* BUILT_IN */,
3615
+ supportedModes: ["interactive", "non_interactive", "acp"],
3616
+ action: /* @__PURE__ */ __name(async (context, args) => {
3617
+ const config = context.services.config;
3618
+ if (!config) return message(t("Config not loaded."), "error");
3619
+ const normalized = args.trim();
3620
+ if (normalized !== "" && normalized !== "--dry-run") {
3621
+ return message(t("Usage: /curator run [--dry-run]"), "error");
3622
+ }
3623
+ if (normalized !== "--dry-run") {
3624
+ const blocked = mutationGuard(config);
3625
+ if (blocked) return blocked;
3626
+ }
3627
+ try {
3628
+ const result = await runAutoSkillCurator(config.getProjectRoot(), {
3629
+ dryRun: normalized === "--dry-run"
3630
+ });
3631
+ if (!result.dryRun && result.archived.length > 0) {
3632
+ await refreshSkillCache(config);
3633
+ }
3634
+ return message(formatRun(result));
3635
+ } catch (error) {
3636
+ return message(
3637
+ t("Failed to run auto-skill curator: {{message}}", {
3638
+ message: error instanceof Error ? error.message : String(error)
3639
+ }),
3640
+ "error"
3641
+ );
3642
+ }
3643
+ }, "action")
3644
+ };
3645
+ var restoreCommand = {
3646
+ name: "restore",
3647
+ get description() {
3648
+ return t("Restore an archived project auto-skill.");
3649
+ },
3650
+ argumentHint: "<directory>",
3651
+ kind: "built-in" /* BUILT_IN */,
3652
+ supportedModes: ["interactive", "non_interactive", "acp"],
3653
+ action: /* @__PURE__ */ __name(async (context, args) => {
3654
+ const config = context.services.config;
3655
+ if (!config) return message(t("Config not loaded."), "error");
3656
+ const directoryName = args.trim();
3657
+ if (!directoryName) {
3658
+ return message(t("Usage: /curator restore <directory>"), "error");
3659
+ }
3660
+ const blocked = mutationGuard(config);
3661
+ if (blocked) return blocked;
3662
+ try {
3663
+ await restoreArchivedAutoSkill(config.getProjectRoot(), directoryName);
3664
+ await refreshSkillCache(config);
3665
+ return message(
3666
+ t("Restored auto-skill: {{name}}", { name: directoryName })
3667
+ );
3668
+ } catch (error) {
3669
+ return message(
3670
+ t("Failed to restore auto-skill: {{message}}", {
3671
+ message: error instanceof Error ? error.message : String(error)
3672
+ }),
3673
+ "error"
3674
+ );
3675
+ }
3676
+ }, "action"),
3677
+ completion: /* @__PURE__ */ __name(async (context, partialArg) => {
3678
+ const config = context.services.config;
3679
+ if (!config) return [];
3680
+ try {
3681
+ const status = await getAutoSkillCuratorStatus(config.getProjectRoot());
3682
+ return status.archived.map((entry) => entry.directoryName).filter((name) => name.startsWith(partialArg));
3683
+ } catch {
3684
+ return [];
3685
+ }
3686
+ }, "completion")
3687
+ };
3688
+ function pinCommand(name, pinned) {
3689
+ return {
3690
+ name,
3691
+ get description() {
3692
+ return pinned ? t("Exclude an auto-skill from automatic maintenance.") : t("Return a pinned auto-skill to automatic maintenance.");
3693
+ },
3694
+ argumentHint: "<directory>",
3695
+ kind: "built-in" /* BUILT_IN */,
3696
+ supportedModes: ["interactive", "non_interactive", "acp"],
3697
+ action: /* @__PURE__ */ __name(async (context, args) => {
3698
+ const config = context.services.config;
3699
+ if (!config) return message(t("Config not loaded."), "error");
3700
+ const directoryName = args.trim();
3701
+ if (!directoryName) {
3702
+ return message(
3703
+ pinned ? t("Usage: /curator pin <directory>") : t("Usage: /curator unpin <directory>"),
3704
+ "error"
3705
+ );
3706
+ }
3707
+ const blocked = mutationGuard(config);
3708
+ if (blocked) return blocked;
3709
+ try {
3710
+ await setAutoSkillPinned(
3711
+ config.getProjectRoot(),
3712
+ directoryName,
3713
+ pinned
3714
+ );
3715
+ return message(
3716
+ pinned ? t("Pinned auto-skill: {{name}}", { name: directoryName }) : t("Unpinned auto-skill: {{name}}", { name: directoryName })
3717
+ );
3718
+ } catch (error) {
3719
+ return message(
3720
+ t("Failed to update auto-skill pin: {{message}}", {
3721
+ message: error instanceof Error ? error.message : String(error)
3722
+ }),
3723
+ "error"
3724
+ );
3725
+ }
3726
+ }, "action"),
3727
+ completion: /* @__PURE__ */ __name(async (context, partialArg) => {
3728
+ const config = context.services.config;
3729
+ if (!config) return [];
3730
+ try {
3731
+ const status = await getAutoSkillCuratorStatus(config.getProjectRoot());
3732
+ return [...status.active, ...status.stale].filter((entry) => entry.pinned !== pinned).map((entry) => entry.directoryName).filter((directoryName) => directoryName.startsWith(partialArg));
3733
+ } catch {
3734
+ return [];
3735
+ }
3736
+ }, "completion")
3737
+ };
3738
+ }
3739
+ __name(pinCommand, "pinCommand");
3740
+ var pinAutoSkillCommand = pinCommand("pin", true);
3741
+ var unpinAutoSkillCommand = pinCommand("unpin", false);
3742
+ var curatorCommand = {
3743
+ name: "curator",
3744
+ get description() {
3745
+ return t("Maintain project auto-skills based on recent use.");
3746
+ },
3747
+ argumentHint: "[status|run [--dry-run]|pin <directory>|unpin <directory>|restore <directory>]",
3748
+ kind: "built-in" /* BUILT_IN */,
3749
+ supportedModes: ["interactive", "non_interactive", "acp"],
3750
+ action: statusAction,
3751
+ subCommands: [
3752
+ statusCommand,
3753
+ runCommand,
3754
+ pinAutoSkillCommand,
3755
+ unpinAutoSkillCommand,
3756
+ restoreCommand
3757
+ ]
3758
+ };
3759
+
3437
3760
  // packages/cli/src/ui/commands/copyCommand.ts
3438
3761
  init_esbuild_shims();
3439
- var INLINE_MATH_MAX_CHARS = 1024;
3440
- var INLINE_MATH_REGEX = new RegExp(
3441
- String.raw`(?<![\w$])\$(?![\s\d$])(?=[^$\n]{1,${INLINE_MATH_MAX_CHARS}}\S\$)([^$\n]{1,${INLINE_MATH_MAX_CHARS}})\$(?![\w$])`,
3442
- "g"
3443
- );
3444
3762
  function parseFencedCodeBlocks(markdown) {
3445
3763
  const blocks = [];
3446
3764
  const lines = markdown.split(/\r?\n/);
@@ -3514,14 +3832,11 @@ function parseInlineLatexExpressions(markdown) {
3514
3832
  inLatexBlock = true;
3515
3833
  continue;
3516
3834
  }
3517
- for (const match of line.matchAll(INLINE_MATH_REGEX)) {
3518
- const content = match[1];
3519
- if (content) {
3520
- expressions.push({
3521
- content,
3522
- index: expressions.length + 1
3523
- });
3524
- }
3835
+ for (const content of findInlineMathExpressions(line)) {
3836
+ expressions.push({
3837
+ content,
3838
+ index: expressions.length + 1
3839
+ });
3525
3840
  }
3526
3841
  }
3527
3842
  return expressions;
@@ -3623,10 +3938,7 @@ function selectCodeBlock(markdown, args) {
3623
3938
  if (blocks.length === 0) return null;
3624
3939
  let lang = null;
3625
3940
  let requestedIndex = null;
3626
- const selectorTokens = firstToken === "code" ? tokens.slice(1) : tokens.map((token) => token);
3627
- if (firstToken !== "code") {
3628
- lang = firstToken;
3629
- }
3941
+ const selectorTokens = firstToken === "code" ? tokens.slice(1) : tokens;
3630
3942
  for (const token of selectorTokens) {
3631
3943
  if (/^\d+$/.test(token)) {
3632
3944
  requestedIndex = Number(token);
@@ -3747,12 +4059,12 @@ var copyCommand = {
3747
4059
  content: selectedCodeBlock ? `${selectedCodeBlock.label} copied to the clipboard` : isIndexed ? `AI message ${messageIndex} copied to the clipboard` : "Last output copied to the clipboard"
3748
4060
  };
3749
4061
  } catch (error) {
3750
- const message = error instanceof Error ? error.message : String(error);
3751
- context.services.config?.getDebugLogger().debug(message);
4062
+ const message2 = error instanceof Error ? error.message : String(error);
4063
+ context.services.config?.getDebugLogger().debug(message2);
3752
4064
  return {
3753
4065
  type: "message",
3754
4066
  messageType: "error",
3755
- content: `Failed to copy to the clipboard. ${message}`
4067
+ content: `Failed to copy to the clipboard. ${message2}`
3756
4068
  };
3757
4069
  }
3758
4070
  } else {
@@ -4596,8 +4908,8 @@ function formatErrorMessage2(error) {
4596
4908
  }
4597
4909
  __name(formatErrorMessage2, "formatErrorMessage");
4598
4910
  function formatHeapSnapshotErrorMessage(error) {
4599
- const message = formatErrorMessage2(error);
4600
- return message.startsWith("Heap snapshot") ? message : `${t("Heap snapshot failed:")} ${message}`;
4911
+ const message2 = formatErrorMessage2(error);
4912
+ return message2.startsWith("Heap snapshot") ? message2 : `${t("Heap snapshot failed:")} ${message2}`;
4601
4913
  }
4602
4914
  __name(formatHeapSnapshotErrorMessage, "formatHeapSnapshotErrorMessage");
4603
4915
  var doctorCommand = {
@@ -6182,6 +6494,7 @@ var helpCommand = {
6182
6494
  altNames: ["?"],
6183
6495
  kind: "built-in" /* BUILT_IN */,
6184
6496
  supportedModes: ["interactive"],
6497
+ canRunDuringStreaming: true,
6185
6498
  get description() {
6186
6499
  return t("for help on Qwen Code");
6187
6500
  },
@@ -6250,7 +6563,7 @@ var expandNowCommand = {
6250
6563
  content: t("History is already expanded in this session.")
6251
6564
  };
6252
6565
  }
6253
- const { expandCollapsedHistory } = await import("./resumeHistoryUtils-65OX3SGJ.js");
6566
+ const { expandCollapsedHistory } = await import("./resumeHistoryUtils-F5BE5QDW.js");
6254
6567
  const updated = expandCollapsedHistory(history);
6255
6568
  loadHistory(updated);
6256
6569
  refreshStatic();
@@ -6365,6 +6678,13 @@ function getHookExitCodes(eventName) {
6365
6678
  { code: 0, description: t("command completes successfully") },
6366
6679
  { code: "Other", description: t("show stderr to user only") }
6367
6680
  ],
6681
+ ["SessionDelete" /* SessionDelete */]: [
6682
+ { code: 0, description: t("fire-and-forget; exit status is ignored") },
6683
+ {
6684
+ code: "Other",
6685
+ description: t("fire-and-forget; exit status is ignored")
6686
+ }
6687
+ ],
6368
6688
  ["SubagentStart" /* SubagentStart */]: [
6369
6689
  { code: 0, description: t("stdout shown to subagent") },
6370
6690
  {
@@ -6462,6 +6782,9 @@ function getHookShortDescription(eventName) {
6462
6782
  "When the turn ends due to an API error (fires instead of Stop)"
6463
6783
  ),
6464
6784
  ["SessionEnd" /* SessionEnd */]: t("When a session is ending"),
6785
+ ["SessionDelete" /* SessionDelete */]: t(
6786
+ "After an explicitly selected session is deleted"
6787
+ ),
6465
6788
  ["PermissionRequest" /* PermissionRequest */]: t(
6466
6789
  "When a permission dialog is displayed"
6467
6790
  ),
@@ -6496,7 +6819,7 @@ function getHookDescription(eventName) {
6496
6819
  "Input to command is JSON with file_path, memory_type, load_reason, and optional trigger_file_path and parent_file_path."
6497
6820
  ),
6498
6821
  ["UserPromptSubmit" /* UserPromptSubmit */]: t(
6499
- "Input to command is JSON with original user prompt text."
6822
+ 'Input to command is JSON with "prompt" (the current model-bound prompt) and optional "submitted_prompt" (the supported interactive TUI text projection).'
6500
6823
  ),
6501
6824
  ["UserPromptExpansion" /* UserPromptExpansion */]: t(
6502
6825
  "Input to command is JSON with command_name, command_args, and expanded prompt text."
@@ -6510,6 +6833,9 @@ function getHookDescription(eventName) {
6510
6833
  ["SessionEnd" /* SessionEnd */]: t(
6511
6834
  "Input to command is JSON with session end reason."
6512
6835
  ),
6836
+ ["SessionDelete" /* SessionDelete */]: t(
6837
+ "Input to command is JSON with deleted_session_id. It runs after an explicitly selected session is deleted; output and failures are ignored."
6838
+ ),
6513
6839
  ["SubagentStart" /* SubagentStart */]: t(
6514
6840
  "Input to command is JSON with agent_id and agent_type."
6515
6841
  ),
@@ -6788,8 +7114,8 @@ function formatFileList(openFiles) {
6788
7114
  const basename3 = path6.basename(file.path);
6789
7115
  const isDuplicate = (basenameCounts.get(basename3) || 0) > 1;
6790
7116
  const parentDir = path6.basename(path6.dirname(file.path));
6791
- const displayName = isDuplicate ? `${basename3} (/${parentDir})` : basename3;
6792
- return ` - ${displayName}${file.isActive ? " (active)" : ""}`;
7117
+ const displayName2 = isDuplicate ? `${basename3} (/${parentDir})` : basename3;
7118
+ return ` - ${displayName2}${file.isActive ? " (active)" : ""}`;
6793
7119
  }).join("\n");
6794
7120
  const infoMessage2 = `
6795
7121
  (Note: The file list is limited to a number of recently accessed files within your workspace and only includes local files on disk)`;
@@ -6873,7 +7199,7 @@ var ideCommand = /* @__PURE__ */ __name(async () => {
6873
7199
  supportedModes: ["interactive"],
6874
7200
  subCommands: []
6875
7201
  };
6876
- const statusCommand = {
7202
+ const statusCommand2 = {
6877
7203
  name: "status",
6878
7204
  get description() {
6879
7205
  return t("check status of IDE integration");
@@ -7023,11 +7349,11 @@ var ideCommand = /* @__PURE__ */ __name(async () => {
7023
7349
  const { status } = ideClient.getConnectionStatus();
7024
7350
  const isConnected = status === "connected" /* Connected */;
7025
7351
  if (isConnected) {
7026
- ideSlashCommand.subCommands = [statusCommand, disableCommand];
7352
+ ideSlashCommand.subCommands = [statusCommand2, disableCommand];
7027
7353
  } else {
7028
7354
  ideSlashCommand.subCommands = [
7029
7355
  enableCommand,
7030
- statusCommand,
7356
+ statusCommand2,
7031
7357
  installCommand2
7032
7358
  ];
7033
7359
  }
@@ -7687,7 +8013,7 @@ var initCommand = {
7687
8013
  if (existing && existing.trim().length > 0) {
7688
8014
  if (!context.overwriteConfirmed) {
7689
8015
  const [{ Text }, { default: React }] = await Promise.all([
7690
- import("./build-RV63TIRH.js"),
8016
+ import("./build-GDBLPA24.js"),
7691
8017
  import("./react-SG7JAQSZ.js")
7692
8018
  ]);
7693
8019
  return {
@@ -9668,7 +9994,7 @@ async function completion(context, _partialArg) {
9668
9994
  }
9669
9995
  }
9670
9996
  __name(completion, "completion");
9671
- var restoreCommand = /* @__PURE__ */ __name((config) => {
9997
+ var restoreCommand2 = /* @__PURE__ */ __name((config) => {
9672
9998
  if (!config?.getFileCheckpointingEnabled()) {
9673
9999
  return null;
9674
10000
  }
@@ -9766,6 +10092,7 @@ var settingsCommand = {
9766
10092
  },
9767
10093
  kind: "built-in" /* BUILT_IN */,
9768
10094
  supportedModes: ["interactive"],
10095
+ canRunDuringStreaming: true,
9769
10096
  action: /* @__PURE__ */ __name((_context, _args) => ({
9770
10097
  type: "dialog",
9771
10098
  dialog: "settings"
@@ -9858,6 +10185,28 @@ var EMPTY_SKILL_METRICS = {
9858
10185
  totalFail: 0,
9859
10186
  byName: {}
9860
10187
  };
10188
+ function formatGenerationMetrics(metrics) {
10189
+ const last = metrics?.last;
10190
+ if (!metrics || !last) {
10191
+ return [];
10192
+ }
10193
+ const lastTps = last.generationDurationMs > 0 ? last.outputTokens / (last.generationDurationMs / 1e3) : void 0;
10194
+ const averageTtft = metrics.timedRequests > 0 ? metrics.totalTtftMs / metrics.timedRequests : void 0;
10195
+ const sessionTps = metrics.totalGenerationDurationMs > 0 ? metrics.totalThroughputOutputTokens / (metrics.totalGenerationDurationMs / 1e3) : void 0;
10196
+ return [
10197
+ "",
10198
+ `${t("Generation Metrics")} (${t("Latest Request")})`,
10199
+ `${t("Model")}: ${last.model}`,
10200
+ `TTFT: ${formatDuration(last.ttftMs)}`,
10201
+ `${t("Generation Time")}: ${formatDuration(last.generationDurationMs)}`,
10202
+ `${t("Output Tokens")}: ${formatInteger(last.outputTokens)}`,
10203
+ `TPS: ${lastTps === void 0 ? "\u2014" : `${lastTps.toFixed(1)} tok/s`}`,
10204
+ `${t("Requests")}: ${formatInteger(metrics.timedRequests)}`,
10205
+ `${t("Average TTFT")}: ${averageTtft === void 0 ? "\u2014" : formatDuration(averageTtft)}`,
10206
+ `${t("Session TPS")}: ${sessionTps === void 0 ? "\u2014" : `${sessionTps.toFixed(1)} tok/s`}`
10207
+ ];
10208
+ }
10209
+ __name(formatGenerationMetrics, "formatGenerationMetrics");
9861
10210
  function formatInteger(value) {
9862
10211
  return new Intl.NumberFormat(getCurrentLanguage()).format(value);
9863
10212
  }
@@ -10407,6 +10756,7 @@ var statsCommand = {
10407
10756
  prompt: String(totalPromptTokens),
10408
10757
  output: String(totalCandidateTokens)
10409
10758
  }),
10759
+ ...formatGenerationMetrics(metrics.generation),
10410
10760
  t("Tool calls: {{total}} ({{success}} ok, {{fail}} fail)", {
10411
10761
  total: String(metrics.tools.totalCalls),
10412
10762
  success: String(metrics.tools.totalSuccess),
@@ -10628,9 +10978,9 @@ var summaryCommand = {
10628
10978
  }
10629
10979
  }, "validateChatHistory");
10630
10980
  const generateSummaryMarkdown = /* @__PURE__ */ __name(async (history2) => {
10631
- const conversationContext = history2.map((message) => ({
10632
- role: message.role,
10633
- parts: message.parts
10981
+ const conversationContext = history2.map((message2) => ({
10982
+ role: message2.role,
10983
+ parts: message2.parts
10634
10984
  }));
10635
10985
  const rawSystemInstruction = geminiClient.getChat().getGenerationConfig().systemInstruction;
10636
10986
  const chatSystemInstruction = typeof rawSystemInstruction === "string" ? rawSystemInstruction : void 0;
@@ -11169,11 +11519,11 @@ var vimCommand = {
11169
11519
  supportedModes: ["interactive"],
11170
11520
  action: /* @__PURE__ */ __name(async (context, _args) => {
11171
11521
  const newVimState = await context.ui.toggleVimEnabled();
11172
- const message = newVimState ? "Entered Vim mode. Run /vim again to exit." : "Exited Vim mode.";
11522
+ const message2 = newVimState ? "Entered Vim mode. Run /vim again to exit." : "Exited Vim mode.";
11173
11523
  return {
11174
11524
  type: "message",
11175
11525
  messageType: "info",
11176
- content: message
11526
+ content: message2
11177
11527
  };
11178
11528
  }, "action")
11179
11529
  };
@@ -12794,8 +13144,8 @@ var insightCommand = {
12794
13144
  resume = null;
12795
13145
  resolve4();
12796
13146
  }, "flushResume");
12797
- const pushMessage = /* @__PURE__ */ __name((message) => {
12798
- pendingMessages.push(message);
13147
+ const pushMessage = /* @__PURE__ */ __name((message2) => {
13148
+ pendingMessages.push(message2);
12799
13149
  flushResume();
12800
13150
  }, "pushMessage");
12801
13151
  const streamMessages = /* @__PURE__ */ __name(async function* () {
@@ -12806,9 +13156,9 @@ var insightCommand = {
12806
13156
  });
12807
13157
  }
12808
13158
  while (pendingMessages.length > 0) {
12809
- const message = pendingMessages.shift();
12810
- if (message) {
12811
- yield message;
13159
+ const message2 = pendingMessages.shift();
13160
+ if (message2) {
13161
+ yield message2;
12812
13162
  }
12813
13163
  }
12814
13164
  }
@@ -13178,10 +13528,10 @@ var updateCommand = {
13178
13528
  { performStandaloneUpdate },
13179
13529
  installationInfo
13180
13530
  ] = await Promise.all([
13181
- import("./updateCheck-WUJGHWZZ.js"),
13182
- import("./processUtils-V2LCK6T6.js"),
13183
- import("./standalone-update-ZMFNKAEY.js"),
13184
- import("./installationInfo-5UUQJI6Y.js")
13531
+ import("./updateCheck-ZHVXDAIH.js"),
13532
+ import("./processUtils-E4QGQVWW.js"),
13533
+ import("./standalone-update-TMLT6LVJ.js"),
13534
+ import("./installationInfo-R7FXPQN5.js")
13185
13535
  ]);
13186
13536
  const { formatUpdateInstructions, getInstallationInfo: getInstallationInfo2 } = installationInfo;
13187
13537
  const settings = context.services.settings;
@@ -13273,7 +13623,7 @@ ${t(
13273
13623
  installInfo.standaloneDir,
13274
13624
  info.update.latest
13275
13625
  );
13276
- const message = result === "done" ? t(
13626
+ const message2 = result === "done" ? t(
13277
13627
  "Update successful! The new version will be used on your next run."
13278
13628
  ) : t(
13279
13629
  "Update downloaded. It will be applied after you exit this session."
@@ -13283,17 +13633,17 @@ ${t(
13283
13633
  messageType: "info",
13284
13634
  content: `${info.message}
13285
13635
  ${t("Downloading update...")}
13286
- ${message}`
13636
+ ${message2}`
13287
13637
  };
13288
13638
  } catch (err) {
13289
- const message = t("Update failed: {{error}}", {
13639
+ const message2 = t("Update failed: {{error}}", {
13290
13640
  error: err instanceof Error ? err.message : String(err)
13291
13641
  });
13292
13642
  return {
13293
13643
  type: "message",
13294
13644
  messageType: "error",
13295
13645
  content: `${info.message}
13296
- ${message}`
13646
+ ${message2}`
13297
13647
  };
13298
13648
  }
13299
13649
  }
@@ -13350,6 +13700,7 @@ var BuiltinCommandLoader = class {
13350
13700
  compressFastCommand,
13351
13701
  configCommand,
13352
13702
  contextCommand,
13703
+ curatorCommand,
13353
13704
  copyCommand,
13354
13705
  diffCommand,
13355
13706
  deleteCommand,
@@ -13381,7 +13732,7 @@ var BuiltinCommandLoader = class {
13381
13732
  recapCommand,
13382
13733
  reloadPluginsCommand,
13383
13734
  renameCommand,
13384
- restoreCommand(this.config),
13735
+ restoreCommand2(this.config),
13385
13736
  resumeCommand,
13386
13737
  rewindCommand,
13387
13738
  skillsCommand,
@@ -13637,8 +13988,8 @@ __name(extractInjections, "extractInjections");
13637
13988
 
13638
13989
  // packages/cli/src/services/prompt-processors/shellProcessor.ts
13639
13990
  var ConfirmationRequiredError = class extends Error {
13640
- constructor(message, commandsToConfirm) {
13641
- super(message);
13991
+ constructor(message2, commandsToConfirm) {
13992
+ super(message2);
13642
13993
  this.commandsToConfirm = commandsToConfirm;
13643
13994
  this.name = "ConfirmationRequiredError";
13644
13995
  }
@@ -13830,8 +14181,8 @@ var AtFileProcessor = class {
13830
14181
  }
13831
14182
  output.push(...fileContentParts);
13832
14183
  } catch (error) {
13833
- const message = error instanceof Error ? error.message : String(error);
13834
- const uiMessage = `Failed to inject content for '@{${pathStr}}': ${message}`;
14184
+ const message2 = error instanceof Error ? error.message : String(error);
14185
+ const uiMessage = `Failed to inject content for '@{${pathStr}}': ${message2}`;
13835
14186
  debugLogger13.error(
13836
14187
  `[AtFileProcessor] ${uiMessage}. Leaving placeholder in prompt.`
13837
14188
  );
@@ -14261,6 +14612,7 @@ __name(tryParseJson, "tryParseJson");
14261
14612
 
14262
14613
  // packages/cli/src/services/McpPromptLoader.ts
14263
14614
  init_esbuild_shims();
14615
+ var NAMED_ARG_REGEX = /--([^=]+)=(?:"((?:\\.|[^"\\])*)"|([^ ]+))/;
14264
14616
  var McpPromptLoader = class {
14265
14617
  constructor(config) {
14266
14618
  this.config = config;
@@ -14399,21 +14751,37 @@ var McpPromptLoader = class {
14399
14751
  return [];
14400
14752
  }
14401
14753
  const indexOfFirstSpace = invocation.raw.indexOf(" ") + 1;
14402
- let promptInputs = indexOfFirstSpace === 0 ? {} : this.parseArgs(
14403
- invocation.raw.substring(indexOfFirstSpace),
14404
- prompt.arguments
14405
- );
14406
- if (promptInputs instanceof Error) {
14407
- promptInputs = {};
14754
+ const argsString = indexOfFirstSpace === 0 ? "" : invocation.raw.substring(indexOfFirstSpace);
14755
+ const namedArgRegex = new RegExp(NAMED_ARG_REGEX.source, "g");
14756
+ const providedArgNames = /* @__PURE__ */ new Set();
14757
+ let m;
14758
+ while ((m = namedArgRegex.exec(argsString)) !== null) {
14759
+ providedArgNames.add(m[1]);
14760
+ }
14761
+ const positionalTokens = argsString.replace(namedArgRegex, " ").match(/(?:"(?:\\.|[^"\\])*"|[^ ]+)/g) || [];
14762
+ const positionalCount = positionalTokens.filter(
14763
+ (token) => !token.startsWith("--")
14764
+ ).length;
14765
+ if (positionalCount > 0) {
14766
+ const unfilled = prompt.arguments.filter((arg) => !providedArgNames.has(arg.name)).sort(
14767
+ (a, b) => a.required === b.required ? 0 : a.required ? -1 : 1
14768
+ );
14769
+ for (let i = 0; i < positionalCount && i < unfilled.length; i++) {
14770
+ providedArgNames.add(unfilled[i].name);
14771
+ }
14408
14772
  }
14409
- const providedArgNames = Object.keys(promptInputs);
14410
- const unusedArguments = prompt.arguments.filter((arg) => {
14411
- if (!providedArgNames.includes(arg.name)) {
14412
- return true;
14773
+ const unusedRequired = [];
14774
+ const unusedOptional = [];
14775
+ for (const arg of prompt.arguments) {
14776
+ if (providedArgNames.has(arg.name)) continue;
14777
+ const flag = `--${arg.name}="`;
14778
+ if (arg.required) {
14779
+ unusedRequired.push(flag);
14780
+ } else {
14781
+ unusedOptional.push(flag);
14413
14782
  }
14414
- const argValue = promptInputs[arg.name];
14415
- return argValue === partialArg;
14416
- }).map((argument) => `--${argument.name}="`) || [];
14783
+ }
14784
+ const unusedArguments = unusedRequired.length > 0 ? partialArg.length > 0 ? [...unusedRequired, ...unusedOptional] : unusedRequired : partialArg.length > 0 ? unusedOptional : [];
14417
14785
  const exactlyMatchingArgumentAtTheEnd = prompt.arguments.map((argument) => `--${argument.name}="`).filter((flagArgument) => {
14418
14786
  const regex = new RegExp(`${flagArgument}[^"]*$`);
14419
14787
  return regex.test(invocation.raw);
@@ -14450,7 +14818,7 @@ var McpPromptLoader = class {
14450
14818
  parseArgs(userArgs, promptArgs) {
14451
14819
  const argValues = {};
14452
14820
  const promptInputs = {};
14453
- const namedArgRegex = /--([^=]+)=(?:"((?:\\.|[^"\\])*)"|([^ ]+))/g;
14821
+ const namedArgRegex = new RegExp(NAMED_ARG_REGEX.source, "g");
14454
14822
  let match;
14455
14823
  let lastIndex = 0;
14456
14824
  const positionalParts = [];
@@ -14508,6 +14876,24 @@ var McpPromptLoader = class {
14508
14876
  init_esbuild_shims();
14509
14877
  import { dirname as dirname3 } from "node:path";
14510
14878
  var debugLogger17 = createDebugLogger("SKILL_COMMAND_LOADER");
14879
+ async function recordAutoSkillCommandUsage(config, command) {
14880
+ const detail = command.skillDetail;
14881
+ if (!config || detail?.level !== "project" || !detail.filePath) {
14882
+ return;
14883
+ }
14884
+ try {
14885
+ await recordAutoSkillUsage(config.getProjectRoot(), {
14886
+ name: detail.name,
14887
+ level: "project",
14888
+ filePath: detail.filePath
14889
+ });
14890
+ } catch (error) {
14891
+ debugLogger17.warn(
14892
+ `Failed to record auto-skill command usage: ${error instanceof Error ? error.message : String(error)}`
14893
+ );
14894
+ }
14895
+ }
14896
+ __name(recordAutoSkillCommandUsage, "recordAutoSkillCommandUsage");
14511
14897
  var SkillCommandLoader = class {
14512
14898
  constructor(config) {
14513
14899
  this.config = config;
@@ -14562,6 +14948,7 @@ var SkillCommandLoader = class {
14562
14948
  name: skill.name,
14563
14949
  description: skill.description,
14564
14950
  body: skill.body,
14951
+ filePath: skill.filePath,
14565
14952
  level: skill.level,
14566
14953
  ...isExtension && skill.extensionName ? { extensionName: skill.extensionName } : {}
14567
14954
  },
@@ -14886,6 +15273,7 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
14886
15273
  const combinedContent = [];
14887
15274
  let firstModelOverride;
14888
15275
  const onCompleteCallbacks = [];
15276
+ const successfulSkillCommands = [];
14889
15277
  for (const skill of stackedResult.skills) {
14890
15278
  if (!skill.action) continue;
14891
15279
  const skillContext = {
@@ -14905,10 +15293,14 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
14905
15293
  onCompleteCallbacks.push(skillResult.onComplete);
14906
15294
  }
14907
15295
  }
15296
+ const succeeded = skillResult?.type === "submit_prompt";
14908
15297
  recordSkillInvocation(config, {
14909
15298
  skillName: getSkillCommandName(skill),
14910
- success: skillResult?.type === "submit_prompt"
15299
+ success: succeeded
14911
15300
  });
15301
+ if (succeeded) {
15302
+ successfulSkillCommands.push(skill);
15303
+ }
14912
15304
  }
14913
15305
  if (stackedResult.remainingText) {
14914
15306
  combinedContent.push([{ text: stackedResult.remainingText }]);
@@ -14924,6 +15316,9 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
14924
15316
  if (hookResult.blockedResult) {
14925
15317
  return hookResult.blockedResult;
14926
15318
  }
15319
+ for (const skill of successfulSkillCommands) {
15320
+ void recordAutoSkillCommandUsage(config, skill);
15321
+ }
14927
15322
  return {
14928
15323
  type: "submit_prompt",
14929
15324
  content: hookResult.content,
@@ -15042,6 +15437,7 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
15042
15437
  return hookResult.blockedResult;
15043
15438
  }
15044
15439
  recordSkillCommandInvocation(true);
15440
+ void recordAutoSkillCommandUsage(config, commandToExecute);
15045
15441
  return handleCommandResult(
15046
15442
  { ...result, content: hookResult.content },
15047
15443
  outputHistoryItems
@@ -15096,11 +15492,11 @@ function normalizePartList(parts) {
15096
15492
  return [parts];
15097
15493
  }
15098
15494
  __name(normalizePartList, "normalizePartList");
15099
- function extractPartsFromUserMessage(message) {
15100
- if (!message) {
15495
+ function extractPartsFromUserMessage(message2) {
15496
+ if (!message2) {
15101
15497
  return null;
15102
15498
  }
15103
- const content = message.message?.content;
15499
+ const content = message2.message?.content;
15104
15500
  if (typeof content === "string") {
15105
15501
  return content;
15106
15502
  }
@@ -15366,6 +15762,8 @@ __name(functionResponsePartsToString, "functionResponsePartsToString");
15366
15762
 
15367
15763
  export {
15368
15764
  MAX_STACKED_SKILLS,
15765
+ isStackedSkillCompletableCommand,
15766
+ isValidStackedSkillPrefix,
15369
15767
  parseSlashCommand,
15370
15768
  parseStackedSlashCommands,
15371
15769
  CommandService,
@@ -15396,6 +15794,7 @@ export {
15396
15794
  FileCommandLoader,
15397
15795
  SavedWorkflowLoader,
15398
15796
  McpPromptLoader,
15797
+ recordAutoSkillCommandUsage,
15399
15798
  SkillCommandLoader,
15400
15799
  appendUserPromptExpansionAdditionalContext,
15401
15800
  serializeUserPromptExpansionPrompt,