@organizaone/o1-code 0.22.2 → 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 (325) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +58 -0
  2. package/chunks/{MaxSizedBox-H6TTYZHO.js → MaxSizedBox-27XXPAQA.js} +66 -60
  3. package/chunks/{StandaloneSessionPicker-G5FLW7TR.js → StandaloneSessionPicker-7JDLA7AU.js} +87 -81
  4. package/chunks/{acp-subagent-executor-PFIDAFOD.js → acp-subagent-executor-5C7UDO7D.js} +70 -64
  5. package/chunks/{acpAgent-4PUZMTSI.js → acpAgent-LZLF6BDI.js} +206 -199
  6. package/chunks/{agent-XS2VGVGO.js → agent-ZI5SNX4V.js} +49 -44
  7. package/chunks/{agent-headless-474ZYFSJ.js → agent-headless-NC3BEGWL.js} +49 -44
  8. package/chunks/{all-providers-67KTP3MN.js → all-providers-HWBWMDS4.js} +7 -5
  9. package/chunks/{anthropicContentGenerator-RTEGRYPV.js → anthropicContentGenerator-ZVTMFRMJ.js} +45 -31
  10. package/chunks/{bridge-HPTKSOIC.js → bridge-FXDALV5R.js} +71 -65
  11. package/chunks/bwrap-execution-A5QZJK2I.js +2 -2
  12. package/chunks/{chunk-4T3CEDPG.js → chunk-27QMKVHR.js} +11 -11
  13. package/chunks/{chunk-PUBQDZLP.js → chunk-2NTOADNA.js} +1 -1
  14. package/chunks/{chunk-ASQLIG2L.js → chunk-2OEBEF5L.js} +13 -13
  15. package/chunks/{chunk-35IZ2AEV.js → chunk-2ORYKT6E.js} +14 -14
  16. package/chunks/{chunk-K44D6MLS.js → chunk-3R3BFEXO.js} +398 -337
  17. package/chunks/{chunk-44YL3A4I.js → chunk-3SIUBEAC.js} +1 -1
  18. package/chunks/{chunk-YEG2VKSR.js → chunk-4KDMTAGY.js} +13 -13
  19. package/chunks/{chunk-XA3N5TO5.js → chunk-4KLFLD6W.js} +1 -1
  20. package/chunks/{chunk-LSY2TNVO.js → chunk-4PTZBGHX.js} +4 -4
  21. package/chunks/{chunk-OJ2CVNVP.js → chunk-5IGBH2BT.js} +1 -1
  22. package/chunks/{chunk-NUF3FLRS.js → chunk-5TGVTMA4.js} +4 -4
  23. package/chunks/{chunk-SLH747HE.js → chunk-5WCEM6DZ.js} +1 -1
  24. package/chunks/{chunk-LZCNINKB.js → chunk-5YC3SA73.js} +4 -4
  25. package/chunks/{chunk-3CJZHWKH.js → chunk-5ZVBCI7I.js} +3 -3
  26. package/chunks/{chunk-ZPJTYCOY.js → chunk-63GQIGT2.js} +2 -2
  27. package/chunks/{chunk-ROE3Y42D.js → chunk-6JWJ7VIG.js} +4 -4
  28. package/chunks/{chunk-7FFS7D63.js → chunk-6O7MP53X.js} +4 -4
  29. package/chunks/{chunk-HEFYYQ5F.js → chunk-6RJBK4RT.js} +7 -7
  30. package/chunks/{chunk-C6O3NG4T.js → chunk-6SEKLUZU.js} +1 -1
  31. package/chunks/{chunk-WCPTHHFI.js → chunk-6WR3DWHA.js} +1 -1
  32. package/chunks/{chunk-FI7LCEJ7.js → chunk-A54HR2DE.js} +77 -77
  33. package/chunks/{chunk-PFBUKEWV.js → chunk-A6GSNSDY.js} +2 -2
  34. package/chunks/{chunk-32722SNN.js → chunk-A7JWEUTB.js} +1 -1
  35. package/chunks/{chunk-AFXPLQYA.js → chunk-AEJFNK44.js} +11 -101
  36. package/chunks/{chunk-TD2B7LOS.js → chunk-AI5ZWMKL.js} +1 -1
  37. package/chunks/{chunk-LO6VR36F.js → chunk-AJDAOH4D.js} +1 -1
  38. package/chunks/{chunk-ARKI4LOD.js → chunk-AP6XDBGI.js} +3 -3
  39. package/chunks/{chunk-SU6K5JRJ.js → chunk-AXM2QH6N.js} +1 -1
  40. package/chunks/{chunk-IFJ3RGFY.js → chunk-B4CCJMG6.js} +20 -66
  41. package/chunks/chunk-B4K3VBFF.js +300 -0
  42. package/chunks/{chunk-Q6IDKPJW.js → chunk-B5GTZ6E6.js} +1 -1
  43. package/chunks/{chunk-A55LB5TM.js → chunk-BGAORGSF.js} +1 -1
  44. package/chunks/{chunk-XGXVMNHI.js → chunk-CFXFYRCP.js} +4 -4
  45. package/chunks/chunk-CNXTYK25.js +62 -0
  46. package/chunks/{chunk-FXSQ3EB2.js → chunk-CONWBF63.js} +3 -3
  47. package/chunks/{chunk-GDOMZBF3.js → chunk-CRJFZOU2.js} +1 -1
  48. package/chunks/{chunk-OJAGNSHH.js → chunk-EE35GR3R.js} +5 -5
  49. package/chunks/{chunk-3J63UVMG.js → chunk-ELS2BV24.js} +1 -1
  50. package/chunks/{chunk-SHOCUW3R.js → chunk-EMSUJGLD.js} +3 -3
  51. package/chunks/{chunk-BPZ6GQBH.js → chunk-ERL2SJHW.js} +2 -2
  52. package/chunks/chunk-EYKEQPKF.js +27 -0
  53. package/chunks/{chunk-Y34E6WY7.js → chunk-F2LYJ3ZD.js} +19 -19
  54. package/chunks/{chunk-PT32HMCN.js → chunk-F5GPRGLO.js} +1 -1
  55. package/chunks/{chunk-B4WT73ZC.js → chunk-FLJEZNV4.js} +2 -2
  56. package/chunks/{chunk-GLKPOCPH.js → chunk-FMN2VSEH.js} +3 -3
  57. package/chunks/{chunk-EVIGOLAL.js → chunk-G376S7VI.js} +1 -1
  58. package/chunks/{chunk-JHRVJBV5.js → chunk-GM7RKZZ4.js} +4 -4
  59. package/chunks/{chunk-KL5NEBVZ.js → chunk-GPDZESAY.js} +5 -5
  60. package/chunks/{chunk-HLBNALL4.js → chunk-H62ST6JL.js} +1 -1
  61. package/chunks/{chunk-I3OOIGJI.js → chunk-HFDXNYOL.js} +3 -3
  62. package/chunks/{chunk-IC57EPC7.js → chunk-HQROPADY.js} +18 -0
  63. package/chunks/{chunk-2GNKUQNV.js → chunk-ICYAPJ5S.js} +102 -102
  64. package/chunks/{chunk-DNROOYR3.js → chunk-IN65BYCX.js} +2 -2
  65. package/chunks/{chunk-3HQMSMNA.js → chunk-ISARFBOT.js} +8 -8
  66. package/chunks/{chunk-EU7GXSE7.js → chunk-ISRDI3GT.js} +11 -11
  67. package/chunks/{chunk-73K63OUJ.js → chunk-ISRM33KJ.js} +8 -8
  68. package/chunks/{chunk-TZ7PFWVT.js → chunk-J3RKZFKI.js} +2 -92
  69. package/chunks/{chunk-F5JXVZVJ.js → chunk-J6IO5FRE.js} +2 -2
  70. package/chunks/{chunk-FLIJQ7IC.js → chunk-JJM6IQIE.js} +33 -258
  71. package/chunks/{chunk-ZUBCKLDM.js → chunk-JKLZSD6Z.js} +16 -12
  72. package/chunks/{chunk-7O3XB3FJ.js → chunk-JPTQB5NW.js} +38 -38
  73. package/chunks/{chunk-4ABCTDVK.js → chunk-JVRNE7NT.js} +8 -8
  74. package/chunks/{chunk-VMLVJOQL.js → chunk-K3UU55BI.js} +2 -2
  75. package/chunks/{chunk-EOIZZLQD.js → chunk-KFZPMKWE.js} +1 -1
  76. package/chunks/{chunk-UUAWQAX6.js → chunk-KLG5EXFK.js} +5 -5
  77. package/chunks/{chunk-6MXIK5CK.js → chunk-KPPSQ5EU.js} +1 -1
  78. package/chunks/{chunk-63XITVIE.js → chunk-L3X3Z5AT.js} +24 -24
  79. package/chunks/{chunk-FT7HBT5S.js → chunk-LG6LR2P4.js} +2 -2
  80. package/chunks/{chunk-2F3GZ6WG.js → chunk-LMFAYXBU.js} +1 -1
  81. package/chunks/{chunk-54DBAFQ2.js → chunk-LNCMGJ5H.js} +1 -1
  82. package/chunks/{chunk-5OKLHC2S.js → chunk-LQV2HN6P.js} +1 -1
  83. package/chunks/{chunk-7MFRXLVG.js → chunk-MNR3HCZD.js} +2 -2
  84. package/chunks/{chunk-JKXGHDQ2.js → chunk-MRDYGSEU.js} +1 -1
  85. package/chunks/{chunk-JFKJW3BP.js → chunk-NTQWEEPL.js} +1 -1
  86. package/chunks/{chunk-7ADYEHKM.js → chunk-OCGMQ7V4.js} +1 -1
  87. package/chunks/{chunk-YRKUDWZP.js → chunk-OE5CWJEX.js} +2 -2
  88. package/chunks/{chunk-XZDGZX34.js → chunk-OHUMXUCB.js} +7 -7
  89. package/chunks/{chunk-IRP7MQRE.js → chunk-PCV2FQHN.js} +11 -11
  90. package/chunks/{chunk-STL6XNJK.js → chunk-PMPABMDI.js} +9 -9
  91. package/chunks/{chunk-SKQECA3Y.js → chunk-Q5CTSLWK.js} +1 -1
  92. package/chunks/{chunk-RBZFW23K.js → chunk-QSRSLLA5.js} +7 -7
  93. package/chunks/{chunk-PVYRIVM3.js → chunk-QYJB4I22.js} +1 -1
  94. package/chunks/{chunk-XHQEB4WW.js → chunk-R75USKXV.js} +4 -4
  95. package/chunks/{chunk-GXHLZHKS.js → chunk-RLIINKKI.js} +1 -1
  96. package/chunks/{chunk-D24NFPPO.js → chunk-RNWMJNLI.js} +7 -5
  97. package/chunks/{chunk-DNFPKNWM.js → chunk-RWUZRVUT.js} +2 -2
  98. package/chunks/{chunk-CQ33RPSY.js → chunk-U4XPMMLI.js} +15 -15
  99. package/chunks/{chunk-3OLRYJYM.js → chunk-UB5WMNPW.js} +10 -10
  100. package/chunks/{chunk-6XZZIE7V.js → chunk-UO32G56K.js} +7 -7
  101. package/chunks/{chunk-SN3M4SEK.js → chunk-UPEEU7KI.js} +51 -49
  102. package/chunks/{chunk-YXTBS65N.js → chunk-UPMLP2Z5.js} +9 -2
  103. package/chunks/chunk-V24FMEXL.js +203 -0
  104. package/chunks/{chunk-TAHFZVR5.js → chunk-VBMWQMDE.js} +8 -8
  105. package/chunks/chunk-VTIYMCRG.js +128 -0
  106. package/chunks/{chunk-TYYTQIEZ.js → chunk-W5XYWVXE.js} +1 -1
  107. package/chunks/chunk-WDBSTICZ.js +106 -0
  108. package/chunks/{chunk-62T6BNFW.js → chunk-WE6BPBQP.js} +6 -6
  109. package/chunks/{chunk-SPRNR2PU.js → chunk-WIWIJEJP.js} +2 -2
  110. package/chunks/{chunk-X2SSZR6M.js → chunk-WSZLSFAL.js} +34 -28
  111. package/chunks/chunk-WXIQKOFD.js +136 -0
  112. package/chunks/{chunk-IUDP2ML3.js → chunk-XBUIQQXG.js} +3 -3
  113. package/chunks/{chunk-GW7QA3HN.js → chunk-XEVNNDMS.js} +3 -3
  114. package/chunks/{chunk-DGEOQOYK.js → chunk-Y5QVFNPV.js} +6 -6
  115. package/chunks/{chunk-MVWEGM3N.js → chunk-YASLANLE.js} +1 -1
  116. package/chunks/{chunk-COBKDL54.js → chunk-YHM4E6YI.js} +3 -3
  117. package/chunks/{chunk-GM2WNDZ5.js → chunk-YPTR7ZFB.js} +75 -59
  118. package/chunks/{chunk-EUIN36RL.js → chunk-Z2SHHAO5.js} +1 -1
  119. package/chunks/{chunk-SHADJNT6.js → chunk-Z563JBRI.js} +1 -1
  120. package/chunks/{chunk-6N5O34AT.js → chunk-ZAPFSBSC.js} +13 -13
  121. package/chunks/{chunk-KSQ3A4MU.js → chunk-ZIQ3RCYA.js} +11 -11
  122. package/chunks/{chunk-LSRS3YN5.js → chunk-ZKYDNULB.js} +1 -1
  123. package/chunks/{chunk-LWQVH7RG.js → chunk-ZPAYRCCC.js} +3 -3
  124. package/chunks/{chunk-ZBP2DKL7.js → chunk-ZV2H47SC.js} +5 -5
  125. package/chunks/{chunk-P3H5PNSO.js → chunk-ZVYEHMGP.js} +1 -1
  126. package/chunks/{codex-subagent-executor-CVPJBY7H.js → codex-subagent-executor-TUG7UEJG.js} +70 -64
  127. package/chunks/{contextCommand-VQP42E45.js → contextCommand-VMUEO5SI.js} +68 -62
  128. package/chunks/{core-runtime-UGTGVETQ.js → core-runtime-CV6DO2BT.js} +72 -66
  129. package/chunks/{create-sub-session-W7HDHA47.js → create-sub-session-M7EUM75T.js} +69 -63
  130. package/chunks/{daemon-git-worktree-guard-OYHWZ4DT.js → daemon-git-worktree-guard-2G76FIUG.js} +66 -60
  131. package/chunks/{daemon-status-provider-BPA4OMKT.js → daemon-status-provider-QOR4L7E5.js} +76 -70
  132. package/chunks/{daemon-trust-policy-LR3O2LHO.js → daemon-trust-policy-CYFTEH4U.js} +73 -67
  133. package/chunks/{daemon-trust-policy-monitor-XYJBQS5K.js → daemon-trust-policy-monitor-PFHWELJD.js} +73 -67
  134. package/chunks/{deferred-core-runtime-2JRX7S37.js → deferred-core-runtime-Z26VVWVX.js} +69 -63
  135. package/chunks/{edit-C5EXC227.js → edit-LHLIDK3S.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-IQK2RIT2.js} +51 -46
  139. package/chunks/{environment-AK5W47CA.js → environment-PYAXVHAN.js} +69 -63
  140. package/chunks/{errors-V77HGFV3.js → errors-EAJZYSTA.js} +68 -62
  141. package/chunks/execution-sandbox-config-2RI6A7VE.js +2 -2
  142. package/chunks/{execution-tool-NK2ST2RX.js → execution-tool-Z6N2XKZI.js} +52 -47
  143. package/chunks/{execution-worker-QO36YMNT.js → execution-worker-Z6BPII7C.js} +59 -54
  144. package/chunks/{exit-worktree-Q3ZHCBYN.js → exit-worktree-3UU4SS47.js} +6 -6
  145. package/chunks/{exitPlanMode-OPS5BP27.js → exitPlanMode-JGOBW34Q.js} +49 -44
  146. package/chunks/{fast-path-SAXQN2PO.js → fast-path-NS4FKBES.js} +2 -2
  147. package/chunks/fast-path-settings-FIMIXD3V.js +1 -1
  148. package/chunks/{foreground-runner-WUF5YIVW.js → foreground-runner-OOEEIVUP.js} +75 -69
  149. package/chunks/gateway-content-generator-HKBMHBLQ.js +463 -0
  150. package/chunks/gateway-models-WD5T6UM7.js +134 -0
  151. package/chunks/gateway-transfer-47WP3EUB.js +27 -0
  152. package/chunks/{glob-EAIWIACU.js → glob-I3H7VRYE.js} +50 -45
  153. package/chunks/{goal-tools-IM4K7YYV.js → goal-tools-54MEWICX.js} +49 -44
  154. package/chunks/{grep-JBR55JCA.js → grep-5HGH34M6.js} +2 -2
  155. package/chunks/{handleAutoUpdate-XGWLFCZ3.js → handleAutoUpdate-KFKBIB43.js} +72 -66
  156. package/chunks/{i18n-A3JWISCI.js → i18n-F6DJUIQP.js} +67 -61
  157. package/chunks/{image-gen-KX5VPAGI.js → image-gen-WGMRL47H.js} +2 -2
  158. package/chunks/{initializer-WF7GJJSN.js → initializer-5PZXULW4.js} +73 -67
  159. package/chunks/{installationInfo-UGZLB5DE.js → installationInfo-O3HIX7B2.js} +66 -60
  160. package/chunks/{list-XL33NYFQ.js → list-DYAKGAST.js} +75 -69
  161. package/chunks/{llm-5ZIFZWYM.js → llm-YY7F675E.js} +124 -117
  162. package/chunks/{llm-content-generator-IP6THV2F.js → llm-content-generator-Z75TNGTQ.js} +14 -11
  163. package/chunks/{loadedSettingsAdapter-BBOBGOFY.js → loadedSettingsAdapter-MRZD4D7D.js} +73 -67
  164. package/chunks/{local-execution-environment-OHZ6JHBJ.js → local-execution-environment-DP37VPGH.js} +59 -54
  165. package/chunks/{loggingContentGenerator-ZB6YBQ4A.js → loggingContentGenerator-PWXVR62R.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-D42GTYXT.js} +70 -64
  168. package/chunks/{mcp-7TSDK7XG.js → mcp-3SGMUX76.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-ZLUY4ZPF.js} +2 -2
  171. package/chunks/{model-configuration-YHPN6XLJ.js → model-configuration-MLC7FUK7.js} +74 -68
  172. package/chunks/{modelConfigUtils-KXEA5X5L.js → modelConfigUtils-E63K4FIT.js} +68 -62
  173. package/chunks/{monitor-YUS5UHUB.js → monitor-GXNUEY3P.js} +49 -44
  174. package/chunks/{nonInteractiveCli-H5OSIGXO.js → nonInteractiveCli-4NO53VRG.js} +113 -107
  175. package/chunks/{nonInteractiveToolExecutor-KOOCZSZM.js → nonInteractiveToolExecutor-Y7TJUHAX.js} +50 -45
  176. package/chunks/{notebook-edit-XYZLSPWF.js → notebook-edit-DXAOFD2H.js} +50 -45
  177. package/chunks/{omni-QS5RRGPB.js → omni-WVNDCU2V.js} +24 -19
  178. package/chunks/{openaiContentGenerator-37E2A7VN.js → openaiContentGenerator-Z5W2NXTC.js} +46 -39
  179. package/chunks/{openaiResponsesContentGenerator-PMCEAG55.js → openaiResponsesContentGenerator-7TMC5LLC.js} +20 -14
  180. package/chunks/{processUtils-CQXO2K7O.js → processUtils-NW3I5Y4Q.js} +2 -2
  181. package/chunks/{prompt-terminal-ledger-ZRCMVONU.js → prompt-terminal-ledger-LXLGVBXI.js} +67 -61
  182. package/chunks/{pt-DHKQQO6C.js → pt-EZL4H2AB.js} +10 -0
  183. package/chunks/{reactive-degrade-ZJ3JVKAL.js → reactive-degrade-JI4TV7MU.js} +18 -13
  184. package/chunks/{read-file-MOY3AEWH.js → read-file-BROAVJMY.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-FC6B6ELG.js} +72 -66
  190. package/chunks/{ripGrep-DRZ55VHF.js → ripGrep-L6STRULU.js} +16 -15
  191. package/chunks/{run-o1-code-serve-QG3EUGCC.js → run-o1-code-serve-CFM6K42B.js} +55 -55
  192. package/chunks/{sandboxConfig-67KD25RA.js → sandboxConfig-VSWWIAFG.js} +67 -61
  193. package/chunks/{scheduled-tasks-SUK36YBV.js → scheduled-tasks-EJI5QZHI.js} +74 -68
  194. package/chunks/{scheduler-VGATQHDI.js → scheduler-QQDWDBAC.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-SHJLGEDC.js} +73 -67
  200. package/chunks/{server-ID2MQUOZ.js → server-PUNNQEFJ.js} +267 -260
  201. package/chunks/{session-SBJFEMA7.js → session-22YESIKO.js} +117 -111
  202. package/chunks/{session-FEM6CGKX.js → session-XCQPLG6U.js} +3 -2
  203. package/chunks/{session-attachments-root-ILVWUB6H.js → session-attachments-root-25USCQWT.js} +66 -60
  204. package/chunks/{session-pr-refresh-PMD3YR6L.js → session-pr-refresh-LQAHIWKK.js} +74 -68
  205. package/chunks/{settings-7BOOCLET.js → settings-LNHRCVW6.js} +72 -66
  206. package/chunks/{shell-PWH465OV.js → shell-CDFSFLKN.js} +49 -44
  207. package/chunks/{skill-6CYVI2NR.js → skill-YBEF77DP.js} +21 -20
  208. package/chunks/{skill-settings-5HIZWK7Y.js → skill-settings-WMMDNW4U.js} +73 -67
  209. package/chunks/{spawnChannel-OOMVR63F.js → spawnChannel-FZCIKG4Z.js} +69 -63
  210. package/chunks/{standalone-update-MXJDDVFO.js → standalone-update-ZXELWWF3.js} +68 -62
  211. package/chunks/{startInteractiveUI-IHLZORH3.js → startInteractiveUI-HOOCMWEC.js} +1229 -1042
  212. package/chunks/{supervisor-runner-I3KOH7AT.js → supervisor-runner-5ZIXK3IK.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-6ECQJZLF.js} +51 -46
  216. package/chunks/{team-plan-approval-NGGXGRN5.js → team-plan-approval-DBWFFQFM.js} +49 -44
  217. package/chunks/{terminal-image-renderer-QPJZUQOY.js → terminal-image-renderer-A6Y2HVBS.js} +66 -60
  218. package/chunks/{theme-manager-YN3VTWUS.js → theme-manager-OCW6TMNQ.js} +66 -60
  219. package/chunks/tool-call-V225426S.js +1 -1
  220. package/chunks/{tool-result-media-ELNVF7HV.js → tool-result-media-XTX26N6J.js} +19 -14
  221. package/chunks/{tool-search-3MQVPZN2.js → tool-search-HOXIUKWC.js} +19 -18
  222. package/chunks/{total-session-admission-RQ2GWA4J.js → total-session-admission-WXJ3YEQ5.js} +71 -65
  223. package/chunks/{trustedFolders-ANMISMAZ.js → trustedFolders-XCMOSOO7.js} +68 -62
  224. package/chunks/{update-relaunch-ANCIYSER.js → update-relaunch-GVR62LH2.js} +5 -5
  225. package/chunks/{updateCheck-QGDY5DY2.js → updateCheck-LIM7QN56.js} +71 -65
  226. package/chunks/{upload-config-V6CJBH2Z.js → upload-config-RMBZH5CN.js} +13 -8
  227. package/chunks/{useAutoAcceptIndicator-H4PUESJW.js → useAutoAcceptIndicator-UD2RHMEV.js} +76 -70
  228. package/chunks/{validateNonInterActiveAuth-3D6LYNKP.js → validateNonInterActiveAuth-XWKIVK6H.js} +110 -104
  229. package/chunks/{version-M7PIODKT.js → version-3I52C43L.js} +1 -1
  230. package/chunks/{web-fetch-VJSQST7P.js → web-fetch-3HPAIZLZ.js} +15 -14
  231. package/chunks/{web-search-CVFACVJV.js → web-search-IGWJKQL6.js} +14 -9
  232. package/chunks/{workflow-O3XZL3Z4.js → workflow-WPYWSNRI.js} +50 -45
  233. package/chunks/{workspace-providers-status-M47T3M22.js → workspace-providers-status-L47APRS5.js} +79 -73
  234. package/chunks/{workspace-registration-store-HGSY3RON.js → workspace-registration-store-TAJMFLYS.js} +1 -1
  235. package/chunks/{workspace-registry-LYEI3DR3.js → workspace-registry-OTHD5ACV.js} +71 -65
  236. package/chunks/{workspace-runtime-coordinator-OHXZ4IPK.js → workspace-runtime-coordinator-HUTZGMRE.js} +72 -66
  237. package/chunks/{workspace-service-VII7ZCF7.js → workspace-service-SHVY3QVN.js} +77 -71
  238. package/chunks/{workspace-skills-status-7GG3A3TL.js → workspace-skills-status-HIYL5CH4.js} +76 -70
  239. package/chunks/{workspace-trust-reconciler-GGKNXRVC.js → workspace-trust-reconciler-HGE6PGQR.js} +80 -74
  240. package/chunks/{write-file-K5V3EMTE.js → write-file-PNL2YVFB.js} +52 -47
  241. package/chunks/{zoom-image-TROZVSMN.js → zoom-image-GUMY7SRT.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 +9 -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-DeVLjecs.js} +1 -1
  255. package/web-shell/assets/{arc-zZSvt9kN.js → arc-CsL1xVKr.js} +1 -1
  256. package/web-shell/assets/{architectureDiagram-5GKGNRK7-C1H1DVM2.js → architectureDiagram-5GKGNRK7-BXLHW1Px.js} +1 -1
  257. package/web-shell/assets/{blockDiagram-NRAW4CY4-CLvQiMuT.js → blockDiagram-NRAW4CY4-BNz6-fkt.js} +1 -1
  258. package/web-shell/assets/{c4Diagram-UCG6FXSJ-verRTIfv.js → c4Diagram-UCG6FXSJ-Dq_CA8EC.js} +1 -1
  259. package/web-shell/assets/channel-BUrNVNvF.js +1 -0
  260. package/web-shell/assets/{chunk-2Q5K7J3B-BIX6o24B.js → chunk-2Q5K7J3B-BGf6suil.js} +1 -1
  261. package/web-shell/assets/{chunk-5VM5RSS4-hp0xJxSu.js → chunk-5VM5RSS4-DsXPEjaR.js} +1 -1
  262. package/web-shell/assets/{chunk-F27PBJKO-BHY8_5WY.js → chunk-F27PBJKO-lefHaak1.js} +1 -1
  263. package/web-shell/assets/{chunk-G27WJ6UU-Bq3iuQSE.js → chunk-G27WJ6UU-CqIxZ7qb.js} +1 -1
  264. package/web-shell/assets/{chunk-JWPE2WC7-nl0EYjjD.js → chunk-JWPE2WC7-_f_pqzn8.js} +1 -1
  265. package/web-shell/assets/{chunk-LCL6LL3I-CstAiHwj.js → chunk-LCL6LL3I-CtcdHsE7.js} +1 -1
  266. package/web-shell/assets/{chunk-POPQ4Y6H-BWSrwMPq.js → chunk-POPQ4Y6H-apS8e2Sc.js} +1 -1
  267. package/web-shell/assets/{chunk-SVP7TREG-BHoHrDvN.js → chunk-SVP7TREG-ixpYBIkx.js} +1 -1
  268. package/web-shell/assets/{chunk-XXDRQBXY-_raB2Fx7.js → chunk-XXDRQBXY-gqhlBr9W.js} +1 -1
  269. package/web-shell/assets/classDiagram-DTDB5LWJ-Dp6O5MFZ.js +1 -0
  270. package/web-shell/assets/classDiagram-v2-JRS7N3AN-Dp6O5MFZ.js +1 -0
  271. package/web-shell/assets/{cose-bilkent-JH36ORCC-DzohBTSN.js → cose-bilkent-JH36ORCC-4Lz5-xk7.js} +1 -1
  272. package/web-shell/assets/{cynefin-OW5HDTMX-DUuz4IOx.js → cynefin-OW5HDTMX-C-KBQe3G.js} +1 -1
  273. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js → cynefinDiagram-5FMLGOSQ-OwEEW2di.js} +1 -1
  274. package/web-shell/assets/{dagre-3AP2YEHR-DccvRFOk.js → dagre-3AP2YEHR-4L0doyTK.js} +1 -1
  275. package/web-shell/assets/{diagram-S7CK7UJ4-iGT749Oj.js → diagram-S7CK7UJ4-Bxg6kfGe.js} +1 -1
  276. package/web-shell/assets/{diagram-UQ7AKVKN-DO-brOdV.js → diagram-UQ7AKVKN-X3fXpkRJ.js} +1 -1
  277. package/web-shell/assets/{diagram-VSXAHHWV-BTxQOmxL.js → diagram-VSXAHHWV-Cp60T99q.js} +1 -1
  278. package/web-shell/assets/{diagram-VX7I27RA-B4qvwv51.js → diagram-VX7I27RA-CZkcFZji.js} +1 -1
  279. package/web-shell/assets/{diagram-Z3DM3KII-rBgjOTjS.js → diagram-Z3DM3KII-DvNGvUPt.js} +1 -1
  280. package/web-shell/assets/{ebnfDiagram-PWID7BFC-pm_yhGF5.js → ebnfDiagram-PWID7BFC-BTV0wWr4.js} +1 -1
  281. package/web-shell/assets/{erDiagram-SSCWMZ5O-CYu1ceNm.js → erDiagram-SSCWMZ5O-BKwQQDwu.js} +1 -1
  282. package/web-shell/assets/{flowDiagram-A5DVABFB-VaNRVW2d.js → flowDiagram-A5DVABFB-B1B0cjRi.js} +1 -1
  283. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DyvaaUFV.js → ganttDiagram-EL5Y4UJY-Ds-cB5nB.js} +1 -1
  284. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-ATr3REtt.js → gitGraphDiagram-WWUBYQGX-lZR5ShCY.js} +1 -1
  285. package/web-shell/assets/{index-C4N7bP4K.js → index-BDW1uRJf.js} +3 -3
  286. package/web-shell/assets/{index-B3YLpUKu.js → index-DgnOl4qf.js} +1 -1
  287. package/web-shell/assets/{infoDiagram-RXCK75RN-C94by8Av.js → infoDiagram-RXCK75RN-dX5l7VBF.js} +1 -1
  288. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DzjDX0-x.js → ishikawaDiagram-5VMMS53U-RkITnya1.js} +1 -1
  289. package/web-shell/assets/{journeyDiagram-EYS64GPL-BW955BgY.js → journeyDiagram-EYS64GPL-CH4R48HP.js} +1 -1
  290. package/web-shell/assets/{kanban-definition-3QL26DDD-BtbAjdCr.js → kanban-definition-3QL26DDD-DsQJ6Dum.js} +1 -1
  291. package/web-shell/assets/{layout-U3vDc3pe.js → layout-gI8CFFT8.js} +1 -1
  292. package/web-shell/assets/{linear-B5nTSs6h.js → linear-mjV1EmYH.js} +1 -1
  293. package/web-shell/assets/{mermaid.core-ezhLxuW5.js → mermaid.core-CQoFt4FL.js} +6 -6
  294. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BVcRjZNc.js → mindmap-definition-FBJOCRG2-wwJGhH6c.js} +1 -1
  295. package/web-shell/assets/{pegDiagram-XKGWAZYB-BnYXkIZM.js → pegDiagram-XKGWAZYB-ChxojIuq.js} +1 -1
  296. package/web-shell/assets/{pieDiagram-E7YTZNPT-DooJLvL9.js → pieDiagram-E7YTZNPT-BInee6Tc.js} +1 -1
  297. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-MywT58KI.js → quadrantDiagram-AXDQQJYC-DnM0GPQh.js} +1 -1
  298. package/web-shell/assets/{railroadDiagram-O6MQD6OU-kZGgDmOU.js → railroadDiagram-O6MQD6OU-a_kFvhDo.js} +1 -1
  299. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BTR494PR.js → requirementDiagram-EFPCY7ZU-D9pEqcZQ.js} +1 -1
  300. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DCC0qZFO.js → sankeyDiagram-P5KCCOFB-BgjX-_b2.js} +1 -1
  301. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DDvDBq18.js → sequenceDiagram-WJ2MYXX4-C4m5zqm7.js} +1 -1
  302. package/web-shell/assets/{sizeCapture-X5ZJPWSS-C3GSzMrx.js → sizeCapture-X5ZJPWSS-BqlkCTmX.js} +1 -1
  303. package/web-shell/assets/{stateDiagram-HBIQ2CUA-Dr4BXIdu.js → stateDiagram-HBIQ2CUA-wMOBHraJ.js} +1 -1
  304. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DkdI30zl.js +1 -0
  305. package/web-shell/assets/{swimlanes-XN3QIQJK-CTc5retR.js → swimlanes-XN3QIQJK-CC3AGYzj.js} +1 -1
  306. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C-7lW4fJ.js +8 -0
  307. package/web-shell/assets/{timeline-definition-24CTP7MA-DlCHZahl.js → timeline-definition-24CTP7MA-B3pJzxDf.js} +1 -1
  308. package/web-shell/assets/{vennDiagram-4TSXK5OY-DSEiDJ6-.js → vennDiagram-4TSXK5OY-BMoB3pI-.js} +1 -1
  309. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BSky5BAj.js → wardleyDiagram-VM6X3IG4-NzBWcgfW.js} +1 -1
  310. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-C-_l5Eqg.js → xychartDiagram-S5SC5T6Z-BU0qpycE.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
@@ -5,13 +5,18 @@ import {
5
5
  tokenLimit
6
6
  } from "./chunk-72EBG4FJ.js";
7
7
  import {
8
- AuthType,
9
8
  MODEL_GENERATION_CONFIG_FIELDS,
10
9
  PROVIDER_SOURCED_FIELDS
11
- } from "./chunk-X2SSZR6M.js";
10
+ } from "./chunk-WSZLSFAL.js";
12
11
  import {
13
12
  DEFAULT_O1CODE_MODEL
14
13
  } from "./chunk-LEXKU5FI.js";
14
+ import {
15
+ AuthType,
16
+ organizaoneLoginProvider,
17
+ organizaoneO1gwProvider,
18
+ organizaoneProvider
19
+ } from "./chunk-VTIYMCRG.js";
15
20
  import {
16
21
  createDebugLogger
17
22
  } from "./chunk-UK2KIU2V.js";
@@ -247,7 +252,7 @@ var ModelRegistry = class _ModelRegistry {
247
252
  capabilities: model.capabilities,
248
253
  authType: model.authType,
249
254
  isVision: model.capabilities?.vision ?? false,
250
- contextWindowSize: model.generationConfig.contextWindowSize ?? tokenLimit(model.id),
255
+ contextWindowSize: model.generationConfig.contextWindowSize ?? (model.capabilities.gateway ? void 0 : tokenLimit(model.id)),
251
256
  // `modalities` is auto-filled in `resolveModelConfig`, so it is
252
257
  // always defined on `ResolvedModelConfig` — no fallback needed here.
253
258
  modalities: model.generationConfig.modalities,
@@ -311,7 +316,7 @@ var ModelRegistry = class _ModelRegistry {
311
316
  resolveModelConfig(config, authType) {
312
317
  this.validateModelConfig(config, authType);
313
318
  const generationConfig = { ...config.generationConfig ?? {} };
314
- if (generationConfig.modalities === void 0 || shouldUseCanonicalModalities(config.id)) {
319
+ if (generationConfig.modalities === void 0 || !config.capabilities?.gateway && shouldUseCanonicalModalities(config.id)) {
315
320
  generationConfig.modalities = defaultModalities(config.id);
316
321
  }
317
322
  return {
@@ -1558,7 +1563,7 @@ function modelsOf(providers) {
1558
1563
  __name(modelsOf, "modelsOf");
1559
1564
  async function retireReplacedLogins(before, after, keptCredentialId, credentials, forgetO1Connect) {
1560
1565
  try {
1561
- const { findProviderByCredentials: findProviderByCredentials2 } = await import("./all-providers-67KTP3MN.js");
1566
+ const { findProviderByCredentials: findProviderByCredentials2 } = await import("./all-providers-HWBWMDS4.js");
1562
1567
  const credentialIds = /* @__PURE__ */ __name((model) => {
1563
1568
  const preset = findProviderByCredentials2(model.baseUrl, model.envKey);
1564
1569
  return [
@@ -1593,7 +1598,7 @@ async function retireReplacedLogins(before, after, keptCredentialId, credentials
1593
1598
  }
1594
1599
  __name(retireReplacedLogins, "retireReplacedLogins");
1595
1600
  async function forgetSavedO1Connect() {
1596
- const { forgetO1Connect } = await import("./session-FEM6CGKX.js");
1601
+ const { forgetO1Connect } = await import("./session-XCQPLG6U.js");
1597
1602
  await forgetO1Connect();
1598
1603
  }
1599
1604
  __name(forgetSavedO1Connect, "forgetSavedO1Connect");
@@ -3635,92 +3640,6 @@ var openaiProvider = {
3635
3640
  uiGroup: "apiKey"
3636
3641
  };
3637
3642
 
3638
- // packages/core/src/providers/presets/organizaone.ts
3639
- init_esbuild_shims();
3640
-
3641
- // packages/core/src/generated/brand.ts
3642
- init_esbuild_shims();
3643
- var BRAND = {
3644
- productName: "o1-code",
3645
- displayName: "O1-Code",
3646
- organization: "OrganizaOne",
3647
- repoUrl: "https://github.com/organizaone/o1-code",
3648
- coAuthorEmail: "o1-code@organizaone.com",
3649
- userAgent: "O1Code"
3650
- };
3651
-
3652
- // packages/core/src/providers/presets/organizaone.ts
3653
- var ORGANIZAONE_ANTHROPIC_BASE_URL = "https://api.organizaone.com";
3654
- var ORGANIZAONE_OPENAI_BASE_URL = "https://api.organizaone.com/v1";
3655
- var ORGANIZAONE_ENV_KEY = "ORGANIZAONE_API_KEY";
3656
- var ORGANIZAONE_HOST = new URL(ORGANIZAONE_ANTHROPIC_BASE_URL).hostname;
3657
- function isOrganizaOneBaseUrl(baseUrl) {
3658
- if (!baseUrl) return false;
3659
- try {
3660
- return new URL(baseUrl).hostname.toLowerCase() === ORGANIZAONE_HOST;
3661
- } catch {
3662
- return false;
3663
- }
3664
- }
3665
- __name(isOrganizaOneBaseUrl, "isOrganizaOneBaseUrl");
3666
- function reachesOrganizaOne(config) {
3667
- return config.connection === "o1-connect" || isOrganizaOneBaseUrl(config.baseUrl);
3668
- }
3669
- __name(reachesOrganizaOne, "reachesOrganizaOne");
3670
- var ORGANIZAONE_CLIENT_HEADERS = {
3671
- "X-Title": BRAND.productName
3672
- };
3673
- var organizaoneProvider = {
3674
- id: "organizaone",
3675
- label: "OrganizaOne",
3676
- description: "Connect to OrganizaOne with your key",
3677
- protocol: "anthropic" /* USE_ANTHROPIC */,
3678
- protocolOptions: ["anthropic" /* USE_ANTHROPIC */, "openai" /* USE_OPENAI */],
3679
- baseUrlByProtocol: {
3680
- ["anthropic" /* USE_ANTHROPIC */]: ORGANIZAONE_ANTHROPIC_BASE_URL,
3681
- ["openai" /* USE_OPENAI */]: ORGANIZAONE_OPENAI_BASE_URL
3682
- },
3683
- envKey: ORGANIZAONE_ENV_KEY,
3684
- apiKeyPlaceholder: "device token from the OrganizaOne console",
3685
- // Both protocols list the account's models at /v1/models.
3686
- supportsModelDiscovery: true,
3687
- modelNamePrefix: "OrganizaOne",
3688
- uiGroup: "organizaone"
3689
- };
3690
- var organizaoneLoginProvider = {
3691
- id: "organizaone-login",
3692
- label: "Sign in with your account",
3693
- description: "Approve this device in your browser; the models come from OrganizaOne",
3694
- protocol: "anthropic" /* USE_ANTHROPIC */,
3695
- protocolOptions: ["anthropic" /* USE_ANTHROPIC */, "openai" /* USE_OPENAI */],
3696
- baseUrlByProtocol: {
3697
- ["anthropic" /* USE_ANTHROPIC */]: ORGANIZAONE_ANTHROPIC_BASE_URL,
3698
- ["openai" /* USE_OPENAI */]: ORGANIZAONE_OPENAI_BASE_URL
3699
- },
3700
- envKey: ORGANIZAONE_ENV_KEY,
3701
- supportsModelDiscovery: true,
3702
- modelNamePrefix: "OrganizaOne",
3703
- uiGroup: "organizaone",
3704
- signIn: "organizaone-device",
3705
- credentialId: "organizaone"
3706
- };
3707
- var organizaoneO1gwProvider = {
3708
- id: "organizaone-o1gw",
3709
- label: "o1-gateway device code",
3710
- description: "Paste an o1-gateway connection code",
3711
- protocol: "anthropic" /* USE_ANTHROPIC */,
3712
- protocolOptions: ["anthropic" /* USE_ANTHROPIC */, "openai" /* USE_OPENAI */],
3713
- baseUrlByProtocol: {
3714
- ["anthropic" /* USE_ANTHROPIC */]: ORGANIZAONE_ANTHROPIC_BASE_URL,
3715
- ["openai" /* USE_OPENAI */]: ORGANIZAONE_OPENAI_BASE_URL
3716
- },
3717
- envKey: "",
3718
- supportsModelDiscovery: true,
3719
- modelNamePrefix: "OrganizaOne",
3720
- uiGroup: "organizaone",
3721
- connection: "o1-connect"
3722
- };
3723
-
3724
3643
  // packages/core/src/providers/presets/ollama.ts
3725
3644
  init_esbuild_shims();
3726
3645
 
@@ -3969,15 +3888,6 @@ export {
3969
3888
  moonshotProvider,
3970
3889
  modelscopeProvider,
3971
3890
  openaiProvider,
3972
- BRAND,
3973
- ORGANIZAONE_ANTHROPIC_BASE_URL,
3974
- ORGANIZAONE_ENV_KEY,
3975
- isOrganizaOneBaseUrl,
3976
- reachesOrganizaOne,
3977
- ORGANIZAONE_CLIENT_HEADERS,
3978
- organizaoneProvider,
3979
- organizaoneLoginProvider,
3980
- organizaoneO1gwProvider,
3981
3891
  probeLocalServers,
3982
3892
  ollamaProvider,
3983
3893
  lmstudioProvider,
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  CoreToolScheduler
5
- } from "./chunk-K44D6MLS.js";
5
+ } from "./chunk-3R3BFEXO.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-S2467S6L.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Z2IHOXIK.js";
10
10
  import {
11
11
  fileExists
12
- } from "./chunk-ROO6F2BT.js";
12
+ } from "./chunk-H5L5E5NI.js";
13
13
  import {
14
14
  createDebugLogger
15
15
  } from "./chunk-UK2KIU2V.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  getUserSettingsPath,
5
5
  v1ToV2Migration
6
- } from "./chunk-UUAWQAX6.js";
6
+ } from "./chunk-KLG5EXFK.js";
7
7
  import {
8
8
  getSystemDefaultsPath,
9
9
  getSystemSettingsPath
@@ -13,7 +13,7 @@ import {
13
13
  TrustLevel,
14
14
  getExplicitTrustLevel,
15
15
  getTrustedFoldersPath
16
- } from "./chunk-LZCNINKB.js";
16
+ } from "./chunk-5YC3SA73.js";
17
17
  import {
18
18
  arePathsEquivalent
19
19
  } from "./chunk-MXCWSDSC.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-YCZIOHKD.js";
23
23
  import {
24
24
  ideContextStore
25
- } from "./chunk-K44D6MLS.js";
25
+ } from "./chunk-3R3BFEXO.js";
26
26
  import {
27
27
  init_esbuild_shims
28
28
  } from "./chunk-S2467S6L.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  SkillError
5
- } from "./chunk-DNFPKNWM.js";
5
+ } from "./chunk-RWUZRVUT.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-S2467S6L.js";
@@ -1,17 +1,17 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ import {
4
+ o1CodeUserAgent
5
+ } from "./chunk-EYKEQPKF.js";
3
6
  import {
4
7
  fetchWithPolicy
5
- } from "./chunk-GM2WNDZ5.js";
8
+ } from "./chunk-YPTR7ZFB.js";
6
9
  import {
7
- applyDynamicHeaderValues,
8
- hasDynamicPlaceholder,
9
- warnIfDynamicHeadersDisabled
10
- } from "./chunk-TZ7PFWVT.js";
10
+ GATEWAY_OPERATION_PURPOSES
11
+ } from "./chunk-WXIQKOFD.js";
11
12
  import {
12
- BRAND,
13
13
  ORGANIZAONE_CLIENT_HEADERS
14
- } from "./chunk-AFXPLQYA.js";
14
+ } from "./chunk-VTIYMCRG.js";
15
15
  import {
16
16
  init_esbuild_shims
17
17
  } from "./chunk-S2467S6L.js";
@@ -19,20 +19,8 @@ import {
19
19
  __name
20
20
  } from "./chunk-J2S4EL5Y.js";
21
21
 
22
- // packages/core/src/core/outbound-fetch.ts
23
- init_esbuild_shims();
24
-
25
22
  // packages/core/src/providers/organizaone-limits.ts
26
23
  init_esbuild_shims();
27
-
28
- // packages/core/src/providers/client-identity.ts
29
- init_esbuild_shims();
30
- function o1CodeUserAgent(version) {
31
- return `${BRAND.userAgent}/${version || "unknown"} (${process.platform}; ${process.arch})`;
32
- }
33
- __name(o1CodeUserAgent, "o1CodeUserAgent");
34
-
35
- // packages/core/src/providers/organizaone-limits.ts
36
24
  var KEY_TIMEOUT_MS = 5e3;
37
25
  var KEY_MAX_BYTES = 256 * 1024;
38
26
  var DURATION_PART = /(\d+(?:\.\d+)?)(ms|h|m|s)/g;
@@ -233,9 +221,17 @@ function parseKeyInfo(body) {
233
221
  const data = body["data"];
234
222
  const limits = isRecord(data["limits"]) ? data["limits"] : void 0;
235
223
  const rawScopes = limits?.["scopes"];
236
- if (!Array.isArray(rawScopes)) return null;
224
+ const operations = data["conversation_operations"];
225
+ const announcedPurposes = isRecord(operations) ? operations["purposes"] : void 0;
226
+ const conversationOperations = isRecord(operations) && operations["version"] === 1 && Array.isArray(announcedPurposes) ? {
227
+ version: 1,
228
+ purposes: GATEWAY_OPERATION_PURPOSES.filter(
229
+ (purpose) => announcedPurposes.includes(purpose)
230
+ )
231
+ } : void 0;
232
+ if (!Array.isArray(rawScopes) && !conversationOperations) return null;
237
233
  const scopes = [];
238
- for (const entry of rawScopes) {
234
+ for (const entry of Array.isArray(rawScopes) ? rawScopes : []) {
239
235
  if (!isRecord(entry) || !str(entry["scope"])) continue;
240
236
  scopes.push({
241
237
  scope: entry["scope"],
@@ -258,6 +254,7 @@ function parseKeyInfo(body) {
258
254
  ...str(limits?.["day_reset"]) ? { dayReset: str(limits?.["day_reset"]) } : {},
259
255
  ...str(limits?.["month_reset"]) ? { monthReset: str(limits?.["month_reset"]) } : {},
260
256
  scopes,
257
+ ...conversationOperations ? { conversationOperations } : {},
261
258
  plan: readPlan(data["plan"]),
262
259
  own: own ? {
263
260
  enabled: own["enabled"] === true,
@@ -309,52 +306,14 @@ async function fetchKeyInfo({
309
306
  }
310
307
  __name(fetchKeyInfo, "fetchKeyInfo");
311
308
 
312
- // packages/core/src/core/outbound-fetch.ts
313
- function wrapFetchWithDynamicHeaders(baseFetch, config, customHeaders) {
314
- const fetchLike = baseFetch;
315
- const expandsHeaders = Object.values(customHeaders ?? {}).some(
316
- (value) => typeof value === "string" && hasDynamicPlaceholder(value)
317
- );
318
- if (expandsHeaders) warnIfDynamicHeadersDisabled(customHeaders, config);
319
- const wrapped = /* @__PURE__ */ __name(async (input, init) => {
320
- if (!expandsHeaders) return fetchLike(input, init);
321
- const headers = new Headers(
322
- input instanceof Request ? input.headers : void 0
323
- );
324
- new Headers(init?.headers).forEach((value, key) => headers.set(key, value));
325
- applyDynamicHeaderValues(headers, config);
326
- return fetchLike(input, { ...init, headers });
327
- }, "wrapped");
328
- return wrapped;
329
- }
330
- __name(wrapFetchWithDynamicHeaders, "wrapFetchWithDynamicHeaders");
331
- function buildOutboundFetch(runtimeFetch, config, customHeaders, options = {}) {
332
- const baseFetch = runtimeFetch ?? globalThis.fetch;
333
- const wrapped = wrapFetchWithDynamicHeaders(baseFetch, config, customHeaders);
334
- if (!options.recordRateLimits) return wrapped;
335
- const recording = /* @__PURE__ */ __name(async (input, init) => {
336
- const response = await wrapped(input, init);
337
- recordRateLimitHeaders(response.headers);
338
- return response;
339
- }, "recording");
340
- return recording;
341
- }
342
- __name(buildOutboundFetch, "buildOutboundFetch");
343
-
344
309
  export {
345
- o1CodeUserAgent,
310
+ recordRateLimitHeaders,
346
311
  getLatestRateLimits,
347
312
  onLowRateLimit,
348
313
  KEY_LIMIT_USAGE,
349
314
  OWN_CAP_USAGE,
350
- fetchKeyInfo,
351
- buildOutboundFetch
315
+ fetchKeyInfo
352
316
  };
353
- /**
354
- * @license
355
- * Copyright 2026 o1-code contributors
356
- * SPDX-License-Identifier: Apache-2.0
357
- */
358
317
  /**
359
318
  * @license
360
319
  * Copyright 2026 o1-code contributors
@@ -364,8 +323,3 @@ export {
364
323
  * `GET /v1/key` on demand, and OpenAI's `x-ratelimit-*` headers on every
365
324
  * admitted request, which name the account's tightest windows.
366
325
  */
367
- /**
368
- * @license
369
- * Copyright 2025 Qwen
370
- * SPDX-License-Identifier: Apache-2.0
371
- */
@@ -0,0 +1,300 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ anthropicSdkBaseUrl
5
+ } from "./chunk-2QYMJSSC.js";
6
+ import {
7
+ o1CodeUserAgent
8
+ } from "./chunk-EYKEQPKF.js";
9
+ import {
10
+ fetchWithPolicy
11
+ } from "./chunk-YPTR7ZFB.js";
12
+ import {
13
+ REASONING_EFFORT_TIERS,
14
+ isReasoningEffort
15
+ } from "./chunk-72EBG4FJ.js";
16
+ import {
17
+ ORGANIZAONE_CLIENT_HEADERS,
18
+ isOrganizaOneBaseUrl
19
+ } from "./chunk-VTIYMCRG.js";
20
+ import {
21
+ init_esbuild_shims
22
+ } from "./chunk-S2467S6L.js";
23
+ import {
24
+ __name
25
+ } from "./chunk-J2S4EL5Y.js";
26
+
27
+ // packages/core/src/providers/model-discovery.ts
28
+ init_esbuild_shims();
29
+ var DISCOVERY_TIMEOUT_MS = 5e3;
30
+ var DISCOVERY_MAX_BYTES = 1024 * 1024;
31
+ var MAX_MODEL_ID_LENGTH = 256;
32
+ var UNSAFE_MODEL_ID_CHARS = /[,\p{C}\p{Zl}\p{Zp}]/u;
33
+ function readGatewayMetadata(item) {
34
+ const entry = item;
35
+ if (typeof entry["id"] !== "string" || !entry["id"].startsWith("o1gw/"))
36
+ return void 0;
37
+ const record = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {}, "record");
38
+ const text = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 200 && !/[\p{C}\p{Zl}\p{Zp}]/u.test(value) ? value : void 0, "text");
39
+ const strings = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter((item2) => typeof item2 === "string") : [], "strings");
40
+ const account = record(entry["provider_account"]);
41
+ const group = record(entry["provider_group"]);
42
+ const top = record(entry["top_provider"]);
43
+ return {
44
+ nativeModel: text(entry["native_model"]),
45
+ ...typeof account["provider"] === "string" && positiveInteger(account["id"]) ? {
46
+ account: {
47
+ provider: account["provider"],
48
+ id: account["id"],
49
+ publicName: text(account["public_name"])
50
+ }
51
+ } : {},
52
+ ...typeof group["provider"] === "string" && positiveInteger(group["id"]) ? {
53
+ group: {
54
+ provider: group["provider"],
55
+ id: group["id"],
56
+ publicName: text(group["public_name"]),
57
+ continuationPolicy: text(group["continuation_policy"]),
58
+ continuationPolicies: strings(group["continuation_policies"]),
59
+ automaticConditions: strings(group["automatic_conditions"])
60
+ }
61
+ } : {},
62
+ contextTokens: positiveInteger(entry["context_length"]) ?? positiveInteger(top["context_length"]),
63
+ inputTokens: positiveInteger(entry["max_input_tokens"]) ?? positiveInteger(top["max_prompt_tokens"]),
64
+ outputTokens: positiveInteger(top["max_completion_tokens"])
65
+ };
66
+ }
67
+ __name(readGatewayMetadata, "readGatewayMetadata");
68
+ function positiveInteger(value) {
69
+ return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : void 0;
70
+ }
71
+ __name(positiveInteger, "positiveInteger");
72
+ function readLimits(item) {
73
+ const { context_length, architecture, top_provider } = item;
74
+ const contextWindowSize = positiveInteger(context_length) ?? positiveInteger(
75
+ top_provider?.context_length
76
+ );
77
+ const maxOutputTokens = positiveInteger(top_provider?.max_completion_tokens);
78
+ const inputs = architecture?.input_modalities;
79
+ const modalities = Array.isArray(inputs) ? {
80
+ image: inputs.includes("image"),
81
+ pdf: inputs.includes("file"),
82
+ audio: inputs.includes("audio"),
83
+ video: inputs.includes("video")
84
+ } : void 0;
85
+ return {
86
+ ...contextWindowSize ? { contextWindowSize } : {},
87
+ ...modalities ? { modalities } : {},
88
+ ...maxOutputTokens ? { maxOutputTokens } : {}
89
+ };
90
+ }
91
+ __name(readLimits, "readLimits");
92
+ function isClaudeOwned(item) {
93
+ const owner = item.owned_by;
94
+ return typeof owner === "string" && /^claude(?:$|-)/i.test(owner);
95
+ }
96
+ __name(isClaudeOwned, "isClaudeOwned");
97
+ function readReasoning(item, strictReasoning = false) {
98
+ const declared = item.reasoning;
99
+ let efforts = [];
100
+ let defaultEffort;
101
+ if (declared && typeof declared === "object") {
102
+ const { efforts: listed, default: preset } = declared;
103
+ if (Array.isArray(listed)) {
104
+ efforts = REASONING_EFFORT_TIERS.filter((tier) => listed.includes(tier));
105
+ }
106
+ if (isReasoningEffort(preset) && efforts.includes(preset)) {
107
+ defaultEffort = preset;
108
+ }
109
+ } else if (!strictReasoning && isClaudeOwned(item) && !readGatewayMetadata(item)) {
110
+ efforts = [...REASONING_EFFORT_TIERS];
111
+ }
112
+ if (efforts.length === 0) return void 0;
113
+ return {
114
+ thinking: true,
115
+ efforts,
116
+ ...defaultEffort ? { defaultEffort } : {},
117
+ disableField: "reasoning_effort"
118
+ };
119
+ }
120
+ __name(readReasoning, "readReasoning");
121
+ function readModels(value, strictReasoning = false) {
122
+ if (!value || typeof value !== "object" || !("data" in value)) {
123
+ return null;
124
+ }
125
+ const data = value.data;
126
+ if (!Array.isArray(data)) {
127
+ return null;
128
+ }
129
+ const models = [];
130
+ const seen = /* @__PURE__ */ new Set();
131
+ for (const item of data) {
132
+ if (!item || typeof item !== "object" || !("id" in item)) {
133
+ return null;
134
+ }
135
+ const id = item.id;
136
+ if (typeof id !== "string") {
137
+ return null;
138
+ }
139
+ const trimmedId = id.trim();
140
+ if (trimmedId && trimmedId.length <= MAX_MODEL_ID_LENGTH && !UNSAFE_MODEL_ID_CHARS.test(trimmedId) && !seen.has(trimmedId)) {
141
+ seen.add(trimmedId);
142
+ const created = item.created;
143
+ const creationTime = typeof created === "number" && Number.isFinite(created) && created >= 0 ? created : void 0;
144
+ const reasoning = readReasoning(item, strictReasoning);
145
+ const gateway = readGatewayMetadata(item);
146
+ models.push({
147
+ id: trimmedId,
148
+ ...gateway ? { gateway } : {},
149
+ ...creationTime === void 0 ? {} : { created: creationTime },
150
+ ...reasoning ? { reasoning } : {},
151
+ ...readLimits(item)
152
+ });
153
+ }
154
+ }
155
+ return models.length > 0 ? models : null;
156
+ }
157
+ __name(readModels, "readModels");
158
+ function readGeminiModels(value) {
159
+ if (!value || typeof value !== "object" || !("models" in value)) {
160
+ return null;
161
+ }
162
+ const list = value.models;
163
+ if (!Array.isArray(list)) {
164
+ return null;
165
+ }
166
+ const data = [];
167
+ for (const item of list) {
168
+ if (!item || typeof item !== "object") return null;
169
+ const { name, supportedGenerationMethods } = item;
170
+ if (typeof name !== "string") return null;
171
+ if (Array.isArray(supportedGenerationMethods) && supportedGenerationMethods.includes("generateContent")) {
172
+ data.push({
173
+ id: name.startsWith("models/") ? name.slice("models/".length) : name
174
+ });
175
+ }
176
+ }
177
+ return readModels({ data });
178
+ }
179
+ __name(readGeminiModels, "readGeminiModels");
180
+ function mergeModelSpecs(discoveredModels, staticModels) {
181
+ const staticModelsById = new Map(
182
+ staticModels.map((model) => [model.id, model])
183
+ );
184
+ const orderedModels = [...discoveredModels];
185
+ if (orderedModels.every((model) => model.created !== void 0)) {
186
+ orderedModels.sort(
187
+ (left, right) => (right.created ?? 0) - (left.created ?? 0)
188
+ );
189
+ }
190
+ return orderedModels.map(
191
+ ({ id, reasoning, gateway, created: _created, ...limits }) => ({
192
+ ...staticModelsById.get(id),
193
+ id,
194
+ ...reasoning || gateway ? {
195
+ capabilities: {
196
+ ...staticModelsById.get(id)?.capabilities,
197
+ ...reasoning ? { reasoning } : {},
198
+ ...gateway ? { gateway } : {}
199
+ }
200
+ } : {},
201
+ ...limits
202
+ })
203
+ );
204
+ }
205
+ __name(mergeModelSpecs, "mergeModelSpecs");
206
+ var ANTHROPIC_VERSION = "2023-06-01";
207
+ function modelListRequest(protocol, baseUrl, apiKey, clientVersion) {
208
+ const request = baseModelListRequest(protocol, baseUrl, apiKey);
209
+ if (isOrganizaOneBaseUrl(baseUrl)) {
210
+ request.headers = {
211
+ ...request.headers,
212
+ "User-Agent": o1CodeUserAgent(clientVersion),
213
+ ...ORGANIZAONE_CLIENT_HEADERS
214
+ };
215
+ }
216
+ return request;
217
+ }
218
+ __name(modelListRequest, "modelListRequest");
219
+ function baseModelListRequest(protocol, baseUrl, apiKey) {
220
+ const base = baseUrl.replace(/\/+$/, "");
221
+ if (protocol === "gemini") {
222
+ return {
223
+ url: `${base}/v1beta/models`,
224
+ headers: { Accept: "application/json", "x-goog-api-key": apiKey }
225
+ };
226
+ }
227
+ if (protocol === "anthropic") {
228
+ return {
229
+ url: `${anthropicSdkBaseUrl(base)}/v1/models`,
230
+ headers: {
231
+ Accept: "application/json",
232
+ "x-api-key": apiKey,
233
+ "anthropic-version": ANTHROPIC_VERSION
234
+ }
235
+ };
236
+ }
237
+ return {
238
+ url: `${base}/models`,
239
+ headers: {
240
+ Accept: "application/json",
241
+ Authorization: `Bearer ${apiKey}`
242
+ }
243
+ };
244
+ }
245
+ __name(baseModelListRequest, "baseModelListRequest");
246
+ async function checkProviderKey({
247
+ gateway,
248
+ protocol,
249
+ baseUrl,
250
+ apiKey,
251
+ staticModels,
252
+ signal,
253
+ clientVersion
254
+ }) {
255
+ const normalizedBaseUrl = baseUrl.trim();
256
+ const normalizedApiKey = apiKey.trim();
257
+ if (!normalizedBaseUrl || !normalizedApiKey) return { status: "unavailable" };
258
+ const request = modelListRequest(
259
+ protocol,
260
+ normalizedBaseUrl,
261
+ normalizedApiKey,
262
+ clientVersion
263
+ );
264
+ try {
265
+ const result = await fetchWithPolicy(request.url, {
266
+ timeoutMs: DISCOVERY_TIMEOUT_MS,
267
+ maxBytes: DISCOVERY_MAX_BYTES,
268
+ maxRedirects: 2,
269
+ headers: request.headers,
270
+ signal
271
+ });
272
+ if (result.kind !== "response") return { status: "unavailable" };
273
+ if (result.status === 401 || result.status === 403 || // Gemini answers an invalid key with 400 API_KEY_INVALID.
274
+ protocol === "gemini" && result.status === 400) {
275
+ return { status: "rejected", httpStatus: result.status };
276
+ }
277
+ if (result.status < 200 || result.status >= 300) {
278
+ return { status: "unavailable" };
279
+ }
280
+ const body = JSON.parse(result.body.toString("utf8"));
281
+ const models = protocol === "gemini" ? readGeminiModels(body) : readModels(
282
+ body,
283
+ gateway === true || isOrganizaOneBaseUrl(normalizedBaseUrl)
284
+ );
285
+ if (!models) return { status: "unavailable" };
286
+ return { status: "ok", models: mergeModelSpecs(models, staticModels) };
287
+ } catch {
288
+ return { status: "unavailable" };
289
+ }
290
+ }
291
+ __name(checkProviderKey, "checkProviderKey");
292
+
293
+ export {
294
+ checkProviderKey
295
+ };
296
+ /**
297
+ * @license
298
+ * Copyright 2026 Qwen Team
299
+ * SPDX-License-Identifier: Apache-2.0
300
+ */
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  readRuntimeStatus
5
- } from "./chunk-JHRVJBV5.js";
5
+ } from "./chunk-GM7RKZZ4.js";
6
6
  import {
7
7
  atomicWriteJSON
8
8
  } from "./chunk-EPJAMNLS.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  require_src as require_src2,
5
5
  require_src3
6
- } from "./chunk-M6C3BI2P.js";
6
+ } from "./chunk-AMFFYQUN.js";
7
7
  import {
8
8
  require_src
9
9
  } from "./chunk-EPSJPAHV.js";