@qwen-code/qwen-code 0.21.11 → 0.21.12-preview.1

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 (251) hide show
  1. package/chunks/{MaxSizedBox-G7QPSZTF.js → MaxSizedBox-VSAJNP52.js} +22 -22
  2. package/chunks/{StandaloneSessionPicker-3CTEPV7S.js → StandaloneSessionPicker-N5MC42M2.js} +44 -42
  3. package/chunks/{acpAgent-43JURWOW.js → acpAgent-GUV7LTDH.js} +98 -94
  4. package/chunks/{agent-MIY4LJJJ.js → agent-WJT3BALC.js} +20 -20
  5. package/chunks/{agent-headless-LWVA6GR5.js → agent-headless-JRRUUVP3.js} +20 -20
  6. package/chunks/{anthropicContentGenerator-7HEP7Q5D.js → anthropicContentGenerator-4JSC3ZFL.js} +20 -20
  7. package/chunks/{bridge-PTTJEBNP.js → bridge-VB3BPG7G.js} +21 -21
  8. package/chunks/{build-GDBLPA24.js → build-RZS65IIX.js} +1 -1
  9. package/chunks/{channel-management-service-PQ6SU56M.js → channel-management-service-SKAN6NOB.js} +1 -1
  10. package/chunks/{channel-settings-store-IKK34GMH.js → channel-settings-store-UM7JZEW7.js} +27 -27
  11. package/chunks/{channel-worker-group-WBRE33ZV.js → channel-worker-group-YPTB5ASD.js} +3 -3
  12. package/chunks/{channel-worker-manager-V4LYVTPH.js → channel-worker-manager-4EHJSPRH.js} +3 -3
  13. package/chunks/{channel-worker-supervisor-YDAGW2RP.js → channel-worker-supervisor-DZKHYFHV.js} +2 -2
  14. package/chunks/{chunk-2IIJTXYF.js → chunk-2SB4SLKC.js} +3 -1
  15. package/chunks/{chunk-U7QUDFPD.js → chunk-3SIXC6QC.js} +5 -5
  16. package/chunks/{chunk-BTYS2JAY.js → chunk-3XZYK76R.js} +1 -1
  17. package/chunks/{chunk-4PFKN7CQ.js → chunk-3ZLUA4GV.js} +7 -7
  18. package/chunks/{chunk-RUVZZKDH.js → chunk-45TYWBCB.js} +1 -1
  19. package/chunks/{chunk-QG2IEE2E.js → chunk-4W25XH7F.js} +6 -6
  20. package/chunks/{chunk-2R2HYSUQ.js → chunk-5AWARYOK.js} +6 -4
  21. package/chunks/{chunk-23GFHEM3.js → chunk-5DDUYIY6.js} +6 -6
  22. package/chunks/{chunk-XBLYC4MI.js → chunk-5TXOGH4I.js} +1 -1
  23. package/chunks/{chunk-G64M7R2Y.js → chunk-67LXZ6LV.js} +6 -6
  24. package/chunks/{chunk-KFCTC5IJ.js → chunk-6LK2QPIA.js} +1 -1
  25. package/chunks/{chunk-2XZWO53E.js → chunk-6XZERB6P.js} +3 -3
  26. package/chunks/{chunk-W2ITCESM.js → chunk-7L64FSYQ.js} +6 -127
  27. package/chunks/{chunk-UM57UTTV.js → chunk-7N6WK2W6.js} +1 -1
  28. package/chunks/chunk-7P32M35F.js +51 -0
  29. package/chunks/{chunk-X5GLCWPX.js → chunk-7PBUQKMT.js} +1 -1
  30. package/chunks/{chunk-3SOTXJNO.js → chunk-A7M57KOL.js} +4 -4
  31. package/chunks/{chunk-RUKNJEJO.js → chunk-ABGS4FDQ.js} +1 -1
  32. package/chunks/{chunk-BIXG46YI.js → chunk-AJL3SAZG.js} +10 -10
  33. package/chunks/{chunk-TNQLAI6I.js → chunk-AMXMM7DH.js} +1 -1
  34. package/chunks/{chunk-N3ZWGKXN.js → chunk-C2VGLLNA.js} +4 -4
  35. package/chunks/{chunk-UEUE6LJX.js → chunk-CX2MARRJ.js} +1 -1
  36. package/chunks/{chunk-JPA7IDTE.js → chunk-DEG7R6Z6.js} +2 -2
  37. package/chunks/{chunk-TNS2M7VL.js → chunk-DEVFUPC5.js} +6 -6
  38. package/chunks/{chunk-EOBM4T2Z.js → chunk-DGM2XA3R.js} +1 -1
  39. package/chunks/{chunk-NFSSQDB5.js → chunk-DNRV2US3.js} +3 -3
  40. package/chunks/{chunk-TYAMGABM.js → chunk-E3GLDLYB.js} +6 -0
  41. package/chunks/{chunk-HUE2M6VI.js → chunk-E5BWLU5J.js} +1 -1
  42. package/chunks/{chunk-ESVSQKPY.js → chunk-EAJESCBT.js} +6 -8
  43. package/chunks/{chunk-HZV75ET2.js → chunk-FLUYVAQZ.js} +1 -1
  44. package/chunks/{chunk-YVVIFFU4.js → chunk-FMLUVVQ6.js} +2 -2
  45. package/chunks/{chunk-JOXXPM3X.js → chunk-FWJRWCKU.js} +4 -4
  46. package/chunks/{chunk-T4576UW4.js → chunk-G4C5RLX6.js} +1 -1
  47. package/chunks/{chunk-HMCSRTDY.js → chunk-GQW6P73F.js} +1 -1
  48. package/chunks/{chunk-U2JLICUY.js → chunk-HB6QW4LM.js} +7 -7
  49. package/chunks/{chunk-UIZGNLBP.js → chunk-INQN4KIA.js} +148 -148
  50. package/chunks/{chunk-OGQERNHD.js → chunk-JO45C3OY.js} +2 -2
  51. package/chunks/{chunk-DSKLWQHC.js → chunk-JRRZFO4A.js} +2 -2
  52. package/chunks/{chunk-4EX3DBFH.js → chunk-JWXBLIQL.js} +4 -4
  53. package/chunks/{chunk-JHMFKJEP.js → chunk-KNQZXSLW.js} +8 -2
  54. package/chunks/{chunk-LA3FF7RO.js → chunk-L2O7DJIE.js} +1 -1
  55. package/chunks/{chunk-DM4C3OX5.js → chunk-LCWRQA5U.js} +1 -1
  56. package/chunks/{chunk-22C7BQ6D.js → chunk-LHOG4E6Y.js} +3 -3
  57. package/chunks/{chunk-MDQSCFAZ.js → chunk-LOJO2RPW.js} +6 -6
  58. package/chunks/{chunk-YIKMBYMT.js → chunk-M2S67TPJ.js} +1 -1
  59. package/chunks/{chunk-3LHYTQ2R.js → chunk-M3QYOPGN.js} +1 -1
  60. package/chunks/{chunk-AZQ3DT76.js → chunk-M4NWDIFU.js} +1 -1
  61. package/chunks/{chunk-OC5SKSNX.js → chunk-MJ5FMYVQ.js} +2 -2
  62. package/chunks/{chunk-AAOONL5N.js → chunk-MM4XBXF7.js} +1 -1
  63. package/chunks/{chunk-7QE3QFU3.js → chunk-MMH3GO4Z.js} +9 -9
  64. package/chunks/chunk-N2TNM3QB.js +9 -0
  65. package/chunks/{chunk-BJKREW56.js → chunk-O5AZPHYZ.js} +1 -1
  66. package/chunks/{chunk-QGZN4RYB.js → chunk-OH5UKBLL.js} +3 -3
  67. package/chunks/{chunk-BR6TUEKJ.js → chunk-OLU7GIF4.js} +9 -41
  68. package/chunks/{chunk-BNRNVMOT.js → chunk-OSPIZEAM.js} +20 -18
  69. package/chunks/{chunk-4C4QSXE3.js → chunk-OYLNJPY3.js} +55 -358
  70. package/chunks/{chunk-KCDQGIHS.js → chunk-P2UCMHDT.js} +1 -1
  71. package/chunks/chunk-PDKLO2DN.js +526 -0
  72. package/chunks/{chunk-PBYVS6QT.js → chunk-PRWGIKKU.js} +4 -4
  73. package/chunks/{chunk-NQPYPDOY.js → chunk-Q6FGSG6B.js} +1 -1
  74. package/chunks/{chunk-MCHGE3EC.js → chunk-QIN5P5BP.js} +51 -829
  75. package/chunks/{chunk-JLYYGKRN.js → chunk-QZ5G26ZE.js} +19 -19
  76. package/chunks/{chunk-W2PNY24B.js → chunk-RE6JD2BH.js} +1 -1
  77. package/chunks/{chunk-F4T5J34H.js → chunk-SZ36WFVK.js} +1 -1
  78. package/chunks/{chunk-NM3E6GGL.js → chunk-T2VEHZH3.js} +2 -2
  79. package/chunks/chunk-T5ZFG4CI.js +830 -0
  80. package/chunks/{chunk-XT6TGJFD.js → chunk-U6LT3QBF.js} +1 -1
  81. package/chunks/{chunk-DEKY5Y7V.js → chunk-VESDV72K.js} +1 -1
  82. package/chunks/{chunk-45HPDU3F.js → chunk-VO52SIZW.js} +2 -2
  83. package/chunks/{chunk-TTB6GBJ6.js → chunk-VUFEW3SF.js} +42 -42
  84. package/chunks/{chunk-2AAFGCWP.js → chunk-VUTOKX6F.js} +3 -3
  85. package/chunks/{chunk-P7KCJGBR.js → chunk-WFBG4MF5.js} +3 -3
  86. package/chunks/chunk-WLML6VIA.js +18 -0
  87. package/chunks/{chunk-MZQ4I4AP.js → chunk-WQOE4IYF.js} +1 -1
  88. package/chunks/{chunk-XUMBOJC2.js → chunk-XAAL4IFG.js} +3 -3
  89. package/chunks/{chunk-J4EVBAB3.js → chunk-XDN6SMAQ.js} +4 -4
  90. package/chunks/chunk-XYVBANG5.js +336 -0
  91. package/chunks/{chunk-JKEO6OQY.js → chunk-YQB3HSQ7.js} +5 -5
  92. package/chunks/{chunk-VRWOMUZM.js → chunk-YTYPRVIZ.js} +1 -1
  93. package/chunks/chunk-ZBBVBZBR.js +137 -0
  94. package/chunks/{chunk-AKLY5M2C.js → chunk-ZIS5I56G.js} +3 -3
  95. package/chunks/{chunk-SUTP6CZA.js → chunk-ZXUMPZRT.js} +3 -3
  96. package/chunks/chunk-bdqvmfwv-OHYAFAAO.js +17446 -0
  97. package/chunks/{computer-use-7TIKEXBX.js → computer-use-YOYLKIHT.js} +23 -23
  98. package/chunks/{config-utils-6MVJ54TY.js → config-utils-TXVKR27S.js} +2 -2
  99. package/chunks/{contextCommand-5QKI7MRY.js → contextCommand-KZMV5EOI.js} +22 -22
  100. package/chunks/{core-runtime-USS7ZF3H.js → core-runtime-VFUL2R7U.js} +20 -20
  101. package/chunks/{create-sub-session-ZD2F3BH2.js → create-sub-session-EZW2NP4Z.js} +20 -20
  102. package/chunks/{daemon-Y3NOHFKQ.js → daemon-PXIC4ZDK.js} +148 -0
  103. package/chunks/{daemon-status-provider-PMP4J7BC.js → daemon-status-provider-6L3ZKVVR.js} +25 -25
  104. package/chunks/{daemon-trust-policy-2252VKXI.js → daemon-trust-policy-SZ3V4JEY.js} +26 -26
  105. package/chunks/{daemon-trust-policy-monitor-OSGGKJXT.js → daemon-trust-policy-monitor-HN34EJQ5.js} +26 -26
  106. package/chunks/{deferred-core-runtime-3VD4V6YZ.js → deferred-core-runtime-Z462KPKI.js} +22 -22
  107. package/chunks/{devtools-4QFYJT6U.js → devtools-X6ROTKHE.js} +1 -1
  108. package/chunks/dispatch-B53LNEO4.js +37 -0
  109. package/chunks/{dist-MAIUUIWN.js → dist-BW2LDPV3.js} +1 -1
  110. package/chunks/{dist-Q2WJ2IZU.js → dist-KTYDJNYM.js} +1 -1
  111. package/chunks/{earlyInputCapture-ER4HGLJN.js → earlyInputCapture-GSE6MMC7.js} +20 -20
  112. package/chunks/{edit-B3MT7O53.js → edit-YJX2HMSA.js} +28 -28
  113. package/chunks/{enter-worktree-WVIYVSDJ.js → enter-worktree-H3GV4KQ7.js} +25 -25
  114. package/chunks/{enterPlanMode-DDCIM6HA.js → enterPlanMode-6LPSFIN2.js} +28 -28
  115. package/chunks/{environment-LITGMOUP.js → environment-IVCQ3H7T.js} +22 -22
  116. package/chunks/{errors-E5CIOR2I.js → errors-2K5VJQVK.js} +22 -22
  117. package/chunks/{exit-worktree-NQ2A6URE.js → exit-worktree-QZC6DXGO.js} +25 -25
  118. package/chunks/{exitPlanMode-YXSWN4D3.js → exitPlanMode-UHGM7I4A.js} +20 -20
  119. package/chunks/{fast-path-PH3DBS6X.js → fast-path-BDDOO4H6.js} +2 -2
  120. package/chunks/{gemini-4YPO4ADY.js → gemini-VDUDROF7.js} +71 -71
  121. package/chunks/{geminiContentGenerator-GMSVVXOU.js → geminiContentGenerator-O4HYJOR7.js} +8 -8
  122. package/chunks/{glob-3Y3VHLM2.js → glob-Z7VZDN7C.js} +27 -27
  123. package/chunks/{grep-VUHUDZYG.js → grep-JQ6AGN62.js} +27 -27
  124. package/chunks/{handleAutoUpdate-OBFFPWSJ.js → handleAutoUpdate-XZCLKEMR.js} +24 -24
  125. package/chunks/{i18n-4PJA5KKU.js → i18n-G2BMPGAS.js} +21 -21
  126. package/chunks/{image-gen-4IFV4HES.js → image-gen-NMKTIERQ.js} +7 -7
  127. package/chunks/{initializer-ZTY3VSWL.js → initializer-JEYFVIIG.js} +26 -26
  128. package/chunks/{installationInfo-6USRNCD2.js → installationInfo-GY2OCLIS.js} +21 -21
  129. package/chunks/{list-U2ZDKYWN.js → list-ZJ4GEKM4.js} +29 -29
  130. package/chunks/{loadedSettingsAdapter-WW4HIVLO.js → loadedSettingsAdapter-5BO2PZLD.js} +26 -26
  131. package/chunks/{loggingContentGenerator-XXG6YWUE.js → loggingContentGenerator-ER2Z5L3L.js} +25 -25
  132. package/chunks/{managed-npm-update-7GM2LPLL.js → managed-npm-update-X66EZDQD.js} +21 -21
  133. package/chunks/{mcp-7KZW2T5P.js → mcp-BDWPEXJF.js} +26 -26
  134. package/chunks/{monitor-RQROQHLD.js → monitor-7J3DCMBL.js} +25 -25
  135. package/chunks/{node-UUDY34IG.js → node-YSOU44FX.js} +3 -3
  136. package/chunks/{nonInteractiveCli-U7JNJGS6.js → nonInteractiveCli-THJJIXKG.js} +61 -58
  137. package/chunks/{notebook-edit-XQA6YCH2.js → notebook-edit-IX7GCTIL.js} +28 -28
  138. package/chunks/{openaiContentGenerator-BZW2IB42.js → openaiContentGenerator-K65IDMQ6.js} +20 -20
  139. package/chunks/opentui-entry-L76XJNPE.js +47945 -0
  140. package/chunks/{pidfile-NX5VZ3IK.js → pidfile-NNWTPHX2.js} +20 -20
  141. package/chunks/{processUtils-M635AD23.js → processUtils-ILOXESNR.js} +2 -2
  142. package/chunks/{qwenContentGenerator-KHJ73E2C.js → qwenContentGenerator-YIKX3NHW.js} +26 -26
  143. package/chunks/{qwenOAuth2-QMK25XO7.js → qwenOAuth2-BLYU65Y4.js} +4 -4
  144. package/chunks/{read-file-6LKIKKXD.js → read-file-GLBZFPNV.js} +5 -5
  145. package/chunks/{resumeHistoryUtils-RR2KEVH5.js → resumeHistoryUtils-UMC4Y3E2.js} +26 -25
  146. package/chunks/{ripGrep-CF2WRBYV.js → ripGrep-53XOGSZ4.js} +20 -20
  147. package/chunks/{run-qwen-serve-L5TF57J4.js → run-qwen-serve-BTZ46CLW.js} +47 -47
  148. package/chunks/{runtime-3RE3BPR4.js → runtime-RQ3ACQKH.js} +29 -29
  149. package/chunks/runtime-gate-T4ICWGQJ.js +89 -0
  150. package/chunks/{scheduler-LXQZAMYT.js → scheduler-WEIFVKQH.js} +22 -22
  151. package/chunks/{sdk-exporters-grpc-54L4LS5L.js → sdk-exporters-grpc-4QKV6MCX.js} +2 -2
  152. package/chunks/{sdk-exporters-http-7SYSCGEO.js → sdk-exporters-http-2VPMAPFI.js} +11 -11
  153. package/chunks/{sdk-impl-VZI6M6EH.js → sdk-impl-5W3JUCWF.js} +7 -7
  154. package/chunks/{serve-5D4S7GIA.js → serve-RJUR5OJH.js} +26 -26
  155. package/chunks/{server-ILZB6TTC.js → server-WQ2ID4U7.js} +618 -198
  156. package/chunks/{session-SXCZITZ4.js → session-O4OXRVNI.js} +64 -61
  157. package/chunks/{settings-4RQB3OVF.js → settings-4BVJ36YG.js} +25 -25
  158. package/chunks/{shell-FCTR3OI2.js → shell-DCQZWM5T.js} +20 -20
  159. package/chunks/{skill-IAKHPD5H.js → skill-4KWZ4J7U.js} +14 -14
  160. package/chunks/{skill-settings-SOR23NOP.js → skill-settings-TEMNXCLU.js} +25 -25
  161. package/chunks/{spawnChannel-I6VAWYQJ.js → spawnChannel-ROYEZK57.js} +20 -20
  162. package/chunks/{standalone-update-5NN3MTYH.js → standalone-update-G4BETY4B.js} +22 -22
  163. package/chunks/{startInteractiveUI-OYGL3NZJ.js → startInteractiveUI-PDFQ7N7A.js} +2150 -2572
  164. package/chunks/task-create-URFZ5EUX.js +2 -2
  165. package/chunks/{team-create-J4JP6AXN.js → team-create-KW4LOVHD.js} +25 -25
  166. package/chunks/{team-plan-approval-7BEAIR2H.js → team-plan-approval-XHFK2RTF.js} +27 -27
  167. package/chunks/{terminal-image-renderer-SGGTG5LN.js → terminal-image-renderer-46R2LHGR.js} +20 -20
  168. package/chunks/{theme-manager-67TSB7LH.js → theme-manager-E56XY2JG.js} +20 -20
  169. package/chunks/{tool-search-XPOFDWOX.js → tool-search-EVVFQUMJ.js} +9 -9
  170. package/chunks/{total-session-admission-SZJFAM25.js → total-session-admission-CULMHRTA.js} +21 -21
  171. package/chunks/{trustedFolders-44NTYYV4.js → trustedFolders-BKLVSCXW.js} +21 -21
  172. package/chunks/{update-relaunch-K33Q3WEH.js → update-relaunch-46H4Q4VL.js} +5 -5
  173. package/chunks/{updateCheck-VBRNPLS4.js → updateCheck-3BQA7KNI.js} +24 -24
  174. package/chunks/{useAutoAcceptIndicator-AUNRB5S7.js → useAutoAcceptIndicator-3QJ7QV5R.js} +31 -31
  175. package/chunks/{validateNonInterActiveAuth-WTO36MTA.js → validateNonInterActiveAuth-QVFJVBSY.js} +57 -55
  176. package/chunks/{version-JZA6HYPI.js → version-6JJA54HH.js} +1 -1
  177. package/chunks/{web-fetch-LLHPV2IR.js → web-fetch-75JBSDA3.js} +14 -14
  178. package/chunks/{web-search-4HCHRZ3U.js → web-search-PKBISWS3.js} +11 -11
  179. package/chunks/{workflow-YI74QTWW.js → workflow-KEZDQISR.js} +36 -36
  180. package/chunks/{workspace-providers-status-CI3AO2BH.js → workspace-providers-status-YQW4VNIV.js} +28 -28
  181. package/chunks/{workspace-registration-store-KPIKXDHA.js → workspace-registration-store-GQ42PR72.js} +1 -1
  182. package/chunks/{workspace-registry-XE22QDE6.js → workspace-registry-ZR6DVZQ6.js} +21 -21
  183. package/chunks/{workspace-service-WI2FD72A.js → workspace-service-BCMK3NLA.js} +30 -30
  184. package/chunks/{workspace-skills-status-FFZU6FXL.js → workspace-skills-status-ZHBYM2X7.js} +26 -26
  185. package/chunks/{workspace-trust-reconciler-GJLNXR2U.js → workspace-trust-reconciler-TWRB3TW2.js} +29 -29
  186. package/chunks/wrapper-46Z24CTM.js +35 -0
  187. package/chunks/{write-file-IEAC3XC3.js → write-file-CQBI7HXO.js} +20 -20
  188. package/chunks/{zoom-image-GTVVT25J.js → zoom-image-36I4WZIL.js} +5 -5
  189. package/cli.js +12 -12
  190. package/package.json +3 -3
  191. package/web-shell/assets/{arc-B13-S0Yo.js → arc-CgGUyHWd.js} +1 -1
  192. package/web-shell/assets/{architectureDiagram-3BPJPVTR-CHvWNlVW.js → architectureDiagram-3BPJPVTR-BR0Qv-1Y.js} +1 -1
  193. package/web-shell/assets/{blockDiagram-GPEHLZMM-CXebOlXF.js → blockDiagram-GPEHLZMM-DIoaceaI.js} +1 -1
  194. package/web-shell/assets/{c4Diagram-AAUBKEIU-BQpx4y3Q.js → c4Diagram-AAUBKEIU-Bc5k6BbI.js} +1 -1
  195. package/web-shell/assets/channel-D2b9IYpS.js +1 -0
  196. package/web-shell/assets/{chunk-2J33WTMH-Cak1exSv.js → chunk-2J33WTMH-DtPEz2WX.js} +1 -1
  197. package/web-shell/assets/{chunk-4BX2VUAB-BIc8BV5_.js → chunk-4BX2VUAB-Dydo6ydE.js} +1 -1
  198. package/web-shell/assets/{chunk-55IACEB6-DoeJ5BL1.js → chunk-55IACEB6-DD9_VWXm.js} +1 -1
  199. package/web-shell/assets/{chunk-727SXJPM-BDR_wYSu.js → chunk-727SXJPM-DVI2m59k.js} +1 -1
  200. package/web-shell/assets/{chunk-AQP2D5EJ-BhRRGRq1.js → chunk-AQP2D5EJ-luatmaTN.js} +1 -1
  201. package/web-shell/assets/{chunk-FMBD7UC4-BJGAwVXr.js → chunk-FMBD7UC4-Duy8NTIi.js} +1 -1
  202. package/web-shell/assets/{chunk-ND2GUHAM-vhE73bsD.js → chunk-ND2GUHAM-CrL1yhms.js} +1 -1
  203. package/web-shell/assets/{chunk-QZHKN3VN-BuTBZsdR.js → chunk-QZHKN3VN-C7BX6bu1.js} +1 -1
  204. package/web-shell/assets/classDiagram-4FO5ZUOK-DHatTCmD.js +1 -0
  205. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHatTCmD.js +1 -0
  206. package/web-shell/assets/{cose-bilkent-S5V4N54A-CVHKipHP.js → cose-bilkent-S5V4N54A-BTzs7mIi.js} +1 -1
  207. package/web-shell/assets/{dagre-BM42HDAG-C1DPa8SV.js → dagre-BM42HDAG-3VTUmWts.js} +1 -1
  208. package/web-shell/assets/{diagram-2AECGRRQ-BYP_QxkT.js → diagram-2AECGRRQ-Ehdp75GN.js} +1 -1
  209. package/web-shell/assets/{diagram-5GNKFQAL-Cray7ruQ.js → diagram-5GNKFQAL-B3wu3teE.js} +1 -1
  210. package/web-shell/assets/{diagram-KO2AKTUF-Ds4vJANi.js → diagram-KO2AKTUF-DjgTSf2S.js} +1 -1
  211. package/web-shell/assets/{diagram-LMA3HP47-DxFrDykH.js → diagram-LMA3HP47-Br9mwjY3.js} +1 -1
  212. package/web-shell/assets/{diagram-OG6HWLK6-BdIO-pF_.js → diagram-OG6HWLK6-D4xz5M-z.js} +1 -1
  213. package/web-shell/assets/{erDiagram-TEJ5UH35-5JA8KDYV.js → erDiagram-TEJ5UH35-CXayWlG_.js} +1 -1
  214. package/web-shell/assets/{flowDiagram-I6XJVG4X-DL4drKro.js → flowDiagram-I6XJVG4X-CLonjQTi.js} +1 -1
  215. package/web-shell/assets/{ganttDiagram-6RSMTGT7-ijX2DD6_.js → ganttDiagram-6RSMTGT7-BTySFT-1.js} +1 -1
  216. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-_lPsFLFF.js → gitGraphDiagram-PVQCEYII--2WcUjOe.js} +1 -1
  217. package/web-shell/assets/{index-dHAFxPHb.css → index-CIFO52Wx.css} +1 -1
  218. package/web-shell/assets/{index-C-YoqYbs.js → index-DPJHkFOG.js} +1 -1
  219. package/web-shell/assets/index-bhq3CUUF.js +1789 -0
  220. package/web-shell/assets/{infoDiagram-5YYISTIA-COFClLab.js → infoDiagram-5YYISTIA-9vpgAf1m.js} +1 -1
  221. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Div9KOgO.js → ishikawaDiagram-YF4QCWOH-DcRpHnAW.js} +1 -1
  222. package/web-shell/assets/{journeyDiagram-JHISSGLW-VAw5u0wc.js → journeyDiagram-JHISSGLW-C2TKorRm.js} +1 -1
  223. package/web-shell/assets/{kanban-definition-UN3LZRKU-CncCn8Nl.js → kanban-definition-UN3LZRKU-DdsFwB8b.js} +1 -1
  224. package/web-shell/assets/{linear-D6ad7e_k.js → linear-7PjRvJrf.js} +1 -1
  225. package/web-shell/assets/{mermaid.core-BV1IECGb.js → mermaid.core-raDXa11C.js} +5 -5
  226. package/web-shell/assets/{mindmap-definition-RKZ34NQL-a3jeNgPr.js → mindmap-definition-RKZ34NQL-DLHc-PRN.js} +1 -1
  227. package/web-shell/assets/{pieDiagram-4H26LBE5-DsVRY5BW.js → pieDiagram-4H26LBE5-BftYpeTW.js} +1 -1
  228. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D6zgexJK.js → quadrantDiagram-W4KKPZXB-O-6ygOYn.js} +1 -1
  229. package/web-shell/assets/{requirementDiagram-4Y6WPE33-VEpSwJjn.js → requirementDiagram-4Y6WPE33-BmZWVufJ.js} +1 -1
  230. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CYEuOFne.js → sankeyDiagram-5OEKKPKP-2x5beiWt.js} +1 -1
  231. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CCg0lI-9.js → sequenceDiagram-3UESZ5HK-BH8uKokQ.js} +1 -1
  232. package/web-shell/assets/{stateDiagram-AJRCARHV-BHXPsL0B.js → stateDiagram-AJRCARHV-Dq1MFgX_.js} +1 -1
  233. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-spuAYji6.js +1 -0
  234. package/web-shell/assets/{timeline-definition-PNZ67QCA-gqTf9a0k.js → timeline-definition-PNZ67QCA-Cl2WKbv9.js} +1 -1
  235. package/web-shell/assets/{vennDiagram-CIIHVFJN-C4DXXkBh.js → vennDiagram-CIIHVFJN-BqoRo_Q-.js} +1 -1
  236. package/web-shell/assets/{wardley-L42UT6IY-CMK46EiX.js → wardley-L42UT6IY-BTxp-Yot.js} +1 -1
  237. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DTk1Gzt9.js → wardleyDiagram-YWT4CUSO-DFXVCSH2.js} +1 -1
  238. package/web-shell/assets/{xychartDiagram-2RQKCTM6-BcJsM1dH.js → xychartDiagram-2RQKCTM6-qQhWx0aE.js} +1 -1
  239. package/web-shell/index.html +2 -2
  240. package/web-shell/assets/channel-BB_Hm8Rf.js +0 -1
  241. package/web-shell/assets/classDiagram-4FO5ZUOK-B_hFK54Y.js +0 -1
  242. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B_hFK54Y.js +0 -1
  243. package/web-shell/assets/index-BTwNYZkp.js +0 -1785
  244. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-eTG8D0QT.js +0 -1
  245. package/chunks/{artifact-tool-M7UAJ5NT.js → artifact-tool-FRMBPDPB.js} +3 -3
  246. package/chunks/{chunk-NWNEANAT.js → chunk-44CTCCLY.js} +0 -0
  247. package/chunks/{chunk-25OFRBH2.js → chunk-5PWLQ7SK.js} +4 -4
  248. package/chunks/{chunk-KCCODSAA.js → chunk-TBVNYG5B.js} +3 -3
  249. package/chunks/{chunk-4MHDNGAV.js → chunk-ZGWY4YUB.js} +3 -3
  250. package/chunks/{ls-O4VBQRG7.js → ls-FSHISLLA.js} +3 -3
  251. package/chunks/{task-update-LCJM3EYG.js → task-update-DVV6CUGI.js} +2 -2
@@ -8,16 +8,15 @@ import {
8
8
  staleArgsWarning,
9
9
  validateAuthMethod,
10
10
  writeSkillArgs
11
- } from "./chunk-TTB6GBJ6.js";
11
+ } from "./chunk-VUFEW3SF.js";
12
12
  import {
13
13
  calculateCost,
14
- computeSessionStats,
15
14
  diffCommand,
16
15
  filterCommandsForMode,
17
16
  findInlineMathExpressions,
18
17
  getSystemInfoFields,
19
18
  levelLabel
20
- } from "./chunk-DSKLWQHC.js";
19
+ } from "./chunk-JRRZFO4A.js";
21
20
  import {
22
21
  isKittyProtocolEnabled
23
22
  } from "./chunk-NYX53SV4.js";
@@ -25,19 +24,19 @@ import {
25
24
  VSCODE_SHIFT_ENTER_SEQUENCE,
26
25
  isWaylandSession,
27
26
  writeOsc52
28
- } from "./chunk-TNQLAI6I.js";
27
+ } from "./chunk-AMXMM7DH.js";
29
28
  import {
30
29
  contextCommand
31
- } from "./chunk-TNS2M7VL.js";
30
+ } from "./chunk-DEVFUPC5.js";
32
31
  import {
33
32
  themeManager
34
33
  } from "./chunk-EN2J77G7.js";
35
- import {
36
- rollbackStandaloneUpdate
37
- } from "./chunk-45HPDU3F.js";
38
34
  import {
39
35
  getErrorMessage as getErrorMessage2
40
- } from "./chunk-NM3E6GGL.js";
36
+ } from "./chunk-T2VEHZH3.js";
37
+ import {
38
+ rollbackStandaloneUpdate
39
+ } from "./chunk-VO52SIZW.js";
41
40
  import {
42
41
  GITHUB_WORKFLOW_PATHS,
43
42
  INSIGHT_CSS,
@@ -50,7 +49,7 @@ import {
50
49
  toJson,
51
50
  toJsonl,
52
51
  toMarkdown
53
- } from "./chunk-W2ITCESM.js";
52
+ } from "./chunk-7L64FSYQ.js";
54
53
  import {
55
54
  stripUnsafeCharacters,
56
55
  toCodePoints,
@@ -66,12 +65,12 @@ import {
66
65
  isVoiceEnabled,
67
66
  readVoiceMode,
68
67
  readVoiceModel
69
- } from "./chunk-F4T5J34H.js";
68
+ } from "./chunk-SZ36WFVK.js";
70
69
  import {
71
70
  getExtendedSystemInfo,
72
71
  getGitVersion,
73
72
  getNpmVersion
74
- } from "./chunk-AKLY5M2C.js";
73
+ } from "./chunk-ZIS5I56G.js";
75
74
  import {
76
75
  formatDuration,
77
76
  formatTokenCount
@@ -79,7 +78,10 @@ import {
79
78
  import {
80
79
  isInlineModelOverrideAllowed,
81
80
  parseAcpModelOption
82
- } from "./chunk-23GFHEM3.js";
81
+ } from "./chunk-5DDUYIY6.js";
82
+ import {
83
+ getInstallationInfo
84
+ } from "./chunk-L2O7DJIE.js";
83
85
  import {
84
86
  OUTPUT_LANGUAGE_AUTO,
85
87
  getAllSettingKeys,
@@ -91,24 +93,21 @@ import {
91
93
  resolveOutputLanguageOrPreserveAuto,
92
94
  validateSettingValue,
93
95
  writeOutputLanguageAndRegisterPath
94
- } from "./chunk-4PFKN7CQ.js";
96
+ } from "./chunk-3ZLUA4GV.js";
95
97
  import {
96
98
  getCurrentLanguage,
97
99
  setLanguageAsync,
98
100
  t
99
- } from "./chunk-KFCTC5IJ.js";
101
+ } from "./chunk-6LK2QPIA.js";
100
102
  import {
101
103
  SUPPORTED_LANGUAGES,
102
104
  getSupportedLanguageIds,
103
105
  resolveSupportedLanguage
104
106
  } from "./chunk-5EJZE3FP.js";
105
- import {
106
- getInstallationInfo
107
- } from "./chunk-LA3FF7RO.js";
108
107
  import {
109
108
  isFolderTrustEnabled,
110
109
  loadTrustedFolders
111
- } from "./chunk-YIKMBYMT.js";
110
+ } from "./chunk-M2S67TPJ.js";
112
111
  import {
113
112
  require_strip_json_comments
114
113
  } from "./chunk-NPQ5ZKRP.js";
@@ -119,7 +118,6 @@ import {
119
118
  EXTENSIONS_CONFIG_FILENAME,
120
119
  ExtensionManager,
121
120
  IdeClient,
122
- Logger,
123
121
  QWEN_CODE_COMPANION_EXTENSION_NAME,
124
122
  SESSION_TITLE_MAX_LENGTH,
125
123
  SessionService,
@@ -145,13 +143,11 @@ import {
145
143
  flatMapTextParts,
146
144
  formatMemoryUsage,
147
145
  generateSessionRecap,
148
- getArenaSystemReminder,
149
146
  getExtensionDescription,
150
147
  getExtensionDisplayName,
151
148
  getIdeInstaller,
152
149
  getInsightPrompt,
153
150
  getMCPServerPrompts,
154
- getPlanModeSystemReminder,
155
151
  getProjectSummaryPrompt,
156
152
  getShellConfiguration,
157
153
  glob,
@@ -180,13 +176,16 @@ import {
180
176
  resolveSlimmingConfig,
181
177
  runForkedAgent,
182
178
  tryGenerateSessionTitle
183
- } from "./chunk-UIZGNLBP.js";
179
+ } from "./chunk-INQN4KIA.js";
184
180
  import {
185
181
  external_exports
186
182
  } from "./chunk-CQ35AJ4Z.js";
187
183
  import {
188
184
  resolveModelId
189
- } from "./chunk-XT6TGJFD.js";
185
+ } from "./chunk-U6LT3QBF.js";
186
+ import {
187
+ APPROVAL_MODES
188
+ } from "./chunk-6LYDH7VT.js";
190
189
  import {
191
190
  getAutoSkillCuratorStatus,
192
191
  parse,
@@ -204,28 +203,9 @@ import {
204
203
  emptyGoalSnapshot,
205
204
  projectUserTranscriptForDisplay
206
205
  } from "./chunk-SAQHDAUJ.js";
207
- import {
208
- APPROVAL_MODES
209
- } from "./chunk-6LYDH7VT.js";
210
206
  import {
211
207
  resolveOpenAILogDir
212
- } from "./chunk-2XZWO53E.js";
213
- import {
214
- FORK_SUBAGENT_TYPE,
215
- stripStartupContext
216
- } from "./chunk-ZV4XVYL3.js";
217
- import {
218
- applySkillAllowedTools,
219
- buildSkillLlmContent
220
- } from "./chunk-K623ENWT.js";
221
- import {
222
- openBrowserSecurely
223
- } from "./chunk-NAVJD2PQ.js";
224
- import {
225
- REASONING_EFFORT_TIERS,
226
- applyReasoningEffort,
227
- normalizeReasoningEffort
228
- } from "./chunk-KM73TBQ4.js";
208
+ } from "./chunk-6XZERB6P.js";
229
209
  import {
230
210
  COMBINED_PASS_TOLERANCE_FACTOR,
231
211
  IdeConnectionEvent,
@@ -237,21 +217,35 @@ import {
237
217
  logIdeConnection,
238
218
  queryTokenUsage,
239
219
  read,
240
- recordSkillInvocation,
241
220
  uiTelemetryService
242
- } from "./chunk-U2JLICUY.js";
221
+ } from "./chunk-HB6QW4LM.js";
243
222
  import {
244
223
  getAutoMemoryRoot
245
224
  } from "./chunk-732MOPEM.js";
246
225
  import {
247
226
  runSideQuery
248
227
  } from "./chunk-CTQE2NB2.js";
228
+ import {
229
+ FORK_SUBAGENT_TYPE,
230
+ stripStartupContext
231
+ } from "./chunk-ZV4XVYL3.js";
232
+ import {
233
+ applySkillAllowedTools,
234
+ buildSkillLlmContent
235
+ } from "./chunk-K623ENWT.js";
249
236
  import {
250
237
  ToolDisplayNamesMigration,
251
238
  ToolNames,
252
- canonicalToolName,
253
- isShellProgressData
239
+ canonicalToolName
254
240
  } from "./chunk-XTH2OMDS.js";
241
+ import {
242
+ openBrowserSecurely
243
+ } from "./chunk-NAVJD2PQ.js";
244
+ import {
245
+ REASONING_EFFORT_TIERS,
246
+ applyReasoningEffort,
247
+ normalizeReasoningEffort
248
+ } from "./chunk-KM73TBQ4.js";
255
249
  import {
256
250
  Storage,
257
251
  createDebugLogger,
@@ -265,7 +259,7 @@ import {
265
259
  isCpuProfileRecording,
266
260
  startCpuProfile,
267
261
  stopCpuProfile
268
- } from "./chunk-3LHYTQ2R.js";
262
+ } from "./chunk-M3QYOPGN.js";
269
263
  import {
270
264
  init_esbuild_shims
271
265
  } from "./chunk-5O2XNYP6.js";
@@ -594,9 +588,6 @@ function findSlashCommandTokens(text, commands) {
594
588
  }
595
589
  __name(findSlashCommandTokens, "findSlashCommandTokens");
596
590
 
597
- // packages/cli/src/nonInteractiveCliCommands.ts
598
- init_esbuild_shims();
599
-
600
591
  // packages/cli/src/services/CommandService.ts
601
592
  init_esbuild_shims();
602
593
  var debugLogger2 = createDebugLogger("CLI_COMMANDS");
@@ -2055,7 +2046,7 @@ var approvalModeCommand = {
2055
2046
  };
2056
2047
  }
2057
2048
  }
2058
- const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-AUNRB5S7.js") : void 0;
2049
+ const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-3QJ7QV5R.js") : void 0;
2059
2050
  if (config) {
2060
2051
  try {
2061
2052
  config.setApprovalMode(mode);
@@ -6846,7 +6837,7 @@ var expandNowCommand = {
6846
6837
  content: t("History is already expanded in this session.")
6847
6838
  };
6848
6839
  }
6849
- const { expandCollapsedHistory } = await import("./resumeHistoryUtils-RR2KEVH5.js");
6840
+ const { expandCollapsedHistory } = await import("./resumeHistoryUtils-UMC4Y3E2.js");
6850
6841
  const updated = expandCollapsedHistory(history);
6851
6842
  loadHistory(updated);
6852
6843
  refreshStatic();
@@ -8296,7 +8287,7 @@ var initCommand = {
8296
8287
  if (existing && existing.trim().length > 0) {
8297
8288
  if (!context.overwriteConfirmed) {
8298
8289
  const [{ Text }, { default: React }] = await Promise.all([
8299
- import("./build-GDBLPA24.js"),
8290
+ import("./build-RZS65IIX.js"),
8300
8291
  import("./react-SG7JAQSZ.js")
8301
8292
  ]);
8302
8293
  return {
@@ -14117,10 +14108,10 @@ var updateCommand = {
14117
14108
  { performStandaloneUpdate },
14118
14109
  installationInfo
14119
14110
  ] = await Promise.all([
14120
- import("./updateCheck-VBRNPLS4.js"),
14121
- import("./processUtils-M635AD23.js"),
14122
- import("./standalone-update-5NN3MTYH.js"),
14123
- import("./installationInfo-6USRNCD2.js")
14111
+ import("./updateCheck-3BQA7KNI.js"),
14112
+ import("./processUtils-ILOXESNR.js"),
14113
+ import("./standalone-update-G4BETY4B.js"),
14114
+ import("./installationInfo-GY2OCLIS.js")
14124
14115
  ]);
14125
14116
  const { formatUpdateInstructions, getInstallationInfo: getInstallationInfo2 } = installationInfo;
14126
14117
  const settings = context.services.settings;
@@ -15581,46 +15572,6 @@ var SkillCommandLoader = class {
15581
15572
  }
15582
15573
  };
15583
15574
 
15584
- // packages/cli/src/ui/noninteractive/nonInteractiveUi.ts
15585
- init_esbuild_shims();
15586
- function createNonInteractiveUI() {
15587
- return {
15588
- history: [],
15589
- addItem: /* @__PURE__ */ __name((_item, _timestamp) => 0, "addItem"),
15590
- clear: /* @__PURE__ */ __name(() => {
15591
- }, "clear"),
15592
- setDebugMessage: /* @__PURE__ */ __name((_message) => {
15593
- }, "setDebugMessage"),
15594
- loadHistory: /* @__PURE__ */ __name((_newHistory) => {
15595
- }, "loadHistory"),
15596
- refreshStatic: /* @__PURE__ */ __name(() => {
15597
- }, "refreshStatic"),
15598
- pendingItem: null,
15599
- setPendingItem: /* @__PURE__ */ __name((_item) => {
15600
- }, "setPendingItem"),
15601
- btwItem: null,
15602
- setBtwItem: /* @__PURE__ */ __name((_item) => {
15603
- }, "setBtwItem"),
15604
- cancelBtw: /* @__PURE__ */ __name(() => {
15605
- }, "cancelBtw"),
15606
- btwAbortControllerRef: { current: null },
15607
- isIdleRef: { current: true },
15608
- toggleVimEnabled: /* @__PURE__ */ __name(async () => false, "toggleVimEnabled"),
15609
- setGeminiMdFileCount: /* @__PURE__ */ __name((_count) => {
15610
- }, "setGeminiMdFileCount"),
15611
- reloadCommands: /* @__PURE__ */ __name(() => {
15612
- }, "reloadCommands"),
15613
- setSessionName: /* @__PURE__ */ __name(() => {
15614
- }, "setSessionName"),
15615
- extensionsUpdateState: /* @__PURE__ */ new Map(),
15616
- dispatchExtensionStateUpdate: /* @__PURE__ */ __name((_action) => {
15617
- }, "dispatchExtensionStateUpdate"),
15618
- addConfirmUpdateExtensionRequest: /* @__PURE__ */ __name((_request) => {
15619
- }, "addConfirmUpdateExtensionRequest")
15620
- };
15621
- }
15622
- __name(createNonInteractiveUI, "createNonInteractiveUI");
15623
-
15624
15575
  // packages/cli/src/utils/userPromptExpansionHook.ts
15625
15576
  init_esbuild_shims();
15626
15577
  function appendUserPromptExpansionAdditionalContext(content, additionalContext) {
@@ -15649,724 +15600,6 @@ function formatUserPromptExpansionBlockedMessage(reason) {
15649
15600
  }
15650
15601
  __name(formatUserPromptExpansionBlockedMessage, "formatUserPromptExpansionBlockedMessage");
15651
15602
 
15652
- // packages/cli/src/nonInteractiveCliCommands.ts
15653
- var debugLogger19 = createDebugLogger("NON_INTERACTIVE_COMMANDS");
15654
- function getSkillCommandName(command) {
15655
- return command.skillDetail?.name ?? command.name;
15656
- }
15657
- __name(getSkillCommandName, "getSkillCommandName");
15658
- function handleCommandResult(result, outputHistoryItems) {
15659
- switch (result.type) {
15660
- case "submit_prompt":
15661
- return {
15662
- type: "submit_prompt",
15663
- content: result.content,
15664
- ...result.modelOverride ? { modelOverride: result.modelOverride } : {},
15665
- ...result.refreshContextFilesOnWrite ? { refreshContextFilesOnWrite: true } : {},
15666
- ...outputHistoryItems?.length ? { outputHistoryItems } : {}
15667
- };
15668
- case "message":
15669
- return {
15670
- type: "message",
15671
- messageType: result.messageType,
15672
- content: result.content,
15673
- ...outputHistoryItems?.length ? { outputHistoryItems } : {}
15674
- };
15675
- case "stream_messages":
15676
- return {
15677
- type: "stream_messages",
15678
- messages: result.messages
15679
- };
15680
- case "goal_control":
15681
- return {
15682
- type: "goal_control",
15683
- operation: result.operation,
15684
- response: result.response,
15685
- ...result.cause ? { cause: result.cause } : {}
15686
- };
15687
- /**
15688
- * Currently return types below are never generated due to the
15689
- * whitelist of allowed slash commands in ACP and non-interactive mode.
15690
- * We'll try to add more supported return types in the future.
15691
- */
15692
- case "tool":
15693
- return {
15694
- type: "unsupported",
15695
- reason: "Tool execution from slash commands is not supported in non-interactive mode.",
15696
- originalType: "tool"
15697
- };
15698
- case "quit":
15699
- return {
15700
- type: "unsupported",
15701
- reason: "Quit command is not supported in non-interactive mode. The process will exit naturally after completion.",
15702
- originalType: "quit"
15703
- };
15704
- case "dialog":
15705
- return {
15706
- type: "unsupported",
15707
- reason: `Dialog '${result.dialog}' cannot be opened in non-interactive mode.`,
15708
- originalType: "dialog"
15709
- };
15710
- case "load_history":
15711
- return {
15712
- type: "unsupported",
15713
- reason: "Loading history is not supported in non-interactive mode. Each invocation starts with a fresh context.",
15714
- originalType: "load_history"
15715
- };
15716
- case "confirm_shell_commands":
15717
- return {
15718
- type: "unsupported",
15719
- reason: "Shell command confirmation is not supported in non-interactive mode. Use YOLO mode or pre-approve commands.",
15720
- originalType: "confirm_shell_commands"
15721
- };
15722
- case "confirm_action":
15723
- return {
15724
- type: "unsupported",
15725
- reason: "Action confirmation is not supported in non-interactive mode. Commands requiring confirmation cannot be executed.",
15726
- originalType: "confirm_action"
15727
- };
15728
- default: {
15729
- const _exhaustive = result;
15730
- return {
15731
- type: "unsupported",
15732
- reason: `Unknown command result type: ${_exhaustive.type}`,
15733
- originalType: "unknown"
15734
- };
15735
- }
15736
- }
15737
- }
15738
- __name(handleCommandResult, "handleCommandResult");
15739
- async function fireUserPromptExpansionHook(config, commandName, commandArgs, content, signal) {
15740
- if (config.getDisableAllHooks?.() || !(config.hasHooksForEvent?.("UserPromptExpansion") ?? false)) {
15741
- return { content };
15742
- }
15743
- const hookSystem = config.getHookSystem();
15744
- if (!hookSystem) {
15745
- return { content };
15746
- }
15747
- const output = await hookSystem.fireUserPromptExpansionEvent(
15748
- commandName,
15749
- commandArgs,
15750
- serializeUserPromptExpansionPrompt(content),
15751
- signal
15752
- );
15753
- if (!output) {
15754
- return { content };
15755
- }
15756
- const blockingError = output.getBlockingError();
15757
- if (blockingError.blocked || output.shouldStopExecution()) {
15758
- return {
15759
- blockedResult: {
15760
- type: "message",
15761
- messageType: "error",
15762
- content: formatUserPromptExpansionBlockedMessage(
15763
- blockingError.reason || output.getEffectiveReason()
15764
- )
15765
- },
15766
- content
15767
- };
15768
- }
15769
- return {
15770
- content: appendUserPromptExpansionAdditionalContext(
15771
- content,
15772
- output.getAdditionalContext()
15773
- )
15774
- };
15775
- }
15776
- __name(fireUserPromptExpansionHook, "fireUserPromptExpansionHook");
15777
- async function registerModelInvocableCommands(commandService, config, executionMode, settings) {
15778
- if (!settings) {
15779
- return;
15780
- }
15781
- config.setModelInvocableCommandsProvider(
15782
- () => commandService.getModelInvocableCommands().map((cmd) => ({
15783
- name: cmd.name,
15784
- description: cmd.modelDescription ?? cmd.description
15785
- }))
15786
- );
15787
- config.setModelInvocableCommandsExecutor(
15788
- async (name, args = "") => {
15789
- const commands = commandService.getModelInvocableCommands();
15790
- const cmd = commands.find((c) => c.name === name);
15791
- if (!cmd?.action) return null;
15792
- const minimalContext = {
15793
- executionMode,
15794
- invocation: {
15795
- raw: args ? `/${name} ${args}` : `/${name}`,
15796
- name,
15797
- args
15798
- },
15799
- services: { config, settings, logger: null }
15800
- };
15801
- const result = await cmd.action(minimalContext, args);
15802
- if (!result || result.type !== "submit_prompt") return null;
15803
- const hookSignal = new AbortController().signal;
15804
- const hookResult = await fireUserPromptExpansionHook(
15805
- config,
15806
- name,
15807
- args,
15808
- result.content,
15809
- hookSignal
15810
- );
15811
- if (hookResult.blockedResult) {
15812
- return hookResult.blockedResult.type === "message" ? { error: hookResult.blockedResult.content } : null;
15813
- }
15814
- const content = hookResult.content;
15815
- if (typeof content === "string") return content;
15816
- if (Array.isArray(content)) {
15817
- return content.map(
15818
- (p) => typeof p === "string" ? p : p.text ?? ""
15819
- ).join("");
15820
- }
15821
- return null;
15822
- }
15823
- );
15824
- const skillManager = typeof config.getSkillManager === "function" ? config.getSkillManager() : null;
15825
- await skillManager?.notifyConfigChanged();
15826
- }
15827
- __name(registerModelInvocableCommands, "registerModelInvocableCommands");
15828
- var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings, sessionHooks) => {
15829
- const trimmed = rawQuery.trim();
15830
- if (!trimmed.startsWith("/")) {
15831
- return { type: "no_command" };
15832
- }
15833
- const isAcpMode = config.getExperimentalZedIntegration();
15834
- const isInteractive = config.isInteractive();
15835
- const executionMode = isAcpMode ? "acp" : isInteractive ? "interactive" : "non_interactive";
15836
- const allLoaders = [
15837
- new McpPromptLoader(config),
15838
- new BuiltinCommandLoader(config),
15839
- new BundledSkillLoader(config),
15840
- new SkillCommandLoader(config),
15841
- new SavedWorkflowLoader(config),
15842
- new FileCommandLoader(config)
15843
- ];
15844
- const disabledSlashCommandsRaw = config.getDisabledSlashCommands();
15845
- const disabledNameSet = /* @__PURE__ */ new Set();
15846
- for (const name of disabledSlashCommandsRaw) {
15847
- const trimmed2 = name.trim();
15848
- if (trimmed2) disabledNameSet.add(trimmed2.toLowerCase());
15849
- }
15850
- const isDisabled = /* @__PURE__ */ __name((cmd) => disabledNameSet.has(cmd.name.toLowerCase()) || (cmd.altNames ?? []).some((a) => disabledNameSet.has(a.toLowerCase())), "isDisabled");
15851
- const allCommandService = await CommandService.create(
15852
- allLoaders,
15853
- abortController.signal
15854
- );
15855
- const commandService = disabledNameSet.size > 0 ? await CommandService.create(
15856
- allLoaders,
15857
- abortController.signal,
15858
- disabledNameSet
15859
- ) : allCommandService;
15860
- await registerModelInvocableCommands(
15861
- commandService,
15862
- config,
15863
- executionMode,
15864
- settings
15865
- );
15866
- const allCommands = allCommandService.getCommands();
15867
- const filteredCommands = commandService.getCommandsForMode(executionMode).filter((cmd) => !isDisabled(cmd));
15868
- const { commandToExecute, args } = parseSlashCommand(
15869
- rawQuery,
15870
- filteredCommands
15871
- );
15872
- const stackedResult = parseStackedSlashCommands(rawQuery, filteredCommands);
15873
- if (stackedResult.skills.length >= 2) {
15874
- const combinedContent = [];
15875
- let firstModelOverride;
15876
- let refreshContextFilesOnWrite = false;
15877
- const onCompleteCallbacks = [];
15878
- const successfulSkillCommands = [];
15879
- for (const skill of stackedResult.skills) {
15880
- if (!skill.action) continue;
15881
- const skillContext = {
15882
- executionMode,
15883
- invocation: {
15884
- raw: `/${skill.name}`,
15885
- name: skill.name,
15886
- args: ""
15887
- },
15888
- services: { config, settings, logger: null }
15889
- };
15890
- const skillResult = await skill.action(skillContext, "");
15891
- if (skillResult?.type === "submit_prompt") {
15892
- combinedContent.push(skillResult.content);
15893
- firstModelOverride ??= skillResult.modelOverride;
15894
- refreshContextFilesOnWrite ||= Boolean(
15895
- skillResult.refreshContextFilesOnWrite
15896
- );
15897
- if (skillResult.onComplete) {
15898
- onCompleteCallbacks.push(skillResult.onComplete);
15899
- }
15900
- }
15901
- const succeeded = skillResult?.type === "submit_prompt";
15902
- recordSkillInvocation(config, {
15903
- skillName: getSkillCommandName(skill),
15904
- success: succeeded
15905
- });
15906
- if (succeeded) {
15907
- successfulSkillCommands.push(skill);
15908
- }
15909
- }
15910
- if (stackedResult.remainingText) {
15911
- combinedContent.push([{ text: stackedResult.remainingText }]);
15912
- }
15913
- const mergedContent = combinedContent.flat();
15914
- const hookResult = await fireUserPromptExpansionHook(
15915
- config,
15916
- stackedResult.skills.map((s) => s.name).join(" "),
15917
- stackedResult.remainingText,
15918
- mergedContent,
15919
- abortController.signal
15920
- );
15921
- if (hookResult.blockedResult) {
15922
- return hookResult.blockedResult;
15923
- }
15924
- for (const skill of successfulSkillCommands) {
15925
- void recordAutoSkillCommandUsage(config, skill);
15926
- }
15927
- return {
15928
- type: "submit_prompt",
15929
- content: hookResult.content,
15930
- ...firstModelOverride ? { modelOverride: firstModelOverride } : {},
15931
- ...refreshContextFilesOnWrite ? { refreshContextFilesOnWrite: true } : {},
15932
- ...onCompleteCallbacks.length ? {
15933
- onComplete: /* @__PURE__ */ __name(async () => {
15934
- for (const cb of onCompleteCallbacks) await cb();
15935
- }, "onComplete")
15936
- } : {}
15937
- };
15938
- }
15939
- if (!commandToExecute) {
15940
- const { commandToExecute: knownCommand } = parseSlashCommand(
15941
- rawQuery,
15942
- allCommands
15943
- );
15944
- if (knownCommand) {
15945
- const typedToken = rawQuery.trim().substring(1).trim().split(/\s+/)[0] ?? knownCommand.name;
15946
- if (isDisabled(knownCommand)) {
15947
- return {
15948
- type: "unsupported",
15949
- reason: t(
15950
- 'The command "/{{command}}" is disabled by the current configuration.',
15951
- { command: typedToken }
15952
- ),
15953
- originalType: "filtered_command"
15954
- };
15955
- }
15956
- return {
15957
- type: "unsupported",
15958
- reason: t('The command "/{{command}}" is not supported in this mode.', {
15959
- command: typedToken
15960
- }),
15961
- originalType: "filtered_command"
15962
- };
15963
- }
15964
- return { type: "no_command" };
15965
- }
15966
- if (!commandToExecute.action) {
15967
- return { type: "no_command" };
15968
- }
15969
- const sessionStats = {
15970
- sessionId: config?.getSessionId(),
15971
- sessionStartTime: /* @__PURE__ */ new Date(),
15972
- metrics: config ? uiTelemetryService.getMetricsForSession(config.getSessionId()) : uiTelemetryService.getMetrics(),
15973
- lastPromptTokenCount: 0,
15974
- promptCount: 1
15975
- };
15976
- const logger3 = new Logger(config?.getSessionId() || "", config?.storage);
15977
- const outputHistoryItems = [];
15978
- const ui = createNonInteractiveUI();
15979
- ui.addItem = (item) => {
15980
- outputHistoryItems.push(item);
15981
- return 0;
15982
- };
15983
- const context = {
15984
- executionMode,
15985
- services: {
15986
- config,
15987
- settings,
15988
- logger: logger3
15989
- },
15990
- ui,
15991
- session: {
15992
- stats: sessionStats,
15993
- sessionShellAllowlist: /* @__PURE__ */ new Set(),
15994
- ...sessionHooks?.startNewSession ? { startNewSession: sessionHooks.startNewSession } : {}
15995
- },
15996
- invocation: {
15997
- raw: trimmed,
15998
- name: commandToExecute.name,
15999
- args
16000
- }
16001
- };
16002
- const isSkillCommand = commandToExecute.kind === "skill" /* SKILL */;
16003
- let skillInvocationRecorded = false;
16004
- const recordSkillCommandInvocation = /* @__PURE__ */ __name((success) => {
16005
- if (!isSkillCommand || skillInvocationRecorded) {
16006
- return;
16007
- }
16008
- recordSkillInvocation(config, {
16009
- skillName: getSkillCommandName(commandToExecute),
16010
- success
16011
- });
16012
- skillInvocationRecorded = true;
16013
- }, "recordSkillCommandInvocation");
16014
- let result;
16015
- try {
16016
- result = await commandToExecute.action(context, args);
16017
- } catch (error) {
16018
- recordSkillCommandInvocation(false);
16019
- throw error;
16020
- }
16021
- if (!result) {
16022
- return {
16023
- type: "message",
16024
- messageType: "info",
16025
- content: "Command executed successfully."
16026
- };
16027
- }
16028
- if (result.type === "submit_prompt") {
16029
- let hookResult;
16030
- try {
16031
- hookResult = await fireUserPromptExpansionHook(
16032
- config,
16033
- commandToExecute.name,
16034
- args,
16035
- result.content,
16036
- abortController.signal
16037
- );
16038
- } catch (error) {
16039
- recordSkillCommandInvocation(false);
16040
- throw error;
16041
- }
16042
- if (hookResult.blockedResult) {
16043
- recordSkillCommandInvocation(false);
16044
- return hookResult.blockedResult;
16045
- }
16046
- recordSkillCommandInvocation(true);
16047
- void recordAutoSkillCommandUsage(config, commandToExecute);
16048
- return handleCommandResult(
16049
- { ...result, content: hookResult.content },
16050
- outputHistoryItems
16051
- );
16052
- }
16053
- return handleCommandResult(result, outputHistoryItems);
16054
- }, "handleSlashCommand");
16055
- var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mode = "acp", settings) => {
16056
- try {
16057
- const loaders = [
16058
- new McpPromptLoader(config),
16059
- new BuiltinCommandLoader(config),
16060
- new BundledSkillLoader(config),
16061
- new SkillCommandLoader(config),
16062
- new SavedWorkflowLoader(config),
16063
- new FileCommandLoader(config)
16064
- ];
16065
- const disabledSlashCommands = config.getDisabledSlashCommands();
16066
- const commandService = await CommandService.create(
16067
- loaders,
16068
- abortSignal,
16069
- disabledSlashCommands.length > 0 ? new Set(disabledSlashCommands) : void 0
16070
- );
16071
- await registerModelInvocableCommands(
16072
- commandService,
16073
- config,
16074
- mode,
16075
- settings
16076
- );
16077
- return commandService.getCommandsForMode(mode);
16078
- } catch (error) {
16079
- debugLogger19.error("Error loading available commands:", error);
16080
- return [];
16081
- }
16082
- }, "getAvailableCommands");
16083
-
16084
- // packages/cli/src/utils/nonInteractiveHelpers.ts
16085
- init_esbuild_shims();
16086
- var debugLogger20 = createDebugLogger("NON_INTERACTIVE");
16087
- function normalizePartList(parts) {
16088
- if (!parts) {
16089
- return [];
16090
- }
16091
- if (typeof parts === "string") {
16092
- return [{ text: parts }];
16093
- }
16094
- if (Array.isArray(parts)) {
16095
- return parts.map(
16096
- (part) => typeof part === "string" ? { text: part } : part
16097
- );
16098
- }
16099
- return [parts];
16100
- }
16101
- __name(normalizePartList, "normalizePartList");
16102
- function extractPartsFromUserMessage(message2) {
16103
- if (!message2) {
16104
- return null;
16105
- }
16106
- const content = message2.message?.content;
16107
- if (typeof content === "string") {
16108
- return content;
16109
- }
16110
- if (Array.isArray(content)) {
16111
- const parts = [];
16112
- for (const block of content) {
16113
- if (!block || typeof block !== "object" || !("type" in block)) {
16114
- continue;
16115
- }
16116
- if (block.type === "text" && "text" in block && block.text) {
16117
- parts.push({ text: block.text });
16118
- } else {
16119
- parts.push({ text: JSON.stringify(block) });
16120
- }
16121
- }
16122
- return parts.length > 0 ? parts : null;
16123
- }
16124
- return null;
16125
- }
16126
- __name(extractPartsFromUserMessage, "extractPartsFromUserMessage");
16127
- function computeUsageFromMetrics(metrics) {
16128
- const stats = computeSessionStats(metrics);
16129
- const { models } = metrics;
16130
- const totalOutputTokens = Object.values(models).reduce(
16131
- (acc, model) => acc + model.tokens.candidates,
16132
- 0
16133
- );
16134
- const totalTokens = Object.values(models).reduce(
16135
- (acc, model) => acc + model.tokens.total,
16136
- 0
16137
- );
16138
- const usage2 = {
16139
- input_tokens: stats.totalPromptTokens,
16140
- output_tokens: totalOutputTokens,
16141
- cache_read_input_tokens: stats.totalCachedTokens
16142
- };
16143
- if (totalTokens > 0) {
16144
- usage2.total_tokens = totalTokens;
16145
- }
16146
- return usage2;
16147
- }
16148
- __name(computeUsageFromMetrics, "computeUsageFromMetrics");
16149
- function buildInitialSystemReminders(config) {
16150
- const reminders = [];
16151
- if (config.getApprovalMode() === "plan" /* PLAN */) {
16152
- reminders.push({ text: getPlanModeSystemReminder(config.getSdkMode?.()) });
16153
- }
16154
- const arenaManager = config.getArenaManager?.();
16155
- if (arenaManager) {
16156
- try {
16157
- const sessionDir = arenaManager.getArenaSessionDir();
16158
- const configPath = `${sessionDir}/config.json`;
16159
- reminders.push({ text: getArenaSystemReminder(configPath) });
16160
- } catch {
16161
- }
16162
- }
16163
- return reminders;
16164
- }
16165
- __name(buildInitialSystemReminders, "buildInitialSystemReminders");
16166
- function insertAfterFunctionResponses(parts, additions) {
16167
- const firstNonFunctionResponse = parts.findIndex(
16168
- (part) => !part.functionResponse
16169
- );
16170
- const insertAt = firstNonFunctionResponse === -1 ? parts.length : firstNonFunctionResponse;
16171
- return [...parts.slice(0, insertAt), ...additions, ...parts.slice(insertAt)];
16172
- }
16173
- __name(insertAfterFunctionResponses, "insertAfterFunctionResponses");
16174
- async function loadSlashCommandNames(config) {
16175
- const controller = new AbortController();
16176
- try {
16177
- const commands = await getAvailableCommands(
16178
- config,
16179
- controller.signal,
16180
- "non_interactive"
16181
- );
16182
- return commands.map((cmd) => cmd.name).sort();
16183
- } catch (error) {
16184
- debugLogger20.error(
16185
- "[buildSystemMessage] Failed to load slash commands:",
16186
- error
16187
- );
16188
- return [];
16189
- } finally {
16190
- controller.abort();
16191
- }
16192
- }
16193
- __name(loadSlashCommandNames, "loadSlashCommandNames");
16194
- async function buildSystemMessage(config, sessionId, permissionMode) {
16195
- const toolRegistry = config.getToolRegistry();
16196
- const tools = toolRegistry ? toolRegistry.getAllToolNames() : [];
16197
- const mcpServers = config.getMcpServers();
16198
- const mcpServerList = mcpServers ? Object.keys(mcpServers).map((name) => ({
16199
- name,
16200
- status: getMCPServerStatus(name)
16201
- })) : [];
16202
- const slashCommands = await loadSlashCommandNames(config);
16203
- let agentNames = [];
16204
- try {
16205
- const subagentManager = config.getSubagentManager();
16206
- const subagents = await subagentManager.listSubagents();
16207
- agentNames = subagents.map((subagent) => subagent.name);
16208
- } catch (error) {
16209
- debugLogger20.error("[buildSystemMessage] Failed to load subagents:", error);
16210
- }
16211
- const systemMessage = {
16212
- type: "system",
16213
- subtype: "init",
16214
- uuid: sessionId,
16215
- session_id: sessionId,
16216
- cwd: config.getTargetDir(),
16217
- tools,
16218
- mcp_servers: mcpServerList,
16219
- model: config.getModel(),
16220
- permission_mode: permissionMode,
16221
- slash_commands: slashCommands,
16222
- qwen_code_version: config.getCliVersion() || "unknown",
16223
- agents: agentNames
16224
- };
16225
- return systemMessage;
16226
- }
16227
- __name(buildSystemMessage, "buildSystemMessage");
16228
- function isMcpToolProgressData(output) {
16229
- return typeof output === "object" && output !== null && "type" in output && output.type === "mcp_tool_progress";
16230
- }
16231
- __name(isMcpToolProgressData, "isMcpToolProgressData");
16232
- function createToolProgressHandler(request, adapter) {
16233
- const handler = /* @__PURE__ */ __name((_callId, output) => {
16234
- if (isMcpToolProgressData(output) || isShellProgressData(output)) {
16235
- adapter.emitToolProgress(request, output);
16236
- }
16237
- }, "handler");
16238
- return { handler };
16239
- }
16240
- __name(createToolProgressHandler, "createToolProgressHandler");
16241
- function createAgentToolProgressHandler(config, agentToolCallId, adapter) {
16242
- const previousTaskStates = /* @__PURE__ */ new Map();
16243
- const emittedToolUseIds = /* @__PURE__ */ new Set();
16244
- const emittedToolResultIds = /* @__PURE__ */ new Set();
16245
- const buildRequest = /* @__PURE__ */ __name((toolCall) => ({
16246
- callId: toolCall.callId,
16247
- name: toolCall.name,
16248
- args: toolCall.args || {},
16249
- isClientInitiated: true,
16250
- prompt_id: "",
16251
- response_id: void 0
16252
- }), "buildRequest");
16253
- const buildResponse = /* @__PURE__ */ __name((toolCall) => ({
16254
- callId: toolCall.callId,
16255
- error: toolCall.status === "failed" ? new Error(toolCall.error || "Tool execution failed") : void 0,
16256
- errorType: toolCall.status === "failed" ? "execution_failed" /* EXECUTION_FAILED */ : void 0,
16257
- resultDisplay: toolCall.resultDisplay,
16258
- responseParts: toolCall.responseParts || []
16259
- }), "buildResponse");
16260
- const hasResultContent = /* @__PURE__ */ __name((toolCall) => {
16261
- if (typeof toolCall.resultDisplay === "string" && toolCall.resultDisplay.trim().length > 0) {
16262
- return true;
16263
- }
16264
- if (toolCall.responseParts && toolCall.responseParts.length > 0) {
16265
- return true;
16266
- }
16267
- return toolCall.status === "failed";
16268
- }, "hasResultContent");
16269
- const emitToolUseIfNeeded = /* @__PURE__ */ __name((toolCall, fallbackStatus) => {
16270
- if (emittedToolUseIds.has(toolCall.callId)) {
16271
- return;
16272
- }
16273
- const toolCallToEmit = fallbackStatus ? {
16274
- ...toolCall,
16275
- status: fallbackStatus
16276
- } : toolCall;
16277
- if (toolCallToEmit.status === "executing" || toolCallToEmit.status === "awaiting_approval") {
16278
- if (adapter.processSubagentToolCall) {
16279
- adapter.processSubagentToolCall(toolCallToEmit, agentToolCallId);
16280
- emittedToolUseIds.add(toolCall.callId);
16281
- }
16282
- }
16283
- }, "emitToolUseIfNeeded");
16284
- const emitToolResultIfNeeded = /* @__PURE__ */ __name((toolCall) => {
16285
- if (emittedToolResultIds.has(toolCall.callId)) {
16286
- return;
16287
- }
16288
- if (!hasResultContent(toolCall)) {
16289
- return;
16290
- }
16291
- emittedToolResultIds.add(toolCall.callId);
16292
- const request = buildRequest(toolCall);
16293
- const response = buildResponse(toolCall);
16294
- if ("emitToolResult" in adapter && typeof adapter.emitToolResult === "function") {
16295
- adapter.emitToolResult(request, response, agentToolCallId);
16296
- } else {
16297
- adapter.emitToolResult(request, response);
16298
- }
16299
- }, "emitToolResultIfNeeded");
16300
- const processToolCall = /* @__PURE__ */ __name((toolCall, previousCall) => {
16301
- const isCompleted = toolCall.status === "success" || toolCall.status === "failed";
16302
- const isExecuting = toolCall.status === "executing" || toolCall.status === "awaiting_approval";
16303
- const wasExecuting = previousCall && (previousCall.status === "executing" || previousCall.status === "awaiting_approval");
16304
- if (isExecuting) {
16305
- emitToolUseIfNeeded(toolCall);
16306
- } else if (isCompleted && !emittedToolUseIds.has(toolCall.callId)) {
16307
- emitToolUseIfNeeded(toolCall, "executing");
16308
- } else if (wasExecuting && isCompleted) {
16309
- emitToolUseIfNeeded(toolCall, "executing");
16310
- }
16311
- if (isCompleted) {
16312
- emitToolResultIfNeeded(toolCall);
16313
- }
16314
- }, "processToolCall");
16315
- const outputUpdateHandler = /* @__PURE__ */ __name((callId, outputChunk) => {
16316
- if (typeof outputChunk === "object" && outputChunk !== null && "type" in outputChunk && outputChunk.type === "task_execution") {
16317
- const taskDisplay = outputChunk;
16318
- const previous = previousTaskStates.get(callId);
16319
- if (!adapter.processSubagentToolCall || !adapter.emitSubagentErrorResult) {
16320
- previousTaskStates.set(callId, taskDisplay);
16321
- return;
16322
- }
16323
- if (taskDisplay.toolCalls) {
16324
- if (!previous || !previous.toolCalls) {
16325
- for (const toolCall of taskDisplay.toolCalls) {
16326
- processToolCall(toolCall);
16327
- }
16328
- } else {
16329
- for (const toolCall of taskDisplay.toolCalls) {
16330
- const previousCall = previous.toolCalls.find(
16331
- (tc) => tc.callId === toolCall.callId
16332
- );
16333
- processToolCall(toolCall, previousCall);
16334
- }
16335
- }
16336
- }
16337
- if (taskDisplay.status === "failed" || taskDisplay.status === "cancelled") {
16338
- const previousStatus = previous?.status;
16339
- if (previousStatus !== "failed" && previousStatus !== "cancelled" && previousStatus !== void 0) {
16340
- const errorMessage2 = taskDisplay.terminateReason || (taskDisplay.status === "cancelled" ? "Task was cancelled" : "Task execution failed");
16341
- adapter.emitSubagentErrorResult(errorMessage2, 0, agentToolCallId);
16342
- }
16343
- }
16344
- if (!previous && taskDisplay.taskPrompt && !config.isInteractive() && (config.getOutputFormat() === "json" /* JSON */ || config.getOutputFormat() === "stream-json" /* STREAM_JSON */)) {
16345
- adapter.emitUserMessage(
16346
- [{ text: taskDisplay.taskPrompt }],
16347
- agentToolCallId
16348
- );
16349
- }
16350
- previousTaskStates.set(callId, taskDisplay);
16351
- }
16352
- }, "outputUpdateHandler");
16353
- return {
16354
- handler: outputUpdateHandler
16355
- };
16356
- }
16357
- __name(createAgentToolProgressHandler, "createAgentToolProgressHandler");
16358
- function functionResponsePartsToString(parts) {
16359
- return parts.map((part) => {
16360
- if ("functionResponse" in part) {
16361
- const response = part.functionResponse?.response;
16362
- const content = response?.["output"] ?? response?.["error"] ?? "";
16363
- return content;
16364
- }
16365
- return JSON.stringify(part);
16366
- }).join("");
16367
- }
16368
- __name(functionResponsePartsToString, "functionResponsePartsToString");
16369
-
16370
15603
  export {
16371
15604
  MAX_STACKED_SKILLS,
16372
15605
  isStackedSkillCompletableCommand,
@@ -16408,18 +15641,7 @@ export {
16408
15641
  SkillCommandLoader,
16409
15642
  appendUserPromptExpansionAdditionalContext,
16410
15643
  serializeUserPromptExpansionPrompt,
16411
- formatUserPromptExpansionBlockedMessage,
16412
- handleSlashCommand,
16413
- getAvailableCommands,
16414
- normalizePartList,
16415
- extractPartsFromUserMessage,
16416
- computeUsageFromMetrics,
16417
- buildInitialSystemReminders,
16418
- insertAfterFunctionResponses,
16419
- buildSystemMessage,
16420
- createToolProgressHandler,
16421
- createAgentToolProgressHandler,
16422
- functionResponsePartsToString
15644
+ formatUserPromptExpansionBlockedMessage
16423
15645
  };
16424
15646
  /**
16425
15647
  * @license