@qwen-code/qwen-code 0.21.12-preview.5 → 0.21.13

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 (347) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +7 -5
  2. package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
  3. package/bundled/qc-helper/docs/features/channels/plugins.md +11 -11
  4. package/bundled/qc-helper/docs/features/code-review.md +13 -12
  5. package/bundled/qc-helper/docs/qwen-serve.md +65 -0
  6. package/bundled/review/SKILL.md +96 -68
  7. package/chunks/{MaxSizedBox-6STELMXN.js → MaxSizedBox-UQALOVVT.js} +46 -46
  8. package/chunks/{StandaloneSessionPicker-LXMGCAIF.js → StandaloneSessionPicker-KEGXNUG6.js} +68 -69
  9. package/chunks/{acp-startup-profiler-TVI2OVUN.js → acp-startup-profiler-NMDXYGDN.js} +2 -2
  10. package/chunks/{acpAgent-NFRP4O5A.js → acpAgent-XPES32S7.js} +804 -380
  11. package/chunks/{agent-4AGYD6I6.js → agent-DPTOZFEM.js} +42 -42
  12. package/chunks/{agent-headless-GH4UIDXU.js → agent-headless-GJCQMURW.js} +42 -42
  13. package/chunks/{anthropicContentGenerator-ZBBX5VMY.js → anthropicContentGenerator-G7BVXTKN.js} +25 -25
  14. package/chunks/{artifact-tool-RWJAKYBZ.js → artifact-tool-GEXTOPVO.js} +5 -5
  15. package/chunks/{askUserQuestion-IQCA2SOX.js → askUserQuestion-B33XRSB7.js} +2 -2
  16. package/chunks/{bridge-3S4SKXSQ.js → bridge-YNQBAA4Z.js} +48 -48
  17. package/chunks/{build-RZS65IIX.js → build-GDBLPA24.js} +1 -1
  18. package/chunks/{channel-management-service-5ZYX4ROW.js → channel-management-service-GWY2GAIC.js} +4 -4
  19. package/chunks/{channel-settings-store-62E3TWVK.js → channel-settings-store-WNWYFHG7.js} +49 -49
  20. package/chunks/{channel-worker-group-QFJKXO7R.js → channel-worker-group-7LXCMZ77.js} +6 -6
  21. package/chunks/{channel-worker-manager-PWD2UURZ.js → channel-worker-manager-RYEME4ZZ.js} +6 -6
  22. package/chunks/{channel-worker-supervisor-XQJBGFCM.js → channel-worker-supervisor-OEVWBHGT.js} +4 -4
  23. package/chunks/{chunk-LHOG4E6Y.js → chunk-22C7BQ6D.js} +3 -3
  24. package/chunks/{chunk-KTWUFHS4.js → chunk-25EYDK42.js} +3 -3
  25. package/chunks/{chunk-QEWAHAW2.js → chunk-2B2BF7P7.js} +3 -3
  26. package/chunks/{chunk-2SB4SLKC.js → chunk-2IIJTXYF.js} +1 -3
  27. package/chunks/{chunk-6LDLDK6E.js → chunk-2M55OBEB.js} +1 -3
  28. package/chunks/{chunk-V3NMFQD2.js → chunk-3EZLLVDF.js} +2 -2
  29. package/chunks/{chunk-HUDUANHL.js → chunk-3U3VAL47.js} +1 -1
  30. package/chunks/{chunk-BKHCW2BI.js → chunk-3VUENPWF.js} +10 -0
  31. package/chunks/{chunk-XY7DGTIC.js → chunk-45NQKMYB.js} +1 -1
  32. package/chunks/{chunk-VGGNHRYZ.js → chunk-4PKCUT7F.js} +7 -7
  33. package/chunks/{chunk-T7YMWGFY.js → chunk-4S5337WV.js} +1491 -711
  34. package/chunks/{chunk-FVHLDSQS.js → chunk-4W5U2TUT.js} +3 -3
  35. package/chunks/{chunk-6SU6OW5Z.js → chunk-5CVO7YES.js} +1 -1
  36. package/chunks/{chunk-OZTGLK53.js → chunk-5EYKMUUY.js} +1 -1
  37. package/chunks/{chunk-ZRT36RSF.js → chunk-6HY6IF3Z.js} +1 -1
  38. package/chunks/{chunk-HRAFAUM7.js → chunk-6ORZ2EDC.js} +3 -3
  39. package/chunks/{chunk-JOVJCXN4.js → chunk-6QFDQMQX.js} +1 -1
  40. package/chunks/{chunk-CPTIJGUK.js → chunk-6YKYPVDV.js} +4 -4
  41. package/chunks/{chunk-62OKKUOX.js → chunk-76J3IJ3M.js} +9 -7
  42. package/chunks/{chunk-JVY7FHUZ.js → chunk-7U5G6JXI.js} +9 -0
  43. package/chunks/{chunk-TIM7NVEO.js → chunk-7UXUJ5T3.js} +1 -1
  44. package/chunks/{chunk-YCGXJ4Q3.js → chunk-A267JX7H.js} +6 -6
  45. package/chunks/{chunk-4JS2QK7P.js → chunk-A4MFR4C5.js} +1 -1
  46. package/chunks/{chunk-TN3REXN4.js → chunk-A4QRWUDE.js} +79 -36
  47. package/chunks/{chunk-JW5UEE3V.js → chunk-A6NRNRKE.js} +1 -1
  48. package/chunks/{chunk-T4G33L3W.js → chunk-AA2BEKV3.js} +3 -3
  49. package/chunks/{chunk-M3DWLXEO.js → chunk-AFSG32D5.js} +1 -1
  50. package/chunks/{chunk-R4YAQULI.js → chunk-AS5IN4GK.js} +5 -5
  51. package/chunks/{chunk-ADJDLEVO.js → chunk-AW27A43Y.js} +9 -11
  52. package/chunks/{chunk-RIDUB2GC.js → chunk-AW4TRXOC.js} +1 -1
  53. package/chunks/{chunk-XL6GYJL2.js → chunk-AXN7UPYQ.js} +2 -2
  54. package/chunks/{chunk-M4NWDIFU.js → chunk-AZQ3DT76.js} +1 -1
  55. package/chunks/{chunk-OSA2TFDI.js → chunk-BHILXOC3.js} +3 -3
  56. package/chunks/{chunk-YMIQ24FR.js → chunk-BKPPWD33.js} +2 -2
  57. package/chunks/{chunk-YMB77M76.js → chunk-BUQDLC2G.js} +59 -0
  58. package/chunks/{chunk-DXXYMK2U.js → chunk-BVJS5BSP.js} +1 -1
  59. package/chunks/{chunk-EGB2PIYM.js → chunk-BZ263IKX.js} +1 -1
  60. package/chunks/{chunk-6OJDN5ZT.js → chunk-CHHABXPE.js} +1 -1
  61. package/chunks/{chunk-ZPZANKVP.js → chunk-CKSJECTU.js} +4 -4
  62. package/chunks/{chunk-H6BFLALJ.js → chunk-CPHEPGAO.js} +1 -1
  63. package/chunks/{chunk-V6PERRH4.js → chunk-CU6GJD55.js} +1 -1
  64. package/chunks/{chunk-ZZ7RUTJ4.js → chunk-CZBYX5MY.js} +1 -1
  65. package/chunks/{chunk-2OFDCPMS.js → chunk-DGK6P3BQ.js} +13 -13
  66. package/chunks/{chunk-NM33GGOM.js → chunk-DGZEMW5R.js} +3 -3
  67. package/chunks/{chunk-UPUAGRKY.js → chunk-DXIBNLBZ.js} +2 -4
  68. package/chunks/{chunk-J5SUM3ZJ.js → chunk-E23IPNGS.js} +25 -2
  69. package/chunks/{chunk-TNETSI2A.js → chunk-E3DYKPYZ.js} +3 -3
  70. package/chunks/{chunk-3MJ44LNC.js → chunk-EL5SXY3T.js} +265 -138
  71. package/chunks/{chunk-AFKOAHC3.js → chunk-EZ5RP345.js} +13 -11
  72. package/chunks/{chunk-PSTHNTHF.js → chunk-FAAUPSY2.js} +1 -1
  73. package/chunks/{chunk-NW7SPXVG.js → chunk-FDGGZIYW.js} +1 -1
  74. package/chunks/{chunk-6YSSQFHQ.js → chunk-GGDBMYGZ.js} +5 -5
  75. package/chunks/{chunk-CDDLHCC2.js → chunk-GMIEIY3Y.js} +5 -5
  76. package/chunks/{chunk-6JFPUJ2O.js → chunk-GO7STP6N.js} +4 -4
  77. package/chunks/{chunk-7JL5YBSA.js → chunk-H4A72DE5.js} +1 -1
  78. package/chunks/{chunk-I3UEXUWJ.js → chunk-HUTNYWBG.js} +2 -2
  79. package/chunks/{chunk-UQPLUR4A.js → chunk-IA2K2HJE.js} +2 -2
  80. package/chunks/{chunk-Q7VJUIIB.js → chunk-IGGGG5CX.js} +4104 -1293
  81. package/chunks/{chunk-VE2UV7IN.js → chunk-IWPYVAO2.js} +4 -4
  82. package/chunks/{chunk-HAR4G5K2.js → chunk-JNDY2MDR.js} +2 -2
  83. package/chunks/{chunk-UALXTL5Y.js → chunk-JOOFMXGF.js} +6 -6
  84. package/chunks/{chunk-HOXEJHJQ.js → chunk-JUEPY766.js} +3 -3
  85. package/chunks/{chunk-Q7YDKOGY.js → chunk-JVEGA3MM.js} +1 -1
  86. package/chunks/{chunk-QBJYSIQ4.js → chunk-K3LPAED5.js} +53 -12
  87. package/chunks/{chunk-UHF5VBKO.js → chunk-KBXKR5R2.js} +1 -1
  88. package/chunks/{chunk-32SNBMNP.js → chunk-KD5BOPLP.js} +27 -27
  89. package/chunks/{chunk-67F2BEYW.js → chunk-KV27IEHM.js} +1 -1
  90. package/chunks/{chunk-DLDVO2NY.js → chunk-LJQAUZMR.js} +360 -174
  91. package/chunks/{chunk-BNRIQWXW.js → chunk-M732YJPW.js} +7 -7
  92. package/chunks/{chunk-JRTJEGSP.js → chunk-MA2HEDVP.js} +1 -1
  93. package/chunks/{chunk-5IW3FJGD.js → chunk-MC4TLKEI.js} +2 -2
  94. package/chunks/{chunk-2ASWIM4A.js → chunk-MIPFDQAF.js} +1 -1
  95. package/chunks/{chunk-6GTKI2YX.js → chunk-MLPXSYXR.js} +133 -28
  96. package/chunks/{chunk-KRXPRVGL.js → chunk-MLXTMF7H.js} +0 -1
  97. package/chunks/{chunk-NNGCKJAD.js → chunk-MRMJCLIY.js} +3 -3
  98. package/chunks/{chunk-E7XJWIWC.js → chunk-N5YPT6PH.js} +7 -7
  99. package/chunks/{chunk-72SKJ3E7.js → chunk-NEFOOD54.js} +3 -3
  100. package/chunks/{chunk-2U3UCXZ3.js → chunk-NHDR76JX.js} +45 -13
  101. package/chunks/{chunk-QLFTWYTO.js → chunk-NM5V5OVW.js} +3 -3
  102. package/chunks/{chunk-N4LVA3S6.js → chunk-NNHNLJ2X.js} +840 -60
  103. package/chunks/chunk-NYWWQ437.js +24 -0
  104. package/chunks/{chunk-DGNQ5AFX.js → chunk-O4D7SPJN.js} +2 -2
  105. package/chunks/{chunk-YY23TR4M.js → chunk-O565M6A4.js} +411 -10
  106. package/chunks/{chunk-VUTOV2HG.js → chunk-OD2WU5QY.js} +4 -3
  107. package/chunks/{chunk-B66LYK4B.js → chunk-OMLJNPBE.js} +42 -12
  108. package/chunks/{chunk-WAF6AR5Y.js → chunk-OOQUVWIG.js} +4 -4
  109. package/chunks/{chunk-A6GQUQ7I.js → chunk-OVZPVYZB.js} +2 -2
  110. package/chunks/{chunk-VPZMLGD3.js → chunk-OXCMMLED.js} +5 -5
  111. package/chunks/{chunk-646ZB2TS.js → chunk-OY5RNSV4.js} +3 -3
  112. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  113. package/chunks/{chunk-O6SLWH4X.js → chunk-P7MPQI75.js} +2 -2
  114. package/chunks/{chunk-3HXLH5QV.js → chunk-PP4FUZNV.js} +47 -4
  115. package/chunks/{chunk-4XX2LZ3E.js → chunk-PQ36L4F5.js} +1 -1
  116. package/chunks/{chunk-SKRHR6N2.js → chunk-PT4I7NBA.js} +1 -1
  117. package/chunks/{chunk-KQLW7LLV.js → chunk-QF2NHSPB.js} +603 -66
  118. package/chunks/{chunk-KK3FEHPJ.js → chunk-QFJ5JHQR.js} +1 -1
  119. package/chunks/{chunk-N2G4RA77.js → chunk-QIH2HAEN.js} +1 -1
  120. package/chunks/{chunk-QSWDGAIC.js → chunk-QILD6R27.js} +1 -1
  121. package/chunks/{chunk-NHZF4VCD.js → chunk-QNQAPSN2.js} +1 -1
  122. package/chunks/{chunk-6DH5YA3X.js → chunk-QRCNA3SR.js} +8 -8
  123. package/chunks/{chunk-3RC5Q66G.js → chunk-QV5YN5YD.js} +7 -5
  124. package/chunks/{chunk-7TKNMQ6L.js → chunk-RIAABG2K.js} +2 -2
  125. package/chunks/{chunk-LYRA6ZTI.js → chunk-RLKC46YT.js} +138 -11
  126. package/chunks/{chunk-YI5G32RU.js → chunk-ROIYNTHJ.js} +3 -3
  127. package/chunks/{chunk-UAAWNTOC.js → chunk-RVOJ2FBP.js} +12 -12
  128. package/chunks/{chunk-SNHBRO4C.js → chunk-RWDNJBWN.js} +2 -2
  129. package/chunks/{chunk-UFHPAMAV.js → chunk-S5DWMTHO.js} +11 -1
  130. package/chunks/{chunk-TROB4PZY.js → chunk-SG7ZP5PG.js} +4 -4
  131. package/chunks/{chunk-E74YSVIN.js → chunk-SXCOEJO4.js} +1 -1
  132. package/chunks/{chunk-U5C2GIN2.js → chunk-TIGA2IVL.js} +117 -3
  133. package/chunks/chunk-TS6625XH.js +488 -0
  134. package/chunks/{chunk-EHXS5MAC.js → chunk-TUGSVUJB.js} +7 -7
  135. package/chunks/{chunk-E3GLDLYB.js → chunk-TYAMGABM.js} +0 -6
  136. package/chunks/{chunk-ZLX7FTZQ.js → chunk-U3VNBPUO.js} +3 -3
  137. package/chunks/{chunk-F7PTQFTB.js → chunk-UKMR3CKV.js} +4 -4
  138. package/chunks/{chunk-7WUMS2UA.js → chunk-UPDOZBWO.js} +1 -1
  139. package/chunks/{chunk-YK4O72LT.js → chunk-UZPM4XHR.js} +4 -4
  140. package/chunks/{chunk-VKEA37IR.js → chunk-V26NVGAU.js} +1 -1
  141. package/chunks/{chunk-IJCZP2MA.js → chunk-V57QC6WW.js} +3 -3
  142. package/chunks/{chunk-LSMCI42W.js → chunk-WFSTRPRO.js} +3 -3
  143. package/chunks/{chunk-5KZNWF2M.js → chunk-WGHHA7ZH.js} +1 -1
  144. package/chunks/{chunk-A4BAHMJF.js → chunk-WSH6GRKG.js} +4 -4
  145. package/chunks/{chunk-OK727E5D.js → chunk-X26JYGTD.js} +1 -1
  146. package/chunks/{chunk-VAPNUDD5.js → chunk-XHRY7BXD.js} +4 -4
  147. package/chunks/{chunk-XNL23MGG.js → chunk-XIT3GURH.js} +3 -3
  148. package/chunks/{chunk-2RTRFLWH.js → chunk-XLLKYULU.js} +6 -6
  149. package/chunks/{chunk-C2DR57L6.js → chunk-XUJNK7Y6.js} +1 -1
  150. package/chunks/{chunk-AAZWJAPQ.js → chunk-Y3YCSWG5.js} +2 -2
  151. package/chunks/{chunk-ZTBFA7I6.js → chunk-YEYY7TEP.js} +7 -7
  152. package/chunks/{chunk-FTGU6G45.js → chunk-YZHRN3CF.js} +2 -2
  153. package/chunks/{chunk-2N6CV4PW.js → chunk-YZOSNW4R.js} +1 -1
  154. package/chunks/{chunk-U7ROFHSH.js → chunk-ZLCT4C5A.js} +1 -1
  155. package/chunks/{chunk-VBKTP7TH.js → chunk-ZYBBISBY.js} +15 -34
  156. package/chunks/{chunk-7ATQGA6V.js → chunk-ZYYTZUI2.js} +6 -6
  157. package/chunks/{chunk-RXX5T3IF.js → chunk-ZZO74WKW.js} +44 -8
  158. package/chunks/{computer-use-ZFBJYSR3.js → computer-use-77C5FHMW.js} +45 -45
  159. package/chunks/{config-utils-7JZQN6L2.js → config-utils-IVHRSXWI.js} +4 -4
  160. package/chunks/{contextCommand-G3TAIY7T.js → contextCommand-PJ77GBWL.js} +44 -44
  161. package/chunks/{core-runtime-K3MQVNSF.js → core-runtime-7VMIKUTG.js} +42 -42
  162. package/chunks/{create-sub-session-DMTLJPDG.js → create-sub-session-2L5MQRN4.js} +42 -42
  163. package/chunks/{create-sub-session-23ULO5PO.js → create-sub-session-KRQULJE6.js} +2 -2
  164. package/chunks/{cron-create-5WUTNKNF.js → cron-create-H7UEPDSN.js} +4 -4
  165. package/chunks/{cron-delete-JEQ27YPS.js → cron-delete-6SZK7YFM.js} +4 -4
  166. package/chunks/{cron-list-IXGCA7UR.js → cron-list-H25JIHEZ.js} +4 -4
  167. package/chunks/{daemon-UBVOQMWY.js → daemon-2KTG7ZBN.js} +108 -9
  168. package/chunks/daemon-git-worktree-guard-DXYIMWFT.js +2062 -0
  169. package/chunks/{daemon-status-provider-KFLEZGD7.js → daemon-status-provider-ZDOYJCU6.js} +52 -53
  170. package/chunks/{daemon-trust-policy-ZZ6DRDAC.js → daemon-trust-policy-E67OYUK2.js} +48 -48
  171. package/chunks/{daemon-trust-policy-monitor-CIKHNV2K.js → daemon-trust-policy-monitor-RYYGCQ3J.js} +48 -48
  172. package/chunks/{deferred-core-runtime-MM7X7UYR.js → deferred-core-runtime-3SGXFXEQ.js} +44 -44
  173. package/chunks/{devtools-X6ROTKHE.js → devtools-4QFYJT6U.js} +1 -1
  174. package/chunks/discovery-ORA5J7YP.js +27 -0
  175. package/chunks/{display-image-CAD7RAUM.js → display-image-ON3EYFRD.js} +4 -4
  176. package/chunks/{dist-B3ODKYEB.js → dist-4ZPG4BY6.js} +2 -2
  177. package/chunks/{dist-CCUH2Z4C.js → dist-BROOP2EG.js} +1 -1
  178. package/chunks/{dist-DANKRAB3.js → dist-IYYN3RUT.js} +2 -2
  179. package/chunks/{dist-5VDE7U3A.js → dist-JWMKPWT5.js} +3 -1
  180. package/chunks/{dist-6RK4U6VU.js → dist-K7IQB53U.js} +1 -1
  181. package/chunks/{dist-EZHCZSW6.js → dist-MAQXAQ2Y.js} +1 -1
  182. package/chunks/{dist-362MN6CP.js → dist-WJ4BHIEW.js} +2 -2
  183. package/chunks/{dist-M3XMEIP2.js → dist-YEPL4RAW.js} +1 -1
  184. package/chunks/{earlyInputCapture-O77TUBIF.js → earlyInputCapture-KJMLFVQV.js} +43 -43
  185. package/chunks/{edit-CZ23AVP6.js → edit-I4LQFAEC.js} +50 -49
  186. package/chunks/{enter-worktree-4EMS7IRL.js → enter-worktree-YNPOJSRH.js} +47 -47
  187. package/chunks/{enterPlanMode-TS6KO6DU.js → enterPlanMode-XCPK62ER.js} +47 -47
  188. package/chunks/{environment-7JAXEU6I.js → environment-S7CTIHMX.js} +44 -44
  189. package/chunks/{errors-NBABPF4S.js → errors-7HB2AIDS.js} +44 -44
  190. package/chunks/{exit-worktree-Q3NFHYUI.js → exit-worktree-AIIY7SR6.js} +47 -47
  191. package/chunks/{exitPlanMode-4JH6WLKL.js → exitPlanMode-R4JY7V2O.js} +42 -42
  192. package/chunks/{external-tool-guard-provider-5HTGOPGU.js → external-tool-guard-provider-TE4DRY36.js} +1 -1
  193. package/chunks/{fast-path-5LFDLPHJ.js → fast-path-NDJV3ZFJ.js} +3 -3
  194. package/chunks/{gemini-MB4S7YLN.js → gemini-RSUFP5OE.js} +108 -103
  195. package/chunks/{geminiContentGenerator-EQY2QU7K.js → geminiContentGenerator-SQ5XBPZ7.js} +11 -11
  196. package/chunks/{glob-LA5XO2H7.js → glob-J4RUJAHX.js} +49 -49
  197. package/chunks/{goal-tools-LQFO4BRY.js → goal-tools-VHTNVOKK.js} +56 -12
  198. package/chunks/{grep-KYBZMY36.js → grep-VJWPLFOT.js} +47 -47
  199. package/chunks/{handleAutoUpdate-HZJSAUNC.js → handleAutoUpdate-POCX2MNB.js} +46 -46
  200. package/chunks/{i18n-BSCIN4J4.js → i18n-RM5YOICI.js} +43 -43
  201. package/chunks/{image-gen-HGURQAHX.js → image-gen-EXECB5XM.js} +11 -11
  202. package/chunks/{initializer-WUHJXIB3.js → initializer-Z2AFGBNR.js} +49 -49
  203. package/chunks/{installationInfo-G3PDBWG2.js → installationInfo-4I5FXNMH.js} +43 -43
  204. package/chunks/{keychain-token-storage-GU75J2T2.js → keychain-token-storage-3XFJ5ZB2.js} +2 -2
  205. package/chunks/{list-IC7KDSZ6.js → list-ZMBFIGZA.js} +51 -51
  206. package/chunks/{list-agents-5PNMK2AM.js → list-agents-OSVDFI6S.js} +2 -2
  207. package/chunks/{loadedSettingsAdapter-Z3GOJRI7.js → loadedSettingsAdapter-T6TV4YJ7.js} +48 -48
  208. package/chunks/{loggingContentGenerator-E2QENFPH.js → loggingContentGenerator-WF4ZOJEZ.js} +99 -66
  209. package/chunks/{loop-wakeup-OV65FEGR.js → loop-wakeup-WQS6JYAG.js} +5 -5
  210. package/chunks/{ls-RPRSX26R.js → ls-D3HUFHDP.js} +6 -6
  211. package/chunks/{lsp-IWTJWFLT.js → lsp-3QDDJTCS.js} +2 -2
  212. package/chunks/{managed-npm-update-MX2OPCW4.js → managed-npm-update-E7IW6N7V.js} +43 -43
  213. package/chunks/{mcp-QQEWPNWV.js → mcp-6UNYX4HG.js} +48 -48
  214. package/chunks/{monitor-SV64FNV3.js → monitor-EE2UYMGE.js} +47 -47
  215. package/chunks/{node-YSOU44FX.js → node-UUDY34IG.js} +3 -3
  216. package/chunks/nonInteractiveCli-WAY237O4.js +163 -0
  217. package/chunks/{notebook-edit-QPYSWPRI.js → notebook-edit-NTDY4QDU.js} +47 -47
  218. package/chunks/{openaiContentGenerator-CMZXOSVA.js → openaiContentGenerator-YNFVJMRJ.js} +30 -30
  219. package/chunks/{pidfile-D5UXVVAI.js → pidfile-4XSFLYBZ.js} +43 -43
  220. package/chunks/{processUtils-ZEIMIVPX.js → processUtils-WDA2MJFD.js} +2 -2
  221. package/chunks/proper-lockfile-3LHWIM44.js +8 -0
  222. package/chunks/{qwenContentGenerator-JAXZKB7R.js → qwenContentGenerator-434M7QKY.js} +50 -50
  223. package/chunks/{qwenOAuth2-C2QWTD2G.js → qwenOAuth2-GMYZOO6A.js} +10 -10
  224. package/chunks/{read-file-2V5GE6ZW.js → read-file-TAFBKMNI.js} +11 -11
  225. package/chunks/{read-mcp-resource-THCSZHXO.js → read-mcp-resource-XD54ZQMC.js} +2 -2
  226. package/chunks/{record-artifact-76YYQA5F.js → record-artifact-SEYFJEJF.js} +3 -3
  227. package/chunks/{resumeHistoryUtils-UZ7GHPNY.js → resumeHistoryUtils-EVG3WYK2.js} +50 -50
  228. package/chunks/{ripGrep-MUTMPQSV.js → ripGrep-WOEK2PXS.js} +42 -42
  229. package/chunks/{run-qwen-serve-WU43JKEA.js → run-qwen-serve-3QSGRXAN.js} +417 -208
  230. package/chunks/{runtime-YLOFDP2P.js → runtime-5MLLZ7DC.js} +53 -53
  231. package/chunks/{scheduler-G44OPSZE.js → scheduler-RPBJ63CH.js} +44 -44
  232. package/chunks/{sdk-exporters-grpc-4QKV6MCX.js → sdk-exporters-grpc-54L4LS5L.js} +2 -2
  233. package/chunks/{sdk-exporters-http-A7XLKZO7.js → sdk-exporters-http-XUVP63H6.js} +12 -12
  234. package/chunks/{sdk-impl-XO4UF6PR.js → sdk-impl-YXUEN2Z2.js} +8 -8
  235. package/chunks/{send-message-P5SLP57G.js → send-message-VZENRWRH.js} +6 -6
  236. package/chunks/{serve-CZQDBDYV.js → serve-HS3XLPXU.js} +50 -50
  237. package/chunks/{server-HGI2KF3Y.js → server-TC4A7AAZ.js} +3850 -1630
  238. package/chunks/{session-OVMSHAO5.js → session-UBOFXVMN.js} +92 -95
  239. package/chunks/{settings-TWX6ROGP.js → settings-D5644OM5.js} +47 -47
  240. package/chunks/{shell-JDSWGVC7.js → shell-3PZULQQV.js} +42 -42
  241. package/chunks/{skill-QILHTMYJ.js → skill-PEVVXQ3L.js} +22 -22
  242. package/chunks/{skill-settings-RKRD34RZ.js → skill-settings-J65JKKES.js} +47 -47
  243. package/chunks/{spawnChannel-V5PYSDEI.js → spawnChannel-IYGXRHSQ.js} +45 -47
  244. package/chunks/{standalone-update-Y52CWCGG.js → standalone-update-IFM53PE7.js} +44 -44
  245. package/chunks/{startInteractiveUI-RVA62ZM6.js → startInteractiveUI-3AVH7L6H.js} +3340 -2460
  246. package/chunks/{syntheticOutput-SEW4NA47.js → syntheticOutput-7GWFIDXT.js} +3 -3
  247. package/chunks/{task-create-247EAVF7.js → task-create-FCBDX7UH.js} +12 -12
  248. package/chunks/{task-list-ZJN4QHLK.js → task-list-YIYIUFUA.js} +6 -6
  249. package/chunks/{task-stop-MAYQJ42I.js → task-stop-X37KYTKB.js} +2 -2
  250. package/chunks/{task-update-SU5TMZGG.js → task-update-MYPFVOVM.js} +12 -12
  251. package/chunks/{team-create-YMWUDIE3.js → team-create-ZAIA7KAV.js} +47 -47
  252. package/chunks/{team-delete-3XVRPQBP.js → team-delete-6UMU4XLS.js} +6 -6
  253. package/chunks/{team-plan-approval-3GPZAW46.js → team-plan-approval-UNIUS7OD.js} +47 -47
  254. package/chunks/{terminal-image-renderer-UGQKWDM3.js → terminal-image-renderer-G343P2RV.js} +44 -44
  255. package/chunks/{theme-manager-KRG4GGFY.js → theme-manager-Z3RIT7DB.js} +43 -43
  256. package/chunks/{todoWrite-IE2YTCK7.js → todoWrite-U2R4NVF4.js} +4 -4
  257. package/chunks/{tool-search-SZRO5G72.js → tool-search-5R2OE4C7.js} +17 -17
  258. package/chunks/{total-session-admission-JYHYOKWX.js → total-session-admission-4KBHMQQ2.js} +48 -48
  259. package/chunks/{trustedFolders-2BDCB5NJ.js → trustedFolders-LK6T4XC7.js} +43 -43
  260. package/chunks/{update-relaunch-XSYVPSDL.js → update-relaunch-UBKROIC6.js} +5 -5
  261. package/chunks/{updateCheck-SMMJ27GG.js → updateCheck-W4Y2GFSD.js} +45 -45
  262. package/chunks/{useAutoAcceptIndicator-HPG4UFIZ.js → useAutoAcceptIndicator-C7BEICBF.js} +51 -51
  263. package/chunks/{validateNonInterActiveAuth-IIL774NT.js → validateNonInterActiveAuth-LTEI2TB6.js} +84 -86
  264. package/chunks/{version-WSGAB2PA.js → version-G5A5DGVS.js} +1 -1
  265. package/chunks/{web-fetch-LKC2F5DM.js → web-fetch-RTEQTR5Z.js} +20 -20
  266. package/chunks/{web-search-BHMAMXEU.js → web-search-5OXHEZPV.js} +16 -16
  267. package/chunks/{workflow-A7AQ52HO.js → workflow-ISQJHPG2.js} +54 -53
  268. package/chunks/{workspace-providers-status-JRT57TLL.js → workspace-providers-status-2ZPZPUPZ.js} +51 -51
  269. package/chunks/{workspace-registration-store-EACJNCM5.js → workspace-registration-store-CYNY6IP6.js} +2 -2
  270. package/chunks/{workspace-registry-OV5SI4ES.js → workspace-registry-34GTUUHB.js} +50 -49
  271. package/chunks/{workspace-service-PUHU4EEK.js → workspace-service-XCDQLE2Y.js} +53 -53
  272. package/chunks/{workspace-skills-status-YAJE3UW3.js → workspace-skills-status-RS4O7AIJ.js} +49 -49
  273. package/chunks/{workspace-trust-reconciler-JP5UR2H6.js → workspace-trust-reconciler-AYGXC7A3.js} +57 -56
  274. package/chunks/{write-file-UBIHUP5M.js → write-file-EWXKVVXF.js} +42 -42
  275. package/chunks/{zoom-image-4QTKAMTP.js → zoom-image-4BFYJ3HG.js} +11 -11
  276. package/cli.js +18 -17
  277. package/package.json +3 -3
  278. package/web-shell/assets/{arc-lZ04kynw.js → arc-CgOpDKvm.js} +1 -1
  279. package/web-shell/assets/{architectureDiagram-3BPJPVTR-B1wZVhzD.js → architectureDiagram-3BPJPVTR-0Ag_m34F.js} +1 -1
  280. package/web-shell/assets/{blockDiagram-GPEHLZMM-CO0e0yJt.js → blockDiagram-GPEHLZMM-IwTwFau0.js} +1 -1
  281. package/web-shell/assets/{c4Diagram-AAUBKEIU-Dfpo6Qie.js → c4Diagram-AAUBKEIU-DLa5GUv8.js} +1 -1
  282. package/web-shell/assets/channel-BrGVBa2L.js +1 -0
  283. package/web-shell/assets/{chunk-2J33WTMH-BvxArftT.js → chunk-2J33WTMH-DcYP-WFG.js} +1 -1
  284. package/web-shell/assets/{chunk-4BX2VUAB-BS2XXjGY.js → chunk-4BX2VUAB-C8MVPMiQ.js} +1 -1
  285. package/web-shell/assets/{chunk-55IACEB6-CYL6h3Ph.js → chunk-55IACEB6-BUi4Yfv3.js} +1 -1
  286. package/web-shell/assets/{chunk-727SXJPM-C-cWPX30.js → chunk-727SXJPM-Cy3Su2YY.js} +1 -1
  287. package/web-shell/assets/{chunk-AQP2D5EJ-CJLxNbVV.js → chunk-AQP2D5EJ-Dp8Teqv6.js} +1 -1
  288. package/web-shell/assets/{chunk-FMBD7UC4-DwfzKywA.js → chunk-FMBD7UC4-BDTDM-4j.js} +1 -1
  289. package/web-shell/assets/{chunk-ND2GUHAM-BI5raYHQ.js → chunk-ND2GUHAM-7HfDt0r2.js} +1 -1
  290. package/web-shell/assets/{chunk-QZHKN3VN-_GkNI90J.js → chunk-QZHKN3VN-BIBU0uCF.js} +1 -1
  291. package/web-shell/assets/classDiagram-4FO5ZUOK-B5TUzJzI.js +1 -0
  292. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B5TUzJzI.js +1 -0
  293. package/web-shell/assets/{cose-bilkent-S5V4N54A-BAVLNxh9.js → cose-bilkent-S5V4N54A-DRLdcg9p.js} +1 -1
  294. package/web-shell/assets/{dagre-BM42HDAG-BD4XNLqp.js → dagre-BM42HDAG-DCCgDwqW.js} +1 -1
  295. package/web-shell/assets/{diagram-2AECGRRQ-WO567p8w.js → diagram-2AECGRRQ-CsBTBmk3.js} +1 -1
  296. package/web-shell/assets/{diagram-5GNKFQAL-mAk23VWO.js → diagram-5GNKFQAL-C9qjH8Lt.js} +1 -1
  297. package/web-shell/assets/{diagram-KO2AKTUF-YQEeHKze.js → diagram-KO2AKTUF-Brjs_lj2.js} +1 -1
  298. package/web-shell/assets/{diagram-LMA3HP47-CMVjxAjv.js → diagram-LMA3HP47-DtiWCl_F.js} +1 -1
  299. package/web-shell/assets/{diagram-OG6HWLK6-42hPvbM-.js → diagram-OG6HWLK6-DmfKLkBT.js} +1 -1
  300. package/web-shell/assets/{erDiagram-TEJ5UH35-CXU_cPfu.js → erDiagram-TEJ5UH35-Bve_4deH.js} +1 -1
  301. package/web-shell/assets/{flowDiagram-I6XJVG4X-D-3TdhMT.js → flowDiagram-I6XJVG4X-C2_kXCcV.js} +1 -1
  302. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CsgkXolz.js → ganttDiagram-6RSMTGT7-BSBIjiTF.js} +1 -1
  303. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-B6Q3PBLD.js → gitGraphDiagram-PVQCEYII-CyebwI55.js} +1 -1
  304. package/web-shell/assets/index-CIDsgxTe.js +1792 -0
  305. package/web-shell/assets/index-DiQnWi_E.css +5 -0
  306. package/web-shell/assets/{index-BFrkGj2B.js → index-d0yfnV1M.js} +1 -1
  307. package/web-shell/assets/{infoDiagram-5YYISTIA-jiAfSXp8.js → infoDiagram-5YYISTIA-CSDGnWxU.js} +1 -1
  308. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-BWif5KeJ.js → ishikawaDiagram-YF4QCWOH-BK4jU13p.js} +1 -1
  309. package/web-shell/assets/{journeyDiagram-JHISSGLW-B-GAZthS.js → journeyDiagram-JHISSGLW-D_W6j-oF.js} +1 -1
  310. package/web-shell/assets/{kanban-definition-UN3LZRKU-9TEuATdL.js → kanban-definition-UN3LZRKU-C7xf-SdC.js} +1 -1
  311. package/web-shell/assets/{linear-dy_QPfyE.js → linear-DQmzxpxd.js} +1 -1
  312. package/web-shell/assets/{mermaid.core-DB2uLAnq.js → mermaid.core-9P7AGOLG.js} +5 -5
  313. package/web-shell/assets/{mindmap-definition-RKZ34NQL-ey_dyxi-.js → mindmap-definition-RKZ34NQL-DgcgMyPk.js} +1 -1
  314. package/web-shell/assets/{pieDiagram-4H26LBE5-_6BuMdDj.js → pieDiagram-4H26LBE5-3wWGb9eG.js} +1 -1
  315. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-B2rM19W2.js → quadrantDiagram-W4KKPZXB-BeCXnQw9.js} +1 -1
  316. package/web-shell/assets/{requirementDiagram-4Y6WPE33-DWj8b7vW.js → requirementDiagram-4Y6WPE33-Bi1UOHDz.js} +1 -1
  317. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-D5dtYh0N.js → sankeyDiagram-5OEKKPKP-lrLUjjbb.js} +1 -1
  318. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DVkdn_qW.js → sequenceDiagram-3UESZ5HK-BFuqKz6Q.js} +1 -1
  319. package/web-shell/assets/{stateDiagram-AJRCARHV-DgwD_fi6.js → stateDiagram-AJRCARHV-8DemQLhu.js} +1 -1
  320. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DhM5ixYd.js +1 -0
  321. package/web-shell/assets/{timeline-definition-PNZ67QCA-vNr_1UNX.js → timeline-definition-PNZ67QCA-uzEuVQXg.js} +1 -1
  322. package/web-shell/assets/{vennDiagram-CIIHVFJN-ChFcGAcu.js → vennDiagram-CIIHVFJN-BQTeZ_-o.js} +1 -1
  323. package/web-shell/assets/{wardley-L42UT6IY-C8PXoSWk.js → wardley-L42UT6IY-B6yM5Im7.js} +1 -1
  324. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-C2nqOV6i.js → wardleyDiagram-YWT4CUSO-ChM8bmgn.js} +1 -1
  325. package/web-shell/assets/{xychartDiagram-2RQKCTM6-BntaqhSB.js → xychartDiagram-2RQKCTM6-oNG6HyB1.js} +1 -1
  326. package/web-shell/index.html +2 -2
  327. package/chunks/chunk-5PLOQW7H.js +0 -830
  328. package/chunks/chunk-DMODRHNL.js +0 -649
  329. package/chunks/chunk-L34XSHIZ.js +0 -28
  330. package/chunks/chunk-N2TNM3QB.js +0 -9
  331. package/chunks/chunk-RECPKBBD.js +0 -622
  332. package/chunks/chunk-WLML6VIA.js +0 -18
  333. package/chunks/chunk-ZBBVBZBR.js +0 -137
  334. package/chunks/chunk-bdqvmfwv-OHYAFAAO.js +0 -17446
  335. package/chunks/discovery-XLHITE74.js +0 -220
  336. package/chunks/dispatch-FW7DX2CR.js +0 -43
  337. package/chunks/nonInteractiveCli-3XFIFXBR.js +0 -166
  338. package/chunks/opentui-entry-TEHHLGN7.js +0 -52419
  339. package/chunks/runtime-gate-T4ICWGQJ.js +0 -89
  340. package/chunks/wrapper-46Z24CTM.js +0 -35
  341. package/web-shell/assets/channel-BxvRq3pV.js +0 -1
  342. package/web-shell/assets/classDiagram-4FO5ZUOK-tL8nAxYf.js +0 -1
  343. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-tL8nAxYf.js +0 -1
  344. package/web-shell/assets/index-BgjULKyF.css +0 -5
  345. package/web-shell/assets/index-CxXlPYfl.js +0 -1789
  346. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BWGkVGVB.js +0 -1
  347. /package/chunks/{chunk-44CTCCLY.js → chunk-NWNEANAT.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-N5YPT6PH.js";
3
6
  import {
4
7
  ExtensionRefreshState,
5
8
  clearSkillArgs,
@@ -8,15 +11,20 @@ import {
8
11
  staleArgsWarning,
9
12
  validateAuthMethod,
10
13
  writeSkillArgs
11
- } from "./chunk-Q7VJUIIB.js";
14
+ } from "./chunk-IGGGG5CX.js";
12
15
  import {
13
16
  calculateCost,
17
+ computeSessionStats,
14
18
  diffCommand,
15
19
  filterCommandsForMode,
16
20
  findInlineMathExpressions,
17
21
  getSystemInfoFields,
18
22
  levelLabel
19
- } from "./chunk-DGNQ5AFX.js";
23
+ } from "./chunk-O4D7SPJN.js";
24
+ import {
25
+ formatDuration,
26
+ formatTokenCount
27
+ } from "./chunk-3SH53ANB.js";
20
28
  import {
21
29
  isKittyProtocolEnabled
22
30
  } from "./chunk-NYX53SV4.js";
@@ -24,19 +32,16 @@ import {
24
32
  VSCODE_SHIFT_ENTER_SEQUENCE,
25
33
  isWaylandSession,
26
34
  writeOsc52
27
- } from "./chunk-UPUAGRKY.js";
28
- import {
29
- contextCommand
30
- } from "./chunk-E7XJWIWC.js";
35
+ } from "./chunk-DXIBNLBZ.js";
31
36
  import {
32
37
  themeManager
33
- } from "./chunk-6LDLDK6E.js";
38
+ } from "./chunk-2M55OBEB.js";
34
39
  import {
35
40
  getErrorMessage as getErrorMessage2
36
- } from "./chunk-HOXEJHJQ.js";
41
+ } from "./chunk-JUEPY766.js";
37
42
  import {
38
43
  rollbackStandaloneUpdate
39
- } from "./chunk-72SKJ3E7.js";
44
+ } from "./chunk-NEFOOD54.js";
40
45
  import {
41
46
  GITHUB_WORKFLOW_PATHS,
42
47
  INSIGHT_CSS,
@@ -49,7 +54,7 @@ import {
49
54
  toJson,
50
55
  toJsonl,
51
56
  toMarkdown
52
- } from "./chunk-LYRA6ZTI.js";
57
+ } from "./chunk-RLKC46YT.js";
53
58
  import {
54
59
  stripUnsafeCharacters,
55
60
  toCodePoints,
@@ -65,23 +70,19 @@ import {
65
70
  isVoiceEnabled,
66
71
  readVoiceMode,
67
72
  readVoiceModel
68
- } from "./chunk-N2G4RA77.js";
73
+ } from "./chunk-QIH2HAEN.js";
69
74
  import {
70
75
  getExtendedSystemInfo,
71
76
  getGitVersion,
72
77
  getNpmVersion
73
- } from "./chunk-VAPNUDD5.js";
74
- import {
75
- formatDuration,
76
- formatTokenCount
77
- } from "./chunk-3SH53ANB.js";
78
+ } from "./chunk-XHRY7BXD.js";
78
79
  import {
79
80
  isInlineModelOverrideAllowed,
80
81
  parseAcpModelOption
81
- } from "./chunk-7ATQGA6V.js";
82
+ } from "./chunk-ZYYTZUI2.js";
82
83
  import {
83
84
  getInstallationInfo
84
- } from "./chunk-YMIQ24FR.js";
85
+ } from "./chunk-BKPPWD33.js";
85
86
  import {
86
87
  OUTPUT_LANGUAGE_AUTO,
87
88
  getAllSettingKeys,
@@ -93,12 +94,12 @@ import {
93
94
  resolveOutputLanguageOrPreserveAuto,
94
95
  validateSettingValue,
95
96
  writeOutputLanguageAndRegisterPath
96
- } from "./chunk-YCGXJ4Q3.js";
97
+ } from "./chunk-A267JX7H.js";
97
98
  import {
98
99
  getCurrentLanguage,
99
100
  setLanguageAsync,
100
101
  t
101
- } from "./chunk-I3UEXUWJ.js";
102
+ } from "./chunk-HUTNYWBG.js";
102
103
  import {
103
104
  SUPPORTED_LANGUAGES,
104
105
  getSupportedLanguageIds,
@@ -107,7 +108,7 @@ import {
107
108
  import {
108
109
  isFolderTrustEnabled,
109
110
  loadTrustedFolders
110
- } from "./chunk-VE2UV7IN.js";
111
+ } from "./chunk-IWPYVAO2.js";
111
112
  import {
112
113
  require_strip_json_comments
113
114
  } from "./chunk-NPQ5ZKRP.js";
@@ -118,6 +119,7 @@ import {
118
119
  EXTENSIONS_CONFIG_FILENAME,
119
120
  ExtensionManager,
120
121
  IdeClient,
122
+ Logger,
121
123
  QWEN_CODE_COMPANION_EXTENSION_NAME,
122
124
  SESSION_TITLE_MAX_LENGTH,
123
125
  SessionService,
@@ -143,11 +145,13 @@ import {
143
145
  flatMapTextParts,
144
146
  formatMemoryUsage,
145
147
  generateSessionRecap,
148
+ getArenaSystemReminder,
146
149
  getExtensionDescription,
147
150
  getExtensionDisplayName,
148
151
  getIdeInstaller,
149
152
  getInsightPrompt,
150
153
  getMCPServerPrompts,
154
+ getPlanModeSystemReminder,
151
155
  getProjectSummaryPrompt,
152
156
  getShellConfiguration,
153
157
  glob,
@@ -163,7 +167,6 @@ import {
163
167
  listWorkflowSnapshots,
164
168
  loadServerHierarchicalMemory,
165
169
  normalizeClaudeMcpServer,
166
- normalizeContent,
167
170
  normalizeSkillPriority,
168
171
  parseInstallSource,
169
172
  parseLearnVideoInput,
@@ -171,21 +174,20 @@ import {
171
174
  partToString,
172
175
  persistSessionUsage,
173
176
  readPathFromWorkspace,
174
- redactUrlCredentials,
175
177
  require_toml,
176
178
  resolveSlimmingConfig,
177
179
  runForkedAgent,
178
180
  tryGenerateSessionTitle
179
- } from "./chunk-T7YMWGFY.js";
181
+ } from "./chunk-4S5337WV.js";
180
182
  import {
181
183
  external_exports
182
184
  } from "./chunk-CQ35AJ4Z.js";
183
185
  import {
184
186
  resolveModelId
185
- } from "./chunk-OZTGLK53.js";
187
+ } from "./chunk-5EYKMUUY.js";
186
188
  import {
187
189
  APPROVAL_MODES
188
- } from "./chunk-SNHBRO4C.js";
190
+ } from "./chunk-RWDNJBWN.js";
189
191
  import {
190
192
  getAutoSkillCuratorStatus,
191
193
  parse,
@@ -193,19 +195,35 @@ import {
193
195
  restoreArchivedAutoSkill,
194
196
  runAutoSkillCurator,
195
197
  setAutoSkillPinned
196
- } from "./chunk-KTWUFHS4.js";
198
+ } from "./chunk-25EYDK42.js";
197
199
  import {
198
200
  HookEventName,
199
201
  sanitizeUserPromptExpansionAdditionalContext
200
- } from "./chunk-2ASWIM4A.js";
202
+ } from "./chunk-MIPFDQAF.js";
201
203
  import {
202
204
  GoalPersistenceUnavailableError,
203
205
  emptyGoalSnapshot,
204
206
  projectUserTranscriptForDisplay
205
- } from "./chunk-B66LYK4B.js";
207
+ } from "./chunk-OMLJNPBE.js";
206
208
  import {
207
209
  resolveOpenAILogDir
208
- } from "./chunk-VPZMLGD3.js";
210
+ } from "./chunk-OXCMMLED.js";
211
+ import {
212
+ FORK_SUBAGENT_TYPE,
213
+ stripStartupContext
214
+ } from "./chunk-SG7ZP5PG.js";
215
+ import {
216
+ applySkillAllowedTools,
217
+ buildSkillLlmContent
218
+ } from "./chunk-K623ENWT.js";
219
+ import {
220
+ openBrowserSecurely
221
+ } from "./chunk-NAVJD2PQ.js";
222
+ import {
223
+ REASONING_EFFORT_TIERS,
224
+ applyReasoningEffort,
225
+ normalizeReasoningEffort
226
+ } from "./chunk-KM73TBQ4.js";
209
227
  import {
210
228
  COMBINED_PASS_TOLERANCE_FACTOR,
211
229
  IdeConnectionEvent,
@@ -217,35 +235,25 @@ import {
217
235
  logIdeConnection,
218
236
  queryTokenUsage,
219
237
  read,
238
+ recordSkillInvocation,
220
239
  uiTelemetryService
221
- } from "./chunk-UAAWNTOC.js";
240
+ } from "./chunk-RVOJ2FBP.js";
222
241
  import {
223
242
  getAutoMemoryRoot
224
- } from "./chunk-6OJDN5ZT.js";
243
+ } from "./chunk-CHHABXPE.js";
225
244
  import {
226
245
  runSideQuery
227
- } from "./chunk-JRTJEGSP.js";
228
- import {
229
- FORK_SUBAGENT_TYPE,
230
- stripStartupContext
231
- } from "./chunk-TROB4PZY.js";
232
- import {
233
- applySkillAllowedTools,
234
- buildSkillLlmContent
235
- } from "./chunk-K623ENWT.js";
246
+ } from "./chunk-MA2HEDVP.js";
236
247
  import {
237
248
  ToolDisplayNamesMigration,
238
249
  ToolNames,
239
- canonicalToolName
240
- } from "./chunk-ZRT36RSF.js";
241
- import {
242
- openBrowserSecurely
243
- } from "./chunk-NAVJD2PQ.js";
250
+ canonicalToolName,
251
+ isShellProgressData
252
+ } from "./chunk-6HY6IF3Z.js";
244
253
  import {
245
- REASONING_EFFORT_TIERS,
246
- applyReasoningEffort,
247
- normalizeReasoningEffort
248
- } from "./chunk-KM73TBQ4.js";
254
+ normalizeContent,
255
+ redactUrlCredentials
256
+ } from "./chunk-EL5SXY3T.js";
249
257
  import {
250
258
  Storage,
251
259
  createDebugLogger,
@@ -254,12 +262,12 @@ import {
254
262
  isSubpath,
255
263
  resolvePath,
256
264
  updateSymlink
257
- } from "./chunk-YMB77M76.js";
265
+ } from "./chunk-BUQDLC2G.js";
258
266
  import {
259
267
  isCpuProfileRecording,
260
268
  startCpuProfile,
261
269
  stopCpuProfile
262
- } from "./chunk-RIDUB2GC.js";
270
+ } from "./chunk-AW4TRXOC.js";
263
271
  import {
264
272
  init_esbuild_shims
265
273
  } from "./chunk-5O2XNYP6.js";
@@ -588,6 +596,9 @@ function findSlashCommandTokens(text, commands) {
588
596
  }
589
597
  __name(findSlashCommandTokens, "findSlashCommandTokens");
590
598
 
599
+ // packages/cli/src/nonInteractiveCliCommands.ts
600
+ init_esbuild_shims();
601
+
591
602
  // packages/cli/src/services/CommandService.ts
592
603
  init_esbuild_shims();
593
604
  var debugLogger2 = createDebugLogger("CLI_COMMANDS");
@@ -2046,7 +2057,7 @@ var approvalModeCommand = {
2046
2057
  };
2047
2058
  }
2048
2059
  }
2049
- const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-HPG4UFIZ.js") : void 0;
2060
+ const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-C7BEICBF.js") : void 0;
2050
2061
  if (config) {
2051
2062
  try {
2052
2063
  config.setApprovalMode(mode);
@@ -6837,7 +6848,7 @@ var expandNowCommand = {
6837
6848
  content: t("History is already expanded in this session.")
6838
6849
  };
6839
6850
  }
6840
- const { expandCollapsedHistory } = await import("./resumeHistoryUtils-UZ7GHPNY.js");
6851
+ const { expandCollapsedHistory } = await import("./resumeHistoryUtils-EVG3WYK2.js");
6841
6852
  const updated = expandCollapsedHistory(history);
6842
6853
  loadHistory(updated);
6843
6854
  refreshStatic();
@@ -8287,7 +8298,7 @@ var initCommand = {
8287
8298
  if (existing && existing.trim().length > 0) {
8288
8299
  if (!context.overwriteConfirmed) {
8289
8300
  const [{ Text }, { default: React }] = await Promise.all([
8290
- import("./build-RZS65IIX.js"),
8301
+ import("./build-GDBLPA24.js"),
8291
8302
  import("./react-SG7JAQSZ.js")
8292
8303
  ]);
8293
8304
  return {
@@ -14108,10 +14119,10 @@ var updateCommand = {
14108
14119
  { performStandaloneUpdate },
14109
14120
  installationInfo
14110
14121
  ] = await Promise.all([
14111
- import("./updateCheck-SMMJ27GG.js"),
14112
- import("./processUtils-ZEIMIVPX.js"),
14113
- import("./standalone-update-Y52CWCGG.js"),
14114
- import("./installationInfo-G3PDBWG2.js")
14122
+ import("./updateCheck-W4Y2GFSD.js"),
14123
+ import("./processUtils-WDA2MJFD.js"),
14124
+ import("./standalone-update-IFM53PE7.js"),
14125
+ import("./installationInfo-4I5FXNMH.js")
14115
14126
  ]);
14116
14127
  const { formatUpdateInstructions, getInstallationInfo: getInstallationInfo2 } = installationInfo;
14117
14128
  const settings = context.services.settings;
@@ -15572,6 +15583,46 @@ var SkillCommandLoader = class {
15572
15583
  }
15573
15584
  };
15574
15585
 
15586
+ // packages/cli/src/ui/noninteractive/nonInteractiveUi.ts
15587
+ init_esbuild_shims();
15588
+ function createNonInteractiveUI() {
15589
+ return {
15590
+ history: [],
15591
+ addItem: /* @__PURE__ */ __name((_item, _timestamp) => 0, "addItem"),
15592
+ clear: /* @__PURE__ */ __name(() => {
15593
+ }, "clear"),
15594
+ setDebugMessage: /* @__PURE__ */ __name((_message) => {
15595
+ }, "setDebugMessage"),
15596
+ loadHistory: /* @__PURE__ */ __name((_newHistory) => {
15597
+ }, "loadHistory"),
15598
+ refreshStatic: /* @__PURE__ */ __name(() => {
15599
+ }, "refreshStatic"),
15600
+ pendingItem: null,
15601
+ setPendingItem: /* @__PURE__ */ __name((_item) => {
15602
+ }, "setPendingItem"),
15603
+ btwItem: null,
15604
+ setBtwItem: /* @__PURE__ */ __name((_item) => {
15605
+ }, "setBtwItem"),
15606
+ cancelBtw: /* @__PURE__ */ __name(() => {
15607
+ }, "cancelBtw"),
15608
+ btwAbortControllerRef: { current: null },
15609
+ isIdleRef: { current: true },
15610
+ toggleVimEnabled: /* @__PURE__ */ __name(async () => false, "toggleVimEnabled"),
15611
+ setGeminiMdFileCount: /* @__PURE__ */ __name((_count) => {
15612
+ }, "setGeminiMdFileCount"),
15613
+ reloadCommands: /* @__PURE__ */ __name(() => {
15614
+ }, "reloadCommands"),
15615
+ setSessionName: /* @__PURE__ */ __name(() => {
15616
+ }, "setSessionName"),
15617
+ extensionsUpdateState: /* @__PURE__ */ new Map(),
15618
+ dispatchExtensionStateUpdate: /* @__PURE__ */ __name((_action) => {
15619
+ }, "dispatchExtensionStateUpdate"),
15620
+ addConfirmUpdateExtensionRequest: /* @__PURE__ */ __name((_request) => {
15621
+ }, "addConfirmUpdateExtensionRequest")
15622
+ };
15623
+ }
15624
+ __name(createNonInteractiveUI, "createNonInteractiveUI");
15625
+
15575
15626
  // packages/cli/src/utils/userPromptExpansionHook.ts
15576
15627
  init_esbuild_shims();
15577
15628
  function appendUserPromptExpansionAdditionalContext(content, additionalContext) {
@@ -15600,6 +15651,724 @@ function formatUserPromptExpansionBlockedMessage(reason) {
15600
15651
  }
15601
15652
  __name(formatUserPromptExpansionBlockedMessage, "formatUserPromptExpansionBlockedMessage");
15602
15653
 
15654
+ // packages/cli/src/nonInteractiveCliCommands.ts
15655
+ var debugLogger19 = createDebugLogger("NON_INTERACTIVE_COMMANDS");
15656
+ function getSkillCommandName(command) {
15657
+ return command.skillDetail?.name ?? command.name;
15658
+ }
15659
+ __name(getSkillCommandName, "getSkillCommandName");
15660
+ function handleCommandResult(result, outputHistoryItems) {
15661
+ switch (result.type) {
15662
+ case "submit_prompt":
15663
+ return {
15664
+ type: "submit_prompt",
15665
+ content: result.content,
15666
+ ...result.modelOverride ? { modelOverride: result.modelOverride } : {},
15667
+ ...result.refreshContextFilesOnWrite ? { refreshContextFilesOnWrite: true } : {},
15668
+ ...outputHistoryItems?.length ? { outputHistoryItems } : {}
15669
+ };
15670
+ case "message":
15671
+ return {
15672
+ type: "message",
15673
+ messageType: result.messageType,
15674
+ content: result.content,
15675
+ ...outputHistoryItems?.length ? { outputHistoryItems } : {}
15676
+ };
15677
+ case "stream_messages":
15678
+ return {
15679
+ type: "stream_messages",
15680
+ messages: result.messages
15681
+ };
15682
+ case "goal_control":
15683
+ return {
15684
+ type: "goal_control",
15685
+ operation: result.operation,
15686
+ response: result.response,
15687
+ ...result.cause ? { cause: result.cause } : {}
15688
+ };
15689
+ /**
15690
+ * Currently return types below are never generated due to the
15691
+ * whitelist of allowed slash commands in ACP and non-interactive mode.
15692
+ * We'll try to add more supported return types in the future.
15693
+ */
15694
+ case "tool":
15695
+ return {
15696
+ type: "unsupported",
15697
+ reason: "Tool execution from slash commands is not supported in non-interactive mode.",
15698
+ originalType: "tool"
15699
+ };
15700
+ case "quit":
15701
+ return {
15702
+ type: "unsupported",
15703
+ reason: "Quit command is not supported in non-interactive mode. The process will exit naturally after completion.",
15704
+ originalType: "quit"
15705
+ };
15706
+ case "dialog":
15707
+ return {
15708
+ type: "unsupported",
15709
+ reason: `Dialog '${result.dialog}' cannot be opened in non-interactive mode.`,
15710
+ originalType: "dialog"
15711
+ };
15712
+ case "load_history":
15713
+ return {
15714
+ type: "unsupported",
15715
+ reason: "Loading history is not supported in non-interactive mode. Each invocation starts with a fresh context.",
15716
+ originalType: "load_history"
15717
+ };
15718
+ case "confirm_shell_commands":
15719
+ return {
15720
+ type: "unsupported",
15721
+ reason: "Shell command confirmation is not supported in non-interactive mode. Use YOLO mode or pre-approve commands.",
15722
+ originalType: "confirm_shell_commands"
15723
+ };
15724
+ case "confirm_action":
15725
+ return {
15726
+ type: "unsupported",
15727
+ reason: "Action confirmation is not supported in non-interactive mode. Commands requiring confirmation cannot be executed.",
15728
+ originalType: "confirm_action"
15729
+ };
15730
+ default: {
15731
+ const _exhaustive = result;
15732
+ return {
15733
+ type: "unsupported",
15734
+ reason: `Unknown command result type: ${_exhaustive.type}`,
15735
+ originalType: "unknown"
15736
+ };
15737
+ }
15738
+ }
15739
+ }
15740
+ __name(handleCommandResult, "handleCommandResult");
15741
+ async function fireUserPromptExpansionHook(config, commandName, commandArgs, content, signal) {
15742
+ if (config.getDisableAllHooks?.() || !(config.hasHooksForEvent?.("UserPromptExpansion") ?? false)) {
15743
+ return { content };
15744
+ }
15745
+ const hookSystem = config.getHookSystem();
15746
+ if (!hookSystem) {
15747
+ return { content };
15748
+ }
15749
+ const output = await hookSystem.fireUserPromptExpansionEvent(
15750
+ commandName,
15751
+ commandArgs,
15752
+ serializeUserPromptExpansionPrompt(content),
15753
+ signal
15754
+ );
15755
+ if (!output) {
15756
+ return { content };
15757
+ }
15758
+ const blockingError = output.getBlockingError();
15759
+ if (blockingError.blocked || output.shouldStopExecution()) {
15760
+ return {
15761
+ blockedResult: {
15762
+ type: "message",
15763
+ messageType: "error",
15764
+ content: formatUserPromptExpansionBlockedMessage(
15765
+ blockingError.reason || output.getEffectiveReason()
15766
+ )
15767
+ },
15768
+ content
15769
+ };
15770
+ }
15771
+ return {
15772
+ content: appendUserPromptExpansionAdditionalContext(
15773
+ content,
15774
+ output.getAdditionalContext()
15775
+ )
15776
+ };
15777
+ }
15778
+ __name(fireUserPromptExpansionHook, "fireUserPromptExpansionHook");
15779
+ async function registerModelInvocableCommands(commandService, config, executionMode, settings) {
15780
+ if (!settings) {
15781
+ return;
15782
+ }
15783
+ config.setModelInvocableCommandsProvider(
15784
+ () => commandService.getModelInvocableCommands().map((cmd) => ({
15785
+ name: cmd.name,
15786
+ description: cmd.modelDescription ?? cmd.description
15787
+ }))
15788
+ );
15789
+ config.setModelInvocableCommandsExecutor(
15790
+ async (name, args = "") => {
15791
+ const commands = commandService.getModelInvocableCommands();
15792
+ const cmd = commands.find((c) => c.name === name);
15793
+ if (!cmd?.action) return null;
15794
+ const minimalContext = {
15795
+ executionMode,
15796
+ invocation: {
15797
+ raw: args ? `/${name} ${args}` : `/${name}`,
15798
+ name,
15799
+ args
15800
+ },
15801
+ services: { config, settings, logger: null }
15802
+ };
15803
+ const result = await cmd.action(minimalContext, args);
15804
+ if (!result || result.type !== "submit_prompt") return null;
15805
+ const hookSignal = new AbortController().signal;
15806
+ const hookResult = await fireUserPromptExpansionHook(
15807
+ config,
15808
+ name,
15809
+ args,
15810
+ result.content,
15811
+ hookSignal
15812
+ );
15813
+ if (hookResult.blockedResult) {
15814
+ return hookResult.blockedResult.type === "message" ? { error: hookResult.blockedResult.content } : null;
15815
+ }
15816
+ const content = hookResult.content;
15817
+ if (typeof content === "string") return content;
15818
+ if (Array.isArray(content)) {
15819
+ return content.map(
15820
+ (p) => typeof p === "string" ? p : p.text ?? ""
15821
+ ).join("");
15822
+ }
15823
+ return null;
15824
+ }
15825
+ );
15826
+ const skillManager = typeof config.getSkillManager === "function" ? config.getSkillManager() : null;
15827
+ await skillManager?.notifyConfigChanged();
15828
+ }
15829
+ __name(registerModelInvocableCommands, "registerModelInvocableCommands");
15830
+ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings, sessionHooks) => {
15831
+ const trimmed = rawQuery.trim();
15832
+ if (!trimmed.startsWith("/")) {
15833
+ return { type: "no_command" };
15834
+ }
15835
+ const isAcpMode = config.getExperimentalZedIntegration();
15836
+ const isInteractive = config.isInteractive();
15837
+ const executionMode = isAcpMode ? "acp" : isInteractive ? "interactive" : "non_interactive";
15838
+ const allLoaders = [
15839
+ new McpPromptLoader(config),
15840
+ new BuiltinCommandLoader(config),
15841
+ new BundledSkillLoader(config),
15842
+ new SkillCommandLoader(config),
15843
+ new SavedWorkflowLoader(config),
15844
+ new FileCommandLoader(config)
15845
+ ];
15846
+ const disabledSlashCommandsRaw = config.getDisabledSlashCommands();
15847
+ const disabledNameSet = /* @__PURE__ */ new Set();
15848
+ for (const name of disabledSlashCommandsRaw) {
15849
+ const trimmed2 = name.trim();
15850
+ if (trimmed2) disabledNameSet.add(trimmed2.toLowerCase());
15851
+ }
15852
+ const isDisabled = /* @__PURE__ */ __name((cmd) => disabledNameSet.has(cmd.name.toLowerCase()) || (cmd.altNames ?? []).some((a) => disabledNameSet.has(a.toLowerCase())), "isDisabled");
15853
+ const allCommandService = await CommandService.create(
15854
+ allLoaders,
15855
+ abortController.signal
15856
+ );
15857
+ const commandService = disabledNameSet.size > 0 ? await CommandService.create(
15858
+ allLoaders,
15859
+ abortController.signal,
15860
+ disabledNameSet
15861
+ ) : allCommandService;
15862
+ await registerModelInvocableCommands(
15863
+ commandService,
15864
+ config,
15865
+ executionMode,
15866
+ settings
15867
+ );
15868
+ const allCommands = allCommandService.getCommands();
15869
+ const filteredCommands = commandService.getCommandsForMode(executionMode).filter((cmd) => !isDisabled(cmd));
15870
+ const { commandToExecute, args } = parseSlashCommand(
15871
+ rawQuery,
15872
+ filteredCommands
15873
+ );
15874
+ const stackedResult = parseStackedSlashCommands(rawQuery, filteredCommands);
15875
+ if (stackedResult.skills.length >= 2) {
15876
+ const combinedContent = [];
15877
+ let firstModelOverride;
15878
+ let refreshContextFilesOnWrite = false;
15879
+ const onCompleteCallbacks = [];
15880
+ const successfulSkillCommands = [];
15881
+ for (const skill of stackedResult.skills) {
15882
+ if (!skill.action) continue;
15883
+ const skillContext = {
15884
+ executionMode,
15885
+ invocation: {
15886
+ raw: `/${skill.name}`,
15887
+ name: skill.name,
15888
+ args: ""
15889
+ },
15890
+ services: { config, settings, logger: null }
15891
+ };
15892
+ const skillResult = await skill.action(skillContext, "");
15893
+ if (skillResult?.type === "submit_prompt") {
15894
+ combinedContent.push(skillResult.content);
15895
+ firstModelOverride ??= skillResult.modelOverride;
15896
+ refreshContextFilesOnWrite ||= Boolean(
15897
+ skillResult.refreshContextFilesOnWrite
15898
+ );
15899
+ if (skillResult.onComplete) {
15900
+ onCompleteCallbacks.push(skillResult.onComplete);
15901
+ }
15902
+ }
15903
+ const succeeded = skillResult?.type === "submit_prompt";
15904
+ recordSkillInvocation(config, {
15905
+ skillName: getSkillCommandName(skill),
15906
+ success: succeeded
15907
+ });
15908
+ if (succeeded) {
15909
+ successfulSkillCommands.push(skill);
15910
+ }
15911
+ }
15912
+ if (stackedResult.remainingText) {
15913
+ combinedContent.push([{ text: stackedResult.remainingText }]);
15914
+ }
15915
+ const mergedContent = combinedContent.flat();
15916
+ const hookResult = await fireUserPromptExpansionHook(
15917
+ config,
15918
+ stackedResult.skills.map((s) => s.name).join(" "),
15919
+ stackedResult.remainingText,
15920
+ mergedContent,
15921
+ abortController.signal
15922
+ );
15923
+ if (hookResult.blockedResult) {
15924
+ return hookResult.blockedResult;
15925
+ }
15926
+ for (const skill of successfulSkillCommands) {
15927
+ void recordAutoSkillCommandUsage(config, skill);
15928
+ }
15929
+ return {
15930
+ type: "submit_prompt",
15931
+ content: hookResult.content,
15932
+ ...firstModelOverride ? { modelOverride: firstModelOverride } : {},
15933
+ ...refreshContextFilesOnWrite ? { refreshContextFilesOnWrite: true } : {},
15934
+ ...onCompleteCallbacks.length ? {
15935
+ onComplete: /* @__PURE__ */ __name(async () => {
15936
+ for (const cb of onCompleteCallbacks) await cb();
15937
+ }, "onComplete")
15938
+ } : {}
15939
+ };
15940
+ }
15941
+ if (!commandToExecute) {
15942
+ const { commandToExecute: knownCommand } = parseSlashCommand(
15943
+ rawQuery,
15944
+ allCommands
15945
+ );
15946
+ if (knownCommand) {
15947
+ const typedToken = rawQuery.trim().substring(1).trim().split(/\s+/)[0] ?? knownCommand.name;
15948
+ if (isDisabled(knownCommand)) {
15949
+ return {
15950
+ type: "unsupported",
15951
+ reason: t(
15952
+ 'The command "/{{command}}" is disabled by the current configuration.',
15953
+ { command: typedToken }
15954
+ ),
15955
+ originalType: "filtered_command"
15956
+ };
15957
+ }
15958
+ return {
15959
+ type: "unsupported",
15960
+ reason: t('The command "/{{command}}" is not supported in this mode.', {
15961
+ command: typedToken
15962
+ }),
15963
+ originalType: "filtered_command"
15964
+ };
15965
+ }
15966
+ return { type: "no_command" };
15967
+ }
15968
+ if (!commandToExecute.action) {
15969
+ return { type: "no_command" };
15970
+ }
15971
+ const sessionStats = {
15972
+ sessionId: config?.getSessionId(),
15973
+ sessionStartTime: /* @__PURE__ */ new Date(),
15974
+ metrics: config ? uiTelemetryService.getMetricsForSession(config.getSessionId()) : uiTelemetryService.getMetrics(),
15975
+ lastPromptTokenCount: 0,
15976
+ promptCount: 1
15977
+ };
15978
+ const logger3 = new Logger(config?.getSessionId() || "", config?.storage);
15979
+ const outputHistoryItems = [];
15980
+ const ui = createNonInteractiveUI();
15981
+ ui.addItem = (item) => {
15982
+ outputHistoryItems.push(item);
15983
+ return 0;
15984
+ };
15985
+ const context = {
15986
+ executionMode,
15987
+ services: {
15988
+ config,
15989
+ settings,
15990
+ logger: logger3
15991
+ },
15992
+ ui,
15993
+ session: {
15994
+ stats: sessionStats,
15995
+ sessionShellAllowlist: /* @__PURE__ */ new Set(),
15996
+ ...sessionHooks?.startNewSession ? { startNewSession: sessionHooks.startNewSession } : {}
15997
+ },
15998
+ invocation: {
15999
+ raw: trimmed,
16000
+ name: commandToExecute.name,
16001
+ args
16002
+ }
16003
+ };
16004
+ const isSkillCommand = commandToExecute.kind === "skill" /* SKILL */;
16005
+ let skillInvocationRecorded = false;
16006
+ const recordSkillCommandInvocation = /* @__PURE__ */ __name((success) => {
16007
+ if (!isSkillCommand || skillInvocationRecorded) {
16008
+ return;
16009
+ }
16010
+ recordSkillInvocation(config, {
16011
+ skillName: getSkillCommandName(commandToExecute),
16012
+ success
16013
+ });
16014
+ skillInvocationRecorded = true;
16015
+ }, "recordSkillCommandInvocation");
16016
+ let result;
16017
+ try {
16018
+ result = await commandToExecute.action(context, args);
16019
+ } catch (error) {
16020
+ recordSkillCommandInvocation(false);
16021
+ throw error;
16022
+ }
16023
+ if (!result) {
16024
+ return {
16025
+ type: "message",
16026
+ messageType: "info",
16027
+ content: "Command executed successfully."
16028
+ };
16029
+ }
16030
+ if (result.type === "submit_prompt") {
16031
+ let hookResult;
16032
+ try {
16033
+ hookResult = await fireUserPromptExpansionHook(
16034
+ config,
16035
+ commandToExecute.name,
16036
+ args,
16037
+ result.content,
16038
+ abortController.signal
16039
+ );
16040
+ } catch (error) {
16041
+ recordSkillCommandInvocation(false);
16042
+ throw error;
16043
+ }
16044
+ if (hookResult.blockedResult) {
16045
+ recordSkillCommandInvocation(false);
16046
+ return hookResult.blockedResult;
16047
+ }
16048
+ recordSkillCommandInvocation(true);
16049
+ void recordAutoSkillCommandUsage(config, commandToExecute);
16050
+ return handleCommandResult(
16051
+ { ...result, content: hookResult.content },
16052
+ outputHistoryItems
16053
+ );
16054
+ }
16055
+ return handleCommandResult(result, outputHistoryItems);
16056
+ }, "handleSlashCommand");
16057
+ var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mode = "acp", settings) => {
16058
+ try {
16059
+ const loaders = [
16060
+ new McpPromptLoader(config),
16061
+ new BuiltinCommandLoader(config),
16062
+ new BundledSkillLoader(config),
16063
+ new SkillCommandLoader(config),
16064
+ new SavedWorkflowLoader(config),
16065
+ new FileCommandLoader(config)
16066
+ ];
16067
+ const disabledSlashCommands = config.getDisabledSlashCommands();
16068
+ const commandService = await CommandService.create(
16069
+ loaders,
16070
+ abortSignal,
16071
+ disabledSlashCommands.length > 0 ? new Set(disabledSlashCommands) : void 0
16072
+ );
16073
+ await registerModelInvocableCommands(
16074
+ commandService,
16075
+ config,
16076
+ mode,
16077
+ settings
16078
+ );
16079
+ return commandService.getCommandsForMode(mode);
16080
+ } catch (error) {
16081
+ debugLogger19.error("Error loading available commands:", error);
16082
+ return [];
16083
+ }
16084
+ }, "getAvailableCommands");
16085
+
16086
+ // packages/cli/src/utils/nonInteractiveHelpers.ts
16087
+ init_esbuild_shims();
16088
+ var debugLogger20 = createDebugLogger("NON_INTERACTIVE");
16089
+ function normalizePartList(parts) {
16090
+ if (!parts) {
16091
+ return [];
16092
+ }
16093
+ if (typeof parts === "string") {
16094
+ return [{ text: parts }];
16095
+ }
16096
+ if (Array.isArray(parts)) {
16097
+ return parts.map(
16098
+ (part) => typeof part === "string" ? { text: part } : part
16099
+ );
16100
+ }
16101
+ return [parts];
16102
+ }
16103
+ __name(normalizePartList, "normalizePartList");
16104
+ function extractPartsFromUserMessage(message2) {
16105
+ if (!message2) {
16106
+ return null;
16107
+ }
16108
+ const content = message2.message?.content;
16109
+ if (typeof content === "string") {
16110
+ return content;
16111
+ }
16112
+ if (Array.isArray(content)) {
16113
+ const parts = [];
16114
+ for (const block of content) {
16115
+ if (!block || typeof block !== "object" || !("type" in block)) {
16116
+ continue;
16117
+ }
16118
+ if (block.type === "text" && "text" in block && block.text) {
16119
+ parts.push({ text: block.text });
16120
+ } else {
16121
+ parts.push({ text: JSON.stringify(block) });
16122
+ }
16123
+ }
16124
+ return parts.length > 0 ? parts : null;
16125
+ }
16126
+ return null;
16127
+ }
16128
+ __name(extractPartsFromUserMessage, "extractPartsFromUserMessage");
16129
+ function computeUsageFromMetrics(metrics) {
16130
+ const stats = computeSessionStats(metrics);
16131
+ const { models } = metrics;
16132
+ const totalOutputTokens = Object.values(models).reduce(
16133
+ (acc, model) => acc + model.tokens.candidates,
16134
+ 0
16135
+ );
16136
+ const totalTokens = Object.values(models).reduce(
16137
+ (acc, model) => acc + model.tokens.total,
16138
+ 0
16139
+ );
16140
+ const usage2 = {
16141
+ input_tokens: stats.totalPromptTokens,
16142
+ output_tokens: totalOutputTokens,
16143
+ cache_read_input_tokens: stats.totalCachedTokens
16144
+ };
16145
+ if (totalTokens > 0) {
16146
+ usage2.total_tokens = totalTokens;
16147
+ }
16148
+ return usage2;
16149
+ }
16150
+ __name(computeUsageFromMetrics, "computeUsageFromMetrics");
16151
+ function buildInitialSystemReminders(config) {
16152
+ const reminders = [];
16153
+ if (config.getApprovalMode() === "plan" /* PLAN */) {
16154
+ reminders.push({ text: getPlanModeSystemReminder(config.getSdkMode?.()) });
16155
+ }
16156
+ const arenaManager = config.getArenaManager?.();
16157
+ if (arenaManager) {
16158
+ try {
16159
+ const sessionDir = arenaManager.getArenaSessionDir();
16160
+ const configPath = `${sessionDir}/config.json`;
16161
+ reminders.push({ text: getArenaSystemReminder(configPath) });
16162
+ } catch {
16163
+ }
16164
+ }
16165
+ return reminders;
16166
+ }
16167
+ __name(buildInitialSystemReminders, "buildInitialSystemReminders");
16168
+ function insertAfterFunctionResponses(parts, additions) {
16169
+ const firstNonFunctionResponse = parts.findIndex(
16170
+ (part) => !part.functionResponse
16171
+ );
16172
+ const insertAt = firstNonFunctionResponse === -1 ? parts.length : firstNonFunctionResponse;
16173
+ return [...parts.slice(0, insertAt), ...additions, ...parts.slice(insertAt)];
16174
+ }
16175
+ __name(insertAfterFunctionResponses, "insertAfterFunctionResponses");
16176
+ async function loadSlashCommandNames(config) {
16177
+ const controller = new AbortController();
16178
+ try {
16179
+ const commands = await getAvailableCommands(
16180
+ config,
16181
+ controller.signal,
16182
+ "non_interactive"
16183
+ );
16184
+ return commands.map((cmd) => cmd.name).sort();
16185
+ } catch (error) {
16186
+ debugLogger20.error(
16187
+ "[buildSystemMessage] Failed to load slash commands:",
16188
+ error
16189
+ );
16190
+ return [];
16191
+ } finally {
16192
+ controller.abort();
16193
+ }
16194
+ }
16195
+ __name(loadSlashCommandNames, "loadSlashCommandNames");
16196
+ async function buildSystemMessage(config, sessionId, permissionMode) {
16197
+ const toolRegistry = config.getToolRegistry();
16198
+ const tools = toolRegistry ? toolRegistry.getAllToolNames() : [];
16199
+ const mcpServers = config.getMcpServers();
16200
+ const mcpServerList = mcpServers ? Object.keys(mcpServers).map((name) => ({
16201
+ name,
16202
+ status: getMCPServerStatus(name)
16203
+ })) : [];
16204
+ const slashCommands = await loadSlashCommandNames(config);
16205
+ let agentNames = [];
16206
+ try {
16207
+ const subagentManager = config.getSubagentManager();
16208
+ const subagents = await subagentManager.listSubagents();
16209
+ agentNames = subagents.map((subagent) => subagent.name);
16210
+ } catch (error) {
16211
+ debugLogger20.error("[buildSystemMessage] Failed to load subagents:", error);
16212
+ }
16213
+ const systemMessage = {
16214
+ type: "system",
16215
+ subtype: "init",
16216
+ uuid: sessionId,
16217
+ session_id: sessionId,
16218
+ cwd: config.getTargetDir(),
16219
+ tools,
16220
+ mcp_servers: mcpServerList,
16221
+ model: config.getModel(),
16222
+ permission_mode: permissionMode,
16223
+ slash_commands: slashCommands,
16224
+ qwen_code_version: config.getCliVersion() || "unknown",
16225
+ agents: agentNames
16226
+ };
16227
+ return systemMessage;
16228
+ }
16229
+ __name(buildSystemMessage, "buildSystemMessage");
16230
+ function isMcpToolProgressData(output) {
16231
+ return typeof output === "object" && output !== null && "type" in output && output.type === "mcp_tool_progress";
16232
+ }
16233
+ __name(isMcpToolProgressData, "isMcpToolProgressData");
16234
+ function createToolProgressHandler(request, adapter) {
16235
+ const handler = /* @__PURE__ */ __name((_callId, output) => {
16236
+ if (isMcpToolProgressData(output) || isShellProgressData(output)) {
16237
+ adapter.emitToolProgress(request, output);
16238
+ }
16239
+ }, "handler");
16240
+ return { handler };
16241
+ }
16242
+ __name(createToolProgressHandler, "createToolProgressHandler");
16243
+ function createAgentToolProgressHandler(config, agentToolCallId, adapter) {
16244
+ const previousTaskStates = /* @__PURE__ */ new Map();
16245
+ const emittedToolUseIds = /* @__PURE__ */ new Set();
16246
+ const emittedToolResultIds = /* @__PURE__ */ new Set();
16247
+ const buildRequest = /* @__PURE__ */ __name((toolCall) => ({
16248
+ callId: toolCall.callId,
16249
+ name: toolCall.name,
16250
+ args: toolCall.args || {},
16251
+ isClientInitiated: true,
16252
+ prompt_id: "",
16253
+ response_id: void 0
16254
+ }), "buildRequest");
16255
+ const buildResponse = /* @__PURE__ */ __name((toolCall) => ({
16256
+ callId: toolCall.callId,
16257
+ error: toolCall.status === "failed" ? new Error(toolCall.error || "Tool execution failed") : void 0,
16258
+ errorType: toolCall.status === "failed" ? "execution_failed" /* EXECUTION_FAILED */ : void 0,
16259
+ resultDisplay: toolCall.resultDisplay,
16260
+ responseParts: toolCall.responseParts || []
16261
+ }), "buildResponse");
16262
+ const hasResultContent = /* @__PURE__ */ __name((toolCall) => {
16263
+ if (typeof toolCall.resultDisplay === "string" && toolCall.resultDisplay.trim().length > 0) {
16264
+ return true;
16265
+ }
16266
+ if (toolCall.responseParts && toolCall.responseParts.length > 0) {
16267
+ return true;
16268
+ }
16269
+ return toolCall.status === "failed";
16270
+ }, "hasResultContent");
16271
+ const emitToolUseIfNeeded = /* @__PURE__ */ __name((toolCall, fallbackStatus) => {
16272
+ if (emittedToolUseIds.has(toolCall.callId)) {
16273
+ return;
16274
+ }
16275
+ const toolCallToEmit = fallbackStatus ? {
16276
+ ...toolCall,
16277
+ status: fallbackStatus
16278
+ } : toolCall;
16279
+ if (toolCallToEmit.status === "executing" || toolCallToEmit.status === "awaiting_approval") {
16280
+ if (adapter.processSubagentToolCall) {
16281
+ adapter.processSubagentToolCall(toolCallToEmit, agentToolCallId);
16282
+ emittedToolUseIds.add(toolCall.callId);
16283
+ }
16284
+ }
16285
+ }, "emitToolUseIfNeeded");
16286
+ const emitToolResultIfNeeded = /* @__PURE__ */ __name((toolCall) => {
16287
+ if (emittedToolResultIds.has(toolCall.callId)) {
16288
+ return;
16289
+ }
16290
+ if (!hasResultContent(toolCall)) {
16291
+ return;
16292
+ }
16293
+ emittedToolResultIds.add(toolCall.callId);
16294
+ const request = buildRequest(toolCall);
16295
+ const response = buildResponse(toolCall);
16296
+ if ("emitToolResult" in adapter && typeof adapter.emitToolResult === "function") {
16297
+ adapter.emitToolResult(request, response, agentToolCallId);
16298
+ } else {
16299
+ adapter.emitToolResult(request, response);
16300
+ }
16301
+ }, "emitToolResultIfNeeded");
16302
+ const processToolCall = /* @__PURE__ */ __name((toolCall, previousCall) => {
16303
+ const isCompleted = toolCall.status === "success" || toolCall.status === "failed";
16304
+ const isExecuting = toolCall.status === "executing" || toolCall.status === "awaiting_approval";
16305
+ const wasExecuting = previousCall && (previousCall.status === "executing" || previousCall.status === "awaiting_approval");
16306
+ if (isExecuting) {
16307
+ emitToolUseIfNeeded(toolCall);
16308
+ } else if (isCompleted && !emittedToolUseIds.has(toolCall.callId)) {
16309
+ emitToolUseIfNeeded(toolCall, "executing");
16310
+ } else if (wasExecuting && isCompleted) {
16311
+ emitToolUseIfNeeded(toolCall, "executing");
16312
+ }
16313
+ if (isCompleted) {
16314
+ emitToolResultIfNeeded(toolCall);
16315
+ }
16316
+ }, "processToolCall");
16317
+ const outputUpdateHandler = /* @__PURE__ */ __name((callId, outputChunk) => {
16318
+ if (typeof outputChunk === "object" && outputChunk !== null && "type" in outputChunk && outputChunk.type === "task_execution") {
16319
+ const taskDisplay = outputChunk;
16320
+ const previous = previousTaskStates.get(callId);
16321
+ if (!adapter.processSubagentToolCall || !adapter.emitSubagentErrorResult) {
16322
+ previousTaskStates.set(callId, taskDisplay);
16323
+ return;
16324
+ }
16325
+ if (taskDisplay.toolCalls) {
16326
+ if (!previous || !previous.toolCalls) {
16327
+ for (const toolCall of taskDisplay.toolCalls) {
16328
+ processToolCall(toolCall);
16329
+ }
16330
+ } else {
16331
+ for (const toolCall of taskDisplay.toolCalls) {
16332
+ const previousCall = previous.toolCalls.find(
16333
+ (tc) => tc.callId === toolCall.callId
16334
+ );
16335
+ processToolCall(toolCall, previousCall);
16336
+ }
16337
+ }
16338
+ }
16339
+ if (taskDisplay.status === "failed" || taskDisplay.status === "cancelled") {
16340
+ const previousStatus = previous?.status;
16341
+ if (previousStatus !== "failed" && previousStatus !== "cancelled" && previousStatus !== void 0) {
16342
+ const errorMessage2 = taskDisplay.terminateReason || (taskDisplay.status === "cancelled" ? "Task was cancelled" : "Task execution failed");
16343
+ adapter.emitSubagentErrorResult(errorMessage2, 0, agentToolCallId);
16344
+ }
16345
+ }
16346
+ if (!previous && taskDisplay.taskPrompt && !config.isInteractive() && (config.getOutputFormat() === "json" /* JSON */ || config.getOutputFormat() === "stream-json" /* STREAM_JSON */)) {
16347
+ adapter.emitUserMessage(
16348
+ [{ text: taskDisplay.taskPrompt }],
16349
+ agentToolCallId
16350
+ );
16351
+ }
16352
+ previousTaskStates.set(callId, taskDisplay);
16353
+ }
16354
+ }, "outputUpdateHandler");
16355
+ return {
16356
+ handler: outputUpdateHandler
16357
+ };
16358
+ }
16359
+ __name(createAgentToolProgressHandler, "createAgentToolProgressHandler");
16360
+ function functionResponsePartsToString(parts) {
16361
+ return parts.map((part) => {
16362
+ if ("functionResponse" in part) {
16363
+ const response = part.functionResponse?.response;
16364
+ const content = response?.["output"] ?? response?.["error"] ?? "";
16365
+ return content;
16366
+ }
16367
+ return JSON.stringify(part);
16368
+ }).join("");
16369
+ }
16370
+ __name(functionResponsePartsToString, "functionResponsePartsToString");
16371
+
15603
16372
  export {
15604
16373
  MAX_STACKED_SKILLS,
15605
16374
  isStackedSkillCompletableCommand,
@@ -15641,7 +16410,18 @@ export {
15641
16410
  SkillCommandLoader,
15642
16411
  appendUserPromptExpansionAdditionalContext,
15643
16412
  serializeUserPromptExpansionPrompt,
15644
- formatUserPromptExpansionBlockedMessage
16413
+ formatUserPromptExpansionBlockedMessage,
16414
+ handleSlashCommand,
16415
+ getAvailableCommands,
16416
+ normalizePartList,
16417
+ extractPartsFromUserMessage,
16418
+ computeUsageFromMetrics,
16419
+ buildInitialSystemReminders,
16420
+ insertAfterFunctionResponses,
16421
+ buildSystemMessage,
16422
+ createToolProgressHandler,
16423
+ createAgentToolProgressHandler,
16424
+ functionResponsePartsToString
15645
16425
  };
15646
16426
  /**
15647
16427
  * @license