@organizaone/o1-code 0.22.1 → 0.23.0

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 (340) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +58 -0
  2. package/bundled/qc-helper/docs/support/troubleshooting.md +4 -0
  3. package/chunks/{MaxSizedBox-RVGQPVQO.js → MaxSizedBox-27XXPAQA.js} +66 -60
  4. package/chunks/{StandaloneSessionPicker-BMI42LHG.js → StandaloneSessionPicker-7JDLA7AU.js} +87 -81
  5. package/chunks/{acp-subagent-executor-UAXJUFQK.js → acp-subagent-executor-5C7UDO7D.js} +70 -64
  6. package/chunks/{acpAgent-4ZEY3OME.js → acpAgent-LZLF6BDI.js} +206 -199
  7. package/chunks/{agent-NH2EHRJ3.js → agent-ZI5SNX4V.js} +49 -44
  8. package/chunks/{agent-headless-SNT5BKJU.js → agent-headless-NC3BEGWL.js} +49 -44
  9. package/chunks/{all-providers-7WVHE4GD.js → all-providers-HWBWMDS4.js} +7 -5
  10. package/chunks/{anthropicContentGenerator-CJDEP3M6.js → anthropicContentGenerator-ZVTMFRMJ.js} +45 -31
  11. package/chunks/{bridge-RTND6IB6.js → bridge-FXDALV5R.js} +71 -65
  12. package/chunks/bwrap-execution-A5QZJK2I.js +2 -2
  13. package/chunks/{chunk-NPFU56EO.js → chunk-27QMKVHR.js} +11 -11
  14. package/chunks/{chunk-PUBQDZLP.js → chunk-2NTOADNA.js} +1 -1
  15. package/chunks/{chunk-ASQLIG2L.js → chunk-2OEBEF5L.js} +13 -13
  16. package/chunks/{chunk-YK6Z7PNX.js → chunk-2ORYKT6E.js} +14 -14
  17. package/chunks/{chunk-VHMXJAL4.js → chunk-3R3BFEXO.js} +398 -337
  18. package/chunks/{chunk-SRA3CI5I.js → chunk-3SIUBEAC.js} +1 -1
  19. package/chunks/{chunk-BFD5HYRL.js → chunk-4KDMTAGY.js} +13 -13
  20. package/chunks/{chunk-XA3N5TO5.js → chunk-4KLFLD6W.js} +1 -1
  21. package/chunks/{chunk-PAEZIQXY.js → chunk-4PTZBGHX.js} +4 -4
  22. package/chunks/{chunk-F4FU6VM5.js → chunk-5IGBH2BT.js} +1 -1
  23. package/chunks/{chunk-NUF3FLRS.js → chunk-5TGVTMA4.js} +4 -4
  24. package/chunks/{chunk-SLH747HE.js → chunk-5WCEM6DZ.js} +1 -1
  25. package/chunks/{chunk-VMYLENRS.js → chunk-5YC3SA73.js} +4 -4
  26. package/chunks/{chunk-GR4V6J5L.js → chunk-5ZVBCI7I.js} +3 -3
  27. package/chunks/{chunk-3HYHMJZ7.js → chunk-63GQIGT2.js} +2 -2
  28. package/chunks/{chunk-7BGLVYAH.js → chunk-6JWJ7VIG.js} +4 -4
  29. package/chunks/{chunk-IKHE2AI7.js → chunk-6O7MP53X.js} +4 -4
  30. package/chunks/{chunk-AG4W5EZN.js → chunk-6RJBK4RT.js} +7 -7
  31. package/chunks/{chunk-AOO6ZUFV.js → chunk-6SEKLUZU.js} +1 -1
  32. package/chunks/{chunk-WKYZUJ5O.js → chunk-6WR3DWHA.js} +1 -1
  33. package/chunks/{chunk-QUVGCD32.js → chunk-A54HR2DE.js} +77 -77
  34. package/chunks/{chunk-E27VESCX.js → chunk-A6GSNSDY.js} +2 -2
  35. package/chunks/{chunk-32722SNN.js → chunk-A7JWEUTB.js} +1 -1
  36. package/chunks/{chunk-OCOO6CMW.js → chunk-AEJFNK44.js} +11 -101
  37. package/chunks/{chunk-GCEFGJQL.js → chunk-AI5ZWMKL.js} +1 -1
  38. package/chunks/{chunk-LO6VR36F.js → chunk-AJDAOH4D.js} +1 -1
  39. package/chunks/{chunk-R6HGPORE.js → chunk-AP6XDBGI.js} +3 -3
  40. package/chunks/{chunk-SU6K5JRJ.js → chunk-AXM2QH6N.js} +1 -1
  41. package/chunks/{chunk-BUDPTG55.js → chunk-B4CCJMG6.js} +20 -66
  42. package/chunks/chunk-B4K3VBFF.js +300 -0
  43. package/chunks/{chunk-Q6IDKPJW.js → chunk-B5GTZ6E6.js} +1 -1
  44. package/chunks/{chunk-A55LB5TM.js → chunk-BGAORGSF.js} +1 -1
  45. package/chunks/{chunk-EADQN4GH.js → chunk-CFXFYRCP.js} +4 -4
  46. package/chunks/chunk-CNXTYK25.js +62 -0
  47. package/chunks/{chunk-BSW6OIM7.js → chunk-CONWBF63.js} +3 -3
  48. package/chunks/{chunk-Z2HNRDOD.js → chunk-CRJFZOU2.js} +1 -1
  49. package/chunks/{chunk-OJAGNSHH.js → chunk-EE35GR3R.js} +5 -5
  50. package/chunks/{chunk-KQ7E7FOJ.js → chunk-ELS2BV24.js} +1 -1
  51. package/chunks/{chunk-O5AS4OOX.js → chunk-EMSUJGLD.js} +3 -3
  52. package/chunks/{chunk-VFMFOTNC.js → chunk-ERL2SJHW.js} +2 -2
  53. package/chunks/chunk-EYKEQPKF.js +27 -0
  54. package/chunks/{chunk-2TXSMV3M.js → chunk-F2LYJ3ZD.js} +19 -19
  55. package/chunks/{chunk-N5KJNQIZ.js → chunk-F5GPRGLO.js} +1 -1
  56. package/chunks/{chunk-YRVUYXMC.js → chunk-FLJEZNV4.js} +2 -2
  57. package/chunks/{chunk-H7IF7CAJ.js → chunk-FMN2VSEH.js} +3 -3
  58. package/chunks/{chunk-EVIGOLAL.js → chunk-G376S7VI.js} +1 -1
  59. package/chunks/{chunk-JHRVJBV5.js → chunk-GM7RKZZ4.js} +4 -4
  60. package/chunks/{chunk-YDBDPF4G.js → chunk-GPDZESAY.js} +5 -5
  61. package/chunks/{chunk-PWXL2VKU.js → chunk-H62ST6JL.js} +1 -1
  62. package/chunks/{chunk-TOIXYNL6.js → chunk-HFDXNYOL.js} +3 -3
  63. package/chunks/{chunk-IC57EPC7.js → chunk-HQROPADY.js} +18 -0
  64. package/chunks/{chunk-VUPOGOOS.js → chunk-ICYAPJ5S.js} +115 -102
  65. package/chunks/{chunk-IZBRJ2HF.js → chunk-IN65BYCX.js} +2 -2
  66. package/chunks/{chunk-OPWIQQ3C.js → chunk-ISARFBOT.js} +8 -8
  67. package/chunks/{chunk-JSL55Y6I.js → chunk-ISRDI3GT.js} +11 -11
  68. package/chunks/{chunk-KNWO6F63.js → chunk-ISRM33KJ.js} +8 -8
  69. package/chunks/{chunk-Y4DKB3I4.js → chunk-J3RKZFKI.js} +2 -92
  70. package/chunks/{chunk-Z6WSMXW5.js → chunk-J6IO5FRE.js} +2 -2
  71. package/chunks/{chunk-3DE6KFXZ.js → chunk-JJM6IQIE.js} +33 -258
  72. package/chunks/{chunk-GDRXAL2V.js → chunk-JKLZSD6Z.js} +16 -12
  73. package/chunks/{chunk-FYI2IX5L.js → chunk-JPTQB5NW.js} +38 -38
  74. package/chunks/{chunk-4ABCTDVK.js → chunk-JVRNE7NT.js} +8 -8
  75. package/chunks/{chunk-HA4IBUMM.js → chunk-K3UU55BI.js} +2 -2
  76. package/chunks/{chunk-F6YTVAGO.js → chunk-KFZPMKWE.js} +1 -1
  77. package/chunks/{chunk-6HVK5AB6.js → chunk-KLG5EXFK.js} +5 -5
  78. package/chunks/{chunk-NAEZE5OL.js → chunk-KPPSQ5EU.js} +1 -1
  79. package/chunks/{chunk-44NP2DKE.js → chunk-L3X3Z5AT.js} +24 -24
  80. package/chunks/{chunk-RQPDN23V.js → chunk-LG6LR2P4.js} +2 -2
  81. package/chunks/{chunk-2F3GZ6WG.js → chunk-LMFAYXBU.js} +1 -1
  82. package/chunks/{chunk-HUW7MDI7.js → chunk-LNCMGJ5H.js} +1 -1
  83. package/chunks/{chunk-LGXLBYI3.js → chunk-LQV2HN6P.js} +1 -1
  84. package/chunks/{chunk-FLBRWOOW.js → chunk-MNR3HCZD.js} +2 -2
  85. package/chunks/{chunk-JKXGHDQ2.js → chunk-MRDYGSEU.js} +1 -1
  86. package/chunks/{chunk-IIICLNER.js → chunk-NTQWEEPL.js} +1 -1
  87. package/chunks/{chunk-7ADYEHKM.js → chunk-OCGMQ7V4.js} +1 -1
  88. package/chunks/{chunk-E6Q7UUWN.js → chunk-OE5CWJEX.js} +2 -2
  89. package/chunks/{chunk-U7HTBVK6.js → chunk-OHUMXUCB.js} +7 -7
  90. package/chunks/{chunk-FAKFP7PE.js → chunk-PCV2FQHN.js} +11 -11
  91. package/chunks/{chunk-BKZ3FWIY.js → chunk-PMPABMDI.js} +9 -9
  92. package/chunks/{chunk-5POXLSBR.js → chunk-Q5CTSLWK.js} +1 -1
  93. package/chunks/{chunk-6E6FTN4Z.js → chunk-QSRSLLA5.js} +7 -7
  94. package/chunks/{chunk-KRLE7IDY.js → chunk-QYJB4I22.js} +1 -1
  95. package/chunks/{chunk-KIF3TIH4.js → chunk-R75USKXV.js} +4 -4
  96. package/chunks/{chunk-4GJBQ3MM.js → chunk-RLIINKKI.js} +1 -1
  97. package/chunks/{chunk-RANMV3VA.js → chunk-RNWMJNLI.js} +7 -5
  98. package/chunks/{chunk-DNFPKNWM.js → chunk-RWUZRVUT.js} +2 -2
  99. package/chunks/{chunk-SDB4PPQF.js → chunk-U4XPMMLI.js} +15 -15
  100. package/chunks/{chunk-QWDKIHIR.js → chunk-UB5WMNPW.js} +10 -10
  101. package/chunks/{chunk-KWV4ZB3F.js → chunk-UO32G56K.js} +7 -7
  102. package/chunks/{chunk-EMXYZZ5Y.js → chunk-UPEEU7KI.js} +51 -49
  103. package/chunks/{chunk-O5BCFPOB.js → chunk-UPMLP2Z5.js} +9 -2
  104. package/chunks/chunk-V24FMEXL.js +203 -0
  105. package/chunks/{chunk-BDZ6CKXF.js → chunk-VBMWQMDE.js} +8 -8
  106. package/chunks/chunk-VTIYMCRG.js +128 -0
  107. package/chunks/{chunk-TYYTQIEZ.js → chunk-W5XYWVXE.js} +1 -1
  108. package/chunks/chunk-WDBSTICZ.js +106 -0
  109. package/chunks/{chunk-RXJMYK2R.js → chunk-WE6BPBQP.js} +6 -6
  110. package/chunks/{chunk-LWC7HPRI.js → chunk-WIWIJEJP.js} +2 -2
  111. package/chunks/{chunk-DYPQF4VS.js → chunk-WSZLSFAL.js} +34 -28
  112. package/chunks/chunk-WXIQKOFD.js +136 -0
  113. package/chunks/{chunk-KK2RIV4A.js → chunk-XBUIQQXG.js} +3 -3
  114. package/chunks/{chunk-4A6A4AS6.js → chunk-XEVNNDMS.js} +3 -3
  115. package/chunks/{chunk-VSZBTI6Z.js → chunk-Y5QVFNPV.js} +6 -6
  116. package/chunks/{chunk-T374RNAS.js → chunk-YASLANLE.js} +1 -1
  117. package/chunks/{chunk-RUJW2EYS.js → chunk-YHM4E6YI.js} +3 -3
  118. package/chunks/{chunk-GM2WNDZ5.js → chunk-YPTR7ZFB.js} +75 -59
  119. package/chunks/{chunk-UHPISANS.js → chunk-Z2SHHAO5.js} +1 -1
  120. package/chunks/{chunk-SHADJNT6.js → chunk-Z563JBRI.js} +1 -1
  121. package/chunks/{chunk-F2EWJITM.js → chunk-ZAPFSBSC.js} +13 -13
  122. package/chunks/{chunk-4MANEJTL.js → chunk-ZIQ3RCYA.js} +11 -11
  123. package/chunks/{chunk-WZSZXEAQ.js → chunk-ZKYDNULB.js} +1 -1
  124. package/chunks/{chunk-CGTBVU3O.js → chunk-ZPAYRCCC.js} +3 -3
  125. package/chunks/{chunk-AN76M2SF.js → chunk-ZV2H47SC.js} +5 -5
  126. package/chunks/{chunk-7CKBM5N3.js → chunk-ZVYEHMGP.js} +1 -1
  127. package/chunks/{codex-subagent-executor-QKMKATHR.js → codex-subagent-executor-TUG7UEJG.js} +70 -64
  128. package/chunks/{contextCommand-Q4HCSERF.js → contextCommand-VMUEO5SI.js} +68 -62
  129. package/chunks/{core-runtime-77F57PX4.js → core-runtime-CV6DO2BT.js} +72 -66
  130. package/chunks/{create-sub-session-F5JXMYGW.js → create-sub-session-M7EUM75T.js} +69 -63
  131. package/chunks/{daemon-git-worktree-guard-ZQCJ7RWX.js → daemon-git-worktree-guard-2G76FIUG.js} +66 -60
  132. package/chunks/{daemon-status-provider-TOCJXPVE.js → daemon-status-provider-QOR4L7E5.js} +76 -70
  133. package/chunks/{daemon-trust-policy-YGUS4YMJ.js → daemon-trust-policy-CYFTEH4U.js} +73 -67
  134. package/chunks/{daemon-trust-policy-monitor-ENPQVTNO.js → daemon-trust-policy-monitor-PFHWELJD.js} +73 -67
  135. package/chunks/{deferred-core-runtime-ULSOQU3T.js → deferred-core-runtime-Z26VVWVX.js} +69 -63
  136. package/chunks/{edit-TSSCUSYW.js → edit-LHLIDK3S.js} +51 -46
  137. package/chunks/{en-XSSA4TGG.js → en-MQICGJBA.js} +11 -0
  138. package/chunks/{enter-worktree-FY6Y6APX.js → enter-worktree-FIO6VPWS.js} +6 -6
  139. package/chunks/{enterPlanMode-ZSQKJKZQ.js → enterPlanMode-IQK2RIT2.js} +51 -46
  140. package/chunks/{environment-EAKV3SOY.js → environment-PYAXVHAN.js} +69 -63
  141. package/chunks/{errors-GGFY5RFH.js → errors-EAJZYSTA.js} +68 -62
  142. package/chunks/execution-sandbox-config-2RI6A7VE.js +2 -2
  143. package/chunks/{execution-tool-VACK7N45.js → execution-tool-Z6N2XKZI.js} +52 -47
  144. package/chunks/{execution-worker-627YBBCO.js → execution-worker-Z6BPII7C.js} +59 -54
  145. package/chunks/{exit-worktree-Q3ZHCBYN.js → exit-worktree-3UU4SS47.js} +6 -6
  146. package/chunks/{exitPlanMode-MUPEFJZW.js → exitPlanMode-JGOBW34Q.js} +49 -44
  147. package/chunks/{fast-path-RTN33F3G.js → fast-path-NS4FKBES.js} +2 -2
  148. package/chunks/fast-path-settings-FIMIXD3V.js +1 -1
  149. package/chunks/{foreground-runner-AB6I7DAO.js → foreground-runner-OOEEIVUP.js} +75 -69
  150. package/chunks/gateway-content-generator-HKBMHBLQ.js +463 -0
  151. package/chunks/gateway-models-WD5T6UM7.js +134 -0
  152. package/chunks/gateway-transfer-47WP3EUB.js +27 -0
  153. package/chunks/{glob-2CHWQ3H5.js → glob-I3H7VRYE.js} +50 -45
  154. package/chunks/{goal-tools-XLPICZ5T.js → goal-tools-54MEWICX.js} +49 -44
  155. package/chunks/{grep-JBR55JCA.js → grep-5HGH34M6.js} +2 -2
  156. package/chunks/{handleAutoUpdate-NZPFDQK6.js → handleAutoUpdate-KFKBIB43.js} +72 -66
  157. package/chunks/{i18n-FV2KRBLI.js → i18n-F6DJUIQP.js} +67 -61
  158. package/chunks/{image-gen-KX5VPAGI.js → image-gen-WGMRL47H.js} +2 -2
  159. package/chunks/{initializer-CTPFYJCS.js → initializer-5PZXULW4.js} +73 -67
  160. package/chunks/{installationInfo-IJIMCPDB.js → installationInfo-O3HIX7B2.js} +66 -60
  161. package/chunks/{list-TIROYVTJ.js → list-DYAKGAST.js} +75 -69
  162. package/chunks/{llm-YA3VVASU.js → llm-YY7F675E.js} +124 -117
  163. package/chunks/{llm-content-generator-5BMSF46V.js → llm-content-generator-Z75TNGTQ.js} +14 -11
  164. package/chunks/{loadedSettingsAdapter-V3A6MMRM.js → loadedSettingsAdapter-MRZD4D7D.js} +73 -67
  165. package/chunks/{local-execution-environment-PFBURDOE.js → local-execution-environment-DP37VPGH.js} +59 -54
  166. package/chunks/{loggingContentGenerator-RCDGCQQS.js → loggingContentGenerator-PWXVR62R.js} +62 -57
  167. package/chunks/{ls-RZYAZPVC.js → ls-SSSPTK7X.js} +3 -3
  168. package/chunks/{managed-npm-update-4EBV5AOX.js → managed-npm-update-D42GTYXT.js} +83 -66
  169. package/chunks/{mcp-VDFHAJKP.js → mcp-3SGMUX76.js} +73 -67
  170. package/chunks/{memory-side-query-DNXJZB7B.js → memory-side-query-XFFIF7UX.js} +1 -1
  171. package/chunks/{model-call-collection-CER6UKZQ.js → model-call-collection-ZLUY4ZPF.js} +2 -2
  172. package/chunks/{model-configuration-RJ6KIRTB.js → model-configuration-MLC7FUK7.js} +74 -68
  173. package/chunks/{modelConfigUtils-YCRDHNRZ.js → modelConfigUtils-E63K4FIT.js} +68 -62
  174. package/chunks/{monitor-3DZ6543L.js → monitor-GXNUEY3P.js} +49 -44
  175. package/chunks/{nonInteractiveCli-PGIOCHOP.js → nonInteractiveCli-4NO53VRG.js} +113 -107
  176. package/chunks/{nonInteractiveToolExecutor-7YVAC45H.js → nonInteractiveToolExecutor-Y7TJUHAX.js} +50 -45
  177. package/chunks/{notebook-edit-EC3X76GJ.js → notebook-edit-DXAOFD2H.js} +50 -45
  178. package/chunks/{omni-NTS5DKKW.js → omni-WVNDCU2V.js} +24 -19
  179. package/chunks/{openaiContentGenerator-HE3UYNTG.js → openaiContentGenerator-Z5W2NXTC.js} +46 -39
  180. package/chunks/{openaiResponsesContentGenerator-V3QXQKGY.js → openaiResponsesContentGenerator-7TMC5LLC.js} +20 -14
  181. package/chunks/{processUtils-Q77SJQTK.js → processUtils-NW3I5Y4Q.js} +2 -2
  182. package/chunks/{prompt-terminal-ledger-FIRVFZQ6.js → prompt-terminal-ledger-LXLGVBXI.js} +67 -61
  183. package/chunks/{pt-KI6OT4C4.js → pt-EZL4H2AB.js} +11 -0
  184. package/chunks/{reactive-degrade-R7SJ2NH6.js → reactive-degrade-JI4TV7MU.js} +18 -13
  185. package/chunks/{read-file-NRMGUMQM.js → read-file-BROAVJMY.js} +10 -9
  186. package/chunks/{record-artifact-LAQGMYDN.js → record-artifact-NO2DU63L.js} +3 -3
  187. package/chunks/record-source-NRW6TYWW.js +1 -1
  188. package/chunks/{report-findings-OVUUKGUX.js → report-findings-S6QO46V2.js} +4 -4
  189. package/chunks/request-shutdown-MXKAXR2D.js +1 -1
  190. package/chunks/{resumeHistoryUtils-O2COILCI.js → resumeHistoryUtils-FC6B6ELG.js} +72 -66
  191. package/chunks/{ripGrep-WQJTNYRZ.js → ripGrep-L6STRULU.js} +16 -15
  192. package/chunks/{run-o1-code-serve-TBV42OCR.js → run-o1-code-serve-CFM6K42B.js} +55 -55
  193. package/chunks/{sandboxConfig-4GA3BYJS.js → sandboxConfig-VSWWIAFG.js} +67 -61
  194. package/chunks/{scheduled-tasks-6VDCN5PB.js → scheduled-tasks-EJI5QZHI.js} +74 -68
  195. package/chunks/{scheduler-P5IJ7A74.js → scheduler-QQDWDBAC.js} +68 -62
  196. package/chunks/{sdk-exporters-grpc-U5H74BEL.js → sdk-exporters-grpc-FX5C3IEA.js} +2 -2
  197. package/chunks/{sdk-exporters-http-34H6REMF.js → sdk-exporters-http-66WPQ7UY.js} +6 -6
  198. package/chunks/{sdk-impl-5OTPCVXV.js → sdk-impl-B4WTXTDQ.js} +9 -9
  199. package/chunks/send-message-KFUNQQFA.js +1 -1
  200. package/chunks/{serve-2ZQ532LO.js → serve-SHJLGEDC.js} +73 -67
  201. package/chunks/{server-BUDZHTIT.js → server-PUNNQEFJ.js} +267 -260
  202. package/chunks/{session-CKAFUD43.js → session-22YESIKO.js} +117 -111
  203. package/chunks/{session-26SOOJEN.js → session-XCQPLG6U.js} +3 -2
  204. package/chunks/{session-attachments-root-MJ3BQ3LD.js → session-attachments-root-25USCQWT.js} +66 -60
  205. package/chunks/{session-pr-refresh-OB6N6BHR.js → session-pr-refresh-LQAHIWKK.js} +74 -68
  206. package/chunks/{settings-6AXVX7VZ.js → settings-LNHRCVW6.js} +72 -66
  207. package/chunks/{shell-ENJCXAKQ.js → shell-CDFSFLKN.js} +49 -44
  208. package/chunks/{skill-JI7DIIC5.js → skill-YBEF77DP.js} +21 -20
  209. package/chunks/{skill-settings-QM6FE65C.js → skill-settings-WMMDNW4U.js} +73 -67
  210. package/chunks/{spawnChannel-YT5XGUD4.js → spawnChannel-FZCIKG4Z.js} +69 -63
  211. package/chunks/{standalone-update-PQTPOQ7H.js → standalone-update-ZXELWWF3.js} +68 -62
  212. package/chunks/{startInteractiveUI-YTXYK5FE.js → startInteractiveUI-HOOCMWEC.js} +1229 -1042
  213. package/chunks/{supervisor-runner-GTHTY2VP.js → supervisor-runner-5ZIXK3IK.js} +3 -3
  214. package/chunks/task-create-EHGTZMSD.js +2 -2
  215. package/chunks/task-update-LBXI5OVE.js +2 -2
  216. package/chunks/{team-create-JFKXHYVG.js → team-create-6ECQJZLF.js} +51 -46
  217. package/chunks/{team-plan-approval-XTW6G7MY.js → team-plan-approval-DBWFFQFM.js} +49 -44
  218. package/chunks/{terminal-image-renderer-GDTTKHI4.js → terminal-image-renderer-A6Y2HVBS.js} +66 -60
  219. package/chunks/{theme-manager-MRHNSAFC.js → theme-manager-OCW6TMNQ.js} +66 -60
  220. package/chunks/tool-call-V225426S.js +1 -1
  221. package/chunks/{tool-result-media-MXVFMVH2.js → tool-result-media-XTX26N6J.js} +19 -14
  222. package/chunks/{tool-search-RK5PYIEA.js → tool-search-HOXIUKWC.js} +19 -18
  223. package/chunks/{total-session-admission-KPWNF4I7.js → total-session-admission-WXJ3YEQ5.js} +71 -65
  224. package/chunks/{trustedFolders-SWKT5ICG.js → trustedFolders-XCMOSOO7.js} +68 -62
  225. package/chunks/{update-relaunch-EXMQLKEJ.js → update-relaunch-GVR62LH2.js} +5 -5
  226. package/chunks/{updateCheck-MP42WBSG.js → updateCheck-LIM7QN56.js} +71 -65
  227. package/chunks/{upload-config-AIRMZDHT.js → upload-config-RMBZH5CN.js} +13 -8
  228. package/chunks/{useAutoAcceptIndicator-K3T576EB.js → useAutoAcceptIndicator-UD2RHMEV.js} +76 -70
  229. package/chunks/{validateNonInterActiveAuth-4KATGUJO.js → validateNonInterActiveAuth-XWKIVK6H.js} +110 -104
  230. package/chunks/{version-JEM4ONGO.js → version-3I52C43L.js} +1 -1
  231. package/chunks/{web-fetch-TZXOJ74M.js → web-fetch-3HPAIZLZ.js} +15 -14
  232. package/chunks/{web-search-RDZCW5MX.js → web-search-IGWJKQL6.js} +14 -9
  233. package/chunks/{workflow-NTR7LISE.js → workflow-WPYWSNRI.js} +50 -45
  234. package/chunks/{workspace-providers-status-BOEHLEC6.js → workspace-providers-status-L47APRS5.js} +79 -73
  235. package/chunks/{workspace-registration-store-A4RBAXBF.js → workspace-registration-store-TAJMFLYS.js} +1 -1
  236. package/chunks/{workspace-registry-QADKTWBR.js → workspace-registry-OTHD5ACV.js} +71 -65
  237. package/chunks/{workspace-runtime-coordinator-M2LCS2XW.js → workspace-runtime-coordinator-HUTZGMRE.js} +72 -66
  238. package/chunks/{workspace-service-7P5UZHEE.js → workspace-service-SHVY3QVN.js} +77 -71
  239. package/chunks/{workspace-skills-status-MRA7H2M5.js → workspace-skills-status-HIYL5CH4.js} +76 -70
  240. package/chunks/{workspace-trust-reconciler-JTU5ZT3E.js → workspace-trust-reconciler-HGE6PGQR.js} +80 -74
  241. package/chunks/{write-file-TYMBS3Z4.js → write-file-PNL2YVFB.js} +52 -47
  242. package/chunks/{zoom-image-OYDAJGIC.js → zoom-image-GUMY7SRT.js} +10 -9
  243. package/cli.js +17 -17
  244. package/execution-worker.js +1 -1
  245. package/export-transcript-document.js +1 -1
  246. package/locales/en.js +17 -0
  247. package/locales/pt.js +17 -0
  248. package/node_modules/koffi/LICENSE.txt +22 -0
  249. package/node_modules/koffi/README.md +46 -0
  250. package/node_modules/koffi/index.cjs +1 -0
  251. package/node_modules/koffi/index.d.ts +390 -0
  252. package/node_modules/koffi/index.js +2 -0
  253. package/node_modules/koffi/indirect.cjs +1 -0
  254. package/node_modules/koffi/indirect.js +2 -0
  255. package/node_modules/koffi/package.json +63 -0
  256. package/node_modules/koffi/src/koffi/index.cjs +327 -0
  257. package/node_modules/koffi/src/koffi/index.js +312 -0
  258. package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
  259. package/node_modules/koffi/src/koffi/indirect.js +311 -0
  260. package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
  261. package/node_modules/koffi/src/koffi/src/static.js +173 -0
  262. package/package.json +25 -2
  263. package/release-notes.json +16 -0
  264. package/vendor/o1-connect/README.md +10 -3
  265. package/vendor/o1-connect/VENDOR.json +6 -2
  266. package/vendor/o1-connect/lib.mjs +1 -1
  267. package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  268. package/vendor/tree-sitter/tree-sitter.wasm +0 -0
  269. package/web-shell/assets/{abnfDiagram-VCTEODGH-2Dj_wAO-.js → abnfDiagram-VCTEODGH-DeVLjecs.js} +1 -1
  270. package/web-shell/assets/{arc-CM8UdMfv.js → arc-CsL1xVKr.js} +1 -1
  271. package/web-shell/assets/{architectureDiagram-5GKGNRK7-DVRUp2sY.js → architectureDiagram-5GKGNRK7-BXLHW1Px.js} +1 -1
  272. package/web-shell/assets/{blockDiagram-NRAW4CY4-LlLViOqt.js → blockDiagram-NRAW4CY4-BNz6-fkt.js} +1 -1
  273. package/web-shell/assets/{c4Diagram-UCG6FXSJ-s9MPoxak.js → c4Diagram-UCG6FXSJ-Dq_CA8EC.js} +1 -1
  274. package/web-shell/assets/channel-BUrNVNvF.js +1 -0
  275. package/web-shell/assets/{chunk-2Q5K7J3B-HlTfhwBU.js → chunk-2Q5K7J3B-BGf6suil.js} +1 -1
  276. package/web-shell/assets/{chunk-5VM5RSS4-CxS42ksC.js → chunk-5VM5RSS4-DsXPEjaR.js} +1 -1
  277. package/web-shell/assets/{chunk-F27PBJKO-DPeeODpW.js → chunk-F27PBJKO-lefHaak1.js} +1 -1
  278. package/web-shell/assets/{chunk-G27WJ6UU-CQYZmE5k.js → chunk-G27WJ6UU-CqIxZ7qb.js} +1 -1
  279. package/web-shell/assets/{chunk-JWPE2WC7-Bq0TMyxv.js → chunk-JWPE2WC7-_f_pqzn8.js} +1 -1
  280. package/web-shell/assets/{chunk-LCL6LL3I-BtnHzA-D.js → chunk-LCL6LL3I-CtcdHsE7.js} +1 -1
  281. package/web-shell/assets/{chunk-POPQ4Y6H-BRNWOxIT.js → chunk-POPQ4Y6H-apS8e2Sc.js} +1 -1
  282. package/web-shell/assets/{chunk-SVP7TREG-By9FnFN2.js → chunk-SVP7TREG-ixpYBIkx.js} +1 -1
  283. package/web-shell/assets/{chunk-XXDRQBXY-w0nYUkdp.js → chunk-XXDRQBXY-gqhlBr9W.js} +1 -1
  284. package/web-shell/assets/classDiagram-DTDB5LWJ-Dp6O5MFZ.js +1 -0
  285. package/web-shell/assets/classDiagram-v2-JRS7N3AN-Dp6O5MFZ.js +1 -0
  286. package/web-shell/assets/{cose-bilkent-JH36ORCC-YpgXH3_-.js → cose-bilkent-JH36ORCC-4Lz5-xk7.js} +1 -1
  287. package/web-shell/assets/{cynefin-OW5HDTMX-BamkWNPO.js → cynefin-OW5HDTMX-C-KBQe3G.js} +1 -1
  288. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Dpxn8LCb.js → cynefinDiagram-5FMLGOSQ-OwEEW2di.js} +1 -1
  289. package/web-shell/assets/{dagre-3AP2YEHR-CxuJQGMd.js → dagre-3AP2YEHR-4L0doyTK.js} +1 -1
  290. package/web-shell/assets/{diagram-S7CK7UJ4-DjccNeUH.js → diagram-S7CK7UJ4-Bxg6kfGe.js} +1 -1
  291. package/web-shell/assets/{diagram-UQ7AKVKN-8EkBLWb_.js → diagram-UQ7AKVKN-X3fXpkRJ.js} +1 -1
  292. package/web-shell/assets/{diagram-VSXAHHWV-CdR64P66.js → diagram-VSXAHHWV-Cp60T99q.js} +1 -1
  293. package/web-shell/assets/{diagram-VX7I27RA-CjQqXx8a.js → diagram-VX7I27RA-CZkcFZji.js} +1 -1
  294. package/web-shell/assets/{diagram-Z3DM3KII-CPVQ6neh.js → diagram-Z3DM3KII-DvNGvUPt.js} +1 -1
  295. package/web-shell/assets/{ebnfDiagram-PWID7BFC-Cd2nbw6-.js → ebnfDiagram-PWID7BFC-BTV0wWr4.js} +1 -1
  296. package/web-shell/assets/{erDiagram-SSCWMZ5O-BGnAX0IM.js → erDiagram-SSCWMZ5O-BKwQQDwu.js} +1 -1
  297. package/web-shell/assets/{flowDiagram-A5DVABFB-DcX08Nbr.js → flowDiagram-A5DVABFB-B1B0cjRi.js} +1 -1
  298. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-CVXiMVzW.js → ganttDiagram-EL5Y4UJY-Ds-cB5nB.js} +1 -1
  299. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BBxhu9G7.js → gitGraphDiagram-WWUBYQGX-lZR5ShCY.js} +1 -1
  300. package/web-shell/assets/{index-zwHrQxqv.js → index-BDW1uRJf.js} +3 -3
  301. package/web-shell/assets/{index-B5aKf1AA.js → index-DgnOl4qf.js} +1 -1
  302. package/web-shell/assets/{infoDiagram-RXCK75RN-C-1qC66j.js → infoDiagram-RXCK75RN-dX5l7VBF.js} +1 -1
  303. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-C8_mTu_r.js → ishikawaDiagram-5VMMS53U-RkITnya1.js} +1 -1
  304. package/web-shell/assets/{journeyDiagram-EYS64GPL-CROANElQ.js → journeyDiagram-EYS64GPL-CH4R48HP.js} +1 -1
  305. package/web-shell/assets/{kanban-definition-3QL26DDD-DfeA7UBv.js → kanban-definition-3QL26DDD-DsQJ6Dum.js} +1 -1
  306. package/web-shell/assets/{layout-Dkjy38dJ.js → layout-gI8CFFT8.js} +1 -1
  307. package/web-shell/assets/{linear-Bk2c8hgK.js → linear-mjV1EmYH.js} +1 -1
  308. package/web-shell/assets/{mermaid.core-BQpb5--e.js → mermaid.core-CQoFt4FL.js} +6 -6
  309. package/web-shell/assets/{mindmap-definition-FBJOCRG2-niwVx50h.js → mindmap-definition-FBJOCRG2-wwJGhH6c.js} +1 -1
  310. package/web-shell/assets/{pegDiagram-XKGWAZYB-CzwTglvx.js → pegDiagram-XKGWAZYB-ChxojIuq.js} +1 -1
  311. package/web-shell/assets/{pieDiagram-E7YTZNPT-BOTnaopZ.js → pieDiagram-E7YTZNPT-BInee6Tc.js} +1 -1
  312. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-ANc-jmLm.js → quadrantDiagram-AXDQQJYC-DnM0GPQh.js} +1 -1
  313. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DactPRXN.js → railroadDiagram-O6MQD6OU-a_kFvhDo.js} +1 -1
  314. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BhJYhbQx.js → requirementDiagram-EFPCY7ZU-D9pEqcZQ.js} +1 -1
  315. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CKmj4FSV.js → sankeyDiagram-P5KCCOFB-BgjX-_b2.js} +1 -1
  316. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-qqYmFKVm.js → sequenceDiagram-WJ2MYXX4-C4m5zqm7.js} +1 -1
  317. package/web-shell/assets/{sizeCapture-X5ZJPWSS-IZThfnGj.js → sizeCapture-X5ZJPWSS-BqlkCTmX.js} +1 -1
  318. package/web-shell/assets/{stateDiagram-HBIQ2CUA-DRVEahaQ.js → stateDiagram-HBIQ2CUA-wMOBHraJ.js} +1 -1
  319. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DkdI30zl.js +1 -0
  320. package/web-shell/assets/{swimlanes-XN3QIQJK-C-gt3GcA.js → swimlanes-XN3QIQJK-CC3AGYzj.js} +1 -1
  321. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C-7lW4fJ.js +8 -0
  322. package/web-shell/assets/{timeline-definition-24CTP7MA-CyyrqcKX.js → timeline-definition-24CTP7MA-B3pJzxDf.js} +1 -1
  323. package/web-shell/assets/{vennDiagram-4TSXK5OY-cuY4y_eV.js → vennDiagram-4TSXK5OY-BMoB3pI-.js} +1 -1
  324. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Dh2Zg335.js → wardleyDiagram-VM6X3IG4-NzBWcgfW.js} +1 -1
  325. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CmGN9rRU.js → xychartDiagram-S5SC5T6Z-BU0qpycE.js} +1 -1
  326. package/web-shell/index.html +1 -1
  327. package/web-shell/sw.js +1 -1
  328. package/vendor/o1-connect/.lintstagedrc.mjs +0 -7
  329. package/web-shell/assets/channel-NvsLvieh.js +0 -1
  330. package/web-shell/assets/classDiagram-DTDB5LWJ-BhmijuT4.js +0 -1
  331. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BhmijuT4.js +0 -1
  332. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Ck-zs-A0.js +0 -1
  333. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C9LTcitD.js +0 -8
  334. package/chunks/{chunk-IVVMETSX.js → chunk-4VLEDM44.js} +3 -3
  335. package/chunks/{chunk-M6C3BI2P.js → chunk-AMFFYQUN.js} +0 -0
  336. package/chunks/{chunk-ROO6F2BT.js → chunk-H5L5E5NI.js} +3 -3
  337. package/chunks/{chunk-GT2ATHFG.js → chunk-PKIF4YYA.js} +3 -3
  338. package/chunks/{chunk-INGWSCK5.js → chunk-QNRLAIIG.js} +3 -3
  339. package/chunks/{container-execution-environment-RKRAWXR3.js → container-execution-environment-XBTXQ5YE.js} +3 -3
  340. package/chunks/{downsample-image-HDL6LZNC.js → downsample-image-FUPJVVNL.js} +3 -3
@@ -19,6 +19,12 @@ import {
19
19
  require_main,
20
20
  resolveEnvVarsInObject
21
21
  } from "./chunk-EYWIFUPJ.js";
22
+ import {
23
+ claimTask,
24
+ listTasks,
25
+ onTasksUpdated,
26
+ unassignTeammateTasks
27
+ } from "./chunk-X427DWFD.js";
22
28
  import {
23
29
  CronScheduler,
24
30
  DEFAULT_RECURRING_MAX_AGE_DAYS,
@@ -34,71 +40,6 @@ import {
34
40
  wrapConfirmWithBadge,
35
41
  writeMessage
36
42
  } from "./chunk-7H3GWNGJ.js";
37
- import {
38
- claimTask,
39
- listTasks,
40
- onTasksUpdated,
41
- unassignTeammateTasks
42
- } from "./chunk-X427DWFD.js";
43
- import {
44
- AGENT_WORKTREE_SLUG_PATTERN,
45
- GitWorktreeService,
46
- MAX_DIFF_SIZE_BYTES,
47
- clearRuntimeStatus,
48
- generateAgentWorktreeSlug,
49
- gitEnv,
50
- loadSimpleGit,
51
- readRuntimeStatus,
52
- worktreeBranchForSlug,
53
- worktreeHasWork,
54
- writeRuntimeStatus,
55
- writeWorktreeSessionMarker
56
- } from "./chunk-JHRVJBV5.js";
57
- import {
58
- hasVerifiableInode,
59
- openSyncNoFollow
60
- } from "./chunk-DJOP5LOE.js";
61
- import {
62
- SessionArtifactSnapshotAccumulator,
63
- aggregateTranscriptRecordFragments,
64
- deleteArtifactSnapshot,
65
- getWebPreviewSnapshotId,
66
- isSessionArtifactRecord,
67
- isTranscriptConversationRecord,
68
- isUserPromptSubmitContextPartText,
69
- openBrowserSecurely,
70
- prepareTranscriptRecords,
71
- projectUserTranscriptForDisplay,
72
- rebuildSessionArtifactSnapshot,
73
- remapSessionArtifactPayloadForFork,
74
- retainArtifactSnapshot,
75
- selectActiveSideArtifactRecordUuids,
76
- selectTranscriptLeaf,
77
- shouldAttemptBrowserLaunch,
78
- stripGeneratedAttachmentTokens,
79
- validateTranscriptRecord,
80
- walkTranscriptUuidChain,
81
- wrapUserPromptSubmitContext
82
- } from "./chunk-FDNTWDR3.js";
83
- import {
84
- SHARED_RECORD_SLOT,
85
- deriveSessionName,
86
- patchSessionRecord,
87
- unregisterSession
88
- } from "./chunk-KEPNWFUD.js";
89
- import {
90
- LEADER_NAME,
91
- MAX_TEAMMATES,
92
- assignTeammateColor,
93
- classifyShutdownResponse,
94
- findMemberByName,
95
- formatAgentId,
96
- generateUniqueTeammateName,
97
- readLocalBootId,
98
- readPidNamespaceId,
99
- sanitizeName,
100
- writeTeamFile
101
- } from "./chunk-OI7IVUEO.js";
102
43
  import {
103
44
  AgentOutputMessageCapture,
104
45
  DEFAULT_OTLP_ENDPOINT,
@@ -158,70 +99,93 @@ import {
158
99
  stringify,
159
100
  validateGoalProposalReason,
160
101
  validateSkillName
161
- } from "./chunk-DNFPKNWM.js";
102
+ } from "./chunk-RWUZRVUT.js";
162
103
  import {
163
104
  canUseRipgrep
164
- } from "./chunk-LO6VR36F.js";
105
+ } from "./chunk-AJDAOH4D.js";
165
106
  import {
166
- glob,
167
- globSync
168
- } from "./chunk-4ESI3MQ5.js";
107
+ AGENT_WORKTREE_SLUG_PATTERN,
108
+ GitWorktreeService,
109
+ MAX_DIFF_SIZE_BYTES,
110
+ clearRuntimeStatus,
111
+ generateAgentWorktreeSlug,
112
+ gitEnv,
113
+ loadSimpleGit,
114
+ readRuntimeStatus,
115
+ worktreeBranchForSlug,
116
+ worktreeHasWork,
117
+ writeRuntimeStatus,
118
+ writeWorktreeSessionMarker
119
+ } from "./chunk-GM7RKZZ4.js";
169
120
  import {
170
- restoreSessionSources
171
- } from "./chunk-CDYMT4OZ.js";
121
+ hasVerifiableInode,
122
+ openSyncNoFollow
123
+ } from "./chunk-DJOP5LOE.js";
172
124
  import {
173
- CODE_MODE_MAX_MEDIA_BYTES,
174
- CODE_MODE_MAX_MEDIA_ITEMS
175
- } from "./chunk-TC7UXK4M.js";
125
+ SessionArtifactSnapshotAccumulator,
126
+ aggregateTranscriptRecordFragments,
127
+ deleteArtifactSnapshot,
128
+ getWebPreviewSnapshotId,
129
+ isSessionArtifactRecord,
130
+ isTranscriptConversationRecord,
131
+ isUserPromptSubmitContextPartText,
132
+ openBrowserSecurely,
133
+ prepareTranscriptRecords,
134
+ projectUserTranscriptForDisplay,
135
+ rebuildSessionArtifactSnapshot,
136
+ remapSessionArtifactPayloadForFork,
137
+ retainArtifactSnapshot,
138
+ selectActiveSideArtifactRecordUuids,
139
+ selectTranscriptLeaf,
140
+ shouldAttemptBrowserLaunch,
141
+ stripGeneratedAttachmentTokens,
142
+ validateTranscriptRecord,
143
+ walkTranscriptUuidChain,
144
+ wrapUserPromptSubmitContext
145
+ } from "./chunk-FDNTWDR3.js";
176
146
  import {
177
- parsePositiveIntegerEnv
178
- } from "./chunk-DS3COGEF.js";
147
+ SHARED_RECORD_SLOT,
148
+ deriveSessionName,
149
+ patchSessionRecord,
150
+ unregisterSession
151
+ } from "./chunk-KEPNWFUD.js";
152
+ import {
153
+ LEADER_NAME,
154
+ MAX_TEAMMATES,
155
+ assignTeammateColor,
156
+ classifyShutdownResponse,
157
+ findMemberByName,
158
+ formatAgentId,
159
+ generateUniqueTeammateName,
160
+ readLocalBootId,
161
+ readPidNamespaceId,
162
+ sanitizeName,
163
+ writeTeamFile
164
+ } from "./chunk-OI7IVUEO.js";
179
165
  import {
180
166
  buildModelIdContext,
181
167
  resolveModelId
182
- } from "./chunk-KRLE7IDY.js";
168
+ } from "./chunk-QYJB4I22.js";
169
+ import {
170
+ glob,
171
+ globSync
172
+ } from "./chunk-4ESI3MQ5.js";
183
173
  import {
184
174
  isTruthy
185
175
  } from "./chunk-SYMKXR42.js";
186
176
  import {
187
177
  normalizeImageGenerationBaseUrl
188
- } from "./chunk-SLH747HE.js";
178
+ } from "./chunk-5WCEM6DZ.js";
189
179
  import {
190
- resolveNetworkTarget
191
- } from "./chunk-HPQNI3OQ.js";
192
- import {
193
- isOmniDeliveryActive
194
- } from "./chunk-7CKBM5N3.js";
195
- import {
196
- MediaResourceRegistry,
197
- evaluateMediaPolicyToolCall,
198
- isMediaPolicyToolHiddenFromModel,
199
- resolveMediaPolicyModelAccess
200
- } from "./chunk-CI2ZHR5C.js";
180
+ restoreSessionSources
181
+ } from "./chunk-CDYMT4OZ.js";
201
182
  import {
202
- AskUserQuestionTool,
203
- TrustedUserAnswers,
204
- assembleSystemPrompt,
205
- getArenaSystemReminder,
206
- getCompressionPrompt,
207
- getCoreSystemPrompt,
208
- getCustomSystemPrompt,
209
- getManualPlanExitSystemReminder,
210
- getOutputStyleTurnReminder,
211
- getPlanModeSystemReminder,
212
- resolveEffectiveOutputStyle,
213
- resolveInteractionMode,
214
- resolveMainSessionOutputStyle,
215
- withDisplayModePrompt
216
- } from "./chunk-M7ZHP7VU.js";
183
+ CODE_MODE_MAX_MEDIA_BYTES,
184
+ CODE_MODE_MAX_MEDIA_ITEMS
185
+ } from "./chunk-TC7UXK4M.js";
217
186
  import {
218
- NO_EXEC_CONFIG,
219
- findGitRoot,
220
- getCachedGitBranch,
221
- getGitBranch,
222
- getRecentGitStatus,
223
- isGitRepository
224
- } from "./chunk-IO32UWHY.js";
187
+ parsePositiveIntegerEnv
188
+ } from "./chunk-DS3COGEF.js";
225
189
  import {
226
190
  ShellExecutionService,
227
191
  executeBwrap,
@@ -272,6 +236,18 @@ import {
272
236
  assertShellSandboxCwd,
273
237
  probeShellSandbox
274
238
  } from "./chunk-3K7BQWZY.js";
239
+ import {
240
+ resolveNetworkTarget
241
+ } from "./chunk-HPQNI3OQ.js";
242
+ import {
243
+ isOmniDeliveryActive
244
+ } from "./chunk-ZVYEHMGP.js";
245
+ import {
246
+ MediaResourceRegistry,
247
+ evaluateMediaPolicyToolCall,
248
+ isMediaPolicyToolHiddenFromModel,
249
+ resolveMediaPolicyModelAccess
250
+ } from "./chunk-CI2ZHR5C.js";
275
251
  import {
276
252
  require_proper_lockfile
277
253
  } from "./chunk-4LCUE7BN.js";
@@ -315,6 +291,30 @@ import {
315
291
  import {
316
292
  require_shell_quote
317
293
  } from "./chunk-WZCKDUBO.js";
294
+ import {
295
+ AskUserQuestionTool,
296
+ TrustedUserAnswers,
297
+ assembleSystemPrompt,
298
+ getArenaSystemReminder,
299
+ getCompressionPrompt,
300
+ getCoreSystemPrompt,
301
+ getCustomSystemPrompt,
302
+ getManualPlanExitSystemReminder,
303
+ getOutputStyleTurnReminder,
304
+ getPlanModeSystemReminder,
305
+ resolveEffectiveOutputStyle,
306
+ resolveInteractionMode,
307
+ resolveMainSessionOutputStyle,
308
+ withDisplayModePrompt
309
+ } from "./chunk-M7ZHP7VU.js";
310
+ import {
311
+ NO_EXEC_CONFIG,
312
+ findGitRoot,
313
+ getCachedGitBranch,
314
+ getGitBranch,
315
+ getRecentGitStatus,
316
+ isGitRepository
317
+ } from "./chunk-IO32UWHY.js";
318
318
  import {
319
319
  InMemoryImagePayloadStore,
320
320
  buildReattachParts,
@@ -332,7 +332,7 @@ import {
332
332
  import {
333
333
  DashScopeOpenAICompatibleProvider,
334
334
  selectDashScopeThinkingKnob
335
- } from "./chunk-GDRXAL2V.js";
335
+ } from "./chunk-JKLZSD6Z.js";
336
336
  import {
337
337
  InvalidStreamError,
338
338
  getToolCallPreparations,
@@ -366,109 +366,6 @@ import {
366
366
  isTeammate,
367
367
  runWithTeammateIdentity
368
368
  } from "./chunk-FOZEB37P.js";
369
- import {
370
- BUBBLE_APPROVAL_MODE,
371
- FORK_AGENT,
372
- FORK_DEFAULT_MAX_TURNS,
373
- FORK_PLACEHOLDER_RESULT,
374
- FORK_SUBAGENT_TYPE,
375
- SubagentError,
376
- SubagentErrorCode,
377
- buildAvailableSkillsReminder,
378
- buildChangedAgentsReminder,
379
- buildChangedMcpToolsReminder,
380
- buildChangedSkillsReminder,
381
- buildChildMessage,
382
- buildDeferredToolsReminder,
383
- buildForkExecutionAllowlist,
384
- buildForkedMessages,
385
- buildFunctionResponseParts,
386
- buildMcpServerInstructionsReminder,
387
- buildMcpServerInstructionsReminderFromEntries,
388
- buildPinnedWorktreeNotice,
389
- buildWorktreeNotice,
390
- formatDateForContext,
391
- getDirectoryContextString,
392
- getInitialChatHistory,
393
- getStartupContextLength,
394
- isSystemReminderContent,
395
- normalizeForkTurns,
396
- registerForkDisplayImageForCache,
397
- resolveForkExecutionAllowedTools,
398
- runInForkContext,
399
- selectForkHistory,
400
- stripSystemReminderBlocks,
401
- validateForkToolList,
402
- wrapSystemReminder
403
- } from "./chunk-DNMM4RF7.js";
404
- import {
405
- clearLoadedSkillTracking,
406
- collectAvailableSkillEntries,
407
- renderAvailableSkillsBlock
408
- } from "./chunk-2SMHE6PC.js";
409
- import {
410
- DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
411
- O1CodeIgnoreParser,
412
- formatO1CodeIgnoreFileNames,
413
- require_ignore
414
- } from "./chunk-OHAUN3Q5.js";
415
- import {
416
- WorkspaceContext,
417
- isPathWithinRoot
418
- } from "./chunk-O7QDVXNJ.js";
419
- import {
420
- DefaultHookOutput,
421
- HOOKS_CONFIG_FIELDS,
422
- HookEventName,
423
- PermissionRequestHookOutput,
424
- PostToolBatchHookOutput,
425
- PostToolUseFailureHookOutput,
426
- PostToolUseHookOutput,
427
- PreToolUseHookOutput,
428
- StopHookOutput,
429
- UserPromptExpansionHookOutput,
430
- createHookOutput,
431
- escapeSystemReminderTags,
432
- escapeXml,
433
- escapeXmlElementText,
434
- getHookKey,
435
- isBlockingHookOutput,
436
- isToolArtifactLike
437
- } from "./chunk-SRFL3HFU.js";
438
- import {
439
- getResponsesMessage,
440
- sameResponsesMessage
441
- } from "./chunk-BQAZCJF7.js";
442
- import {
443
- QUOTA_EXHAUSTED_PREFIX,
444
- ResponsesHttpError,
445
- classifyRetryError,
446
- delay,
447
- formatQuotaExhaustedMessage,
448
- getErrorHeader,
449
- getRateLimitErrorDetails,
450
- getRateLimitRetryDelayMs,
451
- isApiError,
452
- isFallbackEligible,
453
- isQuotaExhaustedError,
454
- isRateLimitError,
455
- isRetryableUpstreamError,
456
- isStructuredError,
457
- isUnattendedMode,
458
- retryWithBackoff
459
- } from "./chunk-GM2WNDZ5.js";
460
- import {
461
- getThoughtSummary
462
- } from "./chunk-CP63SY5N.js";
463
- import {
464
- captureReasoningSnapshot,
465
- resolveReasoningCapabilities,
466
- resolveReasoningForModel,
467
- validateReasoningCapabilities
468
- } from "./chunk-Y4DKB3I4.js";
469
- import {
470
- addDaemonRequestAttribute
471
- } from "./chunk-2F3GZ6WG.js";
472
369
  import {
473
370
  ApiRetryEvent,
474
371
  COMBINED_PASS_TOLERANCE_FACTOR,
@@ -561,7 +458,7 @@ import {
561
458
  updateMCPServerStatus,
562
459
  writeLine,
563
460
  writeLineSync
564
- } from "./chunk-ASQLIG2L.js";
461
+ } from "./chunk-2OEBEF5L.js";
565
462
  import {
566
463
  Mutex
567
464
  } from "./chunk-242JUBPM.js";
@@ -594,7 +491,7 @@ import {
594
491
  readTextCursorWindowFromHandle,
595
492
  readTextRangeFromHandle,
596
493
  setMemoryFilename
597
- } from "./chunk-ROO6F2BT.js";
494
+ } from "./chunk-H5L5E5NI.js";
598
495
  import {
599
496
  extractCodeModeImageContent,
600
497
  getCurrentToolCallSource,
@@ -604,10 +501,7 @@ import {
604
501
  } from "./chunk-3CMX5LCG.js";
605
502
  import {
606
503
  runSideQuery
607
- } from "./chunk-IC57EPC7.js";
608
- import {
609
- clampInlineMediaPart
610
- } from "./chunk-SZ26YNBZ.js";
504
+ } from "./chunk-HQROPADY.js";
611
505
  import {
612
506
  getSystemEncoding
613
507
  } from "./chunk-V4XETRAG.js";
@@ -615,6 +509,9 @@ import {
615
509
  getInvocationContext,
616
510
  runWithInvocationContext
617
511
  } from "./chunk-ABTPVII7.js";
512
+ import {
513
+ clampInlineMediaPart
514
+ } from "./chunk-SZ26YNBZ.js";
618
515
  import {
619
516
  normalizeMcpToolName,
620
517
  sanitizeToolNameForProvider
@@ -622,6 +519,75 @@ import {
622
519
  import {
623
520
  STRUCTURED_OUTPUT_REDACTED_ARGS
624
521
  } from "./chunk-IMLPJ76O.js";
522
+ import {
523
+ BUBBLE_APPROVAL_MODE,
524
+ FORK_AGENT,
525
+ FORK_DEFAULT_MAX_TURNS,
526
+ FORK_PLACEHOLDER_RESULT,
527
+ FORK_SUBAGENT_TYPE,
528
+ SubagentError,
529
+ SubagentErrorCode,
530
+ buildAvailableSkillsReminder,
531
+ buildChangedAgentsReminder,
532
+ buildChangedMcpToolsReminder,
533
+ buildChangedSkillsReminder,
534
+ buildChildMessage,
535
+ buildDeferredToolsReminder,
536
+ buildForkExecutionAllowlist,
537
+ buildForkedMessages,
538
+ buildFunctionResponseParts,
539
+ buildMcpServerInstructionsReminder,
540
+ buildMcpServerInstructionsReminderFromEntries,
541
+ buildPinnedWorktreeNotice,
542
+ buildWorktreeNotice,
543
+ formatDateForContext,
544
+ getDirectoryContextString,
545
+ getInitialChatHistory,
546
+ getStartupContextLength,
547
+ isSystemReminderContent,
548
+ normalizeForkTurns,
549
+ registerForkDisplayImageForCache,
550
+ resolveForkExecutionAllowedTools,
551
+ runInForkContext,
552
+ selectForkHistory,
553
+ stripSystemReminderBlocks,
554
+ validateForkToolList,
555
+ wrapSystemReminder
556
+ } from "./chunk-DNMM4RF7.js";
557
+ import {
558
+ clearLoadedSkillTracking,
559
+ collectAvailableSkillEntries,
560
+ renderAvailableSkillsBlock
561
+ } from "./chunk-2SMHE6PC.js";
562
+ import {
563
+ DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
564
+ O1CodeIgnoreParser,
565
+ formatO1CodeIgnoreFileNames,
566
+ require_ignore
567
+ } from "./chunk-OHAUN3Q5.js";
568
+ import {
569
+ WorkspaceContext,
570
+ isPathWithinRoot
571
+ } from "./chunk-O7QDVXNJ.js";
572
+ import {
573
+ DefaultHookOutput,
574
+ HOOKS_CONFIG_FIELDS,
575
+ HookEventName,
576
+ PermissionRequestHookOutput,
577
+ PostToolBatchHookOutput,
578
+ PostToolUseFailureHookOutput,
579
+ PostToolUseHookOutput,
580
+ PreToolUseHookOutput,
581
+ StopHookOutput,
582
+ UserPromptExpansionHookOutput,
583
+ createHookOutput,
584
+ escapeSystemReminderTags,
585
+ escapeXml,
586
+ escapeXmlElementText,
587
+ getHookKey,
588
+ isBlockingHookOutput,
589
+ isToolArtifactLike
590
+ } from "./chunk-SRFL3HFU.js";
625
591
  import {
626
592
  AgentStatistics,
627
593
  BaseDeclarativeTool,
@@ -635,6 +601,37 @@ import {
635
601
  require_ajv,
636
602
  require_dist
637
603
  } from "./chunk-V44Y3PCO.js";
604
+ import {
605
+ getResponsesMessage,
606
+ sameResponsesMessage
607
+ } from "./chunk-BQAZCJF7.js";
608
+ import {
609
+ getThoughtSummary
610
+ } from "./chunk-CP63SY5N.js";
611
+ import {
612
+ captureReasoningSnapshot,
613
+ resolveReasoningCapabilities,
614
+ resolveReasoningForModel,
615
+ validateReasoningCapabilities
616
+ } from "./chunk-J3RKZFKI.js";
617
+ import {
618
+ QUOTA_EXHAUSTED_PREFIX,
619
+ ResponsesHttpError,
620
+ classifyRetryError,
621
+ delay,
622
+ formatQuotaExhaustedMessage,
623
+ getErrorHeader,
624
+ getRateLimitErrorDetails,
625
+ getRateLimitRetryDelayMs,
626
+ isApiError,
627
+ isFallbackEligible,
628
+ isQuotaExhaustedError,
629
+ isRateLimitError,
630
+ isRetryableUpstreamError,
631
+ isStructuredError,
632
+ isUnattendedMode,
633
+ retryWithBackoff
634
+ } from "./chunk-YPTR7ZFB.js";
638
635
  import {
639
636
  DEFAULT_IMAGE_TOKEN_ESTIMATE,
640
637
  TOKEN_TO_CHAR_RATIO,
@@ -653,6 +650,9 @@ import {
653
650
  canonicalToolName,
654
651
  resolveBuiltinToolName
655
652
  } from "./chunk-SYMYKLO4.js";
653
+ import {
654
+ addDaemonRequestAttribute
655
+ } from "./chunk-LMFAYXBU.js";
656
656
  import {
657
657
  safeJsonStringify
658
658
  } from "./chunk-IQEM74QW.js";
@@ -699,36 +699,20 @@ import {
699
699
  startToolExecutionSpan,
700
700
  startToolSpan,
701
701
  truncateSpanError
702
- } from "./chunk-TYYTQIEZ.js";
702
+ } from "./chunk-W5XYWVXE.js";
703
703
  import {
704
704
  normalizeContent,
705
705
  stripAnsiAndControl,
706
706
  stripHtmlComments
707
707
  } from "./chunk-FKI7XUZK.js";
708
708
  import {
709
- FileTokenStorage,
710
- HybridTokenStorage,
711
- TokenStorageType,
712
- o1ConnectBaseUrlFor,
713
- openO1Connect
714
- } from "./chunk-JKXGHDQ2.js";
715
- import {
716
- atomicWriteFile,
717
- atomicWriteFileSync,
718
- atomicWriteJSON,
719
- renameWithRetry
720
- } from "./chunk-EPJAMNLS.js";
721
- import {
722
- BRAND,
723
709
  ModelsConfig,
724
- ORGANIZAONE_ANTHROPIC_BASE_URL,
725
710
  isImageGenerationCapable,
726
- isOrganizaOneBaseUrl,
727
711
  resolveModelApiKey,
728
712
  resolveProviderProtocol,
729
713
  resolveSavedModelApiKey,
730
714
  stripRuntimeSnapshotPrefix
731
- } from "./chunk-OCOO6CMW.js";
715
+ } from "./chunk-AEJFNK44.js";
732
716
  import {
733
717
  DEFAULT_TOKEN_LIMIT,
734
718
  OUTPUT_TOKEN_CEILING,
@@ -746,6 +730,33 @@ import {
746
730
  setGeneratorReasoningEffort,
747
731
  tokenLimit
748
732
  } from "./chunk-72EBG4FJ.js";
733
+ import {
734
+ GatewayConversationError,
735
+ createGatewayIndependentRequest,
736
+ gatewayIndependentInput
737
+ } from "./chunk-WXIQKOFD.js";
738
+ import {
739
+ require_src
740
+ } from "./chunk-RC67CA5Z.js";
741
+ import {
742
+ resolveAgentShell
743
+ } from "./chunk-AK6T4SJC.js";
744
+ import {
745
+ KeychainTokenStorage
746
+ } from "./chunk-EVC2HZ5T.js";
747
+ import {
748
+ FileTokenStorage,
749
+ HybridTokenStorage,
750
+ TokenStorageType,
751
+ o1ConnectBaseUrlFor,
752
+ openO1Connect
753
+ } from "./chunk-MRDYGSEU.js";
754
+ import {
755
+ atomicWriteFile,
756
+ atomicWriteFileSync,
757
+ atomicWriteJSON,
758
+ renameWithRetry
759
+ } from "./chunk-EPJAMNLS.js";
749
760
  import {
750
761
  AUTH_ENV_MAPPINGS,
751
762
  DEFAULT_MODELS,
@@ -754,10 +765,16 @@ import {
754
765
  createContentGenerator,
755
766
  resetPreloadedContentGenerator,
756
767
  resolveContentGeneratorConfigWithSources
757
- } from "./chunk-DYPQF4VS.js";
768
+ } from "./chunk-WSZLSFAL.js";
758
769
  import {
759
770
  DEFAULT_O1CODE_MODEL
760
771
  } from "./chunk-LEXKU5FI.js";
772
+ import {
773
+ BRAND,
774
+ ORGANIZAONE_ANTHROPIC_BASE_URL,
775
+ isOrganizaOneBaseUrl,
776
+ reachesOrganizaOne
777
+ } from "./chunk-VTIYMCRG.js";
761
778
  import {
762
779
  getOrCreateMcpDispatcher,
763
780
  loadUndici,
@@ -765,15 +782,6 @@ import {
765
782
  redactProxyError,
766
783
  setResolvedProxyUrlForRuntimeFetch
767
784
  } from "./chunk-S6HB6BVJ.js";
768
- import {
769
- require_src
770
- } from "./chunk-RC67CA5Z.js";
771
- import {
772
- resolveAgentShell
773
- } from "./chunk-AK6T4SJC.js";
774
- import {
775
- KeychainTokenStorage
776
- } from "./chunk-EVC2HZ5T.js";
777
785
  import {
778
786
  createDebugLogger,
779
787
  isDebugLogFileEnabled,
@@ -10346,6 +10354,7 @@ function applyResolvedModelConfig(targetConfig, resolvedModel, parentConfig, aut
10346
10354
  if (!inheritCredentials) targetConfig.customHeaders = void 0;
10347
10355
  targetConfig.reasoningRouteBaseUrl = resolvedModel.registryBaseUrl ?? null;
10348
10356
  targetConfig.model = resolvedModel.id;
10357
+ targetConfig.connection = resolvedModel.connection;
10349
10358
  targetConfig.authType = resolvedModel.authType;
10350
10359
  targetConfig.baseUrl = authOverrides.baseUrl ?? resolvedModel.baseUrl ?? (sameProvider ? parentConfig.baseUrl : void 0);
10351
10360
  if (resolvedModel.envKey) {
@@ -10712,14 +10721,17 @@ var BaseLlmClient = class {
10712
10721
  retryErrorCodes,
10713
10722
  model: requestModel
10714
10723
  } = await this.resolveForModel(model);
10724
+ const isGateway = reachesOrganizaOne(contentGeneratorConfig);
10725
+ const independent = isGateway ? createGatewayIndependentRequest(options2.gatewayPurpose) : void 0;
10715
10726
  const requestContents = slimCompactionInput(
10716
- contents,
10727
+ isGateway ? gatewayIndependentInput(contents) : contents,
10717
10728
  contentGeneratorConfig.modalities
10718
10729
  ).slimmedHistory;
10719
10730
  try {
10720
10731
  const apiCall = /* @__PURE__ */ __name(() => contentGenerator.generateContent(
10721
10732
  {
10722
10733
  model: requestModel,
10734
+ ...independent ? { gatewayIndependentRequest: independent } : {},
10723
10735
  config: {
10724
10736
  ...requestConfig,
10725
10737
  tools,
@@ -10829,13 +10841,16 @@ var BaseLlmClient = class {
10829
10841
  retryErrorCodes,
10830
10842
  model: requestModel
10831
10843
  } = await this.resolveForModel(model, { failClosed: options2.failClosed });
10844
+ const isGateway = reachesOrganizaOne(contentGeneratorConfig);
10845
+ const independent = isGateway ? createGatewayIndependentRequest(options2.gatewayPurpose) : void 0;
10832
10846
  const requestContents = slimCompactionInput(
10833
- contents,
10847
+ isGateway ? gatewayIndependentInput(contents) : contents,
10834
10848
  contentGeneratorConfig.modalities
10835
10849
  ).slimmedHistory;
10836
10850
  try {
10837
10851
  const request = {
10838
10852
  model: requestModel,
10853
+ ...independent ? { gatewayIndependentRequest: independent } : {},
10839
10854
  config: requestConfig,
10840
10855
  contents: requestContents,
10841
10856
  ...options2.promptCacheSharing && { promptCacheSharing: true }
@@ -10980,7 +10995,7 @@ var BaseLlmClient = class {
10980
10995
  const { contentGenerator, contentGeneratorConfig } = await this.createRuntimeViewForModel(
10981
10996
  requested.model,
10982
10997
  selector,
10983
- opts?.failClosed ?? false,
10998
+ opts?.failClosed === true || requested.model.startsWith("o1gw/") || reachesOrganizaOne(mainGeneratorConfig),
10984
10999
  requested.baseUrl
10985
11000
  );
10986
11001
  const resolvedModel = this.resolveModelAcrossAuthTypes(
@@ -30160,6 +30175,15 @@ var ChatRecordingService = class {
30160
30175
  }
30161
30176
  }
30162
30177
  }
30178
+ async recordGatewayConversation(payload) {
30179
+ await this.appendRecordStrict({
30180
+ ...this.createBaseRecord("system"),
30181
+ type: "system",
30182
+ subtype: "gateway_conversation",
30183
+ systemPayload: payload
30184
+ });
30185
+ await this.flush();
30186
+ }
30163
30187
  /** Persist the daemon session's current model so load/resume can restore it. */
30164
30188
  async recordSessionModel(payload) {
30165
30189
  if (!isValidSessionModelPayload(payload)) {
@@ -31558,6 +31582,12 @@ var ChatCompressionService = class {
31558
31582
  }
31559
31583
  }
31560
31584
  const curatedHistory = chat.getHistoryShallow(true);
31585
+ if (curatedHistory.length >= 2 && reachesOrganizaOne(contentGeneratorConfig)) {
31586
+ throw new GatewayConversationError(
31587
+ "unsupported",
31588
+ "This gateway verifies the full conversation history and does not authorize replacing it with a client summary. The history is preserved. Start a new empty conversation with /new when its context is full."
31589
+ );
31590
+ }
31561
31591
  if (curatedHistory.length === 0) {
31562
31592
  return {
31563
31593
  newHistory: null,
@@ -31717,7 +31747,7 @@ Do not call tools; tool execution is disabled for this request. ` + COMPRESSION_
31717
31747
  const providerSupportsCacheSharing = supportsCompressionCacheSharing(config2);
31718
31748
  const hasProviderTokenCount = (chat.getLastPromptTokenCount?.() ?? 0) > 0 && chat.isLastPromptTokenCountEstimated?.() !== true;
31719
31749
  const sharedRequestFits = sharedPromptTokenCount + sharedDirectiveTokenCount + COMPACT_MAX_OUTPUT_TOKENS <= contextLimit;
31720
- const canShareCache = usesMainModel && providerSupportsCacheSharing && hasProviderTokenCount && sharedRequestFits && // The shared request is built from the UNSLIMMED history. A
31750
+ const canShareCache = !reachesOrganizaOne(config2.getContentGeneratorConfig()) && usesMainModel && providerSupportsCacheSharing && hasProviderTokenCount && sharedRequestFits && // The shared request is built from the UNSLIMMED history. A
31721
31751
  // payload-overflow compaction exists because that exact payload was
31722
31752
  // just rejected at the gateway's byte limit — re-uploading it would
31723
31753
  // 413 again (logging a misleading cache-sharing failure) before the
@@ -34060,6 +34090,11 @@ var LlmChat = class {
34060
34090
  * then strips thinking parts from all model turns.
34061
34091
  */
34062
34092
  compressFast() {
34093
+ if (reachesOrganizaOne(this.config.getContentGeneratorConfig?.()))
34094
+ throw new GatewayConversationError(
34095
+ "unsupported",
34096
+ "This gateway does not authorize truncating the authenticated history. Keep this conversation and start a new empty one with /new."
34097
+ );
34063
34098
  this.adoptTokenCountsForRoute();
34064
34099
  const beforeEstimate = estimateContentTokens(this.history);
34065
34100
  const projectRoot = this.config.getProjectRoot();
@@ -34585,6 +34620,7 @@ var LlmChat = class {
34585
34620
  } catch (error62) {
34586
34621
  lastError = error62;
34587
34622
  if (params.config?.abortSignal?.aborted) throw error62;
34623
+ if (reachesOrganizaOne(cgConfig)) throw error62;
34588
34624
  foldTransportAttemptText();
34589
34625
  const classification = classifyRetryError(error62, {
34590
34626
  authType: cgConfig?.authType,
@@ -34604,6 +34640,7 @@ var LlmChat = class {
34604
34640
  if (error62 instanceof ResponsesHttpError && error62.headers.get("x-should-retry") === "false") {
34605
34641
  throw error62;
34606
34642
  }
34643
+ if (classification.reason === "gateway-continuity") throw error62;
34607
34644
  const isRateLimit = isRateLimitError(error62, extraRetryErrorCodes);
34608
34645
  if (isRateLimit) {
34609
34646
  const details = getRateLimitErrorDetails(error62);
@@ -34758,7 +34795,7 @@ var LlmChat = class {
34758
34795
  const degradeAttempt = omniMediaDegradeAttempts++;
34759
34796
  let degradeOutcome;
34760
34797
  try {
34761
- const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-R7SJ2NH6.js");
34798
+ const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-JI4TV7MU.js");
34762
34799
  degradeOutcome = await degradeOmniMediaAfterServerReject(
34763
34800
  self2.config,
34764
34801
  self2.history,
@@ -35034,7 +35071,7 @@ var LlmChat = class {
35034
35071
  }
35035
35072
  }
35036
35073
  }, "streamWithInvalidStreamRetries");
35037
- if (lastError === null && lastFinishReason === FinishReason.MAX_TOKENS && !maxTokensEscalated && !hasUserMaxTokensOverride) {
35074
+ if (lastError === null && !reachesOrganizaOne(cgConfig) && lastFinishReason === FinishReason.MAX_TOKENS && !maxTokensEscalated && !hasUserMaxTokensOverride) {
35038
35075
  maxTokensEscalated = true;
35039
35076
  let recoveryFinishReason = lastFinishReason;
35040
35077
  let recoveryParams = params;
@@ -38341,7 +38378,7 @@ __name(computeCharContribution, "computeCharContribution");
38341
38378
  init_esbuild_shims();
38342
38379
  import * as fs36 from "node:fs/promises";
38343
38380
  import * as path37 from "node:path";
38344
- import { randomUUID as randomUUID9 } from "node:crypto";
38381
+ import { randomUUID as randomUUID10 } from "node:crypto";
38345
38382
 
38346
38383
  // packages/core/src/memory/store.ts
38347
38384
  init_esbuild_shims();
@@ -38472,6 +38509,7 @@ init_esbuild_shims();
38472
38509
 
38473
38510
  // packages/core/src/agents/forkedAgent.ts
38474
38511
  init_esbuild_shims();
38512
+ import { randomUUID as randomUUID9 } from "node:crypto";
38475
38513
 
38476
38514
  // packages/core/src/tools/agent/agent.ts
38477
38515
  init_esbuild_shims();
@@ -77492,7 +77530,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
77492
77530
  const notices = [];
77493
77531
  let omniProcessed = responseParts;
77494
77532
  if (this.config.isOmniEnabled?.()) {
77495
- const { processToolResultOmniMedia } = await import("./tool-result-media-MXVFMVH2.js");
77533
+ const { processToolResultOmniMedia } = await import("./tool-result-media-XTX26N6J.js");
77496
77534
  omniProcessed = await processToolResultOmniMedia(
77497
77535
  responseParts,
77498
77536
  this.config,
@@ -80665,7 +80703,7 @@ ${body}
80665
80703
  artifacts: toolResult.artifacts
80666
80704
  } : void 0;
80667
80705
  if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
80668
- const { collectModelPolicyCall } = await import("./model-call-collection-CER6UKZQ.js");
80706
+ const { collectModelPolicyCall } = await import("./model-call-collection-ZLUY4ZPF.js");
80669
80707
  await collectModelPolicyCall({
80670
80708
  config: this.config,
80671
80709
  batch: policyArtifacts,
@@ -95137,6 +95175,11 @@ function clearCacheSafeParams() {
95137
95175
  __name(clearCacheSafeParams, "clearCacheSafeParams");
95138
95176
  var NO_TOOLS = Object.freeze({ tools: [] });
95139
95177
  function createForkedChat(config2, params) {
95178
+ if (reachesOrganizaOne(config2.getContentGeneratorConfig?.()))
95179
+ throw new GatewayConversationError(
95180
+ "unsupported",
95181
+ "This gateway does not authorize cloning a conversation history for a cache-sharing fork. Use an independent task with explicit source material."
95182
+ );
95140
95183
  const maxHistoryEntries = 40;
95141
95184
  const history = params.history.length > maxHistoryEntries ? params.history.slice(-maxHistoryEntries) : params.history;
95142
95185
  const forkedChat = new LlmChat(
@@ -95310,17 +95353,21 @@ async function runForkedAgent(params) {
95310
95353
  const filesTouched = /* @__PURE__ */ new Set();
95311
95354
  const pendingMutatingPaths = /* @__PURE__ */ new Map();
95312
95355
  const filesWritten = /* @__PURE__ */ new Set();
95313
- const initialMessages = params.extraHistory && (params.extraHistory.length > 0 || params.preserveEmptyExtraHistory) ? params.extraHistory : void 0;
95314
- const promptConfig = {
95315
- systemPrompt: params.systemPrompt,
95316
- initialMessages
95317
- };
95356
+ const sourceMessages = params.extraHistory && (params.extraHistory.length > 0 || params.preserveEmptyExtraHistory) ? params.extraHistory : void 0;
95318
95357
  const modelSelector = params.model ?? params.config.getFastModel?.() ?? params.config.getModel();
95319
95358
  const modelRuntime = await buildForkedModelRuntime(
95320
95359
  params.config,
95321
95360
  yoloConfig,
95322
95361
  modelSelector
95323
95362
  );
95363
+ const isGateway = reachesOrganizaOne(
95364
+ modelRuntime.runtimeView?.contentGeneratorConfig ?? params.config.getContentGeneratorConfig?.()
95365
+ );
95366
+ const invocationId = isGateway ? `${params.name}-${randomUUID9()}` : void 0;
95367
+ const promptConfig = {
95368
+ systemPrompt: params.systemPrompt,
95369
+ initialMessages: isGateway && sourceMessages ? gatewayIndependentInput(sourceMessages) : sourceMessages
95370
+ };
95324
95371
  const modelConfig = {
95325
95372
  model: modelRuntime.model
95326
95373
  };
@@ -95371,14 +95418,19 @@ async function runForkedAgent(params) {
95371
95418
  toolConfig,
95372
95419
  emitter,
95373
95420
  void 0,
95374
- modelRuntime.runtimeView
95421
+ modelRuntime.runtimeView,
95422
+ void 0,
95423
+ invocationId
95375
95424
  );
95376
95425
  const context2 = new ContextState();
95377
95426
  context2.set("task_prompt", params.taskPrompt);
95378
95427
  context2.set("hook_context", "");
95379
- const execute = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(modelRuntime, async () => {
95380
- await headless.execute(context2, executionController.signal);
95381
- }), "execute");
95428
+ const execute = /* @__PURE__ */ __name(() => {
95429
+ const run = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(modelRuntime, async () => {
95430
+ await headless.execute(context2, executionController.signal);
95431
+ }), "run");
95432
+ return invocationId ? runWithAgentContext(invocationId, run) : run();
95433
+ }, "execute");
95382
95434
  try {
95383
95435
  if (params.suppressChatRecording) {
95384
95436
  await runWithChatRecordingSuppressed(execute);
@@ -98653,7 +98705,7 @@ var WRITE_TOOL_NAMES2 = /* @__PURE__ */ new Set([
98653
98705
  function makeTaskRecord(type, projectRoot, sessionId) {
98654
98706
  const now = (/* @__PURE__ */ new Date()).toISOString();
98655
98707
  return {
98656
- id: randomUUID9(),
98708
+ id: randomUUID10(),
98657
98709
  taskType: type,
98658
98710
  projectRoot,
98659
98711
  sessionId,
@@ -99763,7 +99815,7 @@ import fsPromises2 from "node:fs/promises";
99763
99815
 
99764
99816
  // packages/core/src/core/message-display-dispatcher.ts
99765
99817
  init_esbuild_shims();
99766
- import { randomUUID as randomUUID10 } from "node:crypto";
99818
+ import { randomUUID as randomUUID11 } from "node:crypto";
99767
99819
 
99768
99820
  // packages/core/src/core/message-display-buffer.ts
99769
99821
  init_esbuild_shims();
@@ -99811,7 +99863,7 @@ var MessageDisplayDispatcher = class {
99811
99863
  static {
99812
99864
  __name(this, "MessageDisplayDispatcher");
99813
99865
  }
99814
- messageId = randomUUID10();
99866
+ messageId = randomUUID11();
99815
99867
  state;
99816
99868
  /** Newest undelivered mid-stream text, coalesced behind {@link inFlight}. */
99817
99869
  pending = null;
@@ -100632,7 +100684,9 @@ var LlmClient = class _LlmClient {
100632
100684
  );
100633
100685
  }
100634
100686
  const deferredTools = this.resolveDeferredToolsForReminder(deferredSummary);
100635
- const toolDeclarations = toolRegistry.getFunctionDeclarations();
100687
+ const toolDeclarations = reachesOrganizaOne(
100688
+ this.config.getContentGeneratorConfig?.()
100689
+ ) ? toolRegistry.getFunctionDeclarations({ includeDeferred: true }) : toolRegistry.getFunctionDeclarations();
100636
100690
  const tools = [{ functionDeclarations: toolDeclarations }];
100637
100691
  this.getChat().setTools(tools);
100638
100692
  this.queueAddedMcpToolsReminder(deferredTools ?? []);
@@ -101889,6 +101943,8 @@ var LlmClient = class _LlmClient {
101889
101943
  }
101890
101944
  }
101891
101945
  async microcompactHistoryBeforeSend(lastCompletionTimestamp, opts) {
101946
+ if (reachesOrganizaOne(this.config.getContentGeneratorConfig?.()))
101947
+ return false;
101892
101948
  try {
101893
101949
  const projectRoot = this.config.getProjectRoot();
101894
101950
  const targetDir = this.config.getTargetDir?.() ?? projectRoot;
@@ -102638,7 +102694,7 @@ The current date is: ${today}. Note: This is the authoritative current date \u20
102638
102694
  systemReminders.unshift(userQueryMemory.prompt);
102639
102695
  }
102640
102696
  if (this.config.isOmniEnabled?.()) {
102641
- const { runOmniMemorySideQuery, formatOmniMemorySideQueryReminder } = await import("./memory-side-query-DNXJZB7B.js");
102697
+ const { runOmniMemorySideQuery, formatOmniMemorySideQueryReminder } = await import("./memory-side-query-XFFIF7UX.js");
102642
102698
  const omniRecall = await runOmniMemorySideQuery({
102643
102699
  config: this.config,
102644
102700
  requestParts: requestToSend,
@@ -103314,13 +103370,15 @@ The current date is: ${today}. Note: This is the authoritative current date \u20
103314
103370
  contents,
103315
103371
  contentGeneratorConfig?.modalities ?? {}
103316
103372
  ).slimmedHistory;
103373
+ const independent = reachesOrganizaOne(contentGeneratorConfig) ? createGatewayIndependentRequest() : void 0;
103317
103374
  const apiCall = /* @__PURE__ */ __name(() => {
103318
103375
  currentAttemptModel = requestModel;
103319
103376
  return contentGenerator.generateContent(
103320
103377
  {
103321
103378
  model: requestModel,
103379
+ ...independent ? { gatewayIndependentRequest: independent } : {},
103322
103380
  config: requestConfig,
103323
- contents: requestContents
103381
+ contents: independent ? gatewayIndependentInput(requestContents) : requestContents
103324
103382
  },
103325
103383
  promptId
103326
103384
  );
@@ -134148,7 +134206,7 @@ var import_yaml3 = __toESM(require_dist2(), 1);
134148
134206
  import * as fs46 from "fs/promises";
134149
134207
  import * as path48 from "path";
134150
134208
  import * as os10 from "os";
134151
- import { randomUUID as randomUUID11 } from "crypto";
134209
+ import { randomUUID as randomUUID12 } from "crypto";
134152
134210
 
134153
134211
  // packages/core/src/subagents/validation.ts
134154
134212
  init_esbuild_shims();
@@ -135315,7 +135373,7 @@ ${config2.systemPrompt}
135315
135373
  );
135316
135374
  const { context: subagentContext, cleanup } = await this.buildSubagentContextOverride(runtimeContext, config2);
135317
135375
  disposeSubagentRegistry = cleanup;
135318
- const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID11().replace(/-/g, "").slice(0, 8)}`;
135376
+ const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID12().replace(/-/g, "").slice(0, 8)}`;
135319
135377
  const hookSystem = runtimeContext.getHookSystem();
135320
135378
  const hookRegistry = hookSystem?.getRegistry();
135321
135379
  if (config2.hooks && Object.keys(config2.hooks).length > 0) {
@@ -144461,7 +144519,7 @@ __name(extractZipArchive, "extractZipArchive");
144461
144519
  init_esbuild_shims();
144462
144520
  import * as fs61 from "node:fs/promises";
144463
144521
  import * as path63 from "node:path";
144464
- import { randomUUID as randomUUID12 } from "node:crypto";
144522
+ import { randomUUID as randomUUID13 } from "node:crypto";
144465
144523
  var EXTENSION_GIT_CREDENTIAL_SELECTOR_FILENAME = ".o1-code-extension-git-credentials.json";
144466
144524
  var GIT_CREDENTIAL_SERVICE_NAME = "O1-Code Extension Git Credentials";
144467
144525
  var GIT_CREDENTIAL_KEY_PREFIX = "$o1-code:extension-git:v1:";
@@ -144539,7 +144597,7 @@ async function writeGitCredentialSelector(extensionDir, selector) {
144539
144597
  __name(writeGitCredentialSelector, "writeGitCredentialSelector");
144540
144598
  async function prepareStoredGitCredential(extensionDir, credential) {
144541
144599
  const storage = new HybridTokenStorage(GIT_CREDENTIAL_SERVICE_NAME);
144542
- const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID12()}`;
144600
+ const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID13()}`;
144543
144601
  await storage.setSecret(secretKey, JSON.stringify(credential));
144544
144602
  const selector = {
144545
144603
  version: 1,
@@ -146710,7 +146768,7 @@ init_esbuild_shims();
146710
146768
  var dotenv = __toESM(require_main(), 1);
146711
146769
  import * as fs67 from "node:fs/promises";
146712
146770
  import * as fsSync3 from "node:fs";
146713
- import { randomUUID as randomUUID14 } from "node:crypto";
146771
+ import { randomUUID as randomUUID15 } from "node:crypto";
146714
146772
  import * as path68 from "node:path";
146715
146773
  var import_prompts7 = __toESM(require_prompts3(), 1);
146716
146774
  var debugLogger98 = createDebugLogger("EXT_SETTINGS");
@@ -146859,7 +146917,7 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
146859
146917
  const envContent = formatEnvContent(nonSensitiveSettings);
146860
146918
  await atomicWriteFile(envFilePath, envContent, { noFollow: true });
146861
146919
  if (Object.keys(sensitiveSettings).length > 0) {
146862
- const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID14()}`;
146920
+ const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID15()}`;
146863
146921
  await keychain.setSecret(bundleKey, JSON.stringify(sensitiveSettings));
146864
146922
  newSelector = {
146865
146923
  version: 1,
@@ -153459,7 +153517,7 @@ var HookRegistry = class {
153459
153517
  // packages/core/src/hooks/hookRunner.ts
153460
153518
  init_esbuild_shims();
153461
153519
  import { execFile as execFile8, spawn as spawn6 } from "node:child_process";
153462
- import { randomUUID as randomUUID16 } from "node:crypto";
153520
+ import { randomUUID as randomUUID17 } from "node:crypto";
153463
153521
  import { rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";
153464
153522
  import { platform as platform3, tmpdir as tmpdir4 } from "node:os";
153465
153523
  import { join as join54 } from "node:path";
@@ -154556,7 +154614,8 @@ ${processedPrompt}`);
154556
154614
  try {
154557
154615
  let generator = this.config.getContentGenerator();
154558
154616
  let requestModel = model;
154559
- let reasoningConfig = this.config.getContentGeneratorConfig().reasoning;
154617
+ let generatorConfig = this.config.getContentGeneratorConfig();
154618
+ let reasoningConfig = generatorConfig.reasoning;
154560
154619
  if (!generator) {
154561
154620
  const error62 = new Error(
154562
154621
  "ContentGenerator not available - make sure you are authenticated"
@@ -154575,6 +154634,7 @@ ${processedPrompt}`);
154575
154634
  ]);
154576
154635
  generator = resolved.contentGenerator;
154577
154636
  requestModel = resolved.model;
154637
+ generatorConfig = resolved.contentGeneratorConfig;
154578
154638
  reasoningConfig = resolved.contentGeneratorConfig.reasoning;
154579
154639
  }
154580
154640
  const isReasoningModel = this.isReasoningModel(
@@ -154607,6 +154667,7 @@ ${processedPrompt}`);
154607
154667
  generator.generateContent(
154608
154668
  {
154609
154669
  model: requestModel,
154670
+ ...reachesOrganizaOne(generatorConfig) ? { gatewayIndependentRequest: createGatewayIndependentRequest() } : {},
154610
154671
  contents,
154611
154672
  config: requestConfig
154612
154673
  },
@@ -155448,7 +155509,7 @@ __name(terminateSurvivingHookProcessGroup, "terminateSurvivingHookProcessGroup")
155448
155509
  function createSurvivingHookInputFile(input2) {
155449
155510
  const path80 = join54(
155450
155511
  tmpdir4(),
155451
- `o1-code-hook-input-${process.pid}-${randomUUID16()}.json`
155512
+ `o1-code-hook-input-${process.pid}-${randomUUID17()}.json`
155452
155513
  );
155453
155514
  writeFileSync8(path80, JSON.stringify(input2), {
155454
155515
  encoding: "utf8",
@@ -158870,7 +158931,7 @@ var HOOK_EVENT_DISPLAY = Object.freeze({
158870
158931
 
158871
158932
  // packages/core/src/confirmation-bus/message-bus.ts
158872
158933
  init_esbuild_shims();
158873
- import { randomUUID as randomUUID17 } from "node:crypto";
158934
+ import { randomUUID as randomUUID18 } from "node:crypto";
158874
158935
  import { EventEmitter as EventEmitter6 } from "node:events";
158875
158936
  var debugLogger118 = createDebugLogger("TRUSTED_HOOKS");
158876
158937
  var MessageBus = class extends EventEmitter6 {
@@ -158931,7 +158992,7 @@ var MessageBus = class extends EventEmitter6 {
158931
158992
  * The correlation ID is generated internally and added to the request
158932
158993
  */
158933
158994
  async request(request, responseType, timeoutMs = 6e4, signal) {
158934
- const correlationId = randomUUID17();
158995
+ const correlationId = randomUUID18();
158935
158996
  return new Promise((resolve34, reject) => {
158936
158997
  if (signal?.aborted) {
158937
158998
  reject(new Error("Request aborted"));
@@ -159063,7 +159124,7 @@ function isSdkMcpServerConfig(config2) {
159063
159124
  __name(isSdkMcpServerConfig, "isSdkMcpServerConfig");
159064
159125
 
159065
159126
  // packages/core/src/config/config.ts
159066
- import { createHash as createHash12, randomUUID as randomUUID18 } from "node:crypto";
159127
+ import { createHash as createHash12, randomUUID as randomUUID19 } from "node:crypto";
159067
159128
 
159068
159129
  // packages/core/src/memory/memoryDiscovery.ts
159069
159130
  init_esbuild_shims();
@@ -163628,7 +163689,7 @@ var Config = class _Config {
163628
163689
  Storage.getGlobalO1CodeDir()
163629
163690
  );
163630
163691
  this.provisionalWorkspace = params.provisionalWorkspace === true;
163631
- this.sessionId = params.sessionId ?? randomUUID18();
163692
+ this.sessionId = params.sessionId ?? randomUUID19();
163632
163693
  if (!sessionEnvClaimed && process6.env) {
163633
163694
  process6.env["O1CODE_SESSION_ID"] = this.sessionId;
163634
163695
  sessionEnvClaimed = true;
@@ -164151,7 +164212,7 @@ var Config = class _Config {
164151
164212
  await this.proxyDispatcherReady;
164152
164213
  options2?.signal?.throwIfAborted();
164153
164214
  if (this.isOmniEnabled()) {
164154
- const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-AIRMZDHT.js");
164215
+ const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-RMBZH5CN.js");
164155
164216
  this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
164156
164217
  baseUrl: this.omniUploadBaseUrl,
164157
164218
  apiKeyEnv: this.omniUploadApiKeyEnv,
@@ -165341,7 +165402,7 @@ var Config = class _Config {
165341
165402
  void outgoingChatRecordingService?.flush().catch(() => {
165342
165403
  });
165343
165404
  const previousSessionId = this.sessionId;
165344
- const nextSessionId = sessionId ?? randomUUID18();
165405
+ const nextSessionId = sessionId ?? randomUUID19();
165345
165406
  const isSessionTransition = nextSessionId !== previousSessionId;
165346
165407
  if (isSessionTransition) {
165347
165408
  logSessionEnd(this);
@@ -168064,7 +168125,7 @@ var Config = class _Config {
168064
168125
  return this.omniPolicyTools;
168065
168126
  }
168066
168127
  async loadOmniMediaReader() {
168067
- return import("./omni-NTS5DKKW.js");
168128
+ return import("./omni-WVNDCU2V.js");
168068
168129
  }
168069
168130
  /** Normalized `omni.processing` view. Undefined until tool warmup
168070
168131
  * completes (or when omni is disabled). */
@@ -169673,7 +169734,7 @@ var Config = class _Config {
169673
169734
  async registerWorkflowTool(registry2) {
169674
169735
  if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
169675
169736
  await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
169676
- const { WorkflowTool } = await import("./workflow-NTR7LISE.js");
169737
+ const { WorkflowTool } = await import("./workflow-WPYWSNRI.js");
169677
169738
  return new WorkflowTool(this);
169678
169739
  });
169679
169740
  return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
@@ -169695,7 +169756,7 @@ var Config = class _Config {
169695
169756
  }
169696
169757
  if (status === "disabled") return;
169697
169758
  const factory = /* @__PURE__ */ __name(async () => {
169698
- const { ImageGenTool } = await import("./image-gen-KX5VPAGI.js");
169759
+ const { ImageGenTool } = await import("./image-gen-WGMRL47H.js");
169699
169760
  return new ImageGenTool(this);
169700
169761
  }, "factory");
169701
169762
  if (status === "deferred") {
@@ -169753,16 +169814,16 @@ var Config = class _Config {
169753
169814
  const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
169754
169815
  if (options2?.forSubAgent) return;
169755
169816
  await registerLazy(ToolNames.GET_GOAL, async () => {
169756
- const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169817
+ const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-54MEWICX.js");
169757
169818
  return new GetGoalTool2(this);
169758
169819
  });
169759
169820
  await registerLazy(ToolNames.UPDATE_GOAL, async () => {
169760
- const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169821
+ const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-54MEWICX.js");
169761
169822
  return new UpdateGoalTool2(this);
169762
169823
  });
169763
169824
  if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
169764
169825
  await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
169765
- const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-XLPICZ5T.js");
169826
+ const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-54MEWICX.js");
169766
169827
  return new ProposeGoalTool2(this);
169767
169828
  });
169768
169829
  }
@@ -169782,16 +169843,16 @@ var Config = class _Config {
169782
169843
  });
169783
169844
  }
169784
169845
  await registerLazy(ToolNames.WEB_FETCH, async () => {
169785
- const { WebFetchTool } = await import("./web-fetch-TZXOJ74M.js");
169846
+ const { WebFetchTool } = await import("./web-fetch-3HPAIZLZ.js");
169786
169847
  return new WebFetchTool(this);
169787
169848
  });
169788
169849
  const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
169789
169850
  if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
169790
- const { evaluateWebSearchGate } = await import("./web-search-RDZCW5MX.js");
169851
+ const { evaluateWebSearchGate } = await import("./web-search-IGWJKQL6.js");
169791
169852
  const gate = evaluateWebSearchGate(this);
169792
169853
  if (gate.ok) {
169793
169854
  await registerLazy(ToolNames.WEB_SEARCH, async () => {
169794
- const { WebSearchTool } = await import("./web-search-RDZCW5MX.js");
169855
+ const { WebSearchTool } = await import("./web-search-IGWJKQL6.js");
169795
169856
  return new WebSearchTool(this);
169796
169857
  });
169797
169858
  } else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
@@ -169808,8 +169869,8 @@ var Config = class _Config {
169808
169869
  );
169809
169870
  }
169810
169871
  const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
169811
- import("./local-execution-environment-PFBURDOE.js"),
169812
- import("./execution-tool-VACK7N45.js")
169872
+ import("./local-execution-environment-DP37VPGH.js"),
169873
+ import("./execution-tool-Z6N2XKZI.js")
169813
169874
  ]);
169814
169875
  for (const [name, tool] of createExecutionTools(this)) {
169815
169876
  if (environment.toolNames && !environment.toolNames.has(name)) continue;
@@ -169824,7 +169885,7 @@ var Config = class _Config {
169824
169885
  return new ToolCallTool(registry2);
169825
169886
  });
169826
169887
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
169827
- const { ToolSearchTool } = await import("./tool-search-RK5PYIEA.js");
169888
+ const { ToolSearchTool } = await import("./tool-search-HOXIUKWC.js");
169828
169889
  return new ToolSearchTool(this);
169829
169890
  });
169830
169891
  if (this.executionEnvironment && !options2?.forSubAgent) {
@@ -169836,7 +169897,7 @@ var Config = class _Config {
169836
169897
  }
169837
169898
  if (this.shellExecutionSandbox) {
169838
169899
  await registerLazy(ToolNames.SHELL, async () => {
169839
- const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
169900
+ const { ShellTool: ShellTool2 } = await import("./shell-CDFSFLKN.js");
169840
169901
  return new ShellTool2(this);
169841
169902
  });
169842
169903
  await registerLazy(ToolNames.TASK_STOP, async () => {
@@ -169844,31 +169905,31 @@ var Config = class _Config {
169844
169905
  return new TaskStopTool(this);
169845
169906
  });
169846
169907
  await registerLazy(ToolNames.READ_FILE, async () => {
169847
- const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
169908
+ const { ReadFileTool } = await import("./read-file-BROAVJMY.js");
169848
169909
  return new ReadFileTool(this);
169849
169910
  });
169850
169911
  await registerLazy(ToolNames.WRITE_FILE, async () => {
169851
- const { WriteFileTool } = await import("./write-file-TYMBS3Z4.js");
169912
+ const { WriteFileTool } = await import("./write-file-PNL2YVFB.js");
169852
169913
  return new WriteFileTool(this);
169853
169914
  });
169854
169915
  await registerLazy(ToolNames.EDIT, async () => {
169855
- const { EditTool } = await import("./edit-TSSCUSYW.js");
169916
+ const { EditTool } = await import("./edit-LHLIDK3S.js");
169856
169917
  return new EditTool(this);
169857
169918
  });
169858
169919
  await registerLazy(ToolNames.MONITOR, async () => {
169859
- const { MonitorTool } = await import("./monitor-3DZ6543L.js");
169920
+ const { MonitorTool } = await import("./monitor-GXNUEY3P.js");
169860
169921
  return new MonitorTool(this);
169861
169922
  });
169862
169923
  await registerLazy(ToolNames.AGENT, async () => {
169863
- const { AgentTool: AgentTool2 } = await import("./agent-NH2EHRJ3.js");
169924
+ const { AgentTool: AgentTool2 } = await import("./agent-ZI5SNX4V.js");
169864
169925
  return new AgentTool2(this);
169865
169926
  });
169866
169927
  await registerLazy(ToolNames.GLOB, async () => {
169867
- const { GlobTool } = await import("./glob-2CHWQ3H5.js");
169928
+ const { GlobTool } = await import("./glob-I3H7VRYE.js");
169868
169929
  return new GlobTool(this);
169869
169930
  });
169870
169931
  await registerLazy(ToolNames.LS, async () => {
169871
- const { LSTool } = await import("./ls-RZYAZPVC.js");
169932
+ const { LSTool } = await import("./ls-SSSPTK7X.js");
169872
169933
  return new LSTool(this);
169873
169934
  });
169874
169935
  if (resolveInteractionMode(this) !== "headless") {
@@ -169883,19 +169944,19 @@ var Config = class _Config {
169883
169944
  }
169884
169945
  if (this.getBareMode()) {
169885
169946
  await registerLazy(ToolNames.READ_FILE, async () => {
169886
- const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
169947
+ const { ReadFileTool } = await import("./read-file-BROAVJMY.js");
169887
169948
  return new ReadFileTool(this);
169888
169949
  });
169889
169950
  await registerLazy(ToolNames.EDIT, async () => {
169890
- const { EditTool } = await import("./edit-TSSCUSYW.js");
169951
+ const { EditTool } = await import("./edit-LHLIDK3S.js");
169891
169952
  return new EditTool(this);
169892
169953
  });
169893
169954
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
169894
- const { NotebookEditTool } = await import("./notebook-edit-EC3X76GJ.js");
169955
+ const { NotebookEditTool } = await import("./notebook-edit-DXAOFD2H.js");
169895
169956
  return new NotebookEditTool(this);
169896
169957
  });
169897
169958
  await registerLazy(ToolNames.SHELL, async () => {
169898
- const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
169959
+ const { ShellTool: ShellTool2 } = await import("./shell-CDFSFLKN.js");
169899
169960
  return new ShellTool2(this);
169900
169961
  });
169901
169962
  await registerGoalWorkerTools();
@@ -169914,7 +169975,7 @@ var Config = class _Config {
169914
169975
  return new ToolCallTool(registry2);
169915
169976
  });
169916
169977
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
169917
- const { ToolSearchTool } = await import("./tool-search-RK5PYIEA.js");
169978
+ const { ToolSearchTool } = await import("./tool-search-HOXIUKWC.js");
169918
169979
  return new ToolSearchTool(this);
169919
169980
  });
169920
169981
  await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
@@ -169922,7 +169983,7 @@ var Config = class _Config {
169922
169983
  return new ReadMcpResourceTool(this);
169923
169984
  });
169924
169985
  await registerLazy(ToolNames.AGENT, async () => {
169925
- const { AgentTool: AgentTool2 } = await import("./agent-NH2EHRJ3.js");
169986
+ const { AgentTool: AgentTool2 } = await import("./agent-ZI5SNX4V.js");
169926
169987
  return new AgentTool2(this);
169927
169988
  });
169928
169989
  await registerLazy(ToolNames.LIST_AGENTS, async () => {
@@ -169938,21 +169999,21 @@ var Config = class _Config {
169938
169999
  return new SendMessageTool(this);
169939
170000
  });
169940
170001
  await registerLazy(ToolNames.SKILL, async () => {
169941
- const { SkillTool } = await import("./skill-JI7DIIC5.js");
170002
+ const { SkillTool } = await import("./skill-YBEF77DP.js");
169942
170003
  return new SkillTool(this);
169943
170004
  });
169944
170005
  if (this.isLsToolEnabled()) {
169945
170006
  await registerLazy(ToolNames.LS, async () => {
169946
- const { LSTool } = await import("./ls-RZYAZPVC.js");
170007
+ const { LSTool } = await import("./ls-SSSPTK7X.js");
169947
170008
  return new LSTool(this);
169948
170009
  });
169949
170010
  }
169950
170011
  await registerLazy(ToolNames.READ_FILE, async () => {
169951
- const { ReadFileTool } = await import("./read-file-NRMGUMQM.js");
170012
+ const { ReadFileTool } = await import("./read-file-BROAVJMY.js");
169952
170013
  return new ReadFileTool(this);
169953
170014
  });
169954
170015
  await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
169955
- const { ZoomImageTool } = await import("./zoom-image-OYDAJGIC.js");
170016
+ const { ZoomImageTool } = await import("./zoom-image-GUMY7SRT.js");
169956
170017
  return new ZoomImageTool(this);
169957
170018
  });
169958
170019
  if (this.getUseRipgrep()) {
@@ -169967,7 +170028,7 @@ var Config = class _Config {
169967
170028
  recordStartupEvent("config_initialize_ripgrep_probe_end");
169968
170029
  if (useRipgrep) {
169969
170030
  await registerLazy(ToolNames.GREP, async () => {
169970
- const { RipGrepTool } = await import("./ripGrep-WQJTNYRZ.js");
170031
+ const { RipGrepTool } = await import("./ripGrep-L6STRULU.js");
169971
170032
  return new RipGrepTool(this);
169972
170033
  });
169973
170034
  } else {
@@ -169980,7 +170041,7 @@ var Config = class _Config {
169980
170041
  )
169981
170042
  );
169982
170043
  await registerLazy(ToolNames.GREP, async () => {
169983
- const { GrepTool } = await import("./grep-JBR55JCA.js");
170044
+ const { GrepTool } = await import("./grep-5HGH34M6.js");
169984
170045
  return new GrepTool(this);
169985
170046
  });
169986
170047
  }
@@ -169988,32 +170049,32 @@ var Config = class _Config {
169988
170049
  recordStartupEvent("config_initialize_ripgrep_probe_start");
169989
170050
  recordStartupEvent("config_initialize_ripgrep_probe_end");
169990
170051
  await registerLazy(ToolNames.GREP, async () => {
169991
- const { GrepTool } = await import("./grep-JBR55JCA.js");
170052
+ const { GrepTool } = await import("./grep-5HGH34M6.js");
169992
170053
  return new GrepTool(this);
169993
170054
  });
169994
170055
  }
169995
170056
  await registerLazy(ToolNames.GLOB, async () => {
169996
- const { GlobTool } = await import("./glob-2CHWQ3H5.js");
170057
+ const { GlobTool } = await import("./glob-I3H7VRYE.js");
169997
170058
  return new GlobTool(this);
169998
170059
  });
169999
170060
  await registerLazy(ToolNames.EDIT, async () => {
170000
- const { EditTool } = await import("./edit-TSSCUSYW.js");
170061
+ const { EditTool } = await import("./edit-LHLIDK3S.js");
170001
170062
  return new EditTool(this);
170002
170063
  });
170003
170064
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
170004
- const { NotebookEditTool } = await import("./notebook-edit-EC3X76GJ.js");
170065
+ const { NotebookEditTool } = await import("./notebook-edit-DXAOFD2H.js");
170005
170066
  return new NotebookEditTool(this);
170006
170067
  });
170007
170068
  await registerLazy(ToolNames.WRITE_FILE, async () => {
170008
- const { WriteFileTool } = await import("./write-file-TYMBS3Z4.js");
170069
+ const { WriteFileTool } = await import("./write-file-PNL2YVFB.js");
170009
170070
  return new WriteFileTool(this);
170010
170071
  });
170011
170072
  await registerLazy(ToolNames.SHELL, async () => {
170012
- const { ShellTool: ShellTool2 } = await import("./shell-ENJCXAKQ.js");
170073
+ const { ShellTool: ShellTool2 } = await import("./shell-CDFSFLKN.js");
170013
170074
  return new ShellTool2(this);
170014
170075
  });
170015
170076
  await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
170016
- const { ReportFindingsTool } = await import("./report-findings-OVUUKGUX.js");
170077
+ const { ReportFindingsTool } = await import("./report-findings-S6QO46V2.js");
170017
170078
  return new ReportFindingsTool();
170018
170079
  });
170019
170080
  const supportsUserInteraction = resolveInteractionMode(this) !== "headless";
@@ -170025,22 +170086,22 @@ var Config = class _Config {
170025
170086
  }
170026
170087
  if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
170027
170088
  await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
170028
- const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-MUPEFJZW.js");
170089
+ const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-JGOBW34Q.js");
170029
170090
  return new ExitPlanModeTool2(this);
170030
170091
  });
170031
170092
  }
170032
170093
  if (!this.sdkMode && supportsUserInteraction) {
170033
170094
  await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
170034
- const { EnterPlanModeTool } = await import("./enterPlanMode-ZSQKJKZQ.js");
170095
+ const { EnterPlanModeTool } = await import("./enterPlanMode-IQK2RIT2.js");
170035
170096
  return new EnterPlanModeTool(this);
170036
170097
  });
170037
170098
  }
170038
170099
  await registerLazy(ToolNames.ENTER_WORKTREE, async () => {
170039
- const { EnterWorktreeTool } = await import("./enter-worktree-FY6Y6APX.js");
170100
+ const { EnterWorktreeTool } = await import("./enter-worktree-FIO6VPWS.js");
170040
170101
  return new EnterWorktreeTool(this);
170041
170102
  });
170042
170103
  await registerLazy(ToolNames.EXIT_WORKTREE, async () => {
170043
- const { ExitWorktreeTool } = await import("./exit-worktree-Q3ZHCBYN.js");
170104
+ const { ExitWorktreeTool } = await import("./exit-worktree-3UU4SS47.js");
170044
170105
  return new ExitWorktreeTool(this);
170045
170106
  });
170046
170107
  if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
@@ -170061,7 +170122,7 @@ var Config = class _Config {
170061
170122
  }
170062
170123
  if (this.isRecordArtifactEnabled()) {
170063
170124
  await registerLazy(ToolNames.RECORD_ARTIFACT, async () => {
170064
- const { RecordArtifactTool } = await import("./record-artifact-LAQGMYDN.js");
170125
+ const { RecordArtifactTool } = await import("./record-artifact-NO2DU63L.js");
170065
170126
  return new RecordArtifactTool(this);
170066
170127
  });
170067
170128
  }
@@ -170098,7 +170159,7 @@ var Config = class _Config {
170098
170159
  }
170099
170160
  if (this.isAgentTeamEnabled()) {
170100
170161
  await registerLazy(ToolNames.TEAM_CREATE, async () => {
170101
- const { TeamCreateTool } = await import("./team-create-JFKXHYVG.js");
170162
+ const { TeamCreateTool } = await import("./team-create-6ECQJZLF.js");
170102
170163
  return new TeamCreateTool(this);
170103
170164
  });
170104
170165
  await registerLazy(ToolNames.TEAM_DELETE, async () => {
@@ -170106,7 +170167,7 @@ var Config = class _Config {
170106
170167
  return new TeamDeleteTool(this);
170107
170168
  });
170108
170169
  await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
170109
- const { TeamPlanApprovalTool } = await import("./team-plan-approval-XTW6G7MY.js");
170170
+ const { TeamPlanApprovalTool } = await import("./team-plan-approval-DBWFFQFM.js");
170110
170171
  return new TeamPlanApprovalTool(this);
170111
170172
  });
170112
170173
  if (!options2?.forSubAgent) {
@@ -170135,7 +170196,7 @@ var Config = class _Config {
170135
170196
  const omniPolicyToolFactories = [
170136
170197
  [
170137
170198
  ToolNames.OMNI_DOWNSAMPLE_IMAGE,
170138
- async () => new (await import("./downsample-image-HDL6LZNC.js")).OmniDownsampleImageTool(this)
170199
+ async () => new (await import("./downsample-image-FUPJVVNL.js")).OmniDownsampleImageTool(this)
170139
170200
  ],
170140
170201
  [
170141
170202
  ToolNames.OMNI_DOWNSCALE_VIDEO,
@@ -170202,7 +170263,7 @@ var Config = class _Config {
170202
170263
  }
170203
170264
  }
170204
170265
  await registerLazy(ToolNames.MONITOR, async () => {
170205
- const { MonitorTool } = await import("./monitor-3DZ6543L.js");
170266
+ const { MonitorTool } = await import("./monitor-GXNUEY3P.js");
170206
170267
  return new MonitorTool(this);
170207
170268
  });
170208
170269
  if (this.pendingMcpBudgetCallback) {