@qwen-code/qwen-code 0.23.1 → 0.23.2-nightly.20260909.2e212144d3

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 (293) hide show
  1. package/README.md +35 -15
  2. package/bundled/computer-use/SKILL.md +1 -1
  3. package/bundled/qc-helper/docs/configuration/auth.md +1 -1
  4. package/bundled/qc-helper/docs/configuration/model-providers.md +19 -15
  5. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  6. package/bundled/qc-helper/docs/features/_meta.ts +1 -0
  7. package/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -1
  8. package/bundled/qc-helper/docs/features/channels/github.md +1 -9
  9. package/bundled/qc-helper/docs/features/channels/overview.md +26 -51
  10. package/bundled/qc-helper/docs/features/channels/qqbot.md +1 -2
  11. package/bundled/qc-helper/docs/features/commands.md +79 -17
  12. package/bundled/qc-helper/docs/features/computer-use.md +1 -1
  13. package/bundled/qc-helper/docs/features/cross-session-protocol.md +291 -0
  14. package/bundled/qc-helper/docs/features/goals.md +3 -1
  15. package/bundled/qc-helper/docs/features/sub-agents.md +8 -0
  16. package/bundled/qc-helper/docs/qwen-serve.md +62 -48
  17. package/chunks/{MaxSizedBox-UDO6Y7RB.js → MaxSizedBox-ZBGWYJZW.js} +20 -19
  18. package/chunks/{StandaloneSessionPicker-D4CUOO4H.js → StandaloneSessionPicker-NR5ACIJZ.js} +35 -34
  19. package/chunks/{acpAgent-KWLJFADK.js → acpAgent-DM6XRCDQ.js} +307 -183
  20. package/chunks/{agent-GSUPGEOL.js → agent-EF3IIYE3.js} +13 -13
  21. package/chunks/{agent-headless-HNYCQUJB.js → agent-headless-5J2KFYR4.js} +13 -13
  22. package/chunks/{anthropicContentGenerator-I7LQZH26.js → anthropicContentGenerator-VIW2FG7G.js} +4 -4
  23. package/chunks/{artifact-tool-P52OKKEF.js → artifact-tool-G5LHNECG.js} +1 -1
  24. package/chunks/{askUserQuestion-I5W5S3D6.js → askUserQuestion-R3TXY77M.js} +1 -1
  25. package/chunks/{bridge-B7CV6RVI.js → bridge-LEMQM6QE.js} +21 -20
  26. package/chunks/{channel-management-service-TRTLQTSV.js → channel-management-service-TGF6XFXT.js} +4 -4
  27. package/chunks/{channel-settings-store-FW45IRUP.js → channel-settings-store-FV365JSF.js} +29 -28
  28. package/chunks/{channel-worker-group-PIYPVCTF.js → channel-worker-group-SQ5FRWOH.js} +5 -5
  29. package/chunks/{channel-worker-manager-FQHEDTD2.js → channel-worker-manager-TU4ZNWOE.js} +5 -5
  30. package/chunks/{channel-worker-supervisor-XJPZZ3VK.js → channel-worker-supervisor-EMITFMCP.js} +4 -4
  31. package/chunks/{chunk-3SH53ANB.js → chunk-22GORRNY.js} +12 -0
  32. package/chunks/{chunk-3LPJ776W.js → chunk-2HYOOFDS.js} +9 -6
  33. package/chunks/{chunk-S6QVI3MV.js → chunk-34VPADLG.js} +2 -2
  34. package/chunks/{chunk-WJDXKQIO.js → chunk-3A2IMUDH.js} +14 -2
  35. package/chunks/{chunk-DXQ6Z7AH.js → chunk-3O77M472.js} +224 -84
  36. package/chunks/{chunk-5CVY5Q2P.js → chunk-43EUMPKQ.js} +1 -1
  37. package/chunks/{chunk-ZNO5BUAD.js → chunk-4DIMJKWU.js} +46 -37
  38. package/chunks/{chunk-O2JBJQCF.js → chunk-5HV2HPO7.js} +1 -1
  39. package/chunks/{chunk-RXT4QBDX.js → chunk-5WBA3DEF.js} +1 -1
  40. package/chunks/{chunk-ARYNBBBM.js → chunk-6GAYNM3F.js} +3 -3
  41. package/chunks/{chunk-EEKU6COG.js → chunk-6S7YYUUH.js} +3 -3
  42. package/chunks/{chunk-OPMKGOLD.js → chunk-6VIATHL7.js} +1 -1
  43. package/chunks/{chunk-ENZDGHGJ.js → chunk-76I36BEM.js} +3 -3
  44. package/chunks/{chunk-B54PFQS5.js → chunk-7CLLH5TI.js} +1 -1
  45. package/chunks/{chunk-UHUT4IDM.js → chunk-7IDZFJAV.js} +9 -9
  46. package/chunks/{chunk-5Z4FCEPY.js → chunk-7K4GGN3D.js} +606 -109
  47. package/chunks/{chunk-ZPL2TZNA.js → chunk-7KZVXJ4U.js} +1 -1
  48. package/chunks/{chunk-FWRRUITH.js → chunk-7WCJEY3A.js} +4 -4
  49. package/chunks/{chunk-MFYH2VXV.js → chunk-A7QZIGRB.js} +2 -2
  50. package/chunks/{chunk-27LTEY6D.js → chunk-ATBLEXXV.js} +7 -2
  51. package/chunks/{chunk-3BTHHXXE.js → chunk-AUTUFD5X.js} +1 -1
  52. package/chunks/chunk-AXMWHKXA.js +42 -0
  53. package/chunks/{chunk-QZOXVQPK.js → chunk-AXWTG6R7.js} +2 -5
  54. package/chunks/{chunk-PDUMGZ2P.js → chunk-BDAVT6K2.js} +486 -409
  55. package/chunks/{chunk-2YS3NU4A.js → chunk-BDP3NTWD.js} +3 -3
  56. package/chunks/{chunk-IKG2YVRZ.js → chunk-BZUHZCUO.js} +2 -2
  57. package/chunks/{chunk-USN6VNTO.js → chunk-C24ZDDNY.js} +1 -1
  58. package/chunks/{chunk-RPFJJ33Z.js → chunk-CALTQWTZ.js} +1 -1
  59. package/chunks/{chunk-BF3RUIVP.js → chunk-CH2YDT6X.js} +36 -38
  60. package/chunks/{chunk-3VDLQUR2.js → chunk-D6AGS266.js} +1 -1
  61. package/chunks/{chunk-DO5SMV52.js → chunk-D7DFZAK2.js} +17 -11
  62. package/chunks/{chunk-GM44O6F7.js → chunk-DARWOZY6.js} +1 -1
  63. package/chunks/{chunk-HUX2DOTF.js → chunk-DGNRLJ6S.js} +3 -3
  64. package/chunks/{chunk-FW4E4QPG.js → chunk-DVOCOIS5.js} +1 -1
  65. package/chunks/{chunk-OESZTXTG.js → chunk-E4LXNQAK.js} +1 -1
  66. package/chunks/{chunk-TWAMIEQ2.js → chunk-EATP5QCN.js} +16 -18
  67. package/chunks/{chunk-DZ6D4B3K.js → chunk-EDSU3VUG.js} +12 -5
  68. package/chunks/{chunk-EOET4H7C.js → chunk-EE5ZD4XU.js} +3 -3
  69. package/chunks/{chunk-B3EL44K3.js → chunk-EN3Q2S3J.js} +3 -3
  70. package/chunks/{chunk-N7YQEKGX.js → chunk-EOLGAQ25.js} +16 -15
  71. package/chunks/{chunk-3YQMUBTS.js → chunk-EYCW6UF2.js} +7 -7
  72. package/chunks/{chunk-ZELCTN6Y.js → chunk-F23YN37B.js} +10 -0
  73. package/chunks/{chunk-FPGTNKCP.js → chunk-F3M6P6IQ.js} +199 -1
  74. package/chunks/{chunk-B44JBZBB.js → chunk-F4SAL7WM.js} +91 -3
  75. package/chunks/{chunk-XZ3Z43XL.js → chunk-FEEVHJOR.js} +3 -3
  76. package/chunks/{chunk-CHVU543W.js → chunk-FN4KHWCL.js} +1 -1
  77. package/chunks/{chunk-6QV7Z74P.js → chunk-FRS3P7MQ.js} +15 -2
  78. package/chunks/{chunk-FDOGGKAA.js → chunk-GSFV5RQW.js} +2 -0
  79. package/chunks/{chunk-XBVNNDPK.js → chunk-GSYD7MYP.js} +8 -3
  80. package/chunks/{chunk-VF6D6EGV.js → chunk-HSO6D4KX.js} +82 -25
  81. package/chunks/{chunk-L7V52QEZ.js → chunk-HUJJFSMO.js} +10 -10
  82. package/chunks/{chunk-CIKL2DQP.js → chunk-HW4MRP4V.js} +1 -1
  83. package/chunks/{chunk-TWWS7XUW.js → chunk-HWLLUDIA.js} +108 -16
  84. package/chunks/{chunk-75LBC7SV.js → chunk-IKK6NNS6.js} +32 -29
  85. package/chunks/{chunk-UXDVUFKU.js → chunk-JFAGT5YG.js} +2 -2
  86. package/chunks/{chunk-6SADVYQQ.js → chunk-JGTMTJSQ.js} +1 -1
  87. package/chunks/{chunk-45ROPFQY.js → chunk-JYGIJA4W.js} +1 -1
  88. package/chunks/{chunk-5WC2ECUK.js → chunk-KECCLCXM.js} +42 -8
  89. package/chunks/{chunk-CABDNUJ4.js → chunk-KEPC5BOL.js} +5 -5
  90. package/chunks/{chunk-WNISCNTA.js → chunk-L5VHJYHH.js} +2 -2
  91. package/chunks/{chunk-25CBAK3H.js → chunk-LKBOBUA2.js} +2 -2
  92. package/chunks/{chunk-6QILGINT.js → chunk-LOBKNYPR.js} +2 -2
  93. package/chunks/{chunk-2ZFO5JD7.js → chunk-LOVGQ3HZ.js} +9 -9
  94. package/chunks/{chunk-QK4K76T6.js → chunk-MUF4UGPB.js} +2 -2
  95. package/chunks/{chunk-JGDRB4FP.js → chunk-N3Z6Q7KC.js} +125 -10
  96. package/chunks/chunk-NFXXBWSE.js +463 -0
  97. package/chunks/{chunk-PQSCGZT2.js → chunk-NPKCVSXX.js} +26 -2
  98. package/chunks/{chunk-YCEKI7QX.js → chunk-NV4YYXFT.js} +1 -1
  99. package/chunks/{chunk-5IL2BZHW.js → chunk-O6BFERWN.js} +3 -3
  100. package/chunks/{chunk-TGC4264Q.js → chunk-OVTPETDL.js} +5 -5
  101. package/chunks/chunk-PLEBBGHL.js +1401 -0
  102. package/chunks/{chunk-3VWPPK5Q.js → chunk-PWR6BQ3U.js} +4 -4
  103. package/chunks/{chunk-D6AQNMUA.js → chunk-QA2B26PL.js} +3 -3
  104. package/chunks/{chunk-NFIDVZND.js → chunk-QB3KS3N3.js} +2 -21
  105. package/chunks/{chunk-LNCNUMJ5.js → chunk-SK6VACCM.js} +558 -158
  106. package/chunks/{chunk-YAC7H4K3.js → chunk-SM66GFKJ.js} +1 -1
  107. package/chunks/{chunk-MA5OUNN6.js → chunk-SNMUO5Z7.js} +1 -1
  108. package/chunks/{chunk-IRKQ4YYX.js → chunk-SVWWF5TZ.js} +29 -1
  109. package/chunks/{chunk-6JXHO7LG.js → chunk-SYKPMH2X.js} +3 -3
  110. package/chunks/{chunk-5HBA2Z7V.js → chunk-TGNNLRC3.js} +2 -3
  111. package/chunks/{chunk-EHTKOO6W.js → chunk-TRQNRP2H.js} +2 -2
  112. package/chunks/{chunk-LZGFVUWZ.js → chunk-UQOP2APG.js} +4 -24
  113. package/chunks/{chunk-T2IHCZLS.js → chunk-VAWM3A5N.js} +1 -1
  114. package/chunks/{chunk-M73KHGNR.js → chunk-VJJXG73H.js} +404 -226
  115. package/chunks/{chunk-WAASYFPK.js → chunk-VJWJOKOQ.js} +2 -2
  116. package/chunks/{chunk-WQMUGQ6G.js → chunk-VR6Y23FW.js} +1 -1
  117. package/chunks/{chunk-E7XSUYCZ.js → chunk-VX2NR3SD.js} +19 -4
  118. package/chunks/{chunk-XVTCSVBK.js → chunk-WDVV3LRM.js} +193 -169
  119. package/chunks/{chunk-RNYENHN5.js → chunk-WEU6O6VN.js} +2 -2
  120. package/chunks/{chunk-YHDGABDC.js → chunk-XKBFYTCD.js} +1 -1
  121. package/chunks/{chunk-66JBCTJF.js → chunk-Y7YHAY32.js} +23 -6
  122. package/chunks/{chunk-7SL55L5H.js → chunk-YIE6REQ5.js} +20 -15
  123. package/chunks/{chunk-ZU2T5JIS.js → chunk-ZEFWBG2C.js} +736 -1148
  124. package/chunks/{chunk-6TPVIESH.js → chunk-ZM2TCZZ7.js} +3 -3
  125. package/chunks/{chunk-2TMJRF46.js → chunk-ZZ7RVOTU.js} +50 -18
  126. package/chunks/{config-utils-KTDSQ4MU.js → config-utils-SXFK3G4X.js} +24 -23
  127. package/chunks/{contextCommand-UQ3KRYGK.js → contextCommand-QFPD26QO.js} +21 -20
  128. package/chunks/{core-runtime-JR34JAFH.js → core-runtime-VXKNBODM.js} +26 -24
  129. package/chunks/{create-sub-session-RGPJOI4S.js → create-sub-session-7WSQETFR.js} +20 -19
  130. package/chunks/{daemon-UI6SQSBV.js → daemon-U2456K5H.js} +2 -2
  131. package/chunks/{daemon-git-worktree-guard-H3OA26KQ.js → daemon-git-worktree-guard-I4DCSDUS.js} +20 -19
  132. package/chunks/{daemon-status-provider-6WZLKSZU.js → daemon-status-provider-5UV56RI4.js} +25 -24
  133. package/chunks/{daemon-trust-policy-3EDP2BYD.js → daemon-trust-policy-DKIBWTKU.js} +25 -24
  134. package/chunks/{daemon-trust-policy-monitor-CRHZPK52.js → daemon-trust-policy-monitor-CPSD7UKT.js} +25 -24
  135. package/chunks/{deferred-core-runtime-LO5NTQQ4.js → deferred-core-runtime-D2RF35BL.js} +20 -19
  136. package/chunks/{dist-STAGIFNB.js → dist-6YDUH3BB.js} +388 -102
  137. package/chunks/{dist-XJ25G6OH.js → dist-BNQVF565.js} +2 -8
  138. package/chunks/{dist-NQ2636VT.js → dist-F34J4FZX.js} +1 -1
  139. package/chunks/{dist-OR2ZQTXZ.js → dist-F6JLAJLE.js} +1 -1
  140. package/chunks/{dist-24TCWK5H.js → dist-K5GHMXIG.js} +2 -2
  141. package/chunks/{dist-WZTUKIDR.js → dist-NP7QKLVG.js} +2 -2
  142. package/chunks/{dist-M4CBX53H.js → dist-UFTFGI6I.js} +1 -1
  143. package/chunks/{dist-5I4HLUTO.js → dist-XLV33CLY.js} +1 -2
  144. package/chunks/{dist-FDISN4AK.js → dist-ZDNJK74R.js} +3 -7
  145. package/chunks/{edit-LB7Z7XK5.js → edit-4IBADZ3O.js} +13 -13
  146. package/chunks/{enterPlanMode-P6TVUFIY.js → enterPlanMode-YN3GPQU5.js} +13 -13
  147. package/chunks/{environment-QATJNNKI.js → environment-E272IJMF.js} +22 -21
  148. package/chunks/{errors-3XJ37PS2.js → errors-CVAH3RWQ.js} +22 -21
  149. package/chunks/{exitPlanMode-A3OKL5UO.js → exitPlanMode-24J5IHGC.js} +13 -13
  150. package/chunks/{fast-path-DBIT5YQQ.js → fast-path-M5IDBMXF.js} +3 -3
  151. package/chunks/{glob-73EDTXUE.js → glob-ERBD7JYP.js} +13 -13
  152. package/chunks/{goal-tools-DFI6YMSD.js → goal-tools-245ULLQT.js} +13 -13
  153. package/chunks/{handleAutoUpdate-2FUNJO3B.js → handleAutoUpdate-JDZHHZKK.js} +22 -21
  154. package/chunks/{i18n-FDIA6KFI.js → i18n-LA4D5IXM.js} +20 -19
  155. package/chunks/{initializer-4MJTJOTW.js → initializer-SHPTSWUZ.js} +25 -24
  156. package/chunks/{installationInfo-232RA2OK.js → installationInfo-QEQEPB3G.js} +20 -19
  157. package/chunks/{list-WN6WSGEB.js → list-IBHCQWTF.js} +28 -27
  158. package/chunks/{list-agents-I5TRH3J7.js → list-agents-EDPZCGKN.js} +5 -4
  159. package/chunks/{llm-UDFWQWZA.js → llm-JAWCQLA4.js} +68 -62
  160. package/chunks/{llm-content-generator-VLMZ2A7A.js → llm-content-generator-GOV3A23T.js} +2 -2
  161. package/chunks/{loadedSettingsAdapter-OBQEIXM7.js → loadedSettingsAdapter-RVE2GNVU.js} +25 -24
  162. package/chunks/{loggingContentGenerator-RGVUMUVX.js → loggingContentGenerator-SSHNN5YW.js} +15 -15
  163. package/chunks/{managed-npm-update-QBAJYCFU.js → managed-npm-update-BHSTITQO.js} +20 -19
  164. package/chunks/{mcp-OTIZZCPY.js → mcp-6ZZ7P2HU.js} +25 -24
  165. package/chunks/{monitor-BV5XF6LL.js → monitor-RKK6GSHG.js} +13 -13
  166. package/chunks/{nonInteractiveCli-W6MUKDVJ.js → nonInteractiveCli-UQHP3G6P.js} +58 -57
  167. package/chunks/{notebook-edit-HGBEKGTE.js → notebook-edit-YM47A7WO.js} +13 -13
  168. package/chunks/{open-with-auth-D6JD6LDS.js → open-with-auth-6MVIHMXB.js} +1 -1
  169. package/chunks/{openaiContentGenerator-NSU3ERBH.js → openaiContentGenerator-FHKDWNI2.js} +9 -9
  170. package/chunks/{pidfile-LE3TU4GE.js → pidfile-SIIEJEEH.js} +23 -20
  171. package/chunks/{processUtils-YFBGJK67.js → processUtils-JF7CWBJC.js} +2 -2
  172. package/chunks/{prompt-terminal-ledger-4W4W7DSO.js → prompt-terminal-ledger-FXXHAEQU.js} +21 -20
  173. package/chunks/{qwenContentGenerator-HTA57WFC.js → qwenContentGenerator-KFJ77JP6.js} +16 -16
  174. package/chunks/{read-file-KHPQ2MB6.js → read-file-S2NOCBIL.js} +4 -4
  175. package/chunks/{resumeHistoryUtils-K7RV3QBN.js → resumeHistoryUtils-QHHPSQWU.js} +22 -21
  176. package/chunks/{ripGrep-NBBVCMG4.js → ripGrep-F6TNOJUO.js} +5 -5
  177. package/chunks/{run-qwen-serve-A3JBOZCM.js → run-qwen-serve-KYBDQRDD.js} +216 -64
  178. package/chunks/{runtime-7YOU2KJ3.js → runtime-3WNOFLCR.js} +32 -29
  179. package/chunks/{scheduled-tasks-52LXK7LN.js → scheduled-tasks-RNBH56DJ.js} +23 -22
  180. package/chunks/{scheduler-J44M72VM.js → scheduler-ERMW7Q7B.js} +22 -21
  181. package/chunks/{send-message-AWKUDJBH.js → send-message-V5T3NMFM.js} +3 -3
  182. package/chunks/{serve-TRC6XJUB.js → serve-7NV46RMP.js} +25 -24
  183. package/chunks/{server-YPNTJLX2.js → server-6RZJR5QF.js} +106 -154
  184. package/chunks/{session-FMMIBFYX.js → session-Z4EV7NVV.js} +91 -63
  185. package/chunks/{session-attachments-root-LDJMNK7K.js → session-attachments-root-SG5FC52X.js} +20 -19
  186. package/chunks/{session-pr-refresh-NLR4EK2J.js → session-pr-refresh-ILC4Z3ZM.js} +22 -21
  187. package/chunks/{settings-A46L577J.js → settings-Y47SPE3X.js} +24 -23
  188. package/chunks/{shell-Q5LSQPPY.js → shell-YBVCOPVO.js} +13 -13
  189. package/chunks/{skill-75KPJRCM.js → skill-AXC63EBA.js} +4 -4
  190. package/chunks/{skill-settings-775YT4YR.js → skill-settings-AFPAYGLO.js} +24 -23
  191. package/chunks/{spawnChannel-XY73I5CU.js → spawnChannel-ZFL4J2V3.js} +20 -19
  192. package/chunks/{standalone-update-L46XXNQ2.js → standalone-update-Y2OZPLNJ.js} +21 -20
  193. package/chunks/{start-opentui-ui-WLV43247.js → start-opentui-ui-G6TKT4LI.js} +449 -210
  194. package/chunks/{startInteractiveUI-F5DKMLOV.js → startInteractiveUI-YTNDPW7J.js} +1182 -1245
  195. package/chunks/{task-create-PMAFST2T.js → task-create-MWXJFRRM.js} +3 -3
  196. package/chunks/{task-list-R2HSY2NC.js → task-list-EYO3FE57.js} +2 -2
  197. package/chunks/{task-update-JYC57USF.js → task-update-2JJJRHMT.js} +3 -3
  198. package/chunks/{team-create-2PATB77U.js → team-create-BUFLGGSH.js} +13 -13
  199. package/chunks/{team-delete-CBHVBTPB.js → team-delete-IQZ6XGFI.js} +2 -2
  200. package/chunks/{team-plan-approval-QTANEWOS.js → team-plan-approval-OUWWM42U.js} +13 -13
  201. package/chunks/{terminal-image-renderer-OGULCFNF.js → terminal-image-renderer-WH2WV5ES.js} +20 -19
  202. package/chunks/{theme-manager-CNO3QERP.js → theme-manager-5UDRARM2.js} +20 -19
  203. package/chunks/{tool-search-VXWEOZE7.js → tool-search-MCDIRPHN.js} +4 -4
  204. package/chunks/{total-session-admission-4KAADZPB.js → total-session-admission-VL27U74Z.js} +21 -20
  205. package/chunks/{trustedFolders-PPJSOPOT.js → trustedFolders-MSXT4VDD.js} +21 -20
  206. package/chunks/{update-relaunch-4PT4MW7B.js → update-relaunch-JKLEWVCB.js} +5 -5
  207. package/chunks/{updateCheck-WAVFLWNG.js → updateCheck-ARTHAJT2.js} +20 -19
  208. package/chunks/{useAutoAcceptIndicator-XNED4NRB.js → useAutoAcceptIndicator-YEAAGYVU.js} +26 -25
  209. package/chunks/{validateNonInterActiveAuth-J676DUQ2.js → validateNonInterActiveAuth-EMRQKH5S.js} +56 -55
  210. package/chunks/{version-J6SRRQB2.js → version-HFQU35WD.js} +3 -1
  211. package/chunks/{web-fetch-FMZZYX44.js → web-fetch-QBXAO6VF.js} +4 -4
  212. package/chunks/{web-search-3G2KXCX5.js → web-search-2URQXA3A.js} +186 -9
  213. package/chunks/{web-shell-static-POZHGGXE.js → web-shell-static-BFDESDD4.js} +5 -4
  214. package/chunks/{workflow-PPZZICQ7.js → workflow-JDD6WDAH.js} +204 -68
  215. package/chunks/{workspace-providers-status-IIYTAQST.js → workspace-providers-status-B4IKR6YJ.js} +27 -26
  216. package/chunks/{workspace-registration-store-VHCDXAV7.js → workspace-registration-store-PJ3YHR45.js} +1 -2
  217. package/chunks/{workspace-registry-I7VQIPS2.js → workspace-registry-WVYJ5UGB.js} +21 -20
  218. package/chunks/{workspace-runtime-coordinator-DBGNY32G.js → workspace-runtime-coordinator-DXL5YVAG.js} +21 -20
  219. package/chunks/{workspace-service-QSKB2T54.js → workspace-service-QNGAMVH7.js} +26 -25
  220. package/chunks/{workspace-skills-status-T7GPT65J.js → workspace-skills-status-BEISJIII.js} +25 -24
  221. package/chunks/{workspace-trust-reconciler-2PKRDAU4.js → workspace-trust-reconciler-ORYJF5L4.js} +26 -25
  222. package/chunks/{write-file-L76CGFTQ.js → write-file-DWLKFBTJ.js} +14 -14
  223. package/chunks/{zoom-image-TDJJY2VZ.js → zoom-image-BYVIXSNQ.js} +4 -4
  224. package/cli.js +12 -12
  225. package/export-transcript-document.js +106 -106
  226. package/package.json +4 -4
  227. package/web-shell/assets/{abnfDiagram-VCTEODGH-DHc6plZn.js → abnfDiagram-VCTEODGH-C_8kzsly.js} +1 -1
  228. package/web-shell/assets/{arc-BQ9m8TDV.js → arc-CDg7Zfpm.js} +1 -1
  229. package/web-shell/assets/{architectureDiagram-5GKGNRK7-D5ap3oVB.js → architectureDiagram-5GKGNRK7-DZzdCWyF.js} +1 -1
  230. package/web-shell/assets/{blockDiagram-NRAW4CY4-BIbnyNph.js → blockDiagram-NRAW4CY4-DI3B4gyR.js} +1 -1
  231. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BRsdx_iG.js → c4Diagram-UCG6FXSJ-CfOgwHZW.js} +1 -1
  232. package/web-shell/assets/channel-e4xwS72w.js +1 -0
  233. package/web-shell/assets/{chunk-2Q5K7J3B-3lf1fNlx.js → chunk-2Q5K7J3B-B_PUth0g.js} +1 -1
  234. package/web-shell/assets/{chunk-5VM5RSS4-DP8VNRc4.js → chunk-5VM5RSS4-CrKtvBIL.js} +1 -1
  235. package/web-shell/assets/{chunk-F27PBJKO-DrohDmZ6.js → chunk-F27PBJKO-B4z2n8Py.js} +1 -1
  236. package/web-shell/assets/{chunk-G27WJ6UU-UZ2QhSx6.js → chunk-G27WJ6UU-BUtrFEO8.js} +1 -1
  237. package/web-shell/assets/{chunk-JWPE2WC7-BIMHVcZK.js → chunk-JWPE2WC7-Cqw3aXW0.js} +1 -1
  238. package/web-shell/assets/{chunk-LCL6LL3I-izRxdSDd.js → chunk-LCL6LL3I-CZolnvls.js} +1 -1
  239. package/web-shell/assets/{chunk-POPQ4Y6H-CXADD4PP.js → chunk-POPQ4Y6H-DivgasCa.js} +1 -1
  240. package/web-shell/assets/{chunk-SVP7TREG-B96d8Y_1.js → chunk-SVP7TREG--seyb1B6.js} +1 -1
  241. package/web-shell/assets/{chunk-XXDRQBXY-CF2sVQpv.js → chunk-XXDRQBXY-D7pHtuVM.js} +1 -1
  242. package/web-shell/assets/classDiagram-DTDB5LWJ-CzXfUUOt.js +1 -0
  243. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CzXfUUOt.js +1 -0
  244. package/web-shell/assets/{cose-bilkent-JH36ORCC-CT6tXVAS.js → cose-bilkent-JH36ORCC-4MWaRF_3.js} +1 -1
  245. package/web-shell/assets/{cynefin-OW5HDTMX-X1NS4vtV.js → cynefin-OW5HDTMX-nhJhAjgD.js} +1 -1
  246. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DNsKNOT4.js → cynefinDiagram-5FMLGOSQ-NF-PwXlq.js} +1 -1
  247. package/web-shell/assets/{dagre-3AP2YEHR-9-AHKqsb.js → dagre-3AP2YEHR-Bu0ncdWP.js} +1 -1
  248. package/web-shell/assets/{diagram-S7CK7UJ4-Bjgms7j6.js → diagram-S7CK7UJ4-CsvhFHZC.js} +1 -1
  249. package/web-shell/assets/{diagram-UQ7AKVKN-h6bCprbE.js → diagram-UQ7AKVKN-Ck61sIB3.js} +1 -1
  250. package/web-shell/assets/{diagram-VSXAHHWV-4SbQXVLt.js → diagram-VSXAHHWV-D0171zrb.js} +1 -1
  251. package/web-shell/assets/{diagram-VX7I27RA-B5gPCzzB.js → diagram-VX7I27RA-DvdxY4UL.js} +1 -1
  252. package/web-shell/assets/{diagram-Z3DM3KII-DFJXIA3A.js → diagram-Z3DM3KII-CGGpseiB.js} +1 -1
  253. package/web-shell/assets/{ebnfDiagram-PWID7BFC-FwyaU7VY.js → ebnfDiagram-PWID7BFC-K8-QMvY8.js} +1 -1
  254. package/web-shell/assets/{erDiagram-SSCWMZ5O-8vJQh2te.js → erDiagram-SSCWMZ5O-D316nAem.js} +1 -1
  255. package/web-shell/assets/{flowDiagram-A5DVABFB-BzA_1gMN.js → flowDiagram-A5DVABFB-B7siy_mn.js} +1 -1
  256. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Co-ABbVX.js → ganttDiagram-EL5Y4UJY-BZQDxzTu.js} +1 -1
  257. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DW_FcyrX.js → gitGraphDiagram-WWUBYQGX-DZynLCSV.js} +1 -1
  258. package/web-shell/assets/{index-BbMXfhNG.js → index-9ie6xLTM.js} +1 -1
  259. package/web-shell/assets/{index-Bu-rZoJ-.js → index-DirkXQEg.js} +488 -474
  260. package/web-shell/assets/index-DzdST_7L.css +36 -0
  261. package/web-shell/assets/{infoDiagram-RXCK75RN-BEgfhUFN.js → infoDiagram-RXCK75RN-B0gr769A.js} +1 -1
  262. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DCsMxQmc.js → ishikawaDiagram-5VMMS53U-0pQFfjvX.js} +1 -1
  263. package/web-shell/assets/{journeyDiagram-EYS64GPL-DyIEYoHz.js → journeyDiagram-EYS64GPL-DEGtClWb.js} +1 -1
  264. package/web-shell/assets/{kanban-definition-3QL26DDD-CkxjqCNr.js → kanban-definition-3QL26DDD-CnN8gPzw.js} +1 -1
  265. package/web-shell/assets/{layout-BEWc0Al9.js → layout-C_70RhaT.js} +1 -1
  266. package/web-shell/assets/{linear-CNuNxirL.js → linear-BJ2ZLmcq.js} +1 -1
  267. package/web-shell/assets/{mermaid.core-DZBre674.js → mermaid.core-RlY0zPNC.js} +6 -6
  268. package/web-shell/assets/{mindmap-definition-FBJOCRG2-CpafFz_F.js → mindmap-definition-FBJOCRG2-CpVAxTNl.js} +1 -1
  269. package/web-shell/assets/{pegDiagram-XKGWAZYB-DfZqk_dq.js → pegDiagram-XKGWAZYB-DmrSv3hD.js} +1 -1
  270. package/web-shell/assets/{pieDiagram-E7YTZNPT-S0UWXlgC.js → pieDiagram-E7YTZNPT-CJmgp8KJ.js} +1 -1
  271. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-dd37_Ohj.js → quadrantDiagram-AXDQQJYC-UsgOyNco.js} +1 -1
  272. package/web-shell/assets/{railroadDiagram-O6MQD6OU-CH8NJZ7u.js → railroadDiagram-O6MQD6OU-DQ6gMs_W.js} +1 -1
  273. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CFdqWYih.js → requirementDiagram-EFPCY7ZU-DhqadamF.js} +1 -1
  274. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CsddcEGD.js → sankeyDiagram-P5KCCOFB-R4WnURaE.js} +1 -1
  275. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BZ270mGw.js → sequenceDiagram-WJ2MYXX4-D7BwMi_D.js} +1 -1
  276. package/web-shell/assets/{sizeCapture-X5ZJPWSS-CGaS4DBV.js → sizeCapture-X5ZJPWSS-Bqngz088.js} +1 -1
  277. package/web-shell/assets/{stateDiagram-HBIQ2CUA-COpIzMu6.js → stateDiagram-HBIQ2CUA-DwaXPGqn.js} +1 -1
  278. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-8GCQZAvv.js +1 -0
  279. package/web-shell/assets/{swimlanes-XN3QIQJK-CMF889m3.js → swimlanes-XN3QIQJK-BsaLeRDY.js} +1 -1
  280. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BoRBF2Yw.js +8 -0
  281. package/web-shell/assets/{timeline-definition-24CTP7MA-BelnxYz5.js → timeline-definition-24CTP7MA-NJ9G-NUU.js} +1 -1
  282. package/web-shell/assets/{vennDiagram-4TSXK5OY-CU-NRqIB.js → vennDiagram-4TSXK5OY-Ca3W4rSq.js} +1 -1
  283. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CDNKqWh-.js → wardleyDiagram-VM6X3IG4-OabvjC-6.js} +1 -1
  284. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CLqguL5D.js → xychartDiagram-S5SC5T6Z-C7rbjvpc.js} +1 -1
  285. package/web-shell/index.html +2 -2
  286. package/chunks/chunk-6YEOCHSE.js +0 -142
  287. package/chunks/chunk-X35VIWWJ.js +0 -276
  288. package/web-shell/assets/channel-uMMdTrYk.js +0 -1
  289. package/web-shell/assets/classDiagram-DTDB5LWJ-DcY-26Ig.js +0 -1
  290. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DcY-26Ig.js +0 -1
  291. package/web-shell/assets/index-CsPwZ1ut.css +0 -36
  292. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-D6qEVAji.js +0 -1
  293. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-mem5Jj4m.js +0 -8
@@ -18,7 +18,7 @@ import {
18
18
  matchMcpServerByRef,
19
19
  parseExtensionRef,
20
20
  parseMcpServerRef
21
- } from "./chunk-ENZDGHGJ.js";
21
+ } from "./chunk-76I36BEM.js";
22
22
  import {
23
23
  getAvailableCommands,
24
24
  getSlashCommandFirstToken,
@@ -28,10 +28,10 @@ import {
28
28
  pLimit,
29
29
  recordDaemonSessionModel,
30
30
  restoreSessionModelThenAuthenticate
31
- } from "./chunk-ZNO5BUAD.js";
31
+ } from "./chunk-4DIMJKWU.js";
32
32
  import {
33
33
  recomputeMcpGating
34
- } from "./chunk-2YS3NU4A.js";
34
+ } from "./chunk-BDP3NTWD.js";
35
35
  import {
36
36
  SessionIdConflictError,
37
37
  appEvents,
@@ -41,39 +41,39 @@ import {
41
41
  loadCliConfig,
42
42
  normalizeDisabledToolList,
43
43
  parseApprovalModeValue
44
- } from "./chunk-DXQ6Z7AH.js";
44
+ } from "./chunk-3O77M472.js";
45
45
  import {
46
46
  getCommandSubcommandNames
47
- } from "./chunk-O2JBJQCF.js";
47
+ } from "./chunk-5HV2HPO7.js";
48
48
  import {
49
49
  getEffectiveSupportedModes
50
- } from "./chunk-MFYH2VXV.js";
51
- import "./chunk-3SH53ANB.js";
50
+ } from "./chunk-A7QZIGRB.js";
51
+ import "./chunk-22GORRNY.js";
52
52
  import "./chunk-NYX53SV4.js";
53
53
  import "./chunk-UYDQYDW2.js";
54
54
  import {
55
55
  collectContextData,
56
56
  formatContextUsageText
57
- } from "./chunk-HUX2DOTF.js";
57
+ } from "./chunk-DGNRLJ6S.js";
58
58
  import "./chunk-4WGODMVR.js";
59
59
  import {
60
60
  startNonInteractiveOpenAILogHousekeeping
61
- } from "./chunk-6TPVIESH.js";
61
+ } from "./chunk-ZM2TCZZ7.js";
62
62
  import "./chunk-KW7NOTN6.js";
63
63
  import "./chunk-2XRE4KE4.js";
64
- import "./chunk-D6AQNMUA.js";
65
- import "./chunk-6JXHO7LG.js";
66
- import "./chunk-RXT4QBDX.js";
64
+ import "./chunk-QA2B26PL.js";
65
+ import "./chunk-SYKPMH2X.js";
66
+ import "./chunk-5WBA3DEF.js";
67
67
  import {
68
68
  isGoalStatusKind
69
69
  } from "./chunk-EKTCKZV5.js";
70
- import "./chunk-YCEKI7QX.js";
70
+ import "./chunk-NV4YYXFT.js";
71
71
  import "./chunk-YAF2MQZ6.js";
72
72
  import {
73
73
  computeCpuPercent
74
74
  } from "./chunk-LBOVL47Y.js";
75
75
  import "./chunk-24FVUD5P.js";
76
- import "./chunk-3YQMUBTS.js";
76
+ import "./chunk-EYCW6UF2.js";
77
77
  import "./chunk-6H67XLET.js";
78
78
  import {
79
79
  beginAcpBootstrapConfigProfiling,
@@ -101,7 +101,7 @@ import {
101
101
  shouldSuppressRememberErrorDetails,
102
102
  workspaceMemoryFailureCode,
103
103
  workspaceMemoryFailureDiagnostics
104
- } from "./chunk-XZ3Z43XL.js";
104
+ } from "./chunk-FEEVHJOR.js";
105
105
  import {
106
106
  BaseEmitter,
107
107
  HistoryReplayer,
@@ -112,7 +112,7 @@ import {
112
112
  hasFullSessionContext,
113
113
  observeAcpToolResultProjection,
114
114
  observeAcpToolResultWire
115
- } from "./chunk-TWWS7XUW.js";
115
+ } from "./chunk-HWLLUDIA.js";
116
116
  import "./chunk-M3JGHRMQ.js";
117
117
  import "./chunk-VFFQAOPR.js";
118
118
  import "./chunk-ERXNTINK.js";
@@ -143,7 +143,7 @@ import {
143
143
  normalizeChannelDeliveryText,
144
144
  scheduledTaskRunSessionName,
145
145
  scheduledTaskRunSourceId
146
- } from "./chunk-WAASYFPK.js";
146
+ } from "./chunk-VJWJOKOQ.js";
147
147
  import {
148
148
  normalizeSessionIdForLookup,
149
149
  parseCallerSuppliedSessionId
@@ -154,7 +154,7 @@ import {
154
154
  buildPermissionSettings,
155
155
  normalizePermissionRules,
156
156
  readPermissionRuleSet
157
- } from "./chunk-CHVU543W.js";
157
+ } from "./chunk-FN4KHWCL.js";
158
158
  import {
159
159
  MAX_AUDIO_BYTES,
160
160
  sanitizeVoiceErrorMessage,
@@ -164,12 +164,12 @@ import {
164
164
  readVoiceModel
165
165
  } from "./chunk-NB3NDQQK.js";
166
166
  import "./chunk-Y53DG2HA.js";
167
- import "./chunk-5IL2BZHW.js";
168
- import "./chunk-6QILGINT.js";
167
+ import "./chunk-O6BFERWN.js";
168
+ import "./chunk-LOBKNYPR.js";
169
169
  import "./chunk-JS73NNWF.js";
170
170
  import {
171
171
  SCHEDULED_TASK_RUN_SOURCE_TYPE
172
- } from "./chunk-2TMJRF46.js";
172
+ } from "./chunk-ZZ7RVOTU.js";
173
173
  import "./chunk-7U5G6JXI.js";
174
174
  import "./chunk-WCCLLK7X.js";
175
175
  import "./chunk-OCPBI7J5.js";
@@ -187,10 +187,12 @@ import {
187
187
  buildModelReasoningConfigPreview,
188
188
  clearReasoningRequestOverrides,
189
189
  getConfiguredModelReasoning,
190
+ getDefaultReasoningConfig,
191
+ getGptReasoningOverrideState,
190
192
  isReasoningSelectionSupported,
191
193
  parseReasoningSelection,
192
194
  resolvePersistedReasoningConfigState
193
- } from "./chunk-JGDRB4FP.js";
195
+ } from "./chunk-N3Z6Q7KC.js";
194
196
  import {
195
197
  ACP_ROUTE_ID_PREFIX,
196
198
  buildAcpModelOptions,
@@ -199,7 +201,7 @@ import {
199
201
  parseAcpModelOption,
200
202
  resolveAcpModelOption,
201
203
  sanitizeProviderBaseUrl
202
- } from "./chunk-ARYNBBBM.js";
204
+ } from "./chunk-6GAYNM3F.js";
203
205
  import {
204
206
  mapSkillConfigToStatus
205
207
  } from "./chunk-BHTYRHJF.js";
@@ -214,18 +216,18 @@ import {
214
216
  import {
215
217
  resolveSkillSettings
216
218
  } from "./chunk-HWVUSYSN.js";
217
- import "./chunk-5WC2ECUK.js";
218
- import "./chunk-DZ6D4B3K.js";
219
- import "./chunk-EEKU6COG.js";
219
+ import "./chunk-KECCLCXM.js";
220
+ import "./chunk-EDSU3VUG.js";
221
+ import "./chunk-6S7YYUUH.js";
220
222
  import "./chunk-57OAHC2Y.js";
221
- import "./chunk-UXDVUFKU.js";
222
- import "./chunk-UHUT4IDM.js";
223
- import "./chunk-3BTHHXXE.js";
223
+ import "./chunk-JFAGT5YG.js";
224
+ import "./chunk-7IDZFJAV.js";
225
+ import "./chunk-AUTUFD5X.js";
224
226
  import "./chunk-V6WHFGST.js";
225
227
  import {
226
228
  createLoadedSettingsAdapter
227
- } from "./chunk-FW4E4QPG.js";
228
- import "./chunk-45ROPFQY.js";
229
+ } from "./chunk-DVOCOIS5.js";
230
+ import "./chunk-JYGIJA4W.js";
229
231
  import "./chunk-N6VQ37ZZ.js";
230
232
  import {
231
233
  ACTIVE_WORK_CLOSE_IF_UNHELD_PARAM,
@@ -273,7 +275,7 @@ import {
273
275
  import "./chunk-6PLDPT2C.js";
274
276
  import "./chunk-FYJ7W2PI.js";
275
277
  import "./chunk-STUJ7IMZ.js";
276
- import "./chunk-GM44O6F7.js";
278
+ import "./chunk-DARWOZY6.js";
277
279
  import "./chunk-GYTKQYDB.js";
278
280
  import "./chunk-ALMR3E6Q.js";
279
281
  import "./chunk-RKFGE7JH.js";
@@ -288,21 +290,21 @@ import {
288
290
  SHELL_EXECUTING_TOOL_NAMES,
289
291
  isValidExternalToolGuardDenialReason
290
292
  } from "./chunk-3VUENPWF.js";
293
+ import "./chunk-TGNNLRC3.js";
291
294
  import {
292
295
  ACP_EVENT_LOOP_STALL_RESTART_MS,
293
296
  CHANNEL_PROMPT_META_KEY
294
- } from "./chunk-XVTCSVBK.js";
297
+ } from "./chunk-WDVV3LRM.js";
295
298
  import {
296
299
  AgentSideConnection,
297
300
  PROTOCOL_VERSION,
298
301
  RequestError
299
302
  } from "./chunk-IW6RQPQB.js";
300
- import "./chunk-5HBA2Z7V.js";
301
- import "./chunk-X35VIWWJ.js";
303
+ import "./chunk-NFXXBWSE.js";
302
304
  import {
303
305
  assembleMcpServers,
304
306
  loadMcpApprovals
305
- } from "./chunk-TGC4264Q.js";
307
+ } from "./chunk-OVTPETDL.js";
306
308
  import {
307
309
  deleteNestedPropertySafe,
308
310
  getOutputLanguageFilePath,
@@ -314,8 +316,8 @@ import {
314
316
  settingExistsInScope,
315
317
  updateOutputLanguageFile,
316
318
  writeOutputLanguageAndRegisterPath
317
- } from "./chunk-66JBCTJF.js";
318
- import "./chunk-2ZFO5JD7.js";
319
+ } from "./chunk-Y7YHAY32.js";
320
+ import "./chunk-LOVGQ3HZ.js";
319
321
  import "./chunk-RKUWKYED.js";
320
322
  import "./chunk-BW4333PP.js";
321
323
  import {
@@ -333,51 +335,49 @@ import {
333
335
  findEnvFiles,
334
336
  preResolveHomeEnvOverrides,
335
337
  reloadEnvironment
336
- } from "./chunk-5CVY5Q2P.js";
338
+ } from "./chunk-43EUMPKQ.js";
337
339
  import {
338
340
  ENV_ACP_REPEATED_TOOL_FAILURE_GUARD,
339
341
  QWEN_CODE_SERVE_ENV
340
342
  } from "./chunk-QTNCGZHQ.js";
341
343
  import "./chunk-2EAZ43JQ.js";
342
344
  import "./chunk-NF5J2WFA.js";
343
- import "./chunk-27LTEY6D.js";
345
+ import "./chunk-ATBLEXXV.js";
344
346
  import "./chunk-W3N5XAZ6.js";
345
347
  import {
346
348
  isWorkspaceTrusted,
347
349
  loadTrustedFolders
348
- } from "./chunk-3VDLQUR2.js";
350
+ } from "./chunk-D6AGS266.js";
349
351
  import "./chunk-NPQ5ZKRP.js";
350
352
  import "./chunk-MR3PXB6E.js";
351
353
  import {
352
- ALL_PROVIDERS,
353
354
  BTW_MAX_INPUT_LENGTH,
355
+ DroppedNotificationTally,
354
356
  IMAGE_CAPABILITY,
355
357
  LoopTickResolver,
358
+ MAX_BACKGROUND_NOTIFICATION_QUEUE,
356
359
  McpTransportPool,
357
360
  TURN_INTERRUPTION_HISTORY_TAIL_COUNT,
358
361
  WorkspaceMcpBudget,
362
+ abortGoalForStopHookCap,
359
363
  applyProviderInstallPlan,
360
364
  buildBtwCacheSafeParams,
361
365
  buildBtwPrompt,
362
366
  buildGoalContinuationParts,
363
- buildInstallPlan,
364
367
  buildSessionRecoveryPlanFromApiHistory,
365
368
  countApiUserPrompts,
369
+ decideNotificationAdmission,
366
370
  detectAutonomousSentinel,
367
371
  detectLoopSentinel,
368
372
  findApiRewindCutPoint,
369
- findExistingProviderModels,
370
- findProviderById,
371
373
  generatePromptSuggestion,
372
374
  generateSessionRecap,
373
- getDefaultBaseUrlForProtocol,
374
- getDefaultModelIds,
375
+ getStopHookContinuationReason,
375
376
  projectGoalStateToLegacy,
376
377
  readManyFiles,
377
- resolveBaseUrl,
378
378
  runManagedRememberByAgent,
379
379
  subagentGenerator
380
- } from "./chunk-ZU2T5JIS.js";
380
+ } from "./chunk-ZEFWBG2C.js";
381
381
  import {
382
382
  buildToolWriteOriginMeta
383
383
  } from "./chunk-GELRJXE2.js";
@@ -390,7 +390,7 @@ import {
390
390
  listWorkflowSnapshots,
391
391
  resolveSavedWorkflowScript,
392
392
  toSnapshot
393
- } from "./chunk-WJDXKQIO.js";
393
+ } from "./chunk-3A2IMUDH.js";
394
394
  import "./chunk-XFSFZCM5.js";
395
395
  import {
396
396
  CreateSubSessionTool
@@ -399,19 +399,28 @@ import "./chunk-LJZSMWOH.js";
399
399
  import {
400
400
  restoreWorktreeContext
401
401
  } from "./chunk-YZTGGCEE.js";
402
- import "./chunk-6SADVYQQ.js";
402
+ import {
403
+ ALL_PROVIDERS,
404
+ buildInstallPlan,
405
+ findExistingProviderModels,
406
+ findProviderById,
407
+ getDefaultBaseUrlForProtocol,
408
+ getDefaultModelIds,
409
+ resolveBaseUrl
410
+ } from "./chunk-PLEBBGHL.js";
411
+ import "./chunk-JGTMTJSQ.js";
403
412
  import "./chunk-DJXSOEFB.js";
404
- import "./chunk-25CBAK3H.js";
413
+ import "./chunk-LKBOBUA2.js";
405
414
  import "./chunk-J3VZF2AL.js";
406
415
  import "./chunk-OWCFKIFQ.js";
407
416
  import "./chunk-ZPJWUGCS.js";
408
- import "./chunk-5Z4FCEPY.js";
417
+ import "./chunk-7K4GGN3D.js";
409
418
  import "./chunk-BUQN5LTI.js";
410
419
  import {
411
420
  clearCachedCredentialFile,
412
421
  qwenOAuth2Events
413
422
  } from "./chunk-XDNFODER.js";
414
- import "./chunk-YAC7H4K3.js";
423
+ import "./chunk-SM66GFKJ.js";
415
424
  import "./chunk-VNOVK4I7.js";
416
425
  import {
417
426
  APPROVAL_MODE_INFO,
@@ -454,7 +463,6 @@ import {
454
463
  SessionWriterUnavailableError,
455
464
  TURN_RESULT_CODE_TEXT_TRUNCATED,
456
465
  TURN_RESULT_TEXT_MAX_CHARS,
457
- abortGoalForStopHookCap,
458
466
  acquireSleepInhibitor,
459
467
  ambientGoalToolResultProvenance,
460
468
  applyAutoModeDecision,
@@ -491,7 +499,6 @@ import {
491
499
  formatDenialStateLog,
492
500
  formatStopHookBlockingCapWarning,
493
501
  generateToolUseId,
494
- getActiveGoal,
495
502
  getAutoModeActionFingerprint,
496
503
  getAutoModePermissionDeniedReason,
497
504
  getEffectivePermissionForConfirmation,
@@ -500,7 +507,6 @@ import {
500
507
  getOptInToolNotFoundMessage,
501
508
  getProviderToolCallId,
502
509
  getScopedEnvContents,
503
- getStopHookContinuationReason,
504
510
  getSubagentSessionDir,
505
511
  getToolCallRepeatKey,
506
512
  getWorkflowTaskMutationKey,
@@ -551,7 +557,7 @@ import {
551
557
  updateSetting,
552
558
  validatePlanModeShellApproval,
553
559
  validatePlanModeShellContext
554
- } from "./chunk-PDUMGZ2P.js";
560
+ } from "./chunk-BDAVT6K2.js";
555
561
  import "./chunk-GOFAQQZA.js";
556
562
  import "./chunk-65I7S4Z3.js";
557
563
  import "./chunk-6HUXPLB5.js";
@@ -559,9 +565,9 @@ import "./chunk-TWPJO254.js";
559
565
  import {
560
566
  external_exports
561
567
  } from "./chunk-CQ35AJ4Z.js";
562
- import "./chunk-YHDGABDC.js";
568
+ import "./chunk-XKBFYTCD.js";
563
569
  import "./chunk-LYT2OU7D.js";
564
- import "./chunk-B54PFQS5.js";
570
+ import "./chunk-7CLLH5TI.js";
565
571
  import "./chunk-HIXUUCGY.js";
566
572
  import {
567
573
  parsePositiveIntegerEnv
@@ -574,7 +580,7 @@ import {
574
580
  normalizeEventPayload,
575
581
  normalizeSnapshotPayload,
576
582
  wrapUserPromptSubmitContext
577
- } from "./chunk-FDOGGKAA.js";
583
+ } from "./chunk-GSFV5RQW.js";
578
584
  import "./chunk-IRH27ZC2.js";
579
585
  import "./chunk-QHWCP53L.js";
580
586
  import "./chunk-F53KKZUD.js";
@@ -589,8 +595,8 @@ import {
589
595
  escapeJsonTagCharacters
590
596
  } from "./chunk-CHEIIBT3.js";
591
597
  import "./chunk-QAZ2MGYT.js";
592
- import "./chunk-B44JBZBB.js";
593
- import "./chunk-BF3RUIVP.js";
598
+ import "./chunk-F4SAL7WM.js";
599
+ import "./chunk-CH2YDT6X.js";
594
600
  import {
595
601
  APPROVAL_MODES
596
602
  } from "./chunk-JX6XHPTX.js";
@@ -610,10 +616,10 @@ import {
610
616
  getOutputStyleTurnReminder,
611
617
  getPlanModeSystemReminder,
612
618
  resolveMainSessionOutputStyle
613
- } from "./chunk-3LPJ776W.js";
619
+ } from "./chunk-2HYOOFDS.js";
614
620
  import "./chunk-3CZ2BQV6.js";
615
621
  import "./chunk-PQEISIKS.js";
616
- import "./chunk-VF6D6EGV.js";
622
+ import "./chunk-HSO6D4KX.js";
617
623
  import {
618
624
  runWithRuntimeContentGenerator
619
625
  } from "./chunk-H3Q3RSKZ.js";
@@ -625,9 +631,7 @@ import "./chunk-QHMLYMMS.js";
625
631
  import {
626
632
  getToolCallPreparations
627
633
  } from "./chunk-CFKIH3D3.js";
628
- import {
629
- REASONING_EFFORT_TIERS
630
- } from "./chunk-6YEOCHSE.js";
634
+ import "./chunk-AXMWHKXA.js";
631
635
  import "./chunk-DJ2GSRLV.js";
632
636
  import "./chunk-4ALNJDHL.js";
633
637
  import "./chunk-NOO4QFXM.js";
@@ -662,7 +666,7 @@ import {
662
666
  shouldRunVisionBridge,
663
667
  splitImageParts,
664
668
  uiTelemetryService
665
- } from "./chunk-6QV7Z74P.js";
669
+ } from "./chunk-FRS3P7MQ.js";
666
670
  import {
667
671
  INVOCATION_CONTEXT_META_KEY,
668
672
  PRIVATE_ACP_CAPABILITY_ENV,
@@ -671,7 +675,7 @@ import {
671
675
  parseInvocationContext,
672
676
  runWithInvocationContext
673
677
  } from "./chunk-5ETULJLP.js";
674
- import "./chunk-XBVNNDPK.js";
678
+ import "./chunk-GSYD7MYP.js";
675
679
  import "./chunk-VGC4I5JJ.js";
676
680
  import {
677
681
  getAllMemoryFilenames,
@@ -685,13 +689,16 @@ import "./chunk-HD7O6WLV.js";
685
689
  import "./chunk-WZAD4ZNJ.js";
686
690
  import {
687
691
  DEFAULT_TOKEN_LIMIT,
692
+ REASONING_EFFORT_TIERS,
693
+ getGptReasoningCapabilities,
694
+ parseModelReasoningCapabilities,
688
695
  tokenLimit
689
- } from "./chunk-FPGTNKCP.js";
696
+ } from "./chunk-F3M6P6IQ.js";
690
697
  import "./chunk-TIGXX4PA.js";
691
698
  import {
692
699
  hasVertexProjectConfigured,
693
700
  preloadContentGenerator
694
- } from "./chunk-N7YQEKGX.js";
701
+ } from "./chunk-EOLGAQ25.js";
695
702
  import "./chunk-XFFRI3WM.js";
696
703
  import {
697
704
  AuthType
@@ -737,11 +744,11 @@ import {
737
744
  isSubpath,
738
745
  sessionIdContext
739
746
  } from "./chunk-ZAFYHRVY.js";
740
- import "./chunk-OPMKGOLD.js";
747
+ import "./chunk-6VIATHL7.js";
741
748
  import "./chunk-HRPFBHW7.js";
742
749
  import {
743
750
  runExitCleanup
744
- } from "./chunk-USN6VNTO.js";
751
+ } from "./chunk-C24ZDDNY.js";
745
752
  import {
746
753
  writeStderrLine,
747
754
  writeStderrLineSafe
@@ -1784,7 +1791,6 @@ var MessageEmitter = class extends BaseEmitter {
1784
1791
  * @param stopHookCount - Number of Stop hooks that were executed
1785
1792
  */
1786
1793
  async emitStopHookLoop(iterationCount, reasons, stopHookCount) {
1787
- const activeGoal = getActiveGoal(this.sessionId);
1788
1794
  await this.sendUpdate({
1789
1795
  sessionUpdate: "agent_message_chunk",
1790
1796
  content: { type: "text", text: "" },
@@ -1792,15 +1798,7 @@ var MessageEmitter = class extends BaseEmitter {
1792
1798
  stopHookLoop: {
1793
1799
  iterationCount,
1794
1800
  reasons,
1795
- stopHookCount,
1796
- ...activeGoal ? {
1797
- goal: {
1798
- condition: activeGoal.condition,
1799
- iterations: activeGoal.iterations,
1800
- setAt: activeGoal.setAt,
1801
- lastReason: activeGoal.lastReason
1802
- }
1803
- } : {}
1801
+ stopHookCount
1804
1802
  }
1805
1803
  }
1806
1804
  });
@@ -3834,6 +3832,15 @@ var TodoStopGuardClaimTimeoutError = class extends Error {
3834
3832
  );
3835
3833
  }
3836
3834
  };
3835
+ function toAdmissibleNotification(item) {
3836
+ return {
3837
+ kind: item.kind,
3838
+ taskId: item.taskId,
3839
+ interim: item.kind === "monitor" && item.status === "running",
3840
+ persisted: item.persisted
3841
+ };
3842
+ }
3843
+ __name(toAdmissibleNotification, "toAdmissibleNotification");
3837
3844
  function beginChannelDeliveryResponseBlock(capture) {
3838
3845
  capture?.agentOutput.beginResponse();
3839
3846
  if (capture?.channelDelivery) capture.channelDelivery.finalText = "";
@@ -3895,7 +3902,6 @@ function parsePromptChannelDelivery(params) {
3895
3902
  };
3896
3903
  }
3897
3904
  __name(parsePromptChannelDelivery, "parsePromptChannelDelivery");
3898
- var MAX_NOTIFICATION_QUEUE = 20;
3899
3905
  var MAX_DEFERRED_UNRELATED_CRON_QUEUE = 20;
3900
3906
  function resolveExistingFile(resolved, resolveRealPath2 = realpathSync2, statFile = statSync2) {
3901
3907
  try {
@@ -4230,6 +4236,12 @@ var Session = class {
4230
4236
  // Background notification drain state. ACP does not have the TUI's idle
4231
4237
  // hook, so the session serializes registry callbacks through this queue.
4232
4238
  notificationQueue = [];
4239
+ /**
4240
+ * Notifications lost to queue overflow since the last drain. Reported as one
4241
+ * summary on the next notification turn rather than per loss, so an overflow
4242
+ * burst cannot itself flood the session.
4243
+ */
4244
+ droppedNotifications = new DroppedNotificationTally();
4233
4245
  notificationProcessing = false;
4234
4246
  notificationAbortController = null;
4235
4247
  notificationCompletion = null;
@@ -4358,19 +4370,17 @@ var Session = class {
4358
4370
  const host = {
4359
4371
  startGoalTurn: /* @__PURE__ */ __name(async (input) => {
4360
4372
  if (this.goalQueue.some(
4361
- ({ permit }) => permit.turnId === input.permit.turnId
4373
+ ({ permit: permit2 }) => permit2.turnId === input.permit.turnId
4362
4374
  ) || this.activeGoalTurn?.permit.turnId === input.permit.turnId) {
4363
4375
  return;
4364
4376
  }
4377
+ const { permit, ...continuation } = input;
4365
4378
  this.goalQueue.push({
4366
- permit: { ...input.permit },
4367
- turnKey: `goal-runtime:${input.permit.turnId}`,
4379
+ permit: { ...permit },
4380
+ turnKey: `goal-runtime:${permit.turnId}`,
4368
4381
  controller: new AbortController(),
4369
4382
  origin: "runtime",
4370
- continuationContext: input.continuationContext,
4371
- ...input.objectiveUpdated ? { objectiveUpdated: input.objectiveUpdated } : {},
4372
- ...input.windDown ? { windDown: true } : {},
4373
- ...input.verifierFeedback ? { verifierFeedback: input.verifierFeedback } : {},
4383
+ ...continuation,
4374
4384
  modelStarted: false
4375
4385
  });
4376
4386
  void this.#drainGoalQueue();
@@ -5806,6 +5816,7 @@ var Session = class {
5806
5816
  this.closeGateCompletion = null;
5807
5817
  this.hardSuspendTodoStopGuard();
5808
5818
  this.notificationQueue = [];
5819
+ this.droppedNotifications.clear();
5809
5820
  this.cronQueue = [];
5810
5821
  for (const turn of this.goalQueue.splice(0)) {
5811
5822
  turn.controller.abort(SESSION_DISPOSE_ABORT_REASON);
@@ -6018,6 +6029,7 @@ var Session = class {
6018
6029
  this.notificationAbortController = null;
6019
6030
  }
6020
6031
  this.notificationQueue = [];
6032
+ this.droppedNotifications.clear();
6021
6033
  this.notificationProcessing = false;
6022
6034
  const queuedGoalTurn = queuedGoalTurns[0];
6023
6035
  if (queuedGoalTurn) {
@@ -6188,6 +6200,7 @@ var Session = class {
6188
6200
  this.notificationAbortController.abort();
6189
6201
  this.notificationAbortController = null;
6190
6202
  this.notificationQueue = [];
6203
+ this.droppedNotifications.clear();
6191
6204
  this.notificationProcessing = false;
6192
6205
  }
6193
6206
  if (this.notificationCompletion) {
@@ -6528,6 +6541,7 @@ var Session = class {
6528
6541
  }
6529
6542
  this.turn += 1;
6530
6543
  const promptId = this.config.getSessionId() + "########" + this.turn;
6544
+ const daemonPromptId = getInvocationContext()?.promptId;
6531
6545
  const promptMetadata = params._meta;
6532
6546
  const continuesCurrentWorkChain = params.retry === true || promptMetadata?.[DAEMON_RETRY_META_KEY] === true || promptMetadata?.[DAEMON_CONTINUE_META_KEY] === true || promptMetadata?.[DAEMON_RESTORE_ASK_USER_QUESTION_META_KEY] === true;
6533
6547
  promptIdContext.enterWith(promptId);
@@ -6621,17 +6635,16 @@ var Session = class {
6621
6635
  promptMetadata?.[DAEMON_ATTACHMENT_REFERENCES_META_KEY]
6622
6636
  );
6623
6637
  const recorder = this.config.getChatRecordingService();
6624
- if (promptDisplayText !== void 0 || attachmentReferences) {
6625
- recorder?.recordUserMessage(promptText, goalTurn?.permit, {
6638
+ recorder?.recordUserMessage(
6639
+ promptText,
6640
+ goalTurn?.permit,
6641
+ promptDisplayText !== void 0 || attachmentReferences ? {
6626
6642
  displayText: promptDisplayText ?? promptText,
6627
6643
  hookContext: "",
6628
6644
  ...attachmentReferences ? { attachmentReferences } : {}
6629
- });
6630
- } else if (goalTurn) {
6631
- recorder?.recordUserMessage(promptText, goalTurn.permit);
6632
- } else {
6633
- recorder?.recordUserMessage(promptText);
6634
- }
6645
+ } : void 0,
6646
+ daemonPromptId
6647
+ );
6635
6648
  }
6636
6649
  if (!isSlashInput && !isContinue && !isRestoreAskUserQuestion && !isRetry) {
6637
6650
  this.refreshContextFilesOnWrite = false;
@@ -6681,16 +6694,12 @@ var Session = class {
6681
6694
  const shouldRecordSlashCommand = !(resolvedCommandInfo?.kind === "built-in" /* BUILT_IN */ && resolvedCommandInfo.name === "advisor");
6682
6695
  if (slashCommandName === "advisor" && shouldRecordSlashCommand && goalTurn?.origin !== "runtime" && !isRetry) {
6683
6696
  const recorder = this.config.getChatRecordingService();
6684
- if (promptDisplayText !== void 0) {
6685
- recorder?.recordUserMessage(promptText, goalTurn?.permit, {
6686
- displayText: promptDisplayText,
6687
- hookContext: ""
6688
- });
6689
- } else if (goalTurn) {
6690
- recorder?.recordUserMessage(promptText, goalTurn.permit);
6691
- } else {
6692
- recorder?.recordUserMessage(promptText);
6693
- }
6697
+ recorder?.recordUserMessage(
6698
+ promptText,
6699
+ goalTurn?.permit,
6700
+ promptDisplayText !== void 0 ? { displayText: promptDisplayText, hookContext: "" } : void 0,
6701
+ daemonPromptId
6702
+ );
6694
6703
  }
6695
6704
  try {
6696
6705
  parts = await this.#processSlashCommandResult(
@@ -9689,30 +9698,34 @@ ${this.pendingRecoveredAgentsNotice}
9689
9698
  }
9690
9699
  }
9691
9700
  #enqueueBackgroundNotification(item) {
9692
- while (this.notificationQueue.length >= MAX_NOTIFICATION_QUEUE) {
9693
- let evictedIndex = 0;
9694
- if (this.todoStopGuard.blocksUnrelatedAutomaticTurns || this.todoStopGuardQueuedPromptPriority) {
9701
+ while (this.notificationQueue.length >= MAX_BACKGROUND_NOTIFICATION_QUEUE) {
9702
+ const guardDefersUnrelatedWork = this.todoStopGuard.blocksUnrelatedAutomaticTurns || this.todoStopGuardQueuedPromptPriority;
9703
+ const admission = decideNotificationAdmission(
9704
+ this.notificationQueue.map(toAdmissibleNotification),
9705
+ toAdmissibleNotification(item),
9706
+ {
9707
+ max: MAX_BACKGROUND_NOTIFICATION_QUEUE,
9708
+ isProtected: /* @__PURE__ */ __name((_projected, index) => guardDefersUnrelatedWork && this.#notificationContinuesTodoStopGuardWorkChain(
9709
+ this.notificationQueue[index]
9710
+ ), "isProtected")
9711
+ }
9712
+ );
9713
+ if (admission.action === "drop") {
9695
9714
  const incomingIsRelated = this.#notificationContinuesTodoStopGuardWorkChain(item);
9696
- evictedIndex = this.notificationQueue.findIndex(
9697
- (queued) => !this.#notificationContinuesTodoStopGuardWorkChain(queued)
9715
+ debugLogger6.warn(
9716
+ incomingIsRelated ? `Notification queue overflow: dropping related task=${item.taskId} kind=${item.kind} because all queued items are related` : `Notification queue overflow: dropping unrelated task=${item.taskId} kind=${item.kind} while automatic work is deferred`
9698
9717
  );
9699
- if (evictedIndex < 0 && !incomingIsRelated) {
9700
- debugLogger6.warn(
9701
- `Notification queue overflow: dropping unrelated task=${item.taskId} kind=${item.kind} while automatic work is deferred`
9702
- );
9703
- return;
9704
- }
9705
- if (evictedIndex < 0) {
9706
- debugLogger6.warn(
9707
- `Notification queue overflow: dropping related task=${item.taskId} kind=${item.kind} because all queued items are related`
9708
- );
9709
- return;
9710
- }
9718
+ this.droppedNotifications.record(toAdmissibleNotification(item));
9719
+ return;
9711
9720
  }
9712
- const [evicted] = this.notificationQueue.splice(evictedIndex, 1);
9721
+ if (admission.action === "push") break;
9722
+ const [evicted] = this.notificationQueue.splice(admission.index, 1);
9713
9723
  debugLogger6.warn(
9714
9724
  `Notification queue overflow: evicting task=${evicted?.taskId ?? "unknown"} kind=${evicted?.kind ?? "unknown"}`
9715
9725
  );
9726
+ if (evicted) {
9727
+ this.droppedNotifications.record(toAdmissibleNotification(evicted));
9728
+ }
9716
9729
  }
9717
9730
  this.notificationQueue.push(item);
9718
9731
  this.#activeWorkChanged();
@@ -9905,16 +9918,39 @@ ${this.pendingRecoveredAgentsNotice}
9905
9918
  promptId,
9906
9919
  item.todoWorkChainId
9907
9920
  );
9921
+ const droppedSummary = this.droppedNotifications.take();
9922
+ if (droppedSummary) {
9923
+ await this.#emitDroppedNotificationSummary(droppedSummary);
9924
+ }
9908
9925
  await this.#emitBackgroundNotificationDisplay(item);
9909
9926
  const notificationParts = [{ text: item.modelText }];
9927
+ if (droppedSummary) {
9928
+ notificationParts.unshift({ text: droppedSummary.modelText });
9929
+ }
9910
9930
  if (!item.persisted) {
9911
- this.config.getChatRecordingService()?.recordNotification(notificationParts, item.displayText, {
9912
- taskId: item.taskId,
9913
- status: item.status,
9914
- kind: item.kind,
9915
- toolUseId: item.toolUseId,
9916
- ...item.structured
9917
- });
9931
+ const recording = this.config.getChatRecordingService();
9932
+ if (droppedSummary) {
9933
+ recording?.recordNotification(
9934
+ [{ text: droppedSummary.modelText }],
9935
+ droppedSummary.displayText
9936
+ );
9937
+ }
9938
+ recording?.recordNotification(
9939
+ [{ text: item.modelText }],
9940
+ item.displayText,
9941
+ {
9942
+ taskId: item.taskId,
9943
+ status: item.status,
9944
+ kind: item.kind,
9945
+ toolUseId: item.toolUseId,
9946
+ ...item.structured
9947
+ }
9948
+ );
9949
+ } else if (droppedSummary) {
9950
+ this.config.getChatRecordingService()?.recordNotification(
9951
+ [{ text: droppedSummary.modelText }],
9952
+ droppedSummary.displayText
9953
+ );
9918
9954
  }
9919
9955
  const notificationReminders = await this.#buildInitialSystemReminders();
9920
9956
  const activeTodoReminder = this.config.takeActiveTodoReminder(
@@ -10131,6 +10167,17 @@ ${this.pendingRecoveredAgentsNotice}
10131
10167
  }
10132
10168
  );
10133
10169
  }
10170
+ async #emitDroppedNotificationSummary(summary) {
10171
+ await this.sendUpdate({
10172
+ sessionUpdate: "agent_message_chunk",
10173
+ content: { type: "text", text: summary.displayText },
10174
+ _meta: {
10175
+ source: "background_notification",
10176
+ qwenDiscreteMessage: true,
10177
+ backgroundTask: { kind: "queue", status: summary.status }
10178
+ }
10179
+ });
10180
+ }
10134
10181
  async #emitBackgroundNotificationDisplay(item) {
10135
10182
  await this.sendUpdate({
10136
10183
  sessionUpdate: "agent_message_chunk",
@@ -10343,7 +10390,10 @@ ${this.pendingRecoveredAgentsNotice}
10343
10390
  void this.client.extNotification("qwen/notify/session/mode-update", {
10344
10391
  v: 1,
10345
10392
  sessionId: this.sessionId,
10346
- currentModeId: params.modeId
10393
+ currentModeId: params.modeId,
10394
+ ...approvalMode === "plan" /* PLAN */ ? {
10395
+ planExecutionMode: this.config.getPlanExecutionMode?.() ?? this.config.getPrePlanMode?.()
10396
+ } : {}
10347
10397
  }).catch((error) => {
10348
10398
  debugLogger6.debug("mode-update extNotification failed", error);
10349
10399
  });
@@ -10445,14 +10495,7 @@ ${this.pendingRecoveredAgentsNotice}
10445
10495
  };
10446
10496
  }
10447
10497
  getDefaultReasoningConfig() {
10448
- const authType = this.config.getAuthType?.();
10449
- const model = authType && !this.config.getActiveRuntimeModelSnapshot?.() ? this.config.getResolvedModelConfig?.(
10450
- authType,
10451
- this.config.getModel(),
10452
- this.config.getCurrentModelRegistryBaseUrl?.() ?? void 0
10453
- ) : void 0;
10454
- if (model) return model.generationConfig.reasoning;
10455
- return this.settings.merged.model?.generationConfig?.reasoning;
10498
+ return getDefaultReasoningConfig(this.config, this.settings);
10456
10499
  }
10457
10500
  reloadReasoningSelection() {
10458
10501
  this.settings.reloadScopeFromDisk("User" /* User */);
@@ -10513,25 +10556,24 @@ ${this.pendingRecoveredAgentsNotice}
10513
10556
  const generation = this.config.getContentGeneratorConfig?.();
10514
10557
  const thinkingMandatory = generation?.thinkingMandatory === true;
10515
10558
  const modelReasoning = getConfiguredModelReasoning(this.config, modelId);
10516
- let supported = selection !== void 0 && selection !== REASONING_EFFORT_DEFAULT && isReasoningSelectionSupported(
10559
+ const gptCapabilities = getGptReasoningCapabilities(modelId);
10560
+ const configuredReasoning = parseModelReasoningCapabilities(modelReasoning);
10561
+ const gptModel = gptCapabilities !== void 0 && !configuredReasoning;
10562
+ const supportsPreference = /* @__PURE__ */ __name((value) => value !== void 0 && value !== REASONING_EFFORT_DEFAULT && (gptModel && value !== REASONING_EFFORT_NONE || isReasoningSelectionSupported(
10517
10563
  modelId,
10518
- selection,
10564
+ value,
10519
10565
  thinkingMandatory,
10520
10566
  modelReasoning
10521
- );
10567
+ )), "supportsPreference");
10568
+ let supported = supportsPreference(selection);
10522
10569
  const appliesSessionDefault = hasSessionSelection && selection === REASONING_EFFORT_DEFAULT;
10523
10570
  if (hasSessionSelection && !supported && !appliesSessionDefault) {
10524
10571
  this.sessionReasoningSelection = void 0;
10525
10572
  hasSessionSelection = false;
10526
10573
  selection = parseReasoningSelection(rawSelection);
10527
- supported = selection !== void 0 && selection !== REASONING_EFFORT_DEFAULT && isReasoningSelectionSupported(
10528
- modelId,
10529
- selection,
10530
- thinkingMandatory,
10531
- modelReasoning
10532
- );
10574
+ supported = supportsPreference(selection);
10533
10575
  }
10534
- if (!hasSessionSelection && rawSelection !== void 0 && !supported && options.persist) {
10576
+ if (!hasSessionSelection && rawSelection !== void 0 && !supported && !(selection === REASONING_EFFORT_NONE && gptCapabilities !== void 0 && configuredReasoning?.canDisable !== false) && options.persist) {
10535
10577
  try {
10536
10578
  this.persistReasoningSelection(REASONING_EFFORT_DEFAULT);
10537
10579
  } catch (error) {
@@ -10585,6 +10627,9 @@ ${this.pendingRecoveredAgentsNotice}
10585
10627
  v: 1,
10586
10628
  sessionId: this.sessionId,
10587
10629
  currentModeId: newModeId,
10630
+ ...newModeId === "plan" /* PLAN */ ? {
10631
+ planExecutionMode: this.config.getPlanExecutionMode?.() ?? this.config.getPrePlanMode?.()
10632
+ } : {},
10588
10633
  legacyFrameSent
10589
10634
  });
10590
10635
  } catch (error) {
@@ -12098,7 +12143,10 @@ ${this.pendingRecoveredAgentsNotice}
12098
12143
  );
12099
12144
  }
12100
12145
  let confirmationPayload = {
12101
- answers: output.answers
12146
+ answers: output.answers,
12147
+ ...output.expectedPlanExecutionMode !== void 0 ? {
12148
+ expectedPlanExecutionMode: output.expectedPlanExecutionMode
12149
+ } : {}
12102
12150
  };
12103
12151
  if (planShellDecision.classification !== "not-applicable") {
12104
12152
  const approval = await validatePlanModeShellApproval({
@@ -12207,7 +12255,7 @@ ${this.pendingRecoveredAgentsNotice}
12207
12255
  }
12208
12256
  }
12209
12257
  }
12210
- if (!didRequestPermission && !isTodoWriteTool) {
12258
+ if ((!didRequestPermission || isAgentTool) && !isTodoWriteTool) {
12211
12259
  const startParams = {
12212
12260
  callId,
12213
12261
  toolName,
@@ -12349,10 +12397,22 @@ ${this.pendingRecoveredAgentsNotice}
12349
12397
  let toolSettled = false;
12350
12398
  let heartbeatCount = 0;
12351
12399
  let lastHeartbeat;
12400
+ let subagentSessionReadySent = false;
12352
12401
  const onToolProgress = /* @__PURE__ */ __name((chunk) => {
12353
- if (toolSettled || !isShellProgressData(chunk)) {
12354
- return;
12402
+ if (toolSettled) return;
12403
+ if (isAgentTool && !subagentSessionReadySent && typeof chunk === "object" && chunk !== null && "subagentSessionReady" in chunk && chunk.subagentSessionReady === true) {
12404
+ subagentSessionReadySent = true;
12405
+ void this.sendUpdate({
12406
+ sessionUpdate: "tool_call_update",
12407
+ toolCallId: callId,
12408
+ _meta: { toolName, subagentSessionReady: true }
12409
+ }).catch((err) => {
12410
+ debugLogger6.debug(
12411
+ `[Session.runTool] subagent readiness update failed for ${callId}: ${err}`
12412
+ );
12413
+ });
12355
12414
  }
12415
+ if (!isShellProgressData(chunk)) return;
12356
12416
  heartbeatCount++;
12357
12417
  lastHeartbeat = chunk;
12358
12418
  void this.sendUpdate({
@@ -14565,6 +14625,7 @@ function serializeWorkflowTask(entry, now) {
14565
14625
  })),
14566
14626
  agentsDispatched: entry.agentsDispatched,
14567
14627
  agentsCompleted: entry.agentsCompleted,
14628
+ agentsRespawned: entry.agentsRespawned ?? 0,
14568
14629
  tokensSpent: entry.tokensSpent,
14569
14630
  tokenBudgetTotal: entry.tokenBudgetTotal,
14570
14631
  recentLogs: [...entry.recentLogs],
@@ -14605,6 +14666,7 @@ function serializeWorkflowSnapshot(snapshot) {
14605
14666
  })),
14606
14667
  agentsDispatched: snapshot.agentsDispatched,
14607
14668
  agentsCompleted: snapshot.agentsCompleted,
14669
+ agentsRespawned: snapshot.agentsRespawned ?? 0,
14608
14670
  tokensSpent: snapshot.tokensSpent,
14609
14671
  tokenBudgetTotal: snapshot.tokenBudgetTotal,
14610
14672
  recentLogs: [...snapshot.recentLogs],
@@ -17853,7 +17915,7 @@ var QwenAgent = class _QwenAgent {
17853
17915
  }
17854
17916
  this.clientCapabilities = args.clientCapabilities;
17855
17917
  const authMethods = buildAuthMethods();
17856
- const version = "0.23.1";
17918
+ const version = "0.23.2-nightly.20260909.2e212144d3";
17857
17919
  const response = {
17858
17920
  protocolVersion: PROTOCOL_VERSION,
17859
17921
  agentInfo: {
@@ -18105,7 +18167,10 @@ var QwenAgent = class _QwenAgent {
18105
18167
  sessionId: session.getId(),
18106
18168
  models: this.buildAvailableModels(config),
18107
18169
  modes: this.buildModesData(config),
18108
- configOptions: this.buildConfigOptions(config)
18170
+ configOptions: this.buildConfigOptions(
18171
+ config,
18172
+ session.getDefaultReasoningConfig()
18173
+ )
18109
18174
  }));
18110
18175
  },
18111
18176
  parentContext ? { parentContext } : {}
@@ -18168,7 +18233,10 @@ var QwenAgent = class _QwenAgent {
18168
18233
  () => ({
18169
18234
  modes: this.buildModesData(config),
18170
18235
  models: this.buildAvailableModels(config),
18171
- configOptions: this.buildConfigOptions(config),
18236
+ configOptions: this.buildConfigOptions(
18237
+ config,
18238
+ liveSession.getDefaultReasoningConfig()
18239
+ ),
18172
18240
  ...projection?.artifactSnapshot ? { artifactSnapshot: projection.artifactSnapshot } : {}
18173
18241
  })
18174
18242
  );
@@ -18300,7 +18368,10 @@ var QwenAgent = class _QwenAgent {
18300
18368
  const buildResponse = /* @__PURE__ */ __name(() => profiler.timeSync("response_build", () => ({
18301
18369
  modes: this.buildModesData(config),
18302
18370
  models: this.buildAvailableModels(config),
18303
- configOptions: this.buildConfigOptions(config),
18371
+ configOptions: this.buildConfigOptions(
18372
+ config,
18373
+ getDefaultReasoningConfig(config, settings)
18374
+ ),
18304
18375
  ...projection?.runtime.artifactSnapshot ? { artifactSnapshot: projection.runtime.artifactSnapshot } : {},
18305
18376
  ...replayEnvelope ? {
18306
18377
  _meta: {
@@ -18572,7 +18643,10 @@ var QwenAgent = class _QwenAgent {
18572
18643
  () => ({
18573
18644
  modes: this.buildModesData(config),
18574
18645
  models: this.buildAvailableModels(config),
18575
- configOptions: this.buildConfigOptions(config),
18646
+ configOptions: this.buildConfigOptions(
18647
+ config,
18648
+ liveSession.getDefaultReasoningConfig()
18649
+ ),
18576
18650
  ...projection?.artifactSnapshot ? { artifactSnapshot: projection.artifactSnapshot } : {}
18577
18651
  })
18578
18652
  )
@@ -18664,7 +18738,10 @@ var QwenAgent = class _QwenAgent {
18664
18738
  response = profiler.timeSync("response_build", () => ({
18665
18739
  modes: this.buildModesData(config),
18666
18740
  models: this.buildAvailableModels(config),
18667
- configOptions: this.buildConfigOptions(config),
18741
+ configOptions: this.buildConfigOptions(
18742
+ config,
18743
+ getDefaultReasoningConfig(config, settings)
18744
+ ),
18668
18745
  ...projection?.runtime.artifactSnapshot ? { artifactSnapshot: projection.runtime.artifactSnapshot } : {}
18669
18746
  }));
18670
18747
  }, "beforeSessionPublish"),
@@ -18819,7 +18896,8 @@ var QwenAgent = class _QwenAgent {
18819
18896
  case "reasoning_effort": {
18820
18897
  const config = session.getConfig();
18821
18898
  const generation = config.getContentGeneratorConfig();
18822
- const option = this.buildConfigOptions(config).find(
18899
+ const defaultReasoning = session.getDefaultReasoningConfig();
18900
+ const option = this.buildConfigOptions(config, defaultReasoning).find(
18823
18901
  (candidate) => candidate.id === "reasoning_effort"
18824
18902
  );
18825
18903
  const modelReasoning = this.getModelReasoningConfiguration(config);
@@ -18847,7 +18925,6 @@ var QwenAgent = class _QwenAgent {
18847
18925
  "Reasoning effort cannot be applied while thinking is disabled"
18848
18926
  );
18849
18927
  }
18850
- const defaultReasoning = session.getDefaultReasoningConfig();
18851
18928
  const previous = {
18852
18929
  reasoning: generation.reasoning,
18853
18930
  extra_body: generation.extra_body,
@@ -18865,12 +18942,15 @@ var QwenAgent = class _QwenAgent {
18865
18942
  selected === REASONING_EFFORT_DEFAULT ? defaultReasoning ? defaultReasoning.effort : void 0 : selected
18866
18943
  );
18867
18944
  }
18868
- const configOptions = this.buildConfigOptions(config);
18945
+ const configOptions = this.buildConfigOptions(
18946
+ config,
18947
+ defaultReasoning
18948
+ );
18869
18949
  const confirmedValue = configOptions.find(
18870
18950
  (candidate) => candidate.id === "reasoning_effort"
18871
18951
  )?.currentValue;
18872
18952
  const confirmed = selected === REASONING_EFFORT_DEFAULT ? confirmedValue !== void 0 : confirmedValue === selected;
18873
- if (!confirmed) {
18953
+ if (!confirmed || tierSelected && getGptReasoningOverrideState(generation, modelReasoning)?.blocksTierChange) {
18874
18954
  throw RequestError.invalidParams(
18875
18955
  void 0,
18876
18956
  modelReasoning ? `Reasoning selection was not applied: ${selected}` : "Reasoning effort cannot be applied while thinking is disabled"
@@ -18900,7 +18980,10 @@ var QwenAgent = class _QwenAgent {
18900
18980
  );
18901
18981
  }
18902
18982
  return {
18903
- configOptions: this.buildConfigOptions(session.getConfig())
18983
+ configOptions: this.buildConfigOptions(
18984
+ session.getConfig(),
18985
+ session.getDefaultReasoningConfig()
18986
+ )
18904
18987
  };
18905
18988
  });
18906
18989
  }
@@ -19824,6 +19907,7 @@ var QwenAgent = class _QwenAgent {
19824
19907
  buildWorkspaceProvidersStatus(config) {
19825
19908
  try {
19826
19909
  const workspaceCwd = this.workspaceCwd(config);
19910
+ const settings = loadSettingsCached(workspaceCwd);
19827
19911
  const currentAuthType = config.getAuthType?.();
19828
19912
  const activeRuntimeSnapshot = config.getActiveRuntimeModelSnapshot?.();
19829
19913
  const currentModelId = activeRuntimeSnapshot ? activeRuntimeSnapshot.id : (config.getModel() || "").trim();
@@ -19854,19 +19938,25 @@ var QwenAgent = class _QwenAgent {
19854
19938
  providers.set(authType, provider);
19855
19939
  }
19856
19940
  const isCurrent = currentAuth === model.authType && currentAcpModelId === modelId;
19941
+ const resolved = !model.isRuntimeModel && !modelId.startsWith(ACP_ROUTE_ID_PREFIX) ? config.getResolvedModelConfig?.(
19942
+ model.authType,
19943
+ model.id,
19944
+ model.registryBaseUrl ?? model.baseUrl
19945
+ ) : void 0;
19857
19946
  const configOptions = model.isRuntimeModel || modelId.startsWith(ACP_ROUTE_ID_PREFIX) ? void 0 : buildModelReasoningConfigPreview(
19858
19947
  model.id,
19859
19948
  resolvePersistedReasoningConfigState(
19860
19949
  model.id,
19861
- this.settings.merged.model?.reasoningEffort,
19862
- config.getResolvedModelConfig?.(
19863
- model.authType,
19864
- model.id,
19865
- model.registryBaseUrl ?? model.baseUrl
19866
- )?.generationConfig.thinkingMandatory === true,
19950
+ settings.merged.model?.reasoningEffort,
19951
+ resolved?.generationConfig.thinkingMandatory === true,
19867
19952
  model.capabilities?.reasoning
19868
19953
  ),
19869
- model.capabilities?.reasoning
19954
+ model.capabilities?.reasoning,
19955
+ resolved ? {
19956
+ ...resolved.generationConfig,
19957
+ model: model.id,
19958
+ baseUrl: resolved.baseUrl
19959
+ } : void 0
19870
19960
  );
19871
19961
  const providerModel = {
19872
19962
  modelId,
@@ -20266,7 +20356,10 @@ var QwenAgent = class _QwenAgent {
20266
20356
  state: {
20267
20357
  models: this.buildAvailableModels(config),
20268
20358
  modes: this.buildModesData(config),
20269
- configOptions: this.buildConfigOptions(config)
20359
+ configOptions: this.buildConfigOptions(
20360
+ config,
20361
+ session.getDefaultReasoningConfig()
20362
+ )
20270
20363
  }
20271
20364
  };
20272
20365
  }
@@ -22936,6 +23029,7 @@ var QwenAgent = class _QwenAgent {
22936
23029
  case SERVE_CONTROL_EXT_METHODS.sessionApprovalMode: {
22937
23030
  const sessionId = params["sessionId"];
22938
23031
  const mode = params["mode"];
23032
+ const planMode = params["planMode"];
22939
23033
  if (typeof sessionId !== "string" || sessionId.length === 0) {
22940
23034
  throw RequestError.invalidParams(
22941
23035
  void 0,
@@ -22948,11 +23042,21 @@ var QwenAgent = class _QwenAgent {
22948
23042
  `Invalid approval mode; allowed: ${APPROVAL_MODES.join(", ")}`
22949
23043
  );
22950
23044
  }
23045
+ if (planMode !== void 0 && (typeof planMode !== "boolean" || mode === "plan" /* PLAN */)) {
23046
+ throw RequestError.invalidParams(
23047
+ void 0,
23048
+ "planMode must be a boolean with a non-plan execution mode"
23049
+ );
23050
+ }
22951
23051
  const session = this.sessionOrThrow(sessionId);
22952
23052
  const config = session.getConfig();
22953
23053
  const previous = config.getApprovalMode();
22954
23054
  try {
22955
- config.setApprovalMode(mode);
23055
+ if (typeof planMode === "boolean") {
23056
+ config.setPlanMode(planMode, mode);
23057
+ } else {
23058
+ config.setApprovalMode(mode);
23059
+ }
22956
23060
  } catch (err) {
22957
23061
  if (err instanceof Error && err.name === "TrustGateError") {
22958
23062
  throw new RequestError(-32003, err.message, {
@@ -22970,7 +23074,13 @@ var QwenAgent = class _QwenAgent {
22970
23074
  } else if (previous === "plan") {
22971
23075
  session.clearActiveTodoPlanRevision();
22972
23076
  }
22973
- return { previous, current };
23077
+ return {
23078
+ previous,
23079
+ current,
23080
+ ...current === "plan" /* PLAN */ ? {
23081
+ planExecutionMode: config.getPlanExecutionMode?.() ?? config.getPrePlanMode?.()
23082
+ } : {}
23083
+ };
22974
23084
  }
22975
23085
  case SERVE_CONTROL_EXT_METHODS.workspaceSessionWorkflow: {
22976
23086
  const enabled = params["enabled"];
@@ -25643,10 +25753,15 @@ ${outputText}
25643
25753
  }));
25644
25754
  return {
25645
25755
  currentModeId: currentApprovalMode,
25756
+ ...currentApprovalMode === "plan" /* PLAN */ ? {
25757
+ _meta: {
25758
+ planExecutionMode: config.getPlanExecutionMode?.() ?? config.getPrePlanMode?.()
25759
+ }
25760
+ } : {},
25646
25761
  availableModes
25647
25762
  };
25648
25763
  }
25649
- buildConfigOptions(config) {
25764
+ buildConfigOptions(config, defaultReasoning) {
25650
25765
  const currentApprovalMode = config.getApprovalMode();
25651
25766
  const modelOptions = this.buildSelectableModelOptions(config);
25652
25767
  const rawCurrentModelId = (config.getModel() || "").trim();
@@ -25711,17 +25826,26 @@ ${outputText}
25711
25826
  const normalizedBudgetOverride = reasoningOverride?.field === "thinking_budget" && typeof reasoningOverrideValue === "number" && Number.isFinite(reasoningOverrideValue) && reasoningOverrideValue >= 0 && reasoningOverrideValue <= 262144 ? reasoningOverrideValue <= 4096 ? "low" : reasoningOverrideValue <= 16384 ? "medium" : "xhigh" : void 0;
25712
25827
  const normalizedOverrideEffort = normalizedEffortOverride ?? normalizedBudgetOverride;
25713
25828
  const overrideDisablesReasoning = reasoningOverride?.field === "enable_thinking" && reasoningOverrideValue === false || reasoningOverride?.field === "reasoning_effort" && reasoningOverrideValue === REASONING_EFFORT_NONE;
25829
+ const gptOverride = getGptReasoningOverrideState(
25830
+ generation,
25831
+ modelReasoning
25832
+ );
25833
+ const gptEnableOverride = generation.reasoning === false ? getGptReasoningOverrideState(
25834
+ { ...generation, reasoning: void 0 },
25835
+ modelReasoning
25836
+ ) : gptOverride;
25714
25837
  const mandatoryUsesDefaultEffort = generation.thinkingMandatory === true && (overrideDisablesReasoning || generation.reasoning === false && reasoningOverride?.field === "reasoning_effort");
25715
- const effectiveModelEffort = modelReasoning && !modelReasoning.toggleOnly ? mandatoryUsesDefaultEffort ? modelReasoning.defaultEffort : normalizedOverrideEffort ? modelReasoning.efforts?.find(
25838
+ const effectiveModelEffort = modelReasoning && !modelReasoning.toggleOnly ? mandatoryUsesDefaultEffort || gptOverride?.useDefaultEffort ? modelReasoning.defaultEffort : normalizedOverrideEffort ? modelReasoning.efforts?.find(
25716
25839
  (effort) => effort === normalizedOverrideEffort
25717
- ) ?? modelReasoning.defaultEffort : currentModelEffort : currentModelEffort;
25718
- const reasoningEnabled = generation.reasoning !== false && (!reasoningOverride || !overrideDisablesReasoning);
25840
+ ) ?? modelReasoning.defaultEffort : gptOverride?.effort ?? currentModelEffort : currentModelEffort;
25841
+ const reasoningEnabled = generation.reasoning === void 0 && !reasoningOverride && gptOverride?.enabled === void 0 ? void 0 : generation.reasoning !== false && (!reasoningOverride || !overrideDisablesReasoning) && gptOverride?.enabled !== false;
25719
25842
  const canDisableReasoning = generation.thinkingMandatory !== true;
25720
25843
  const reasoningEffortConfigOption = (modelReasoning ? buildModelReasoningConfigOption(
25721
25844
  rawCurrentModelId,
25722
25845
  {
25723
25846
  enabled: reasoningEnabled,
25724
25847
  effort: effectiveModelEffort,
25848
+ ...gptEnableOverride?.blocksTierChange ? gptEnableOverride.enabled && defaultReasoning !== false ? { enableValue: REASONING_EFFORT_DEFAULT } : { canEnable: false } : {},
25725
25849
  thinkingMandatory: generation.thinkingMandatory === true
25726
25850
  },
25727
25851
  modelReasoning