@qwen-code/qwen-code 0.21.5 → 0.21.6-nightly.20260806.cb3dc107f

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 (250) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +8 -8
  2. package/bundled/qc-helper/docs/configuration/settings.md +15 -15
  3. package/bundled/qc-helper/docs/features/channels/github.md +31 -19
  4. package/bundled/qc-helper/docs/features/code-review.md +5 -1
  5. package/bundled/qc-helper/docs/features/headless.md +31 -0
  6. package/bundled/qc-helper/docs/qwen-serve.md +75 -0
  7. package/bundled/review/SKILL.md +72 -60
  8. package/chunks/{MaxSizedBox-2MWU5JYB.js → MaxSizedBox-76SOXLCN.js} +11 -10
  9. package/chunks/{StandaloneSessionPicker-B6MI5NTB.js → StandaloneSessionPicker-2I5HXMVH.js} +26 -25
  10. package/chunks/{acp-startup-profiler-3RICG2YW.js → acp-startup-profiler-ORIQ2CCQ.js} +2 -2
  11. package/chunks/{acpAgent-MRPYN6FH.js → acpAgent-IC4KYVXZ.js} +1232 -139
  12. package/chunks/{agent-NAOXNW4I.js → agent-FAN6AQL2.js} +11 -10
  13. package/chunks/{agent-headless-L4PPVFKW.js → agent-headless-ZCJVZHRW.js} +11 -10
  14. package/chunks/{bridge-LHXGYNCO.js → bridge-CPJXZP6D.js} +17 -15
  15. package/chunks/{channel-management-service-UHX56NBO.js → channel-management-service-IGEUOVRT.js} +3 -3
  16. package/chunks/{channel-settings-store-QB54TLYE.js → channel-settings-store-FFCUWSV7.js} +18 -17
  17. package/chunks/{channel-worker-group-NDG4WOOZ.js → channel-worker-group-JWQK224X.js} +6 -5
  18. package/chunks/{channel-worker-manager-ZCW6UW34.js → channel-worker-manager-77E3OXRQ.js} +6 -5
  19. package/chunks/{channel-worker-supervisor-ATGFTZRN.js → channel-worker-supervisor-62YWUGP2.js} +4 -3
  20. package/chunks/{chunk-TCOJPG2P.js → chunk-2DMV6FEP.js} +1 -1
  21. package/chunks/{chunk-SJMCYCUQ.js → chunk-2OCWVHXP.js} +5 -5
  22. package/chunks/{chunk-GBY3ODW7.js → chunk-35EWEBOO.js} +3 -3
  23. package/chunks/{chunk-IK3RYLAD.js → chunk-3AE4R25G.js} +3 -3
  24. package/chunks/{chunk-YO4JI7B4.js → chunk-3IVUXQBG.js} +12 -6
  25. package/chunks/{chunk-3GOCVBYR.js → chunk-3NUZRMFI.js} +5 -5
  26. package/chunks/{chunk-7MFQLOHZ.js → chunk-3PRJYMXC.js} +1 -1
  27. package/chunks/{chunk-FEUXV3DC.js → chunk-4HKEJS5D.js} +1 -1
  28. package/chunks/{chunk-XD2PNH3K.js → chunk-4MBOMW76.js} +5 -5
  29. package/chunks/{chunk-CAX76R46.js → chunk-4MMRFNEA.js} +1 -1
  30. package/chunks/{chunk-MISUEWB4.js → chunk-4S4OEQ6U.js} +10 -6
  31. package/chunks/{chunk-URJHXOSO.js → chunk-4WTAQEHV.js} +1 -1
  32. package/chunks/{chunk-K64OI7S7.js → chunk-57XZYJ54.js} +2 -2
  33. package/chunks/{chunk-SQTA6PAY.js → chunk-73HIRDR3.js} +6 -2
  34. package/chunks/{chunk-K6VEL5KP.js → chunk-7D4X4CUD.js} +1 -1
  35. package/chunks/{chunk-G2UXFO2B.js → chunk-7UZWRM4U.js} +1 -1
  36. package/chunks/{chunk-K2ETEWG6.js → chunk-AEPCN3SJ.js} +1 -1
  37. package/chunks/{chunk-JDNWIXHJ.js → chunk-AIVD3BA4.js} +3 -3
  38. package/chunks/{chunk-BWLUCN35.js → chunk-BBYDYDRE.js} +2 -2
  39. package/chunks/chunk-BKHCW2BI.js +41 -0
  40. package/chunks/{chunk-QL4TN4HS.js → chunk-BRVWYMKV.js} +1 -1
  41. package/chunks/{chunk-4NEBUDWS.js → chunk-C3AV3DT5.js} +9 -9
  42. package/chunks/{chunk-4O6HLCOF.js → chunk-CMDEHXIZ.js} +1 -1
  43. package/chunks/{chunk-EXHQZBVJ.js → chunk-DWFGL55L.js} +2 -2
  44. package/chunks/{chunk-KH2BIJ4H.js → chunk-DWO5MRNA.js} +267 -11
  45. package/chunks/{chunk-DTAPI453.js → chunk-EMYZIABH.js} +1 -1
  46. package/chunks/{chunk-3P4GP4S2.js → chunk-F5NHZNIW.js} +4 -4
  47. package/chunks/{chunk-Q2V4AOQL.js → chunk-FMFPVZLW.js} +1 -1
  48. package/chunks/{chunk-B2RBYP7Z.js → chunk-FQMID2PL.js} +2 -2
  49. package/chunks/{chunk-TJ56V3AR.js → chunk-FTYCQRAN.js} +4 -4
  50. package/chunks/{chunk-7W5KOBYU.js → chunk-GQMVWRDJ.js} +1 -1
  51. package/chunks/{chunk-VJPF6GF2.js → chunk-GSSHJ5YH.js} +3 -3
  52. package/chunks/{chunk-LMNM37OE.js → chunk-H4UDE45I.js} +1 -1
  53. package/chunks/{chunk-BK2UNYWD.js → chunk-HIBNSEJE.js} +12 -0
  54. package/chunks/{chunk-4LLUH3A7.js → chunk-HU5TUALO.js} +95 -8
  55. package/chunks/{chunk-N3RERU5N.js → chunk-I2O7DAYN.js} +3 -3
  56. package/chunks/{chunk-GP4IMBX5.js → chunk-ISWZRFDK.js} +1696 -476
  57. package/chunks/{chunk-RM3F46UT.js → chunk-IT4CNDZX.js} +71 -6
  58. package/chunks/{chunk-NLQIEY6W.js → chunk-JBRPBNZS.js} +3 -3
  59. package/chunks/{chunk-GEP54CHX.js → chunk-JD4X55P3.js} +3 -3
  60. package/chunks/{chunk-OWAK7LMW.js → chunk-KGJGEEVR.js} +7 -0
  61. package/chunks/{chunk-J7I2BZHS.js → chunk-KPOMSNS3.js} +23 -6
  62. package/chunks/{chunk-VOA2UPZM.js → chunk-KXCTLL3T.js} +5 -5
  63. package/chunks/{chunk-4NNR24EP.js → chunk-L7DXFIT7.js} +3 -3
  64. package/chunks/{chunk-LEZFUYPM.js → chunk-LAAFLUQV.js} +4 -4
  65. package/chunks/{chunk-ZPGMDT4S.js → chunk-LLM2DCGI.js} +19 -92
  66. package/chunks/{chunk-FHPKHXHT.js → chunk-MKVZE4ZJ.js} +5 -1
  67. package/chunks/{chunk-7M2RLFNX.js → chunk-NIFEBX4K.js} +11 -11
  68. package/chunks/chunk-NKLP3DCK.js +22 -0
  69. package/chunks/{chunk-YLL3SC5S.js → chunk-NSESTZWP.js} +1032 -913
  70. package/chunks/{chunk-5HWAJ4BK.js → chunk-OCNX2VNN.js} +1 -1
  71. package/chunks/{chunk-ZLGPHA34.js → chunk-PKWS5H7T.js} +5 -5
  72. package/chunks/{chunk-SVIEVA3L.js → chunk-QDM3MZRE.js} +29 -4
  73. package/chunks/{chunk-OGAARVN7.js → chunk-QKCO7NQU.js} +3 -3
  74. package/chunks/{chunk-B3EBIZUY.js → chunk-QMDTTQ7D.js} +8 -3
  75. package/chunks/{chunk-C6ARWPCG.js → chunk-R4A3ZQB4.js} +2 -2
  76. package/chunks/{chunk-UKZEXS6K.js → chunk-R574ATRM.js} +11 -0
  77. package/chunks/{chunk-IWYXZAGT.js → chunk-RE7NVPE7.js} +33 -33
  78. package/chunks/{chunk-2JBETW4S.js → chunk-RJNSNQLE.js} +5 -5
  79. package/chunks/{chunk-D7QAZ5DF.js → chunk-RJOKRCEV.js} +1 -1
  80. package/chunks/{chunk-AEWOKOJY.js → chunk-RTHXX6H7.js} +1 -1
  81. package/chunks/{chunk-CIUUYB23.js → chunk-S7CV4KO6.js} +3 -3
  82. package/chunks/{chunk-UWSXFI6E.js → chunk-SQC6K5HI.js} +6 -2
  83. package/chunks/{chunk-YMUZQ3MQ.js → chunk-SSQW2QUF.js} +3 -3
  84. package/chunks/{chunk-I7JDGNG6.js → chunk-T5U6IM4C.js} +6 -2
  85. package/chunks/{chunk-LYPXNRBX.js → chunk-TE7P6I5J.js} +1 -1
  86. package/chunks/{chunk-A6SX5TAH.js → chunk-TSERKWCX.js} +6 -2
  87. package/chunks/{chunk-3H5RFLTS.js → chunk-TVHTRN4G.js} +2 -2
  88. package/chunks/{chunk-OIGB253L.js → chunk-UBR4W53E.js} +8 -8
  89. package/chunks/{chunk-PDDYAXL2.js → chunk-UGTWD35F.js} +14 -1
  90. package/chunks/{chunk-IWGMDSC3.js → chunk-UXWEOM4U.js} +355 -17
  91. package/chunks/{chunk-WU5NBSLD.js → chunk-VRAPDAZM.js} +3 -3
  92. package/chunks/{chunk-M744OFVE.js → chunk-W7U4ESW2.js} +1 -1
  93. package/chunks/{chunk-GTM6IHBB.js → chunk-WO2B5E5B.js} +1 -0
  94. package/chunks/chunk-WOJZWRAZ.js +123 -0
  95. package/chunks/{chunk-IZ2CMEYO.js → chunk-X4TEVZB7.js} +1 -1
  96. package/chunks/{chunk-WTM5QONI.js → chunk-YO7P73TY.js} +2 -2
  97. package/chunks/{chunk-QONSRAEV.js → chunk-YP5KH5Y7.js} +1 -1
  98. package/chunks/{chunk-ZLJQIGCH.js → chunk-YZQTA3ID.js} +28 -11
  99. package/chunks/{chunk-5XNO4AW7.js → chunk-ZHFLN4VK.js} +11 -11
  100. package/chunks/{chunk-LSYVASZS.js → chunk-ZKHTMT7B.js} +1 -1
  101. package/chunks/{chunk-P3SLTSNY.js → chunk-ZRTBFP6O.js} +4 -4
  102. package/chunks/{computer-use-XDOGP2KA.js → computer-use-ZOQOY5J4.js} +11 -10
  103. package/chunks/{config-utils-E3ZQTHGM.js → config-utils-VXD4SPVR.js} +2 -2
  104. package/chunks/{contextCommand-N3LQDCYJ.js → contextCommand-PJHOBZP3.js} +14 -13
  105. package/chunks/{core-runtime-STAFP45W.js → core-runtime-DJDDHMGC.js} +11 -10
  106. package/chunks/create-sub-session-3VXZRNWN.js +772 -0
  107. package/chunks/{daemon-CCIX4BMG.js → daemon-YI5RY62O.js} +115 -3
  108. package/chunks/{daemon-status-provider-PPAH3ATF.js → daemon-status-provider-EUXM7W4W.js} +21 -19
  109. package/chunks/{daemon-trust-policy-X6XL3MB4.js → daemon-trust-policy-GTNLLGVX.js} +17 -16
  110. package/chunks/{daemon-trust-policy-monitor-M5LBL2HD.js → daemon-trust-policy-monitor-C2WRLHKH.js} +17 -16
  111. package/chunks/{deferred-core-runtime-O54YPTBU.js → deferred-core-runtime-F2LMMSGP.js} +11 -10
  112. package/chunks/discovery-XLHITE74.js +220 -0
  113. package/chunks/{dist-IKGVITP3.js → dist-KS4O2NKE.js} +99 -6
  114. package/chunks/{earlyInputCapture-CBIT2RGT.js → earlyInputCapture-FSJYF2T3.js} +11 -10
  115. package/chunks/{edit-KW2TOC6A.js → edit-BGSW6JWC.js} +11 -10
  116. package/chunks/{enter-worktree-YL34NEU5.js → enter-worktree-R6Q76ED7.js} +11 -10
  117. package/chunks/{enterPlanMode-JFJTDASQ.js → enterPlanMode-76F2FEEC.js} +11 -10
  118. package/chunks/{environment-IATU5GXG.js → environment-VJVOYNQY.js} +14 -13
  119. package/chunks/{errors-SAVRDE7Q.js → errors-A3YG5LT3.js} +14 -13
  120. package/chunks/{exit-worktree-5M43QPBB.js → exit-worktree-BZRA3IOQ.js} +11 -10
  121. package/chunks/{exitPlanMode-W4EICZ4N.js → exitPlanMode-BL2REOQM.js} +11 -10
  122. package/chunks/external-tool-guard-provider-5HTGOPGU.js +273 -0
  123. package/chunks/{fast-path-YQJPIKMP.js → fast-path-JIH22X6C.js} +5 -5
  124. package/chunks/{gemini-FUF5SSPR.js → gemini-US7BS42U.js} +70 -55
  125. package/chunks/{geminiContentGenerator-LLLZBOUG.js → geminiContentGenerator-XE44Y7CB.js} +1 -1
  126. package/chunks/{glob-LJFFMN4D.js → glob-FPHX3RAK.js} +11 -10
  127. package/chunks/{grep-Q64EAM73.js → grep-EEUBJAK4.js} +11 -10
  128. package/chunks/{handleAutoUpdate-QBMPRTSQ.js → handleAutoUpdate-P2ZCEJTF.js} +16 -15
  129. package/chunks/{i18n-LDUW5DMN.js → i18n-CNZUAFR4.js} +13 -12
  130. package/chunks/{image-gen-G7RLG3KR.js → image-gen-V47WPVSK.js} +1 -1
  131. package/chunks/{initializer-74A7DMMD.js → initializer-XO4M57DM.js} +17 -16
  132. package/chunks/{installationInfo-OFDYLDFD.js → installationInfo-Q6R73NUW.js} +12 -11
  133. package/chunks/{list-JA2EWRHJ.js → list-YKMYC2Y5.js} +20 -19
  134. package/chunks/{loadedSettingsAdapter-2GNJOQ3L.js → loadedSettingsAdapter-JJ3MRGFE.js} +17 -16
  135. package/chunks/{loggingContentGenerator-B6B5EGB3.js → loggingContentGenerator-AO72RGAX.js} +4 -3
  136. package/chunks/{managed-npm-update-4YZHLUER.js → managed-npm-update-PVUZBYUX.js} +24 -14
  137. package/chunks/{mcp-LLK5YJVH.js → mcp-3ETUN2UW.js} +17 -16
  138. package/chunks/{monitor-NYJPAWVP.js → monitor-YVE5CUDP.js} +11 -10
  139. package/chunks/{nonInteractiveCli-HZBBBDJD.js → nonInteractiveCli-227LJD6N.js} +47 -45
  140. package/chunks/{notebook-edit-LLM6UXFX.js → notebook-edit-US4VX3NB.js} +11 -10
  141. package/chunks/{openaiContentGenerator-2AEXDN55.js → openaiContentGenerator-M6HEQOON.js} +5 -4
  142. package/chunks/{pidfile-3JUWX7G2.js → pidfile-CC7CYCCD.js} +11 -10
  143. package/chunks/{processUtils-JLLRVZHT.js → processUtils-34OHR6UD.js} +2 -2
  144. package/chunks/{qwenContentGenerator-2FESCF27.js → qwenContentGenerator-2WX5HJCA.js} +12 -11
  145. package/chunks/{qwenOAuth2-2KKPYA5J.js → qwenOAuth2-GJ4Q3E2F.js} +1 -1
  146. package/chunks/{read-file-5GVXLY74.js → read-file-2FZDO5GP.js} +3 -2
  147. package/chunks/{record-artifact-L3BAHQFN.js → record-artifact-E6AWQU2Z.js} +1 -1
  148. package/chunks/{resumeHistoryUtils-Z4OFBXPM.js → resumeHistoryUtils-EBJRJB3Y.js} +15 -14
  149. package/chunks/{ripGrep-TKOJTIAB.js → ripGrep-HJDLUUOZ.js} +11 -10
  150. package/chunks/{run-qwen-serve-K5W6MM6M.js → run-qwen-serve-OWEETWOR.js} +518 -75
  151. package/chunks/{runtime-IADXMRCY.js → runtime-RI27GIVJ.js} +20 -19
  152. package/chunks/{scheduler-T7AV37LD.js → scheduler-EZ36YLU5.js} +11 -10
  153. package/chunks/{serve-ROEGMS3I.js → serve-UZJ5I4X3.js} +18 -16
  154. package/chunks/{server-NGXMRODI.js → server-ADQU7JNR.js} +7556 -397
  155. package/chunks/{session-RCDLDJA4.js → session-7EA3WMTE.js} +50 -48
  156. package/chunks/{settings-E6H3AURD.js → settings-RUKTTVZD.js} +16 -15
  157. package/chunks/{shell-RHGGJ6BE.js → shell-5277KYMM.js} +11 -10
  158. package/chunks/{skill-GQ7PBS25.js → skill-47PHCPGC.js} +4 -3
  159. package/chunks/{skill-settings-E2F7OCBL.js → skill-settings-WXVWFK2I.js} +16 -15
  160. package/chunks/{spawnChannel-Q2IQBHME.js → spawnChannel-53GKUCUN.js} +14 -12
  161. package/chunks/{standalone-update-NYYZEHLD.js → standalone-update-CNPXCYU7.js} +14 -13
  162. package/chunks/{startInteractiveUI-IX6I3Y2Z.js → startInteractiveUI-IKDPDJEU.js} +140 -138
  163. package/chunks/{stdioHelpers-HGIYTWAY.js → stdioHelpers-7A2EE64Z.js} +5 -3
  164. package/chunks/{task-create-2X4UP4F3.js → task-create-Q727MXHJ.js} +2 -2
  165. package/chunks/{task-list-WOLJPZ64.js → task-list-G6KPQ5JT.js} +1 -1
  166. package/chunks/{task-update-VDUSN36E.js → task-update-YB7PXO4R.js} +2 -2
  167. package/chunks/{team-create-UTRVUEDA.js → team-create-6JEMKGZJ.js} +11 -10
  168. package/chunks/{team-delete-D2VMSDOT.js → team-delete-GDO7H2T4.js} +1 -1
  169. package/chunks/{team-plan-approval-YZNB4U5U.js → team-plan-approval-64OL7VCA.js} +11 -10
  170. package/chunks/{terminal-image-renderer-QRSCS2BE.js → terminal-image-renderer-FH6P46SE.js} +11 -10
  171. package/chunks/{theme-manager-EKZBY34I.js → theme-manager-UD3HG3Q3.js} +11 -10
  172. package/chunks/{tool-search-N2R7LVMC.js → tool-search-VPWI3KLB.js} +3 -2
  173. package/chunks/{total-session-admission-HBIYARPO.js → total-session-admission-UNVZOBI5.js} +17 -15
  174. package/chunks/{trustedFolders-ZQLYRCSY.js → trustedFolders-MP6IUKPQ.js} +13 -12
  175. package/chunks/{update-relaunch-PJWXMPCR.js → update-relaunch-I6RX2JPJ.js} +6 -6
  176. package/chunks/{updateCheck-ZXRCGY66.js → updateCheck-F52UPQ63.js} +15 -14
  177. package/chunks/{useAutoAcceptIndicator-ZYQW5SGJ.js → useAutoAcceptIndicator-PN3O5YBX.js} +19 -18
  178. package/chunks/{validateNonInterActiveAuth-M7J7OTRH.js → validateNonInterActiveAuth-SVF7KFFU.js} +44 -42
  179. package/chunks/{version-2AOHMPK3.js → version-2WVTHGLQ.js} +1 -1
  180. package/chunks/{web-fetch-DS34CJ3R.js → web-fetch-IZKYM3VK.js} +3 -2
  181. package/chunks/{web-search-ITFPD7V4.js → web-search-72BTYDYR.js} +4 -3
  182. package/chunks/{workflow-LZQ4PGNS.js → workflow-TJJWOY3O.js} +12 -11
  183. package/chunks/{workspace-providers-status-ZPTLKOBM.js → workspace-providers-status-6UODWWFN.js} +20 -19
  184. package/chunks/{workspace-registration-store-OTFKSGG7.js → workspace-registration-store-BW62HHVV.js} +1 -1
  185. package/chunks/{workspace-registry-YZ3OXPHP.js → workspace-registry-OHXQNS46.js} +17 -15
  186. package/chunks/{workspace-service-OCZXOOSQ.js → workspace-service-IMSSY6WR.js} +21 -20
  187. package/chunks/{workspace-skills-status-K2ALGUCD.js → workspace-skills-status-4YQB7NOM.js} +18 -17
  188. package/chunks/{workspace-trust-reconciler-KMRZISJP.js → workspace-trust-reconciler-5S4NOT3Y.js} +26 -24
  189. package/chunks/{write-file-AWBI4GJS.js → write-file-7OPAETB2.js} +11 -10
  190. package/chunks/{zoom-image-NHKN6F77.js → zoom-image-U3YSNF6S.js} +3 -2
  191. package/cli-entry.js +14 -0
  192. package/cli.js +19 -15
  193. package/package.json +3 -3
  194. package/web-shell/assets/{arc-Dpg66jw7.js → arc-B-Vtkp1W.js} +1 -1
  195. package/web-shell/assets/{architectureDiagram-3BPJPVTR-BJ4FIBxN.js → architectureDiagram-3BPJPVTR-qmTXIj64.js} +1 -1
  196. package/web-shell/assets/{blockDiagram-GPEHLZMM-VXmYdtYT.js → blockDiagram-GPEHLZMM-ZlnXEtdP.js} +1 -1
  197. package/web-shell/assets/{c4Diagram-AAUBKEIU-BNLDb8FE.js → c4Diagram-AAUBKEIU-Wyoirf6Z.js} +1 -1
  198. package/web-shell/assets/channel-DXaHnfjS.js +1 -0
  199. package/web-shell/assets/{chunk-2J33WTMH-DR5yHxr0.js → chunk-2J33WTMH-WQwbq9d8.js} +1 -1
  200. package/web-shell/assets/{chunk-4BX2VUAB-Czkq8UZU.js → chunk-4BX2VUAB-DQKnAXC4.js} +1 -1
  201. package/web-shell/assets/{chunk-55IACEB6-DugUgM6s.js → chunk-55IACEB6-DIdgXNcO.js} +1 -1
  202. package/web-shell/assets/{chunk-727SXJPM-Dw6quA1K.js → chunk-727SXJPM-CUwGOLEd.js} +1 -1
  203. package/web-shell/assets/{chunk-AQP2D5EJ-BoVYOTTz.js → chunk-AQP2D5EJ-CCBGZFZ4.js} +1 -1
  204. package/web-shell/assets/{chunk-FMBD7UC4--Amcse-j.js → chunk-FMBD7UC4-DMGXProk.js} +1 -1
  205. package/web-shell/assets/{chunk-ND2GUHAM-ajaEYAC8.js → chunk-ND2GUHAM-yejcFqsh.js} +1 -1
  206. package/web-shell/assets/{chunk-QZHKN3VN-CUNDZ7im.js → chunk-QZHKN3VN-DxCyqTf7.js} +1 -1
  207. package/web-shell/assets/classDiagram-4FO5ZUOK-BigU82A0.js +1 -0
  208. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BigU82A0.js +1 -0
  209. package/web-shell/assets/{cose-bilkent-S5V4N54A-BnfkD-m1.js → cose-bilkent-S5V4N54A-DOrF3cg_.js} +1 -1
  210. package/web-shell/assets/{dagre-BM42HDAG-BuUdFk7Z.js → dagre-BM42HDAG-Be6CdYQ_.js} +1 -1
  211. package/web-shell/assets/{diagram-2AECGRRQ-B2ZXxoab.js → diagram-2AECGRRQ-B_Rjsft2.js} +1 -1
  212. package/web-shell/assets/{diagram-5GNKFQAL-BsgOICzM.js → diagram-5GNKFQAL-BvQbKSm1.js} +1 -1
  213. package/web-shell/assets/{diagram-KO2AKTUF-DTTjG6U-.js → diagram-KO2AKTUF-BsdmMdpS.js} +1 -1
  214. package/web-shell/assets/{diagram-LMA3HP47-temLf1x7.js → diagram-LMA3HP47-CrQlBaNr.js} +1 -1
  215. package/web-shell/assets/{diagram-OG6HWLK6-CRFjScs2.js → diagram-OG6HWLK6-aB1MD_DL.js} +1 -1
  216. package/web-shell/assets/{erDiagram-TEJ5UH35-D4oaY-rQ.js → erDiagram-TEJ5UH35-F-eUUn9n.js} +1 -1
  217. package/web-shell/assets/{flowDiagram-I6XJVG4X-BqG8B49b.js → flowDiagram-I6XJVG4X-DY_d8lUK.js} +1 -1
  218. package/web-shell/assets/{ganttDiagram-6RSMTGT7-DffQBdd5.js → ganttDiagram-6RSMTGT7-Dqu7KBPg.js} +1 -1
  219. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CMDPfseF.js → gitGraphDiagram-PVQCEYII-2IkU_VEj.js} +1 -1
  220. package/web-shell/assets/{index-qTQR_smP.js → index-BuSbqggh.js} +1 -1
  221. package/web-shell/assets/index-DrfC2e9s.js +1768 -0
  222. package/web-shell/assets/index-QQlUCJGg.css +5 -0
  223. package/web-shell/assets/{infoDiagram-5YYISTIA-Cn3T83MA.js → infoDiagram-5YYISTIA-C4orwzPw.js} +1 -1
  224. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-ijFs7e25.js → ishikawaDiagram-YF4QCWOH-fXUEfef_.js} +1 -1
  225. package/web-shell/assets/{journeyDiagram-JHISSGLW-CINTv8VB.js → journeyDiagram-JHISSGLW-Bs0I1_J5.js} +1 -1
  226. package/web-shell/assets/{kanban-definition-UN3LZRKU-CMGRZCxx.js → kanban-definition-UN3LZRKU-BPRj1dw_.js} +1 -1
  227. package/web-shell/assets/{linear-Co-2_37d.js → linear-DFS6ZDpW.js} +1 -1
  228. package/web-shell/assets/{mermaid.core-DijbyaN5.js → mermaid.core-CZxjWMaO.js} +5 -5
  229. package/web-shell/assets/{mindmap-definition-RKZ34NQL-k_sDYDPZ.js → mindmap-definition-RKZ34NQL-Dsr3PmNs.js} +1 -1
  230. package/web-shell/assets/{pieDiagram-4H26LBE5-CG-oz8V3.js → pieDiagram-4H26LBE5-D5Ngpz5Y.js} +1 -1
  231. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Baq7HIG2.js → quadrantDiagram-W4KKPZXB-WJK9I25z.js} +1 -1
  232. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CDM3ZvBt.js → requirementDiagram-4Y6WPE33-CmrYcwOH.js} +1 -1
  233. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-C2dJbWKN.js → sankeyDiagram-5OEKKPKP-7SjCc4Mv.js} +1 -1
  234. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-Cf1_h59p.js → sequenceDiagram-3UESZ5HK-Dl9E0IRM.js} +1 -1
  235. package/web-shell/assets/{stateDiagram-AJRCARHV-CI5clUEc.js → stateDiagram-AJRCARHV-CRRio7yV.js} +1 -1
  236. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-1atT7XaU.js +1 -0
  237. package/web-shell/assets/{timeline-definition-PNZ67QCA-B2O8cAZX.js → timeline-definition-PNZ67QCA-DVyXjjfq.js} +1 -1
  238. package/web-shell/assets/{vennDiagram-CIIHVFJN-BLsJ_h9s.js → vennDiagram-CIIHVFJN-Nb2Lckzq.js} +1 -1
  239. package/web-shell/assets/{wardley-L42UT6IY-BlPU4FTA.js → wardley-L42UT6IY-DuL_otIP.js} +1 -1
  240. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-D_U-RdU4.js → wardleyDiagram-YWT4CUSO-DVI9Q4Aa.js} +1 -1
  241. package/web-shell/assets/{xychartDiagram-2RQKCTM6-BynXGSTl.js → xychartDiagram-2RQKCTM6-BNjAm7KD.js} +1 -1
  242. package/web-shell/index.html +2 -2
  243. package/bundled/review/DESIGN.md +0 -724
  244. package/chunks/create-sub-session-2B3JENWD.js +0 -400
  245. package/web-shell/assets/channel-Bd9wOnaA.js +0 -1
  246. package/web-shell/assets/classDiagram-4FO5ZUOK-XhCT8FE3.js +0 -1
  247. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-XhCT8FE3.js +0 -1
  248. package/web-shell/assets/index-2F4RsNzd.js +0 -1756
  249. package/web-shell/assets/index-CaucmEO_.css +0 -5
  250. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BDc8asKD.js +0 -1
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  SkillError
5
- } from "./chunk-MISUEWB4.js";
5
+ } from "./chunk-4S4OEQ6U.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-5O2XNYP6.js";
@@ -90,6 +90,9 @@ var SERVE_CONTROL_EXT_METHODS = {
90
90
  sessionTitle: "qwen/control/session/title",
91
91
  sessionParent: "qwen/control/session/parent",
92
92
  sessionSource: "qwen/control/session/source",
93
+ sessionLiveConversation: "qwen/control/session/live-conversation",
94
+ sessionLiveTranscript: "qwen/control/session/live-transcript",
95
+ sessionBackgroundNotification: "qwen/control/session/background_notification",
93
96
  sessionArtifactsPersist: "qwen/control/session/artifacts/persist",
94
97
  workspaceMcpRestart: "qwen/control/workspace/mcp/restart",
95
98
  workspaceMcpManage: "qwen/control/workspace/mcp/manage",
@@ -130,6 +133,13 @@ var SERVE_CONTROL_EXT_METHODS = {
130
133
  * result: `{ payload }`.
131
134
  */
132
135
  clientMcpMessage: "qwen/control/client_mcp/message",
136
+ /**
137
+ * Called by a private ACP CHILD immediately before a tool executor. The
138
+ * parent validates the runtime-owned session/prompt identity, invokes its
139
+ * configured external provider once, and returns allow/deny. Unavailable
140
+ * unless the daemon explicitly enabled required external guarding.
141
+ */
142
+ externalToolGuardPrepare: "qwen/control/external_tool_guard/prepare",
133
143
  sessionCd: "qwen/control/session/cd",
134
144
  /**
135
145
  * Also called by the CHILD UP into the parent (like `clientMcpMessage`): the
@@ -140,6 +150,9 @@ var SERVE_CONTROL_EXT_METHODS = {
140
150
  * `first-turn` mode, which waits for the sub-session's first turn to finish).
141
151
  */
142
152
  createSubSession: "qwen/control/create-sub-session",
153
+ liveCaptureScreenContext: "qwen/control/live/capture-screen-context",
154
+ liveTaskTool: "qwen/control/live/task-tool",
155
+ liveSpeakToUser: "qwen/control/live/speak-to-user",
143
156
  channelDelivery: "qwen/control/channel-delivery"
144
157
  };
145
158
  var IDLE_HOOK_EVENTS = {
@@ -2,18 +2,21 @@
2
2
  "use strict";
3
3
  import {
4
4
  HistoryReplayer
5
- } from "./chunk-YO4JI7B4.js";
5
+ } from "./chunk-3IVUXQBG.js";
6
+ import {
7
+ isA2uiToolMeta
8
+ } from "./chunk-DWO5MRNA.js";
6
9
  import {
7
10
  ChannelDeliveryError,
8
11
  MAX_CHANNEL_DELIVERY_TEXT_LENGTH
9
- } from "./chunk-QONSRAEV.js";
12
+ } from "./chunk-YP5KH5Y7.js";
10
13
  import {
11
14
  redactLogCredentials
12
15
  } from "./chunk-M5GB774H.js";
13
16
  import {
14
17
  getUserSettingsPath,
15
18
  loadSettings
16
- } from "./chunk-RM3F46UT.js";
19
+ } from "./chunk-IT4CNDZX.js";
17
20
  import {
18
21
  getSystemDefaultsPath,
19
22
  getSystemSettingsPath
@@ -21,11 +24,11 @@ import {
21
24
  import {
22
25
  findEnvFiles,
23
26
  preResolveHomeEnvOverrides
24
- } from "./chunk-LYPXNRBX.js";
27
+ } from "./chunk-TE7P6I5J.js";
25
28
  import {
26
29
  getResponseText,
27
30
  ideContextStore
28
- } from "./chunk-YLL3SC5S.js";
31
+ } from "./chunk-NSESTZWP.js";
29
32
  import {
30
33
  MAX_CHANNEL_DELIVERY_NAME_LENGTH,
31
34
  MAX_CHANNEL_DELIVERY_TARGET_ID_LENGTH
@@ -44,6 +47,35 @@ import {
44
47
  __name
45
48
  } from "./chunk-J2S4EL5Y.js";
46
49
 
50
+ // packages/cli/src/serve/live/session-source.ts
51
+ init_esbuild_shims();
52
+ var LIVE_SESSION_SOURCE_PREFIX = "realtime_voice:";
53
+ function isReservedLiveSessionSource(source) {
54
+ return source.sourceType === "default" && source.sourceId?.startsWith(LIVE_SESSION_SOURCE_PREFIX) === true;
55
+ }
56
+ __name(isReservedLiveSessionSource, "isReservedLiveSessionSource");
57
+ function isCompatibleLiveSessionSource(source) {
58
+ const sourceId = source.sourceId;
59
+ return isReservedLiveSessionSource(source) && typeof sourceId === "string" && sourceId.length > LIVE_SESSION_SOURCE_PREFIX.length;
60
+ }
61
+ __name(isCompatibleLiveSessionSource, "isCompatibleLiveSessionSource");
62
+ function isStandaloneConversationSessionSource(source) {
63
+ return source.sourceId === void 0 && (source.sourceType === void 0 || source.sourceType === "default");
64
+ }
65
+ __name(isStandaloneConversationSessionSource, "isStandaloneConversationSessionSource");
66
+ async function readLoadableLiveConversationMetadata(sessionId, readMetadata) {
67
+ const metadata = await readMetadata(sessionId);
68
+ if (metadata.parentSessionId === void 0 && (isCompatibleLiveSessionSource(metadata) || isStandaloneConversationSessionSource(metadata))) {
69
+ return metadata;
70
+ }
71
+ if (metadata.parentSessionId === void 0 || metadata.sourceType !== void 0 || metadata.sourceId !== void 0) {
72
+ return void 0;
73
+ }
74
+ const parent = await readMetadata(metadata.parentSessionId);
75
+ return parent.parentSessionId === void 0 && (isCompatibleLiveSessionSource(parent) || isStandaloneConversationSessionSource(parent)) ? metadata : void 0;
76
+ }
77
+ __name(readLoadableLiveConversationMetadata, "readLoadableLiveConversationMetadata");
78
+
47
79
  // packages/cli/src/runtime/workspace-remember-errors.ts
48
80
  init_esbuild_shims();
49
81
  var MAX_REMEMBER_ERROR_DETAILS_CHARS = 1e3;
@@ -566,6 +598,305 @@ __name(loadSettingsCached, "loadSettingsCached");
566
598
 
567
599
  // packages/cli/src/acp-integration/session/history-replay-page.ts
568
600
  init_esbuild_shims();
601
+
602
+ // packages/cli/src/acp-integration/session/acp-tool-result-text-projection.ts
603
+ init_esbuild_shims();
604
+ import { Buffer } from "node:buffer";
605
+ var ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET = 65536;
606
+ var ACP_TOOL_RESULT_TEXT_TRUNCATION_MARKER = "\n[... truncated for ACP transport ...]\n";
607
+ var EMPTY_CONTENT_ARRAY_JSON_BYTES = Buffer.byteLength("[]", "utf8");
608
+ var EMPTY_TEXT_BLOCK_JSON_BYTES = Buffer.byteLength(
609
+ JSON.stringify(createTextBlock("")),
610
+ "utf8"
611
+ );
612
+ var JSON_ARRAY_SEPARATOR_BYTES = 1;
613
+ var JSON_STRING_DELIMITER_BYTES = 2;
614
+ var TRUNCATION_MARKER_PAYLOAD_BYTES = jsonStringJsonByteLength(ACP_TOOL_RESULT_TEXT_TRUNCATION_MARKER) - JSON_STRING_DELIMITER_BYTES;
615
+ var MAX_CANONICAL_TEXT_BLOCKS = Math.floor(
616
+ (ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET - EMPTY_CONTENT_ARRAY_JSON_BYTES + JSON_ARRAY_SEPARATOR_BYTES) / (EMPTY_TEXT_BLOCK_JSON_BYTES + JSON_ARRAY_SEPARATOR_BYTES)
617
+ );
618
+ function createTextBlock(text) {
619
+ return {
620
+ type: "content",
621
+ content: { type: "text", text }
622
+ };
623
+ }
624
+ __name(createTextBlock, "createTextBlock");
625
+ function isObjectRecord(value) {
626
+ return typeof value === "object" && value !== null && !Array.isArray(value);
627
+ }
628
+ __name(isObjectRecord, "isObjectRecord");
629
+ function hasExactKeys(value, first, second) {
630
+ const keys = Object.keys(value);
631
+ return keys.length === 2 && Object.hasOwn(value, first) && Object.hasOwn(value, second);
632
+ }
633
+ __name(hasExactKeys, "hasExactKeys");
634
+ function canonicalTextBlocks(value) {
635
+ if (!Array.isArray(value)) return void 0;
636
+ for (const block of value) {
637
+ if (!isObjectRecord(block) || !hasExactKeys(block, "type", "content") || block["type"] !== "content" || !isObjectRecord(block["content"]) || !hasExactKeys(block["content"], "type", "text") || block["content"]["type"] !== "text" || typeof block["content"]["text"] !== "string") {
638
+ return void 0;
639
+ }
640
+ }
641
+ return value;
642
+ }
643
+ __name(canonicalTextBlocks, "canonicalTextBlocks");
644
+ function jsonPayloadBytesAt(value, index) {
645
+ const code = value.charCodeAt(index);
646
+ if (code === 34 || code === 92) return 2;
647
+ if (code <= 31) {
648
+ return code === 8 || code === 9 || code === 10 || code === 12 || code === 13 ? 2 : 6;
649
+ }
650
+ if (code <= 127) return 1;
651
+ if (code <= 2047) return 2;
652
+ if (code >= 55296 && code <= 56319) {
653
+ const next = value.charCodeAt(index + 1);
654
+ return next >= 56320 && next <= 57343 ? 4 : 6;
655
+ }
656
+ if (code >= 56320 && code <= 57343) return 6;
657
+ return 3;
658
+ }
659
+ __name(jsonPayloadBytesAt, "jsonPayloadBytesAt");
660
+ function jsonPayloadWidthAt(value, index) {
661
+ const code = value.charCodeAt(index);
662
+ if (code < 55296 || code > 56319) return 1;
663
+ const next = value.charCodeAt(index + 1);
664
+ return next >= 56320 && next <= 57343 ? 2 : 1;
665
+ }
666
+ __name(jsonPayloadWidthAt, "jsonPayloadWidthAt");
667
+ function jsonStringPayloadByteLength(value, stopAfterBytes = Number.POSITIVE_INFINITY) {
668
+ let bytes = 0;
669
+ for (let index = 0; index < value.length; ) {
670
+ bytes += jsonPayloadBytesAt(value, index);
671
+ if (bytes > stopAfterBytes) return bytes;
672
+ index += jsonPayloadWidthAt(value, index);
673
+ }
674
+ return bytes;
675
+ }
676
+ __name(jsonStringPayloadByteLength, "jsonStringPayloadByteLength");
677
+ function jsonStringJsonByteLength(value) {
678
+ return JSON_STRING_DELIMITER_BYTES + jsonStringPayloadByteLength(value);
679
+ }
680
+ __name(jsonStringJsonByteLength, "jsonStringJsonByteLength");
681
+ function jsonPayloadWidthBefore(value, end) {
682
+ const last = value.charCodeAt(end - 1);
683
+ if (last >= 56320 && last <= 57343 && end >= 2) {
684
+ const previous = value.charCodeAt(end - 2);
685
+ if (previous >= 55296 && previous <= 56319) return 2;
686
+ }
687
+ return 1;
688
+ }
689
+ __name(jsonPayloadWidthBefore, "jsonPayloadWidthBefore");
690
+ function selectPrefix(value, budget) {
691
+ let end = 0;
692
+ let bytes = 0;
693
+ while (end < value.length) {
694
+ const partBytes = jsonPayloadBytesAt(value, end);
695
+ if (bytes + partBytes > budget) break;
696
+ bytes += partBytes;
697
+ end += jsonPayloadWidthAt(value, end);
698
+ }
699
+ return end;
700
+ }
701
+ __name(selectPrefix, "selectPrefix");
702
+ function selectSuffix(value, budget) {
703
+ let start = value.length;
704
+ let bytes = 0;
705
+ while (start > 0) {
706
+ const partWidth = jsonPayloadWidthBefore(value, start);
707
+ const partBytes = jsonPayloadBytesAt(value, start - partWidth);
708
+ if (bytes + partBytes > budget) break;
709
+ bytes += partBytes;
710
+ start -= partWidth;
711
+ }
712
+ return start;
713
+ }
714
+ __name(selectSuffix, "selectSuffix");
715
+ function copyString(value) {
716
+ return value.split("").join("");
717
+ }
718
+ __name(copyString, "copyString");
719
+ function truncateStringPayload(value, originalPayloadBytes, payloadBudget) {
720
+ if (originalPayloadBytes <= payloadBudget) return value;
721
+ if (payloadBudget < TRUNCATION_MARKER_PAYLOAD_BYTES) {
722
+ return copyString(value.slice(0, selectPrefix(value, payloadBudget)));
723
+ }
724
+ const sourceBudget = payloadBudget - TRUNCATION_MARKER_PAYLOAD_BYTES;
725
+ const headBudget = Math.floor(sourceBudget * 0.2);
726
+ const tailBudget = sourceBudget - headBudget;
727
+ const headEnd = selectPrefix(value, headBudget);
728
+ const tailStart = selectSuffix(value, tailBudget);
729
+ return copyString(value.slice(0, headEnd)) + ACP_TOOL_RESULT_TEXT_TRUNCATION_MARKER + copyString(value.slice(tailStart));
730
+ }
731
+ __name(truncateStringPayload, "truncateStringPayload");
732
+ function contentSkeletonBytes(blockCount) {
733
+ if (blockCount === 0) return EMPTY_CONTENT_ARRAY_JSON_BYTES;
734
+ return EMPTY_CONTENT_ARRAY_JSON_BYTES + blockCount * EMPTY_TEXT_BLOCK_JSON_BYTES + (blockCount - 1) * JSON_ARRAY_SEPARATOR_BYTES;
735
+ }
736
+ __name(contentSkeletonBytes, "contentSkeletonBytes");
737
+ function fallbackContent() {
738
+ return [createTextBlock(ACP_TOOL_RESULT_TEXT_TRUNCATION_MARKER)];
739
+ }
740
+ __name(fallbackContent, "fallbackContent");
741
+ function jsonByteLength(value) {
742
+ return Buffer.byteLength(JSON.stringify(value), "utf8");
743
+ }
744
+ __name(jsonByteLength, "jsonByteLength");
745
+ function allocatePayloadBudgets(payloadBytes, availableBytes) {
746
+ const base = payloadBytes.map(
747
+ (bytes) => Math.min(bytes, TRUNCATION_MARKER_PAYLOAD_BYTES)
748
+ );
749
+ let remaining = availableBytes - base.reduce((sum, bytes) => sum + bytes, 0);
750
+ if (remaining < 0) return void 0;
751
+ const capacities = payloadBytes.map((bytes, index) => ({
752
+ index,
753
+ capacity: bytes - base[index]
754
+ }));
755
+ const sorted = capacities.filter(({ capacity }) => capacity > 0).sort(
756
+ (left, right) => left.capacity === right.capacity ? left.index - right.index : left.capacity - right.capacity
757
+ );
758
+ let active = sorted.length;
759
+ let position = 0;
760
+ let level = 0;
761
+ let remainder = 0;
762
+ while (position < sorted.length && active > 0 && remaining > 0) {
763
+ const nextLevel = sorted[position].capacity;
764
+ const cost = (nextLevel - level) * active;
765
+ if (cost > remaining) {
766
+ level += Math.floor(remaining / active);
767
+ remainder = remaining % active;
768
+ remaining = 0;
769
+ break;
770
+ }
771
+ level = nextLevel;
772
+ remaining -= cost;
773
+ while (position < sorted.length && sorted[position].capacity === nextLevel) {
774
+ position++;
775
+ active--;
776
+ }
777
+ }
778
+ const allocations = base.map(
779
+ (bytes, index) => bytes + Math.min(capacities[index].capacity, level)
780
+ );
781
+ if (remainder > 0) {
782
+ for (const { index, capacity } of capacities) {
783
+ if (remainder === 0) break;
784
+ if (capacity > level) {
785
+ allocations[index]++;
786
+ remainder--;
787
+ }
788
+ }
789
+ }
790
+ return allocations;
791
+ }
792
+ __name(allocatePayloadBudgets, "allocatePayloadBudgets");
793
+ function projectContent(original) {
794
+ if (original.length > MAX_CANONICAL_TEXT_BLOCKS) return fallbackContent();
795
+ const skeletonBytes = contentSkeletonBytes(original.length);
796
+ const availablePayloadBytes = ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET - skeletonBytes;
797
+ let remainingPayloadBytes = availablePayloadBytes;
798
+ let needsProjection = false;
799
+ for (const block of original) {
800
+ const payloadBytes2 = jsonStringPayloadByteLength(
801
+ block.content.text,
802
+ remainingPayloadBytes
803
+ );
804
+ if (payloadBytes2 > remainingPayloadBytes) {
805
+ needsProjection = true;
806
+ break;
807
+ }
808
+ remainingPayloadBytes -= payloadBytes2;
809
+ }
810
+ if (!needsProjection) return original;
811
+ const baseScans = original.map(
812
+ (block) => jsonStringPayloadByteLength(
813
+ block.content.text,
814
+ TRUNCATION_MARKER_PAYLOAD_BYTES
815
+ )
816
+ );
817
+ const basePayloadBytes = baseScans.map(
818
+ (bytes) => Math.min(bytes, TRUNCATION_MARKER_PAYLOAD_BYTES)
819
+ );
820
+ const baseTotal = basePayloadBytes.reduce((sum, bytes) => sum + bytes, 0);
821
+ if (baseTotal > availablePayloadBytes) return fallbackContent();
822
+ const payloadBytes = original.map((block, index) => {
823
+ if (baseScans[index] <= TRUNCATION_MARKER_PAYLOAD_BYTES) {
824
+ return baseScans[index];
825
+ }
826
+ const maximumAllocation = availablePayloadBytes - baseTotal + basePayloadBytes[index];
827
+ const bytes = jsonStringPayloadByteLength(
828
+ block.content.text,
829
+ maximumAllocation
830
+ );
831
+ return bytes <= maximumAllocation ? bytes : maximumAllocation + 1;
832
+ });
833
+ const allocations = allocatePayloadBudgets(
834
+ payloadBytes,
835
+ availablePayloadBytes
836
+ );
837
+ if (!allocations) return fallbackContent();
838
+ const projected = original.map((block, index) => {
839
+ if (payloadBytes[index] <= allocations[index]) return block;
840
+ return createTextBlock(
841
+ truncateStringPayload(
842
+ block.content.text,
843
+ payloadBytes[index],
844
+ allocations[index]
845
+ )
846
+ );
847
+ });
848
+ return jsonByteLength(projected) <= ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET ? projected : fallbackContent();
849
+ }
850
+ __name(projectContent, "projectContent");
851
+ function projectRawOutput(value) {
852
+ const payloadBudget = ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET - JSON_STRING_DELIMITER_BYTES;
853
+ const payloadBytes = jsonStringPayloadByteLength(value, payloadBudget);
854
+ if (payloadBytes <= payloadBudget) return value;
855
+ const projected = truncateStringPayload(value, payloadBytes, payloadBudget);
856
+ return jsonByteLength(projected) <= ACP_TOOL_RESULT_TEXT_JSON_BYTE_BUDGET ? projected : ACP_TOOL_RESULT_TEXT_TRUNCATION_MARKER;
857
+ }
858
+ __name(projectRawOutput, "projectRawOutput");
859
+ function a2uiMeta(meta) {
860
+ if (!meta) return void 0;
861
+ const toolName = typeof meta["toolName"] === "string" ? meta["toolName"] : void 0;
862
+ const serverId = typeof meta["serverId"] === "string" ? meta["serverId"] : void 0;
863
+ return toolName === void 0 && serverId === void 0 ? void 0 : {
864
+ ...toolName === void 0 ? {} : { toolName },
865
+ ...serverId === void 0 ? {} : { serverId }
866
+ };
867
+ }
868
+ __name(a2uiMeta, "a2uiMeta");
869
+ function projectAcpToolResultUpdate(update) {
870
+ const record = update;
871
+ if (record["sessionUpdate"] !== "tool_call_update") return update;
872
+ const meta = isObjectRecord(record["_meta"]) ? record["_meta"] : void 0;
873
+ if (isA2uiToolMeta(a2uiMeta(meta))) return update;
874
+ const content = canonicalTextBlocks(record["content"]);
875
+ const rawOutput = record["rawOutput"];
876
+ if (content?.length === 1 && typeof rawOutput === "string" && rawOutput === content[0].content.text) {
877
+ const projectedContent2 = projectContent(content);
878
+ if (projectedContent2 === content) return update;
879
+ const projectedText = projectedContent2[0].content.text;
880
+ return {
881
+ ...record,
882
+ content: projectedContent2,
883
+ rawOutput: projectedText
884
+ };
885
+ }
886
+ const projectedContent = content ? projectContent(content) : void 0;
887
+ const projectedRawOutput = typeof rawOutput === "string" ? projectRawOutput(rawOutput) : void 0;
888
+ const contentChanged = projectedContent !== void 0 && projectedContent !== content;
889
+ const rawOutputChanged = projectedRawOutput !== void 0 && projectedRawOutput !== rawOutput;
890
+ if (!contentChanged && !rawOutputChanged) return update;
891
+ return {
892
+ ...record,
893
+ ...contentChanged ? { content: projectedContent } : {},
894
+ ...rawOutputChanged ? { rawOutput: projectedRawOutput } : {}
895
+ };
896
+ }
897
+ __name(projectAcpToolResultUpdate, "projectAcpToolResultUpdate");
898
+
899
+ // packages/cli/src/acp-integration/session/history-replay-page.ts
569
900
  function createReplayCumulativeUsage() {
570
901
  return {
571
902
  promptTokens: 0,
@@ -582,27 +913,27 @@ function copyCumulativeUsage(target, source) {
582
913
  target.apiTimeMs = source.apiTimeMs;
583
914
  }
584
915
  __name(copyCumulativeUsage, "copyCumulativeUsage");
585
- function isObjectRecord(value) {
916
+ function isObjectRecord2(value) {
586
917
  return typeof value === "object" && value !== null && !Array.isArray(value);
587
918
  }
588
- __name(isObjectRecord, "isObjectRecord");
919
+ __name(isObjectRecord2, "isObjectRecord");
589
920
  function isCumulativeUsage(value) {
590
- if (!isObjectRecord(value)) return false;
921
+ if (!isObjectRecord2(value)) return false;
591
922
  return typeof value["promptTokens"] === "number" && Number.isFinite(value["promptTokens"]) && typeof value["cachedTokens"] === "number" && Number.isFinite(value["cachedTokens"]) && typeof value["candidateTokens"] === "number" && Number.isFinite(value["candidateTokens"]) && typeof value["apiTimeMs"] === "number" && Number.isFinite(value["apiTimeMs"]);
592
923
  }
593
924
  __name(isCumulativeUsage, "isCumulativeUsage");
594
925
  function isPendingReplayToolCall(value) {
595
- if (!isObjectRecord(value)) return false;
926
+ if (!isObjectRecord2(value)) return false;
596
927
  return typeof value["callId"] === "string" && typeof value["toolName"] === "string" && (value["timestamp"] === void 0 || typeof value["timestamp"] === "string") && typeof value["recordId"] === "string";
597
928
  }
598
929
  __name(isPendingReplayToolCall, "isPendingReplayToolCall");
599
930
  function isCurrentPendingReplayToolCall(value) {
600
- if (!isObjectRecord(value)) return false;
931
+ if (!isObjectRecord2(value)) return false;
601
932
  return typeof value["callId"] === "string" && typeof value["toolName"] === "string" && typeof value["sourceRecordId"] === "string" && (value["sourceTimestamp"] === void 0 || typeof value["sourceTimestamp"] === "string");
602
933
  }
603
934
  __name(isCurrentPendingReplayToolCall, "isCurrentPendingReplayToolCall");
604
935
  function parseTranscriptReplayState(replay, logger) {
605
- if (!isObjectRecord(replay)) {
936
+ if (!isObjectRecord2(replay)) {
606
937
  return {
607
938
  pendingToolCalls: [],
608
939
  cumulativeUsage: createReplayCumulativeUsage()
@@ -650,12 +981,13 @@ function replayContext(sessionId, updates, cumulativeUsage, config) {
650
981
  return {
651
982
  sessionId,
652
983
  sendUpdate: /* @__PURE__ */ __name(async (update) => {
984
+ const projectedUpdate = projectAcpToolResultUpdate(update);
653
985
  if (activeRecordId === null) {
654
- updates.push(update);
986
+ updates.push(projectedUpdate);
655
987
  return;
656
988
  }
657
- const record = update;
658
- const meta = isObjectRecord(record["_meta"]) ? record["_meta"] : {};
989
+ const record = projectedUpdate;
990
+ const meta = isObjectRecord2(record["_meta"]) ? record["_meta"] : {};
659
991
  updates.push({
660
992
  ...record,
661
993
  _meta: { ...meta, "qwen.session.recordId": activeRecordId }
@@ -701,7 +1033,7 @@ function liftSessionUpdateTimestamps(updates) {
701
1033
  return updates.map((update) => {
702
1034
  const record = update;
703
1035
  const meta = record["_meta"];
704
- const timestamp = isObjectRecord(meta) ? meta["timestamp"] : void 0;
1036
+ const timestamp = isObjectRecord2(meta) ? meta["timestamp"] : void 0;
705
1037
  return typeof timestamp === "number" || typeof timestamp === "string" ? { ...record, timestamp } : update;
706
1038
  });
707
1039
  }
@@ -711,7 +1043,8 @@ async function replayTranscriptRecordPage({
711
1043
  page,
712
1044
  config,
713
1045
  encodeCursor,
714
- logger
1046
+ logger,
1047
+ finalizeDangling = true
715
1048
  }) {
716
1049
  const state = parseTranscriptReplayState(page.replay, logger);
717
1050
  const updates = [];
@@ -723,7 +1056,7 @@ async function replayTranscriptRecordPage({
723
1056
  try {
724
1057
  const replayPageState = await replayer.replayPage(page.records, {
725
1058
  pendingToolCalls: page.direction === "backward" ? [] : state.pendingToolCalls,
726
- finalizeDangling: page.direction === "backward" || !page.hasMore,
1059
+ finalizeDangling: finalizeDangling && (page.direction === "backward" || !page.hasMore),
727
1060
  gaps: page.gaps,
728
1061
  ...state.goalState ? { goalState: state.goalState } : {}
729
1062
  });
@@ -822,6 +1155,10 @@ function normalizeChannelDelivery(deliveryId, delivery, text) {
822
1155
  __name(normalizeChannelDelivery, "normalizeChannelDelivery");
823
1156
 
824
1157
  export {
1158
+ LIVE_SESSION_SOURCE_PREFIX,
1159
+ isReservedLiveSessionSource,
1160
+ isCompatibleLiveSessionSource,
1161
+ readLoadableLiveConversationMetadata,
825
1162
  createWorkspaceMemoryExtractionErrorLogger,
826
1163
  extractRememberErrorCode,
827
1164
  workspaceMemoryFailureCode,
@@ -843,6 +1180,7 @@ export {
843
1180
  parseChannelDelivery,
844
1181
  normalizeChannelDeliveryText,
845
1182
  normalizeChannelDelivery,
1183
+ projectAcpToolResultUpdate,
846
1184
  createReplayCumulativeUsage,
847
1185
  copyCumulativeUsage,
848
1186
  collectHistoryReplayUpdates,
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  resolveModelConfig,
5
5
  resolveProviderProtocol
6
- } from "./chunk-YLL3SC5S.js";
6
+ } from "./chunk-NSESTZWP.js";
7
7
  import {
8
8
  external_exports
9
9
  } from "./chunk-H6XPXXMH.js";
10
10
  import {
11
11
  stripRuntimeSnapshotPrefix
12
- } from "./chunk-7W5KOBYU.js";
12
+ } from "./chunk-GQMVWRDJ.js";
13
13
  import {
14
14
  REASONING_EFFORT_TIERS,
15
15
  normalizeReasoningEffort
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  AuthType,
19
19
  MODEL_GENERATION_CONFIG_FIELDS
20
- } from "./chunk-XD2PNH3K.js";
20
+ } from "./chunk-4MBOMW76.js";
21
21
  import {
22
22
  init_esbuild_shims
23
23
  } from "./chunk-5O2XNYP6.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  CHANNEL_STARTUP_PROFILE_VERSION
5
- } from "./chunk-UKZEXS6K.js";
5
+ } from "./chunk-R574ATRM.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-5O2XNYP6.js";
@@ -614,6 +614,7 @@ async function openVoiceStreamWithRetry(open, opts = {}) {
614
614
  __name(openVoiceStreamWithRetry, "openVoiceStreamWithRetry");
615
615
 
616
616
  export {
617
+ deriveWebSocketBase,
617
618
  openVoiceStream,
618
619
  openQwenAsrRealtimeStream,
619
620
  openVoiceStreamWithRetry
@@ -0,0 +1,123 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ normalize
5
+ } from "./chunk-ZBVS26BY.js";
6
+ import {
7
+ init_esbuild_shims
8
+ } from "./chunk-5O2XNYP6.js";
9
+ import {
10
+ __name
11
+ } from "./chunk-J2S4EL5Y.js";
12
+
13
+ // packages/core/src/core/modalityDefaults.ts
14
+ init_esbuild_shims();
15
+ var FULL_MULTIMODAL = {
16
+ image: true,
17
+ pdf: true,
18
+ audio: true,
19
+ video: true
20
+ };
21
+ var MODALITY_PATTERNS = [
22
+ // -------------------
23
+ // Google Gemini — full multimodal
24
+ // -------------------
25
+ [/^gemini-3/, FULL_MULTIMODAL],
26
+ [/^gemini-/, FULL_MULTIMODAL],
27
+ // -------------------
28
+ // OpenAI — image by default for all gpt/o-series models
29
+ // -------------------
30
+ [/^gpt-5/, { image: true }],
31
+ [/^gpt-/, { image: true }],
32
+ [/^o\d/, { image: true }],
33
+ // -------------------
34
+ // Anthropic Claude — image + pdf
35
+ // -------------------
36
+ [/^claude-/, { image: true, pdf: true }],
37
+ // -------------------
38
+ // Alibaba / Qwen
39
+ // -------------------
40
+ // Qwen Plus models: image + video support
41
+ [/^qwen3\.5-plus/, { image: true, video: true }],
42
+ [/^qwen3\.6-plus/, { image: true, video: true }],
43
+ [/^qwen3\.7-plus/, { image: true, video: true }],
44
+ // Qwen Max models (3.8+): image support
45
+ [/^qwen3\.8-max/, { image: true }],
46
+ [/^coder-model$/, { image: true, video: true }],
47
+ // Qwen VL (vision-language) models: image + video
48
+ [/^qwen-vl-/, { image: true, video: true }],
49
+ [/^qwen3-vl-/, { image: true, video: true }],
50
+ // Qwen coder / text models: text-only
51
+ [/^qwen3-coder-/, {}],
52
+ // Qwen3.6-35B-A3B (local quant variants) — image + video
53
+ [/^qwen3\.6-35b/, { image: true, video: true }],
54
+ [/^qwen/, {}],
55
+ // -------------------
56
+ // DeepSeek — text-only
57
+ // -------------------
58
+ [/^deepseek/, {}],
59
+ // -------------------
60
+ // Zhipu GLM
61
+ // -------------------
62
+ [/^glm-4\.5v/, { image: true }],
63
+ [/^glm-5(?:-|$)/, {}],
64
+ [/^glm-/, {}],
65
+ // -------------------
66
+ // MiniMax — M3 supports image + video input; older models default to text-only
67
+ // -------------------
68
+ [/^minimax-m3/i, { image: true, video: true }],
69
+ [/^minimax-/, {}],
70
+ // -------------------
71
+ // Moonshot / Kimi
72
+ // -------------------
73
+ [/^kimi-k3/, { image: true, video: true }],
74
+ [/^kimi-k2\./, { image: true, video: true }],
75
+ [/^kimi-/, {}],
76
+ // -------------------
77
+ // ByteDance Doubao — Seed-series and *-vision / *-vl models accept image
78
+ // input; other Doubao models (pro / lite / text) are text-only.
79
+ // (QwenLM/qwen-code#4876)
80
+ // -------------------
81
+ // seedance (text→video) and seedream (text→image) are generation models with
82
+ // text-only input — exclude them before the multimodal Seed chat series.
83
+ [/^doubao-seed(ance|ream)/, {}],
84
+ [/^doubao-seed/, { image: true }],
85
+ [/^doubao-.*(vision|vl)/, { image: true }],
86
+ [/^doubao/, {}]
87
+ ];
88
+ function defaultModalities(model) {
89
+ const norm = normalize(model);
90
+ for (const [regex, modalities] of MODALITY_PATTERNS) {
91
+ if (regex.test(norm)) {
92
+ return { ...modalities };
93
+ }
94
+ }
95
+ return {};
96
+ }
97
+ __name(defaultModalities, "defaultModalities");
98
+ function isQwenFamilyWireModel(model) {
99
+ if (!model) {
100
+ return false;
101
+ }
102
+ const normalized = model.toLowerCase();
103
+ return normalized.startsWith("qwen") || normalized === "coder-model";
104
+ }
105
+ __name(isQwenFamilyWireModel, "isQwenFamilyWireModel");
106
+ function isTieredEffortWireModel(model) {
107
+ if (!model) {
108
+ return false;
109
+ }
110
+ return model.toLowerCase().startsWith("qwen3.8-max");
111
+ }
112
+ __name(isTieredEffortWireModel, "isTieredEffortWireModel");
113
+
114
+ export {
115
+ defaultModalities,
116
+ isQwenFamilyWireModel,
117
+ isTieredEffortWireModel
118
+ };
119
+ /**
120
+ * @license
121
+ * Copyright 2025 Qwen Team
122
+ * SPDX-License-Identifier: Apache-2.0
123
+ */