@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2-nightly.20260801.bc382c3ff

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 (437) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
  2. package/bundled/qc-helper/docs/configuration/settings.md +42 -30
  3. package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
  4. package/bundled/qc-helper/docs/features/channels/github.md +146 -0
  5. package/bundled/qc-helper/docs/features/channels/gitlab.md +177 -0
  6. package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
  7. package/bundled/qc-helper/docs/features/code-review.md +21 -1
  8. package/bundled/qc-helper/docs/features/commands.md +1 -0
  9. package/bundled/qc-helper/docs/features/hooks.md +186 -32
  10. package/bundled/qc-helper/docs/features/mcp.md +9 -1
  11. package/bundled/qc-helper/docs/features/memory.md +27 -0
  12. package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
  13. package/bundled/qc-helper/docs/features/skills.md +14 -0
  14. package/bundled/qc-helper/docs/features/sub-agents.md +75 -8
  15. package/bundled/qc-helper/docs/features/tool-use-summaries.md +7 -7
  16. package/bundled/qc-helper/docs/qwen-serve.md +32 -8
  17. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +4 -4
  18. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  19. package/bundled/review/DESIGN.md +19 -0
  20. package/bundled/review/SKILL.md +120 -61
  21. package/chunks/MaxSizedBox-CDHTDITS.js +89 -0
  22. package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-L63HUAHP.js} +76 -73
  23. package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-3RICG2YW.js} +2 -2
  24. package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-6WVVT2P3.js} +2147 -1009
  25. package/chunks/agent-KDM4CBOU.js +85 -0
  26. package/chunks/agent-headless-AS7K2K57.js +79 -0
  27. package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-WCBYB6JG.js} +388 -37
  28. package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-ANV4CFCR.js} +4 -4
  29. package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-MALEB47H.js} +4 -4
  30. package/chunks/bridge-JNEW6FES.js +95 -0
  31. package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
  32. package/chunks/{ca-25EDXPFZ.js → ca-4OJN75WT.js} +52 -6
  33. package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-QOO7TD3T.js} +21 -6
  34. package/chunks/channel-settings-store-4CSMTR4L.js +92 -0
  35. package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-ERSUOPIR.js} +10 -6
  36. package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-X247YDQ7.js} +10 -6
  37. package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-ORJIEEPP.js} +6 -5
  38. package/chunks/{chunk-LNARWLZQ.js → chunk-25QQVOCG.js} +5 -5
  39. package/chunks/{chunk-2OM7GEXO.js → chunk-2A6MHYIA.js} +3 -3
  40. package/chunks/{chunk-ER5LWJR6.js → chunk-2CTKGIFR.js} +3 -3
  41. package/chunks/{chunk-SQBYH7PX.js → chunk-2DNKEBXY.js} +1 -1
  42. package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
  43. package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
  44. package/chunks/chunk-2M5N3DHY.js +378 -0
  45. package/chunks/{chunk-CC4N4M36.js → chunk-2PNQQ4UR.js} +2 -2
  46. package/chunks/{chunk-E5TUC6CA.js → chunk-2UISUFHQ.js} +3 -3
  47. package/chunks/{chunk-PWTZEM3C.js → chunk-33FNCQSY.js} +3 -37
  48. package/chunks/{chunk-J56UI34H.js → chunk-3LGZEYOF.js} +4 -2
  49. package/chunks/{chunk-66RMLJHC.js → chunk-3MHPWQ2M.js} +590 -212
  50. package/chunks/{chunk-NL7LTRLR.js → chunk-3RXUYQJI.js} +54 -74
  51. package/chunks/{chunk-E5Z2AVNV.js → chunk-3SH53ANB.js} +0 -11
  52. package/chunks/{chunk-XHRTVPG2.js → chunk-3WXMXT7C.js} +22 -11
  53. package/chunks/{chunk-C3NS4F2Q.js → chunk-42IKVPST.js} +1 -1
  54. package/chunks/{chunk-M5JM7OSF.js → chunk-432XCUHF.js} +2 -3
  55. package/chunks/{chunk-5U4IPFBR.js → chunk-433VD3HX.js} +4 -4
  56. package/chunks/chunk-434YCHSV.js +2196 -0
  57. package/chunks/{chunk-DHHOYAPR.js → chunk-4LKVQFHM.js} +7 -7
  58. package/chunks/{chunk-IPUUTYMV.js → chunk-4NFY2S7N.js} +0 -33
  59. package/chunks/{chunk-J6D3VXCC.js → chunk-5UJ6A3CH.js} +158 -12
  60. package/chunks/{chunk-N3FAY5CM.js → chunk-5UZITEHA.js} +158 -5
  61. package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
  62. package/chunks/chunk-6FMJLI5M.js +1591 -0
  63. package/chunks/{chunk-6FGBXPWM.js → chunk-6O5DVH27.js} +38 -44
  64. package/chunks/{chunk-2RFKHEXL.js → chunk-6PLDPT2C.js} +1 -1
  65. package/chunks/{chunk-52O2CIUL.js → chunk-7IYLHTTM.js} +130 -5
  66. package/chunks/{chunk-5THCYPLO.js → chunk-7K2WTPQO.js} +15 -8
  67. package/chunks/{chunk-2Q3OT4OV.js → chunk-7MY2AR5A.js} +204 -81
  68. package/chunks/{chunk-YH6G52F2.js → chunk-A2A34TSB.js} +4 -4
  69. package/chunks/{chunk-3QMGYBFN.js → chunk-A5YZ3FA2.js} +2 -80
  70. package/chunks/{chunk-K4XWPEWB.js → chunk-A6SX5TAH.js} +4 -33
  71. package/chunks/{chunk-VYPFXUCB.js → chunk-AKA24BGO.js} +1 -1
  72. package/chunks/chunk-AQ37AY7B.js +93 -0
  73. package/chunks/{chunk-PANH4R3B.js → chunk-AQEWCKX4.js} +18 -12
  74. package/chunks/{chunk-LG4GZIVV.js → chunk-AYB4HSBI.js} +4 -4
  75. package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
  76. package/chunks/{chunk-2JZBVYTU.js → chunk-BFHXDAR7.js} +1 -8
  77. package/chunks/{chunk-2W3OOD4W.js → chunk-BGXZBI5B.js} +7 -4
  78. package/chunks/{chunk-2YZJCM5T.js → chunk-BKUN5QHP.js} +7 -7
  79. package/chunks/{chunk-UUUTRMI2.js → chunk-BV4QX43X.js} +1 -1
  80. package/chunks/{chunk-4M377AZG.js → chunk-C4L2MEIT.js} +6 -6
  81. package/chunks/{chunk-VV6XU5L7.js → chunk-CHCLO3M7.js} +19 -14
  82. package/chunks/{chunk-TOFQCPDC.js → chunk-CWEIMFFW.js} +14 -8
  83. package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
  84. package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
  85. package/chunks/{chunk-WDSWXQU3.js → chunk-DUIJ2IXG.js} +5 -13
  86. package/chunks/{chunk-3MSHSCSN.js → chunk-DVGTU5TC.js} +94 -4
  87. package/chunks/{chunk-RHLZR4E5.js → chunk-DYA25Y7U.js} +1 -1
  88. package/chunks/{chunk-MUP3T3AD.js → chunk-E4WHKETF.js} +32 -38
  89. package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
  90. package/chunks/{chunk-V6VRAM7B.js → chunk-FJHA23GM.js} +12 -12
  91. package/chunks/chunk-FYJ7W2PI.js +194 -0
  92. package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
  93. package/chunks/{chunk-LZEMEFKY.js → chunk-GALUTA2C.js} +1 -1
  94. package/chunks/{chunk-ML52PL6O.js → chunk-GB3AB7TR.js} +4374 -3779
  95. package/chunks/{chunk-SASBXAQL.js → chunk-GHJM2C2T.js} +6 -8
  96. package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
  97. package/chunks/chunk-GOFAQQZA.js +132 -0
  98. package/chunks/{chunk-BJX6ZSUK.js → chunk-GTM6IHBB.js} +2 -2
  99. package/chunks/{chunk-TF2X2WCT.js → chunk-GVISB2OH.js} +2 -2
  100. package/chunks/{chunk-OKY7HXPG.js → chunk-H36SETQS.js} +2 -2
  101. package/chunks/{chunk-7FZEBPKS.js → chunk-H4346YW5.js} +39 -22
  102. package/chunks/{chunk-LNURQEMZ.js → chunk-H4DSRWAS.js} +24 -13
  103. package/chunks/{chunk-3JAQDSXN.js → chunk-H6MC6VQX.js} +290 -179
  104. package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
  105. package/chunks/{chunk-PR75REBZ.js → chunk-I5GNT6ZS.js} +18 -82
  106. package/chunks/{chunk-MVS3NS2N.js → chunk-I6FAHB4N.js} +28 -5
  107. package/chunks/{chunk-ZOIFNCKL.js → chunk-I7JDGNG6.js} +3 -23
  108. package/chunks/{chunk-OJGCZBB7.js → chunk-II6WPWHY.js} +41 -36
  109. package/chunks/{chunk-UH3WSE5L.js → chunk-J26HHFI5.js} +2 -7
  110. package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
  111. package/chunks/{chunk-ZD6UTE4A.js → chunk-JELIWHXD.js} +1 -1
  112. package/chunks/{chunk-6PSLCFQ2.js → chunk-JRIDA5HF.js} +18 -9
  113. package/chunks/{chunk-W4CQXHT6.js → chunk-K4CGQN4Q.js} +1 -1
  114. package/chunks/{chunk-G4WFQUYQ.js → chunk-K5Q62CGR.js} +1 -1
  115. package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
  116. package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
  117. package/chunks/{chunk-DN6ZX5AY.js → chunk-KG22G46Y.js} +62 -15
  118. package/chunks/{chunk-L5UHQJTJ.js → chunk-KKN2IE7Q.js} +1 -1
  119. package/chunks/{chunk-63P4EL5V.js → chunk-KVUBYJDM.js} +2 -2
  120. package/chunks/{chunk-E5WH5O3C.js → chunk-KXSYDCP2.js} +4 -4
  121. package/chunks/{chunk-JALU3ZDU.js → chunk-LAPK3GLC.js} +212 -16
  122. package/chunks/chunk-LBOVL47Y.js +29 -0
  123. package/chunks/{chunk-FQK6JAFG.js → chunk-LBWNSLJK.js} +4 -4
  124. package/chunks/{chunk-3IXOIAKE.js → chunk-LL4U3BSH.js} +30 -10
  125. package/chunks/{chunk-B7QDM6Z7.js → chunk-LRJWFR6L.js} +4 -4
  126. package/chunks/{chunk-RWS5VYWC.js → chunk-M2F5PLOW.js} +1018 -484
  127. package/chunks/{chunk-HIJQF5B5.js → chunk-M744OFVE.js} +1 -1
  128. package/chunks/{chunk-I7XZ3RY5.js → chunk-MBKPUM5Y.js} +1 -1
  129. package/chunks/chunk-MISUEWB4.js +8749 -0
  130. package/chunks/{chunk-FNQ6T3CV.js → chunk-MOHAWIAW.js} +10 -7
  131. package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
  132. package/chunks/{chunk-QY5MMZ6O.js → chunk-MSIVKDRC.js} +4 -4
  133. package/chunks/{record-artifact-RQKFYO5B.js → chunk-MYT7N6QH.js} +22 -7
  134. package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
  135. package/chunks/{chunk-DM4Q4JJH.js → chunk-NGWYUZZO.js} +68794 -83526
  136. package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
  137. package/chunks/{chunk-PQNHRFJC.js → chunk-NYX53SV4.js} +0 -2
  138. package/chunks/{chunk-Z5BLYMZM.js → chunk-NZB4NDJL.js} +10 -10
  139. package/chunks/{chunk-SRZ6DXVG.js → chunk-O2ZYHG33.js} +47 -138
  140. package/chunks/chunk-O6GEWCJA.js +21 -0
  141. package/chunks/{chunk-PHVR5UUY.js → chunk-OBAIHYFT.js} +1 -1
  142. package/chunks/chunk-OCPBI7J5.js +18 -0
  143. package/chunks/{chunk-P5V4T7NK.js → chunk-OCRM53TT.js} +11 -3
  144. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  145. package/chunks/{chunk-KU5XMLDK.js → chunk-PDDYAXL2.js} +7 -1
  146. package/chunks/{chunk-L26JL52R.js → chunk-PGEGUNH5.js} +108 -68
  147. package/chunks/{chunk-2JM6GZ5D.js → chunk-PGP7Y3RQ.js} +8 -13
  148. package/chunks/{chunk-VFSJ5VRH.js → chunk-PHODQP2V.js} +6 -6
  149. package/chunks/{chunk-PSWQZHEA.js → chunk-PXA5AWHY.js} +1 -1
  150. package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
  151. package/chunks/chunk-QL4TN4HS.js +59 -0
  152. package/chunks/{chunk-USTWD7QV.js → chunk-QMBEW7EW.js} +26 -16
  153. package/chunks/{chunk-U4VTUMMK.js → chunk-QONSRAEV.js} +1 -1
  154. package/chunks/{chunk-NH6KE4JX.js → chunk-QYPT3QUD.js} +3 -3
  155. package/chunks/{chunk-GDIPH4JY.js → chunk-RGJ4JWSU.js} +133 -50
  156. package/chunks/{chunk-BO4XCS7P.js → chunk-RPYYTL7E.js} +77 -94
  157. package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
  158. package/chunks/{chunk-B4UMZKMU.js → chunk-SK2UKB45.js} +1 -1
  159. package/chunks/{chunk-QPDRAXDJ.js → chunk-SWEBEXPI.js} +1 -1
  160. package/chunks/chunk-T26EAKDL.js +13 -0
  161. package/chunks/chunk-T3CHYWJZ.js +758 -0
  162. package/chunks/{chunk-U7TXFVUN.js → chunk-TFFMATHX.js} +120 -95
  163. package/chunks/{chunk-M4UKFCZ2.js → chunk-TNVKFQXQ.js} +616 -217
  164. package/chunks/{chunk-5I2IWRSH.js → chunk-TYERNYH4.js} +2 -2
  165. package/chunks/{chunk-VAK25FTU.js → chunk-U25CMJYY.js} +1 -1
  166. package/chunks/{chunk-A5L3JMUA.js → chunk-UH7Z7Y45.js} +18 -4
  167. package/chunks/{chunk-BRRAJXPA.js → chunk-UHQ3L6GC.js} +1 -1
  168. package/chunks/{chunk-HV3G62R6.js → chunk-UHTJC7O3.js} +1 -1
  169. package/chunks/{chunk-3SJ43L4W.js → chunk-UKZEXS6K.js} +8 -0
  170. package/chunks/{chunk-DM22XS4K.js → chunk-UOFFZNXV.js} +361 -17
  171. package/chunks/{chunk-FY3M44RD.js → chunk-URN76TKR.js} +3 -3
  172. package/chunks/{chunk-MSLKI6C2.js → chunk-UWLG4UCE.js} +139 -31
  173. package/chunks/{chunk-A6UO2C7C.js → chunk-UWSXFI6E.js} +167 -81
  174. package/chunks/{chunk-BYFNTGKI.js → chunk-VS3GXRNZ.js} +3703 -1399
  175. package/chunks/{chunk-TQCBGUHN.js → chunk-VWF42XC6.js} +5 -5
  176. package/chunks/{chunk-32MVHM4T.js → chunk-W7XZ3KP5.js} +1 -1
  177. package/chunks/{chunk-B6ZJ7SI6.js → chunk-WISQLM4Q.js} +1526 -1420
  178. package/chunks/{chunk-H5FFA6TH.js → chunk-WK4TJUEA.js} +16 -3
  179. package/chunks/{chunk-3HBZKBMQ.js → chunk-WP4HGHFG.js} +5 -5
  180. package/chunks/{chunk-BIQWWWJN.js → chunk-XC2VAFVZ.js} +1 -1
  181. package/chunks/{chunk-EPDRMGT4.js → chunk-XC656O42.js} +4 -28
  182. package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
  183. package/chunks/{chunk-YAF5VNU7.js → chunk-XCLLRKY5.js} +4 -5
  184. package/chunks/chunk-XFDPIC4P.js +319 -0
  185. package/chunks/{chunk-KIUFNBHR.js → chunk-XSA5EKTJ.js} +1 -1
  186. package/chunks/{chunk-OHNBB4XR.js → chunk-YAVY33G4.js} +1 -1
  187. package/chunks/{chunk-DLWL3Z7A.js → chunk-YXEVDA66.js} +3 -3
  188. package/chunks/chunk-Z4X5MTRT.js +133 -0
  189. package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
  190. package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
  191. package/chunks/{chunk-ZE5WPL4I.js → chunk-ZRFJ75D7.js} +3 -3
  192. package/chunks/{chunk-MK7VQDN3.js → chunk-ZTN6OA5J.js} +8 -6
  193. package/chunks/{computer-use-DOFAHZAB.js → computer-use-Z4NCIIJN.js} +54 -51
  194. package/chunks/{config-utils-VFQXVGNR.js → config-utils-64LM6OEQ.js} +4 -4
  195. package/chunks/contextCommand-HVM7XFCB.js +84 -0
  196. package/chunks/core-runtime-NL3ZBHBU.js +138 -0
  197. package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-AM32K2HD.js} +3 -3
  198. package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-XHSCDYFU.js} +54 -51
  199. package/chunks/{cron-create-YIID5XAW.js → cron-create-HPXYE6C5.js} +6 -6
  200. package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FPVNTKPK.js} +5 -5
  201. package/chunks/{cron-list-XEGS463Q.js → cron-list-ZEI6PAAV.js} +6 -6
  202. package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
  203. package/chunks/daemon-status-provider-XD23SNAM.js +94 -0
  204. package/chunks/daemon-trust-policy-NOHK7IW5.js +89 -0
  205. package/chunks/daemon-trust-policy-monitor-ZBTSR333.js +176 -0
  206. package/chunks/{de-HGRCYDEJ.js → de-A6TI4LBB.js} +52 -6
  207. package/chunks/deferred-core-runtime-JJBHKM2C.js +93 -0
  208. package/chunks/{dist-RTJFMNEZ.js → dist-4LAMY2SK.js} +1449 -14
  209. package/chunks/{dist-NNVBBOGU.js → dist-4T4NCJFL.js} +2 -2
  210. package/chunks/dist-7KOL6OMD.js +13467 -0
  211. package/chunks/{dist-BRB6EXK4.js → dist-BH76AT7N.js} +3 -3
  212. package/chunks/dist-BXA3JXVQ.js +4749 -0
  213. package/chunks/{dist-KTYYJ2C5.js → dist-OEEFI6UU.js} +12 -9
  214. package/chunks/{dist-K6Y4E7FX.js → dist-SMLVOWKV.js} +5 -4
  215. package/chunks/{dist-ANLAT3GS.js → dist-V2RK6S6Q.js} +2 -1
  216. package/chunks/earlyInputCapture-KLAZDAIP.js +86 -0
  217. package/chunks/{edit-RIEOJWKB.js → edit-YQZWCISX.js} +53 -50
  218. package/chunks/{en-MTWBNGDO.js → en-RESOFG55.js} +55 -6
  219. package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-WLVWI3FP.js} +53 -50
  220. package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-6RYXFQUD.js} +53 -50
  221. package/chunks/environment-DXJTXSVT.js +106 -0
  222. package/chunks/errors-XGAGG2S2.js +92 -0
  223. package/chunks/esm-K5FARBNI.js +5548 -0
  224. package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-C4276VPP.js} +53 -50
  225. package/chunks/exitPlanMode-MM5HIRUF.js +77 -0
  226. package/chunks/{fast-path-HYE7IFEV.js → fast-path-PIXYOHCH.js} +17 -3
  227. package/chunks/{fr-45RLL55O.js → fr-QF7RI5ZE.js} +52 -6
  228. package/chunks/{gemini-NGRQX3YJ.js → gemini-43RLVUNP.js} +171 -109
  229. package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-PNQ4TSID.js} +7 -7
  230. package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
  231. package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
  232. package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
  233. package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
  234. package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
  235. package/chunks/{glob-FRTM3X2E.js → glob-ZMBQKAU5.js} +53 -50
  236. package/chunks/goal-tools-Y767F7LZ.js +335 -0
  237. package/chunks/{grep-RKWVROCW.js → grep-HSV37W2Q.js} +55 -51
  238. package/chunks/handleAutoUpdate-QDHZPBAY.js +85 -0
  239. package/chunks/i18n-ME22A6RN.js +101 -0
  240. package/chunks/{image-gen-WIEM7KZA.js → image-gen-IFC7ZWSB.js} +12 -12
  241. package/chunks/initializer-J7H2CHVB.js +90 -0
  242. package/chunks/installationInfo-R7FXPQN5.js +84 -0
  243. package/chunks/{ja-B7DF7DFG.js → ja-URQESVGW.js} +52 -6
  244. package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-7BT4TQ2A.js} +3 -3
  245. package/chunks/{kittyProtocolDetector-MBRTDRBK.js → kittyProtocolDetector-BFLAKYXH.js} +1 -1
  246. package/chunks/lib-RUF3WZA6.js +9 -0
  247. package/chunks/list-OYDIBA4N.js +93 -0
  248. package/chunks/{list-agents-5KJJHR6I.js → list-agents-GATIBBQQ.js} +3 -3
  249. package/chunks/loadedSettingsAdapter-OK6GK2GE.js +87 -0
  250. package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-U4ZEG4GL.js} +66 -50
  251. package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3DZMQQQQ.js} +15 -8
  252. package/chunks/{ls-NTK6VOQJ.js → ls-7F4GHXIH.js} +5 -5
  253. package/chunks/{lsp-2JI24STP.js → lsp-6FEHVBWI.js} +3 -3
  254. package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-PGKAJLLO.js} +52 -49
  255. package/chunks/mcp-S4DXJD2G.js +87 -0
  256. package/chunks/{monitor-7FEWXX5F.js → monitor-E5ZFMT74.js} +53 -50
  257. package/chunks/nonInteractiveCli-HNOHKEPE.js +149 -0
  258. package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-6QDN6VZJ.js} +53 -50
  259. package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-3NLB2C5O.js} +25 -27
  260. package/chunks/pidfile-ZMOIUGG6.js +90 -0
  261. package/chunks/process-registry-2CHQBXH5.js +157 -0
  262. package/chunks/{processUtils-V2LCK6T6.js → processUtils-E4QGQVWW.js} +2 -2
  263. package/chunks/{pt-22Q3FP73.js → pt-EEEQXRUI.js} +52 -6
  264. package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-2LFRWJTM.js} +57 -54
  265. package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-N32BUQDC.js} +10 -10
  266. package/chunks/read-file-GLDCWZBG.js +29 -0
  267. package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-AFS3UKZO.js} +4 -4
  268. package/chunks/record-artifact-ECZSCEG5.js +21 -0
  269. package/chunks/resumeHistoryUtils-F5BE5QDW.js +95 -0
  270. package/chunks/ripGrep-T23Y4AGY.js +77 -0
  271. package/chunks/{ru-FZCNZHDC.js → ru-WGZDYQAB.js} +52 -6
  272. package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TI2HGLLU.js} +1155 -272
  273. package/chunks/runtime-WCWM3DO7.js +125 -0
  274. package/chunks/{scheduler-RS2I6RU5.js → scheduler-2QZO5AV5.js} +51 -48
  275. package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
  276. package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-IKNWQJNV.js} +7 -7
  277. package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-7CUUMQDB.js} +10 -10
  278. package/chunks/{send-message-Q6OOR6BR.js → send-message-X7G2JSII.js} +8 -13
  279. package/chunks/serve-DZOMYUFU.js +93 -0
  280. package/chunks/{server-HRZ23U7M.js → server-N4AJRKIQ.js} +5299 -1584
  281. package/chunks/{session-7XHZKTVV.js → session-GS6AKMN7.js} +167 -102
  282. package/chunks/{settings-7ZGZDXAS.js → settings-CUN3SELH.js} +56 -53
  283. package/chunks/shell-NGBFVXC5.js +87 -0
  284. package/chunks/{skill-LIWXNLDW.js → skill-SC2BSO75.js} +35 -23
  285. package/chunks/skill-settings-XVPCPW5K.js +95 -0
  286. package/chunks/spawnChannel-RILO4YY3.js +86 -0
  287. package/chunks/standalone-update-TMLT6LVJ.js +96 -0
  288. package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-J45WOEOU.js} +1343 -1230
  289. package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-FHRY3BPQ.js} +4 -4
  290. package/chunks/task-create-LAQXBIHC.js +26 -0
  291. package/chunks/{task-list-FOPULZEP.js → task-list-V6K5DRDH.js} +8 -8
  292. package/chunks/{task-stop-H6RHXFVQ.js → task-stop-LQXE52L6.js} +3 -3
  293. package/chunks/{task-update-M57TFZJT.js → task-update-NXRCXSPB.js} +13 -12
  294. package/chunks/{team-create-O2FROQ4R.js → team-create-W3EVWCTA.js} +55 -52
  295. package/chunks/{team-delete-QE2UXJL7.js → team-delete-Z4KGO7RC.js} +8 -8
  296. package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-URYVKJF4.js} +53 -50
  297. package/chunks/theme-manager-CUAMS2NI.js +81 -0
  298. package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-OFIZDI7P.js} +34 -6
  299. package/chunks/{tool-search-APECNQ3Z.js → tool-search-DCICFL32.js} +21 -22
  300. package/chunks/total-session-admission-3ZTAXVUK.js +89 -0
  301. package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
  302. package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
  303. package/chunks/trustedFolders-EVCN36O5.js +99 -0
  304. package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-XLW46RHQ.js} +5 -5
  305. package/chunks/updateCheck-ZHVXDAIH.js +96 -0
  306. package/chunks/useAutoAcceptIndicator-ZGD6BJSP.js +97 -0
  307. package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-R3BAQFDY.js} +102 -97
  308. package/chunks/{version-LTNUBQJY.js → version-PMWREGCG.js} +1 -1
  309. package/chunks/{web-fetch-L5UTI53V.js → web-fetch-PGN27SGF.js} +19 -21
  310. package/chunks/{web-search-KM33JOS3.js → web-search-KW4UNMRE.js} +13 -13
  311. package/chunks/{workflow-K7FAWV77.js → workflow-SN3TJBTJ.js} +374 -323
  312. package/chunks/workspace-providers-status-O3HUZGGR.js +90 -0
  313. package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-M3FJ74RS.js} +2 -2
  314. package/chunks/workspace-registry-U7ISW23N.js +97 -0
  315. package/chunks/workspace-service-VH6IWADT.js +104 -0
  316. package/chunks/workspace-skills-status-XANARSZS.js +90 -0
  317. package/chunks/workspace-trust-reconciler-35EFR4GC.js +350 -0
  318. package/chunks/write-file-NCRSGUDT.js +79 -0
  319. package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
  320. package/chunks/{zh-LUIGBD55.js → zh-OHX23Q44.js} +52 -6
  321. package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-4G7YKDAQ.js} +52 -6
  322. package/chunks/zoom-image-X7CIADYC.js +224 -0
  323. package/cli.js +55 -48
  324. package/locales/ca.js +67 -6
  325. package/locales/de.js +69 -6
  326. package/locales/en.js +69 -6
  327. package/locales/fr.js +71 -6
  328. package/locales/ja.js +68 -6
  329. package/locales/pt.js +67 -6
  330. package/locales/ru.js +70 -6
  331. package/locales/zh-TW.js +62 -6
  332. package/locales/zh.js +62 -6
  333. package/package.json +5 -4
  334. package/web-shell/assets/{arc-BbHijhiN.js → arc-CaMTqKio.js} +1 -1
  335. package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-Bjxztij2.js} +1 -1
  336. package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-BYJzeHi9.js} +1 -1
  337. package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-fYAa-Eil.js} +1 -1
  338. package/web-shell/assets/channel-LEZei0-5.js +1 -0
  339. package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-B1OTlTml.js} +1 -1
  340. package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-DNj4uy6k.js} +1 -1
  341. package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-DAqNmg3c.js} +1 -1
  342. package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-BwB4ddxE.js} +1 -1
  343. package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-DmHR_UZs.js} +1 -1
  344. package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-BlfOXumo.js} +1 -1
  345. package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-BKogiSy7.js} +1 -1
  346. package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-DEclVrOF.js} +1 -1
  347. package/web-shell/assets/classDiagram-4FO5ZUOK-BiaRhfvf.js +1 -0
  348. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BiaRhfvf.js +1 -0
  349. package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-CwtS21WT.js} +1 -1
  350. package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-BAAIlB4p.js} +1 -1
  351. package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ChljtF_V.js} +1 -1
  352. package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-BIXVd31-.js} +1 -1
  353. package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BEiBaS15.js} +1 -1
  354. package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C-g4tWKM.js} +1 -1
  355. package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CNCCbNQG.js} +1 -1
  356. package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-v8ysnsdI.js} +1 -1
  357. package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-LKVlLjwA.js} +1 -1
  358. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DA5MrKYG.js} +1 -1
  359. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-Cyg5fe6d.js} +1 -1
  360. package/web-shell/assets/index-BgOcEaVt.js +1756 -0
  361. package/web-shell/assets/index-C2GE3DAF.js +74 -0
  362. package/web-shell/assets/{index-BYo99NBH.js → index-CKdUkVVS.js} +1 -1
  363. package/web-shell/assets/index-DA5Lvscv.css +5 -0
  364. package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-SLsfu3Qd.js} +1 -1
  365. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CmHOmTNx.js} +1 -1
  366. package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-C3gM_HFQ.js} +1 -1
  367. package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-BbHD7duM.js} +1 -1
  368. package/web-shell/assets/{linear-DCKODZe2.js → linear-CSBvm435.js} +1 -1
  369. package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-CPMw15lU.js} +5 -5
  370. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-C_tNqXQW.js} +1 -1
  371. package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-DH_N-8yY.js} +1 -1
  372. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CRbS8UkN.js} +1 -1
  373. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-DJgdZPZn.js} +1 -1
  374. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-vhL1y5zx.js} +1 -1
  375. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-UQthhFwd.js} +1 -1
  376. package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CAywEm20.js} +1 -1
  377. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-lfJQHw-7.js +1 -0
  378. package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-CLO8b3FD.js} +1 -1
  379. package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BNAAh0Mu.js} +1 -1
  380. package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CUY7bLpN.js} +1 -1
  381. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-CSg_ORdW.js} +1 -1
  382. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-BjffV208.js} +1 -1
  383. package/web-shell/index.html +2 -2
  384. package/chunks/MaxSizedBox-INHRH72H.js +0 -86
  385. package/chunks/agent-VXDAN5JK.js +0 -82
  386. package/chunks/agent-headless-K4ZMMNBD.js +0 -76
  387. package/chunks/bridge-LGPZCFHO.js +0 -91
  388. package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
  389. package/chunks/chunk-HGT6JR3U.js +0 -177
  390. package/chunks/chunk-JZA3JUDJ.js +0 -82
  391. package/chunks/chunk-SZRN75WQ.js +0 -29
  392. package/chunks/chunk-UGYMA4EI.js +0 -219
  393. package/chunks/chunk-VCBZUOSI.js +0 -8575
  394. package/chunks/contextCommand-QIZYHDR5.js +0 -81
  395. package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
  396. package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
  397. package/chunks/environment-VZ7BRI4Q.js +0 -103
  398. package/chunks/errors-PCX25DVP.js +0 -89
  399. package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
  400. package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
  401. package/chunks/i18n-XEQVMRKN.js +0 -98
  402. package/chunks/initializer-OVGZ4FLY.js +0 -87
  403. package/chunks/installationInfo-5UUQJI6Y.js +0 -81
  404. package/chunks/list-HODU6RXD.js +0 -90
  405. package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
  406. package/chunks/mcp-J3DFWX4A.js +0 -84
  407. package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
  408. package/chunks/pidfile-4VNAR3EP.js +0 -87
  409. package/chunks/read-file-LZXUR4TO.js +0 -31
  410. package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
  411. package/chunks/ripGrep-2U2FRGMV.js +0 -74
  412. package/chunks/runtime-AXJWIEDU.js +0 -120
  413. package/chunks/serve-W2GC47CM.js +0 -90
  414. package/chunks/shell-45IPBDP5.js +0 -84
  415. package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
  416. package/chunks/src-AY65BYR7.js +0 -3166
  417. package/chunks/standalone-update-ZMFNKAEY.js +0 -93
  418. package/chunks/task-create-N7WQSGYA.js +0 -25
  419. package/chunks/theme-manager-YYPZFBAH.js +0 -78
  420. package/chunks/total-session-admission-JXES723M.js +0 -85
  421. package/chunks/trustedFolders-HVI7IXUH.js +0 -94
  422. package/chunks/updateCheck-WUJGHWZZ.js +0 -93
  423. package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
  424. package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
  425. package/chunks/workspace-registry-A7NQUONG.js +0 -89
  426. package/chunks/workspace-service-STGVSO4N.js +0 -99
  427. package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
  428. package/chunks/write-file-HUUCEG4P.js +0 -74
  429. package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
  430. package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
  431. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
  432. package/web-shell/assets/index-B2bXx96W.js +0 -1249
  433. package/web-shell/assets/index-_8mKjx8q.css +0 -5
  434. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
  435. package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
  436. package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
  437. /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
@@ -3,25 +3,28 @@
3
3
  import {
4
4
  isLoopbackBind
5
5
  } from "./chunk-RXFQM6FQ.js";
6
- import {
7
- CLIENT_MCP_OVER_WS_CONFIG_FLAG
8
- } from "./chunk-3SJ43L4W.js";
9
6
  import {
10
7
  require_lib
11
- } from "./chunk-WBL3FJEU.js";
8
+ } from "./chunk-FC4KQFCS.js";
12
9
  import {
13
- require_mime_db
14
- } from "./chunk-T2NCM2ET.js";
10
+ CLIENT_MCP_OVER_WS_CONFIG_FLAG
11
+ } from "./chunk-UKZEXS6K.js";
15
12
  import {
16
13
  MAX_WORKSPACE_PATH_LENGTH,
17
14
  translateAndCheckAbsoluteWorkspacePath
18
- } from "./chunk-2RFKHEXL.js";
15
+ } from "./chunk-6PLDPT2C.js";
19
16
  import {
20
- writeStderrLine
21
- } from "./chunk-OWAK7LMW.js";
17
+ require_mime_db
18
+ } from "./chunk-K6KS3LTN.js";
19
+ import {
20
+ require_content_type
21
+ } from "./chunk-GOFAQQZA.js";
22
22
  import {
23
23
  require_safer
24
24
  } from "./chunk-XWRJCPHC.js";
25
+ import {
26
+ writeStderrLine
27
+ } from "./chunk-OWAK7LMW.js";
25
28
  import {
26
29
  require_src
27
30
  } from "./chunk-DMTGGOSA.js";
@@ -9296,113 +9299,142 @@ var require_type_is = __commonJS({
9296
9299
  }
9297
9300
  });
9298
9301
 
9299
- // node_modules/content-type/index.js
9300
- var require_content_type = __commonJS({
9301
- "node_modules/content-type/index.js"(exports) {
9302
+ // node_modules/body-parser/node_modules/content-type/dist/index.js
9303
+ var require_dist2 = __commonJS({
9304
+ "node_modules/body-parser/node_modules/content-type/dist/index.js"(exports) {
9302
9305
  "use strict";
9303
9306
  init_esbuild_shims();
9304
- var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
9305
- var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
9306
- var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
9307
- var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
9308
- var QUOTE_REGEXP = /([\\"])/g;
9309
- var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
9307
+ Object.defineProperty(exports, "__esModule", { value: true });
9310
9308
  exports.format = format;
9311
9309
  exports.parse = parse;
9310
+ var TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/;
9311
+ var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
9312
+ var QUOTE_REGEXP = /[\\"]/g;
9313
+ var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
9314
+ var NullObject = /* @__PURE__ */ (() => {
9315
+ const C = /* @__PURE__ */ __name(function() {
9316
+ }, "C");
9317
+ C.prototype = /* @__PURE__ */ Object.create(null);
9318
+ return C;
9319
+ })();
9312
9320
  function format(obj) {
9313
- if (!obj || typeof obj !== "object") {
9314
- throw new TypeError("argument obj is required");
9315
- }
9316
- var parameters = obj.parameters;
9317
- var type = obj.type;
9321
+ const { type, parameters } = obj;
9318
9322
  if (!type || !TYPE_REGEXP.test(type)) {
9319
- throw new TypeError("invalid type");
9323
+ throw new TypeError(`Invalid type: ${type}`);
9320
9324
  }
9321
- var string = type;
9322
- if (parameters && typeof parameters === "object") {
9323
- var param;
9324
- var params = Object.keys(parameters).sort();
9325
- for (var i = 0; i < params.length; i++) {
9326
- param = params[i];
9325
+ let result = type;
9326
+ if (parameters) {
9327
+ for (const param of Object.keys(parameters)) {
9327
9328
  if (!TOKEN_REGEXP.test(param)) {
9328
- throw new TypeError("invalid parameter name");
9329
+ throw new TypeError(`Invalid parameter name: ${param}`);
9329
9330
  }
9330
- string += "; " + param + "=" + qstring(parameters[param]);
9331
+ result += `; ${param}=${qstring(parameters[param])}`;
9331
9332
  }
9332
9333
  }
9333
- return string;
9334
+ return result;
9334
9335
  }
9335
9336
  __name(format, "format");
9336
- function parse(string) {
9337
- if (!string) {
9338
- throw new TypeError("argument string is required");
9339
- }
9340
- var header = typeof string === "object" ? getcontenttype(string) : string;
9341
- if (typeof header !== "string") {
9342
- throw new TypeError("argument string is required to be a string");
9343
- }
9344
- var index = header.indexOf(";");
9345
- var type = index !== -1 ? header.slice(0, index).trim() : header.trim();
9346
- if (!TYPE_REGEXP.test(type)) {
9347
- throw new TypeError("invalid media type");
9348
- }
9349
- var obj = new ContentType(type.toLowerCase());
9350
- if (index !== -1) {
9351
- var key;
9352
- var match;
9353
- var value;
9354
- PARAM_REGEXP.lastIndex = index;
9355
- while (match = PARAM_REGEXP.exec(header)) {
9356
- if (match.index !== index) {
9357
- throw new TypeError("invalid parameter format");
9358
- }
9359
- index += match[0].length;
9360
- key = match[1].toLowerCase();
9361
- value = match[2];
9362
- if (value.charCodeAt(0) === 34) {
9363
- value = value.slice(1, -1);
9364
- if (value.indexOf("\\") !== -1) {
9365
- value = value.replace(QESC_REGEXP, "$1");
9337
+ function parse(header, options) {
9338
+ const len = header.length;
9339
+ let index = skipOWS(header, 0, len);
9340
+ const valueStart = index;
9341
+ index = skipValue(header, index, len);
9342
+ const valueEnd = trailingOWS(header, valueStart, index);
9343
+ const type = header.slice(valueStart, valueEnd).toLowerCase();
9344
+ const parameters = options?.parameters === false ? new NullObject() : parseParameters(header, index, len);
9345
+ return { type, parameters };
9346
+ }
9347
+ __name(parse, "parse");
9348
+ var SP = 32;
9349
+ var HTAB = 9;
9350
+ var SEMI = 59;
9351
+ var EQ = 61;
9352
+ var DQUOTE = 34;
9353
+ var BSLASH = 92;
9354
+ function parseParameters(header, index, len) {
9355
+ const parameters = new NullObject();
9356
+ parameter: while (index < len) {
9357
+ index = skipOWS(header, index + 1, len);
9358
+ const keyStart = index;
9359
+ while (index < len) {
9360
+ const code = header.charCodeAt(index);
9361
+ if (code === SEMI)
9362
+ continue parameter;
9363
+ if (code === EQ) {
9364
+ const keyEnd = trailingOWS(header, keyStart, index);
9365
+ const key = header.slice(keyStart, keyEnd).toLowerCase();
9366
+ index = skipOWS(header, index + 1, len);
9367
+ if (index < len && header.charCodeAt(index) === DQUOTE) {
9368
+ index++;
9369
+ let value = "";
9370
+ while (index < len) {
9371
+ const code2 = header.charCodeAt(index++);
9372
+ if (code2 === DQUOTE) {
9373
+ index = skipValue(header, index, len);
9374
+ if (parameters[key] === void 0)
9375
+ parameters[key] = value;
9376
+ break;
9377
+ }
9378
+ if (code2 === BSLASH && index < len) {
9379
+ value += header[index++];
9380
+ continue;
9381
+ }
9382
+ value += String.fromCharCode(code2);
9383
+ }
9384
+ continue parameter;
9385
+ }
9386
+ const valueStart = index;
9387
+ index = skipValue(header, index, len);
9388
+ if (parameters[key] === void 0) {
9389
+ const valueEnd = trailingOWS(header, valueStart, index);
9390
+ parameters[key] = header.slice(valueStart, valueEnd);
9366
9391
  }
9392
+ continue parameter;
9367
9393
  }
9368
- obj.parameters[key] = value;
9369
- }
9370
- if (index !== header.length) {
9371
- throw new TypeError("invalid parameter format");
9394
+ index++;
9372
9395
  }
9373
9396
  }
9374
- return obj;
9397
+ return parameters;
9375
9398
  }
9376
- __name(parse, "parse");
9377
- function getcontenttype(obj) {
9378
- var header;
9379
- if (typeof obj.getHeader === "function") {
9380
- header = obj.getHeader("content-type");
9381
- } else if (typeof obj.headers === "object") {
9382
- header = obj.headers && obj.headers["content-type"];
9383
- }
9384
- if (typeof header !== "string") {
9385
- throw new TypeError("content-type header is missing from object");
9399
+ __name(parseParameters, "parseParameters");
9400
+ function skipValue(str, index, len) {
9401
+ while (index < len) {
9402
+ const char = str.charCodeAt(index);
9403
+ if (char === SEMI)
9404
+ break;
9405
+ index++;
9386
9406
  }
9387
- return header;
9407
+ return index;
9388
9408
  }
9389
- __name(getcontenttype, "getcontenttype");
9390
- function qstring(val) {
9391
- var str = String(val);
9392
- if (TOKEN_REGEXP.test(str)) {
9393
- return str;
9409
+ __name(skipValue, "skipValue");
9410
+ function skipOWS(header, index, len) {
9411
+ while (index < len) {
9412
+ const char = header.charCodeAt(index);
9413
+ if (char !== SP && char !== HTAB)
9414
+ break;
9415
+ index++;
9394
9416
  }
9395
- if (str.length > 0 && !TEXT_REGEXP.test(str)) {
9396
- throw new TypeError("invalid parameter value");
9417
+ return index;
9418
+ }
9419
+ __name(skipOWS, "skipOWS");
9420
+ function trailingOWS(header, start, end) {
9421
+ while (end > start) {
9422
+ const char = header.charCodeAt(end - 1);
9423
+ if (char !== SP && char !== HTAB)
9424
+ break;
9425
+ end--;
9397
9426
  }
9398
- return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
9427
+ return end;
9399
9428
  }
9400
- __name(qstring, "qstring");
9401
- function ContentType(type) {
9402
- this.parameters = /* @__PURE__ */ Object.create(null);
9403
- this.type = type;
9429
+ __name(trailingOWS, "trailingOWS");
9430
+ function qstring(str) {
9431
+ if (TOKEN_REGEXP.test(str))
9432
+ return str;
9433
+ if (TEXT_REGEXP.test(str))
9434
+ return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`;
9435
+ throw new TypeError(`Invalid parameter value: ${str}`);
9404
9436
  }
9405
- __name(ContentType, "ContentType");
9437
+ __name(qstring, "qstring");
9406
9438
  }
9407
9439
  });
9408
9440
 
@@ -9412,7 +9444,7 @@ var require_utils = __commonJS({
9412
9444
  "use strict";
9413
9445
  init_esbuild_shims();
9414
9446
  var bytes = require_bytes();
9415
- var contentType = require_content_type();
9447
+ var contentType = require_dist2();
9416
9448
  var typeis = require_type_is();
9417
9449
  module.exports = {
9418
9450
  getCharset,
@@ -9420,11 +9452,9 @@ var require_utils = __commonJS({
9420
9452
  passthrough
9421
9453
  };
9422
9454
  function getCharset(req) {
9423
- try {
9424
- return (contentType.parse(req).parameters.charset || "").toLowerCase();
9425
- } catch {
9426
- return void 0;
9427
- }
9455
+ const header = req.headers["content-type"];
9456
+ if (!header) return void 0;
9457
+ return contentType.parse(header).parameters.charset?.toLowerCase();
9428
9458
  }
9429
9459
  __name(getCharset, "getCharset");
9430
9460
  function typeChecker(type) {
@@ -9437,15 +9467,18 @@ var require_utils = __commonJS({
9437
9467
  if (!defaultType) {
9438
9468
  throw new TypeError("defaultType must be provided");
9439
9469
  }
9440
- var inflate = options?.inflate !== false;
9441
- var limit = typeof options?.limit !== "number" ? bytes.parse(options?.limit || "100kb") : options?.limit;
9442
- var type = options?.type || defaultType;
9443
- var verify = options?.verify || false;
9444
- var defaultCharset = options?.defaultCharset || "utf-8";
9470
+ const inflate = options?.inflate !== false;
9471
+ const limit = typeof options?.limit === "undefined" || options?.limit === null ? 102400 : bytes.parse(options.limit);
9472
+ const type = options?.type || defaultType;
9473
+ const verify = options?.verify || false;
9474
+ const defaultCharset = options?.defaultCharset || "utf-8";
9475
+ if (limit === null) {
9476
+ throw new TypeError(`option limit "${String(options.limit)}" is invalid`);
9477
+ }
9445
9478
  if (verify !== false && typeof verify !== "function") {
9446
9479
  throw new TypeError("option verify must be function");
9447
9480
  }
9448
- var shouldParse = typeof type !== "function" ? typeChecker(type) : type;
9481
+ const shouldParse = typeof type !== "function" ? typeChecker(type) : type;
9449
9482
  return {
9450
9483
  inflate,
9451
9484
  limit,
@@ -9495,7 +9528,7 @@ var require_read = __commonJS({
9495
9528
  next();
9496
9529
  return;
9497
9530
  }
9498
- var encoding = null;
9531
+ let encoding = null;
9499
9532
  if (options?.skipCharset !== true) {
9500
9533
  encoding = getCharset(req) || options.defaultCharset;
9501
9534
  if (!!options?.isValidCharset && !options.isValidCharset(encoding)) {
@@ -9507,10 +9540,10 @@ var require_read = __commonJS({
9507
9540
  return;
9508
9541
  }
9509
9542
  }
9510
- var length;
9511
- var opts = options;
9512
- var stream;
9513
- var verify = opts.verify;
9543
+ let length;
9544
+ const opts = options;
9545
+ let stream;
9546
+ const verify = opts.verify;
9514
9547
  try {
9515
9548
  stream = contentstream(req, debug, opts.inflate);
9516
9549
  length = stream.length;
@@ -9529,7 +9562,7 @@ var require_read = __commonJS({
9529
9562
  debug("read body");
9530
9563
  getBody(stream, opts, function(error, body) {
9531
9564
  if (error) {
9532
- var _error;
9565
+ let _error;
9533
9566
  if (error.type === "encoding.unsupported") {
9534
9567
  _error = createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
9535
9568
  charset: encoding.toLowerCase(),
@@ -9559,7 +9592,7 @@ var require_read = __commonJS({
9559
9592
  return;
9560
9593
  }
9561
9594
  }
9562
- var str = body;
9595
+ let str = body;
9563
9596
  try {
9564
9597
  debug("parse body");
9565
9598
  str = typeof body !== "string" && encoding !== null ? iconv.decode(body, encoding) : body;
@@ -9576,8 +9609,8 @@ var require_read = __commonJS({
9576
9609
  }
9577
9610
  __name(read, "read");
9578
9611
  function contentstream(req, debug, inflate) {
9579
- var encoding = (req.headers["content-encoding"] || "identity").toLowerCase();
9580
- var length = req.headers["content-length"];
9612
+ const encoding = (req.headers["content-encoding"] || "identity").toLowerCase();
9613
+ const length = req.headers["content-length"];
9581
9614
  debug('content-encoding "%s"', encoding);
9582
9615
  if (inflate === false && encoding !== "identity") {
9583
9616
  throw createError(415, "content encoding unsupported", {
@@ -9589,7 +9622,7 @@ var require_read = __commonJS({
9589
9622
  req.length = length;
9590
9623
  return req;
9591
9624
  }
9592
- var stream = createDecompressionStream(encoding, debug);
9625
+ const stream = createDecompressionStream(encoding, debug);
9593
9626
  req.pipe(stream);
9594
9627
  return stream;
9595
9628
  }
@@ -9639,18 +9672,44 @@ var require_json = __commonJS({
9639
9672
  var JSON_SYNTAX_REGEXP = /#+/g;
9640
9673
  function json(options) {
9641
9674
  const normalizedOptions = normalizeOptions(options, "application/json");
9642
- var reviver = options?.reviver;
9643
- var strict = options?.strict !== false;
9644
- function parse(body) {
9645
- if (body.length === 0) {
9646
- return {};
9647
- }
9648
- if (strict) {
9649
- var first = firstchar(body);
9675
+ const parse = createJsonParser(options);
9676
+ const readOptions = {
9677
+ ...normalizedOptions,
9678
+ // assert charset per RFC 7159 sec 8.1
9679
+ isValidCharset: /* @__PURE__ */ __name((charset) => charset.slice(0, 4) === "utf-", "isValidCharset")
9680
+ };
9681
+ return /* @__PURE__ */ __name(function jsonParser(req, res, next) {
9682
+ read(req, res, next, parse, debug, readOptions);
9683
+ }, "jsonParser");
9684
+ }
9685
+ __name(json, "json");
9686
+ function createJsonParser(options) {
9687
+ const reviver = options?.reviver;
9688
+ const strict = options?.strict !== false;
9689
+ if (strict) {
9690
+ return /* @__PURE__ */ __name(function parse(body) {
9691
+ if (body.length === 0) {
9692
+ return {};
9693
+ }
9694
+ const first = firstchar(body);
9650
9695
  if (first !== "{" && first !== "[") {
9651
9696
  debug("strict violation");
9652
9697
  throw createStrictSyntaxError(body, first);
9653
9698
  }
9699
+ try {
9700
+ debug("parse json");
9701
+ return JSON.parse(body, reviver);
9702
+ } catch (e) {
9703
+ throw normalizeJsonSyntaxError(e, {
9704
+ message: e.message,
9705
+ stack: e.stack
9706
+ });
9707
+ }
9708
+ }, "parse");
9709
+ }
9710
+ return /* @__PURE__ */ __name(function parse(body) {
9711
+ if (body.length === 0) {
9712
+ return {};
9654
9713
  }
9655
9714
  try {
9656
9715
  debug("parse json");
@@ -9661,21 +9720,12 @@ var require_json = __commonJS({
9661
9720
  stack: e.stack
9662
9721
  });
9663
9722
  }
9664
- }
9665
- __name(parse, "parse");
9666
- const readOptions = {
9667
- ...normalizedOptions,
9668
- // assert charset per RFC 7159 sec 8.1
9669
- isValidCharset: /* @__PURE__ */ __name((charset) => charset.slice(0, 4) === "utf-", "isValidCharset")
9670
- };
9671
- return /* @__PURE__ */ __name(function jsonParser(req, res, next) {
9672
- read(req, res, next, parse, debug, readOptions);
9673
- }, "jsonParser");
9723
+ }, "parse");
9674
9724
  }
9675
- __name(json, "json");
9725
+ __name(createJsonParser, "createJsonParser");
9676
9726
  function createStrictSyntaxError(str, char) {
9677
- var index = str.indexOf(char);
9678
- var partial = "";
9727
+ const index = str.indexOf(char);
9728
+ let partial = "";
9679
9729
  if (index !== -1) {
9680
9730
  partial = str.substring(0, index) + JSON_SYNTAX_CHAR.repeat(str.length - index);
9681
9731
  }
@@ -9693,14 +9743,14 @@ var require_json = __commonJS({
9693
9743
  }
9694
9744
  __name(createStrictSyntaxError, "createStrictSyntaxError");
9695
9745
  function firstchar(str) {
9696
- var match = FIRST_CHAR_REGEXP.exec(str);
9746
+ const match = FIRST_CHAR_REGEXP.exec(str);
9697
9747
  return match ? match[1] : void 0;
9698
9748
  }
9699
9749
  __name(firstchar, "firstchar");
9700
9750
  function normalizeJsonSyntaxError(error, obj) {
9701
- var keys = Object.getOwnPropertyNames(error);
9702
- for (var i = 0; i < keys.length; i++) {
9703
- var key = keys[i];
9751
+ const keys = Object.getOwnPropertyNames(error);
9752
+ for (let i = 0; i < keys.length; i++) {
9753
+ const key = keys[i];
9704
9754
  if (key !== "stack" && key !== "message") {
9705
9755
  delete error[key];
9706
9756
  }
@@ -9772,11 +9822,7 @@ var require_urlencoded = __commonJS({
9772
9822
  if (normalizedOptions.defaultCharset !== "utf-8" && normalizedOptions.defaultCharset !== "iso-8859-1") {
9773
9823
  throw new TypeError("option defaultCharset must be either utf-8 or iso-8859-1");
9774
9824
  }
9775
- var queryparse = createQueryParser(options);
9776
- function parse(body, encoding) {
9777
- return body.length ? queryparse(body, encoding) : {};
9778
- }
9779
- __name(parse, "parse");
9825
+ const parse = createQueryParser(options);
9780
9826
  const readOptions = {
9781
9827
  ...normalizedOptions,
9782
9828
  // assert charset
@@ -9788,11 +9834,11 @@ var require_urlencoded = __commonJS({
9788
9834
  }
9789
9835
  __name(urlencoded, "urlencoded");
9790
9836
  function createQueryParser(options) {
9791
- var extended = Boolean(options?.extended);
9792
- var parameterLimit = options?.parameterLimit !== void 0 ? options?.parameterLimit : 1e3;
9793
- var charsetSentinel = options?.charsetSentinel;
9794
- var interpretNumericEntities = options?.interpretNumericEntities;
9795
- var depth = extended ? options?.depth !== void 0 ? options?.depth : 32 : 0;
9837
+ const extended = Boolean(options?.extended);
9838
+ let parameterLimit = options?.parameterLimit !== void 0 ? options?.parameterLimit : 1e3;
9839
+ const charsetSentinel = options?.charsetSentinel;
9840
+ const interpretNumericEntities = options?.interpretNumericEntities;
9841
+ const depth = extended ? options?.depth !== void 0 ? options?.depth : 32 : 0;
9796
9842
  if (isNaN(parameterLimit) || parameterLimit < 1) {
9797
9843
  throw new TypeError("option parameterLimit must be a positive number");
9798
9844
  }
@@ -9802,15 +9848,16 @@ var require_urlencoded = __commonJS({
9802
9848
  if (isFinite(parameterLimit)) {
9803
9849
  parameterLimit = parameterLimit | 0;
9804
9850
  }
9805
- return /* @__PURE__ */ __name(function queryparse(body, encoding) {
9806
- var paramCount = parameterCount(body, parameterLimit);
9851
+ return /* @__PURE__ */ __name(function parse(body, encoding) {
9852
+ if (!body.length) return {};
9853
+ const paramCount = parameterCount(body, parameterLimit);
9807
9854
  if (paramCount === void 0) {
9808
9855
  debug("too many parameters");
9809
9856
  throw createError(413, "too many parameters", {
9810
9857
  type: "parameters.too.many"
9811
9858
  });
9812
9859
  }
9813
- var arrayLimit = extended ? Math.max(100, paramCount) : paramCount;
9860
+ const arrayLimit = extended ? Math.max(100, paramCount) : paramCount;
9814
9861
  debug("parse " + (extended ? "extended " : "") + "urlencoding");
9815
9862
  try {
9816
9863
  return qs.parse(body, {
@@ -9832,7 +9879,7 @@ var require_urlencoded = __commonJS({
9832
9879
  throw err;
9833
9880
  }
9834
9881
  }
9835
- }, "queryparse");
9882
+ }, "parse");
9836
9883
  }
9837
9884
  __name(createQueryParser, "createQueryParser");
9838
9885
  function parameterCount(body, limit) {
@@ -9855,26 +9902,10 @@ var require_body_parser = __commonJS({
9855
9902
  "use strict";
9856
9903
  init_esbuild_shims();
9857
9904
  exports = module.exports = bodyParser;
9858
- Object.defineProperty(exports, "json", {
9859
- configurable: true,
9860
- enumerable: true,
9861
- get: /* @__PURE__ */ __name(() => require_json(), "get")
9862
- });
9863
- Object.defineProperty(exports, "raw", {
9864
- configurable: true,
9865
- enumerable: true,
9866
- get: /* @__PURE__ */ __name(() => require_raw(), "get")
9867
- });
9868
- Object.defineProperty(exports, "text", {
9869
- configurable: true,
9870
- enumerable: true,
9871
- get: /* @__PURE__ */ __name(() => require_text(), "get")
9872
- });
9873
- Object.defineProperty(exports, "urlencoded", {
9874
- configurable: true,
9875
- enumerable: true,
9876
- get: /* @__PURE__ */ __name(() => require_urlencoded(), "get")
9877
- });
9905
+ exports.json = require_json();
9906
+ exports.raw = require_raw();
9907
+ exports.text = require_text();
9908
+ exports.urlencoded = require_urlencoded();
9878
9909
  function bodyParser() {
9879
9910
  throw new Error("The bodyParser() generic has been split into individual middleware to use instead.");
9880
9911
  }
@@ -11414,7 +11445,7 @@ var require_is_promise = __commonJS({
11414
11445
  });
11415
11446
 
11416
11447
  // node_modules/path-to-regexp/dist/index.js
11417
- var require_dist2 = __commonJS({
11448
+ var require_dist3 = __commonJS({
11418
11449
  "node_modules/path-to-regexp/dist/index.js"(exports) {
11419
11450
  "use strict";
11420
11451
  init_esbuild_shims();
@@ -11814,7 +11845,7 @@ var require_layer = __commonJS({
11814
11845
  "use strict";
11815
11846
  init_esbuild_shims();
11816
11847
  var isPromise = require_is_promise();
11817
- var pathRegexp = require_dist2();
11848
+ var pathRegexp = require_dist3();
11818
11849
  var debug = require_src()("router:layer");
11819
11850
  var deprecate = require_depd()("router");
11820
11851
  var TRAILING_SLASH_REGEXP = /\/+$/;
@@ -16433,6 +16464,8 @@ var ClientMcpSenderRegistry = class {
16433
16464
  __name(this, "ClientMcpSenderRegistry");
16434
16465
  }
16435
16466
  senders = /* @__PURE__ */ new Map();
16467
+ sessionSenders = /* @__PURE__ */ new Map();
16468
+ sessionScopedServerNames = /* @__PURE__ */ new Set();
16436
16469
  /**
16437
16470
  * Record a server's WS sender, owned by `owner` (the registering
16438
16471
  * connection's stable client id). Idempotent; last writer wins and takes
@@ -16455,6 +16488,27 @@ var ClientMcpSenderRegistry = class {
16455
16488
  owns(serverName, owner) {
16456
16489
  return this.senders.get(serverName)?.owner === owner;
16457
16490
  }
16491
+ setSession(serverName, sessionId, sender, owner) {
16492
+ let bySession = this.sessionSenders.get(serverName);
16493
+ if (!bySession) {
16494
+ bySession = /* @__PURE__ */ new Map();
16495
+ this.sessionSenders.set(serverName, bySession);
16496
+ }
16497
+ bySession.set(sessionId, { sender, owner });
16498
+ this.sessionScopedServerNames.add(serverName);
16499
+ }
16500
+ ownsSession(serverName, sessionId, owner) {
16501
+ return this.sessionSenders.get(serverName)?.get(sessionId)?.owner === owner;
16502
+ }
16503
+ deleteSession(serverName, sessionId, owner) {
16504
+ const bySession = this.sessionSenders.get(serverName);
16505
+ if (bySession?.get(sessionId)?.owner !== owner) return false;
16506
+ bySession.delete(sessionId);
16507
+ if (bySession.size === 0) {
16508
+ this.sessionSenders.delete(serverName);
16509
+ }
16510
+ return true;
16511
+ }
16458
16512
  /** Currently-registered server names (tests / accounting). */
16459
16513
  serverNames() {
16460
16514
  return [...this.senders.keys()];
@@ -16468,8 +16522,37 @@ var ClientMcpSenderRegistry = class {
16468
16522
  */
16469
16523
  lookup = /* @__PURE__ */ __name((serverName) => {
16470
16524
  const entry = this.senders.get(serverName);
16471
- if (!entry) return void 0;
16472
- return (payload) => entry.sender(serverName, payload);
16525
+ const sessionEntries = this.sessionSenders.get(serverName);
16526
+ if (!entry && !sessionEntries) return void 0;
16527
+ return (payload, context) => {
16528
+ if (context?.sessionId) {
16529
+ const sessionEntry = sessionEntries?.get(context.sessionId);
16530
+ if (sessionEntry) return sessionEntry.sender(payload);
16531
+ if (this.sessionScopedServerNames.has(serverName)) {
16532
+ return Promise.reject(
16533
+ new Error(
16534
+ `No session-scoped MCP sender for '${serverName}' in session '${context.sessionId}'.`
16535
+ )
16536
+ );
16537
+ }
16538
+ }
16539
+ if (this.sessionScopedServerNames.has(serverName)) {
16540
+ return Promise.reject(
16541
+ new Error(
16542
+ `Session-scoped MCP server '${serverName}' requires a session context.`
16543
+ )
16544
+ );
16545
+ }
16546
+ if (!entry) {
16547
+ return Promise.reject(
16548
+ new Error(`No client MCP sender for '${serverName}'.`)
16549
+ );
16550
+ }
16551
+ return entry.sender(
16552
+ serverName,
16553
+ payload
16554
+ );
16555
+ };
16473
16556
  }, "lookup");
16474
16557
  };
16475
16558
  function createClientMcpServerProvider(registry, bridge, originatorClientId) {
@@ -16544,6 +16627,7 @@ var SERVE_CAPABILITY_REGISTRY = {
16544
16627
  // must not be polled in a tight loop.
16545
16628
  session_info: { since: "v1" },
16546
16629
  session_source_metadata: { since: "v1" },
16630
+ session_side_task: { since: "v1" },
16547
16631
  session_prompt: { since: "v1" },
16548
16632
  session_cancel: { since: "v1" },
16549
16633
  session_events: { since: "v1" },
@@ -16593,6 +16677,7 @@ var SERVE_CAPABILITY_REGISTRY = {
16593
16677
  session_context_usage: { since: "v1" },
16594
16678
  session_supported_commands: { since: "v1" },
16595
16679
  session_tasks: { since: "v1" },
16680
+ session_monitor_tool_correlation: { since: "v1" },
16596
16681
  session_stats: { since: "v1" },
16597
16682
  session_lsp: { since: "v1" },
16598
16683
  session_status: { since: "v1" },
@@ -16629,6 +16714,14 @@ var SERVE_CAPABILITY_REGISTRY = {
16629
16714
  // advertise the text/list/stat/glob surface without byte-window
16630
16715
  // support.
16631
16716
  workspace_file_bytes: { since: "v1" },
16717
+ // Daemon supports byte-cursor paging on `GET /file`: responses carry
16718
+ // `nextCursor`/`hasMore` and requests accept `cursor`. A separate tag from
16719
+ // `workspace_file_read` because the convention here is that new behavior
16720
+ // gets a new tag — a client that preflighted the old one must not silently
16721
+ // receive a surface it cannot recognise. Same split as
16722
+ // `workspace_file_bytes` from `workspace_file_read`, and
16723
+ // `session_transcript_pagination` from `session_transcript`.
16724
+ workspace_file_read_cursor: { since: "v1" },
16632
16725
  // Daemon supports hash-aware text mutation routes
16633
16726
  // (`POST /file/write`, `POST /file/edit`) behind the strict mutation
16634
16727
  // gate. Clients should still pre-flight `require_auth` separately for
@@ -16663,6 +16756,9 @@ var SERVE_CAPABILITY_REGISTRY = {
16663
16756
  // Inspect bound workspace trust and request local operator action.
16664
16757
  // Remote clients cannot directly write trustedFolders.json.
16665
16758
  workspace_trust: { since: "v1" },
16759
+ // Workspace trust policy changes rebuild the affected runtime generation
16760
+ // without restarting the daemon. V2 trust status exposes convergence.
16761
+ workspace_trust_hot_reload: { since: "v1" },
16666
16762
  // `POST /workspace/init` scaffolds an empty
16667
16763
  // `QWEN.md` (or whatever `getCurrentGeminiMdFilename()` returns) at
16668
16764
  // the bound workspace root. Body: `{force?: boolean}`. Default
@@ -16826,6 +16922,11 @@ var SERVE_CAPABILITY_REGISTRY = {
16826
16922
  // to discover plural modalities because legacy Voice tags describe only
16827
16923
  // the primary runtime and may be absent for a secondary-only setup.
16828
16924
  workspace_qualified_voice: { since: "v1" },
16925
+ // Workspace-qualified managed-memory routes
16926
+ // (`/workspaces/:workspace/memory/{remember,forget,dream}`). Each
16927
+ // registered workspace gets its own task lane; the primary lane is the
16928
+ // same instance as the singular `/workspace/memory` surface.
16929
+ workspace_qualified_memory: { since: "v1" },
16829
16930
  // Global extension catalog/mutations plus workspace-qualified activation
16830
16931
  // projections. This is additive to the legacy primary-workspace
16831
16932
  // `workspace_extensions` contract.
@@ -16918,6 +17019,10 @@ var CONDITIONAL_SERVE_FEATURES = /* @__PURE__ */ new Map([
16918
17019
  ],
16919
17020
  ["rate_limit", (toggles) => toggles.rateLimit === true],
16920
17021
  ["workspace_reload", (toggles) => toggles.reloadAvailable === true],
17022
+ [
17023
+ "workspace_trust_hot_reload",
17024
+ (toggles) => toggles.workspaceTrustHotReloadAvailable === true
17025
+ ],
16921
17026
  ["channel_reload", (toggles) => toggles.channelReloadAvailable === true],
16922
17027
  ["channel_control", (toggles) => toggles.channelControlAvailable === true],
16923
17028
  [
@@ -16966,6 +17071,10 @@ var CONDITIONAL_SERVE_FEATURES = /* @__PURE__ */ new Map([
16966
17071
  // but only becomes useful once the daemon has a secondary runtime.
16967
17072
  (toggles) => toggles.acpHttpEnabled === true && toggles.multiWorkspaceSessionsEnabled === true
16968
17073
  ],
17074
+ [
17075
+ "workspace_qualified_memory",
17076
+ (toggles) => toggles.acpHttpEnabled === true && toggles.multiWorkspaceSessionsEnabled === true
17077
+ ],
16969
17078
  ["client_mcp_over_ws", (toggles) => toggles.clientMcpOverWsEnabled === true],
16970
17079
  ["cdp_tunnel_over_ws", (toggles) => toggles.cdpTunnelOverWsEnabled === true],
16971
17080
  [
@@ -17715,6 +17824,8 @@ async function buildDaemonStatusResponse(detail, input) {
17715
17824
  listenerMaxConnections: listenerMaxConnections(input.opts.maxConnections),
17716
17825
  eventRingSize: bridgeSnapshot.limits.eventRingSize,
17717
17826
  compactedReplayMaxBytes: bridgeSnapshot.limits.compactedReplayMaxBytes,
17827
+ maxJournalEvents: bridgeSnapshot.limits.maxJournalEvents,
17828
+ maxJournalBytes: bridgeSnapshot.limits.maxJournalBytes,
17718
17829
  promptDeadlineMs: positiveFiniteOrNull(input.opts.promptDeadlineMs),
17719
17830
  writerIdleTimeoutMs: positiveFiniteOrNull(input.opts.writerIdleTimeoutMs),
17720
17831
  channelIdleTimeoutMs: bridgeSnapshot.limits.channelIdleTimeoutMs,
@@ -18331,7 +18442,7 @@ var WorkspaceVoiceCoordinator = class {
18331
18442
  state.completed = true;
18332
18443
  const abortReason = new VoiceLeaseAbortError(
18333
18444
  reason,
18334
- reason === "workspace_removed" ? "Workspace runtime was removed" : "Daemon is shutting down"
18445
+ reason === "daemon_shutdown" ? "Daemon is shutting down" : reason === "workspace_removed" ? "Workspace runtime was removed" : "Workspace trust was reconfigured"
18335
18446
  );
18336
18447
  for (const lease of state.leases) lease.abort(abortReason);
18337
18448
  if (state.leases.size === 0) {
@@ -18677,7 +18788,7 @@ on-finished/index.js:
18677
18788
  *)
18678
18789
 
18679
18790
  content-type/dist/index.js:
18680
- content-type/index.js:
18791
+ content-type/dist/index.js:
18681
18792
  (*!
18682
18793
  * content-type
18683
18794
  * Copyright(c) 2015 Douglas Christopher Wilson