@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.
- package/bundled/qc-helper/docs/configuration/model-providers.md +69 -0
- package/chunks/{MaxSizedBox-H6TTYZHO.js → MaxSizedBox-HMZHVBB4.js} +66 -60
- package/chunks/{StandaloneSessionPicker-G5FLW7TR.js → StandaloneSessionPicker-P4GOMYHR.js} +87 -81
- package/chunks/{acp-subagent-executor-PFIDAFOD.js → acp-subagent-executor-3IS4UQXS.js} +70 -64
- package/chunks/{acpAgent-4PUZMTSI.js → acpAgent-RUS62IJ2.js} +206 -199
- package/chunks/{agent-XS2VGVGO.js → agent-WO7H3FRF.js} +49 -44
- package/chunks/{agent-headless-474ZYFSJ.js → agent-headless-DQHOJM3J.js} +49 -44
- package/chunks/{all-providers-67KTP3MN.js → all-providers-AGB7PSE7.js} +7 -5
- package/chunks/{anthropicContentGenerator-RTEGRYPV.js → anthropicContentGenerator-SVXJ2WC5.js} +45 -31
- package/chunks/{bridge-HPTKSOIC.js → bridge-6DNUXTIG.js} +71 -65
- package/chunks/bwrap-execution-A5QZJK2I.js +2 -2
- package/chunks/{chunk-BPZ6GQBH.js → chunk-27WKLITY.js} +2 -2
- package/chunks/{chunk-FXSQ3EB2.js → chunk-2HSMDGHO.js} +3 -3
- package/chunks/{chunk-PUBQDZLP.js → chunk-2NTOADNA.js} +1 -1
- package/chunks/{chunk-ASQLIG2L.js → chunk-2OEBEF5L.js} +13 -13
- package/chunks/{chunk-ZPJTYCOY.js → chunk-2OUOX7LX.js} +2 -2
- package/chunks/{chunk-FI7LCEJ7.js → chunk-3KNM7K53.js} +77 -77
- package/chunks/{chunk-LSY2TNVO.js → chunk-3MWH2YYG.js} +4 -4
- package/chunks/{chunk-44YL3A4I.js → chunk-3SIUBEAC.js} +1 -1
- package/chunks/{chunk-YRKUDWZP.js → chunk-4HQ4I3PR.js} +2 -2
- package/chunks/{chunk-XA3N5TO5.js → chunk-4KLFLD6W.js} +1 -1
- package/chunks/{chunk-54DBAFQ2.js → chunk-4UC6NODS.js} +1 -1
- package/chunks/{chunk-JFKJW3BP.js → chunk-4WZ25EWZ.js} +1 -1
- package/chunks/{chunk-OJ2CVNVP.js → chunk-5T7YYYZN.js} +1 -1
- package/chunks/{chunk-NUF3FLRS.js → chunk-5TGVTMA4.js} +4 -4
- package/chunks/{chunk-SLH747HE.js → chunk-5WCEM6DZ.js} +1 -1
- package/chunks/{chunk-EU7GXSE7.js → chunk-6HNVIHAF.js} +11 -11
- package/chunks/{chunk-VMLVJOQL.js → chunk-6IAICUFQ.js} +2 -2
- package/chunks/{chunk-WCPTHHFI.js → chunk-6WR3DWHA.js} +1 -1
- package/chunks/{chunk-FLIJQ7IC.js → chunk-6XQREQ7X.js} +33 -258
- package/chunks/{chunk-6N5O34AT.js → chunk-7Q3WUUDP.js} +13 -13
- package/chunks/{chunk-COBKDL54.js → chunk-7TGDEUSS.js} +3 -3
- package/chunks/{chunk-Y34E6WY7.js → chunk-7UCLXR66.js} +19 -19
- package/chunks/{chunk-32722SNN.js → chunk-A7JWEUTB.js} +1 -1
- package/chunks/{chunk-LO6VR36F.js → chunk-AJDAOH4D.js} +1 -1
- package/chunks/{chunk-ROE3Y42D.js → chunk-AW4B6RTB.js} +4 -4
- package/chunks/{chunk-SU6K5JRJ.js → chunk-AXM2QH6N.js} +1 -1
- package/chunks/{chunk-ZUBCKLDM.js → chunk-B3VFKGW7.js} +16 -12
- package/chunks/{chunk-IFJ3RGFY.js → chunk-B4CCJMG6.js} +20 -66
- package/chunks/chunk-B4K3VBFF.js +300 -0
- package/chunks/{chunk-Q6IDKPJW.js → chunk-B5GTZ6E6.js} +1 -1
- package/chunks/{chunk-A55LB5TM.js → chunk-BGAORGSF.js} +1 -1
- package/chunks/{chunk-62T6BNFW.js → chunk-BH64NQFS.js} +6 -6
- package/chunks/{chunk-LWQVH7RG.js → chunk-C6HK75MO.js} +3 -3
- package/chunks/{chunk-FT7HBT5S.js → chunk-CADCX42P.js} +2 -2
- package/chunks/{chunk-YXTBS65N.js → chunk-CCC24CXE.js} +9 -2
- package/chunks/{chunk-K44D6MLS.js → chunk-CMDJL3HC.js} +425 -341
- package/chunks/{chunk-IRP7MQRE.js → chunk-CMPS6GD5.js} +11 -11
- package/chunks/{chunk-YEG2VKSR.js → chunk-CNXCYQSU.js} +13 -13
- package/chunks/chunk-CNXTYK25.js +62 -0
- package/chunks/{chunk-6XZZIE7V.js → chunk-CPYRGB5A.js} +7 -7
- package/chunks/{chunk-I3OOIGJI.js → chunk-DCGCG4T6.js} +3 -3
- package/chunks/{chunk-EOIZZLQD.js → chunk-DCMEEISM.js} +1 -1
- package/chunks/{chunk-3OLRYJYM.js → chunk-DS3A6UN5.js} +10 -10
- package/chunks/{chunk-OJAGNSHH.js → chunk-EE35GR3R.js} +5 -5
- package/chunks/chunk-EYKEQPKF.js +27 -0
- package/chunks/{chunk-PT32HMCN.js → chunk-F5GPRGLO.js} +1 -1
- package/chunks/{chunk-TZ7PFWVT.js → chunk-F7SCCXXH.js} +2 -92
- package/chunks/{chunk-SHOCUW3R.js → chunk-FFDLG4P3.js} +3 -3
- package/chunks/{chunk-EVIGOLAL.js → chunk-G376S7VI.js} +1 -1
- package/chunks/{chunk-RBZFW23K.js → chunk-GBAPQSEP.js} +7 -7
- package/chunks/{chunk-EUIN36RL.js → chunk-GLSFB2Z7.js} +1 -1
- package/chunks/{chunk-JHRVJBV5.js → chunk-GM7RKZZ4.js} +4 -4
- package/chunks/{chunk-CQ33RPSY.js → chunk-HAFQUJ2R.js} +15 -15
- package/chunks/{chunk-73K63OUJ.js → chunk-HGY3PIN4.js} +8 -8
- package/chunks/{chunk-7FFS7D63.js → chunk-HKOWTL7X.js} +4 -4
- package/chunks/{chunk-IC57EPC7.js → chunk-HQROPADY.js} +18 -0
- package/chunks/{chunk-AFXPLQYA.js → chunk-I4WCGUHX.js} +11 -101
- package/chunks/{chunk-B4WT73ZC.js → chunk-INXZWNOV.js} +2 -2
- package/chunks/{chunk-SKQECA3Y.js → chunk-IR2EWI3F.js} +1 -1
- package/chunks/{chunk-GW7QA3HN.js → chunk-IULGJTBN.js} +3 -3
- package/chunks/{chunk-F5JXVZVJ.js → chunk-J6IO5FRE.js} +2 -2
- package/chunks/{chunk-SN3M4SEK.js → chunk-JTL36LF7.js} +51 -49
- package/chunks/{chunk-4ABCTDVK.js → chunk-JVRNE7NT.js} +8 -8
- package/chunks/{chunk-35IZ2AEV.js → chunk-JYT4QT7G.js} +14 -14
- package/chunks/{chunk-HEFYYQ5F.js → chunk-KM6V7YUD.js} +7 -7
- package/chunks/{chunk-6MXIK5CK.js → chunk-KPPSQ5EU.js} +1 -1
- package/chunks/{chunk-TAHFZVR5.js → chunk-KXDR4O5J.js} +8 -8
- package/chunks/{chunk-LSRS3YN5.js → chunk-KZCG5HAI.js} +1 -1
- package/chunks/{chunk-2F3GZ6WG.js → chunk-LMFAYXBU.js} +1 -1
- package/chunks/{chunk-UUAWQAX6.js → chunk-LNRMJR3C.js} +5 -5
- package/chunks/{chunk-ZBP2DKL7.js → chunk-MEBXT3L3.js} +5 -5
- package/chunks/{chunk-MVWEGM3N.js → chunk-MRAQKHJP.js} +1 -1
- package/chunks/{chunk-JKXGHDQ2.js → chunk-MRDYGSEU.js} +1 -1
- package/chunks/{chunk-3J63UVMG.js → chunk-NRCAQMQE.js} +1 -1
- package/chunks/{chunk-X2SSZR6M.js → chunk-O6V4DKZY.js} +34 -28
- package/chunks/{chunk-7ADYEHKM.js → chunk-OCGMQ7V4.js} +1 -1
- package/chunks/{chunk-SPRNR2PU.js → chunk-ODPTXM6X.js} +2 -2
- package/chunks/{chunk-D24NFPPO.js → chunk-OFZASMA6.js} +7 -5
- package/chunks/{chunk-C6O3NG4T.js → chunk-OXIUXVOT.js} +1 -1
- package/chunks/{chunk-63XITVIE.js → chunk-P2AKFALJ.js} +24 -24
- package/chunks/{chunk-LZCNINKB.js → chunk-QLR4QOL7.js} +4 -4
- package/chunks/{chunk-3CJZHWKH.js → chunk-QS7XJXMY.js} +3 -3
- package/chunks/{chunk-PVYRIVM3.js → chunk-QYJB4I22.js} +1 -1
- package/chunks/{chunk-XHQEB4WW.js → chunk-R75USKXV.js} +4 -4
- package/chunks/{chunk-DGEOQOYK.js → chunk-RH6ENXV4.js} +6 -6
- package/chunks/{chunk-DNFPKNWM.js → chunk-RWUZRVUT.js} +2 -2
- package/chunks/{chunk-7MFRXLVG.js → chunk-SEBFGV7T.js} +2 -2
- package/chunks/{chunk-IUDP2ML3.js → chunk-SJG3PCMJ.js} +3 -3
- package/chunks/{chunk-XGXVMNHI.js → chunk-SLNJDU4D.js} +4 -4
- package/chunks/{chunk-7O3XB3FJ.js → chunk-SLYGIHMA.js} +38 -38
- package/chunks/{chunk-ARKI4LOD.js → chunk-T7XP4FJG.js} +3 -3
- package/chunks/{chunk-3HQMSMNA.js → chunk-UM5Y2RAD.js} +8 -8
- package/chunks/{chunk-HLBNALL4.js → chunk-UQSP4Y3H.js} +1 -1
- package/chunks/{chunk-PFBUKEWV.js → chunk-UVW5RWDM.js} +2 -2
- package/chunks/{chunk-5OKLHC2S.js → chunk-UZIP5RZG.js} +1 -1
- package/chunks/chunk-V24FMEXL.js +203 -0
- package/chunks/{chunk-TD2B7LOS.js → chunk-VJNBNL44.js} +1 -1
- package/chunks/{chunk-XZDGZX34.js → chunk-VPWZ7N32.js} +7 -7
- package/chunks/chunk-VTIYMCRG.js +128 -0
- package/chunks/{chunk-KSQ3A4MU.js → chunk-VY24CEQH.js} +11 -11
- package/chunks/{chunk-P3H5PNSO.js → chunk-W4LHOCZD.js} +1 -1
- package/chunks/{chunk-TYYTQIEZ.js → chunk-W5XYWVXE.js} +1 -1
- package/chunks/{chunk-KL5NEBVZ.js → chunk-WA47FG3A.js} +5 -5
- package/chunks/chunk-WDBSTICZ.js +106 -0
- package/chunks/chunk-WXIQKOFD.js +136 -0
- package/chunks/{chunk-4T3CEDPG.js → chunk-XR3PDQ7P.js} +11 -11
- package/chunks/{chunk-GXHLZHKS.js → chunk-XST2W6J5.js} +1 -1
- package/chunks/{chunk-STL6XNJK.js → chunk-XWJPREGE.js} +9 -9
- package/chunks/{chunk-GM2WNDZ5.js → chunk-YPTR7ZFB.js} +75 -59
- package/chunks/{chunk-2GNKUQNV.js → chunk-Z4AMHZHW.js} +102 -102
- package/chunks/{chunk-SHADJNT6.js → chunk-Z563JBRI.js} +1 -1
- package/chunks/{chunk-GDOMZBF3.js → chunk-ZKQ2SFH7.js} +1 -1
- package/chunks/{chunk-GLKPOCPH.js → chunk-ZTYFX6BP.js} +3 -3
- package/chunks/{chunk-DNROOYR3.js → chunk-ZXSPXXBY.js} +2 -2
- package/chunks/{codex-subagent-executor-CVPJBY7H.js → codex-subagent-executor-LRMIHGUJ.js} +70 -64
- package/chunks/{contextCommand-VQP42E45.js → contextCommand-LCS4K6AS.js} +68 -62
- package/chunks/{core-runtime-UGTGVETQ.js → core-runtime-KA3DTXOS.js} +72 -66
- package/chunks/{create-sub-session-W7HDHA47.js → create-sub-session-AOLRCPHX.js} +69 -63
- package/chunks/{daemon-git-worktree-guard-OYHWZ4DT.js → daemon-git-worktree-guard-XNJQMGBA.js} +66 -60
- package/chunks/{daemon-status-provider-BPA4OMKT.js → daemon-status-provider-S7JFBO7R.js} +76 -70
- package/chunks/{daemon-trust-policy-LR3O2LHO.js → daemon-trust-policy-3TZF3A23.js} +73 -67
- package/chunks/{daemon-trust-policy-monitor-XYJBQS5K.js → daemon-trust-policy-monitor-KCTEA4NB.js} +73 -67
- package/chunks/{deferred-core-runtime-2JRX7S37.js → deferred-core-runtime-APR46DSV.js} +69 -63
- package/chunks/{edit-C5EXC227.js → edit-3XYI6QI5.js} +51 -46
- package/chunks/{en-QBY42TC3.js → en-MQICGJBA.js} +10 -0
- package/chunks/{enter-worktree-FY6Y6APX.js → enter-worktree-FIO6VPWS.js} +6 -6
- package/chunks/{enterPlanMode-LRUOZ2DX.js → enterPlanMode-T6ZQCSIY.js} +51 -46
- package/chunks/{environment-AK5W47CA.js → environment-ZSKN47KY.js} +69 -63
- package/chunks/{errors-V77HGFV3.js → errors-JVU3YU37.js} +68 -62
- package/chunks/execution-sandbox-config-2RI6A7VE.js +2 -2
- package/chunks/{execution-tool-NK2ST2RX.js → execution-tool-4AHWPEBH.js} +52 -47
- package/chunks/{execution-worker-QO36YMNT.js → execution-worker-V22CIVJD.js} +59 -54
- package/chunks/{exit-worktree-Q3ZHCBYN.js → exit-worktree-3UU4SS47.js} +6 -6
- package/chunks/{exitPlanMode-OPS5BP27.js → exitPlanMode-HSLDDGIZ.js} +49 -44
- package/chunks/{fast-path-SAXQN2PO.js → fast-path-55D3R6HR.js} +2 -2
- package/chunks/fast-path-settings-FIMIXD3V.js +1 -1
- package/chunks/{foreground-runner-WUF5YIVW.js → foreground-runner-3JU62IZN.js} +75 -69
- package/chunks/gateway-content-generator-76KRZXAA.js +471 -0
- package/chunks/gateway-models-N5DT7Q4M.js +134 -0
- package/chunks/gateway-transfer-47WP3EUB.js +27 -0
- package/chunks/{glob-EAIWIACU.js → glob-FVF7TFRO.js} +50 -45
- package/chunks/{goal-tools-IM4K7YYV.js → goal-tools-UHHDYOKQ.js} +49 -44
- package/chunks/{grep-JBR55JCA.js → grep-5HGH34M6.js} +2 -2
- package/chunks/{handleAutoUpdate-XGWLFCZ3.js → handleAutoUpdate-EOHNI5GZ.js} +72 -66
- package/chunks/{i18n-A3JWISCI.js → i18n-QYM6PMQT.js} +67 -61
- package/chunks/{image-gen-KX5VPAGI.js → image-gen-WGMRL47H.js} +2 -2
- package/chunks/{initializer-WF7GJJSN.js → initializer-MYP7CFZW.js} +73 -67
- package/chunks/{installationInfo-UGZLB5DE.js → installationInfo-FJ67GP5M.js} +66 -60
- package/chunks/{list-XL33NYFQ.js → list-XF6G4GUF.js} +75 -69
- package/chunks/{llm-5ZIFZWYM.js → llm-W4KJ3VXB.js} +124 -117
- package/chunks/{llm-content-generator-IP6THV2F.js → llm-content-generator-UZLRLOG3.js} +14 -11
- package/chunks/{loadedSettingsAdapter-BBOBGOFY.js → loadedSettingsAdapter-7Q5U3DXV.js} +73 -67
- package/chunks/{local-execution-environment-OHZ6JHBJ.js → local-execution-environment-MYZ2Y54Q.js} +59 -54
- package/chunks/{loggingContentGenerator-ZB6YBQ4A.js → loggingContentGenerator-4OPNBZMP.js} +62 -57
- package/chunks/{ls-RZYAZPVC.js → ls-SSSPTK7X.js} +3 -3
- package/chunks/{managed-npm-update-U2LTQRW5.js → managed-npm-update-KLB5RZZX.js} +70 -64
- package/chunks/{mcp-7TSDK7XG.js → mcp-NC27EHB4.js} +73 -67
- package/chunks/{memory-side-query-DNXJZB7B.js → memory-side-query-XFFIF7UX.js} +1 -1
- package/chunks/{model-call-collection-Q6XLRBD4.js → model-call-collection-YKPPKTJC.js} +2 -2
- package/chunks/{model-configuration-YHPN6XLJ.js → model-configuration-2G3ULIR4.js} +74 -68
- package/chunks/{modelConfigUtils-KXEA5X5L.js → modelConfigUtils-664FHNH3.js} +68 -62
- package/chunks/{monitor-YUS5UHUB.js → monitor-UBN77ORZ.js} +49 -44
- package/chunks/{nonInteractiveCli-H5OSIGXO.js → nonInteractiveCli-L3L4WX5E.js} +113 -107
- package/chunks/{nonInteractiveToolExecutor-KOOCZSZM.js → nonInteractiveToolExecutor-C3T5J2NW.js} +50 -45
- package/chunks/{notebook-edit-XYZLSPWF.js → notebook-edit-63MI44CU.js} +50 -45
- package/chunks/{omni-QS5RRGPB.js → omni-SLZABQRH.js} +24 -19
- package/chunks/{openaiContentGenerator-37E2A7VN.js → openaiContentGenerator-7V6CYXFU.js} +46 -39
- package/chunks/{openaiResponsesContentGenerator-PMCEAG55.js → openaiResponsesContentGenerator-6YVQAUJ3.js} +20 -14
- package/chunks/{processUtils-CQXO2K7O.js → processUtils-7ZT2P4R2.js} +2 -2
- package/chunks/{prompt-terminal-ledger-ZRCMVONU.js → prompt-terminal-ledger-QPVHC4HA.js} +67 -61
- package/chunks/{pt-DHKQQO6C.js → pt-EZL4H2AB.js} +10 -0
- package/chunks/{reactive-degrade-ZJ3JVKAL.js → reactive-degrade-SLNICU7U.js} +18 -13
- package/chunks/{read-file-MOY3AEWH.js → read-file-WBHCQFBS.js} +10 -9
- package/chunks/{record-artifact-LAQGMYDN.js → record-artifact-NO2DU63L.js} +3 -3
- package/chunks/record-source-NRW6TYWW.js +1 -1
- package/chunks/{report-findings-OVUUKGUX.js → report-findings-S6QO46V2.js} +4 -4
- package/chunks/request-shutdown-MXKAXR2D.js +1 -1
- package/chunks/{resumeHistoryUtils-HATXAZWB.js → resumeHistoryUtils-RMVHH2EV.js} +72 -66
- package/chunks/{ripGrep-DRZ55VHF.js → ripGrep-RXD7MQDC.js} +16 -15
- package/chunks/{run-o1-code-serve-QG3EUGCC.js → run-o1-code-serve-QTI4KAOJ.js} +55 -55
- package/chunks/{sandboxConfig-67KD25RA.js → sandboxConfig-DAOIURBO.js} +67 -61
- package/chunks/{scheduled-tasks-SUK36YBV.js → scheduled-tasks-SXKRP3GY.js} +74 -68
- package/chunks/{scheduler-VGATQHDI.js → scheduler-YECMJLGP.js} +68 -62
- package/chunks/{sdk-exporters-grpc-U5H74BEL.js → sdk-exporters-grpc-FX5C3IEA.js} +2 -2
- package/chunks/{sdk-exporters-http-34H6REMF.js → sdk-exporters-http-66WPQ7UY.js} +6 -6
- package/chunks/{sdk-impl-5OTPCVXV.js → sdk-impl-B4WTXTDQ.js} +9 -9
- package/chunks/send-message-KFUNQQFA.js +1 -1
- package/chunks/{serve-4JYKC5U3.js → serve-N4CEYSQI.js} +73 -67
- package/chunks/{server-ID2MQUOZ.js → server-VSMVJXNJ.js} +267 -260
- package/chunks/{session-SBJFEMA7.js → session-DQY6YADB.js} +117 -111
- package/chunks/{session-FEM6CGKX.js → session-WXHJRBXC.js} +3 -2
- package/chunks/{session-attachments-root-ILVWUB6H.js → session-attachments-root-NKR2OHXN.js} +66 -60
- package/chunks/{session-pr-refresh-PMD3YR6L.js → session-pr-refresh-FESHW7O7.js} +74 -68
- package/chunks/{settings-7BOOCLET.js → settings-MJDXAJOQ.js} +72 -66
- package/chunks/{shell-PWH465OV.js → shell-XUMG65ZC.js} +49 -44
- package/chunks/{skill-6CYVI2NR.js → skill-RS7AGKYN.js} +21 -20
- package/chunks/{skill-settings-5HIZWK7Y.js → skill-settings-MEXN6DN6.js} +73 -67
- package/chunks/{spawnChannel-OOMVR63F.js → spawnChannel-GOF25LIG.js} +69 -63
- package/chunks/{standalone-update-MXJDDVFO.js → standalone-update-AYQDZNVC.js} +68 -62
- package/chunks/{startInteractiveUI-IHLZORH3.js → startInteractiveUI-7HHCEPIG.js} +1229 -1042
- package/chunks/{supervisor-runner-I3KOH7AT.js → supervisor-runner-VSXLLNB3.js} +3 -3
- package/chunks/task-create-EHGTZMSD.js +2 -2
- package/chunks/task-update-LBXI5OVE.js +2 -2
- package/chunks/{team-create-NNXUJHYM.js → team-create-4LGDPW5M.js} +51 -46
- package/chunks/{team-plan-approval-NGGXGRN5.js → team-plan-approval-KYQWPQXN.js} +49 -44
- package/chunks/{terminal-image-renderer-QPJZUQOY.js → terminal-image-renderer-PVLPYQHK.js} +66 -60
- package/chunks/{theme-manager-YN3VTWUS.js → theme-manager-I4JCVFQ3.js} +66 -60
- package/chunks/tool-call-V225426S.js +1 -1
- package/chunks/{tool-result-media-ELNVF7HV.js → tool-result-media-AFIZLPZ7.js} +19 -14
- package/chunks/{tool-search-3MQVPZN2.js → tool-search-B5WIMGV2.js} +19 -18
- package/chunks/{total-session-admission-RQ2GWA4J.js → total-session-admission-WAQB3AMR.js} +71 -65
- package/chunks/{trustedFolders-ANMISMAZ.js → trustedFolders-MMMGBQOP.js} +68 -62
- package/chunks/{update-relaunch-ANCIYSER.js → update-relaunch-WE7M3JFY.js} +5 -5
- package/chunks/{updateCheck-QGDY5DY2.js → updateCheck-O4WELAS7.js} +71 -65
- package/chunks/{upload-config-V6CJBH2Z.js → upload-config-5IV7GPH3.js} +13 -8
- package/chunks/{useAutoAcceptIndicator-H4PUESJW.js → useAutoAcceptIndicator-L5APVQBL.js} +76 -70
- package/chunks/{validateNonInterActiveAuth-3D6LYNKP.js → validateNonInterActiveAuth-HMLF22RB.js} +110 -104
- package/chunks/{version-M7PIODKT.js → version-HF62HOZR.js} +1 -1
- package/chunks/{web-fetch-VJSQST7P.js → web-fetch-ACG4GZWS.js} +15 -14
- package/chunks/{web-search-CVFACVJV.js → web-search-FOBOKL5H.js} +14 -9
- package/chunks/{workflow-O3XZL3Z4.js → workflow-ILU5GODQ.js} +61 -45
- package/chunks/{workspace-providers-status-M47T3M22.js → workspace-providers-status-OQ6BF2I4.js} +79 -73
- package/chunks/{workspace-registration-store-HGSY3RON.js → workspace-registration-store-C7HXASW3.js} +1 -1
- package/chunks/{workspace-registry-LYEI3DR3.js → workspace-registry-BLZXWWBO.js} +71 -65
- package/chunks/{workspace-runtime-coordinator-OHXZ4IPK.js → workspace-runtime-coordinator-L77AZGKG.js} +72 -66
- package/chunks/{workspace-service-VII7ZCF7.js → workspace-service-R7A6VM73.js} +77 -71
- package/chunks/{workspace-skills-status-7GG3A3TL.js → workspace-skills-status-U2NYMQU3.js} +76 -70
- package/chunks/{workspace-trust-reconciler-GGKNXRVC.js → workspace-trust-reconciler-UGEU2622.js} +80 -74
- package/chunks/{write-file-K5V3EMTE.js → write-file-4N2F3VNU.js} +52 -47
- package/chunks/{zoom-image-TROZVSMN.js → zoom-image-E772GQFP.js} +10 -9
- package/cli.js +17 -17
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +15 -0
- package/locales/pt.js +15 -0
- package/package.json +2 -2
- package/release-notes.json +15 -0
- package/vendor/o1-connect/README.md +10 -3
- package/vendor/o1-connect/VENDOR.json +6 -2
- package/vendor/o1-connect/lib.mjs +1 -1
- package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
- package/vendor/tree-sitter/tree-sitter.wasm +0 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-1p6NHpAP.js → abnfDiagram-VCTEODGH-D4wWvLfQ.js} +1 -1
- package/web-shell/assets/{arc-zZSvt9kN.js → arc-CbFSLdCO.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-C1H1DVM2.js → architectureDiagram-5GKGNRK7-BjZoTViq.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-CLvQiMuT.js → blockDiagram-NRAW4CY4-CGSVjghq.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-verRTIfv.js → c4Diagram-UCG6FXSJ-DZszjKKm.js} +1 -1
- package/web-shell/assets/channel-BxByz4gj.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BIX6o24B.js → chunk-2Q5K7J3B-snkNi44P.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-hp0xJxSu.js → chunk-5VM5RSS4-CsnyTIr_.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-BHY8_5WY.js → chunk-F27PBJKO-BDleVSaw.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-Bq3iuQSE.js → chunk-G27WJ6UU-CbjFrBwN.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-nl0EYjjD.js → chunk-JWPE2WC7-rkiI-MmN.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CstAiHwj.js → chunk-LCL6LL3I-CEESZISZ.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-BWSrwMPq.js → chunk-POPQ4Y6H-C0vPHNMP.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-BHoHrDvN.js → chunk-SVP7TREG-_LLDkzrp.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-_raB2Fx7.js → chunk-XXDRQBXY-PCJcNBA-.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Vxr2jk7x.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Vxr2jk7x.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-DzohBTSN.js → cose-bilkent-JH36ORCC-Z1LPHXFQ.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-DUuz4IOx.js → cynefin-OW5HDTMX-Ch8GJJZn.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js → cynefinDiagram-5FMLGOSQ-BaZYUcGn.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-DccvRFOk.js → dagre-3AP2YEHR-CMiuGPg4.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-iGT749Oj.js → diagram-S7CK7UJ4-Ch4SWYiO.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DO-brOdV.js → diagram-UQ7AKVKN-DrQs-UnS.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-BTxQOmxL.js → diagram-VSXAHHWV-CK683mKd.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-B4qvwv51.js → diagram-VX7I27RA-CdtSFCwE.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-rBgjOTjS.js → diagram-Z3DM3KII-mmDlyQCV.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-pm_yhGF5.js → ebnfDiagram-PWID7BFC-ig7MW8j3.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CYu1ceNm.js → erDiagram-SSCWMZ5O-Br1al6yd.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-VaNRVW2d.js → flowDiagram-A5DVABFB-VU5pvkzQ.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DyvaaUFV.js → ganttDiagram-EL5Y4UJY-D5-CC_k4.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-ATr3REtt.js → gitGraphDiagram-WWUBYQGX-aIOAY7jv.js} +1 -1
- package/web-shell/assets/{index-B3YLpUKu.js → index-BvC4CLzJ.js} +1 -1
- package/web-shell/assets/{index-C4N7bP4K.js → index-CHjJJO_-.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-C94by8Av.js → infoDiagram-RXCK75RN-BLavxALh.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DzjDX0-x.js → ishikawaDiagram-5VMMS53U-WrFAKU7P.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BW955BgY.js → journeyDiagram-EYS64GPL-CNB-o7UU.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-BtbAjdCr.js → kanban-definition-3QL26DDD-BsOlyiXs.js} +1 -1
- package/web-shell/assets/{layout-U3vDc3pe.js → layout-CLP7XDl-.js} +1 -1
- package/web-shell/assets/{linear-B5nTSs6h.js → linear-B_ZqoW0R.js} +1 -1
- package/web-shell/assets/{mermaid.core-ezhLxuW5.js → mermaid.core-DM7r4q8D.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BVcRjZNc.js → mindmap-definition-FBJOCRG2-Bqb6RJsq.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-BnYXkIZM.js → pegDiagram-XKGWAZYB-CvUwl3Q5.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-DooJLvL9.js → pieDiagram-E7YTZNPT-BQNKFhor.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-MywT58KI.js → quadrantDiagram-AXDQQJYC-7VbOBW8d.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-kZGgDmOU.js → railroadDiagram-O6MQD6OU-CgkPn4Te.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BTR494PR.js → requirementDiagram-EFPCY7ZU-C7XViHWf.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DCC0qZFO.js → sankeyDiagram-P5KCCOFB-vsv0eiDF.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DDvDBq18.js → sequenceDiagram-WJ2MYXX4-BLdDIcOL.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-C3GSzMrx.js → sizeCapture-X5ZJPWSS-BVqQaCER.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-Dr4BXIdu.js → stateDiagram-HBIQ2CUA-Bq3g73mj.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cb0cd1Bn.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-CTc5retR.js → swimlanes-XN3QIQJK-7w4P-g0w.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BKzBsHUu.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DlCHZahl.js → timeline-definition-24CTP7MA-DlkUGqRK.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DSEiDJ6-.js → vennDiagram-4TSXK5OY-D920UplN.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BSky5BAj.js → wardleyDiagram-VM6X3IG4-EsWGTViP.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-C-_l5Eqg.js → xychartDiagram-S5SC5T6Z-Bhnogtoq.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/vendor/o1-connect/.lintstagedrc.mjs +0 -7
- package/web-shell/assets/channel-BL_seGtn.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CSUKMc0D.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CSUKMc0D.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DPa_JZnG.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-WV4-2ySQ.js +0 -8
- package/chunks/{chunk-IVVMETSX.js → chunk-4VLEDM44.js} +3 -3
- package/chunks/{chunk-M6C3BI2P.js → chunk-AMFFYQUN.js} +0 -0
- package/chunks/{chunk-ROO6F2BT.js → chunk-H5L5E5NI.js} +3 -3
- package/chunks/{chunk-GT2ATHFG.js → chunk-PKIF4YYA.js} +3 -3
- package/chunks/{chunk-INGWSCK5.js → chunk-QNRLAIIG.js} +3 -3
- package/chunks/{container-execution-environment-RKRAWXR3.js → container-execution-environment-XBTXQ5YE.js} +3 -3
- package/chunks/{downsample-image-HDL6LZNC.js → downsample-image-FUPJVVNL.js} +3 -3
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
getCurrentAgentId
|
|
5
|
+
} from "./chunk-QCE3SPTV.js";
|
|
6
|
+
import "./chunk-FOZEB37P.js";
|
|
7
|
+
import {
|
|
8
|
+
isInForkExecution,
|
|
9
|
+
isSystemReminderContent
|
|
10
|
+
} from "./chunk-DNMM4RF7.js";
|
|
11
|
+
import "./chunk-2SMHE6PC.js";
|
|
12
|
+
import "./chunk-JSFADKTB.js";
|
|
13
|
+
import "./chunk-OHAUN3Q5.js";
|
|
14
|
+
import "./chunk-O7QDVXNJ.js";
|
|
15
|
+
import "./chunk-SRFL3HFU.js";
|
|
16
|
+
import {
|
|
17
|
+
fetchKeyInfo
|
|
18
|
+
} from "./chunk-B4CCJMG6.js";
|
|
19
|
+
import "./chunk-EYKEQPKF.js";
|
|
20
|
+
import {
|
|
21
|
+
getErrorHeader,
|
|
22
|
+
getRateLimitErrorDetails
|
|
23
|
+
} from "./chunk-YPTR7ZFB.js";
|
|
24
|
+
import {
|
|
25
|
+
ToolNames
|
|
26
|
+
} from "./chunk-SYMYKLO4.js";
|
|
27
|
+
import {
|
|
28
|
+
assertGatewayTransferCompatible,
|
|
29
|
+
confirmGatewayTransfer,
|
|
30
|
+
isGatewayAccountChange,
|
|
31
|
+
takeGatewayTransfer
|
|
32
|
+
} from "./chunk-V24FMEXL.js";
|
|
33
|
+
import {
|
|
34
|
+
GatewayConversationError,
|
|
35
|
+
gatewayRequestScope,
|
|
36
|
+
isGatewayIdentifier
|
|
37
|
+
} from "./chunk-WXIQKOFD.js";
|
|
38
|
+
import "./chunk-VTIYMCRG.js";
|
|
39
|
+
import "./chunk-S6HB6BVJ.js";
|
|
40
|
+
import "./chunk-UK2KIU2V.js";
|
|
41
|
+
import "./chunk-HBBBH6YA.js";
|
|
42
|
+
import "./chunk-S3HSUBBN.js";
|
|
43
|
+
import "./chunk-3X2X4BF3.js";
|
|
44
|
+
import {
|
|
45
|
+
getErrorStatus
|
|
46
|
+
} from "./chunk-JAQAGKIV.js";
|
|
47
|
+
import {
|
|
48
|
+
init_esbuild_shims
|
|
49
|
+
} from "./chunk-S2467S6L.js";
|
|
50
|
+
import {
|
|
51
|
+
__name
|
|
52
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
53
|
+
|
|
54
|
+
// packages/core/src/core/gateway-content-generator.ts
|
|
55
|
+
init_esbuild_shims();
|
|
56
|
+
import { createHash } from "node:crypto";
|
|
57
|
+
var states = /* @__PURE__ */ new WeakMap();
|
|
58
|
+
function endpointOf(config) {
|
|
59
|
+
return (config.reasoningRouteBaseUrl || config.baseUrl || "").replace(/\/+$/, "").replace(/\/v1$/, "");
|
|
60
|
+
}
|
|
61
|
+
__name(endpointOf, "endpointOf");
|
|
62
|
+
var GatewayContentGenerator = class {
|
|
63
|
+
constructor(wrapped, config, generatorConfig) {
|
|
64
|
+
this.wrapped = wrapped;
|
|
65
|
+
this.config = config;
|
|
66
|
+
this.generatorConfig = generatorConfig;
|
|
67
|
+
}
|
|
68
|
+
static {
|
|
69
|
+
__name(this, "GatewayContentGenerator");
|
|
70
|
+
}
|
|
71
|
+
prepareRequest(request) {
|
|
72
|
+
if (this.generatorConfig.authType !== "openai" /* USE_OPENAI */ || !Array.isArray(request.contents))
|
|
73
|
+
return { ...request };
|
|
74
|
+
const originalContents = request.contents;
|
|
75
|
+
if (!originalContents.every(
|
|
76
|
+
(content) => content !== null && typeof content === "object" && "role" in content
|
|
77
|
+
))
|
|
78
|
+
return { ...request };
|
|
79
|
+
const contents = originalContents.flatMap((content) => {
|
|
80
|
+
if (!content || typeof content !== "object" || !("role" in content) || content.role !== "user" || !("parts" in content) || !Array.isArray(content.parts) || !content.parts.every((part) => typeof part.text === "string") || !content.parts.some(
|
|
81
|
+
(part) => isSystemReminderContent({ parts: [part] })
|
|
82
|
+
))
|
|
83
|
+
return [content];
|
|
84
|
+
const rows = [];
|
|
85
|
+
let pending = [];
|
|
86
|
+
const flush = /* @__PURE__ */ __name(() => {
|
|
87
|
+
if (pending.length) {
|
|
88
|
+
rows.push({ ...content, parts: pending });
|
|
89
|
+
pending = [];
|
|
90
|
+
}
|
|
91
|
+
}, "flush");
|
|
92
|
+
for (const part of content.parts) {
|
|
93
|
+
if (isSystemReminderContent({ parts: [part] })) {
|
|
94
|
+
flush();
|
|
95
|
+
rows.push({ ...content, parts: [part] });
|
|
96
|
+
} else pending.push(part);
|
|
97
|
+
}
|
|
98
|
+
flush();
|
|
99
|
+
return rows;
|
|
100
|
+
});
|
|
101
|
+
return { ...request, contents };
|
|
102
|
+
}
|
|
103
|
+
state() {
|
|
104
|
+
const sessionId = this.config.getSessionId();
|
|
105
|
+
const actor = getCurrentAgentId() ?? "main";
|
|
106
|
+
const id = actor === "main" ? sessionId : createHash("sha256").update(`${sessionId}\0${actor}`).digest("hex");
|
|
107
|
+
if (!isGatewayIdentifier(id))
|
|
108
|
+
throw new GatewayConversationError(
|
|
109
|
+
"unsupported",
|
|
110
|
+
"The session has no valid gateway conversation identity. Start a new empty conversation with /new."
|
|
111
|
+
);
|
|
112
|
+
const endpoint = endpointOf(this.generatorConfig);
|
|
113
|
+
const key = `${sessionId}\0${actor}\0${endpoint}`;
|
|
114
|
+
let sessions = states.get(this.config);
|
|
115
|
+
if (!sessions) {
|
|
116
|
+
sessions = /* @__PURE__ */ new Map();
|
|
117
|
+
states.set(this.config, sessions);
|
|
118
|
+
}
|
|
119
|
+
let state = sessions.get(key);
|
|
120
|
+
if (!state) {
|
|
121
|
+
const records = this.config.getResumedSessionData()?.conversation.messages ?? [];
|
|
122
|
+
const record = [...records].reverse().find((row) => {
|
|
123
|
+
if (row.subtype !== "gateway_conversation" || row.forkedFrom || row.sessionId !== sessionId)
|
|
124
|
+
return false;
|
|
125
|
+
const payload = row.systemPayload;
|
|
126
|
+
return payload?.conversationId === id && payload.actor === actor && payload.endpoint === endpoint;
|
|
127
|
+
})?.systemPayload;
|
|
128
|
+
state = { record, busy: false };
|
|
129
|
+
sessions.set(key, state);
|
|
130
|
+
}
|
|
131
|
+
return { state, id, actor, endpoint };
|
|
132
|
+
}
|
|
133
|
+
async begin(request) {
|
|
134
|
+
const { state, id, actor, endpoint } = this.state();
|
|
135
|
+
const independent = request.gatewayIndependentRequest;
|
|
136
|
+
if (independent) {
|
|
137
|
+
if (!isGatewayIdentifier(independent.id))
|
|
138
|
+
throw new GatewayConversationError(
|
|
139
|
+
"unsupported",
|
|
140
|
+
"Invalid independent operation identity."
|
|
141
|
+
);
|
|
142
|
+
const info = independent.purpose ? await fetchKeyInfo({
|
|
143
|
+
baseUrl: this.generatorConfig.baseUrl ?? "",
|
|
144
|
+
apiKey: this.generatorConfig.apiKey ?? "",
|
|
145
|
+
signal: request.config?.abortSignal,
|
|
146
|
+
clientVersion: this.config.getCliVersion()
|
|
147
|
+
}) : null;
|
|
148
|
+
const supported = independent.purpose && info?.conversationOperations?.purposes.includes(independent.purpose);
|
|
149
|
+
if (independent.purpose && !supported) {
|
|
150
|
+
throw new GatewayConversationError(
|
|
151
|
+
"unsupported",
|
|
152
|
+
"This gateway does not advertise support for this independent operation. The main conversation is preserved."
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
scope: supported ? {
|
|
157
|
+
conversationId: id,
|
|
158
|
+
model: request.model,
|
|
159
|
+
operation: { id: independent.id, purpose: independent.purpose }
|
|
160
|
+
} : { conversationId: independent.id, model: request.model },
|
|
161
|
+
finish: /* @__PURE__ */ __name(async () => {
|
|
162
|
+
}, "finish")
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
if (isInForkExecution())
|
|
166
|
+
throw new GatewayConversationError(
|
|
167
|
+
"unsupported",
|
|
168
|
+
"This gateway cannot authenticate a fork of an existing conversation. Start an independent agent with empty history."
|
|
169
|
+
);
|
|
170
|
+
if (state.busy)
|
|
171
|
+
throw new GatewayConversationError(
|
|
172
|
+
"conflict",
|
|
173
|
+
"This conversation already has a request in progress. Wait for it to finish."
|
|
174
|
+
);
|
|
175
|
+
if (state.record?.phase === "pending" || state.record?.phase === "uncertain")
|
|
176
|
+
throw new GatewayConversationError(
|
|
177
|
+
"uncertain",
|
|
178
|
+
"The previous request has an uncertain result. Its history is preserved; automatic replay and account transfer are unavailable."
|
|
179
|
+
);
|
|
180
|
+
const contents = Array.isArray(request.contents) ? request.contents : [request.contents];
|
|
181
|
+
if (!state.record && contents.some(
|
|
182
|
+
(content) => typeof content === "object" && content !== null && "role" in content && content.role === "model"
|
|
183
|
+
)) {
|
|
184
|
+
throw new GatewayConversationError(
|
|
185
|
+
"legacy",
|
|
186
|
+
"This history has no recorded gateway conversation identity. It cannot be resumed or imported automatically. Keep it for reference and start a new empty conversation with /new."
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
const previous = state.record;
|
|
190
|
+
const contractHash = createHash("sha256").update(
|
|
191
|
+
JSON.stringify([
|
|
192
|
+
request.config?.systemInstruction ?? null,
|
|
193
|
+
request.config?.tools ?? null
|
|
194
|
+
])
|
|
195
|
+
).digest("hex");
|
|
196
|
+
if (previous?.contractHash && previous.contractHash !== contractHash) {
|
|
197
|
+
throw new GatewayConversationError(
|
|
198
|
+
"conflict",
|
|
199
|
+
"System instructions or tool schemas changed during this gateway conversation. Its authenticated history cannot be replayed with that change. Keep the history and start a new empty conversation with /new to use the new configuration."
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
const transfer = actor === "main" ? takeGatewayTransfer(this.config) : void 0;
|
|
203
|
+
if (transfer) {
|
|
204
|
+
if (!previous || previous.phase !== "complete" || previous.model !== transfer.sourceModel) {
|
|
205
|
+
state.busy = false;
|
|
206
|
+
throw new GatewayConversationError(
|
|
207
|
+
"unsupported",
|
|
208
|
+
"Transfer requires a recorded completed conversation on the original account."
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
assertGatewayTransferCompatible(
|
|
212
|
+
transfer.sourceModel,
|
|
213
|
+
transfer.destinationModel
|
|
214
|
+
);
|
|
215
|
+
request.model = transfer.destinationModel;
|
|
216
|
+
const destination = this.config.getResolvedModelConfig(
|
|
217
|
+
this.generatorConfig.authType,
|
|
218
|
+
request.model,
|
|
219
|
+
this.generatorConfig.reasoningRouteBaseUrl ?? this.generatorConfig.baseUrl
|
|
220
|
+
);
|
|
221
|
+
const outputLimit = destination?.capabilities.gateway?.outputTokens;
|
|
222
|
+
if (outputLimit)
|
|
223
|
+
request.config = {
|
|
224
|
+
...request.config,
|
|
225
|
+
maxOutputTokens: Math.min(
|
|
226
|
+
request.config?.maxOutputTokens ?? outputLimit,
|
|
227
|
+
outputLimit
|
|
228
|
+
)
|
|
229
|
+
};
|
|
230
|
+
} else if (previous && isGatewayAccountChange(previous.model, request.model)) {
|
|
231
|
+
state.busy = false;
|
|
232
|
+
throw new GatewayConversationError(
|
|
233
|
+
"unsupported",
|
|
234
|
+
"Select the destination through /model and explicitly authorize this conversation transfer. The history was not sent to another account."
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
const record = {
|
|
238
|
+
conversationId: id,
|
|
239
|
+
endpoint,
|
|
240
|
+
actor,
|
|
241
|
+
model: request.model,
|
|
242
|
+
phase: "pending",
|
|
243
|
+
contractHash,
|
|
244
|
+
toolSnapshotPolicy: this.config.getGatewayToolSnapshotPolicy?.() ?? "gateway-v1",
|
|
245
|
+
...request.config?.tools?.some(
|
|
246
|
+
(tool) => "functionDeclarations" in tool && tool.functionDeclarations?.some(
|
|
247
|
+
(declaration) => declaration.name === ToolNames.WORKFLOW
|
|
248
|
+
)
|
|
249
|
+
) ? { workflowToolDeclared: true } : {}
|
|
250
|
+
};
|
|
251
|
+
const recorder = this.config.getChatRecordingService();
|
|
252
|
+
state.busy = true;
|
|
253
|
+
try {
|
|
254
|
+
if (!recorder && actor === "main")
|
|
255
|
+
throw new GatewayConversationError(
|
|
256
|
+
"unsupported",
|
|
257
|
+
"Gateway conversation recording is required to preserve continuity across restarts. Enable chat recording before starting a new conversation."
|
|
258
|
+
);
|
|
259
|
+
await recorder?.recordGatewayConversation(record);
|
|
260
|
+
state.record = record;
|
|
261
|
+
} catch (error) {
|
|
262
|
+
state.busy = false;
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
let finished = false;
|
|
266
|
+
const group = this.config.getResolvedModelConfig(
|
|
267
|
+
this.generatorConfig.authType,
|
|
268
|
+
request.model,
|
|
269
|
+
this.generatorConfig.reasoningRouteBaseUrl ?? this.generatorConfig.baseUrl
|
|
270
|
+
)?.capabilities.gateway?.group;
|
|
271
|
+
return {
|
|
272
|
+
scope: {
|
|
273
|
+
conversationId: id,
|
|
274
|
+
model: request.model,
|
|
275
|
+
...transfer ? {
|
|
276
|
+
transfer: {
|
|
277
|
+
sourceModel: transfer.sourceModel,
|
|
278
|
+
dispatched: false
|
|
279
|
+
}
|
|
280
|
+
} : {},
|
|
281
|
+
...request.model.startsWith("o1gw/group/") && group?.continuationPolicies.includes("ask") && group.continuationPolicy !== "forbid" ? {
|
|
282
|
+
confirmGroupTransfer: /* @__PURE__ */ __name((signal) => confirmGatewayTransfer(this.config, {
|
|
283
|
+
source: request.model,
|
|
284
|
+
destination: "another eligible group account",
|
|
285
|
+
signal
|
|
286
|
+
}), "confirmGroupTransfer")
|
|
287
|
+
} : {}
|
|
288
|
+
},
|
|
289
|
+
finish: /* @__PURE__ */ __name(async (phase) => {
|
|
290
|
+
if (finished) return;
|
|
291
|
+
finished = true;
|
|
292
|
+
try {
|
|
293
|
+
state.record = phase === "refused" && previous ? previous : { ...record, phase };
|
|
294
|
+
await recorder?.recordGatewayConversation(state.record);
|
|
295
|
+
if (phase === "complete") {
|
|
296
|
+
if (actor === "main")
|
|
297
|
+
await recorder?.recordSessionModel?.({
|
|
298
|
+
modelId: request.model,
|
|
299
|
+
authType: this.generatorConfig.authType,
|
|
300
|
+
baseUrl: this.generatorConfig.reasoningRouteBaseUrl ?? this.generatorConfig.baseUrl
|
|
301
|
+
});
|
|
302
|
+
if (transfer) {
|
|
303
|
+
try {
|
|
304
|
+
await transfer.onConfirmed();
|
|
305
|
+
} catch {
|
|
306
|
+
this.config.getDebugLogger().warn(
|
|
307
|
+
"The transfer completed, but the selected account could not be updated. Select the confirmed destination before continuing."
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
} finally {
|
|
313
|
+
state.busy = false;
|
|
314
|
+
}
|
|
315
|
+
}, "finish")
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
failure(error) {
|
|
319
|
+
if (error instanceof GatewayConversationError) return error;
|
|
320
|
+
let cause = error;
|
|
321
|
+
for (let depth = 0; depth < 5 && cause instanceof Error; depth++) {
|
|
322
|
+
if (cause instanceof GatewayConversationError) return cause;
|
|
323
|
+
cause = cause.cause;
|
|
324
|
+
}
|
|
325
|
+
const status = getErrorStatus(error);
|
|
326
|
+
const headers = new Headers();
|
|
327
|
+
for (const name of [
|
|
328
|
+
"x-o1gw-device-state",
|
|
329
|
+
"retry-after",
|
|
330
|
+
"x-o1gw-limit",
|
|
331
|
+
"x-o1gw-limit-reset"
|
|
332
|
+
]) {
|
|
333
|
+
const value = getErrorHeader(error, name);
|
|
334
|
+
if (value) headers.set(name, value);
|
|
335
|
+
}
|
|
336
|
+
const details = {
|
|
337
|
+
status,
|
|
338
|
+
headers,
|
|
339
|
+
providerCode: getRateLimitErrorDetails(error).providerCode
|
|
340
|
+
};
|
|
341
|
+
if (status === 409)
|
|
342
|
+
return new GatewayConversationError(
|
|
343
|
+
"conflict",
|
|
344
|
+
"The gateway refused continuity or account ownership for this conversation. The history and account are preserved. No automatic retry was made.",
|
|
345
|
+
details
|
|
346
|
+
);
|
|
347
|
+
if (status === 401 || status === 403)
|
|
348
|
+
return new GatewayConversationError(
|
|
349
|
+
"unavailable",
|
|
350
|
+
"The gateway refused authorization for the selected account or device. Reconnect the provider; no other account was selected.",
|
|
351
|
+
details
|
|
352
|
+
);
|
|
353
|
+
if (status === 429)
|
|
354
|
+
return new GatewayConversationError(
|
|
355
|
+
"unavailable",
|
|
356
|
+
`The selected account reached a gateway limit. No account transfer was authorized by this response.${headers.get("retry-after") ? ` Retry-After: ${headers.get("retry-after")}.` : " Try again after its reset."}`,
|
|
357
|
+
details
|
|
358
|
+
);
|
|
359
|
+
if (status && status >= 400 && status < 500 && status !== 408)
|
|
360
|
+
return new GatewayConversationError(
|
|
361
|
+
"unavailable",
|
|
362
|
+
`The gateway refused the request (HTTP ${status}). Your history is preserved.`,
|
|
363
|
+
details
|
|
364
|
+
);
|
|
365
|
+
return new GatewayConversationError(
|
|
366
|
+
"uncertain",
|
|
367
|
+
"The gateway request did not complete with a confirmed result. Execution may have started. Your history is preserved; the request was not replayed or moved to another account.",
|
|
368
|
+
details
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
async generateContent(request, promptId) {
|
|
372
|
+
request = this.prepareRequest(request);
|
|
373
|
+
const turn = await this.begin(request);
|
|
374
|
+
try {
|
|
375
|
+
const result = await gatewayRequestScope.run(
|
|
376
|
+
turn.scope,
|
|
377
|
+
() => this.wrapped.generateContent(request, promptId)
|
|
378
|
+
);
|
|
379
|
+
await turn.finish("complete");
|
|
380
|
+
return result;
|
|
381
|
+
} catch (error) {
|
|
382
|
+
const failure = this.failure(error);
|
|
383
|
+
await turn.finish(
|
|
384
|
+
failure.reason === "uncertain" ? "uncertain" : "refused"
|
|
385
|
+
);
|
|
386
|
+
throw failure;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
async generateContentStream(request, promptId) {
|
|
390
|
+
request = this.prepareRequest(request);
|
|
391
|
+
const turn = await this.begin(request);
|
|
392
|
+
let stream;
|
|
393
|
+
try {
|
|
394
|
+
stream = await gatewayRequestScope.run(
|
|
395
|
+
turn.scope,
|
|
396
|
+
() => this.wrapped.generateContentStream(request, promptId)
|
|
397
|
+
);
|
|
398
|
+
} catch (error) {
|
|
399
|
+
const failure2 = this.failure(error);
|
|
400
|
+
await turn.finish(
|
|
401
|
+
failure2.reason === "uncertain" ? "uncertain" : "refused"
|
|
402
|
+
);
|
|
403
|
+
throw failure2;
|
|
404
|
+
}
|
|
405
|
+
const failure = /* @__PURE__ */ __name((error) => this.failure(error), "failure");
|
|
406
|
+
const iterator = (async function* () {
|
|
407
|
+
let complete = false;
|
|
408
|
+
try {
|
|
409
|
+
while (true) {
|
|
410
|
+
const next2 = await gatewayRequestScope.run(
|
|
411
|
+
turn.scope,
|
|
412
|
+
() => stream.next()
|
|
413
|
+
);
|
|
414
|
+
if (next2.done) {
|
|
415
|
+
complete = true;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
yield next2.value;
|
|
419
|
+
}
|
|
420
|
+
} catch (error) {
|
|
421
|
+
throw failure(error);
|
|
422
|
+
} finally {
|
|
423
|
+
try {
|
|
424
|
+
await gatewayRequestScope.run(
|
|
425
|
+
turn.scope,
|
|
426
|
+
() => stream.return(void 0)
|
|
427
|
+
);
|
|
428
|
+
} finally {
|
|
429
|
+
await turn.finish(complete ? "complete" : "uncertain");
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
})();
|
|
433
|
+
let started = false;
|
|
434
|
+
const next = iterator.next.bind(iterator);
|
|
435
|
+
const end = iterator.return.bind(iterator);
|
|
436
|
+
iterator.next = (...args) => {
|
|
437
|
+
started = true;
|
|
438
|
+
return next(...args);
|
|
439
|
+
};
|
|
440
|
+
iterator.return = async (value) => {
|
|
441
|
+
if (!started) {
|
|
442
|
+
try {
|
|
443
|
+
await gatewayRequestScope.run(
|
|
444
|
+
turn.scope,
|
|
445
|
+
() => stream.return(void 0)
|
|
446
|
+
);
|
|
447
|
+
} finally {
|
|
448
|
+
await turn.finish("uncertain");
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
return end(value);
|
|
452
|
+
};
|
|
453
|
+
return iterator;
|
|
454
|
+
}
|
|
455
|
+
async embedContent(request) {
|
|
456
|
+
if (this.generatorConfig.model.startsWith("o1gw/") || request.model?.startsWith("o1gw/"))
|
|
457
|
+
throw new GatewayConversationError(
|
|
458
|
+
"unsupported",
|
|
459
|
+
"Embeddings are unavailable on this gateway conversation route. Select a separately configured embedding provider."
|
|
460
|
+
);
|
|
461
|
+
return this.wrapped.embedContent(request);
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
export {
|
|
465
|
+
GatewayContentGenerator
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* @license
|
|
469
|
+
* Copyright 2026 o1-code contributors
|
|
470
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
471
|
+
*/
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
checkProviderKey
|
|
5
|
+
} from "./chunk-B4K3VBFF.js";
|
|
6
|
+
import "./chunk-2QYMJSSC.js";
|
|
7
|
+
import {
|
|
8
|
+
captureReasoningSnapshot
|
|
9
|
+
} from "./chunk-F7SCCXXH.js";
|
|
10
|
+
import "./chunk-EYKEQPKF.js";
|
|
11
|
+
import "./chunk-YPTR7ZFB.js";
|
|
12
|
+
import "./chunk-I4WCGUHX.js";
|
|
13
|
+
import "./chunk-72EBG4FJ.js";
|
|
14
|
+
import {
|
|
15
|
+
GatewayConversationError
|
|
16
|
+
} from "./chunk-WXIQKOFD.js";
|
|
17
|
+
import "./chunk-O6V4DKZY.js";
|
|
18
|
+
import "./chunk-LEXKU5FI.js";
|
|
19
|
+
import "./chunk-VTIYMCRG.js";
|
|
20
|
+
import "./chunk-S6HB6BVJ.js";
|
|
21
|
+
import "./chunk-UK2KIU2V.js";
|
|
22
|
+
import "./chunk-HBBBH6YA.js";
|
|
23
|
+
import "./chunk-S3HSUBBN.js";
|
|
24
|
+
import "./chunk-3X2X4BF3.js";
|
|
25
|
+
import "./chunk-JAQAGKIV.js";
|
|
26
|
+
import {
|
|
27
|
+
init_esbuild_shims
|
|
28
|
+
} from "./chunk-S2467S6L.js";
|
|
29
|
+
import {
|
|
30
|
+
__name
|
|
31
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
32
|
+
|
|
33
|
+
// packages/core/src/providers/gateway-models.ts
|
|
34
|
+
init_esbuild_shims();
|
|
35
|
+
async function refreshGatewayModels(config, generation) {
|
|
36
|
+
const result = await checkProviderKey({
|
|
37
|
+
gateway: true,
|
|
38
|
+
protocol: generation.authType === "anthropic" /* USE_ANTHROPIC */ ? "anthropic" : "openai",
|
|
39
|
+
baseUrl: generation.baseUrl ?? "",
|
|
40
|
+
apiKey: generation.apiKey ?? "",
|
|
41
|
+
staticModels: [],
|
|
42
|
+
clientVersion: config.getCliVersion()
|
|
43
|
+
});
|
|
44
|
+
if (result.status !== "ok")
|
|
45
|
+
throw new GatewayConversationError(
|
|
46
|
+
"unavailable",
|
|
47
|
+
"The gateway model catalog could not be verified. Reconnect the provider or try again later; no account fallback was made."
|
|
48
|
+
);
|
|
49
|
+
const selected = result.models.find((model) => model.id === generation.model);
|
|
50
|
+
if (!selected)
|
|
51
|
+
throw new GatewayConversationError(
|
|
52
|
+
"unavailable",
|
|
53
|
+
"The selected account/model is no longer advertised by this gateway. Select an available route or start a new empty conversation; no fallback was made."
|
|
54
|
+
);
|
|
55
|
+
const limit = selected.contextWindowSize;
|
|
56
|
+
if (limit)
|
|
57
|
+
generation.contextWindowSize = Math.min(
|
|
58
|
+
generation.contextWindowSize ?? limit,
|
|
59
|
+
limit
|
|
60
|
+
);
|
|
61
|
+
if (selected.modalities) generation.modalities = selected.modalities;
|
|
62
|
+
if (selected.maxOutputTokens)
|
|
63
|
+
generation.samplingParams = {
|
|
64
|
+
...generation.samplingParams,
|
|
65
|
+
max_tokens: Math.min(
|
|
66
|
+
typeof generation.samplingParams?.max_tokens === "number" ? generation.samplingParams.max_tokens : selected.maxOutputTokens,
|
|
67
|
+
selected.maxOutputTokens
|
|
68
|
+
)
|
|
69
|
+
};
|
|
70
|
+
if (!selected.capabilities?.reasoning) generation.reasoning = void 0;
|
|
71
|
+
const saved = config.getModelProvidersConfig();
|
|
72
|
+
if (!saved) return;
|
|
73
|
+
const models = new Map(result.models.map((model) => [model.id, model]));
|
|
74
|
+
const normalize = /* @__PURE__ */ __name((url) => url?.replace(/\/+$/, "").replace(/\/v1$/, ""), "normalize");
|
|
75
|
+
const origin = normalize(
|
|
76
|
+
generation.reasoningRouteBaseUrl ?? generation.baseUrl
|
|
77
|
+
);
|
|
78
|
+
config.reloadModelProvidersConfig(
|
|
79
|
+
Object.fromEntries(
|
|
80
|
+
Object.entries(saved).map(([provider, entries]) => [
|
|
81
|
+
provider,
|
|
82
|
+
entries.flatMap((entry) => {
|
|
83
|
+
if (normalize(entry.baseUrl) !== origin || entry.connection !== generation.connection)
|
|
84
|
+
return [entry];
|
|
85
|
+
const discovered = models.get(entry.id);
|
|
86
|
+
if (!discovered) return [];
|
|
87
|
+
const window = discovered.contextWindowSize;
|
|
88
|
+
return [
|
|
89
|
+
{
|
|
90
|
+
...entry,
|
|
91
|
+
capabilities: {
|
|
92
|
+
...entry.capabilities,
|
|
93
|
+
...discovered.capabilities,
|
|
94
|
+
gateway: discovered.capabilities?.gateway ?? {},
|
|
95
|
+
reasoning: discovered.capabilities?.reasoning
|
|
96
|
+
},
|
|
97
|
+
generationConfig: {
|
|
98
|
+
...entry.generationConfig,
|
|
99
|
+
...window ? {
|
|
100
|
+
contextWindowSize: Math.min(
|
|
101
|
+
entry.generationConfig?.contextWindowSize ?? window,
|
|
102
|
+
window
|
|
103
|
+
)
|
|
104
|
+
} : {},
|
|
105
|
+
...discovered.modalities ? { modalities: discovered.modalities } : {},
|
|
106
|
+
...discovered.maxOutputTokens ? {
|
|
107
|
+
samplingParams: {
|
|
108
|
+
...entry.generationConfig?.samplingParams,
|
|
109
|
+
max_tokens: Math.min(
|
|
110
|
+
typeof entry.generationConfig?.samplingParams?.max_tokens === "number" ? entry.generationConfig.samplingParams.max_tokens : discovered.maxOutputTokens,
|
|
111
|
+
discovered.maxOutputTokens
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
} : {}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
];
|
|
118
|
+
})
|
|
119
|
+
])
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
generation.reasoningSnapshot = captureReasoningSnapshot(
|
|
123
|
+
config.getAllConfiguredModels()
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
__name(refreshGatewayModels, "refreshGatewayModels");
|
|
127
|
+
export {
|
|
128
|
+
refreshGatewayModels
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* @license
|
|
132
|
+
* Copyright 2026 o1-code contributors
|
|
133
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
134
|
+
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
assertGatewayTransferCompatible,
|
|
5
|
+
confirmGatewayTransfer,
|
|
6
|
+
gatewayAccountRoute,
|
|
7
|
+
gatewayTransferFingerprint,
|
|
8
|
+
isGatewayAccountChange,
|
|
9
|
+
prepareGatewayTransfer,
|
|
10
|
+
registerGatewayTransferConfirmation,
|
|
11
|
+
stageGatewayTransfer,
|
|
12
|
+
takeGatewayTransfer
|
|
13
|
+
} from "./chunk-V24FMEXL.js";
|
|
14
|
+
import "./chunk-WXIQKOFD.js";
|
|
15
|
+
import "./chunk-S2467S6L.js";
|
|
16
|
+
import "./chunk-J2S4EL5Y.js";
|
|
17
|
+
export {
|
|
18
|
+
assertGatewayTransferCompatible,
|
|
19
|
+
confirmGatewayTransfer,
|
|
20
|
+
gatewayAccountRoute,
|
|
21
|
+
gatewayTransferFingerprint,
|
|
22
|
+
isGatewayAccountChange,
|
|
23
|
+
prepareGatewayTransfer,
|
|
24
|
+
registerGatewayTransferConfirmation,
|
|
25
|
+
stageGatewayTransfer,
|
|
26
|
+
takeGatewayTransfer
|
|
27
|
+
};
|