@organizaone/o1-code 0.21.11 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/README.md +8 -6
  2. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  3. package/bundled/qc-helper/docs/features/mcp.md +5 -0
  4. package/bundled/qc-helper/docs/support/troubleshooting.md +120 -1
  5. package/chunks/{MaxSizedBox-2FWSV7FI.js → MaxSizedBox-RVGQPVQO.js} +17 -17
  6. package/chunks/{StandaloneSessionPicker-IAUJMK74.js → StandaloneSessionPicker-BMI42LHG.js} +34 -34
  7. package/chunks/{acp-subagent-executor-GEEL2MZ6.js → acp-subagent-executor-UAXJUFQK.js} +19 -19
  8. package/chunks/{acpAgent-OPXOXGFU.js → acpAgent-4ZEY3OME.js} +59 -59
  9. package/chunks/{agent-NCDEREDG.js → agent-NH2EHRJ3.js} +9 -9
  10. package/chunks/{agent-headless-EZZUUVIB.js → agent-headless-SNT5BKJU.js} +9 -9
  11. package/chunks/{all-providers-2ST3OWID.js → all-providers-7WVHE4GD.js} +2 -2
  12. package/chunks/{anthropicContentGenerator-7BFVPSHZ.js → anthropicContentGenerator-CJDEP3M6.js} +5 -5
  13. package/chunks/{bridge-ETQNZ6KS.js → bridge-RTND6IB6.js} +19 -19
  14. package/chunks/{ca-GU7RNZSU.js → ca-RHSADBKV.js} +1 -0
  15. package/chunks/{chunk-WWN3FNLA.js → chunk-2TXSMV3M.js} +8 -8
  16. package/chunks/{chunk-3KLKHKEB.js → chunk-3DE6KFXZ.js} +3 -3
  17. package/chunks/{chunk-HVDKV73M.js → chunk-3HYHMJZ7.js} +2 -2
  18. package/chunks/{chunk-ZDLDAW45.js → chunk-44NP2DKE.js} +13 -13
  19. package/chunks/{chunk-CB6GTOTC.js → chunk-4A6A4AS6.js} +3 -3
  20. package/chunks/{chunk-P4JFO6QK.js → chunk-4GJBQ3MM.js} +138 -65
  21. package/chunks/{chunk-UFUHC477.js → chunk-4MANEJTL.js} +5 -5
  22. package/chunks/{chunk-HTFHMT2B.js → chunk-5POXLSBR.js} +1 -1
  23. package/chunks/{chunk-MHIJKC73.js → chunk-6E6FTN4Z.js} +3 -3
  24. package/chunks/{chunk-6ZDW5III.js → chunk-6HVK5AB6.js} +5 -5
  25. package/chunks/{chunk-C7WGRJH3.js → chunk-7BGLVYAH.js} +2 -2
  26. package/chunks/{chunk-C2WMERW4.js → chunk-7CKBM5N3.js} +1 -1
  27. package/chunks/{chunk-6RTZ7UD6.js → chunk-AG4W5EZN.js} +6 -4
  28. package/chunks/{chunk-2H5AYSDZ.js → chunk-AN76M2SF.js} +1 -1
  29. package/chunks/{chunk-HDKFD7Z3.js → chunk-AOO6ZUFV.js} +1 -1
  30. package/chunks/{chunk-2MIPBAQP.js → chunk-BDZ6CKXF.js} +7 -7
  31. package/chunks/{chunk-FIBEJIUP.js → chunk-BFD5HYRL.js} +2 -2
  32. package/chunks/{chunk-67HLAKZL.js → chunk-BKZ3FWIY.js} +3 -3
  33. package/chunks/{chunk-75MPDOHZ.js → chunk-BSW6OIM7.js} +3 -3
  34. package/chunks/{chunk-D2PCRDAN.js → chunk-BUDPTG55.js} +2 -2
  35. package/chunks/{chunk-TQSGOTEA.js → chunk-CGTBVU3O.js} +3 -3
  36. package/chunks/{chunk-4WIMZMTX.js → chunk-DYPQF4VS.js} +5 -5
  37. package/chunks/{chunk-H2XB6JJR.js → chunk-E27VESCX.js} +9 -4
  38. package/chunks/{chunk-CTORCJRO.js → chunk-E6Q7UUWN.js} +2 -2
  39. package/chunks/{chunk-JJXDNZR5.js → chunk-EADQN4GH.js} +4 -4
  40. package/chunks/{chunk-OSYSBND2.js → chunk-EMXYZZ5Y.js} +13 -13
  41. package/chunks/{chunk-4BE7MFUW.js → chunk-F2EWJITM.js} +5 -5
  42. package/chunks/{chunk-NOR3RJHC.js → chunk-F4FU6VM5.js} +1 -1
  43. package/chunks/{chunk-FQGLVBOZ.js → chunk-F6YTVAGO.js} +1 -1
  44. package/chunks/{chunk-CQ3TT5CD.js → chunk-FAKFP7PE.js} +2 -2
  45. package/chunks/{chunk-U4THVRB3.js → chunk-FLBRWOOW.js} +1 -1
  46. package/chunks/{chunk-YRGZNA7E.js → chunk-FYI2IX5L.js} +2 -2
  47. package/chunks/{chunk-OED4GEPD.js → chunk-GCEFGJQL.js} +1 -1
  48. package/chunks/{chunk-WHKFXFFX.js → chunk-GDRXAL2V.js} +3 -3
  49. package/chunks/{chunk-JEIYTVIM.js → chunk-GR4V6J5L.js} +1 -1
  50. package/chunks/{chunk-DBMNMWJD.js → chunk-H7IF7CAJ.js} +2 -2
  51. package/chunks/{chunk-4D2ZKS2J.js → chunk-HA4IBUMM.js} +2 -2
  52. package/chunks/{chunk-RX4YBUI4.js → chunk-HUW7MDI7.js} +1 -1
  53. package/chunks/{chunk-JXQHE2TJ.js → chunk-IIICLNER.js} +1 -1
  54. package/chunks/{chunk-3X7E3AWH.js → chunk-IKHE2AI7.js} +1 -1
  55. package/chunks/{chunk-4HL4OWZ2.js → chunk-IZBRJ2HF.js} +2 -2
  56. package/chunks/{chunk-KXH43VZE.js → chunk-JSL55Y6I.js} +7 -7
  57. package/chunks/{chunk-RETFH5UL.js → chunk-KIF3TIH4.js} +1 -1
  58. package/chunks/{chunk-7U6M3BD5.js → chunk-KK2RIV4A.js} +3 -3
  59. package/chunks/{chunk-XHQFNIZT.js → chunk-KNWO6F63.js} +7 -7
  60. package/chunks/{chunk-PHKFNJ3T.js → chunk-KQ7E7FOJ.js} +1 -1
  61. package/chunks/{chunk-OOAOXTXA.js → chunk-KRLE7IDY.js} +1 -1
  62. package/chunks/{chunk-KROMG4JO.js → chunk-KWV4ZB3F.js} +2 -2
  63. package/chunks/{chunk-B7AGOETA.js → chunk-LGXLBYI3.js} +1 -1
  64. package/chunks/{chunk-EJS6XSIJ.js → chunk-LWC7HPRI.js} +2 -2
  65. package/chunks/{chunk-GXVPBIXP.js → chunk-N5KJNQIZ.js} +1 -1
  66. package/chunks/{chunk-XMEMQBM7.js → chunk-NAEZE5OL.js} +1 -1
  67. package/chunks/{chunk-UMTH7ZGQ.js → chunk-NPFU56EO.js} +5 -5
  68. package/chunks/{chunk-4PSWGNTB.js → chunk-O5AS4OOX.js} +2 -2
  69. package/chunks/{chunk-ANNYW7PO.js → chunk-O5BCFPOB.js} +2 -2
  70. package/chunks/{chunk-2V2HOEMT.js → chunk-OCOO6CMW.js} +3 -3
  71. package/chunks/{chunk-V3MBXP4H.js → chunk-OPWIQQ3C.js} +1 -1
  72. package/chunks/{chunk-2Q6AZPNP.js → chunk-PAEZIQXY.js} +3 -3
  73. package/chunks/{chunk-GY5IE6TZ.js → chunk-PWXL2VKU.js} +1 -1
  74. package/chunks/{chunk-FWGGR3EP.js → chunk-QUVGCD32.js} +27 -27
  75. package/chunks/{chunk-UNZI5SHV.js → chunk-QWDKIHIR.js} +3 -3
  76. package/chunks/{chunk-KWLUBNRA.js → chunk-R6HGPORE.js} +3 -3
  77. package/chunks/{chunk-IHCKAXTV.js → chunk-RANMV3VA.js} +4 -4
  78. package/chunks/{chunk-UDPULGRU.js → chunk-RQPDN23V.js} +2 -2
  79. package/chunks/{chunk-NJDYZIML.js → chunk-RUJW2EYS.js} +2 -2
  80. package/chunks/{chunk-MVKPJPKY.js → chunk-RXJMYK2R.js} +4 -4
  81. package/chunks/{chunk-AAW2TG66.js → chunk-S2JADXCO.js} +31 -3
  82. package/chunks/{chunk-PADXB376.js → chunk-SDB4PPQF.js} +10 -39
  83. package/chunks/{chunk-GIIKRH34.js → chunk-SRA3CI5I.js} +1 -1
  84. package/chunks/{chunk-NGVTH2DZ.js → chunk-T374RNAS.js} +1 -1
  85. package/chunks/{chunk-RK4C5MUJ.js → chunk-TOIXYNL6.js} +3 -3
  86. package/chunks/{chunk-DT4XHXJD.js → chunk-U7HTBVK6.js} +2 -2
  87. package/chunks/{chunk-RAPJVCIY.js → chunk-UHPISANS.js} +1 -1
  88. package/chunks/{chunk-G3MI7JUZ.js → chunk-VFMFOTNC.js} +2 -2
  89. package/chunks/{chunk-ZKQ6L46E.js → chunk-VHMXJAL4.js} +504 -93
  90. package/chunks/{chunk-OQBAZO6M.js → chunk-VMYLENRS.js} +1 -1
  91. package/chunks/{chunk-4FZTHBFE.js → chunk-VSZBTI6Z.js} +5 -5
  92. package/chunks/{chunk-IFSHKBED.js → chunk-VUPOGOOS.js} +35 -36
  93. package/chunks/{chunk-CP4FRKFD.js → chunk-WKYZUJ5O.js} +1 -1
  94. package/chunks/{chunk-CC4MR6JY.js → chunk-WZSZXEAQ.js} +1 -1
  95. package/chunks/{chunk-C4YKGP4G.js → chunk-Y4DKB3I4.js} +1 -1
  96. package/chunks/{chunk-Q25NI5KZ.js → chunk-YDBDPF4G.js} +4 -4
  97. package/chunks/{chunk-OPVYDUDV.js → chunk-YK6Z7PNX.js} +4 -4
  98. package/chunks/{chunk-RTXZX3PS.js → chunk-YRVUYXMC.js} +2 -2
  99. package/chunks/{chunk-DDYIYPX4.js → chunk-Z2HNRDOD.js} +1 -1
  100. package/chunks/{chunk-RDNXXSY5.js → chunk-Z6WSMXW5.js} +9 -9
  101. package/chunks/{codex-subagent-executor-3EQOWHZV.js → codex-subagent-executor-QKMKATHR.js} +19 -19
  102. package/chunks/{contextCommand-BWVDDD42.js → contextCommand-Q4HCSERF.js} +19 -19
  103. package/chunks/{core-runtime-3C6ZJFVM.js → core-runtime-77F57PX4.js} +17 -17
  104. package/chunks/{create-sub-session-Q46D7FQ7.js → create-sub-session-F5JXMYGW.js} +18 -18
  105. package/chunks/{daemon-git-worktree-guard-DPFNF7HP.js → daemon-git-worktree-guard-ZQCJ7RWX.js} +17 -17
  106. package/chunks/{daemon-status-provider-ILRYVOHH.js → daemon-status-provider-TOCJXPVE.js} +23 -23
  107. package/chunks/{daemon-trust-policy-I2GR6JWD.js → daemon-trust-policy-YGUS4YMJ.js} +23 -23
  108. package/chunks/{daemon-trust-policy-monitor-YM63PD4H.js → daemon-trust-policy-monitor-ENPQVTNO.js} +23 -23
  109. package/chunks/{de-25M4TEKC.js → de-SJHLEQC4.js} +1 -0
  110. package/chunks/{deferred-core-runtime-SZP2ASWT.js → deferred-core-runtime-ULSOQU3T.js} +17 -17
  111. package/chunks/{edit-T2SFPFGW.js → edit-TSSCUSYW.js} +11 -11
  112. package/chunks/{en-FL7WELC7.js → en-XSSA4TGG.js} +25 -0
  113. package/chunks/{enterPlanMode-Z7RBJRII.js → enterPlanMode-ZSQKJKZQ.js} +9 -9
  114. package/chunks/{environment-SCPE7QWN.js → environment-EAKV3SOY.js} +19 -19
  115. package/chunks/{errors-23DLSQ4Z.js → errors-GGFY5RFH.js} +19 -19
  116. package/chunks/{execution-tool-Y7YCRR5V.js → execution-tool-VACK7N45.js} +11 -11
  117. package/chunks/{execution-worker-YGX5SHJO.js → execution-worker-627YBBCO.js} +14 -14
  118. package/chunks/{exitPlanMode-7Z7YPGOB.js → exitPlanMode-MUPEFJZW.js} +9 -9
  119. package/chunks/{fast-path-Q2TZRRUS.js → fast-path-RTN33F3G.js} +2 -2
  120. package/chunks/{foreground-runner-KHJNQGAJ.js → foreground-runner-AB6I7DAO.js} +23 -19
  121. package/chunks/{fr-VHRROZTJ.js → fr-AKEMVHLD.js} +1 -0
  122. package/chunks/{glob-2QY6IKA3.js → glob-2CHWQ3H5.js} +9 -9
  123. package/chunks/{goal-tools-6OXOSX5X.js → goal-tools-XLPICZ5T.js} +9 -9
  124. package/chunks/{handleAutoUpdate-OMZNM7GO.js → handleAutoUpdate-NZPFDQK6.js} +20 -20
  125. package/chunks/{i18n-TNNGMQCX.js → i18n-FV2KRBLI.js} +18 -18
  126. package/chunks/{initializer-KOLVPWB5.js → initializer-CTPFYJCS.js} +23 -23
  127. package/chunks/{installationInfo-7IK7IYUF.js → installationInfo-IJIMCPDB.js} +17 -17
  128. package/chunks/{ja-CP7PJNQT.js → ja-P2B6FRH4.js} +1 -0
  129. package/chunks/{list-KT5BWRIW.js → list-TIROYVTJ.js} +25 -25
  130. package/chunks/{llm-6PBB4WRE.js → llm-YA3VVASU.js} +48 -48
  131. package/chunks/{llm-content-generator-VS2BMHWM.js → llm-content-generator-5BMSF46V.js} +4 -4
  132. package/chunks/{loadedSettingsAdapter-6XFZSSXJ.js → loadedSettingsAdapter-V3A6MMRM.js} +23 -23
  133. package/chunks/{local-execution-environment-ROVMYUTT.js → local-execution-environment-PFBURDOE.js} +14 -14
  134. package/chunks/{loggingContentGenerator-F453JKZE.js → loggingContentGenerator-RCDGCQQS.js} +9 -9
  135. package/chunks/{managed-npm-update-WVNAWXWS.js → managed-npm-update-4EBV5AOX.js} +94 -24
  136. package/chunks/{mcp-QQRLH5OC.js → mcp-VDFHAJKP.js} +23 -23
  137. package/chunks/{model-call-collection-RMICFHVC.js → model-call-collection-CER6UKZQ.js} +1 -1
  138. package/chunks/{model-configuration-VLRCZHZG.js → model-configuration-RJ6KIRTB.js} +24 -24
  139. package/chunks/{modelConfigUtils-2BZNN4PB.js → modelConfigUtils-YCRDHNRZ.js} +19 -19
  140. package/chunks/{monitor-SFJ7FAEY.js → monitor-3DZ6543L.js} +9 -9
  141. package/chunks/{nonInteractiveCli-C2KI5GOW.js → nonInteractiveCli-PGIOCHOP.js} +50 -50
  142. package/chunks/{nonInteractiveToolExecutor-E6BECW4D.js → nonInteractiveToolExecutor-7YVAC45H.js} +10 -10
  143. package/chunks/{notebook-edit-XMY3ZKHD.js → notebook-edit-EC3X76GJ.js} +10 -10
  144. package/chunks/{omni-PRLMNRWA.js → omni-NTS5DKKW.js} +9 -9
  145. package/chunks/{openaiContentGenerator-2QWUUMZC.js → openaiContentGenerator-HE3UYNTG.js} +6 -6
  146. package/chunks/{openaiResponsesContentGenerator-S4WUXDML.js → openaiResponsesContentGenerator-V3QXQKGY.js} +4 -4
  147. package/chunks/{processUtils-5MDVESKY.js → processUtils-Q77SJQTK.js} +2 -2
  148. package/chunks/{prompt-terminal-ledger-AD7RFSE4.js → prompt-terminal-ledger-FIRVFZQ6.js} +18 -18
  149. package/chunks/{pt-V4NPGBSB.js → pt-KI6OT4C4.js} +25 -0
  150. package/chunks/{pty-host-process-UP752FWV.js → pty-host-process-KO4H32QM.js} +1 -1
  151. package/chunks/{reactive-degrade-BSBEJJKC.js → reactive-degrade-R7SJ2NH6.js} +8 -8
  152. package/chunks/{read-file-XMDDPZB3.js → read-file-NRMGUMQM.js} +1 -1
  153. package/chunks/{resumeHistoryUtils-R2NJUVX7.js → resumeHistoryUtils-O2COILCI.js} +22 -22
  154. package/chunks/{ripGrep-JSB5IZHQ.js → ripGrep-WQJTNYRZ.js} +1 -1
  155. package/chunks/{ru-HSRK22CP.js → ru-MA3PS5E7.js} +1 -0
  156. package/chunks/{run-o1-code-serve-REM3DQ5G.js → run-o1-code-serve-TBV42OCR.js} +32 -32
  157. package/chunks/{sandboxConfig-TXRBZ3UN.js → sandboxConfig-4GA3BYJS.js} +17 -17
  158. package/chunks/{scheduled-tasks-L4Q3PXXS.js → scheduled-tasks-6VDCN5PB.js} +22 -22
  159. package/chunks/{scheduler-WDGW4GSB.js → scheduler-P5IJ7A74.js} +19 -19
  160. package/chunks/{serve-CJFLNUPV.js → serve-2ZQ532LO.js} +23 -23
  161. package/chunks/{server-J7YWGK75.js → server-BUDZHTIT.js} +48 -48
  162. package/chunks/{session-6NBIDSCB.js → session-26SOOJEN.js} +1 -1
  163. package/chunks/{session-S2NPYMMB.js → session-CKAFUD43.js} +51 -51
  164. package/chunks/{session-attachments-root-4M5MJRG7.js → session-attachments-root-MJ3BQ3LD.js} +17 -17
  165. package/chunks/{session-pr-refresh-YGTSKXSX.js → session-pr-refresh-OB6N6BHR.js} +21 -21
  166. package/chunks/{settings-LSHFACQE.js → settings-6AXVX7VZ.js} +22 -22
  167. package/chunks/{shell-F6RBXOB3.js → shell-ENJCXAKQ.js} +9 -9
  168. package/chunks/{skill-NZWCT2LR.js → skill-JI7DIIC5.js} +1 -1
  169. package/chunks/{skill-settings-BGXKPSAU.js → skill-settings-QM6FE65C.js} +22 -22
  170. package/chunks/{spawnChannel-HYEF3MUQ.js → spawnChannel-YT5XGUD4.js} +18 -18
  171. package/chunks/{standalone-update-G43JK5RC.js → standalone-update-PQTPOQ7H.js} +19 -19
  172. package/chunks/{startInteractiveUI-NHADUQTG.js → startInteractiveUI-YTXYK5FE.js} +4881 -4254
  173. package/chunks/{supervisor-runner-MDQEC376.js → supervisor-runner-GTHTY2VP.js} +6 -2
  174. package/chunks/{team-create-E6TDE5J3.js → team-create-JFKXHYVG.js} +9 -9
  175. package/chunks/{team-plan-approval-OBRXLZ6G.js → team-plan-approval-XTW6G7MY.js} +9 -9
  176. package/chunks/{terminal-image-renderer-YU3PWPDD.js → terminal-image-renderer-GDTTKHI4.js} +17 -17
  177. package/chunks/{theme-manager-TQOS647B.js → theme-manager-MRHNSAFC.js} +17 -17
  178. package/chunks/{tool-result-media-ORXPJ5VJ.js → tool-result-media-MXVFMVH2.js} +9 -9
  179. package/chunks/{tool-search-NJLOGAAS.js → tool-search-RK5PYIEA.js} +1 -1
  180. package/chunks/{total-session-admission-IBX5PP66.js → total-session-admission-KPWNF4I7.js} +19 -19
  181. package/chunks/{trustedFolders-YAQJKV5W.js → trustedFolders-SWKT5ICG.js} +18 -18
  182. package/chunks/{update-relaunch-XUL5PUQL.js → update-relaunch-EXMQLKEJ.js} +11 -6
  183. package/chunks/{updateCheck-7GCAWKQU.js → updateCheck-MP42WBSG.js} +19 -19
  184. package/chunks/{upload-config-VSTMX36S.js → upload-config-AIRMZDHT.js} +6 -6
  185. package/chunks/{useAutoAcceptIndicator-6Z5OP4AB.js → useAutoAcceptIndicator-K3T576EB.js} +26 -26
  186. package/chunks/{validateNonInterActiveAuth-H6SXP7U4.js → validateNonInterActiveAuth-4KATGUJO.js} +47 -47
  187. package/chunks/{version-BLRKUK3E.js → version-JEM4ONGO.js} +1 -1
  188. package/chunks/{web-fetch-F6U5QISL.js → web-fetch-TZXOJ74M.js} +1 -1
  189. package/chunks/{web-search-K52RBXDY.js → web-search-RDZCW5MX.js} +7 -7
  190. package/chunks/{workflow-X5K6W6Q2.js → workflow-NTR7LISE.js} +10 -10
  191. package/chunks/{workspace-providers-status-HCU5SVE2.js → workspace-providers-status-BOEHLEC6.js} +27 -27
  192. package/chunks/{workspace-registration-store-GT6MWEAI.js → workspace-registration-store-A4RBAXBF.js} +1 -1
  193. package/chunks/{workspace-registry-Q66U56G6.js → workspace-registry-QADKTWBR.js} +19 -19
  194. package/chunks/{workspace-runtime-coordinator-56FBQH4B.js → workspace-runtime-coordinator-M2LCS2XW.js} +19 -19
  195. package/chunks/{workspace-service-SH2HVHOA.js → workspace-service-7P5UZHEE.js} +26 -26
  196. package/chunks/{workspace-skills-status-CKZV3CEG.js → workspace-skills-status-MRA7H2M5.js} +23 -23
  197. package/chunks/{workspace-trust-reconciler-SE3NUJ3B.js → workspace-trust-reconciler-JTU5ZT3E.js} +25 -25
  198. package/chunks/{write-file-LJAZWR2P.js → write-file-TYMBS3Z4.js} +11 -11
  199. package/chunks/{zh-IOAADEYA.js → zh-IAQUI2JQ.js} +1 -0
  200. package/chunks/{zh-TW-G6KB7N63.js → zh-TW-OJB2TVMP.js} +1 -0
  201. package/chunks/{zoom-image-HPBEMNPD.js → zoom-image-OYDAJGIC.js} +1 -1
  202. package/cli-entry.js +13 -48
  203. package/cli.js +16 -16
  204. package/execution-worker.js +1 -1
  205. package/export-transcript-document.js +1 -1
  206. package/locales/ca.js +1 -0
  207. package/locales/de.js +1 -0
  208. package/locales/en.js +35 -0
  209. package/locales/fr.js +1 -0
  210. package/locales/ja.js +1 -0
  211. package/locales/pt.js +35 -0
  212. package/locales/ru.js +1 -0
  213. package/locales/zh-TW.js +1 -0
  214. package/locales/zh.js +1 -0
  215. package/package.json +2 -2
  216. package/release-notes.json +18 -0
  217. package/web-shell/assets/{abnfDiagram-VCTEODGH-BW_qSX9j.js → abnfDiagram-VCTEODGH-2Dj_wAO-.js} +1 -1
  218. package/web-shell/assets/{arc-ZQXM7Hbo.js → arc-CM8UdMfv.js} +1 -1
  219. package/web-shell/assets/{architectureDiagram-5GKGNRK7-Brc5rH28.js → architectureDiagram-5GKGNRK7-DVRUp2sY.js} +1 -1
  220. package/web-shell/assets/{blockDiagram-NRAW4CY4-D6Zl-D2Z.js → blockDiagram-NRAW4CY4-LlLViOqt.js} +1 -1
  221. package/web-shell/assets/{c4Diagram-UCG6FXSJ-C7tqp_U2.js → c4Diagram-UCG6FXSJ-s9MPoxak.js} +1 -1
  222. package/web-shell/assets/channel-NvsLvieh.js +1 -0
  223. package/web-shell/assets/{chunk-2Q5K7J3B-BvPCFuF7.js → chunk-2Q5K7J3B-HlTfhwBU.js} +1 -1
  224. package/web-shell/assets/{chunk-5VM5RSS4-CRamx50r.js → chunk-5VM5RSS4-CxS42ksC.js} +1 -1
  225. package/web-shell/assets/{chunk-F27PBJKO-Dx3eTDLi.js → chunk-F27PBJKO-DPeeODpW.js} +1 -1
  226. package/web-shell/assets/{chunk-G27WJ6UU-Dgyx5hmw.js → chunk-G27WJ6UU-CQYZmE5k.js} +1 -1
  227. package/web-shell/assets/{chunk-JWPE2WC7-nccxs6af.js → chunk-JWPE2WC7-Bq0TMyxv.js} +1 -1
  228. package/web-shell/assets/{chunk-LCL6LL3I-Bj5hISXt.js → chunk-LCL6LL3I-BtnHzA-D.js} +1 -1
  229. package/web-shell/assets/{chunk-POPQ4Y6H-CS8BjxDL.js → chunk-POPQ4Y6H-BRNWOxIT.js} +1 -1
  230. package/web-shell/assets/{chunk-SVP7TREG-CXV-G5Xj.js → chunk-SVP7TREG-By9FnFN2.js} +1 -1
  231. package/web-shell/assets/{chunk-XXDRQBXY-DElMboJx.js → chunk-XXDRQBXY-w0nYUkdp.js} +1 -1
  232. package/web-shell/assets/classDiagram-DTDB5LWJ-BhmijuT4.js +1 -0
  233. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BhmijuT4.js +1 -0
  234. package/web-shell/assets/{cose-bilkent-JH36ORCC-DsJYHvao.js → cose-bilkent-JH36ORCC-YpgXH3_-.js} +1 -1
  235. package/web-shell/assets/{cynefin-OW5HDTMX-zlslGDNA.js → cynefin-OW5HDTMX-BamkWNPO.js} +1 -1
  236. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DR9w-Kwt.js → cynefinDiagram-5FMLGOSQ-Dpxn8LCb.js} +1 -1
  237. package/web-shell/assets/{dagre-3AP2YEHR-ZYOK-rUH.js → dagre-3AP2YEHR-CxuJQGMd.js} +1 -1
  238. package/web-shell/assets/{diagram-S7CK7UJ4-B0HTh7cI.js → diagram-S7CK7UJ4-DjccNeUH.js} +1 -1
  239. package/web-shell/assets/{diagram-UQ7AKVKN-CTMnXgEz.js → diagram-UQ7AKVKN-8EkBLWb_.js} +1 -1
  240. package/web-shell/assets/{diagram-VSXAHHWV-D2oVCbAj.js → diagram-VSXAHHWV-CdR64P66.js} +1 -1
  241. package/web-shell/assets/{diagram-VX7I27RA-QCo6NzS8.js → diagram-VX7I27RA-CjQqXx8a.js} +1 -1
  242. package/web-shell/assets/{diagram-Z3DM3KII-KLlMNxZ9.js → diagram-Z3DM3KII-CPVQ6neh.js} +1 -1
  243. package/web-shell/assets/{ebnfDiagram-PWID7BFC-C8DJIYln.js → ebnfDiagram-PWID7BFC-Cd2nbw6-.js} +1 -1
  244. package/web-shell/assets/{erDiagram-SSCWMZ5O-C-xmRC0M.js → erDiagram-SSCWMZ5O-BGnAX0IM.js} +1 -1
  245. package/web-shell/assets/{flowDiagram-A5DVABFB-CN9JylPo.js → flowDiagram-A5DVABFB-DcX08Nbr.js} +1 -1
  246. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-QVCuotcn.js → ganttDiagram-EL5Y4UJY-CVXiMVzW.js} +1 -1
  247. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BZ_EylSY.js → gitGraphDiagram-WWUBYQGX-BBxhu9G7.js} +1 -1
  248. package/web-shell/assets/{index-Csbrycup.js → index-B5aKf1AA.js} +1 -1
  249. package/web-shell/assets/{index-ApAS0aET.js → index-zwHrQxqv.js} +3 -3
  250. package/web-shell/assets/{infoDiagram-RXCK75RN-MnxW8m9X.js → infoDiagram-RXCK75RN-C-1qC66j.js} +1 -1
  251. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DZC4Wqe4.js → ishikawaDiagram-5VMMS53U-C8_mTu_r.js} +1 -1
  252. package/web-shell/assets/{journeyDiagram-EYS64GPL-bCUBptPZ.js → journeyDiagram-EYS64GPL-CROANElQ.js} +1 -1
  253. package/web-shell/assets/{kanban-definition-3QL26DDD-Bl43MhIy.js → kanban-definition-3QL26DDD-DfeA7UBv.js} +1 -1
  254. package/web-shell/assets/{layout-BYtWDqeA.js → layout-Dkjy38dJ.js} +1 -1
  255. package/web-shell/assets/{linear-wv7ORGMW.js → linear-Bk2c8hgK.js} +1 -1
  256. package/web-shell/assets/{mermaid.core-DfKzeQBS.js → mermaid.core-BQpb5--e.js} +6 -6
  257. package/web-shell/assets/{mindmap-definition-FBJOCRG2-ltaBWmFr.js → mindmap-definition-FBJOCRG2-niwVx50h.js} +1 -1
  258. package/web-shell/assets/{pegDiagram-XKGWAZYB-Dp4T6LzR.js → pegDiagram-XKGWAZYB-CzwTglvx.js} +1 -1
  259. package/web-shell/assets/{pieDiagram-E7YTZNPT-DZgAytP1.js → pieDiagram-E7YTZNPT-BOTnaopZ.js} +1 -1
  260. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-BnpQUM3i.js → quadrantDiagram-AXDQQJYC-ANc-jmLm.js} +1 -1
  261. package/web-shell/assets/{railroadDiagram-O6MQD6OU-BFCF1Lwy.js → railroadDiagram-O6MQD6OU-DactPRXN.js} +1 -1
  262. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-F4dB_cR1.js → requirementDiagram-EFPCY7ZU-BhJYhbQx.js} +1 -1
  263. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-oaQwkTxp.js → sankeyDiagram-P5KCCOFB-CKmj4FSV.js} +1 -1
  264. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DEFa-QTi.js → sequenceDiagram-WJ2MYXX4-qqYmFKVm.js} +1 -1
  265. package/web-shell/assets/{sizeCapture-X5ZJPWSS-oBktEcI9.js → sizeCapture-X5ZJPWSS-IZThfnGj.js} +1 -1
  266. package/web-shell/assets/{stateDiagram-HBIQ2CUA-PsBju85M.js → stateDiagram-HBIQ2CUA-DRVEahaQ.js} +1 -1
  267. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Ck-zs-A0.js +1 -0
  268. package/web-shell/assets/{swimlanes-XN3QIQJK-DKhvz2lU.js → swimlanes-XN3QIQJK-C-gt3GcA.js} +1 -1
  269. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C9LTcitD.js +8 -0
  270. package/web-shell/assets/{timeline-definition-24CTP7MA-Cc8JE9z5.js → timeline-definition-24CTP7MA-CyyrqcKX.js} +1 -1
  271. package/web-shell/assets/{vennDiagram-4TSXK5OY-BWlabnUg.js → vennDiagram-4TSXK5OY-cuY4y_eV.js} +1 -1
  272. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BFmYU2kG.js → wardleyDiagram-VM6X3IG4-Dh2Zg335.js} +1 -1
  273. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-B1hIhMtj.js → xychartDiagram-S5SC5T6Z-CmGN9rRU.js} +1 -1
  274. package/web-shell/index.html +1 -1
  275. package/web-shell/sw.js +1 -1
  276. package/web-shell/assets/channel-6U9KHAGS.js +0 -1
  277. package/web-shell/assets/classDiagram-DTDB5LWJ-CzKyvpT-.js +0 -1
  278. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CzKyvpT-.js +0 -1
  279. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DhTVFds7.js +0 -1
  280. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CfBMIrnE.js +0 -8
@@ -179,7 +179,7 @@ import {
179
179
  import {
180
180
  buildModelIdContext,
181
181
  resolveModelId
182
- } from "./chunk-OOAOXTXA.js";
182
+ } from "./chunk-KRLE7IDY.js";
183
183
  import {
184
184
  isTruthy
185
185
  } from "./chunk-SYMKXR42.js";
@@ -191,7 +191,7 @@ import {
191
191
  } from "./chunk-HPQNI3OQ.js";
192
192
  import {
193
193
  isOmniDeliveryActive
194
- } from "./chunk-C2WMERW4.js";
194
+ } from "./chunk-7CKBM5N3.js";
195
195
  import {
196
196
  MediaResourceRegistry,
197
197
  evaluateMediaPolicyToolCall,
@@ -332,7 +332,7 @@ import {
332
332
  import {
333
333
  DashScopeOpenAICompatibleProvider,
334
334
  selectDashScopeThinkingKnob
335
- } from "./chunk-WHKFXFFX.js";
335
+ } from "./chunk-GDRXAL2V.js";
336
336
  import {
337
337
  InvalidStreamError,
338
338
  getToolCallPreparations,
@@ -465,7 +465,7 @@ import {
465
465
  resolveReasoningCapabilities,
466
466
  resolveReasoningForModel,
467
467
  validateReasoningCapabilities
468
- } from "./chunk-C4YKGP4G.js";
468
+ } from "./chunk-Y4DKB3I4.js";
469
469
  import {
470
470
  addDaemonRequestAttribute
471
471
  } from "./chunk-2F3GZ6WG.js";
@@ -728,7 +728,7 @@ import {
728
728
  resolveProviderProtocol,
729
729
  resolveSavedModelApiKey,
730
730
  stripRuntimeSnapshotPrefix
731
- } from "./chunk-2V2HOEMT.js";
731
+ } from "./chunk-OCOO6CMW.js";
732
732
  import {
733
733
  DEFAULT_TOKEN_LIMIT,
734
734
  OUTPUT_TOKEN_CEILING,
@@ -754,7 +754,7 @@ import {
754
754
  createContentGenerator,
755
755
  resetPreloadedContentGenerator,
756
756
  resolveContentGeneratorConfigWithSources
757
- } from "./chunk-4WIMZMTX.js";
757
+ } from "./chunk-DYPQF4VS.js";
758
758
  import {
759
759
  DEFAULT_O1CODE_MODEL
760
760
  } from "./chunk-LEXKU5FI.js";
@@ -7360,14 +7360,14 @@ var require_prompts = __commonJS({
7360
7360
  init_esbuild_shims();
7361
7361
  var $2 = exports2;
7362
7362
  var el = require_elements();
7363
- var noop2 = /* @__PURE__ */ __name((v2) => v2, "noop");
7363
+ var noop3 = /* @__PURE__ */ __name((v2) => v2, "noop");
7364
7364
  function toPrompt(type, args, opts = {}) {
7365
7365
  return new Promise((res, rej) => {
7366
7366
  const p2 = new el[type](args);
7367
- const onAbort = opts.onAbort || noop2;
7368
- const onSubmit = opts.onSubmit || noop2;
7369
- const onExit = opts.onExit || noop2;
7370
- p2.on("state", args.onState || noop2);
7367
+ const onAbort = opts.onAbort || noop3;
7368
+ const onSubmit = opts.onSubmit || noop3;
7369
+ const onExit = opts.onExit || noop3;
7370
+ p2.on("state", args.onState || noop3);
7371
7371
  p2.on("submit", (x) => res(onSubmit(x)));
7372
7372
  p2.on("exit", (x) => res(onExit(x)));
7373
7373
  p2.on("abort", (x) => rej(onAbort(x)));
@@ -7551,7 +7551,7 @@ var require_dist4 = __commonJS({
7551
7551
  __name(_asyncToGenerator, "_asyncToGenerator");
7552
7552
  var prompts2 = require_prompts();
7553
7553
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
7554
- var noop2 = /* @__PURE__ */ __name(() => {
7554
+ var noop3 = /* @__PURE__ */ __name(() => {
7555
7555
  }, "noop");
7556
7556
  function prompt() {
7557
7557
  return _prompt.apply(this, arguments);
@@ -7559,8 +7559,8 @@ var require_dist4 = __commonJS({
7559
7559
  __name(prompt, "prompt");
7560
7560
  function _prompt() {
7561
7561
  _prompt = _asyncToGenerator(function* (questions = [], {
7562
- onSubmit = noop2,
7563
- onCancel = noop2
7562
+ onSubmit = noop3,
7563
+ onCancel = noop3
7564
7564
  } = {}) {
7565
7565
  const answers = {};
7566
7566
  const override2 = prompt._override || {};
@@ -9755,14 +9755,14 @@ var require_prompts2 = __commonJS({
9755
9755
  init_esbuild_shims();
9756
9756
  var $2 = exports2;
9757
9757
  var el = require_elements2();
9758
- var noop2 = /* @__PURE__ */ __name((v2) => v2, "noop");
9758
+ var noop3 = /* @__PURE__ */ __name((v2) => v2, "noop");
9759
9759
  function toPrompt(type, args, opts = {}) {
9760
9760
  return new Promise((res, rej) => {
9761
9761
  const p2 = new el[type](args);
9762
- const onAbort = opts.onAbort || noop2;
9763
- const onSubmit = opts.onSubmit || noop2;
9764
- const onExit = opts.onExit || noop2;
9765
- p2.on("state", args.onState || noop2);
9762
+ const onAbort = opts.onAbort || noop3;
9763
+ const onSubmit = opts.onSubmit || noop3;
9764
+ const onExit = opts.onExit || noop3;
9765
+ p2.on("state", args.onState || noop3);
9766
9766
  p2.on("submit", (x) => res(onSubmit(x)));
9767
9767
  p2.on("exit", (x) => res(onExit(x)));
9768
9768
  p2.on("abort", (x) => rej(onAbort(x)));
@@ -9823,9 +9823,9 @@ var require_lib = __commonJS({
9823
9823
  init_esbuild_shims();
9824
9824
  var prompts2 = require_prompts2();
9825
9825
  var passOn = ["suggest", "format", "onState", "validate", "onRender", "type"];
9826
- var noop2 = /* @__PURE__ */ __name(() => {
9826
+ var noop3 = /* @__PURE__ */ __name(() => {
9827
9827
  }, "noop");
9828
- async function prompt(questions = [], { onSubmit = noop2, onCancel = noop2 } = {}) {
9828
+ async function prompt(questions = [], { onSubmit = noop3, onCancel = noop3 } = {}) {
9829
9829
  const answers = {};
9830
9830
  const override2 = prompt._override || {};
9831
9831
  questions = [].concat(questions);
@@ -34758,7 +34758,7 @@ var LlmChat = class {
34758
34758
  const degradeAttempt = omniMediaDegradeAttempts++;
34759
34759
  let degradeOutcome;
34760
34760
  try {
34761
- const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-BSBEJJKC.js");
34761
+ const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-R7SJ2NH6.js");
34762
34762
  degradeOutcome = await degradeOmniMediaAfterServerReject(
34763
34763
  self2.config,
34764
34764
  self2.history,
@@ -42743,10 +42743,10 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42743
42743
  __name(walkCompoundCommand, "walkCompoundCommand");
42744
42744
  function hasAbsolutePathTokenForOperation(command, cwd, filePath) {
42745
42745
  for (const token of tokenize2(command)) {
42746
- const redirectTarget2 = token.match(
42746
+ const redirectTarget3 = token.match(
42747
42747
  /^(?:1>>|1>|>>|>|2>>|2>|&>>|&>|<)([\s\S]+)$/
42748
42748
  )?.[1];
42749
- const candidate = redirectTarget2 ?? token;
42749
+ const candidate = redirectTarget3 ?? token;
42750
42750
  if (looksLikePath(candidate) && isShellAbsolutePath(candidate) && resolvePath2(candidate, cwd) === filePath) {
42751
42751
  return true;
42752
42752
  }
@@ -77492,7 +77492,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
77492
77492
  const notices = [];
77493
77493
  let omniProcessed = responseParts;
77494
77494
  if (this.config.isOmniEnabled?.()) {
77495
- const { processToolResultOmniMedia } = await import("./tool-result-media-ORXPJ5VJ.js");
77495
+ const { processToolResultOmniMedia } = await import("./tool-result-media-MXVFMVH2.js");
77496
77496
  omniProcessed = await processToolResultOmniMedia(
77497
77497
  responseParts,
77498
77498
  this.config,
@@ -80665,7 +80665,7 @@ ${body}
80665
80665
  artifacts: toolResult.artifacts
80666
80666
  } : void 0;
80667
80667
  if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
80668
- const { collectModelPolicyCall } = await import("./model-call-collection-RMICFHVC.js");
80668
+ const { collectModelPolicyCall } = await import("./model-call-collection-CER6UKZQ.js");
80669
80669
  await collectModelPolicyCall({
80670
80670
  config: this.config,
80671
80671
  batch: policyArtifacts,
@@ -83168,6 +83168,7 @@ ${text}` : text;
83168
83168
  );
83169
83169
  }
83170
83170
  }, "deliverApproval");
83171
+ const completedStatusEmitted = /* @__PURE__ */ new Set();
83171
83172
  const scheduler = new CoreToolScheduler({
83172
83173
  config: this.runtimeContext,
83173
83174
  shouldObserveProducer: /* @__PURE__ */ __name((callId) => !emittedCallIds.has(callId), "shouldObserveProducer"),
@@ -83247,6 +83248,16 @@ ${text}` : text;
83247
83248
  executionRequestByCallId.set(callId, call.request);
83248
83249
  emitToolCallStart(call.request);
83249
83250
  }
83251
+ for (const call of calls) {
83252
+ if ((call.status === "success" || call.status === "error" || call.status === "cancelled") && !completedStatusEmitted.has(call.request.callId)) {
83253
+ completedStatusEmitted.add(call.request.callId);
83254
+ this.eventEmitter?.emit("tool_status" /* TOOL_STATUS */, {
83255
+ subagentId: this.subagentId,
83256
+ callId: call.request.callId,
83257
+ success: call.status === "success"
83258
+ });
83259
+ }
83260
+ }
83250
83261
  const awaitingByCallId = new Map(
83251
83262
  calls.filter(
83252
83263
  (call) => call.status === "awaiting_approval"
@@ -87486,13 +87497,24 @@ ${taskPrompt}`;
87486
87497
  registry3.appendActivity(hookOpts.agentId, {
87487
87498
  name: event.name,
87488
87499
  description: event.description,
87489
- at: event.timestamp
87500
+ at: event.timestamp,
87501
+ callId: event.callId,
87502
+ status: "running"
87490
87503
  });
87491
87504
  }, "onToolCall");
87505
+ const onToolResult = /* @__PURE__ */ __name((event) => {
87506
+ registry3.finishActivity(
87507
+ hookOpts.agentId,
87508
+ event.callId,
87509
+ event.success
87510
+ );
87511
+ }, "onToolResult");
87492
87512
  const onUsageMetadata = /* @__PURE__ */ __name(() => {
87493
87513
  refreshLiveStats();
87494
87514
  }, "onUsageMetadata");
87495
87515
  bgEmitter.on("tool_call" /* TOOL_CALL */, onToolCall);
87516
+ bgEmitter.on("tool_result" /* TOOL_RESULT */, onToolResult);
87517
+ bgEmitter.on("tool_status" /* TOOL_STATUS */, onToolResult);
87496
87518
  bgEmitter.on("usage_metadata" /* USAGE_METADATA */, onUsageMetadata);
87497
87519
  const cleanupApprovalBridge = shouldBubble ? registry3.bridgeApprovalEvents(hookOpts.agentId, bgEmitter) : void 0;
87498
87520
  const cleanupOwnedMonitorNotifications2 = bgSubagent.continuationBlockedReason ? () => {
@@ -87540,6 +87562,8 @@ ${taskPrompt}`;
87540
87562
  );
87541
87563
  residentRegistered = false;
87542
87564
  bgEmitter.off("tool_call" /* TOOL_CALL */, onToolCall);
87565
+ bgEmitter.off("tool_result" /* TOOL_RESULT */, onToolResult);
87566
+ bgEmitter.off("tool_status" /* TOOL_STATUS */, onToolResult);
87543
87567
  bgEmitter.off("usage_metadata" /* USAGE_METADATA */, onUsageMetadata);
87544
87568
  cleanupApprovalBridge?.();
87545
87569
  cleanupOwnedMonitorNotifications2();
@@ -88001,13 +88025,20 @@ output_file: ${jsonlPath} (for review after the completion notification, not for
88001
88025
  registry2.appendActivity(hookOpts.agentId, {
88002
88026
  name: event.name,
88003
88027
  description: event.description,
88004
- at: event.timestamp
88028
+ at: event.timestamp,
88029
+ callId: event.callId,
88030
+ status: "running"
88005
88031
  });
88006
88032
  }, "onFgToolCall");
88033
+ const onFgToolResult = /* @__PURE__ */ __name((event) => {
88034
+ registry2.finishActivity(hookOpts.agentId, event.callId, event.success);
88035
+ }, "onFgToolResult");
88007
88036
  const onFgUsageMetadata = /* @__PURE__ */ __name(() => {
88008
88037
  refreshFgLiveStats();
88009
88038
  }, "onFgUsageMetadata");
88010
88039
  runtimeEventEmitter.on("tool_call" /* TOOL_CALL */, onFgToolCall);
88040
+ runtimeEventEmitter.on("tool_result" /* TOOL_RESULT */, onFgToolResult);
88041
+ runtimeEventEmitter.on("tool_status" /* TOOL_STATUS */, onFgToolResult);
88011
88042
  runtimeEventEmitter.on("usage_metadata" /* USAGE_METADATA */, onFgUsageMetadata);
88012
88043
  const approvalAncestorId = findBackgroundedAncestorAgentId(
88013
88044
  registry2,
@@ -88122,6 +88153,8 @@ ${partial2}${wtSuffix}`
88122
88153
  } catch {
88123
88154
  }
88124
88155
  runtimeEventEmitter.off("tool_call" /* TOOL_CALL */, onFgToolCall);
88156
+ runtimeEventEmitter.off("tool_result" /* TOOL_RESULT */, onFgToolResult);
88157
+ runtimeEventEmitter.off("tool_status" /* TOOL_STATUS */, onFgToolResult);
88125
88158
  runtimeEventEmitter.off(
88126
88159
  "usage_metadata" /* USAGE_METADATA */,
88127
88160
  onFgUsageMetadata
@@ -92923,6 +92956,20 @@ var BackgroundTaskRegistry = class {
92923
92956
  entry.recentActivities = next;
92924
92957
  this.emitActivityChange(entry);
92925
92958
  }
92959
+ finishActivity(agentId, callId, success2) {
92960
+ const entry = this.agents.get(agentId);
92961
+ if (!entry || entry.status !== "running") return;
92962
+ const activities = entry.recentActivities;
92963
+ const status = success2 ? "completed" : "failed";
92964
+ if (!activities?.some(
92965
+ (activity) => activity.callId === callId && activity.status !== status
92966
+ ))
92967
+ return;
92968
+ entry.recentActivities = activities.map(
92969
+ (activity) => activity.callId === callId ? { ...activity, status } : activity
92970
+ );
92971
+ this.emitActivityChange(entry);
92972
+ }
92926
92973
  updateTodoItems(agentId, todoItems) {
92927
92974
  const entry = this.agents.get(agentId);
92928
92975
  if (!entry || entry.status !== "running") return;
@@ -94417,13 +94464,20 @@ ${continuationPrompt}` : continuationPrompt
94417
94464
  registry2.appendActivity(meta4.agentId, {
94418
94465
  name: event.name,
94419
94466
  description: event.description,
94420
- at: event.timestamp
94467
+ at: event.timestamp,
94468
+ callId: event.callId,
94469
+ status: "running"
94421
94470
  });
94422
94471
  }, "onToolCall");
94472
+ const onToolResult = /* @__PURE__ */ __name((event) => {
94473
+ registry2.finishActivity(meta4.agentId, event.callId, event.success);
94474
+ }, "onToolResult");
94423
94475
  const onUsageMetadata = /* @__PURE__ */ __name(() => {
94424
94476
  refreshLiveStats();
94425
94477
  }, "onUsageMetadata");
94426
94478
  bgEmitter.on("tool_call" /* TOOL_CALL */, onToolCall);
94479
+ bgEmitter.on("tool_result" /* TOOL_RESULT */, onToolResult);
94480
+ bgEmitter.on("tool_status" /* TOOL_STATUS */, onToolResult);
94427
94481
  bgEmitter.on("usage_metadata" /* USAGE_METADATA */, onUsageMetadata);
94428
94482
  const cleanupApprovalBridge = shouldBubble ? registry2.bridgeApprovalEvents(meta4.agentId, bgEmitter) : void 0;
94429
94483
  const canStayResident = !target.isFork && meta4.isolation !== "worktree" && (!target.subagentConfig?.hooks || Object.keys(target.subagentConfig.hooks).length === 0);
@@ -94441,6 +94495,8 @@ ${continuationPrompt}` : continuationPrompt
94441
94495
  registry2.unregisterResidentAgent(meta4.agentId, residentController);
94442
94496
  residentRegistered = false;
94443
94497
  bgEmitter.off("tool_call" /* TOOL_CALL */, onToolCall);
94498
+ bgEmitter.off("tool_result" /* TOOL_RESULT */, onToolResult);
94499
+ bgEmitter.off("tool_status" /* TOOL_STATUS */, onToolResult);
94444
94500
  bgEmitter.off("usage_metadata" /* USAGE_METADATA */, onUsageMetadata);
94445
94501
  cleanupApprovalBridge?.();
94446
94502
  cleanupOwnedMonitorNotifications?.();
@@ -104852,7 +104908,7 @@ init_esbuild_shims();
104852
104908
  // node_modules/@modelcontextprotocol/client/dist/index.mjs
104853
104909
  init_esbuild_shims();
104854
104910
 
104855
- // node_modules/@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs
104911
+ // node_modules/@modelcontextprotocol/client/dist/src-WCy6ifGf.mjs
104856
104912
  init_esbuild_shims();
104857
104913
 
104858
104914
  // node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs
@@ -105861,7 +105917,7 @@ var OAuthTokenRevocationRequestSchema2 = object({
105861
105917
  token_type_hint: string2().optional()
105862
105918
  }).strip();
105863
105919
 
105864
- // node_modules/@modelcontextprotocol/client/dist/src-xKF0PJN-.mjs
105920
+ // node_modules/@modelcontextprotocol/client/dist/src-WCy6ifGf.mjs
105865
105921
  var BRANDS = Symbol.for("mcp.sdk.errorBrands");
105866
105922
  function stampErrorBrands(instance, ctor) {
105867
105923
  const brands = /* @__PURE__ */ new Set();
@@ -108147,7 +108203,8 @@ function build() {
108147
108203
  ListResourceTemplatesResultResponseSchema: wireResultResponse(ListResourceTemplatesResultSchema$1),
108148
108204
  ReadResourceResultResponseSchema: wireResultResponse(union([ReadResourceResultSchema$1, InputRequiredResultSchema])),
108149
108205
  CompleteResultResponseSchema: wireResultResponse(CompleteResultSchema$1),
108150
- DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1)
108206
+ DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1),
108207
+ SubscriptionsListenResultResponseSchema: wireResultResponse(SubscriptionsListenResultSchema$1)
108151
108208
  };
108152
108209
  }
108153
108210
  __name(build, "build");
@@ -108680,6 +108737,10 @@ function isSpecNotificationMethod(method) {
108680
108737
  return ALL_CODECS.some((codec2) => codec2.hasNotificationMethod(method));
108681
108738
  }
108682
108739
  __name(isSpecNotificationMethod, "isSpecNotificationMethod");
108740
+ function isExtensionReusedRequestMethod(method) {
108741
+ return method === "tasks/get" || method === "tasks/cancel";
108742
+ }
108743
+ __name(isExtensionReusedRequestMethod, "isExtensionReusedRequestMethod");
108683
108744
  var ALL_CODECS = [rev2025Codec, rev2026Codec];
108684
108745
  var schemas_exports3 = /* @__PURE__ */ __exportAll({
108685
108746
  AnnotationsSchema: /* @__PURE__ */ __name(() => AnnotationsSchema2, "AnnotationsSchema"),
@@ -109762,6 +109823,8 @@ var Protocol2 = class {
109762
109823
  _transport;
109763
109824
  _requestMessageId = 0;
109764
109825
  _requestHandlers = /* @__PURE__ */ new Map();
109826
+ /** Methods registered with an explicit schema; the era gate in `_onrequest` reads it for the Tasks extension names. */
109827
+ _customSchemaRequestMethods = /* @__PURE__ */ new Set();
109765
109828
  _requestHandlerAbortControllers = /* @__PURE__ */ new Map();
109766
109829
  _notificationHandlers = /* @__PURE__ */ new Map();
109767
109830
  _responseHandlers = /* @__PURE__ */ new Map();
@@ -110045,7 +110108,7 @@ var Protocol2 = class {
110045
110108
  return;
110046
110109
  }
110047
110110
  }
110048
- if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method)) {
110111
+ if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method) && !(isExtensionReusedRequestMethod(request.method) && this._customSchemaRequestMethods.has(request.method))) {
110049
110112
  sendErrorResponse(ProtocolErrorCode.MethodNotFound, "Method not found");
110050
110113
  return;
110051
110114
  }
@@ -110178,8 +110241,11 @@ var Protocol2 = class {
110178
110241
  }
110179
110242
  request(request, schemaOrOptions, maybeOptions) {
110180
110243
  const codec2 = this._resolveOutboundCodec(request.method);
110244
+ if (isStandardSchema(schemaOrOptions)) {
110245
+ if (!isExtensionReusedRequestMethod(request.method)) this._assertOutboundRequestInEra(codec2, request.method);
110246
+ return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
110247
+ }
110181
110248
  this._assertOutboundRequestInEra(codec2, request.method);
110182
- if (isStandardSchema(schemaOrOptions)) return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
110183
110249
  const validate2 = codecResultValidator(codec2, request.method);
110184
110250
  if (validate2 === void 0) throw new TypeError(`'${request.method}' is not a spec method; pass a result schema as the second argument to request().`);
110185
110251
  return this._requestWithSchemaViaCodec(codec2, request, validate2, schemaOrOptions);
@@ -110423,6 +110489,8 @@ var Protocol2 = class {
110423
110489
  return maybeHandler(parsed.data, ctx);
110424
110490
  }, "stored");
110425
110491
  else throw new TypeError("setRequestHandler: handler is required");
110492
+ if (typeof schemasOrHandler === "function") this._customSchemaRequestMethods.delete(method);
110493
+ else this._customSchemaRequestMethods.add(method);
110426
110494
  this._requestHandlers.set(method, this._wrapHandler(method, stored));
110427
110495
  }
110428
110496
  /**
@@ -110452,6 +110520,7 @@ var Protocol2 = class {
110452
110520
  */
110453
110521
  removeRequestHandler(method) {
110454
110522
  this._requestHandlers.delete(method);
110523
+ this._customSchemaRequestMethods.delete(method);
110455
110524
  }
110456
110525
  /**
110457
110526
  * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed.
@@ -110741,6 +110810,72 @@ function createFetchWithInit2(baseFetch = fetch, baseInit) {
110741
110810
  };
110742
110811
  }
110743
110812
  __name(createFetchWithInit2, "createFetchWithInit");
110813
+ var REDIRECT_STATUSES2 = /* @__PURE__ */ new Set([
110814
+ 301,
110815
+ 302,
110816
+ 303,
110817
+ 307,
110818
+ 308
110819
+ ]);
110820
+ var MAX_REDIRECTS2 = 5;
110821
+ function isWithinOrigin2(from, to2) {
110822
+ if (from.protocol === to2.protocol && from.host === to2.host) return true;
110823
+ return from.protocol === "http:" && to2.protocol === "https:" && from.hostname === to2.hostname && !from.port && !to2.port;
110824
+ }
110825
+ __name(isWithinOrigin2, "isWithinOrigin");
110826
+ function redirectTarget2(url2, response) {
110827
+ const location = REDIRECT_STATUSES2.has(response.status) ? response.headers?.get("location") : void 0;
110828
+ if (!location) return void 0;
110829
+ try {
110830
+ return new URL(location, url2);
110831
+ } catch {
110832
+ return;
110833
+ }
110834
+ }
110835
+ __name(redirectTarget2, "redirectTarget");
110836
+ var leftToFetch = /* @__PURE__ */ new WeakSet();
110837
+ function fetchLeavingRedirects2(baseFetch) {
110838
+ const copy = /* @__PURE__ */ __name((url2, init) => baseFetch(url2, init), "copy");
110839
+ leftToFetch.add(copy);
110840
+ return copy;
110841
+ }
110842
+ __name(fetchLeavingRedirects2, "fetchLeavingRedirects");
110843
+ function fetchWithinOrigin2(baseFetch) {
110844
+ if (leftToFetch.has(baseFetch)) return baseFetch;
110845
+ return async (url2, init) => {
110846
+ if (init?.redirect === "error" || init?.redirect === "manual") return baseFetch(url2, init);
110847
+ const method = (init?.method ?? "GET").toUpperCase();
110848
+ let current = url2;
110849
+ for (let followed = 0; ; followed++) {
110850
+ const response = await baseFetch(current, {
110851
+ ...init,
110852
+ redirect: "manual"
110853
+ });
110854
+ const target = redirectTarget2(current, response);
110855
+ if (!target || followed === MAX_REDIRECTS2) return response;
110856
+ const from = new URL(current);
110857
+ const keepsMethod = method === "GET" || response.status === 307 || response.status === 308;
110858
+ const keepsUserinfo = !(target.username || target.password) || target.username === from.username && target.password === from.password;
110859
+ if (!keepsMethod || !keepsUserinfo || !isWithinOrigin2(from, target)) return response;
110860
+ await response.text?.().catch(() => {
110861
+ });
110862
+ current = target;
110863
+ }
110864
+ };
110865
+ }
110866
+ __name(fetchWithinOrigin2, "fetchWithinOrigin");
110867
+ function unfollowedRedirect2(url2, response) {
110868
+ if (response.type === "opaqueredirect") return "Redirect not followed: this runtime does not expose where it points";
110869
+ const target = redirectTarget2(response.url || url2, response);
110870
+ if (!target) return void 0;
110871
+ target.username = target.password = target.search = target.hash = "";
110872
+ if (target.protocol === "http:" && new URL(response.url || url2).protocol === "https:") {
110873
+ target.protocol = "https:";
110874
+ return `Redirect from https to plain http not followed; try ${target.href} as the endpoint`;
110875
+ }
110876
+ return `Redirect to ${target.href} not followed; use that URL as the endpoint if it is the intended server`;
110877
+ }
110878
+ __name(unfollowedRedirect2, "unfollowedRedirect");
110744
110879
 
110745
110880
  // node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs
110746
110881
  init_esbuild_shims();
@@ -118484,6 +118619,228 @@ function getBaseURL() {
118484
118619
  }
118485
118620
  __name(getBaseURL, "getBaseURL");
118486
118621
 
118622
+ // node_modules/@modelcontextprotocol/client/node_modules/eventsource-parser/dist/stream.js
118623
+ init_esbuild_shims();
118624
+
118625
+ // node_modules/@modelcontextprotocol/client/node_modules/eventsource-parser/dist/index.js
118626
+ init_esbuild_shims();
118627
+ var ParseError2 = class extends Error {
118628
+ static {
118629
+ __name(this, "ParseError");
118630
+ }
118631
+ constructor(message, options2) {
118632
+ super(message), this.name = "ParseError", this.type = options2.type, this.field = options2.field, this.value = options2.value, this.line = options2.line;
118633
+ }
118634
+ };
118635
+ var LF = 10;
118636
+ var CR = 13;
118637
+ var SPACE = 32;
118638
+ function noop2(_arg) {
118639
+ }
118640
+ __name(noop2, "noop");
118641
+ function createParser2(config2) {
118642
+ if (typeof config2 == "function")
118643
+ throw new TypeError(
118644
+ "`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
118645
+ );
118646
+ const { onEvent = noop2, onError = noop2, onRetry = noop2, onComment, maxBufferSize } = config2, pendingFragments = [];
118647
+ let pendingFragmentsLength = 0, isFirstChunk = true, id, data = "", dataLines = 0, eventType, terminated = false;
118648
+ function feed(chunk) {
118649
+ if (terminated)
118650
+ throw new Error(
118651
+ "Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
118652
+ );
118653
+ if (isFirstChunk && (isFirstChunk = false, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
118654
+ const trailing2 = processLines(chunk);
118655
+ trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
118656
+ return;
118657
+ }
118658
+ if (chunk.indexOf(`
118659
+ `) === -1 && chunk.indexOf("\r") === -1) {
118660
+ pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
118661
+ return;
118662
+ }
118663
+ pendingFragments.push(chunk);
118664
+ const input2 = pendingFragments.join("");
118665
+ pendingFragments.length = 0, pendingFragmentsLength = 0;
118666
+ const trailing = processLines(input2);
118667
+ trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
118668
+ }
118669
+ __name(feed, "feed");
118670
+ function checkBufferSize() {
118671
+ maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = true, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
118672
+ new ParseError2(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
118673
+ type: "max-buffer-size-exceeded"
118674
+ })
118675
+ )));
118676
+ }
118677
+ __name(checkBufferSize, "checkBufferSize");
118678
+ function processLines(chunk) {
118679
+ let searchIndex = 0;
118680
+ if (chunk.indexOf("\r") === -1) {
118681
+ let lfIndex = chunk.indexOf(`
118682
+ `, searchIndex);
118683
+ for (; lfIndex !== -1; ) {
118684
+ if (searchIndex === lfIndex) {
118685
+ dataLines > 0 && onEvent({ id, event: eventType, data }), id = void 0, data = "", dataLines = 0, eventType = void 0, searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
118686
+ `, searchIndex);
118687
+ continue;
118688
+ }
118689
+ const firstCharCode = chunk.charCodeAt(searchIndex);
118690
+ if (isDataPrefix(chunk, searchIndex, firstCharCode)) {
118691
+ const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE ? searchIndex + 6 : searchIndex + 5, value = chunk.slice(valueStart, lfIndex);
118692
+ if (dataLines === 0 && chunk.charCodeAt(lfIndex + 1) === LF) {
118693
+ onEvent({ id, event: eventType, data: value }), id = void 0, data = "", eventType = void 0, searchIndex = lfIndex + 2, lfIndex = chunk.indexOf(`
118694
+ `, searchIndex);
118695
+ continue;
118696
+ }
118697
+ data = dataLines === 0 ? value : `${data}
118698
+ ${value}`, dataLines++;
118699
+ } else isEventPrefix(chunk, searchIndex, firstCharCode) ? eventType = chunk.slice(
118700
+ chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6,
118701
+ lfIndex
118702
+ ) || void 0 : parseLine(chunk, searchIndex, lfIndex);
118703
+ searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
118704
+ `, searchIndex);
118705
+ }
118706
+ return chunk.slice(searchIndex);
118707
+ }
118708
+ for (; searchIndex < chunk.length; ) {
118709
+ const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
118710
+ `, searchIndex);
118711
+ let lineEnd = -1;
118712
+ if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = crIndex < lfIndex ? crIndex : lfIndex : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1)
118713
+ break;
118714
+ parseLine(chunk, searchIndex, lineEnd), searchIndex = lineEnd + 1, chunk.charCodeAt(searchIndex - 1) === CR && chunk.charCodeAt(searchIndex) === LF && searchIndex++;
118715
+ }
118716
+ return chunk.slice(searchIndex);
118717
+ }
118718
+ __name(processLines, "processLines");
118719
+ function parseLine(chunk, start, end) {
118720
+ if (start === end) {
118721
+ dispatchEvent();
118722
+ return;
118723
+ }
118724
+ const firstCharCode = chunk.charCodeAt(start);
118725
+ if (isDataPrefix(chunk, start, firstCharCode)) {
118726
+ const valueStart = chunk.charCodeAt(start + 5) === SPACE ? start + 6 : start + 5, value2 = chunk.slice(valueStart, end);
118727
+ data = dataLines === 0 ? value2 : `${data}
118728
+ ${value2}`, dataLines++;
118729
+ return;
118730
+ }
118731
+ if (isEventPrefix(chunk, start, firstCharCode)) {
118732
+ eventType = chunk.slice(chunk.charCodeAt(start + 6) === SPACE ? start + 7 : start + 6, end) || void 0;
118733
+ return;
118734
+ }
118735
+ if (firstCharCode === 105 && chunk.charCodeAt(start + 1) === 100 && chunk.charCodeAt(start + 2) === 58) {
118736
+ const value2 = chunk.slice(chunk.charCodeAt(start + 3) === SPACE ? start + 4 : start + 3, end);
118737
+ value2.includes("\0") || (id = value2);
118738
+ return;
118739
+ }
118740
+ if (firstCharCode === 58) {
118741
+ if (onComment) {
118742
+ const line2 = chunk.slice(start, end);
118743
+ onComment(line2.slice(chunk.charCodeAt(start + 1) === SPACE ? 2 : 1));
118744
+ }
118745
+ return;
118746
+ }
118747
+ const line = chunk.slice(start, end), fieldSeparatorIndex = line.indexOf(":");
118748
+ if (fieldSeparatorIndex === -1) {
118749
+ processField(line, "", line);
118750
+ return;
118751
+ }
118752
+ const field = line.slice(0, fieldSeparatorIndex), offset = line.charCodeAt(fieldSeparatorIndex + 1) === SPACE ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
118753
+ processField(field, value, line);
118754
+ }
118755
+ __name(parseLine, "parseLine");
118756
+ function processField(field, value, line) {
118757
+ switch (field) {
118758
+ case "event":
118759
+ eventType = value || void 0;
118760
+ break;
118761
+ case "data":
118762
+ data = dataLines === 0 ? value : `${data}
118763
+ ${value}`, dataLines++;
118764
+ break;
118765
+ case "id":
118766
+ value.includes("\0") || (id = value);
118767
+ break;
118768
+ case "retry":
118769
+ /^\d+$/.test(value) ? onRetry(parseInt(value, 10)) : onError(
118770
+ new ParseError2(`Invalid \`retry\` value: "${value}"`, {
118771
+ type: "invalid-retry",
118772
+ value,
118773
+ line
118774
+ })
118775
+ );
118776
+ break;
118777
+ default:
118778
+ onError(
118779
+ new ParseError2(
118780
+ `Unknown field "${field.length > 20 ? `${field.slice(0, 20)}\u2026` : field}"`,
118781
+ { type: "unknown-field", field, value, line }
118782
+ )
118783
+ );
118784
+ break;
118785
+ }
118786
+ }
118787
+ __name(processField, "processField");
118788
+ function dispatchEvent() {
118789
+ dataLines > 0 && onEvent({
118790
+ id,
118791
+ event: eventType,
118792
+ data
118793
+ }), id = void 0, data = "", dataLines = 0, eventType = void 0;
118794
+ }
118795
+ __name(dispatchEvent, "dispatchEvent");
118796
+ function reset(options2 = {}) {
118797
+ if (options2.consume && pendingFragments.length > 0) {
118798
+ const incompleteLine = pendingFragments.join("");
118799
+ parseLine(incompleteLine, 0, incompleteLine.length);
118800
+ }
118801
+ isFirstChunk = true, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = false;
118802
+ }
118803
+ __name(reset, "reset");
118804
+ return { feed, reset };
118805
+ }
118806
+ __name(createParser2, "createParser");
118807
+ function isDataPrefix(chunk, i, firstCharCode) {
118808
+ return firstCharCode === 100 && chunk.charCodeAt(i + 1) === 97 && chunk.charCodeAt(i + 2) === 116 && chunk.charCodeAt(i + 3) === 97 && chunk.charCodeAt(i + 4) === 58;
118809
+ }
118810
+ __name(isDataPrefix, "isDataPrefix");
118811
+ function isEventPrefix(chunk, i, firstCharCode) {
118812
+ return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
118813
+ }
118814
+ __name(isEventPrefix, "isEventPrefix");
118815
+
118816
+ // node_modules/@modelcontextprotocol/client/node_modules/eventsource-parser/dist/stream.js
118817
+ var EventSourceParserStream2 = class extends TransformStream {
118818
+ static {
118819
+ __name(this, "EventSourceParserStream");
118820
+ }
118821
+ constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
118822
+ let parser2;
118823
+ super({
118824
+ start(controller) {
118825
+ parser2 = createParser2({
118826
+ onEvent: /* @__PURE__ */ __name((event) => {
118827
+ controller.enqueue(event);
118828
+ }, "onEvent"),
118829
+ onError(error62) {
118830
+ typeof onError == "function" && onError(error62), (onError === "terminate" || error62.type === "max-buffer-size-exceeded") && controller.error(error62);
118831
+ },
118832
+ onRetry,
118833
+ onComment,
118834
+ maxBufferSize
118835
+ });
118836
+ },
118837
+ transform(chunk) {
118838
+ parser2.feed(chunk);
118839
+ }
118840
+ });
118841
+ }
118842
+ };
118843
+
118487
118844
  // node_modules/@modelcontextprotocol/client/dist/index.mjs
118488
118845
  var OAuthClientFlowError = class extends Error {
118489
118846
  static {
@@ -119099,12 +119456,13 @@ async function discoverOAuthProtectedResourceMetadata2(serverUrl, opts, fetchFn
119099
119456
  }
119100
119457
  __name(discoverOAuthProtectedResourceMetadata2, "discoverOAuthProtectedResourceMetadata");
119101
119458
  async function fetchWithCorsRetry2(url2, headers, fetchFn = fetch) {
119459
+ const withinOrigin = fetchWithinOrigin2(fetchFn);
119102
119460
  try {
119103
- return await fetchFn(url2, { headers });
119461
+ return await withinOrigin(url2, { headers });
119104
119462
  } catch (error62) {
119105
119463
  if (!(error62 instanceof TypeError) || !CORS_IS_POSSIBLE) throw error62;
119106
119464
  if (headers) try {
119107
- return await fetchFn(url2, {});
119465
+ return await withinOrigin(url2, {});
119108
119466
  } catch (retryError) {
119109
119467
  if (!(retryError instanceof TypeError)) throw retryError;
119110
119468
  return;
@@ -119125,7 +119483,7 @@ __name(tryMetadataDiscovery2, "tryMetadataDiscovery");
119125
119483
  function shouldAttemptFallback2(response, pathname) {
119126
119484
  if (!response) return true;
119127
119485
  if (pathname === "/") return false;
119128
- return response.status >= 400 && response.status < 500 || response.status === 502;
119486
+ return !response.ok && response.status < 500 || response.status === 502;
119129
119487
  }
119130
119488
  __name(shouldAttemptFallback2, "shouldAttemptFallback");
119131
119489
  async function discoverMetadataWithFallback2(serverUrl, wellKnownType, fetchFn, opts) {
@@ -119185,7 +119543,7 @@ async function discoverAuthorizationServerMetadata2(authorizationServerUrl, { fe
119185
119543
  if (!response.ok) {
119186
119544
  await response.text?.().catch(() => {
119187
119545
  });
119188
- if (response.status >= 400 && response.status < 500 || response.status === 502) continue;
119546
+ if (response.status < 500 || response.status === 502) continue;
119189
119547
  throw new Error(`HTTP ${response.status} trying to load ${type === "oauth" ? "OAuth" : "OpenID provider"} metadata from ${endpointUrl}`);
119190
119548
  }
119191
119549
  const parsed = type === "oauth" ? OAuthMetadataSchema2.parse(await response.json()) : OpenIdProviderDiscoveryMetadataSchema2.parse(await response.json());
@@ -119271,7 +119629,7 @@ async function executeTokenRequest2(authorizationServerUrl, { metadata, tokenReq
119271
119629
  htm: "POST",
119272
119630
  htu: tokenUrl
119273
119631
  }));
119274
- return (fetchFn ?? fetch)(tokenUrl, {
119632
+ return fetchWithinOrigin2(fetchFn ?? fetch)(tokenUrl, {
119275
119633
  method: "POST",
119276
119634
  headers: requestHeaders,
119277
119635
  body: tokenRequestParams
@@ -119358,7 +119716,7 @@ async function registerClient2(authorizationServerUrl, { metadata, clientMetadat
119358
119716
  ...clientMetadata,
119359
119717
  ...scope === void 0 ? {} : { scope }
119360
119718
  };
119361
- const response = await (fetchFn ?? fetch)(registrationUrl, {
119719
+ const response = await fetchWithinOrigin2(fetchFn ?? fetch)(registrationUrl, {
119362
119720
  method: "POST",
119363
119721
  headers: { "Content-Type": "application/json" },
119364
119722
  body: JSON.stringify(submittedMetadata)
@@ -119875,6 +120233,11 @@ function classifyProbeOutcome(outcome, context2) {
119875
120233
  return classifyHttpError(outcome, context2);
119876
120234
  case "network-error":
119877
120235
  return classifyNetworkError(outcome.error, context2);
120236
+ case "unusable-reply":
120237
+ return {
120238
+ kind: "error",
120239
+ error: new SdkError(SdkErrorCode.EraNegotiationFailed, `Version negotiation probe failed: the server answered with an unusable reply (${describeError2(outcome.error)})`, { cause: outcome.error }, { cause: outcome.error })
120240
+ };
119878
120241
  case "auth-required":
119879
120242
  return {
119880
120243
  kind: "error",
@@ -120183,6 +120546,11 @@ function buildProbeRequest(id, protocolVersion, clientInfo, capabilities) {
120183
120546
  };
120184
120547
  }
120185
120548
  __name(buildProbeRequest, "buildProbeRequest");
120549
+ function isUnusableReplyError(error62) {
120550
+ if (error62 instanceof SdkError && error62.code === SdkErrorCode.ClientHttpUnexpectedContent) return true;
120551
+ return error62 instanceof Error && error62.name === "SyntaxError";
120552
+ }
120553
+ __name(isUnusableReplyError, "isUnusableReplyError");
120186
120554
  function normalizeReply(reply, timeoutMs) {
120187
120555
  switch (reply.kind) {
120188
120556
  case "response":
@@ -120208,6 +120576,10 @@ function normalizeReply(reply, timeoutMs) {
120208
120576
  statusText: error62.data.statusText
120209
120577
  };
120210
120578
  }
120579
+ if (isUnusableReplyError(error62)) return {
120580
+ kind: "unusable-reply",
120581
+ error: error62
120582
+ };
120211
120583
  return {
120212
120584
  kind: "network-error",
120213
120585
  error: error62
@@ -121850,6 +122222,7 @@ var SSEClientTransport = class {
121850
122222
  _skipIssuerMetadataValidation;
121851
122223
  _fetch;
121852
122224
  _fetchWithInit;
122225
+ _redirectPolicy;
121853
122226
  _dpop;
121854
122227
  _protocolVersion;
121855
122228
  onclose;
@@ -121871,9 +122244,21 @@ var SSEClientTransport = class {
121871
122244
  this._fetch = this._dpop(opts.fetch ?? fetch);
121872
122245
  }
121873
122246
  } else this._authProvider = opts?.authProvider;
122247
+ this._redirectPolicy = opts?.redirectPolicy;
121874
122248
  this._fetchWithInit = createFetchWithInit2(opts?.fetch, opts?.requestInit);
122249
+ if (this._redirectPolicy === "follow") this._fetchWithInit = fetchLeavingRedirects2(this._fetchWithInit);
121875
122250
  }
121876
122251
  _last401Response;
122252
+ _connectAuthRetried = false;
122253
+ /** `baseFetch` with redirects handled as `redirectPolicy` says. */
122254
+ _redirects(baseFetch) {
122255
+ return this._redirectPolicy === "follow" ? baseFetch : fetchWithinOrigin2(baseFetch);
122256
+ }
122257
+ /** Error text for a redirect `response` that was not followed, or `undefined` for any other response. */
122258
+ _unfollowedRedirect(url2, response) {
122259
+ const text = this._redirectPolicy === "follow" ? void 0 : unfollowedRedirect2(url2, response);
122260
+ return text && `${text} (redirectPolicy: 'same-origin')`;
122261
+ }
121877
122262
  async _commonHeaders() {
121878
122263
  const headers = new Headers(this._requestInit?.headers || void 0);
121879
122264
  let token;
@@ -121888,7 +122273,8 @@ var SSEClientTransport = class {
121888
122273
  }
121889
122274
  _startOrAuth() {
121890
122275
  const eventSourceFetch = this._eventSourceInit?.fetch;
121891
- const fetchImpl = eventSourceFetch ? this._dpop?.(eventSourceFetch) ?? eventSourceFetch : this._fetch ?? fetch;
122276
+ const fetchImpl = this._redirects(eventSourceFetch ? this._dpop?.(eventSourceFetch) ?? eventSourceFetch : this._fetch ?? fetch);
122277
+ let redirect;
121892
122278
  return new Promise((resolve34, reject) => {
121893
122279
  this._eventSource = new EventSource(this._url.href, {
121894
122280
  ...this._eventSourceInit,
@@ -121899,6 +122285,7 @@ var SSEClientTransport = class {
121899
122285
  ...init,
121900
122286
  headers
121901
122287
  });
122288
+ redirect = this._unfollowedRedirect(url2, response);
121902
122289
  if (response.status === 401) {
121903
122290
  this._last401Response = response;
121904
122291
  if (response.headers.has("www-authenticate")) {
@@ -121913,31 +122300,41 @@ var SSEClientTransport = class {
121913
122300
  this._abortController = new AbortController();
121914
122301
  this._eventSource.onerror = (event) => {
121915
122302
  if (event.code === 401 && this._authProvider) {
121916
- if (this._authProvider.onUnauthorized && this._last401Response) {
122303
+ if (this._authProvider.onUnauthorized && this._last401Response && !this._connectAuthRetried) {
121917
122304
  const response = this._last401Response;
121918
122305
  this._last401Response = void 0;
122306
+ this._connectAuthRetried = true;
121919
122307
  this._eventSource?.close();
121920
122308
  this._authProvider.onUnauthorized({
121921
122309
  response,
121922
122310
  serverUrl: this._url,
121923
122311
  fetchFn: this._fetchWithInit
121924
122312
  }).then(() => this._startOrAuth().then(resolve34, reject), (error$2) => {
122313
+ this._connectAuthRetried = false;
121925
122314
  markAuthSeamEscape(error$2);
121926
122315
  this.onerror?.(error$2);
121927
122316
  reject(error$2);
121928
122317
  });
121929
122318
  return;
121930
122319
  }
121931
- const error$1 = markAuthSeamEscape(new UnauthorizedError3());
122320
+ const retried = this._connectAuthRetried;
122321
+ this._connectAuthRetried = false;
122322
+ const error$1 = markAuthSeamEscape(retried ? new SdkHttpError(SdkErrorCode.ClientHttpAuthentication, "Server returned 401 after re-authentication", {
122323
+ status: 401,
122324
+ statusText: this._last401Response?.statusText ?? ""
122325
+ }) : new UnauthorizedError3());
122326
+ this._last401Response = void 0;
121932
122327
  reject(error$1);
121933
122328
  this.onerror?.(error$1);
121934
122329
  return;
121935
122330
  }
121936
- const error62 = new SseError(event.code, event.message, event);
122331
+ this._connectAuthRetried = false;
122332
+ const error62 = new SseError(event.code, redirect ?? event.message, event);
121937
122333
  reject(error62);
121938
122334
  this.onerror?.(error62);
121939
122335
  };
121940
122336
  this._eventSource.onopen = () => {
122337
+ this._connectAuthRetried = false;
121941
122338
  };
121942
122339
  this._eventSource.addEventListener("endpoint", (event) => {
121943
122340
  const messageEvent = event;
@@ -122005,7 +122402,7 @@ var SSEClientTransport = class {
122005
122402
  body: JSON.stringify(message),
122006
122403
  signal: this._abortController?.signal
122007
122404
  };
122008
- const response = await (this._fetch ?? fetch)(this._endpoint, init);
122405
+ const response = await this._redirects(this._fetch ?? fetch)(this._endpoint, init);
122009
122406
  if (!response.ok) {
122010
122407
  if (response.status === 401 && this._authProvider) {
122011
122408
  if (response.headers.has("www-authenticate")) {
@@ -122036,7 +122433,7 @@ var SSEClientTransport = class {
122036
122433
  throw markAuthSeamEscape(new UnauthorizedError3());
122037
122434
  }
122038
122435
  const text = await response.text?.().catch(() => null);
122039
- throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${text}`);
122436
+ throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${this._unfollowedRedirect(this._endpoint, response) ?? text}`);
122040
122437
  }
122041
122438
  await response.text?.().catch(() => {
122042
122439
  });
@@ -122103,6 +122500,7 @@ var StreamableHTTPClientTransport2 = class {
122103
122500
  _skipIssuerMetadataValidation;
122104
122501
  _fetch;
122105
122502
  _fetchWithInit;
122503
+ _redirectPolicy;
122106
122504
  _sessionId;
122107
122505
  _reconnectionOptions;
122108
122506
  _protocolVersion;
@@ -122133,7 +122531,9 @@ var StreamableHTTPClientTransport2 = class {
122133
122531
  this._authProvider = adaptOAuthProvider(opts.authProvider, { skipIssuerMetadataValidation: opts.skipIssuerMetadataValidation });
122134
122532
  if (opts.authProvider.dpop) this._fetch = withDpopFromProvider(opts.authProvider)(opts.fetch ?? fetch);
122135
122533
  } else this._authProvider = opts?.authProvider;
122534
+ this._redirectPolicy = opts?.redirectPolicy;
122136
122535
  this._fetchWithInit = createFetchWithInit2(opts?.fetch, opts?.requestInit);
122536
+ if (this._redirectPolicy === "follow") this._fetchWithInit = fetchLeavingRedirects2(this._fetchWithInit);
122137
122537
  this._sessionId = opts?.sessionId;
122138
122538
  this._protocolVersion = opts?.protocolVersion;
122139
122539
  this._reconnectionOptions = opts?.reconnectionOptions ?? DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS2;
@@ -122185,6 +122585,15 @@ var StreamableHTTPClientTransport2 = class {
122185
122585
  skipIssuerMetadataValidation: this._skipIssuerMetadataValidation
122186
122586
  });
122187
122587
  }
122588
+ /** `baseFetch` with redirects handled as `redirectPolicy` says. */
122589
+ _redirects(baseFetch) {
122590
+ return this._redirectPolicy === "follow" ? baseFetch : fetchWithinOrigin2(baseFetch);
122591
+ }
122592
+ /** Error text for a redirect `response` that was not followed, or `undefined` for any other response. */
122593
+ _unfollowedRedirect(url2, response) {
122594
+ const text = this._redirectPolicy === "follow" ? void 0 : unfollowedRedirect2(url2, response);
122595
+ return text && `${text} (redirectPolicy: 'same-origin')`;
122596
+ }
122188
122597
  async _commonHeaders() {
122189
122598
  const headers = new Headers(this._requestInit?.headers || void 0);
122190
122599
  let token;
@@ -122236,7 +122645,7 @@ var StreamableHTTPClientTransport2 = class {
122236
122645
  if (resumptionToken) headers.set("last-event-id", resumptionToken);
122237
122646
  const transportSignal = this._abortController?.signal;
122238
122647
  const signal = requestSignal !== void 0 && transportSignal !== void 0 ? anySignal(transportSignal, requestSignal) : requestSignal ?? transportSignal;
122239
- const response = await (this._fetch ?? fetch)(this._url, {
122648
+ const response = await this._redirects(this._fetch ?? fetch)(this._url, {
122240
122649
  ...this._requestInit,
122241
122650
  method: "GET",
122242
122651
  headers,
@@ -122291,7 +122700,8 @@ var StreamableHTTPClientTransport2 = class {
122291
122700
  options2.onRequestStreamEnd?.();
122292
122701
  return;
122293
122702
  }
122294
- throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToOpenStream, `Failed to open SSE stream: ${response.statusText}`, {
122703
+ const reason = this._unfollowedRedirect(this._url, response) ?? response.statusText;
122704
+ throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToOpenStream, `Failed to open SSE stream: ${reason}`, {
122295
122705
  status: response.status,
122296
122706
  statusText: response.statusText
122297
122707
  });
@@ -122362,7 +122772,7 @@ var StreamableHTTPClientTransport2 = class {
122362
122772
  let receivedResponse = false;
122363
122773
  const processStream = /* @__PURE__ */ __name(async () => {
122364
122774
  try {
122365
- const reader = stream.pipeThrough(new TextDecoderStream()).pipeThrough(new EventSourceParserStream({ onRetry: /* @__PURE__ */ __name((retryMs) => {
122775
+ const reader = stream.pipeThrough(new TextDecoderStream()).pipeThrough(new EventSourceParserStream2({ onRetry: /* @__PURE__ */ __name((retryMs) => {
122366
122776
  this._serverRetryMs = retryMs;
122367
122777
  }, "onRetry") })).getReader();
122368
122778
  while (true) {
@@ -122480,7 +122890,7 @@ var StreamableHTTPClientTransport2 = class {
122480
122890
  body: JSON.stringify(message),
122481
122891
  signal
122482
122892
  };
122483
- const response = await (this._fetch ?? fetch)(this._url, init);
122893
+ const response = await this._redirects(this._fetch ?? fetch)(this._url, init);
122484
122894
  if (isHandshake && response.ok) this._sessionId = response.headers.get("mcp-session-id") || void 0;
122485
122895
  if (!response.ok) {
122486
122896
  if (response.status === 401 && this._authProvider) {
@@ -122534,7 +122944,8 @@ var StreamableHTTPClientTransport2 = class {
122534
122944
  }
122535
122945
  } catch {
122536
122946
  }
122537
- throw new SdkHttpError(SdkErrorCode.ClientHttpNotImplemented, `Error POSTing to endpoint: ${text}`, {
122947
+ const reason = this._unfollowedRedirect(this._url, response) ?? text;
122948
+ throw new SdkHttpError(SdkErrorCode.ClientHttpNotImplemented, `Error POSTing to endpoint: ${reason}`, {
122538
122949
  status: response.status,
122539
122950
  statusText: response.statusText,
122540
122951
  text
@@ -122594,10 +123005,10 @@ var StreamableHTTPClientTransport2 = class {
122594
123005
  headers,
122595
123006
  signal: this._abortController?.signal
122596
123007
  };
122597
- const response = await (this._fetch ?? fetch)(this._url, init);
123008
+ const response = await this._redirects(this._fetch ?? fetch)(this._url, init);
122598
123009
  await response.text?.().catch(() => {
122599
123010
  });
122600
- if (!response.ok && response.status !== 405) throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToTerminateSession, `Failed to terminate session: ${response.statusText}`, {
123011
+ if (!response.ok && response.status !== 405) throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToTerminateSession, `Failed to terminate session: ${this._unfollowedRedirect(this._url, response) ?? response.statusText}`, {
122601
123012
  status: response.status,
122602
123013
  statusText: response.statusText
122603
123014
  });
@@ -163740,7 +164151,7 @@ var Config = class _Config {
163740
164151
  await this.proxyDispatcherReady;
163741
164152
  options2?.signal?.throwIfAborted();
163742
164153
  if (this.isOmniEnabled()) {
163743
- const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-VSTMX36S.js");
164154
+ const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-AIRMZDHT.js");
163744
164155
  this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
163745
164156
  baseUrl: this.omniUploadBaseUrl,
163746
164157
  apiKeyEnv: this.omniUploadApiKeyEnv,
@@ -167653,7 +168064,7 @@ var Config = class _Config {
167653
168064
  return this.omniPolicyTools;
167654
168065
  }
167655
168066
  async loadOmniMediaReader() {
167656
- return import("./omni-PRLMNRWA.js");
168067
+ return import("./omni-NTS5DKKW.js");
167657
168068
  }
167658
168069
  /** Normalized `omni.processing` view. Undefined until tool warmup
167659
168070
  * completes (or when omni is disabled). */
@@ -169262,7 +169673,7 @@ var Config = class _Config {
169262
169673
  async registerWorkflowTool(registry2) {
169263
169674
  if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
169264
169675
  await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
169265
- const { WorkflowTool } = await import("./workflow-X5K6W6Q2.js");
169676
+ const { WorkflowTool } = await import("./workflow-NTR7LISE.js");
169266
169677
  return new WorkflowTool(this);
169267
169678
  });
169268
169679
  return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
@@ -169342,16 +169753,16 @@ var Config = class _Config {
169342
169753
  const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
169343
169754
  if (options2?.forSubAgent) return;
169344
169755
  await registerLazy(ToolNames.GET_GOAL, async () => {
169345
- const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-6OXOSX5X.js");
169756
+ const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169346
169757
  return new GetGoalTool2(this);
169347
169758
  });
169348
169759
  await registerLazy(ToolNames.UPDATE_GOAL, async () => {
169349
- const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-6OXOSX5X.js");
169760
+ const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169350
169761
  return new UpdateGoalTool2(this);
169351
169762
  });
169352
169763
  if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
169353
169764
  await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
169354
- const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-6OXOSX5X.js");
169765
+ const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169355
169766
  return new ProposeGoalTool2(this);
169356
169767
  });
169357
169768
  }
@@ -169371,16 +169782,16 @@ var Config = class _Config {
169371
169782
  });
169372
169783
  }
169373
169784
  await registerLazy(ToolNames.WEB_FETCH, async () => {
169374
- const { WebFetchTool } = await import("./web-fetch-F6U5QISL.js");
169785
+ const { WebFetchTool } = await import("./web-fetch-TZXOJ74M.js");
169375
169786
  return new WebFetchTool(this);
169376
169787
  });
169377
169788
  const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
169378
169789
  if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
169379
- const { evaluateWebSearchGate } = await import("./web-search-K52RBXDY.js");
169790
+ const { evaluateWebSearchGate } = await import("./web-search-RDZCW5MX.js");
169380
169791
  const gate = evaluateWebSearchGate(this);
169381
169792
  if (gate.ok) {
169382
169793
  await registerLazy(ToolNames.WEB_SEARCH, async () => {
169383
- const { WebSearchTool } = await import("./web-search-K52RBXDY.js");
169794
+ const { WebSearchTool } = await import("./web-search-RDZCW5MX.js");
169384
169795
  return new WebSearchTool(this);
169385
169796
  });
169386
169797
  } else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
@@ -169397,8 +169808,8 @@ var Config = class _Config {
169397
169808
  );
169398
169809
  }
169399
169810
  const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
169400
- import("./local-execution-environment-ROVMYUTT.js"),
169401
- import("./execution-tool-Y7YCRR5V.js")
169811
+ import("./local-execution-environment-PFBURDOE.js"),
169812
+ import("./execution-tool-VACK7N45.js")
169402
169813
  ]);
169403
169814
  for (const [name, tool] of createExecutionTools(this)) {
169404
169815
  if (environment.toolNames && !environment.toolNames.has(name)) continue;
@@ -169413,7 +169824,7 @@ var Config = class _Config {
169413
169824
  return new ToolCallTool(registry2);
169414
169825
  });
169415
169826
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
169416
- const { ToolSearchTool } = await import("./tool-search-NJLOGAAS.js");
169827
+ const { ToolSearchTool } = await import("./tool-search-RK5PYIEA.js");
169417
169828
  return new ToolSearchTool(this);
169418
169829
  });
169419
169830
  if (this.executionEnvironment && !options2?.forSubAgent) {
@@ -169425,7 +169836,7 @@ var Config = class _Config {
169425
169836
  }
169426
169837
  if (this.shellExecutionSandbox) {
169427
169838
  await registerLazy(ToolNames.SHELL, async () => {
169428
- const { ShellTool: ShellTool2 } = await import("./shell-F6RBXOB3.js");
169839
+ const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
169429
169840
  return new ShellTool2(this);
169430
169841
  });
169431
169842
  await registerLazy(ToolNames.TASK_STOP, async () => {
@@ -169433,27 +169844,27 @@ var Config = class _Config {
169433
169844
  return new TaskStopTool(this);
169434
169845
  });
169435
169846
  await registerLazy(ToolNames.READ_FILE, async () => {
169436
- const { ReadFileTool } = await import("./read-file-XMDDPZB3.js");
169847
+ const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
169437
169848
  return new ReadFileTool(this);
169438
169849
  });
169439
169850
  await registerLazy(ToolNames.WRITE_FILE, async () => {
169440
- const { WriteFileTool } = await import("./write-file-LJAZWR2P.js");
169851
+ const { WriteFileTool } = await import("./write-file-TYMBS3Z4.js");
169441
169852
  return new WriteFileTool(this);
169442
169853
  });
169443
169854
  await registerLazy(ToolNames.EDIT, async () => {
169444
- const { EditTool } = await import("./edit-T2SFPFGW.js");
169855
+ const { EditTool } = await import("./edit-TSSCUSYW.js");
169445
169856
  return new EditTool(this);
169446
169857
  });
169447
169858
  await registerLazy(ToolNames.MONITOR, async () => {
169448
- const { MonitorTool } = await import("./monitor-SFJ7FAEY.js");
169859
+ const { MonitorTool } = await import("./monitor-3DZ6543L.js");
169449
169860
  return new MonitorTool(this);
169450
169861
  });
169451
169862
  await registerLazy(ToolNames.AGENT, async () => {
169452
- const { AgentTool: AgentTool2 } = await import("./agent-NCDEREDG.js");
169863
+ const { AgentTool: AgentTool2 } = await import("./agent-NH2EHRJ3.js");
169453
169864
  return new AgentTool2(this);
169454
169865
  });
169455
169866
  await registerLazy(ToolNames.GLOB, async () => {
169456
- const { GlobTool } = await import("./glob-2QY6IKA3.js");
169867
+ const { GlobTool } = await import("./glob-2CHWQ3H5.js");
169457
169868
  return new GlobTool(this);
169458
169869
  });
169459
169870
  await registerLazy(ToolNames.LS, async () => {
@@ -169472,19 +169883,19 @@ var Config = class _Config {
169472
169883
  }
169473
169884
  if (this.getBareMode()) {
169474
169885
  await registerLazy(ToolNames.READ_FILE, async () => {
169475
- const { ReadFileTool } = await import("./read-file-XMDDPZB3.js");
169886
+ const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
169476
169887
  return new ReadFileTool(this);
169477
169888
  });
169478
169889
  await registerLazy(ToolNames.EDIT, async () => {
169479
- const { EditTool } = await import("./edit-T2SFPFGW.js");
169890
+ const { EditTool } = await import("./edit-TSSCUSYW.js");
169480
169891
  return new EditTool(this);
169481
169892
  });
169482
169893
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
169483
- const { NotebookEditTool } = await import("./notebook-edit-XMY3ZKHD.js");
169894
+ const { NotebookEditTool } = await import("./notebook-edit-EC3X76GJ.js");
169484
169895
  return new NotebookEditTool(this);
169485
169896
  });
169486
169897
  await registerLazy(ToolNames.SHELL, async () => {
169487
- const { ShellTool: ShellTool2 } = await import("./shell-F6RBXOB3.js");
169898
+ const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
169488
169899
  return new ShellTool2(this);
169489
169900
  });
169490
169901
  await registerGoalWorkerTools();
@@ -169503,7 +169914,7 @@ var Config = class _Config {
169503
169914
  return new ToolCallTool(registry2);
169504
169915
  });
169505
169916
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
169506
- const { ToolSearchTool } = await import("./tool-search-NJLOGAAS.js");
169917
+ const { ToolSearchTool } = await import("./tool-search-RK5PYIEA.js");
169507
169918
  return new ToolSearchTool(this);
169508
169919
  });
169509
169920
  await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
@@ -169511,7 +169922,7 @@ var Config = class _Config {
169511
169922
  return new ReadMcpResourceTool(this);
169512
169923
  });
169513
169924
  await registerLazy(ToolNames.AGENT, async () => {
169514
- const { AgentTool: AgentTool2 } = await import("./agent-NCDEREDG.js");
169925
+ const { AgentTool: AgentTool2 } = await import("./agent-NH2EHRJ3.js");
169515
169926
  return new AgentTool2(this);
169516
169927
  });
169517
169928
  await registerLazy(ToolNames.LIST_AGENTS, async () => {
@@ -169527,7 +169938,7 @@ var Config = class _Config {
169527
169938
  return new SendMessageTool(this);
169528
169939
  });
169529
169940
  await registerLazy(ToolNames.SKILL, async () => {
169530
- const { SkillTool } = await import("./skill-NZWCT2LR.js");
169941
+ const { SkillTool } = await import("./skill-JI7DIIC5.js");
169531
169942
  return new SkillTool(this);
169532
169943
  });
169533
169944
  if (this.isLsToolEnabled()) {
@@ -169537,11 +169948,11 @@ var Config = class _Config {
169537
169948
  });
169538
169949
  }
169539
169950
  await registerLazy(ToolNames.READ_FILE, async () => {
169540
- const { ReadFileTool } = await import("./read-file-XMDDPZB3.js");
169951
+ const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
169541
169952
  return new ReadFileTool(this);
169542
169953
  });
169543
169954
  await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
169544
- const { ZoomImageTool } = await import("./zoom-image-HPBEMNPD.js");
169955
+ const { ZoomImageTool } = await import("./zoom-image-OYDAJGIC.js");
169545
169956
  return new ZoomImageTool(this);
169546
169957
  });
169547
169958
  if (this.getUseRipgrep()) {
@@ -169556,7 +169967,7 @@ var Config = class _Config {
169556
169967
  recordStartupEvent("config_initialize_ripgrep_probe_end");
169557
169968
  if (useRipgrep) {
169558
169969
  await registerLazy(ToolNames.GREP, async () => {
169559
- const { RipGrepTool } = await import("./ripGrep-JSB5IZHQ.js");
169970
+ const { RipGrepTool } = await import("./ripGrep-WQJTNYRZ.js");
169560
169971
  return new RipGrepTool(this);
169561
169972
  });
169562
169973
  } else {
@@ -169582,23 +169993,23 @@ var Config = class _Config {
169582
169993
  });
169583
169994
  }
169584
169995
  await registerLazy(ToolNames.GLOB, async () => {
169585
- const { GlobTool } = await import("./glob-2QY6IKA3.js");
169996
+ const { GlobTool } = await import("./glob-2CHWQ3H5.js");
169586
169997
  return new GlobTool(this);
169587
169998
  });
169588
169999
  await registerLazy(ToolNames.EDIT, async () => {
169589
- const { EditTool } = await import("./edit-T2SFPFGW.js");
170000
+ const { EditTool } = await import("./edit-TSSCUSYW.js");
169590
170001
  return new EditTool(this);
169591
170002
  });
169592
170003
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
169593
- const { NotebookEditTool } = await import("./notebook-edit-XMY3ZKHD.js");
170004
+ const { NotebookEditTool } = await import("./notebook-edit-EC3X76GJ.js");
169594
170005
  return new NotebookEditTool(this);
169595
170006
  });
169596
170007
  await registerLazy(ToolNames.WRITE_FILE, async () => {
169597
- const { WriteFileTool } = await import("./write-file-LJAZWR2P.js");
170008
+ const { WriteFileTool } = await import("./write-file-TYMBS3Z4.js");
169598
170009
  return new WriteFileTool(this);
169599
170010
  });
169600
170011
  await registerLazy(ToolNames.SHELL, async () => {
169601
- const { ShellTool: ShellTool2 } = await import("./shell-F6RBXOB3.js");
170012
+ const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
169602
170013
  return new ShellTool2(this);
169603
170014
  });
169604
170015
  await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
@@ -169614,13 +170025,13 @@ var Config = class _Config {
169614
170025
  }
169615
170026
  if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
169616
170027
  await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
169617
- const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-7Z7YPGOB.js");
170028
+ const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-MUPEFJZW.js");
169618
170029
  return new ExitPlanModeTool2(this);
169619
170030
  });
169620
170031
  }
169621
170032
  if (!this.sdkMode && supportsUserInteraction) {
169622
170033
  await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
169623
- const { EnterPlanModeTool } = await import("./enterPlanMode-Z7RBJRII.js");
170034
+ const { EnterPlanModeTool } = await import("./enterPlanMode-ZSQKJKZQ.js");
169624
170035
  return new EnterPlanModeTool(this);
169625
170036
  });
169626
170037
  }
@@ -169687,7 +170098,7 @@ var Config = class _Config {
169687
170098
  }
169688
170099
  if (this.isAgentTeamEnabled()) {
169689
170100
  await registerLazy(ToolNames.TEAM_CREATE, async () => {
169690
- const { TeamCreateTool } = await import("./team-create-E6TDE5J3.js");
170101
+ const { TeamCreateTool } = await import("./team-create-JFKXHYVG.js");
169691
170102
  return new TeamCreateTool(this);
169692
170103
  });
169693
170104
  await registerLazy(ToolNames.TEAM_DELETE, async () => {
@@ -169695,7 +170106,7 @@ var Config = class _Config {
169695
170106
  return new TeamDeleteTool(this);
169696
170107
  });
169697
170108
  await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
169698
- const { TeamPlanApprovalTool } = await import("./team-plan-approval-OBRXLZ6G.js");
170109
+ const { TeamPlanApprovalTool } = await import("./team-plan-approval-XTW6G7MY.js");
169699
170110
  return new TeamPlanApprovalTool(this);
169700
170111
  });
169701
170112
  if (!options2?.forSubAgent) {
@@ -169791,7 +170202,7 @@ var Config = class _Config {
169791
170202
  }
169792
170203
  }
169793
170204
  await registerLazy(ToolNames.MONITOR, async () => {
169794
- const { MonitorTool } = await import("./monitor-SFJ7FAEY.js");
170205
+ const { MonitorTool } = await import("./monitor-3DZ6543L.js");
169795
170206
  return new MonitorTool(this);
169796
170207
  });
169797
170208
  if (this.pendingMcpBudgetCallback) {
@@ -171047,7 +171458,7 @@ export {
171047
171458
  */
171048
171459
  /*! Bundled license information:
171049
171460
 
171050
- @modelcontextprotocol/client/dist/src-xKF0PJN-.mjs:
171461
+ @modelcontextprotocol/client/dist/src-WCy6ifGf.mjs:
171051
171462
  (*!
171052
171463
  * content-type
171053
171464
  * Copyright(c) 2015 Douglas Christopher Wilson