@organizaone/o1-code 0.22.2 → 0.23.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 (325) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +69 -0
  2. package/chunks/{MaxSizedBox-H6TTYZHO.js → MaxSizedBox-HMZHVBB4.js} +66 -60
  3. package/chunks/{StandaloneSessionPicker-G5FLW7TR.js → StandaloneSessionPicker-P4GOMYHR.js} +87 -81
  4. package/chunks/{acp-subagent-executor-PFIDAFOD.js → acp-subagent-executor-3IS4UQXS.js} +70 -64
  5. package/chunks/{acpAgent-4PUZMTSI.js → acpAgent-RUS62IJ2.js} +206 -199
  6. package/chunks/{agent-XS2VGVGO.js → agent-WO7H3FRF.js} +49 -44
  7. package/chunks/{agent-headless-474ZYFSJ.js → agent-headless-DQHOJM3J.js} +49 -44
  8. package/chunks/{all-providers-67KTP3MN.js → all-providers-AGB7PSE7.js} +7 -5
  9. package/chunks/{anthropicContentGenerator-RTEGRYPV.js → anthropicContentGenerator-SVXJ2WC5.js} +45 -31
  10. package/chunks/{bridge-HPTKSOIC.js → bridge-6DNUXTIG.js} +71 -65
  11. package/chunks/bwrap-execution-A5QZJK2I.js +2 -2
  12. package/chunks/{chunk-BPZ6GQBH.js → chunk-27WKLITY.js} +2 -2
  13. package/chunks/{chunk-FXSQ3EB2.js → chunk-2HSMDGHO.js} +3 -3
  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-ZPJTYCOY.js → chunk-2OUOX7LX.js} +2 -2
  17. package/chunks/{chunk-FI7LCEJ7.js → chunk-3KNM7K53.js} +77 -77
  18. package/chunks/{chunk-LSY2TNVO.js → chunk-3MWH2YYG.js} +4 -4
  19. package/chunks/{chunk-44YL3A4I.js → chunk-3SIUBEAC.js} +1 -1
  20. package/chunks/{chunk-YRKUDWZP.js → chunk-4HQ4I3PR.js} +2 -2
  21. package/chunks/{chunk-XA3N5TO5.js → chunk-4KLFLD6W.js} +1 -1
  22. package/chunks/{chunk-54DBAFQ2.js → chunk-4UC6NODS.js} +1 -1
  23. package/chunks/{chunk-JFKJW3BP.js → chunk-4WZ25EWZ.js} +1 -1
  24. package/chunks/{chunk-OJ2CVNVP.js → chunk-5T7YYYZN.js} +1 -1
  25. package/chunks/{chunk-NUF3FLRS.js → chunk-5TGVTMA4.js} +4 -4
  26. package/chunks/{chunk-SLH747HE.js → chunk-5WCEM6DZ.js} +1 -1
  27. package/chunks/{chunk-EU7GXSE7.js → chunk-6HNVIHAF.js} +11 -11
  28. package/chunks/{chunk-VMLVJOQL.js → chunk-6IAICUFQ.js} +2 -2
  29. package/chunks/{chunk-WCPTHHFI.js → chunk-6WR3DWHA.js} +1 -1
  30. package/chunks/{chunk-FLIJQ7IC.js → chunk-6XQREQ7X.js} +33 -258
  31. package/chunks/{chunk-6N5O34AT.js → chunk-7Q3WUUDP.js} +13 -13
  32. package/chunks/{chunk-COBKDL54.js → chunk-7TGDEUSS.js} +3 -3
  33. package/chunks/{chunk-Y34E6WY7.js → chunk-7UCLXR66.js} +19 -19
  34. package/chunks/{chunk-32722SNN.js → chunk-A7JWEUTB.js} +1 -1
  35. package/chunks/{chunk-LO6VR36F.js → chunk-AJDAOH4D.js} +1 -1
  36. package/chunks/{chunk-ROE3Y42D.js → chunk-AW4B6RTB.js} +4 -4
  37. package/chunks/{chunk-SU6K5JRJ.js → chunk-AXM2QH6N.js} +1 -1
  38. package/chunks/{chunk-ZUBCKLDM.js → chunk-B3VFKGW7.js} +16 -12
  39. package/chunks/{chunk-IFJ3RGFY.js → chunk-B4CCJMG6.js} +20 -66
  40. package/chunks/chunk-B4K3VBFF.js +300 -0
  41. package/chunks/{chunk-Q6IDKPJW.js → chunk-B5GTZ6E6.js} +1 -1
  42. package/chunks/{chunk-A55LB5TM.js → chunk-BGAORGSF.js} +1 -1
  43. package/chunks/{chunk-62T6BNFW.js → chunk-BH64NQFS.js} +6 -6
  44. package/chunks/{chunk-LWQVH7RG.js → chunk-C6HK75MO.js} +3 -3
  45. package/chunks/{chunk-FT7HBT5S.js → chunk-CADCX42P.js} +2 -2
  46. package/chunks/{chunk-YXTBS65N.js → chunk-CCC24CXE.js} +9 -2
  47. package/chunks/{chunk-K44D6MLS.js → chunk-CMDJL3HC.js} +425 -341
  48. package/chunks/{chunk-IRP7MQRE.js → chunk-CMPS6GD5.js} +11 -11
  49. package/chunks/{chunk-YEG2VKSR.js → chunk-CNXCYQSU.js} +13 -13
  50. package/chunks/chunk-CNXTYK25.js +62 -0
  51. package/chunks/{chunk-6XZZIE7V.js → chunk-CPYRGB5A.js} +7 -7
  52. package/chunks/{chunk-I3OOIGJI.js → chunk-DCGCG4T6.js} +3 -3
  53. package/chunks/{chunk-EOIZZLQD.js → chunk-DCMEEISM.js} +1 -1
  54. package/chunks/{chunk-3OLRYJYM.js → chunk-DS3A6UN5.js} +10 -10
  55. package/chunks/{chunk-OJAGNSHH.js → chunk-EE35GR3R.js} +5 -5
  56. package/chunks/chunk-EYKEQPKF.js +27 -0
  57. package/chunks/{chunk-PT32HMCN.js → chunk-F5GPRGLO.js} +1 -1
  58. package/chunks/{chunk-TZ7PFWVT.js → chunk-F7SCCXXH.js} +2 -92
  59. package/chunks/{chunk-SHOCUW3R.js → chunk-FFDLG4P3.js} +3 -3
  60. package/chunks/{chunk-EVIGOLAL.js → chunk-G376S7VI.js} +1 -1
  61. package/chunks/{chunk-RBZFW23K.js → chunk-GBAPQSEP.js} +7 -7
  62. package/chunks/{chunk-EUIN36RL.js → chunk-GLSFB2Z7.js} +1 -1
  63. package/chunks/{chunk-JHRVJBV5.js → chunk-GM7RKZZ4.js} +4 -4
  64. package/chunks/{chunk-CQ33RPSY.js → chunk-HAFQUJ2R.js} +15 -15
  65. package/chunks/{chunk-73K63OUJ.js → chunk-HGY3PIN4.js} +8 -8
  66. package/chunks/{chunk-7FFS7D63.js → chunk-HKOWTL7X.js} +4 -4
  67. package/chunks/{chunk-IC57EPC7.js → chunk-HQROPADY.js} +18 -0
  68. package/chunks/{chunk-AFXPLQYA.js → chunk-I4WCGUHX.js} +11 -101
  69. package/chunks/{chunk-B4WT73ZC.js → chunk-INXZWNOV.js} +2 -2
  70. package/chunks/{chunk-SKQECA3Y.js → chunk-IR2EWI3F.js} +1 -1
  71. package/chunks/{chunk-GW7QA3HN.js → chunk-IULGJTBN.js} +3 -3
  72. package/chunks/{chunk-F5JXVZVJ.js → chunk-J6IO5FRE.js} +2 -2
  73. package/chunks/{chunk-SN3M4SEK.js → chunk-JTL36LF7.js} +51 -49
  74. package/chunks/{chunk-4ABCTDVK.js → chunk-JVRNE7NT.js} +8 -8
  75. package/chunks/{chunk-35IZ2AEV.js → chunk-JYT4QT7G.js} +14 -14
  76. package/chunks/{chunk-HEFYYQ5F.js → chunk-KM6V7YUD.js} +7 -7
  77. package/chunks/{chunk-6MXIK5CK.js → chunk-KPPSQ5EU.js} +1 -1
  78. package/chunks/{chunk-TAHFZVR5.js → chunk-KXDR4O5J.js} +8 -8
  79. package/chunks/{chunk-LSRS3YN5.js → chunk-KZCG5HAI.js} +1 -1
  80. package/chunks/{chunk-2F3GZ6WG.js → chunk-LMFAYXBU.js} +1 -1
  81. package/chunks/{chunk-UUAWQAX6.js → chunk-LNRMJR3C.js} +5 -5
  82. package/chunks/{chunk-ZBP2DKL7.js → chunk-MEBXT3L3.js} +5 -5
  83. package/chunks/{chunk-MVWEGM3N.js → chunk-MRAQKHJP.js} +1 -1
  84. package/chunks/{chunk-JKXGHDQ2.js → chunk-MRDYGSEU.js} +1 -1
  85. package/chunks/{chunk-3J63UVMG.js → chunk-NRCAQMQE.js} +1 -1
  86. package/chunks/{chunk-X2SSZR6M.js → chunk-O6V4DKZY.js} +34 -28
  87. package/chunks/{chunk-7ADYEHKM.js → chunk-OCGMQ7V4.js} +1 -1
  88. package/chunks/{chunk-SPRNR2PU.js → chunk-ODPTXM6X.js} +2 -2
  89. package/chunks/{chunk-D24NFPPO.js → chunk-OFZASMA6.js} +7 -5
  90. package/chunks/{chunk-C6O3NG4T.js → chunk-OXIUXVOT.js} +1 -1
  91. package/chunks/{chunk-63XITVIE.js → chunk-P2AKFALJ.js} +24 -24
  92. package/chunks/{chunk-LZCNINKB.js → chunk-QLR4QOL7.js} +4 -4
  93. package/chunks/{chunk-3CJZHWKH.js → chunk-QS7XJXMY.js} +3 -3
  94. package/chunks/{chunk-PVYRIVM3.js → chunk-QYJB4I22.js} +1 -1
  95. package/chunks/{chunk-XHQEB4WW.js → chunk-R75USKXV.js} +4 -4
  96. package/chunks/{chunk-DGEOQOYK.js → chunk-RH6ENXV4.js} +6 -6
  97. package/chunks/{chunk-DNFPKNWM.js → chunk-RWUZRVUT.js} +2 -2
  98. package/chunks/{chunk-7MFRXLVG.js → chunk-SEBFGV7T.js} +2 -2
  99. package/chunks/{chunk-IUDP2ML3.js → chunk-SJG3PCMJ.js} +3 -3
  100. package/chunks/{chunk-XGXVMNHI.js → chunk-SLNJDU4D.js} +4 -4
  101. package/chunks/{chunk-7O3XB3FJ.js → chunk-SLYGIHMA.js} +38 -38
  102. package/chunks/{chunk-ARKI4LOD.js → chunk-T7XP4FJG.js} +3 -3
  103. package/chunks/{chunk-3HQMSMNA.js → chunk-UM5Y2RAD.js} +8 -8
  104. package/chunks/{chunk-HLBNALL4.js → chunk-UQSP4Y3H.js} +1 -1
  105. package/chunks/{chunk-PFBUKEWV.js → chunk-UVW5RWDM.js} +2 -2
  106. package/chunks/{chunk-5OKLHC2S.js → chunk-UZIP5RZG.js} +1 -1
  107. package/chunks/chunk-V24FMEXL.js +203 -0
  108. package/chunks/{chunk-TD2B7LOS.js → chunk-VJNBNL44.js} +1 -1
  109. package/chunks/{chunk-XZDGZX34.js → chunk-VPWZ7N32.js} +7 -7
  110. package/chunks/chunk-VTIYMCRG.js +128 -0
  111. package/chunks/{chunk-KSQ3A4MU.js → chunk-VY24CEQH.js} +11 -11
  112. package/chunks/{chunk-P3H5PNSO.js → chunk-W4LHOCZD.js} +1 -1
  113. package/chunks/{chunk-TYYTQIEZ.js → chunk-W5XYWVXE.js} +1 -1
  114. package/chunks/{chunk-KL5NEBVZ.js → chunk-WA47FG3A.js} +5 -5
  115. package/chunks/chunk-WDBSTICZ.js +106 -0
  116. package/chunks/chunk-WXIQKOFD.js +136 -0
  117. package/chunks/{chunk-4T3CEDPG.js → chunk-XR3PDQ7P.js} +11 -11
  118. package/chunks/{chunk-GXHLZHKS.js → chunk-XST2W6J5.js} +1 -1
  119. package/chunks/{chunk-STL6XNJK.js → chunk-XWJPREGE.js} +9 -9
  120. package/chunks/{chunk-GM2WNDZ5.js → chunk-YPTR7ZFB.js} +75 -59
  121. package/chunks/{chunk-2GNKUQNV.js → chunk-Z4AMHZHW.js} +102 -102
  122. package/chunks/{chunk-SHADJNT6.js → chunk-Z563JBRI.js} +1 -1
  123. package/chunks/{chunk-GDOMZBF3.js → chunk-ZKQ2SFH7.js} +1 -1
  124. package/chunks/{chunk-GLKPOCPH.js → chunk-ZTYFX6BP.js} +3 -3
  125. package/chunks/{chunk-DNROOYR3.js → chunk-ZXSPXXBY.js} +2 -2
  126. package/chunks/{codex-subagent-executor-CVPJBY7H.js → codex-subagent-executor-LRMIHGUJ.js} +70 -64
  127. package/chunks/{contextCommand-VQP42E45.js → contextCommand-LCS4K6AS.js} +68 -62
  128. package/chunks/{core-runtime-UGTGVETQ.js → core-runtime-KA3DTXOS.js} +72 -66
  129. package/chunks/{create-sub-session-W7HDHA47.js → create-sub-session-AOLRCPHX.js} +69 -63
  130. package/chunks/{daemon-git-worktree-guard-OYHWZ4DT.js → daemon-git-worktree-guard-XNJQMGBA.js} +66 -60
  131. package/chunks/{daemon-status-provider-BPA4OMKT.js → daemon-status-provider-S7JFBO7R.js} +76 -70
  132. package/chunks/{daemon-trust-policy-LR3O2LHO.js → daemon-trust-policy-3TZF3A23.js} +73 -67
  133. package/chunks/{daemon-trust-policy-monitor-XYJBQS5K.js → daemon-trust-policy-monitor-KCTEA4NB.js} +73 -67
  134. package/chunks/{deferred-core-runtime-2JRX7S37.js → deferred-core-runtime-APR46DSV.js} +69 -63
  135. package/chunks/{edit-C5EXC227.js → edit-3XYI6QI5.js} +51 -46
  136. package/chunks/{en-QBY42TC3.js → en-MQICGJBA.js} +10 -0
  137. package/chunks/{enter-worktree-FY6Y6APX.js → enter-worktree-FIO6VPWS.js} +6 -6
  138. package/chunks/{enterPlanMode-LRUOZ2DX.js → enterPlanMode-T6ZQCSIY.js} +51 -46
  139. package/chunks/{environment-AK5W47CA.js → environment-ZSKN47KY.js} +69 -63
  140. package/chunks/{errors-V77HGFV3.js → errors-JVU3YU37.js} +68 -62
  141. package/chunks/execution-sandbox-config-2RI6A7VE.js +2 -2
  142. package/chunks/{execution-tool-NK2ST2RX.js → execution-tool-4AHWPEBH.js} +52 -47
  143. package/chunks/{execution-worker-QO36YMNT.js → execution-worker-V22CIVJD.js} +59 -54
  144. package/chunks/{exit-worktree-Q3ZHCBYN.js → exit-worktree-3UU4SS47.js} +6 -6
  145. package/chunks/{exitPlanMode-OPS5BP27.js → exitPlanMode-HSLDDGIZ.js} +49 -44
  146. package/chunks/{fast-path-SAXQN2PO.js → fast-path-55D3R6HR.js} +2 -2
  147. package/chunks/fast-path-settings-FIMIXD3V.js +1 -1
  148. package/chunks/{foreground-runner-WUF5YIVW.js → foreground-runner-3JU62IZN.js} +75 -69
  149. package/chunks/gateway-content-generator-76KRZXAA.js +471 -0
  150. package/chunks/gateway-models-N5DT7Q4M.js +134 -0
  151. package/chunks/gateway-transfer-47WP3EUB.js +27 -0
  152. package/chunks/{glob-EAIWIACU.js → glob-FVF7TFRO.js} +50 -45
  153. package/chunks/{goal-tools-IM4K7YYV.js → goal-tools-UHHDYOKQ.js} +49 -44
  154. package/chunks/{grep-JBR55JCA.js → grep-5HGH34M6.js} +2 -2
  155. package/chunks/{handleAutoUpdate-XGWLFCZ3.js → handleAutoUpdate-EOHNI5GZ.js} +72 -66
  156. package/chunks/{i18n-A3JWISCI.js → i18n-QYM6PMQT.js} +67 -61
  157. package/chunks/{image-gen-KX5VPAGI.js → image-gen-WGMRL47H.js} +2 -2
  158. package/chunks/{initializer-WF7GJJSN.js → initializer-MYP7CFZW.js} +73 -67
  159. package/chunks/{installationInfo-UGZLB5DE.js → installationInfo-FJ67GP5M.js} +66 -60
  160. package/chunks/{list-XL33NYFQ.js → list-XF6G4GUF.js} +75 -69
  161. package/chunks/{llm-5ZIFZWYM.js → llm-W4KJ3VXB.js} +124 -117
  162. package/chunks/{llm-content-generator-IP6THV2F.js → llm-content-generator-UZLRLOG3.js} +14 -11
  163. package/chunks/{loadedSettingsAdapter-BBOBGOFY.js → loadedSettingsAdapter-7Q5U3DXV.js} +73 -67
  164. package/chunks/{local-execution-environment-OHZ6JHBJ.js → local-execution-environment-MYZ2Y54Q.js} +59 -54
  165. package/chunks/{loggingContentGenerator-ZB6YBQ4A.js → loggingContentGenerator-4OPNBZMP.js} +62 -57
  166. package/chunks/{ls-RZYAZPVC.js → ls-SSSPTK7X.js} +3 -3
  167. package/chunks/{managed-npm-update-U2LTQRW5.js → managed-npm-update-KLB5RZZX.js} +70 -64
  168. package/chunks/{mcp-7TSDK7XG.js → mcp-NC27EHB4.js} +73 -67
  169. package/chunks/{memory-side-query-DNXJZB7B.js → memory-side-query-XFFIF7UX.js} +1 -1
  170. package/chunks/{model-call-collection-Q6XLRBD4.js → model-call-collection-YKPPKTJC.js} +2 -2
  171. package/chunks/{model-configuration-YHPN6XLJ.js → model-configuration-2G3ULIR4.js} +74 -68
  172. package/chunks/{modelConfigUtils-KXEA5X5L.js → modelConfigUtils-664FHNH3.js} +68 -62
  173. package/chunks/{monitor-YUS5UHUB.js → monitor-UBN77ORZ.js} +49 -44
  174. package/chunks/{nonInteractiveCli-H5OSIGXO.js → nonInteractiveCli-L3L4WX5E.js} +113 -107
  175. package/chunks/{nonInteractiveToolExecutor-KOOCZSZM.js → nonInteractiveToolExecutor-C3T5J2NW.js} +50 -45
  176. package/chunks/{notebook-edit-XYZLSPWF.js → notebook-edit-63MI44CU.js} +50 -45
  177. package/chunks/{omni-QS5RRGPB.js → omni-SLZABQRH.js} +24 -19
  178. package/chunks/{openaiContentGenerator-37E2A7VN.js → openaiContentGenerator-7V6CYXFU.js} +46 -39
  179. package/chunks/{openaiResponsesContentGenerator-PMCEAG55.js → openaiResponsesContentGenerator-6YVQAUJ3.js} +20 -14
  180. package/chunks/{processUtils-CQXO2K7O.js → processUtils-7ZT2P4R2.js} +2 -2
  181. package/chunks/{prompt-terminal-ledger-ZRCMVONU.js → prompt-terminal-ledger-QPVHC4HA.js} +67 -61
  182. package/chunks/{pt-DHKQQO6C.js → pt-EZL4H2AB.js} +10 -0
  183. package/chunks/{reactive-degrade-ZJ3JVKAL.js → reactive-degrade-SLNICU7U.js} +18 -13
  184. package/chunks/{read-file-MOY3AEWH.js → read-file-WBHCQFBS.js} +10 -9
  185. package/chunks/{record-artifact-LAQGMYDN.js → record-artifact-NO2DU63L.js} +3 -3
  186. package/chunks/record-source-NRW6TYWW.js +1 -1
  187. package/chunks/{report-findings-OVUUKGUX.js → report-findings-S6QO46V2.js} +4 -4
  188. package/chunks/request-shutdown-MXKAXR2D.js +1 -1
  189. package/chunks/{resumeHistoryUtils-HATXAZWB.js → resumeHistoryUtils-RMVHH2EV.js} +72 -66
  190. package/chunks/{ripGrep-DRZ55VHF.js → ripGrep-RXD7MQDC.js} +16 -15
  191. package/chunks/{run-o1-code-serve-QG3EUGCC.js → run-o1-code-serve-QTI4KAOJ.js} +55 -55
  192. package/chunks/{sandboxConfig-67KD25RA.js → sandboxConfig-DAOIURBO.js} +67 -61
  193. package/chunks/{scheduled-tasks-SUK36YBV.js → scheduled-tasks-SXKRP3GY.js} +74 -68
  194. package/chunks/{scheduler-VGATQHDI.js → scheduler-YECMJLGP.js} +68 -62
  195. package/chunks/{sdk-exporters-grpc-U5H74BEL.js → sdk-exporters-grpc-FX5C3IEA.js} +2 -2
  196. package/chunks/{sdk-exporters-http-34H6REMF.js → sdk-exporters-http-66WPQ7UY.js} +6 -6
  197. package/chunks/{sdk-impl-5OTPCVXV.js → sdk-impl-B4WTXTDQ.js} +9 -9
  198. package/chunks/send-message-KFUNQQFA.js +1 -1
  199. package/chunks/{serve-4JYKC5U3.js → serve-N4CEYSQI.js} +73 -67
  200. package/chunks/{server-ID2MQUOZ.js → server-VSMVJXNJ.js} +267 -260
  201. package/chunks/{session-SBJFEMA7.js → session-DQY6YADB.js} +117 -111
  202. package/chunks/{session-FEM6CGKX.js → session-WXHJRBXC.js} +3 -2
  203. package/chunks/{session-attachments-root-ILVWUB6H.js → session-attachments-root-NKR2OHXN.js} +66 -60
  204. package/chunks/{session-pr-refresh-PMD3YR6L.js → session-pr-refresh-FESHW7O7.js} +74 -68
  205. package/chunks/{settings-7BOOCLET.js → settings-MJDXAJOQ.js} +72 -66
  206. package/chunks/{shell-PWH465OV.js → shell-XUMG65ZC.js} +49 -44
  207. package/chunks/{skill-6CYVI2NR.js → skill-RS7AGKYN.js} +21 -20
  208. package/chunks/{skill-settings-5HIZWK7Y.js → skill-settings-MEXN6DN6.js} +73 -67
  209. package/chunks/{spawnChannel-OOMVR63F.js → spawnChannel-GOF25LIG.js} +69 -63
  210. package/chunks/{standalone-update-MXJDDVFO.js → standalone-update-AYQDZNVC.js} +68 -62
  211. package/chunks/{startInteractiveUI-IHLZORH3.js → startInteractiveUI-7HHCEPIG.js} +1229 -1042
  212. package/chunks/{supervisor-runner-I3KOH7AT.js → supervisor-runner-VSXLLNB3.js} +3 -3
  213. package/chunks/task-create-EHGTZMSD.js +2 -2
  214. package/chunks/task-update-LBXI5OVE.js +2 -2
  215. package/chunks/{team-create-NNXUJHYM.js → team-create-4LGDPW5M.js} +51 -46
  216. package/chunks/{team-plan-approval-NGGXGRN5.js → team-plan-approval-KYQWPQXN.js} +49 -44
  217. package/chunks/{terminal-image-renderer-QPJZUQOY.js → terminal-image-renderer-PVLPYQHK.js} +66 -60
  218. package/chunks/{theme-manager-YN3VTWUS.js → theme-manager-I4JCVFQ3.js} +66 -60
  219. package/chunks/tool-call-V225426S.js +1 -1
  220. package/chunks/{tool-result-media-ELNVF7HV.js → tool-result-media-AFIZLPZ7.js} +19 -14
  221. package/chunks/{tool-search-3MQVPZN2.js → tool-search-B5WIMGV2.js} +19 -18
  222. package/chunks/{total-session-admission-RQ2GWA4J.js → total-session-admission-WAQB3AMR.js} +71 -65
  223. package/chunks/{trustedFolders-ANMISMAZ.js → trustedFolders-MMMGBQOP.js} +68 -62
  224. package/chunks/{update-relaunch-ANCIYSER.js → update-relaunch-WE7M3JFY.js} +5 -5
  225. package/chunks/{updateCheck-QGDY5DY2.js → updateCheck-O4WELAS7.js} +71 -65
  226. package/chunks/{upload-config-V6CJBH2Z.js → upload-config-5IV7GPH3.js} +13 -8
  227. package/chunks/{useAutoAcceptIndicator-H4PUESJW.js → useAutoAcceptIndicator-L5APVQBL.js} +76 -70
  228. package/chunks/{validateNonInterActiveAuth-3D6LYNKP.js → validateNonInterActiveAuth-HMLF22RB.js} +110 -104
  229. package/chunks/{version-M7PIODKT.js → version-HF62HOZR.js} +1 -1
  230. package/chunks/{web-fetch-VJSQST7P.js → web-fetch-ACG4GZWS.js} +15 -14
  231. package/chunks/{web-search-CVFACVJV.js → web-search-FOBOKL5H.js} +14 -9
  232. package/chunks/{workflow-O3XZL3Z4.js → workflow-ILU5GODQ.js} +61 -45
  233. package/chunks/{workspace-providers-status-M47T3M22.js → workspace-providers-status-OQ6BF2I4.js} +79 -73
  234. package/chunks/{workspace-registration-store-HGSY3RON.js → workspace-registration-store-C7HXASW3.js} +1 -1
  235. package/chunks/{workspace-registry-LYEI3DR3.js → workspace-registry-BLZXWWBO.js} +71 -65
  236. package/chunks/{workspace-runtime-coordinator-OHXZ4IPK.js → workspace-runtime-coordinator-L77AZGKG.js} +72 -66
  237. package/chunks/{workspace-service-VII7ZCF7.js → workspace-service-R7A6VM73.js} +77 -71
  238. package/chunks/{workspace-skills-status-7GG3A3TL.js → workspace-skills-status-U2NYMQU3.js} +76 -70
  239. package/chunks/{workspace-trust-reconciler-GGKNXRVC.js → workspace-trust-reconciler-UGEU2622.js} +80 -74
  240. package/chunks/{write-file-K5V3EMTE.js → write-file-4N2F3VNU.js} +52 -47
  241. package/chunks/{zoom-image-TROZVSMN.js → zoom-image-E772GQFP.js} +10 -9
  242. package/cli.js +17 -17
  243. package/execution-worker.js +1 -1
  244. package/export-transcript-document.js +1 -1
  245. package/locales/en.js +15 -0
  246. package/locales/pt.js +15 -0
  247. package/package.json +2 -2
  248. package/release-notes.json +15 -0
  249. package/vendor/o1-connect/README.md +10 -3
  250. package/vendor/o1-connect/VENDOR.json +6 -2
  251. package/vendor/o1-connect/lib.mjs +1 -1
  252. package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  253. package/vendor/tree-sitter/tree-sitter.wasm +0 -0
  254. package/web-shell/assets/{abnfDiagram-VCTEODGH-1p6NHpAP.js → abnfDiagram-VCTEODGH-D4wWvLfQ.js} +1 -1
  255. package/web-shell/assets/{arc-zZSvt9kN.js → arc-CbFSLdCO.js} +1 -1
  256. package/web-shell/assets/{architectureDiagram-5GKGNRK7-C1H1DVM2.js → architectureDiagram-5GKGNRK7-BjZoTViq.js} +1 -1
  257. package/web-shell/assets/{blockDiagram-NRAW4CY4-CLvQiMuT.js → blockDiagram-NRAW4CY4-CGSVjghq.js} +1 -1
  258. package/web-shell/assets/{c4Diagram-UCG6FXSJ-verRTIfv.js → c4Diagram-UCG6FXSJ-DZszjKKm.js} +1 -1
  259. package/web-shell/assets/channel-BxByz4gj.js +1 -0
  260. package/web-shell/assets/{chunk-2Q5K7J3B-BIX6o24B.js → chunk-2Q5K7J3B-snkNi44P.js} +1 -1
  261. package/web-shell/assets/{chunk-5VM5RSS4-hp0xJxSu.js → chunk-5VM5RSS4-CsnyTIr_.js} +1 -1
  262. package/web-shell/assets/{chunk-F27PBJKO-BHY8_5WY.js → chunk-F27PBJKO-BDleVSaw.js} +1 -1
  263. package/web-shell/assets/{chunk-G27WJ6UU-Bq3iuQSE.js → chunk-G27WJ6UU-CbjFrBwN.js} +1 -1
  264. package/web-shell/assets/{chunk-JWPE2WC7-nl0EYjjD.js → chunk-JWPE2WC7-rkiI-MmN.js} +1 -1
  265. package/web-shell/assets/{chunk-LCL6LL3I-CstAiHwj.js → chunk-LCL6LL3I-CEESZISZ.js} +1 -1
  266. package/web-shell/assets/{chunk-POPQ4Y6H-BWSrwMPq.js → chunk-POPQ4Y6H-C0vPHNMP.js} +1 -1
  267. package/web-shell/assets/{chunk-SVP7TREG-BHoHrDvN.js → chunk-SVP7TREG-_LLDkzrp.js} +1 -1
  268. package/web-shell/assets/{chunk-XXDRQBXY-_raB2Fx7.js → chunk-XXDRQBXY-PCJcNBA-.js} +1 -1
  269. package/web-shell/assets/classDiagram-DTDB5LWJ-Vxr2jk7x.js +1 -0
  270. package/web-shell/assets/classDiagram-v2-JRS7N3AN-Vxr2jk7x.js +1 -0
  271. package/web-shell/assets/{cose-bilkent-JH36ORCC-DzohBTSN.js → cose-bilkent-JH36ORCC-Z1LPHXFQ.js} +1 -1
  272. package/web-shell/assets/{cynefin-OW5HDTMX-DUuz4IOx.js → cynefin-OW5HDTMX-Ch8GJJZn.js} +1 -1
  273. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js → cynefinDiagram-5FMLGOSQ-BaZYUcGn.js} +1 -1
  274. package/web-shell/assets/{dagre-3AP2YEHR-DccvRFOk.js → dagre-3AP2YEHR-CMiuGPg4.js} +1 -1
  275. package/web-shell/assets/{diagram-S7CK7UJ4-iGT749Oj.js → diagram-S7CK7UJ4-Ch4SWYiO.js} +1 -1
  276. package/web-shell/assets/{diagram-UQ7AKVKN-DO-brOdV.js → diagram-UQ7AKVKN-DrQs-UnS.js} +1 -1
  277. package/web-shell/assets/{diagram-VSXAHHWV-BTxQOmxL.js → diagram-VSXAHHWV-CK683mKd.js} +1 -1
  278. package/web-shell/assets/{diagram-VX7I27RA-B4qvwv51.js → diagram-VX7I27RA-CdtSFCwE.js} +1 -1
  279. package/web-shell/assets/{diagram-Z3DM3KII-rBgjOTjS.js → diagram-Z3DM3KII-mmDlyQCV.js} +1 -1
  280. package/web-shell/assets/{ebnfDiagram-PWID7BFC-pm_yhGF5.js → ebnfDiagram-PWID7BFC-ig7MW8j3.js} +1 -1
  281. package/web-shell/assets/{erDiagram-SSCWMZ5O-CYu1ceNm.js → erDiagram-SSCWMZ5O-Br1al6yd.js} +1 -1
  282. package/web-shell/assets/{flowDiagram-A5DVABFB-VaNRVW2d.js → flowDiagram-A5DVABFB-VU5pvkzQ.js} +1 -1
  283. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DyvaaUFV.js → ganttDiagram-EL5Y4UJY-D5-CC_k4.js} +1 -1
  284. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-ATr3REtt.js → gitGraphDiagram-WWUBYQGX-aIOAY7jv.js} +1 -1
  285. package/web-shell/assets/{index-B3YLpUKu.js → index-BvC4CLzJ.js} +1 -1
  286. package/web-shell/assets/{index-C4N7bP4K.js → index-CHjJJO_-.js} +3 -3
  287. package/web-shell/assets/{infoDiagram-RXCK75RN-C94by8Av.js → infoDiagram-RXCK75RN-BLavxALh.js} +1 -1
  288. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DzjDX0-x.js → ishikawaDiagram-5VMMS53U-WrFAKU7P.js} +1 -1
  289. package/web-shell/assets/{journeyDiagram-EYS64GPL-BW955BgY.js → journeyDiagram-EYS64GPL-CNB-o7UU.js} +1 -1
  290. package/web-shell/assets/{kanban-definition-3QL26DDD-BtbAjdCr.js → kanban-definition-3QL26DDD-BsOlyiXs.js} +1 -1
  291. package/web-shell/assets/{layout-U3vDc3pe.js → layout-CLP7XDl-.js} +1 -1
  292. package/web-shell/assets/{linear-B5nTSs6h.js → linear-B_ZqoW0R.js} +1 -1
  293. package/web-shell/assets/{mermaid.core-ezhLxuW5.js → mermaid.core-DM7r4q8D.js} +6 -6
  294. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BVcRjZNc.js → mindmap-definition-FBJOCRG2-Bqb6RJsq.js} +1 -1
  295. package/web-shell/assets/{pegDiagram-XKGWAZYB-BnYXkIZM.js → pegDiagram-XKGWAZYB-CvUwl3Q5.js} +1 -1
  296. package/web-shell/assets/{pieDiagram-E7YTZNPT-DooJLvL9.js → pieDiagram-E7YTZNPT-BQNKFhor.js} +1 -1
  297. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-MywT58KI.js → quadrantDiagram-AXDQQJYC-7VbOBW8d.js} +1 -1
  298. package/web-shell/assets/{railroadDiagram-O6MQD6OU-kZGgDmOU.js → railroadDiagram-O6MQD6OU-CgkPn4Te.js} +1 -1
  299. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BTR494PR.js → requirementDiagram-EFPCY7ZU-C7XViHWf.js} +1 -1
  300. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DCC0qZFO.js → sankeyDiagram-P5KCCOFB-vsv0eiDF.js} +1 -1
  301. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DDvDBq18.js → sequenceDiagram-WJ2MYXX4-BLdDIcOL.js} +1 -1
  302. package/web-shell/assets/{sizeCapture-X5ZJPWSS-C3GSzMrx.js → sizeCapture-X5ZJPWSS-BVqQaCER.js} +1 -1
  303. package/web-shell/assets/{stateDiagram-HBIQ2CUA-Dr4BXIdu.js → stateDiagram-HBIQ2CUA-Bq3g73mj.js} +1 -1
  304. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cb0cd1Bn.js +1 -0
  305. package/web-shell/assets/{swimlanes-XN3QIQJK-CTc5retR.js → swimlanes-XN3QIQJK-7w4P-g0w.js} +1 -1
  306. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BKzBsHUu.js +8 -0
  307. package/web-shell/assets/{timeline-definition-24CTP7MA-DlCHZahl.js → timeline-definition-24CTP7MA-DlkUGqRK.js} +1 -1
  308. package/web-shell/assets/{vennDiagram-4TSXK5OY-DSEiDJ6-.js → vennDiagram-4TSXK5OY-D920UplN.js} +1 -1
  309. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BSky5BAj.js → wardleyDiagram-VM6X3IG4-EsWGTViP.js} +1 -1
  310. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-C-_l5Eqg.js → xychartDiagram-S5SC5T6Z-Bhnogtoq.js} +1 -1
  311. package/web-shell/index.html +1 -1
  312. package/web-shell/sw.js +1 -1
  313. package/vendor/o1-connect/.lintstagedrc.mjs +0 -7
  314. package/web-shell/assets/channel-BL_seGtn.js +0 -1
  315. package/web-shell/assets/classDiagram-DTDB5LWJ-CSUKMc0D.js +0 -1
  316. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CSUKMc0D.js +0 -1
  317. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DPa_JZnG.js +0 -1
  318. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-WV4-2ySQ.js +0 -8
  319. package/chunks/{chunk-IVVMETSX.js → chunk-4VLEDM44.js} +3 -3
  320. package/chunks/{chunk-M6C3BI2P.js → chunk-AMFFYQUN.js} +0 -0
  321. package/chunks/{chunk-ROO6F2BT.js → chunk-H5L5E5NI.js} +3 -3
  322. package/chunks/{chunk-GT2ATHFG.js → chunk-PKIF4YYA.js} +3 -3
  323. package/chunks/{chunk-INGWSCK5.js → chunk-QNRLAIIG.js} +3 -3
  324. package/chunks/{container-execution-environment-RKRAWXR3.js → container-execution-environment-XBTXQ5YE.js} +3 -3
  325. package/chunks/{downsample-image-HDL6LZNC.js → downsample-image-FUPJVVNL.js} +3 -3
@@ -2,7 +2,10 @@
2
2
  "use strict";
3
3
  import {
4
4
  formatDuration
5
- } from "./chunk-6MXIK5CK.js";
5
+ } from "./chunk-KPPSQ5EU.js";
6
+ import {
7
+ glyphs
8
+ } from "./chunk-U6ZAL4MF.js";
6
9
  import {
7
10
  extendedTheme,
8
11
  theme
@@ -23,34 +26,31 @@ import {
23
26
  collectInlineImages,
24
27
  extractInlineContentRuns
25
28
  } from "./chunk-KIN34HCU.js";
26
- import {
27
- glyphs
28
- } from "./chunk-U6ZAL4MF.js";
29
29
  import {
30
30
  formatHistoryGapNotice,
31
31
  indexGapsByChild
32
- } from "./chunk-PT32HMCN.js";
32
+ } from "./chunk-F5GPRGLO.js";
33
33
  import {
34
34
  stringWidth
35
35
  } from "./chunk-F5IN4KK7.js";
36
36
  import {
37
37
  t
38
- } from "./chunk-F5JXVZVJ.js";
38
+ } from "./chunk-J6IO5FRE.js";
39
39
  import {
40
40
  isGoalCheckpointBookkeepingRecord
41
- } from "./chunk-FLIJQ7IC.js";
41
+ } from "./chunk-6XQREQ7X.js";
42
42
  import {
43
43
  GoalPersistenceUnavailableError,
44
44
  declaresOwnIntent,
45
45
  extractIntent,
46
46
  getToolResponseDisplayText
47
- } from "./chunk-K44D6MLS.js";
47
+ } from "./chunk-CMDJL3HC.js";
48
+ import {
49
+ parseGoalStateRecordPayloadV2
50
+ } from "./chunk-RWUZRVUT.js";
48
51
  import {
49
52
  projectUserTranscriptForDisplay
50
53
  } from "./chunk-FDNTWDR3.js";
51
- import {
52
- parseGoalStateRecordPayloadV2
53
- } from "./chunk-DNFPKNWM.js";
54
54
  import {
55
55
  ToolDisplayNames
56
56
  } from "./chunk-SYMYKLO4.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  getEffectiveOmniUploadConfig
5
- } from "./chunk-EUIN36RL.js";
5
+ } from "./chunk-GLSFB2Z7.js";
6
6
  import {
7
7
  createDebugLogger
8
8
  } from "./chunk-UK2KIU2V.js";
@@ -1224,7 +1224,7 @@ function initializeTelemetry(config) {
1224
1224
  telemetryInitPromise ??= (async () => {
1225
1225
  const debugLogger3 = createDebugLogger("OTEL");
1226
1226
  try {
1227
- const { startTelemetrySdk } = await import("./sdk-impl-5OTPCVXV.js");
1227
+ const { startTelemetrySdk } = await import("./sdk-impl-B4WTXTDQ.js");
1228
1228
  if (telemetryInitialized) return;
1229
1229
  const started = await startTelemetrySdk(config);
1230
1230
  if (!started) return;
@@ -7,18 +7,18 @@ import {
7
7
  jsonStringPayloadByteLength,
8
8
  observeAcpToolResultProjection,
9
9
  truncateJsonStringPayload
10
- } from "./chunk-Y34E6WY7.js";
10
+ } from "./chunk-7UCLXR66.js";
11
11
  import {
12
12
  isA2uiToolMeta
13
- } from "./chunk-7O3XB3FJ.js";
13
+ } from "./chunk-SLYGIHMA.js";
14
14
  import {
15
15
  redactLogCredentials
16
- } from "./chunk-ZBP2DKL7.js";
16
+ } from "./chunk-MEBXT3L3.js";
17
17
  import {
18
18
  getResponseText,
19
19
  lastHistoryContentFromRecords,
20
20
  restorableAskUserQuestionCallIds
21
- } from "./chunk-K44D6MLS.js";
21
+ } from "./chunk-CMDJL3HC.js";
22
22
  import {
23
23
  isShellResultDisplay,
24
24
  mapShellResultText
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  parseGoalSnapshotV2,
28
28
  parseGoalStateCause
29
- } from "./chunk-DNFPKNWM.js";
29
+ } from "./chunk-RWUZRVUT.js";
30
30
  import {
31
31
  init_esbuild_shims
32
32
  } from "./chunk-S2467S6L.js";
@@ -0,0 +1,106 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ createDebugLogger
5
+ } from "./chunk-UK2KIU2V.js";
6
+ import {
7
+ init_esbuild_shims
8
+ } from "./chunk-S2467S6L.js";
9
+ import {
10
+ __name
11
+ } from "./chunk-J2S4EL5Y.js";
12
+
13
+ // packages/core/src/core/outbound-dynamic-headers.ts
14
+ init_esbuild_shims();
15
+ var debugLogger = createDebugLogger("OUTBOUND_CORRELATION");
16
+ var PLACEHOLDERS = [{ token: "${session_id}", resolve: /* @__PURE__ */ __name((config) => config.getSessionId(), "resolve") }];
17
+ var SESSION_ID_PLACEHOLDER_PATTERN = /\$(?:session_id|O1CODE_SESSION_ID)(?!\w)|\$\{(?:session_id|O1CODE_SESSION_ID)\}/gi;
18
+ var warnedGateOff = /* @__PURE__ */ new Set();
19
+ function warnIfDynamicHeadersDisabled(customHeaders, config) {
20
+ try {
21
+ const names = Object.entries(customHeaders ?? {}).filter(
22
+ ([, value]) => typeof value === "string" && hasDynamicPlaceholder(value)
23
+ ).map(([name]) => name);
24
+ if (names.length === 0) return;
25
+ if (config.getOutboundAllowDynamicHeaderValues()) return;
26
+ const key = names.slice().sort().join(",");
27
+ if (warnedGateOff.has(key)) return;
28
+ warnedGateOff.add(key);
29
+ console.warn(
30
+ `customHeaders ${names.join(", ")} contain a runtime placeholder, but outboundCorrelation.allowDynamicHeaderValues is not enabled \u2014 the header(s) will not be sent. Set it to true in settings.json to allow the value to be filled in per request.`
31
+ );
32
+ } catch {
33
+ }
34
+ }
35
+ __name(warnIfDynamicHeadersDisabled, "warnIfDynamicHeadersDisabled");
36
+ function hasDynamicPlaceholder(value) {
37
+ return value.search(SESSION_ID_PLACEHOLDER_PATTERN) !== -1;
38
+ }
39
+ __name(hasDynamicPlaceholder, "hasDynamicPlaceholder");
40
+ function resolveDynamicHeaderValue(value, config) {
41
+ if (typeof value !== "string") return void 0;
42
+ if (!hasDynamicPlaceholder(value)) return value;
43
+ try {
44
+ if (!config.getOutboundAllowDynamicHeaderValues()) {
45
+ debugLogger.warn(
46
+ `Dropping a customHeaders value containing a runtime placeholder: outboundCorrelation.allowDynamicHeaderValues is not enabled.`
47
+ );
48
+ return void 0;
49
+ }
50
+ let expanded = value.replace(
51
+ SESSION_ID_PLACEHOLDER_PATTERN,
52
+ "${session_id}"
53
+ );
54
+ for (const { token, resolve } of PLACEHOLDERS) {
55
+ if (!expanded.includes(token)) continue;
56
+ const resolved = resolve(config);
57
+ if (!resolved) return void 0;
58
+ expanded = expanded.split(token).join(resolved);
59
+ }
60
+ return expanded;
61
+ } catch (error) {
62
+ debugLogger.warn(
63
+ `Unable to expand a customHeaders placeholder: ${error instanceof Error ? error.message : String(error)}`
64
+ );
65
+ return void 0;
66
+ }
67
+ }
68
+ __name(resolveDynamicHeaderValue, "resolveDynamicHeaderValue");
69
+ function applyDynamicHeaderValues(headers, config) {
70
+ const pending = [];
71
+ headers.forEach((value, key) => {
72
+ if (hasDynamicPlaceholder(value)) pending.push([key, value]);
73
+ });
74
+ for (const [key, value] of pending) {
75
+ const resolved = resolveDynamicHeaderValue(value, config);
76
+ if (resolved === void 0) {
77
+ headers.delete(key);
78
+ } else {
79
+ headers.set(key, resolved);
80
+ }
81
+ }
82
+ }
83
+ __name(applyDynamicHeaderValues, "applyDynamicHeaderValues");
84
+ function expandDynamicHeaders(customHeaders, config) {
85
+ if (!customHeaders) return {};
86
+ const expanded = {};
87
+ for (const [key, value] of Object.entries(customHeaders)) {
88
+ if (typeof value !== "string" || !hasDynamicPlaceholder(value)) continue;
89
+ const resolved = resolveDynamicHeaderValue(value, config);
90
+ if (resolved !== void 0) expanded[key] = resolved;
91
+ }
92
+ return expanded;
93
+ }
94
+ __name(expandDynamicHeaders, "expandDynamicHeaders");
95
+
96
+ export {
97
+ warnIfDynamicHeadersDisabled,
98
+ hasDynamicPlaceholder,
99
+ applyDynamicHeaderValues,
100
+ expandDynamicHeaders
101
+ };
102
+ /**
103
+ * @license
104
+ * Copyright 2025 Qwen
105
+ * SPDX-License-Identifier: Apache-2.0
106
+ */
@@ -0,0 +1,136 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ init_esbuild_shims
5
+ } from "./chunk-S2467S6L.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-J2S4EL5Y.js";
9
+
10
+ // packages/core/src/providers/gateway-request.ts
11
+ init_esbuild_shims();
12
+ import { AsyncLocalStorage } from "node:async_hooks";
13
+ import { randomUUID } from "node:crypto";
14
+ var GATEWAY_OPERATION_PURPOSES = [
15
+ "title",
16
+ "summary",
17
+ "compaction",
18
+ "suggestion"
19
+ ];
20
+ var gatewayRequestScope = new AsyncLocalStorage();
21
+ var GatewayConversationError = class extends Error {
22
+ constructor(reason, message, details) {
23
+ super(message);
24
+ this.reason = reason;
25
+ this.name = "GatewayConversationError";
26
+ this.status = details?.status;
27
+ this.headers = details?.headers;
28
+ this.providerCode = details?.providerCode;
29
+ }
30
+ static {
31
+ __name(this, "GatewayConversationError");
32
+ }
33
+ code = "gateway_conversation_error";
34
+ status;
35
+ headers;
36
+ providerCode;
37
+ };
38
+ function isGatewayIdentifier(value) {
39
+ return typeof value === "string" && /^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$/.test(value);
40
+ }
41
+ __name(isGatewayIdentifier, "isGatewayIdentifier");
42
+ function createGatewayIndependentRequest(purpose) {
43
+ return { id: randomUUID(), ...purpose ? { purpose } : {} };
44
+ }
45
+ __name(createGatewayIndependentRequest, "createGatewayIndependentRequest");
46
+ function gatewayIndependentInput(contents) {
47
+ if (!contents.some(
48
+ (content) => content.role === "model" || content.parts?.some(
49
+ (part) => part.functionCall || part.functionResponse
50
+ )
51
+ ))
52
+ return contents;
53
+ return [
54
+ {
55
+ role: "user",
56
+ parts: [
57
+ {
58
+ text: `Source material for this independent task (JSON):
59
+ ${JSON.stringify(contents)}`
60
+ }
61
+ ]
62
+ }
63
+ ];
64
+ }
65
+ __name(gatewayIndependentInput, "gatewayIndependentInput");
66
+ function withGatewayRequestHeaders(fetcher) {
67
+ return async (input, init) => {
68
+ const scope = gatewayRequestScope.getStore();
69
+ if (!scope) return fetcher(input, init);
70
+ const body = typeof init?.body === "string" ? JSON.parse(init.body) : void 0;
71
+ if (!body || typeof body !== "object" || !("model" in body) || body.model !== scope.model)
72
+ throw new GatewayConversationError(
73
+ "unsupported",
74
+ "The serialized gateway model differs from the selected route. Remove the model override from generation settings; no fallback request was sent."
75
+ );
76
+ const headers = new Headers(
77
+ input instanceof Request ? input.headers : void 0
78
+ );
79
+ new Headers(init?.headers).forEach((value, key) => headers.set(key, value));
80
+ headers.set("x-o1gw-conversation-id", scope.conversationId);
81
+ headers.delete("x-o1gw-operation-id");
82
+ headers.delete("x-o1gw-operation-purpose");
83
+ headers.delete("x-o1gw-conversation-transfer");
84
+ if (scope.operation) {
85
+ headers.set("x-o1gw-operation-id", scope.operation.id);
86
+ headers.set("x-o1gw-operation-purpose", scope.operation.purpose);
87
+ }
88
+ const nextInit = { ...init, headers, redirect: "error" };
89
+ if (scope.transfer) {
90
+ if (scope.transfer.dispatched)
91
+ throw new GatewayConversationError(
92
+ "uncertain",
93
+ "A transfer request cannot be dispatched twice."
94
+ );
95
+ const { prepareGatewayTransfer } = await import("./gateway-transfer-47WP3EUB.js");
96
+ const preparedInit = await prepareGatewayTransfer(
97
+ fetcher,
98
+ input,
99
+ nextInit,
100
+ scope.transfer.sourceModel
101
+ );
102
+ scope.transfer.dispatched = true;
103
+ return fetcher(input, preparedInit);
104
+ }
105
+ const response = await fetcher(input, nextInit);
106
+ if (response.status === 409 && scope.confirmGroupTransfer && !scope.operation) {
107
+ const responseBody = await response.clone().json().catch(() => null);
108
+ const proposal = responseBody && typeof responseBody === "object" && "conversation_transfer" in responseBody ? responseBody.conversation_transfer : void 0;
109
+ if (proposal && typeof proposal === "object" && "requires_confirmation" in proposal && proposal.requires_confirmation === true && "prepare_endpoint" in proposal && proposal.prepare_endpoint === "/v1/conversations/transfer" && await scope.confirmGroupTransfer(init?.signal ?? void 0)) {
110
+ scope.transfer = { dispatched: true };
111
+ const { prepareGatewayTransfer } = await import("./gateway-transfer-47WP3EUB.js");
112
+ return fetcher(
113
+ input,
114
+ await prepareGatewayTransfer(fetcher, input, nextInit)
115
+ );
116
+ }
117
+ }
118
+ return response;
119
+ };
120
+ }
121
+ __name(withGatewayRequestHeaders, "withGatewayRequestHeaders");
122
+
123
+ export {
124
+ GATEWAY_OPERATION_PURPOSES,
125
+ gatewayRequestScope,
126
+ GatewayConversationError,
127
+ isGatewayIdentifier,
128
+ createGatewayIndependentRequest,
129
+ gatewayIndependentInput,
130
+ withGatewayRequestHeaders
131
+ };
132
+ /**
133
+ * @license
134
+ * Copyright 2026 o1-code contributors
135
+ * SPDX-License-Identifier: Apache-2.0
136
+ */
@@ -2,19 +2,19 @@
2
2
  "use strict";
3
3
  import {
4
4
  loadSettings
5
- } from "./chunk-UUAWQAX6.js";
5
+ } from "./chunk-LNRMJR3C.js";
6
6
  import {
7
7
  getCurrentLanguage
8
- } from "./chunk-F5JXVZVJ.js";
8
+ } from "./chunk-J6IO5FRE.js";
9
9
  import {
10
10
  isWorkspaceTrusted
11
- } from "./chunk-LZCNINKB.js";
12
- import {
13
- hashMcpServerConfig
14
- } from "./chunk-FLIJQ7IC.js";
11
+ } from "./chunk-QLR4QOL7.js";
15
12
  import {
16
13
  require_strip_json_comments
17
14
  } from "./chunk-YCZIOHKD.js";
15
+ import {
16
+ hashMcpServerConfig
17
+ } from "./chunk-6XQREQ7X.js";
18
18
  import {
19
19
  Config,
20
20
  ExtensionManager,
@@ -25,18 +25,18 @@ import {
25
25
  isGatedMcpScope,
26
26
  normalizeClaudeMcpServer,
27
27
  runWithTimeout
28
- } from "./chunk-K44D6MLS.js";
28
+ } from "./chunk-CMDJL3HC.js";
29
29
  import {
30
30
  getMCPServerLastError,
31
31
  getMCPServerStatus
32
- } from "./chunk-ASQLIG2L.js";
33
- import {
34
- atomicWriteFile
35
- } from "./chunk-EPJAMNLS.js";
32
+ } from "./chunk-2OEBEF5L.js";
36
33
  import {
37
34
  writeStderrLine,
38
35
  writeStdoutLine
39
36
  } from "./chunk-RANA4SOY.js";
37
+ import {
38
+ atomicWriteFile
39
+ } from "./chunk-EPJAMNLS.js";
40
40
  import {
41
41
  Storage
42
42
  } from "./chunk-S3HSUBBN.js";
@@ -50,7 +50,7 @@ import {
50
50
  } from "./chunk-VUIDKECZ.js";
51
51
  import {
52
52
  getCliVersion
53
- } from "./chunk-HLBNALL4.js";
53
+ } from "./chunk-UQSP4Y3H.js";
54
54
  import {
55
55
  init_esbuild_shims
56
56
  } from "./chunk-S2467S6L.js";
@@ -2,31 +2,31 @@
2
2
  "use strict";
3
3
  import {
4
4
  mapSkillConfigToStatus
5
- } from "./chunk-PUBQDZLP.js";
6
- import {
7
- STATUS_SCHEMA_VERSION
8
- } from "./chunk-SU6K5JRJ.js";
5
+ } from "./chunk-2NTOADNA.js";
9
6
  import {
10
7
  resolveSkillSettings
11
- } from "./chunk-XA3N5TO5.js";
8
+ } from "./chunk-4KLFLD6W.js";
9
+ import {
10
+ STATUS_SCHEMA_VERSION
11
+ } from "./chunk-AXM2QH6N.js";
12
12
  import {
13
13
  loadSettings
14
- } from "./chunk-UUAWQAX6.js";
14
+ } from "./chunk-LNRMJR3C.js";
15
15
  import {
16
16
  resolveLanguage,
17
17
  resolveLanguageSetting
18
- } from "./chunk-F5JXVZVJ.js";
18
+ } from "./chunk-J6IO5FRE.js";
19
19
  import {
20
20
  ExtensionManager,
21
21
  ExtensionStore,
22
22
  SkillManager,
23
23
  getExtensionDisplayName,
24
24
  isSafeModeEnv
25
- } from "./chunk-K44D6MLS.js";
25
+ } from "./chunk-CMDJL3HC.js";
26
26
  import {
27
27
  authoredSkillName,
28
28
  qualifySkillName
29
- } from "./chunk-DNFPKNWM.js";
29
+ } from "./chunk-RWUZRVUT.js";
30
30
  import {
31
31
  writeStderrLine
32
32
  } from "./chunk-RANA4SOY.js";
@@ -18,63 +18,6 @@ import {
18
18
  __name
19
19
  } from "./chunk-J2S4EL5Y.js";
20
20
 
21
- // packages/core/src/utils/fetch.ts
22
- init_esbuild_shims();
23
-
24
- // packages/core/src/utils/retry.ts
25
- init_esbuild_shims();
26
-
27
- // packages/core/src/utils/quotaErrorDetection.ts
28
- init_esbuild_shims();
29
- function isApiError(error) {
30
- return typeof error === "object" && error !== null && "error" in error && typeof error.error === "object" && error.error !== null && "message" in error.error;
31
- }
32
- __name(isApiError, "isApiError");
33
- function isStructuredError(error) {
34
- return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
35
- }
36
- __name(isStructuredError, "isStructuredError");
37
- var QUOTA_EXHAUSTED_PREFIX = "Quota exhausted: ";
38
- function getQuotaMessage(error) {
39
- let message = null;
40
- if (typeof error === "string") message = error;
41
- else if (isStructuredError(error)) message = error.message;
42
- else if (isApiError(error)) message = error.error.message;
43
- if (message === null) return null;
44
- const start = message.indexOf("{");
45
- if (start !== -1) {
46
- try {
47
- const parsed = JSON.parse(message.substring(start));
48
- if (isApiError(parsed)) return parsed.error.message;
49
- } catch {
50
- }
51
- }
52
- return message;
53
- }
54
- __name(getQuotaMessage, "getQuotaMessage");
55
- function isQuotaExhaustedError(error) {
56
- const message = getQuotaMessage(error);
57
- if (!message) return false;
58
- const lower = message.toLowerCase();
59
- return lower.includes("quota") && (lower.includes("exhausted") || lower.includes("exceeded")) && (lower.includes("will reset") || lower.includes("reset at"));
60
- }
61
- __name(isQuotaExhaustedError, "isQuotaExhaustedError");
62
- function formatQuotaExhaustedMessage(error) {
63
- const raw = getQuotaMessage(error) ?? "";
64
- if (raw.startsWith(QUOTA_EXHAUSTED_PREFIX)) return raw;
65
- const stripped = raw.replace(/^\d{3}\s+/, "").trim() || "quota has been exhausted";
66
- return `${QUOTA_EXHAUSTED_PREFIX}${stripped}
67
-
68
- Please retry after the reset time, or switch to another API key / auth method.`;
69
- }
70
- __name(formatQuotaExhaustedMessage, "formatQuotaExhaustedMessage");
71
-
72
- // packages/core/src/utils/proxy-waits.ts
73
- init_esbuild_shims();
74
-
75
- // packages/core/src/utils/rateLimit.ts
76
- init_esbuild_shims();
77
-
78
21
  // packages/core/src/utils/retryPolicy.ts
79
22
  init_esbuild_shims();
80
23
  var MAX_TIMEOUT_MS = 2147483647;
@@ -161,6 +104,54 @@ function hasResponseHeaders(error) {
161
104
  }
162
105
  __name(hasResponseHeaders, "hasResponseHeaders");
163
106
 
107
+ // packages/core/src/utils/rateLimit.ts
108
+ init_esbuild_shims();
109
+
110
+ // packages/core/src/utils/quotaErrorDetection.ts
111
+ init_esbuild_shims();
112
+ function isApiError(error) {
113
+ return typeof error === "object" && error !== null && "error" in error && typeof error.error === "object" && error.error !== null && "message" in error.error;
114
+ }
115
+ __name(isApiError, "isApiError");
116
+ function isStructuredError(error) {
117
+ return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
118
+ }
119
+ __name(isStructuredError, "isStructuredError");
120
+ var QUOTA_EXHAUSTED_PREFIX = "Quota exhausted: ";
121
+ function getQuotaMessage(error) {
122
+ let message = null;
123
+ if (typeof error === "string") message = error;
124
+ else if (isStructuredError(error)) message = error.message;
125
+ else if (isApiError(error)) message = error.error.message;
126
+ if (message === null) return null;
127
+ const start = message.indexOf("{");
128
+ if (start !== -1) {
129
+ try {
130
+ const parsed = JSON.parse(message.substring(start));
131
+ if (isApiError(parsed)) return parsed.error.message;
132
+ } catch {
133
+ }
134
+ }
135
+ return message;
136
+ }
137
+ __name(getQuotaMessage, "getQuotaMessage");
138
+ function isQuotaExhaustedError(error) {
139
+ const message = getQuotaMessage(error);
140
+ if (!message) return false;
141
+ const lower = message.toLowerCase();
142
+ return lower.includes("quota") && (lower.includes("exhausted") || lower.includes("exceeded")) && (lower.includes("will reset") || lower.includes("reset at"));
143
+ }
144
+ __name(isQuotaExhaustedError, "isQuotaExhaustedError");
145
+ function formatQuotaExhaustedMessage(error) {
146
+ const raw = getQuotaMessage(error) ?? "";
147
+ if (raw.startsWith(QUOTA_EXHAUSTED_PREFIX)) return raw;
148
+ const stripped = raw.replace(/^\d{3}\s+/, "").trim() || "quota has been exhausted";
149
+ return `${QUOTA_EXHAUSTED_PREFIX}${stripped}
150
+
151
+ Please retry after the reset time, or switch to another API key / auth method.`;
152
+ }
153
+ __name(formatQuotaExhaustedMessage, "formatQuotaExhaustedMessage");
154
+
164
155
  // packages/core/src/utils/rateLimit.ts
165
156
  var RATE_LIMIT_ERROR_CODES = /* @__PURE__ */ new Set([429, 503, 1302, 1305]);
166
157
  function isRateLimitError(error, extraCodes) {
@@ -322,7 +313,14 @@ function getRawErrorMessage(error) {
322
313
  }
323
314
  __name(getRawErrorMessage, "getRawErrorMessage");
324
315
 
316
+ // packages/core/src/utils/fetch.ts
317
+ init_esbuild_shims();
318
+
319
+ // packages/core/src/utils/retry.ts
320
+ init_esbuild_shims();
321
+
325
322
  // packages/core/src/utils/proxy-waits.ts
323
+ init_esbuild_shims();
326
324
  var PROXY_LONG_WAIT_MS = 5 * 6e4;
327
325
  var PROXY_WAIT_CODES = /* @__PURE__ */ new Set([
328
326
  "account_limit_exceeded",
@@ -458,6 +456,15 @@ __name(record, "record");
458
456
 
459
457
  // packages/core/src/utils/retryErrorClassification.ts
460
458
  function classifyRetryError(error, context = {}) {
459
+ if (error instanceof Error && "code" in error && error.code === "gateway_conversation_error") {
460
+ return {
461
+ kind: "provider-business",
462
+ diagnosis: "fail-fast",
463
+ reason: "gateway-continuity",
464
+ providerCode: "providerCode" in error && typeof error.providerCode === "string" ? error.providerCode : "gateway_conversation_error",
465
+ ..."status" in error && typeof error.status === "number" ? { statusCode: error.status } : {}
466
+ };
467
+ }
461
468
  if (isRetryAbortError(error)) {
462
469
  return {
463
470
  kind: "abort",
@@ -485,6 +492,14 @@ function classifyRetryError(error, context = {}) {
485
492
  ...common
486
493
  };
487
494
  }
495
+ if (providerCode === "conversation_unavailable" || providerCode === "transfer_unavailable" || providerCode === "conversation_transfer_required") {
496
+ return {
497
+ kind: "provider-business",
498
+ diagnosis: "fail-fast",
499
+ reason: "gateway-continuity",
500
+ ...common
501
+ };
502
+ }
488
503
  if (error instanceof ResponsesHttpError && (error.headers.has("x-should-retry") || statusCode === 408 || statusCode === 409)) {
489
504
  return {
490
505
  kind: "http",
@@ -861,6 +876,7 @@ async function retryWithBackoff(fn, options) {
861
876
  authType,
862
877
  extraRetryErrorCodes
863
878
  });
879
+ if (retryDiagnostics.reason === "gateway-continuity") throw error;
864
880
  if (retryDiagnostics.kind === "abort") {
865
881
  throw error;
866
882
  }
@@ -1339,12 +1355,12 @@ export {
1339
1355
  };
1340
1356
  /**
1341
1357
  * @license
1342
- * Copyright 2025 Google LLC
1358
+ * Copyright 2026 Google LLC
1343
1359
  * SPDX-License-Identifier: Apache-2.0
1344
1360
  */
1345
1361
  /**
1346
1362
  * @license
1347
- * Copyright 2026 Google LLC
1363
+ * Copyright 2025 Google LLC
1348
1364
  * SPDX-License-Identifier: Apache-2.0
1349
1365
  */
1350
1366
  /**