@qwen-code/qwen-code 0.21.5 → 0.21.6

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-2HFKP4LI.js} +11 -10
  9. package/chunks/{StandaloneSessionPicker-B6MI5NTB.js → StandaloneSessionPicker-RBV72M5N.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-WO6JFCVQ.js} +1232 -139
  12. package/chunks/{agent-NAOXNW4I.js → agent-AHGLYNZ4.js} +11 -10
  13. package/chunks/{agent-headless-L4PPVFKW.js → agent-headless-NTXKKGRO.js} +11 -10
  14. package/chunks/{bridge-LHXGYNCO.js → bridge-RPAU64CA.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-ON64MF7G.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-EXHQZBVJ.js → chunk-2POQWYM6.js} +2 -2
  21. package/chunks/{chunk-YMUZQ3MQ.js → chunk-3LZKY4V4.js} +3 -3
  22. package/chunks/{chunk-7MFQLOHZ.js → chunk-3PRJYMXC.js} +1 -1
  23. package/chunks/{chunk-SJMCYCUQ.js → chunk-3UOLYNTF.js} +5 -5
  24. package/chunks/{chunk-Q2V4AOQL.js → chunk-4JH77A2U.js} +1 -1
  25. package/chunks/{chunk-MISUEWB4.js → chunk-4S4OEQ6U.js} +10 -6
  26. package/chunks/{chunk-URJHXOSO.js → chunk-4WTAQEHV.js} +1 -1
  27. package/chunks/{chunk-ZLGPHA34.js → chunk-536SWZTA.js} +5 -5
  28. package/chunks/{chunk-WU5NBSLD.js → chunk-5MJGUQU5.js} +3 -3
  29. package/chunks/{chunk-3P4GP4S2.js → chunk-75QMRMO7.js} +4 -4
  30. package/chunks/{chunk-YLL3SC5S.js → chunk-A4VTILZT.js} +1032 -913
  31. package/chunks/{chunk-B3EBIZUY.js → chunk-ACZRB7AD.js} +8 -3
  32. package/chunks/chunk-BKHCW2BI.js +41 -0
  33. package/chunks/{chunk-XD2PNH3K.js → chunk-BOGOR4HB.js} +5 -5
  34. package/chunks/{chunk-QL4TN4HS.js → chunk-BRVWYMKV.js} +1 -1
  35. package/chunks/{chunk-TCOJPG2P.js → chunk-C4CBJQKY.js} +1 -1
  36. package/chunks/{chunk-4O6HLCOF.js → chunk-CA4UIDFU.js} +1 -1
  37. package/chunks/{chunk-SQTA6PAY.js → chunk-CJ5WLD5Y.js} +6 -2
  38. package/chunks/{chunk-7W5KOBYU.js → chunk-DIT4V3XH.js} +1 -1
  39. package/chunks/{chunk-OIGB253L.js → chunk-DVBEGGLG.js} +8 -8
  40. package/chunks/{chunk-DTAPI453.js → chunk-EMYZIABH.js} +1 -1
  41. package/chunks/{chunk-GBY3ODW7.js → chunk-EXCEQD22.js} +3 -3
  42. package/chunks/{chunk-VJPF6GF2.js → chunk-FZFP7RZI.js} +3 -3
  43. package/chunks/{chunk-3GOCVBYR.js → chunk-G5NNWEYE.js} +5 -5
  44. package/chunks/{chunk-IWYXZAGT.js → chunk-GESMMPAK.js} +33 -33
  45. package/chunks/{chunk-SVIEVA3L.js → chunk-GK2H5GRC.js} +29 -4
  46. package/chunks/{chunk-7M2RLFNX.js → chunk-GWRHVJY2.js} +11 -11
  47. package/chunks/{chunk-BK2UNYWD.js → chunk-HIBNSEJE.js} +12 -0
  48. package/chunks/{chunk-4LLUH3A7.js → chunk-HU5TUALO.js} +95 -8
  49. package/chunks/{chunk-J7I2BZHS.js → chunk-HY25ULVN.js} +23 -6
  50. package/chunks/{chunk-G2UXFO2B.js → chunk-IMOQO6YL.js} +1 -1
  51. package/chunks/{chunk-CAX76R46.js → chunk-JE44IPH6.js} +1 -1
  52. package/chunks/{chunk-IK3RYLAD.js → chunk-K2B3X3E7.js} +3 -3
  53. package/chunks/{chunk-OWAK7LMW.js → chunk-KGJGEEVR.js} +7 -0
  54. package/chunks/{chunk-K64OI7S7.js → chunk-KHUA3NQV.js} +2 -2
  55. package/chunks/{chunk-LEZFUYPM.js → chunk-LAAFLUQV.js} +4 -4
  56. package/chunks/{chunk-FHPKHXHT.js → chunk-MKVZE4ZJ.js} +5 -1
  57. package/chunks/{chunk-4NEBUDWS.js → chunk-N2GJU6KI.js} +9 -9
  58. package/chunks/{chunk-N3RERU5N.js → chunk-NGJOAKJY.js} +3 -3
  59. package/chunks/chunk-NKLP3DCK.js +22 -0
  60. package/chunks/{chunk-K6VEL5KP.js → chunk-NKSF7HYF.js} +1 -1
  61. package/chunks/{chunk-LMNM37OE.js → chunk-O7V7N4G7.js} +1 -1
  62. package/chunks/{chunk-3H5RFLTS.js → chunk-ODPXHGLL.js} +2 -2
  63. package/chunks/{chunk-KH2BIJ4H.js → chunk-OP2OHZ7K.js} +267 -11
  64. package/chunks/{chunk-VOA2UPZM.js → chunk-OWSW7EYP.js} +5 -5
  65. package/chunks/{chunk-B2RBYP7Z.js → chunk-OXX3FG2N.js} +2 -2
  66. package/chunks/{chunk-RM3F46UT.js → chunk-PPUOYL77.js} +71 -6
  67. package/chunks/{chunk-ZPGMDT4S.js → chunk-PX5DNLSA.js} +19 -92
  68. package/chunks/{chunk-FEUXV3DC.js → chunk-Q5RM32DR.js} +1 -1
  69. package/chunks/{chunk-AEWOKOJY.js → chunk-QZKYZCN3.js} +1 -1
  70. package/chunks/{chunk-UKZEXS6K.js → chunk-R574ATRM.js} +11 -0
  71. package/chunks/{chunk-OGAARVN7.js → chunk-R5RBXLNC.js} +3 -3
  72. package/chunks/{chunk-5HWAJ4BK.js → chunk-RFUHDCNF.js} +1 -1
  73. package/chunks/{chunk-LSYVASZS.js → chunk-RHTTKJTP.js} +1 -1
  74. package/chunks/{chunk-LYPXNRBX.js → chunk-RK2EE3T7.js} +1 -1
  75. package/chunks/{chunk-CIUUYB23.js → chunk-S7CV4KO6.js} +3 -3
  76. package/chunks/{chunk-4NNR24EP.js → chunk-SKNE3KQC.js} +3 -3
  77. package/chunks/{chunk-JDNWIXHJ.js → chunk-SLSWFHDF.js} +3 -3
  78. package/chunks/{chunk-UWSXFI6E.js → chunk-SQC6K5HI.js} +6 -2
  79. package/chunks/{chunk-P3SLTSNY.js → chunk-SQOMTWQT.js} +4 -4
  80. package/chunks/{chunk-D7QAZ5DF.js → chunk-SUKEUUAA.js} +1 -1
  81. package/chunks/{chunk-WTM5QONI.js → chunk-T4JSA7KU.js} +2 -2
  82. package/chunks/{chunk-I7JDGNG6.js → chunk-T5U6IM4C.js} +6 -2
  83. package/chunks/{chunk-2JBETW4S.js → chunk-TGGEZINK.js} +5 -5
  84. package/chunks/{chunk-C6ARWPCG.js → chunk-TOGZTG4X.js} +2 -2
  85. package/chunks/{chunk-A6SX5TAH.js → chunk-TSERKWCX.js} +6 -2
  86. package/chunks/{chunk-IWGMDSC3.js → chunk-U4AF3QLU.js} +355 -17
  87. package/chunks/{chunk-PDDYAXL2.js → chunk-UGTWD35F.js} +14 -1
  88. package/chunks/{chunk-BWLUCN35.js → chunk-ULPQQSDN.js} +2 -2
  89. package/chunks/{chunk-GEP54CHX.js → chunk-VGFPFM4U.js} +3 -3
  90. package/chunks/{chunk-NLQIEY6W.js → chunk-VNQCPBC2.js} +3 -3
  91. package/chunks/{chunk-K2ETEWG6.js → chunk-VSALQLT7.js} +1 -1
  92. package/chunks/{chunk-YO4JI7B4.js → chunk-W5DXUTXD.js} +12 -6
  93. package/chunks/{chunk-M744OFVE.js → chunk-W7U4ESW2.js} +1 -1
  94. package/chunks/{chunk-TJ56V3AR.js → chunk-WNU7TZTO.js} +4 -4
  95. package/chunks/{chunk-GTM6IHBB.js → chunk-WO2B5E5B.js} +1 -0
  96. package/chunks/chunk-WOJZWRAZ.js +123 -0
  97. package/chunks/{chunk-5XNO4AW7.js → chunk-XA4TMLFN.js} +11 -11
  98. package/chunks/{chunk-GP4IMBX5.js → chunk-XM2O73NC.js} +1696 -476
  99. package/chunks/{chunk-IZ2CMEYO.js → chunk-YMBOEAF4.js} +1 -1
  100. package/chunks/{chunk-QONSRAEV.js → chunk-YP5KH5Y7.js} +1 -1
  101. package/chunks/{chunk-ZLJQIGCH.js → chunk-YZQTA3ID.js} +28 -11
  102. package/chunks/{computer-use-XDOGP2KA.js → computer-use-5HXJ2P4X.js} +11 -10
  103. package/chunks/{config-utils-E3ZQTHGM.js → config-utils-VXD4SPVR.js} +2 -2
  104. package/chunks/{contextCommand-N3LQDCYJ.js → contextCommand-7BEHRX2H.js} +14 -13
  105. package/chunks/{core-runtime-STAFP45W.js → core-runtime-U4VJ5TIV.js} +11 -10
  106. package/chunks/create-sub-session-QZNQY332.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-UJUGTDTL.js} +21 -19
  109. package/chunks/{daemon-trust-policy-X6XL3MB4.js → daemon-trust-policy-ZHDD5VYQ.js} +17 -16
  110. package/chunks/{daemon-trust-policy-monitor-M5LBL2HD.js → daemon-trust-policy-monitor-5SHYBDGA.js} +17 -16
  111. package/chunks/{deferred-core-runtime-O54YPTBU.js → deferred-core-runtime-QWAEBTR5.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-5BMSGKOI.js} +11 -10
  115. package/chunks/{edit-KW2TOC6A.js → edit-IVQQVYYK.js} +11 -10
  116. package/chunks/{enter-worktree-YL34NEU5.js → enter-worktree-P3DF2N6O.js} +11 -10
  117. package/chunks/{enterPlanMode-JFJTDASQ.js → enterPlanMode-KKTDVLAD.js} +11 -10
  118. package/chunks/{environment-IATU5GXG.js → environment-W5TRDM3G.js} +14 -13
  119. package/chunks/{errors-SAVRDE7Q.js → errors-GJJB36IG.js} +14 -13
  120. package/chunks/{exit-worktree-5M43QPBB.js → exit-worktree-LV5RLOCU.js} +11 -10
  121. package/chunks/{exitPlanMode-W4EICZ4N.js → exitPlanMode-TUGOB2LL.js} +11 -10
  122. package/chunks/external-tool-guard-provider-5HTGOPGU.js +273 -0
  123. package/chunks/{fast-path-YQJPIKMP.js → fast-path-2FU23PAQ.js} +5 -5
  124. package/chunks/{gemini-FUF5SSPR.js → gemini-KDULDQPP.js} +70 -55
  125. package/chunks/{geminiContentGenerator-LLLZBOUG.js → geminiContentGenerator-LOCFHNVA.js} +1 -1
  126. package/chunks/{glob-LJFFMN4D.js → glob-Z4NQFKWS.js} +11 -10
  127. package/chunks/{grep-Q64EAM73.js → grep-Z67Z7EN6.js} +11 -10
  128. package/chunks/{handleAutoUpdate-QBMPRTSQ.js → handleAutoUpdate-DFUZE6I6.js} +16 -15
  129. package/chunks/{i18n-LDUW5DMN.js → i18n-R4FMZ7N2.js} +13 -12
  130. package/chunks/{image-gen-G7RLG3KR.js → image-gen-4CQJPQP5.js} +1 -1
  131. package/chunks/{initializer-74A7DMMD.js → initializer-DK672ZVE.js} +17 -16
  132. package/chunks/{installationInfo-OFDYLDFD.js → installationInfo-PO4Z3ES7.js} +12 -11
  133. package/chunks/{list-JA2EWRHJ.js → list-QXQF6C53.js} +20 -19
  134. package/chunks/{loadedSettingsAdapter-2GNJOQ3L.js → loadedSettingsAdapter-4D7GUGW6.js} +17 -16
  135. package/chunks/{loggingContentGenerator-B6B5EGB3.js → loggingContentGenerator-2P3MNACM.js} +4 -3
  136. package/chunks/{managed-npm-update-4YZHLUER.js → managed-npm-update-LWVJQTWO.js} +24 -14
  137. package/chunks/{mcp-LLK5YJVH.js → mcp-GHETAR6V.js} +17 -16
  138. package/chunks/{monitor-NYJPAWVP.js → monitor-4T7W4M6Q.js} +11 -10
  139. package/chunks/{nonInteractiveCli-HZBBBDJD.js → nonInteractiveCli-P4UKCJFM.js} +47 -45
  140. package/chunks/{notebook-edit-LLM6UXFX.js → notebook-edit-OC2V7U5D.js} +11 -10
  141. package/chunks/{openaiContentGenerator-2AEXDN55.js → openaiContentGenerator-RAJUFWQY.js} +5 -4
  142. package/chunks/{pidfile-3JUWX7G2.js → pidfile-HVPYVRLS.js} +11 -10
  143. package/chunks/{processUtils-JLLRVZHT.js → processUtils-VIQ4JHVX.js} +2 -2
  144. package/chunks/{qwenContentGenerator-2FESCF27.js → qwenContentGenerator-2QLCUFNZ.js} +12 -11
  145. package/chunks/{qwenOAuth2-2KKPYA5J.js → qwenOAuth2-J2X3EN43.js} +1 -1
  146. package/chunks/{read-file-5GVXLY74.js → read-file-ZNAN2B26.js} +3 -2
  147. package/chunks/{record-artifact-L3BAHQFN.js → record-artifact-E6AWQU2Z.js} +1 -1
  148. package/chunks/{resumeHistoryUtils-Z4OFBXPM.js → resumeHistoryUtils-RCY7AL5Y.js} +15 -14
  149. package/chunks/{ripGrep-TKOJTIAB.js → ripGrep-C3KMLZM5.js} +11 -10
  150. package/chunks/{run-qwen-serve-K5W6MM6M.js → run-qwen-serve-3JN75CIQ.js} +518 -75
  151. package/chunks/{runtime-IADXMRCY.js → runtime-VUA4WQYD.js} +20 -19
  152. package/chunks/{scheduler-T7AV37LD.js → scheduler-Z4IBXCOY.js} +11 -10
  153. package/chunks/{serve-ROEGMS3I.js → serve-67T3P7XI.js} +18 -16
  154. package/chunks/{server-NGXMRODI.js → server-46ZO2CLV.js} +7556 -397
  155. package/chunks/{session-RCDLDJA4.js → session-B4IFAFC4.js} +50 -48
  156. package/chunks/{settings-E6H3AURD.js → settings-AI2BTBOZ.js} +16 -15
  157. package/chunks/{shell-RHGGJ6BE.js → shell-BKII3B6E.js} +11 -10
  158. package/chunks/{skill-GQ7PBS25.js → skill-6CFOWVGA.js} +4 -3
  159. package/chunks/{skill-settings-E2F7OCBL.js → skill-settings-6BFQWMW4.js} +16 -15
  160. package/chunks/{spawnChannel-Q2IQBHME.js → spawnChannel-FJXW35U7.js} +14 -12
  161. package/chunks/{standalone-update-NYYZEHLD.js → standalone-update-WVINHRNS.js} +14 -13
  162. package/chunks/{startInteractiveUI-IX6I3Y2Z.js → startInteractiveUI-YE57CJ57.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-GNC7NFY6.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-ECALJLIO.js} +11 -10
  170. package/chunks/{terminal-image-renderer-QRSCS2BE.js → terminal-image-renderer-II74TFVW.js} +11 -10
  171. package/chunks/{theme-manager-EKZBY34I.js → theme-manager-2MGEDD22.js} +11 -10
  172. package/chunks/{tool-search-N2R7LVMC.js → tool-search-S6LRRACA.js} +3 -2
  173. package/chunks/{total-session-admission-HBIYARPO.js → total-session-admission-7WVAWQPU.js} +17 -15
  174. package/chunks/{trustedFolders-ZQLYRCSY.js → trustedFolders-NFS4KHO4.js} +13 -12
  175. package/chunks/{update-relaunch-PJWXMPCR.js → update-relaunch-Q5HLZ6UW.js} +6 -6
  176. package/chunks/{updateCheck-ZXRCGY66.js → updateCheck-UOVZSTP7.js} +15 -14
  177. package/chunks/{useAutoAcceptIndicator-ZYQW5SGJ.js → useAutoAcceptIndicator-PC6MOJCO.js} +19 -18
  178. package/chunks/{validateNonInterActiveAuth-M7J7OTRH.js → validateNonInterActiveAuth-YMQP3ZM7.js} +44 -42
  179. package/chunks/{version-2AOHMPK3.js → version-T4AQFZJH.js} +1 -1
  180. package/chunks/{web-fetch-DS34CJ3R.js → web-fetch-JQCJHEEX.js} +3 -2
  181. package/chunks/{web-search-ITFPD7V4.js → web-search-QGZ2KY4G.js} +4 -3
  182. package/chunks/{workflow-LZQ4PGNS.js → workflow-YIT27YWZ.js} +12 -11
  183. package/chunks/{workspace-providers-status-ZPTLKOBM.js → workspace-providers-status-FIDZQ2PL.js} +20 -19
  184. package/chunks/{workspace-registration-store-OTFKSGG7.js → workspace-registration-store-RCSPE4DU.js} +1 -1
  185. package/chunks/{workspace-registry-YZ3OXPHP.js → workspace-registry-5PEUCY6E.js} +17 -15
  186. package/chunks/{workspace-service-OCZXOOSQ.js → workspace-service-LANDVPL7.js} +21 -20
  187. package/chunks/{workspace-skills-status-K2ALGUCD.js → workspace-skills-status-2IQVJNIN.js} +18 -17
  188. package/chunks/{workspace-trust-reconciler-KMRZISJP.js → workspace-trust-reconciler-CZPZZCZC.js} +26 -24
  189. package/chunks/{write-file-AWBI4GJS.js → write-file-G5VNGCOG.js} +11 -10
  190. package/chunks/{zoom-image-NHKN6F77.js → zoom-image-6RBLD7X6.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,18 +2,21 @@
2
2
  "use strict";
3
3
  import {
4
4
  HistoryReplayer
5
- } from "./chunk-YO4JI7B4.js";
5
+ } from "./chunk-W5DXUTXD.js";
6
+ import {
7
+ isA2uiToolMeta
8
+ } from "./chunk-OP2OHZ7K.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-PPUOYL77.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-RK2EE3T7.js";
25
28
  import {
26
29
  getResponseText,
27
30
  ideContextStore
28
- } from "./chunk-YLL3SC5S.js";
31
+ } from "./chunk-A4VTILZT.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,
@@ -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,10 +2,10 @@
2
2
  "use strict";
3
3
  import {
4
4
  STATUS_SCHEMA_VERSION
5
- } from "./chunk-PDDYAXL2.js";
5
+ } from "./chunk-UGTWD35F.js";
6
6
  import {
7
7
  formatMemoryUsage
8
- } from "./chunk-YLL3SC5S.js";
8
+ } from "./chunk-A4VTILZT.js";
9
9
  import {
10
10
  detectRuntime,
11
11
  redactProxyCredentials
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  formatHistoryGapNotice,
19
19
  indexGapsByChild
20
- } from "./chunk-5HWAJ4BK.js";
20
+ } from "./chunk-RFUHDCNF.js";
21
21
  import {
22
22
  stringWidth
23
23
  } from "./chunk-2MIN6GRR.js";
@@ -29,11 +29,11 @@ import {
29
29
  } from "./chunk-3SH53ANB.js";
30
30
  import {
31
31
  t
32
- } from "./chunk-K64OI7S7.js";
32
+ } from "./chunk-KHUA3NQV.js";
33
33
  import {
34
34
  getToolResponseDisplayText,
35
35
  stripTrailingUserPromptSubmitContextPart
36
- } from "./chunk-YLL3SC5S.js";
36
+ } from "./chunk-A4VTILZT.js";
37
37
  import {
38
38
  stripAnsi
39
39
  } from "./chunk-TWPJO254.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  getUserSettingsPath,
5
5
  v1ToV2Migration
6
- } from "./chunk-RM3F46UT.js";
6
+ } from "./chunk-PPUOYL77.js";
7
7
  import {
8
8
  getSystemDefaultsPath,
9
9
  getSystemSettingsPath
@@ -12,7 +12,7 @@ import {
12
12
  LoadedTrustedFolders,
13
13
  TrustLevel,
14
14
  getTrustedFoldersPath
15
- } from "./chunk-B3EBIZUY.js";
15
+ } from "./chunk-ACZRB7AD.js";
16
16
  import {
17
17
  require_strip_json_comments
18
18
  } from "./chunk-ALGGS7UH.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-MR3PXB6E.js";
22
22
  import {
23
23
  ideContextStore
24
- } from "./chunk-YLL3SC5S.js";
24
+ } from "./chunk-A4VTILZT.js";
25
25
  import {
26
26
  init_esbuild_shims
27
27
  } from "./chunk-5O2XNYP6.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  registerCleanup
5
- } from "./chunk-LSYVASZS.js";
5
+ } from "./chunk-RHTTKJTP.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-5O2XNYP6.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-4NFY2S7N.js";
6
6
  import {
7
7
  formatHistoryGapNotice
8
- } from "./chunk-5HWAJ4BK.js";
8
+ } from "./chunk-RFUHDCNF.js";
9
9
  import {
10
10
  isGoalStatusKind,
11
11
  isTerminalGoalStatusKind
@@ -19,12 +19,12 @@ import {
19
19
  setGoalTerminalObserver,
20
20
  setLastGoalTerminal,
21
21
  unregisterGoalHook
22
- } from "./chunk-YLL3SC5S.js";
22
+ } from "./chunk-A4VTILZT.js";
23
23
  import {
24
24
  apiActivityTracker,
25
25
  formatVisionBridgeNoticeDisplay,
26
26
  isVisionBridgeNoticeDisplay
27
- } from "./chunk-ZPGMDT4S.js";
27
+ } from "./chunk-PX5DNLSA.js";
28
28
  import {
29
29
  ToolNames
30
30
  } from "./chunk-D7D7RXIJ.js";
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  writeStderrLine,
36
36
  writeStderrLineSafe
37
- } from "./chunk-OWAK7LMW.js";
37
+ } from "./chunk-KGJGEEVR.js";
38
38
  import {
39
39
  init_esbuild_shims
40
40
  } from "./chunk-5O2XNYP6.js";
@@ -1094,7 +1094,13 @@ var DefaultTranscriptReplayMachine = class {
1094
1094
  }), "emit");
1095
1095
  const meta = {
1096
1096
  timestamp: record.timestamp,
1097
- sourceRecordIds: [record.uuid]
1097
+ sourceRecordIds: [record.uuid],
1098
+ ...record.subtype === "realtime_message" ? {
1099
+ extra: {
1100
+ source: "realtime_voice",
1101
+ qwenDiscreteMessage: true
1102
+ }
1103
+ } : {}
1098
1104
  };
1099
1105
  const gap = this.gapByChild.get(record.uuid);
1100
1106
  if (gap) {
@@ -2863,7 +2869,7 @@ async function extractMetadata(conversation, config) {
2863
2869
  const gitBranch = firstRecord?.gitBranch;
2864
2870
  let gitRepo;
2865
2871
  if (cwd) {
2866
- const { getGitRepoName } = await import("./deferred-core-runtime-O54YPTBU.js");
2872
+ const { getGitRepoName } = await import("./deferred-core-runtime-QWAEBTR5.js");
2867
2873
  gitRepo = getGitRepoName(cwd);
2868
2874
  }
2869
2875
  let model;
@@ -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";
@@ -8,17 +8,17 @@ import {
8
8
  } from "./chunk-Z4X5MTRT.js";
9
9
  import {
10
10
  STATUS_SCHEMA_VERSION
11
- } from "./chunk-PDDYAXL2.js";
11
+ } from "./chunk-UGTWD35F.js";
12
12
  import {
13
13
  loadSettings
14
- } from "./chunk-RM3F46UT.js";
14
+ } from "./chunk-PPUOYL77.js";
15
15
  import {
16
16
  SkillManager,
17
17
  isSafeModeEnv
18
- } from "./chunk-YLL3SC5S.js";
18
+ } from "./chunk-A4VTILZT.js";
19
19
  import {
20
20
  writeStderrLine
21
- } from "./chunk-OWAK7LMW.js";
21
+ } from "./chunk-KGJGEEVR.js";
22
22
  import {
23
23
  init_esbuild_shims
24
24
  } from "./chunk-5O2XNYP6.js";