@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
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
require_main,
|
|
20
20
|
resolveEnvVarsInObject
|
|
21
21
|
} from "./chunk-EYWIFUPJ.js";
|
|
22
|
+
import {
|
|
23
|
+
claimTask,
|
|
24
|
+
listTasks,
|
|
25
|
+
onTasksUpdated,
|
|
26
|
+
unassignTeammateTasks
|
|
27
|
+
} from "./chunk-X427DWFD.js";
|
|
22
28
|
import {
|
|
23
29
|
CronScheduler,
|
|
24
30
|
DEFAULT_RECURRING_MAX_AGE_DAYS,
|
|
@@ -34,71 +40,6 @@ import {
|
|
|
34
40
|
wrapConfirmWithBadge,
|
|
35
41
|
writeMessage
|
|
36
42
|
} from "./chunk-7H3GWNGJ.js";
|
|
37
|
-
import {
|
|
38
|
-
claimTask,
|
|
39
|
-
listTasks,
|
|
40
|
-
onTasksUpdated,
|
|
41
|
-
unassignTeammateTasks
|
|
42
|
-
} from "./chunk-X427DWFD.js";
|
|
43
|
-
import {
|
|
44
|
-
AGENT_WORKTREE_SLUG_PATTERN,
|
|
45
|
-
GitWorktreeService,
|
|
46
|
-
MAX_DIFF_SIZE_BYTES,
|
|
47
|
-
clearRuntimeStatus,
|
|
48
|
-
generateAgentWorktreeSlug,
|
|
49
|
-
gitEnv,
|
|
50
|
-
loadSimpleGit,
|
|
51
|
-
readRuntimeStatus,
|
|
52
|
-
worktreeBranchForSlug,
|
|
53
|
-
worktreeHasWork,
|
|
54
|
-
writeRuntimeStatus,
|
|
55
|
-
writeWorktreeSessionMarker
|
|
56
|
-
} from "./chunk-JHRVJBV5.js";
|
|
57
|
-
import {
|
|
58
|
-
hasVerifiableInode,
|
|
59
|
-
openSyncNoFollow
|
|
60
|
-
} from "./chunk-DJOP5LOE.js";
|
|
61
|
-
import {
|
|
62
|
-
SessionArtifactSnapshotAccumulator,
|
|
63
|
-
aggregateTranscriptRecordFragments,
|
|
64
|
-
deleteArtifactSnapshot,
|
|
65
|
-
getWebPreviewSnapshotId,
|
|
66
|
-
isSessionArtifactRecord,
|
|
67
|
-
isTranscriptConversationRecord,
|
|
68
|
-
isUserPromptSubmitContextPartText,
|
|
69
|
-
openBrowserSecurely,
|
|
70
|
-
prepareTranscriptRecords,
|
|
71
|
-
projectUserTranscriptForDisplay,
|
|
72
|
-
rebuildSessionArtifactSnapshot,
|
|
73
|
-
remapSessionArtifactPayloadForFork,
|
|
74
|
-
retainArtifactSnapshot,
|
|
75
|
-
selectActiveSideArtifactRecordUuids,
|
|
76
|
-
selectTranscriptLeaf,
|
|
77
|
-
shouldAttemptBrowserLaunch,
|
|
78
|
-
stripGeneratedAttachmentTokens,
|
|
79
|
-
validateTranscriptRecord,
|
|
80
|
-
walkTranscriptUuidChain,
|
|
81
|
-
wrapUserPromptSubmitContext
|
|
82
|
-
} from "./chunk-FDNTWDR3.js";
|
|
83
|
-
import {
|
|
84
|
-
SHARED_RECORD_SLOT,
|
|
85
|
-
deriveSessionName,
|
|
86
|
-
patchSessionRecord,
|
|
87
|
-
unregisterSession
|
|
88
|
-
} from "./chunk-KEPNWFUD.js";
|
|
89
|
-
import {
|
|
90
|
-
LEADER_NAME,
|
|
91
|
-
MAX_TEAMMATES,
|
|
92
|
-
assignTeammateColor,
|
|
93
|
-
classifyShutdownResponse,
|
|
94
|
-
findMemberByName,
|
|
95
|
-
formatAgentId,
|
|
96
|
-
generateUniqueTeammateName,
|
|
97
|
-
readLocalBootId,
|
|
98
|
-
readPidNamespaceId,
|
|
99
|
-
sanitizeName,
|
|
100
|
-
writeTeamFile
|
|
101
|
-
} from "./chunk-OI7IVUEO.js";
|
|
102
43
|
import {
|
|
103
44
|
AgentOutputMessageCapture,
|
|
104
45
|
DEFAULT_OTLP_ENDPOINT,
|
|
@@ -158,70 +99,93 @@ import {
|
|
|
158
99
|
stringify,
|
|
159
100
|
validateGoalProposalReason,
|
|
160
101
|
validateSkillName
|
|
161
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-RWUZRVUT.js";
|
|
162
103
|
import {
|
|
163
104
|
canUseRipgrep
|
|
164
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-AJDAOH4D.js";
|
|
165
106
|
import {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
107
|
+
AGENT_WORKTREE_SLUG_PATTERN,
|
|
108
|
+
GitWorktreeService,
|
|
109
|
+
MAX_DIFF_SIZE_BYTES,
|
|
110
|
+
clearRuntimeStatus,
|
|
111
|
+
generateAgentWorktreeSlug,
|
|
112
|
+
gitEnv,
|
|
113
|
+
loadSimpleGit,
|
|
114
|
+
readRuntimeStatus,
|
|
115
|
+
worktreeBranchForSlug,
|
|
116
|
+
worktreeHasWork,
|
|
117
|
+
writeRuntimeStatus,
|
|
118
|
+
writeWorktreeSessionMarker
|
|
119
|
+
} from "./chunk-GM7RKZZ4.js";
|
|
169
120
|
import {
|
|
170
|
-
|
|
171
|
-
|
|
121
|
+
hasVerifiableInode,
|
|
122
|
+
openSyncNoFollow
|
|
123
|
+
} from "./chunk-DJOP5LOE.js";
|
|
172
124
|
import {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
125
|
+
SessionArtifactSnapshotAccumulator,
|
|
126
|
+
aggregateTranscriptRecordFragments,
|
|
127
|
+
deleteArtifactSnapshot,
|
|
128
|
+
getWebPreviewSnapshotId,
|
|
129
|
+
isSessionArtifactRecord,
|
|
130
|
+
isTranscriptConversationRecord,
|
|
131
|
+
isUserPromptSubmitContextPartText,
|
|
132
|
+
openBrowserSecurely,
|
|
133
|
+
prepareTranscriptRecords,
|
|
134
|
+
projectUserTranscriptForDisplay,
|
|
135
|
+
rebuildSessionArtifactSnapshot,
|
|
136
|
+
remapSessionArtifactPayloadForFork,
|
|
137
|
+
retainArtifactSnapshot,
|
|
138
|
+
selectActiveSideArtifactRecordUuids,
|
|
139
|
+
selectTranscriptLeaf,
|
|
140
|
+
shouldAttemptBrowserLaunch,
|
|
141
|
+
stripGeneratedAttachmentTokens,
|
|
142
|
+
validateTranscriptRecord,
|
|
143
|
+
walkTranscriptUuidChain,
|
|
144
|
+
wrapUserPromptSubmitContext
|
|
145
|
+
} from "./chunk-FDNTWDR3.js";
|
|
176
146
|
import {
|
|
177
|
-
|
|
178
|
-
|
|
147
|
+
SHARED_RECORD_SLOT,
|
|
148
|
+
deriveSessionName,
|
|
149
|
+
patchSessionRecord,
|
|
150
|
+
unregisterSession
|
|
151
|
+
} from "./chunk-KEPNWFUD.js";
|
|
152
|
+
import {
|
|
153
|
+
LEADER_NAME,
|
|
154
|
+
MAX_TEAMMATES,
|
|
155
|
+
assignTeammateColor,
|
|
156
|
+
classifyShutdownResponse,
|
|
157
|
+
findMemberByName,
|
|
158
|
+
formatAgentId,
|
|
159
|
+
generateUniqueTeammateName,
|
|
160
|
+
readLocalBootId,
|
|
161
|
+
readPidNamespaceId,
|
|
162
|
+
sanitizeName,
|
|
163
|
+
writeTeamFile
|
|
164
|
+
} from "./chunk-OI7IVUEO.js";
|
|
179
165
|
import {
|
|
180
166
|
buildModelIdContext,
|
|
181
167
|
resolveModelId
|
|
182
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-QYJB4I22.js";
|
|
169
|
+
import {
|
|
170
|
+
glob,
|
|
171
|
+
globSync
|
|
172
|
+
} from "./chunk-4ESI3MQ5.js";
|
|
183
173
|
import {
|
|
184
174
|
isTruthy
|
|
185
175
|
} from "./chunk-SYMKXR42.js";
|
|
186
176
|
import {
|
|
187
177
|
normalizeImageGenerationBaseUrl
|
|
188
|
-
} from "./chunk-
|
|
189
|
-
import {
|
|
190
|
-
resolveNetworkTarget
|
|
191
|
-
} from "./chunk-HPQNI3OQ.js";
|
|
192
|
-
import {
|
|
193
|
-
isOmniDeliveryActive
|
|
194
|
-
} from "./chunk-P3H5PNSO.js";
|
|
178
|
+
} from "./chunk-5WCEM6DZ.js";
|
|
195
179
|
import {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
isMediaPolicyToolHiddenFromModel,
|
|
199
|
-
resolveMediaPolicyModelAccess
|
|
200
|
-
} from "./chunk-CI2ZHR5C.js";
|
|
180
|
+
restoreSessionSources
|
|
181
|
+
} from "./chunk-CDYMT4OZ.js";
|
|
201
182
|
import {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
getArenaSystemReminder,
|
|
206
|
-
getCompressionPrompt,
|
|
207
|
-
getCoreSystemPrompt,
|
|
208
|
-
getCustomSystemPrompt,
|
|
209
|
-
getManualPlanExitSystemReminder,
|
|
210
|
-
getOutputStyleTurnReminder,
|
|
211
|
-
getPlanModeSystemReminder,
|
|
212
|
-
resolveEffectiveOutputStyle,
|
|
213
|
-
resolveInteractionMode,
|
|
214
|
-
resolveMainSessionOutputStyle,
|
|
215
|
-
withDisplayModePrompt
|
|
216
|
-
} from "./chunk-M7ZHP7VU.js";
|
|
183
|
+
CODE_MODE_MAX_MEDIA_BYTES,
|
|
184
|
+
CODE_MODE_MAX_MEDIA_ITEMS
|
|
185
|
+
} from "./chunk-TC7UXK4M.js";
|
|
217
186
|
import {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
getCachedGitBranch,
|
|
221
|
-
getGitBranch,
|
|
222
|
-
getRecentGitStatus,
|
|
223
|
-
isGitRepository
|
|
224
|
-
} from "./chunk-IO32UWHY.js";
|
|
187
|
+
parsePositiveIntegerEnv
|
|
188
|
+
} from "./chunk-DS3COGEF.js";
|
|
225
189
|
import {
|
|
226
190
|
ShellExecutionService,
|
|
227
191
|
executeBwrap,
|
|
@@ -272,6 +236,18 @@ import {
|
|
|
272
236
|
assertShellSandboxCwd,
|
|
273
237
|
probeShellSandbox
|
|
274
238
|
} from "./chunk-3K7BQWZY.js";
|
|
239
|
+
import {
|
|
240
|
+
resolveNetworkTarget
|
|
241
|
+
} from "./chunk-HPQNI3OQ.js";
|
|
242
|
+
import {
|
|
243
|
+
isOmniDeliveryActive
|
|
244
|
+
} from "./chunk-W4LHOCZD.js";
|
|
245
|
+
import {
|
|
246
|
+
MediaResourceRegistry,
|
|
247
|
+
evaluateMediaPolicyToolCall,
|
|
248
|
+
isMediaPolicyToolHiddenFromModel,
|
|
249
|
+
resolveMediaPolicyModelAccess
|
|
250
|
+
} from "./chunk-CI2ZHR5C.js";
|
|
275
251
|
import {
|
|
276
252
|
require_proper_lockfile
|
|
277
253
|
} from "./chunk-4LCUE7BN.js";
|
|
@@ -315,6 +291,30 @@ import {
|
|
|
315
291
|
import {
|
|
316
292
|
require_shell_quote
|
|
317
293
|
} from "./chunk-WZCKDUBO.js";
|
|
294
|
+
import {
|
|
295
|
+
AskUserQuestionTool,
|
|
296
|
+
TrustedUserAnswers,
|
|
297
|
+
assembleSystemPrompt,
|
|
298
|
+
getArenaSystemReminder,
|
|
299
|
+
getCompressionPrompt,
|
|
300
|
+
getCoreSystemPrompt,
|
|
301
|
+
getCustomSystemPrompt,
|
|
302
|
+
getManualPlanExitSystemReminder,
|
|
303
|
+
getOutputStyleTurnReminder,
|
|
304
|
+
getPlanModeSystemReminder,
|
|
305
|
+
resolveEffectiveOutputStyle,
|
|
306
|
+
resolveInteractionMode,
|
|
307
|
+
resolveMainSessionOutputStyle,
|
|
308
|
+
withDisplayModePrompt
|
|
309
|
+
} from "./chunk-M7ZHP7VU.js";
|
|
310
|
+
import {
|
|
311
|
+
NO_EXEC_CONFIG,
|
|
312
|
+
findGitRoot,
|
|
313
|
+
getCachedGitBranch,
|
|
314
|
+
getGitBranch,
|
|
315
|
+
getRecentGitStatus,
|
|
316
|
+
isGitRepository
|
|
317
|
+
} from "./chunk-IO32UWHY.js";
|
|
318
318
|
import {
|
|
319
319
|
InMemoryImagePayloadStore,
|
|
320
320
|
buildReattachParts,
|
|
@@ -332,7 +332,7 @@ import {
|
|
|
332
332
|
import {
|
|
333
333
|
DashScopeOpenAICompatibleProvider,
|
|
334
334
|
selectDashScopeThinkingKnob
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-B3VFKGW7.js";
|
|
336
336
|
import {
|
|
337
337
|
InvalidStreamError,
|
|
338
338
|
getToolCallPreparations,
|
|
@@ -366,109 +366,6 @@ import {
|
|
|
366
366
|
isTeammate,
|
|
367
367
|
runWithTeammateIdentity
|
|
368
368
|
} from "./chunk-FOZEB37P.js";
|
|
369
|
-
import {
|
|
370
|
-
BUBBLE_APPROVAL_MODE,
|
|
371
|
-
FORK_AGENT,
|
|
372
|
-
FORK_DEFAULT_MAX_TURNS,
|
|
373
|
-
FORK_PLACEHOLDER_RESULT,
|
|
374
|
-
FORK_SUBAGENT_TYPE,
|
|
375
|
-
SubagentError,
|
|
376
|
-
SubagentErrorCode,
|
|
377
|
-
buildAvailableSkillsReminder,
|
|
378
|
-
buildChangedAgentsReminder,
|
|
379
|
-
buildChangedMcpToolsReminder,
|
|
380
|
-
buildChangedSkillsReminder,
|
|
381
|
-
buildChildMessage,
|
|
382
|
-
buildDeferredToolsReminder,
|
|
383
|
-
buildForkExecutionAllowlist,
|
|
384
|
-
buildForkedMessages,
|
|
385
|
-
buildFunctionResponseParts,
|
|
386
|
-
buildMcpServerInstructionsReminder,
|
|
387
|
-
buildMcpServerInstructionsReminderFromEntries,
|
|
388
|
-
buildPinnedWorktreeNotice,
|
|
389
|
-
buildWorktreeNotice,
|
|
390
|
-
formatDateForContext,
|
|
391
|
-
getDirectoryContextString,
|
|
392
|
-
getInitialChatHistory,
|
|
393
|
-
getStartupContextLength,
|
|
394
|
-
isSystemReminderContent,
|
|
395
|
-
normalizeForkTurns,
|
|
396
|
-
registerForkDisplayImageForCache,
|
|
397
|
-
resolveForkExecutionAllowedTools,
|
|
398
|
-
runInForkContext,
|
|
399
|
-
selectForkHistory,
|
|
400
|
-
stripSystemReminderBlocks,
|
|
401
|
-
validateForkToolList,
|
|
402
|
-
wrapSystemReminder
|
|
403
|
-
} from "./chunk-DNMM4RF7.js";
|
|
404
|
-
import {
|
|
405
|
-
clearLoadedSkillTracking,
|
|
406
|
-
collectAvailableSkillEntries,
|
|
407
|
-
renderAvailableSkillsBlock
|
|
408
|
-
} from "./chunk-2SMHE6PC.js";
|
|
409
|
-
import {
|
|
410
|
-
DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
|
|
411
|
-
O1CodeIgnoreParser,
|
|
412
|
-
formatO1CodeIgnoreFileNames,
|
|
413
|
-
require_ignore
|
|
414
|
-
} from "./chunk-OHAUN3Q5.js";
|
|
415
|
-
import {
|
|
416
|
-
WorkspaceContext,
|
|
417
|
-
isPathWithinRoot
|
|
418
|
-
} from "./chunk-O7QDVXNJ.js";
|
|
419
|
-
import {
|
|
420
|
-
DefaultHookOutput,
|
|
421
|
-
HOOKS_CONFIG_FIELDS,
|
|
422
|
-
HookEventName,
|
|
423
|
-
PermissionRequestHookOutput,
|
|
424
|
-
PostToolBatchHookOutput,
|
|
425
|
-
PostToolUseFailureHookOutput,
|
|
426
|
-
PostToolUseHookOutput,
|
|
427
|
-
PreToolUseHookOutput,
|
|
428
|
-
StopHookOutput,
|
|
429
|
-
UserPromptExpansionHookOutput,
|
|
430
|
-
createHookOutput,
|
|
431
|
-
escapeSystemReminderTags,
|
|
432
|
-
escapeXml,
|
|
433
|
-
escapeXmlElementText,
|
|
434
|
-
getHookKey,
|
|
435
|
-
isBlockingHookOutput,
|
|
436
|
-
isToolArtifactLike
|
|
437
|
-
} from "./chunk-SRFL3HFU.js";
|
|
438
|
-
import {
|
|
439
|
-
getResponsesMessage,
|
|
440
|
-
sameResponsesMessage
|
|
441
|
-
} from "./chunk-BQAZCJF7.js";
|
|
442
|
-
import {
|
|
443
|
-
QUOTA_EXHAUSTED_PREFIX,
|
|
444
|
-
ResponsesHttpError,
|
|
445
|
-
classifyRetryError,
|
|
446
|
-
delay,
|
|
447
|
-
formatQuotaExhaustedMessage,
|
|
448
|
-
getErrorHeader,
|
|
449
|
-
getRateLimitErrorDetails,
|
|
450
|
-
getRateLimitRetryDelayMs,
|
|
451
|
-
isApiError,
|
|
452
|
-
isFallbackEligible,
|
|
453
|
-
isQuotaExhaustedError,
|
|
454
|
-
isRateLimitError,
|
|
455
|
-
isRetryableUpstreamError,
|
|
456
|
-
isStructuredError,
|
|
457
|
-
isUnattendedMode,
|
|
458
|
-
retryWithBackoff
|
|
459
|
-
} from "./chunk-GM2WNDZ5.js";
|
|
460
|
-
import {
|
|
461
|
-
getThoughtSummary
|
|
462
|
-
} from "./chunk-CP63SY5N.js";
|
|
463
|
-
import {
|
|
464
|
-
captureReasoningSnapshot,
|
|
465
|
-
resolveReasoningCapabilities,
|
|
466
|
-
resolveReasoningForModel,
|
|
467
|
-
validateReasoningCapabilities
|
|
468
|
-
} from "./chunk-TZ7PFWVT.js";
|
|
469
|
-
import {
|
|
470
|
-
addDaemonRequestAttribute
|
|
471
|
-
} from "./chunk-2F3GZ6WG.js";
|
|
472
369
|
import {
|
|
473
370
|
ApiRetryEvent,
|
|
474
371
|
COMBINED_PASS_TOLERANCE_FACTOR,
|
|
@@ -561,7 +458,7 @@ import {
|
|
|
561
458
|
updateMCPServerStatus,
|
|
562
459
|
writeLine,
|
|
563
460
|
writeLineSync
|
|
564
|
-
} from "./chunk-
|
|
461
|
+
} from "./chunk-2OEBEF5L.js";
|
|
565
462
|
import {
|
|
566
463
|
Mutex
|
|
567
464
|
} from "./chunk-242JUBPM.js";
|
|
@@ -594,7 +491,7 @@ import {
|
|
|
594
491
|
readTextCursorWindowFromHandle,
|
|
595
492
|
readTextRangeFromHandle,
|
|
596
493
|
setMemoryFilename
|
|
597
|
-
} from "./chunk-
|
|
494
|
+
} from "./chunk-H5L5E5NI.js";
|
|
598
495
|
import {
|
|
599
496
|
extractCodeModeImageContent,
|
|
600
497
|
getCurrentToolCallSource,
|
|
@@ -604,10 +501,7 @@ import {
|
|
|
604
501
|
} from "./chunk-3CMX5LCG.js";
|
|
605
502
|
import {
|
|
606
503
|
runSideQuery
|
|
607
|
-
} from "./chunk-
|
|
608
|
-
import {
|
|
609
|
-
clampInlineMediaPart
|
|
610
|
-
} from "./chunk-SZ26YNBZ.js";
|
|
504
|
+
} from "./chunk-HQROPADY.js";
|
|
611
505
|
import {
|
|
612
506
|
getSystemEncoding
|
|
613
507
|
} from "./chunk-V4XETRAG.js";
|
|
@@ -615,6 +509,9 @@ import {
|
|
|
615
509
|
getInvocationContext,
|
|
616
510
|
runWithInvocationContext
|
|
617
511
|
} from "./chunk-ABTPVII7.js";
|
|
512
|
+
import {
|
|
513
|
+
clampInlineMediaPart
|
|
514
|
+
} from "./chunk-SZ26YNBZ.js";
|
|
618
515
|
import {
|
|
619
516
|
normalizeMcpToolName,
|
|
620
517
|
sanitizeToolNameForProvider
|
|
@@ -622,6 +519,75 @@ import {
|
|
|
622
519
|
import {
|
|
623
520
|
STRUCTURED_OUTPUT_REDACTED_ARGS
|
|
624
521
|
} from "./chunk-IMLPJ76O.js";
|
|
522
|
+
import {
|
|
523
|
+
BUBBLE_APPROVAL_MODE,
|
|
524
|
+
FORK_AGENT,
|
|
525
|
+
FORK_DEFAULT_MAX_TURNS,
|
|
526
|
+
FORK_PLACEHOLDER_RESULT,
|
|
527
|
+
FORK_SUBAGENT_TYPE,
|
|
528
|
+
SubagentError,
|
|
529
|
+
SubagentErrorCode,
|
|
530
|
+
buildAvailableSkillsReminder,
|
|
531
|
+
buildChangedAgentsReminder,
|
|
532
|
+
buildChangedMcpToolsReminder,
|
|
533
|
+
buildChangedSkillsReminder,
|
|
534
|
+
buildChildMessage,
|
|
535
|
+
buildDeferredToolsReminder,
|
|
536
|
+
buildForkExecutionAllowlist,
|
|
537
|
+
buildForkedMessages,
|
|
538
|
+
buildFunctionResponseParts,
|
|
539
|
+
buildMcpServerInstructionsReminder,
|
|
540
|
+
buildMcpServerInstructionsReminderFromEntries,
|
|
541
|
+
buildPinnedWorktreeNotice,
|
|
542
|
+
buildWorktreeNotice,
|
|
543
|
+
formatDateForContext,
|
|
544
|
+
getDirectoryContextString,
|
|
545
|
+
getInitialChatHistory,
|
|
546
|
+
getStartupContextLength,
|
|
547
|
+
isSystemReminderContent,
|
|
548
|
+
normalizeForkTurns,
|
|
549
|
+
registerForkDisplayImageForCache,
|
|
550
|
+
resolveForkExecutionAllowedTools,
|
|
551
|
+
runInForkContext,
|
|
552
|
+
selectForkHistory,
|
|
553
|
+
stripSystemReminderBlocks,
|
|
554
|
+
validateForkToolList,
|
|
555
|
+
wrapSystemReminder
|
|
556
|
+
} from "./chunk-DNMM4RF7.js";
|
|
557
|
+
import {
|
|
558
|
+
clearLoadedSkillTracking,
|
|
559
|
+
collectAvailableSkillEntries,
|
|
560
|
+
renderAvailableSkillsBlock
|
|
561
|
+
} from "./chunk-2SMHE6PC.js";
|
|
562
|
+
import {
|
|
563
|
+
DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
|
|
564
|
+
O1CodeIgnoreParser,
|
|
565
|
+
formatO1CodeIgnoreFileNames,
|
|
566
|
+
require_ignore
|
|
567
|
+
} from "./chunk-OHAUN3Q5.js";
|
|
568
|
+
import {
|
|
569
|
+
WorkspaceContext,
|
|
570
|
+
isPathWithinRoot
|
|
571
|
+
} from "./chunk-O7QDVXNJ.js";
|
|
572
|
+
import {
|
|
573
|
+
DefaultHookOutput,
|
|
574
|
+
HOOKS_CONFIG_FIELDS,
|
|
575
|
+
HookEventName,
|
|
576
|
+
PermissionRequestHookOutput,
|
|
577
|
+
PostToolBatchHookOutput,
|
|
578
|
+
PostToolUseFailureHookOutput,
|
|
579
|
+
PostToolUseHookOutput,
|
|
580
|
+
PreToolUseHookOutput,
|
|
581
|
+
StopHookOutput,
|
|
582
|
+
UserPromptExpansionHookOutput,
|
|
583
|
+
createHookOutput,
|
|
584
|
+
escapeSystemReminderTags,
|
|
585
|
+
escapeXml,
|
|
586
|
+
escapeXmlElementText,
|
|
587
|
+
getHookKey,
|
|
588
|
+
isBlockingHookOutput,
|
|
589
|
+
isToolArtifactLike
|
|
590
|
+
} from "./chunk-SRFL3HFU.js";
|
|
625
591
|
import {
|
|
626
592
|
AgentStatistics,
|
|
627
593
|
BaseDeclarativeTool,
|
|
@@ -635,6 +601,37 @@ import {
|
|
|
635
601
|
require_ajv,
|
|
636
602
|
require_dist
|
|
637
603
|
} from "./chunk-V44Y3PCO.js";
|
|
604
|
+
import {
|
|
605
|
+
getResponsesMessage,
|
|
606
|
+
sameResponsesMessage
|
|
607
|
+
} from "./chunk-BQAZCJF7.js";
|
|
608
|
+
import {
|
|
609
|
+
getThoughtSummary
|
|
610
|
+
} from "./chunk-CP63SY5N.js";
|
|
611
|
+
import {
|
|
612
|
+
captureReasoningSnapshot,
|
|
613
|
+
resolveReasoningCapabilities,
|
|
614
|
+
resolveReasoningForModel,
|
|
615
|
+
validateReasoningCapabilities
|
|
616
|
+
} from "./chunk-F7SCCXXH.js";
|
|
617
|
+
import {
|
|
618
|
+
QUOTA_EXHAUSTED_PREFIX,
|
|
619
|
+
ResponsesHttpError,
|
|
620
|
+
classifyRetryError,
|
|
621
|
+
delay,
|
|
622
|
+
formatQuotaExhaustedMessage,
|
|
623
|
+
getErrorHeader,
|
|
624
|
+
getRateLimitErrorDetails,
|
|
625
|
+
getRateLimitRetryDelayMs,
|
|
626
|
+
isApiError,
|
|
627
|
+
isFallbackEligible,
|
|
628
|
+
isQuotaExhaustedError,
|
|
629
|
+
isRateLimitError,
|
|
630
|
+
isRetryableUpstreamError,
|
|
631
|
+
isStructuredError,
|
|
632
|
+
isUnattendedMode,
|
|
633
|
+
retryWithBackoff
|
|
634
|
+
} from "./chunk-YPTR7ZFB.js";
|
|
638
635
|
import {
|
|
639
636
|
DEFAULT_IMAGE_TOKEN_ESTIMATE,
|
|
640
637
|
TOKEN_TO_CHAR_RATIO,
|
|
@@ -653,6 +650,9 @@ import {
|
|
|
653
650
|
canonicalToolName,
|
|
654
651
|
resolveBuiltinToolName
|
|
655
652
|
} from "./chunk-SYMYKLO4.js";
|
|
653
|
+
import {
|
|
654
|
+
addDaemonRequestAttribute
|
|
655
|
+
} from "./chunk-LMFAYXBU.js";
|
|
656
656
|
import {
|
|
657
657
|
safeJsonStringify
|
|
658
658
|
} from "./chunk-IQEM74QW.js";
|
|
@@ -699,36 +699,20 @@ import {
|
|
|
699
699
|
startToolExecutionSpan,
|
|
700
700
|
startToolSpan,
|
|
701
701
|
truncateSpanError
|
|
702
|
-
} from "./chunk-
|
|
702
|
+
} from "./chunk-W5XYWVXE.js";
|
|
703
703
|
import {
|
|
704
704
|
normalizeContent,
|
|
705
705
|
stripAnsiAndControl,
|
|
706
706
|
stripHtmlComments
|
|
707
707
|
} from "./chunk-FKI7XUZK.js";
|
|
708
708
|
import {
|
|
709
|
-
FileTokenStorage,
|
|
710
|
-
HybridTokenStorage,
|
|
711
|
-
TokenStorageType,
|
|
712
|
-
o1ConnectBaseUrlFor,
|
|
713
|
-
openO1Connect
|
|
714
|
-
} from "./chunk-JKXGHDQ2.js";
|
|
715
|
-
import {
|
|
716
|
-
atomicWriteFile,
|
|
717
|
-
atomicWriteFileSync,
|
|
718
|
-
atomicWriteJSON,
|
|
719
|
-
renameWithRetry
|
|
720
|
-
} from "./chunk-EPJAMNLS.js";
|
|
721
|
-
import {
|
|
722
|
-
BRAND,
|
|
723
709
|
ModelsConfig,
|
|
724
|
-
ORGANIZAONE_ANTHROPIC_BASE_URL,
|
|
725
710
|
isImageGenerationCapable,
|
|
726
|
-
isOrganizaOneBaseUrl,
|
|
727
711
|
resolveModelApiKey,
|
|
728
712
|
resolveProviderProtocol,
|
|
729
713
|
resolveSavedModelApiKey,
|
|
730
714
|
stripRuntimeSnapshotPrefix
|
|
731
|
-
} from "./chunk-
|
|
715
|
+
} from "./chunk-I4WCGUHX.js";
|
|
732
716
|
import {
|
|
733
717
|
DEFAULT_TOKEN_LIMIT,
|
|
734
718
|
OUTPUT_TOKEN_CEILING,
|
|
@@ -746,6 +730,33 @@ import {
|
|
|
746
730
|
setGeneratorReasoningEffort,
|
|
747
731
|
tokenLimit
|
|
748
732
|
} from "./chunk-72EBG4FJ.js";
|
|
733
|
+
import {
|
|
734
|
+
GatewayConversationError,
|
|
735
|
+
createGatewayIndependentRequest,
|
|
736
|
+
gatewayIndependentInput
|
|
737
|
+
} from "./chunk-WXIQKOFD.js";
|
|
738
|
+
import {
|
|
739
|
+
require_src
|
|
740
|
+
} from "./chunk-RC67CA5Z.js";
|
|
741
|
+
import {
|
|
742
|
+
resolveAgentShell
|
|
743
|
+
} from "./chunk-AK6T4SJC.js";
|
|
744
|
+
import {
|
|
745
|
+
KeychainTokenStorage
|
|
746
|
+
} from "./chunk-EVC2HZ5T.js";
|
|
747
|
+
import {
|
|
748
|
+
FileTokenStorage,
|
|
749
|
+
HybridTokenStorage,
|
|
750
|
+
TokenStorageType,
|
|
751
|
+
o1ConnectBaseUrlFor,
|
|
752
|
+
openO1Connect
|
|
753
|
+
} from "./chunk-MRDYGSEU.js";
|
|
754
|
+
import {
|
|
755
|
+
atomicWriteFile,
|
|
756
|
+
atomicWriteFileSync,
|
|
757
|
+
atomicWriteJSON,
|
|
758
|
+
renameWithRetry
|
|
759
|
+
} from "./chunk-EPJAMNLS.js";
|
|
749
760
|
import {
|
|
750
761
|
AUTH_ENV_MAPPINGS,
|
|
751
762
|
DEFAULT_MODELS,
|
|
@@ -754,10 +765,16 @@ import {
|
|
|
754
765
|
createContentGenerator,
|
|
755
766
|
resetPreloadedContentGenerator,
|
|
756
767
|
resolveContentGeneratorConfigWithSources
|
|
757
|
-
} from "./chunk-
|
|
768
|
+
} from "./chunk-O6V4DKZY.js";
|
|
758
769
|
import {
|
|
759
770
|
DEFAULT_O1CODE_MODEL
|
|
760
771
|
} from "./chunk-LEXKU5FI.js";
|
|
772
|
+
import {
|
|
773
|
+
BRAND,
|
|
774
|
+
ORGANIZAONE_ANTHROPIC_BASE_URL,
|
|
775
|
+
isOrganizaOneBaseUrl,
|
|
776
|
+
reachesOrganizaOne
|
|
777
|
+
} from "./chunk-VTIYMCRG.js";
|
|
761
778
|
import {
|
|
762
779
|
getOrCreateMcpDispatcher,
|
|
763
780
|
loadUndici,
|
|
@@ -765,15 +782,6 @@ import {
|
|
|
765
782
|
redactProxyError,
|
|
766
783
|
setResolvedProxyUrlForRuntimeFetch
|
|
767
784
|
} from "./chunk-S6HB6BVJ.js";
|
|
768
|
-
import {
|
|
769
|
-
require_src
|
|
770
|
-
} from "./chunk-RC67CA5Z.js";
|
|
771
|
-
import {
|
|
772
|
-
resolveAgentShell
|
|
773
|
-
} from "./chunk-AK6T4SJC.js";
|
|
774
|
-
import {
|
|
775
|
-
KeychainTokenStorage
|
|
776
|
-
} from "./chunk-EVC2HZ5T.js";
|
|
777
785
|
import {
|
|
778
786
|
createDebugLogger,
|
|
779
787
|
isDebugLogFileEnabled,
|
|
@@ -10346,6 +10354,7 @@ function applyResolvedModelConfig(targetConfig, resolvedModel, parentConfig, aut
|
|
|
10346
10354
|
if (!inheritCredentials) targetConfig.customHeaders = void 0;
|
|
10347
10355
|
targetConfig.reasoningRouteBaseUrl = resolvedModel.registryBaseUrl ?? null;
|
|
10348
10356
|
targetConfig.model = resolvedModel.id;
|
|
10357
|
+
targetConfig.connection = resolvedModel.connection;
|
|
10349
10358
|
targetConfig.authType = resolvedModel.authType;
|
|
10350
10359
|
targetConfig.baseUrl = authOverrides.baseUrl ?? resolvedModel.baseUrl ?? (sameProvider ? parentConfig.baseUrl : void 0);
|
|
10351
10360
|
if (resolvedModel.envKey) {
|
|
@@ -10712,14 +10721,17 @@ var BaseLlmClient = class {
|
|
|
10712
10721
|
retryErrorCodes,
|
|
10713
10722
|
model: requestModel
|
|
10714
10723
|
} = await this.resolveForModel(model);
|
|
10724
|
+
const isGateway = reachesOrganizaOne(contentGeneratorConfig);
|
|
10725
|
+
const independent = isGateway ? createGatewayIndependentRequest(options2.gatewayPurpose) : void 0;
|
|
10715
10726
|
const requestContents = slimCompactionInput(
|
|
10716
|
-
contents,
|
|
10727
|
+
isGateway ? gatewayIndependentInput(contents) : contents,
|
|
10717
10728
|
contentGeneratorConfig.modalities
|
|
10718
10729
|
).slimmedHistory;
|
|
10719
10730
|
try {
|
|
10720
10731
|
const apiCall = /* @__PURE__ */ __name(() => contentGenerator.generateContent(
|
|
10721
10732
|
{
|
|
10722
10733
|
model: requestModel,
|
|
10734
|
+
...independent ? { gatewayIndependentRequest: independent } : {},
|
|
10723
10735
|
config: {
|
|
10724
10736
|
...requestConfig,
|
|
10725
10737
|
tools,
|
|
@@ -10829,13 +10841,16 @@ var BaseLlmClient = class {
|
|
|
10829
10841
|
retryErrorCodes,
|
|
10830
10842
|
model: requestModel
|
|
10831
10843
|
} = await this.resolveForModel(model, { failClosed: options2.failClosed });
|
|
10844
|
+
const isGateway = reachesOrganizaOne(contentGeneratorConfig);
|
|
10845
|
+
const independent = isGateway ? createGatewayIndependentRequest(options2.gatewayPurpose) : void 0;
|
|
10832
10846
|
const requestContents = slimCompactionInput(
|
|
10833
|
-
contents,
|
|
10847
|
+
isGateway ? gatewayIndependentInput(contents) : contents,
|
|
10834
10848
|
contentGeneratorConfig.modalities
|
|
10835
10849
|
).slimmedHistory;
|
|
10836
10850
|
try {
|
|
10837
10851
|
const request = {
|
|
10838
10852
|
model: requestModel,
|
|
10853
|
+
...independent ? { gatewayIndependentRequest: independent } : {},
|
|
10839
10854
|
config: requestConfig,
|
|
10840
10855
|
contents: requestContents,
|
|
10841
10856
|
...options2.promptCacheSharing && { promptCacheSharing: true }
|
|
@@ -10980,7 +10995,7 @@ var BaseLlmClient = class {
|
|
|
10980
10995
|
const { contentGenerator, contentGeneratorConfig } = await this.createRuntimeViewForModel(
|
|
10981
10996
|
requested.model,
|
|
10982
10997
|
selector,
|
|
10983
|
-
opts?.failClosed
|
|
10998
|
+
opts?.failClosed === true || requested.model.startsWith("o1gw/") || reachesOrganizaOne(mainGeneratorConfig),
|
|
10984
10999
|
requested.baseUrl
|
|
10985
11000
|
);
|
|
10986
11001
|
const resolvedModel = this.resolveModelAcrossAuthTypes(
|
|
@@ -30160,6 +30175,15 @@ var ChatRecordingService = class {
|
|
|
30160
30175
|
}
|
|
30161
30176
|
}
|
|
30162
30177
|
}
|
|
30178
|
+
async recordGatewayConversation(payload) {
|
|
30179
|
+
await this.appendRecordStrict({
|
|
30180
|
+
...this.createBaseRecord("system"),
|
|
30181
|
+
type: "system",
|
|
30182
|
+
subtype: "gateway_conversation",
|
|
30183
|
+
systemPayload: payload
|
|
30184
|
+
});
|
|
30185
|
+
await this.flush();
|
|
30186
|
+
}
|
|
30163
30187
|
/** Persist the daemon session's current model so load/resume can restore it. */
|
|
30164
30188
|
async recordSessionModel(payload) {
|
|
30165
30189
|
if (!isValidSessionModelPayload(payload)) {
|
|
@@ -31558,6 +31582,12 @@ var ChatCompressionService = class {
|
|
|
31558
31582
|
}
|
|
31559
31583
|
}
|
|
31560
31584
|
const curatedHistory = chat.getHistoryShallow(true);
|
|
31585
|
+
if (curatedHistory.length >= 2 && reachesOrganizaOne(contentGeneratorConfig)) {
|
|
31586
|
+
throw new GatewayConversationError(
|
|
31587
|
+
"unsupported",
|
|
31588
|
+
"This gateway verifies the full conversation history and does not authorize replacing it with a client summary. The history is preserved. Start a new empty conversation with /new when its context is full."
|
|
31589
|
+
);
|
|
31590
|
+
}
|
|
31561
31591
|
if (curatedHistory.length === 0) {
|
|
31562
31592
|
return {
|
|
31563
31593
|
newHistory: null,
|
|
@@ -31717,7 +31747,7 @@ Do not call tools; tool execution is disabled for this request. ` + COMPRESSION_
|
|
|
31717
31747
|
const providerSupportsCacheSharing = supportsCompressionCacheSharing(config2);
|
|
31718
31748
|
const hasProviderTokenCount = (chat.getLastPromptTokenCount?.() ?? 0) > 0 && chat.isLastPromptTokenCountEstimated?.() !== true;
|
|
31719
31749
|
const sharedRequestFits = sharedPromptTokenCount + sharedDirectiveTokenCount + COMPACT_MAX_OUTPUT_TOKENS <= contextLimit;
|
|
31720
|
-
const canShareCache = usesMainModel && providerSupportsCacheSharing && hasProviderTokenCount && sharedRequestFits && // The shared request is built from the UNSLIMMED history. A
|
|
31750
|
+
const canShareCache = !reachesOrganizaOne(config2.getContentGeneratorConfig()) && usesMainModel && providerSupportsCacheSharing && hasProviderTokenCount && sharedRequestFits && // The shared request is built from the UNSLIMMED history. A
|
|
31721
31751
|
// payload-overflow compaction exists because that exact payload was
|
|
31722
31752
|
// just rejected at the gateway's byte limit — re-uploading it would
|
|
31723
31753
|
// 413 again (logging a misleading cache-sharing failure) before the
|
|
@@ -34060,6 +34090,11 @@ var LlmChat = class {
|
|
|
34060
34090
|
* then strips thinking parts from all model turns.
|
|
34061
34091
|
*/
|
|
34062
34092
|
compressFast() {
|
|
34093
|
+
if (reachesOrganizaOne(this.config.getContentGeneratorConfig?.()))
|
|
34094
|
+
throw new GatewayConversationError(
|
|
34095
|
+
"unsupported",
|
|
34096
|
+
"This gateway does not authorize truncating the authenticated history. Keep this conversation and start a new empty one with /new."
|
|
34097
|
+
);
|
|
34063
34098
|
this.adoptTokenCountsForRoute();
|
|
34064
34099
|
const beforeEstimate = estimateContentTokens(this.history);
|
|
34065
34100
|
const projectRoot = this.config.getProjectRoot();
|
|
@@ -34585,6 +34620,7 @@ var LlmChat = class {
|
|
|
34585
34620
|
} catch (error62) {
|
|
34586
34621
|
lastError = error62;
|
|
34587
34622
|
if (params.config?.abortSignal?.aborted) throw error62;
|
|
34623
|
+
if (reachesOrganizaOne(cgConfig)) throw error62;
|
|
34588
34624
|
foldTransportAttemptText();
|
|
34589
34625
|
const classification = classifyRetryError(error62, {
|
|
34590
34626
|
authType: cgConfig?.authType,
|
|
@@ -34604,6 +34640,7 @@ var LlmChat = class {
|
|
|
34604
34640
|
if (error62 instanceof ResponsesHttpError && error62.headers.get("x-should-retry") === "false") {
|
|
34605
34641
|
throw error62;
|
|
34606
34642
|
}
|
|
34643
|
+
if (classification.reason === "gateway-continuity") throw error62;
|
|
34607
34644
|
const isRateLimit = isRateLimitError(error62, extraRetryErrorCodes);
|
|
34608
34645
|
if (isRateLimit) {
|
|
34609
34646
|
const details = getRateLimitErrorDetails(error62);
|
|
@@ -34758,7 +34795,7 @@ var LlmChat = class {
|
|
|
34758
34795
|
const degradeAttempt = omniMediaDegradeAttempts++;
|
|
34759
34796
|
let degradeOutcome;
|
|
34760
34797
|
try {
|
|
34761
|
-
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-
|
|
34798
|
+
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-SLNICU7U.js");
|
|
34762
34799
|
degradeOutcome = await degradeOmniMediaAfterServerReject(
|
|
34763
34800
|
self2.config,
|
|
34764
34801
|
self2.history,
|
|
@@ -35034,7 +35071,7 @@ var LlmChat = class {
|
|
|
35034
35071
|
}
|
|
35035
35072
|
}
|
|
35036
35073
|
}, "streamWithInvalidStreamRetries");
|
|
35037
|
-
if (lastError === null && lastFinishReason === FinishReason.MAX_TOKENS && !maxTokensEscalated && !hasUserMaxTokensOverride) {
|
|
35074
|
+
if (lastError === null && !reachesOrganizaOne(cgConfig) && lastFinishReason === FinishReason.MAX_TOKENS && !maxTokensEscalated && !hasUserMaxTokensOverride) {
|
|
35038
35075
|
maxTokensEscalated = true;
|
|
35039
35076
|
let recoveryFinishReason = lastFinishReason;
|
|
35040
35077
|
let recoveryParams = params;
|
|
@@ -38341,7 +38378,7 @@ __name(computeCharContribution, "computeCharContribution");
|
|
|
38341
38378
|
init_esbuild_shims();
|
|
38342
38379
|
import * as fs36 from "node:fs/promises";
|
|
38343
38380
|
import * as path37 from "node:path";
|
|
38344
|
-
import { randomUUID as
|
|
38381
|
+
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
38345
38382
|
|
|
38346
38383
|
// packages/core/src/memory/store.ts
|
|
38347
38384
|
init_esbuild_shims();
|
|
@@ -38472,6 +38509,7 @@ init_esbuild_shims();
|
|
|
38472
38509
|
|
|
38473
38510
|
// packages/core/src/agents/forkedAgent.ts
|
|
38474
38511
|
init_esbuild_shims();
|
|
38512
|
+
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
38475
38513
|
|
|
38476
38514
|
// packages/core/src/tools/agent/agent.ts
|
|
38477
38515
|
init_esbuild_shims();
|
|
@@ -77492,7 +77530,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
|
|
|
77492
77530
|
const notices = [];
|
|
77493
77531
|
let omniProcessed = responseParts;
|
|
77494
77532
|
if (this.config.isOmniEnabled?.()) {
|
|
77495
|
-
const { processToolResultOmniMedia } = await import("./tool-result-media-
|
|
77533
|
+
const { processToolResultOmniMedia } = await import("./tool-result-media-AFIZLPZ7.js");
|
|
77496
77534
|
omniProcessed = await processToolResultOmniMedia(
|
|
77497
77535
|
responseParts,
|
|
77498
77536
|
this.config,
|
|
@@ -80665,7 +80703,7 @@ ${body}
|
|
|
80665
80703
|
artifacts: toolResult.artifacts
|
|
80666
80704
|
} : void 0;
|
|
80667
80705
|
if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
|
|
80668
|
-
const { collectModelPolicyCall } = await import("./model-call-collection-
|
|
80706
|
+
const { collectModelPolicyCall } = await import("./model-call-collection-YKPPKTJC.js");
|
|
80669
80707
|
await collectModelPolicyCall({
|
|
80670
80708
|
config: this.config,
|
|
80671
80709
|
batch: policyArtifacts,
|
|
@@ -95137,6 +95175,11 @@ function clearCacheSafeParams() {
|
|
|
95137
95175
|
__name(clearCacheSafeParams, "clearCacheSafeParams");
|
|
95138
95176
|
var NO_TOOLS = Object.freeze({ tools: [] });
|
|
95139
95177
|
function createForkedChat(config2, params) {
|
|
95178
|
+
if (reachesOrganizaOne(config2.getContentGeneratorConfig?.()))
|
|
95179
|
+
throw new GatewayConversationError(
|
|
95180
|
+
"unsupported",
|
|
95181
|
+
"This gateway does not authorize cloning a conversation history for a cache-sharing fork. Use an independent task with explicit source material."
|
|
95182
|
+
);
|
|
95140
95183
|
const maxHistoryEntries = 40;
|
|
95141
95184
|
const history = params.history.length > maxHistoryEntries ? params.history.slice(-maxHistoryEntries) : params.history;
|
|
95142
95185
|
const forkedChat = new LlmChat(
|
|
@@ -95310,17 +95353,21 @@ async function runForkedAgent(params) {
|
|
|
95310
95353
|
const filesTouched = /* @__PURE__ */ new Set();
|
|
95311
95354
|
const pendingMutatingPaths = /* @__PURE__ */ new Map();
|
|
95312
95355
|
const filesWritten = /* @__PURE__ */ new Set();
|
|
95313
|
-
const
|
|
95314
|
-
const promptConfig = {
|
|
95315
|
-
systemPrompt: params.systemPrompt,
|
|
95316
|
-
initialMessages
|
|
95317
|
-
};
|
|
95356
|
+
const sourceMessages = params.extraHistory && (params.extraHistory.length > 0 || params.preserveEmptyExtraHistory) ? params.extraHistory : void 0;
|
|
95318
95357
|
const modelSelector = params.model ?? params.config.getFastModel?.() ?? params.config.getModel();
|
|
95319
95358
|
const modelRuntime = await buildForkedModelRuntime(
|
|
95320
95359
|
params.config,
|
|
95321
95360
|
yoloConfig,
|
|
95322
95361
|
modelSelector
|
|
95323
95362
|
);
|
|
95363
|
+
const isGateway = reachesOrganizaOne(
|
|
95364
|
+
modelRuntime.runtimeView?.contentGeneratorConfig ?? params.config.getContentGeneratorConfig?.()
|
|
95365
|
+
);
|
|
95366
|
+
const invocationId = isGateway ? `${params.name}-${randomUUID9()}` : void 0;
|
|
95367
|
+
const promptConfig = {
|
|
95368
|
+
systemPrompt: params.systemPrompt,
|
|
95369
|
+
initialMessages: isGateway && sourceMessages ? gatewayIndependentInput(sourceMessages) : sourceMessages
|
|
95370
|
+
};
|
|
95324
95371
|
const modelConfig = {
|
|
95325
95372
|
model: modelRuntime.model
|
|
95326
95373
|
};
|
|
@@ -95371,14 +95418,19 @@ async function runForkedAgent(params) {
|
|
|
95371
95418
|
toolConfig,
|
|
95372
95419
|
emitter,
|
|
95373
95420
|
void 0,
|
|
95374
|
-
modelRuntime.runtimeView
|
|
95421
|
+
modelRuntime.runtimeView,
|
|
95422
|
+
void 0,
|
|
95423
|
+
invocationId
|
|
95375
95424
|
);
|
|
95376
95425
|
const context2 = new ContextState();
|
|
95377
95426
|
context2.set("task_prompt", params.taskPrompt);
|
|
95378
95427
|
context2.set("hook_context", "");
|
|
95379
|
-
const execute = /* @__PURE__ */ __name(() =>
|
|
95380
|
-
|
|
95381
|
-
|
|
95428
|
+
const execute = /* @__PURE__ */ __name(() => {
|
|
95429
|
+
const run = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(modelRuntime, async () => {
|
|
95430
|
+
await headless.execute(context2, executionController.signal);
|
|
95431
|
+
}), "run");
|
|
95432
|
+
return invocationId ? runWithAgentContext(invocationId, run) : run();
|
|
95433
|
+
}, "execute");
|
|
95382
95434
|
try {
|
|
95383
95435
|
if (params.suppressChatRecording) {
|
|
95384
95436
|
await runWithChatRecordingSuppressed(execute);
|
|
@@ -98653,7 +98705,7 @@ var WRITE_TOOL_NAMES2 = /* @__PURE__ */ new Set([
|
|
|
98653
98705
|
function makeTaskRecord(type, projectRoot, sessionId) {
|
|
98654
98706
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
98655
98707
|
return {
|
|
98656
|
-
id:
|
|
98708
|
+
id: randomUUID10(),
|
|
98657
98709
|
taskType: type,
|
|
98658
98710
|
projectRoot,
|
|
98659
98711
|
sessionId,
|
|
@@ -99763,7 +99815,7 @@ import fsPromises2 from "node:fs/promises";
|
|
|
99763
99815
|
|
|
99764
99816
|
// packages/core/src/core/message-display-dispatcher.ts
|
|
99765
99817
|
init_esbuild_shims();
|
|
99766
|
-
import { randomUUID as
|
|
99818
|
+
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
99767
99819
|
|
|
99768
99820
|
// packages/core/src/core/message-display-buffer.ts
|
|
99769
99821
|
init_esbuild_shims();
|
|
@@ -99811,7 +99863,7 @@ var MessageDisplayDispatcher = class {
|
|
|
99811
99863
|
static {
|
|
99812
99864
|
__name(this, "MessageDisplayDispatcher");
|
|
99813
99865
|
}
|
|
99814
|
-
messageId =
|
|
99866
|
+
messageId = randomUUID11();
|
|
99815
99867
|
state;
|
|
99816
99868
|
/** Newest undelivered mid-stream text, coalesced behind {@link inFlight}. */
|
|
99817
99869
|
pending = null;
|
|
@@ -100621,6 +100673,7 @@ var LlmClient = class _LlmClient {
|
|
|
100621
100673
|
if (!this.isInitialized()) {
|
|
100622
100674
|
return;
|
|
100623
100675
|
}
|
|
100676
|
+
await this.config.prepareGatewayToolDeclarations?.();
|
|
100624
100677
|
const toolRegistry = this.config.getToolRegistry();
|
|
100625
100678
|
await toolRegistry.warmAll();
|
|
100626
100679
|
const codeModeOnly = this.config.getToolMode?.() === ToolMode.CodeModeOnly;
|
|
@@ -100632,7 +100685,9 @@ var LlmClient = class _LlmClient {
|
|
|
100632
100685
|
);
|
|
100633
100686
|
}
|
|
100634
100687
|
const deferredTools = this.resolveDeferredToolsForReminder(deferredSummary);
|
|
100635
|
-
const toolDeclarations =
|
|
100688
|
+
const toolDeclarations = reachesOrganizaOne(
|
|
100689
|
+
this.config.getContentGeneratorConfig?.()
|
|
100690
|
+
) ? toolRegistry.getFunctionDeclarations({ includeDeferred: true }) : toolRegistry.getFunctionDeclarations();
|
|
100636
100691
|
const tools = [{ functionDeclarations: toolDeclarations }];
|
|
100637
100692
|
this.getChat().setTools(tools);
|
|
100638
100693
|
this.queueAddedMcpToolsReminder(deferredTools ?? []);
|
|
@@ -101468,6 +101523,7 @@ var LlmClient = class _LlmClient {
|
|
|
101468
101523
|
});
|
|
101469
101524
|
}, "finishProfile");
|
|
101470
101525
|
try {
|
|
101526
|
+
await this.config.prepareGatewayToolDeclarations?.();
|
|
101471
101527
|
const toolRegistry = this.config.getToolRegistry();
|
|
101472
101528
|
await profiler.time("tool_registry_warm", () => toolRegistry.warmAll());
|
|
101473
101529
|
const codeModeOnly = this.config.getToolMode?.() === ToolMode.CodeModeOnly;
|
|
@@ -101485,7 +101541,9 @@ var LlmClient = class _LlmClient {
|
|
|
101485
101541
|
});
|
|
101486
101542
|
this.config.setPromptToolSnapshot?.(
|
|
101487
101543
|
new Set(
|
|
101488
|
-
toolRegistry.getFunctionDeclarations(
|
|
101544
|
+
toolRegistry.getFunctionDeclarations({
|
|
101545
|
+
includeDeferred: reachesOrganizaOne(this.config.getContentGeneratorConfig?.()) && this.config.getGatewayToolSnapshotPolicy?.() !== "legacy-eager-v1"
|
|
101546
|
+
}).map((declaration) => declaration.name).filter((name) => Boolean(name))
|
|
101489
101547
|
)
|
|
101490
101548
|
);
|
|
101491
101549
|
const deferredTools = profiler.timeSync("deferred_reminder_setup", () => {
|
|
@@ -101889,6 +101947,8 @@ var LlmClient = class _LlmClient {
|
|
|
101889
101947
|
}
|
|
101890
101948
|
}
|
|
101891
101949
|
async microcompactHistoryBeforeSend(lastCompletionTimestamp, opts) {
|
|
101950
|
+
if (reachesOrganizaOne(this.config.getContentGeneratorConfig?.()))
|
|
101951
|
+
return false;
|
|
101892
101952
|
try {
|
|
101893
101953
|
const projectRoot = this.config.getProjectRoot();
|
|
101894
101954
|
const targetDir = this.config.getTargetDir?.() ?? projectRoot;
|
|
@@ -102638,7 +102698,7 @@ The current date is: ${today}. Note: This is the authoritative current date \u20
|
|
|
102638
102698
|
systemReminders.unshift(userQueryMemory.prompt);
|
|
102639
102699
|
}
|
|
102640
102700
|
if (this.config.isOmniEnabled?.()) {
|
|
102641
|
-
const { runOmniMemorySideQuery, formatOmniMemorySideQueryReminder } = await import("./memory-side-query-
|
|
102701
|
+
const { runOmniMemorySideQuery, formatOmniMemorySideQueryReminder } = await import("./memory-side-query-XFFIF7UX.js");
|
|
102642
102702
|
const omniRecall = await runOmniMemorySideQuery({
|
|
102643
102703
|
config: this.config,
|
|
102644
102704
|
requestParts: requestToSend,
|
|
@@ -103314,13 +103374,15 @@ The current date is: ${today}. Note: This is the authoritative current date \u20
|
|
|
103314
103374
|
contents,
|
|
103315
103375
|
contentGeneratorConfig?.modalities ?? {}
|
|
103316
103376
|
).slimmedHistory;
|
|
103377
|
+
const independent = reachesOrganizaOne(contentGeneratorConfig) ? createGatewayIndependentRequest() : void 0;
|
|
103317
103378
|
const apiCall = /* @__PURE__ */ __name(() => {
|
|
103318
103379
|
currentAttemptModel = requestModel;
|
|
103319
103380
|
return contentGenerator.generateContent(
|
|
103320
103381
|
{
|
|
103321
103382
|
model: requestModel,
|
|
103383
|
+
...independent ? { gatewayIndependentRequest: independent } : {},
|
|
103322
103384
|
config: requestConfig,
|
|
103323
|
-
contents: requestContents
|
|
103385
|
+
contents: independent ? gatewayIndependentInput(requestContents) : requestContents
|
|
103324
103386
|
},
|
|
103325
103387
|
promptId
|
|
103326
103388
|
);
|
|
@@ -134148,7 +134210,7 @@ var import_yaml3 = __toESM(require_dist2(), 1);
|
|
|
134148
134210
|
import * as fs46 from "fs/promises";
|
|
134149
134211
|
import * as path48 from "path";
|
|
134150
134212
|
import * as os10 from "os";
|
|
134151
|
-
import { randomUUID as
|
|
134213
|
+
import { randomUUID as randomUUID12 } from "crypto";
|
|
134152
134214
|
|
|
134153
134215
|
// packages/core/src/subagents/validation.ts
|
|
134154
134216
|
init_esbuild_shims();
|
|
@@ -135315,7 +135377,7 @@ ${config2.systemPrompt}
|
|
|
135315
135377
|
);
|
|
135316
135378
|
const { context: subagentContext, cleanup } = await this.buildSubagentContextOverride(runtimeContext, config2);
|
|
135317
135379
|
disposeSubagentRegistry = cleanup;
|
|
135318
|
-
const subagentId = options2?.subagentId ?? `${config2.name}-${
|
|
135380
|
+
const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID12().replace(/-/g, "").slice(0, 8)}`;
|
|
135319
135381
|
const hookSystem = runtimeContext.getHookSystem();
|
|
135320
135382
|
const hookRegistry = hookSystem?.getRegistry();
|
|
135321
135383
|
if (config2.hooks && Object.keys(config2.hooks).length > 0) {
|
|
@@ -144461,7 +144523,7 @@ __name(extractZipArchive, "extractZipArchive");
|
|
|
144461
144523
|
init_esbuild_shims();
|
|
144462
144524
|
import * as fs61 from "node:fs/promises";
|
|
144463
144525
|
import * as path63 from "node:path";
|
|
144464
|
-
import { randomUUID as
|
|
144526
|
+
import { randomUUID as randomUUID13 } from "node:crypto";
|
|
144465
144527
|
var EXTENSION_GIT_CREDENTIAL_SELECTOR_FILENAME = ".o1-code-extension-git-credentials.json";
|
|
144466
144528
|
var GIT_CREDENTIAL_SERVICE_NAME = "O1-Code Extension Git Credentials";
|
|
144467
144529
|
var GIT_CREDENTIAL_KEY_PREFIX = "$o1-code:extension-git:v1:";
|
|
@@ -144539,7 +144601,7 @@ async function writeGitCredentialSelector(extensionDir, selector) {
|
|
|
144539
144601
|
__name(writeGitCredentialSelector, "writeGitCredentialSelector");
|
|
144540
144602
|
async function prepareStoredGitCredential(extensionDir, credential) {
|
|
144541
144603
|
const storage = new HybridTokenStorage(GIT_CREDENTIAL_SERVICE_NAME);
|
|
144542
|
-
const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${
|
|
144604
|
+
const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID13()}`;
|
|
144543
144605
|
await storage.setSecret(secretKey, JSON.stringify(credential));
|
|
144544
144606
|
const selector = {
|
|
144545
144607
|
version: 1,
|
|
@@ -146710,7 +146772,7 @@ init_esbuild_shims();
|
|
|
146710
146772
|
var dotenv = __toESM(require_main(), 1);
|
|
146711
146773
|
import * as fs67 from "node:fs/promises";
|
|
146712
146774
|
import * as fsSync3 from "node:fs";
|
|
146713
|
-
import { randomUUID as
|
|
146775
|
+
import { randomUUID as randomUUID15 } from "node:crypto";
|
|
146714
146776
|
import * as path68 from "node:path";
|
|
146715
146777
|
var import_prompts7 = __toESM(require_prompts3(), 1);
|
|
146716
146778
|
var debugLogger98 = createDebugLogger("EXT_SETTINGS");
|
|
@@ -146859,7 +146921,7 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
|
|
|
146859
146921
|
const envContent = formatEnvContent(nonSensitiveSettings);
|
|
146860
146922
|
await atomicWriteFile(envFilePath, envContent, { noFollow: true });
|
|
146861
146923
|
if (Object.keys(sensitiveSettings).length > 0) {
|
|
146862
|
-
const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${
|
|
146924
|
+
const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID15()}`;
|
|
146863
146925
|
await keychain.setSecret(bundleKey, JSON.stringify(sensitiveSettings));
|
|
146864
146926
|
newSelector = {
|
|
146865
146927
|
version: 1,
|
|
@@ -153459,7 +153521,7 @@ var HookRegistry = class {
|
|
|
153459
153521
|
// packages/core/src/hooks/hookRunner.ts
|
|
153460
153522
|
init_esbuild_shims();
|
|
153461
153523
|
import { execFile as execFile8, spawn as spawn6 } from "node:child_process";
|
|
153462
|
-
import { randomUUID as
|
|
153524
|
+
import { randomUUID as randomUUID17 } from "node:crypto";
|
|
153463
153525
|
import { rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";
|
|
153464
153526
|
import { platform as platform3, tmpdir as tmpdir4 } from "node:os";
|
|
153465
153527
|
import { join as join54 } from "node:path";
|
|
@@ -154556,7 +154618,8 @@ ${processedPrompt}`);
|
|
|
154556
154618
|
try {
|
|
154557
154619
|
let generator = this.config.getContentGenerator();
|
|
154558
154620
|
let requestModel = model;
|
|
154559
|
-
let
|
|
154621
|
+
let generatorConfig = this.config.getContentGeneratorConfig();
|
|
154622
|
+
let reasoningConfig = generatorConfig.reasoning;
|
|
154560
154623
|
if (!generator) {
|
|
154561
154624
|
const error62 = new Error(
|
|
154562
154625
|
"ContentGenerator not available - make sure you are authenticated"
|
|
@@ -154575,6 +154638,7 @@ ${processedPrompt}`);
|
|
|
154575
154638
|
]);
|
|
154576
154639
|
generator = resolved.contentGenerator;
|
|
154577
154640
|
requestModel = resolved.model;
|
|
154641
|
+
generatorConfig = resolved.contentGeneratorConfig;
|
|
154578
154642
|
reasoningConfig = resolved.contentGeneratorConfig.reasoning;
|
|
154579
154643
|
}
|
|
154580
154644
|
const isReasoningModel = this.isReasoningModel(
|
|
@@ -154607,6 +154671,7 @@ ${processedPrompt}`);
|
|
|
154607
154671
|
generator.generateContent(
|
|
154608
154672
|
{
|
|
154609
154673
|
model: requestModel,
|
|
154674
|
+
...reachesOrganizaOne(generatorConfig) ? { gatewayIndependentRequest: createGatewayIndependentRequest() } : {},
|
|
154610
154675
|
contents,
|
|
154611
154676
|
config: requestConfig
|
|
154612
154677
|
},
|
|
@@ -155448,7 +155513,7 @@ __name(terminateSurvivingHookProcessGroup, "terminateSurvivingHookProcessGroup")
|
|
|
155448
155513
|
function createSurvivingHookInputFile(input2) {
|
|
155449
155514
|
const path80 = join54(
|
|
155450
155515
|
tmpdir4(),
|
|
155451
|
-
`o1-code-hook-input-${process.pid}-${
|
|
155516
|
+
`o1-code-hook-input-${process.pid}-${randomUUID17()}.json`
|
|
155452
155517
|
);
|
|
155453
155518
|
writeFileSync8(path80, JSON.stringify(input2), {
|
|
155454
155519
|
encoding: "utf8",
|
|
@@ -158870,7 +158935,7 @@ var HOOK_EVENT_DISPLAY = Object.freeze({
|
|
|
158870
158935
|
|
|
158871
158936
|
// packages/core/src/confirmation-bus/message-bus.ts
|
|
158872
158937
|
init_esbuild_shims();
|
|
158873
|
-
import { randomUUID as
|
|
158938
|
+
import { randomUUID as randomUUID18 } from "node:crypto";
|
|
158874
158939
|
import { EventEmitter as EventEmitter6 } from "node:events";
|
|
158875
158940
|
var debugLogger118 = createDebugLogger("TRUSTED_HOOKS");
|
|
158876
158941
|
var MessageBus = class extends EventEmitter6 {
|
|
@@ -158931,7 +158996,7 @@ var MessageBus = class extends EventEmitter6 {
|
|
|
158931
158996
|
* The correlation ID is generated internally and added to the request
|
|
158932
158997
|
*/
|
|
158933
158998
|
async request(request, responseType, timeoutMs = 6e4, signal) {
|
|
158934
|
-
const correlationId =
|
|
158999
|
+
const correlationId = randomUUID18();
|
|
158935
159000
|
return new Promise((resolve34, reject) => {
|
|
158936
159001
|
if (signal?.aborted) {
|
|
158937
159002
|
reject(new Error("Request aborted"));
|
|
@@ -159063,7 +159128,7 @@ function isSdkMcpServerConfig(config2) {
|
|
|
159063
159128
|
__name(isSdkMcpServerConfig, "isSdkMcpServerConfig");
|
|
159064
159129
|
|
|
159065
159130
|
// packages/core/src/config/config.ts
|
|
159066
|
-
import { createHash as createHash12, randomUUID as
|
|
159131
|
+
import { createHash as createHash12, randomUUID as randomUUID19 } from "node:crypto";
|
|
159067
159132
|
|
|
159068
159133
|
// packages/core/src/memory/memoryDiscovery.ts
|
|
159069
159134
|
init_esbuild_shims();
|
|
@@ -163628,7 +163693,7 @@ var Config = class _Config {
|
|
|
163628
163693
|
Storage.getGlobalO1CodeDir()
|
|
163629
163694
|
);
|
|
163630
163695
|
this.provisionalWorkspace = params.provisionalWorkspace === true;
|
|
163631
|
-
this.sessionId = params.sessionId ??
|
|
163696
|
+
this.sessionId = params.sessionId ?? randomUUID19();
|
|
163632
163697
|
if (!sessionEnvClaimed && process6.env) {
|
|
163633
163698
|
process6.env["O1CODE_SESSION_ID"] = this.sessionId;
|
|
163634
163699
|
sessionEnvClaimed = true;
|
|
@@ -164151,7 +164216,7 @@ var Config = class _Config {
|
|
|
164151
164216
|
await this.proxyDispatcherReady;
|
|
164152
164217
|
options2?.signal?.throwIfAborted();
|
|
164153
164218
|
if (this.isOmniEnabled()) {
|
|
164154
|
-
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-
|
|
164219
|
+
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-5IV7GPH3.js");
|
|
164155
164220
|
this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
|
|
164156
164221
|
baseUrl: this.omniUploadBaseUrl,
|
|
164157
164222
|
apiKeyEnv: this.omniUploadApiKeyEnv,
|
|
@@ -165341,7 +165406,7 @@ var Config = class _Config {
|
|
|
165341
165406
|
void outgoingChatRecordingService?.flush().catch(() => {
|
|
165342
165407
|
});
|
|
165343
165408
|
const previousSessionId = this.sessionId;
|
|
165344
|
-
const nextSessionId = sessionId ??
|
|
165409
|
+
const nextSessionId = sessionId ?? randomUUID19();
|
|
165345
165410
|
const isSessionTransition = nextSessionId !== previousSessionId;
|
|
165346
165411
|
if (isSessionTransition) {
|
|
165347
165412
|
logSessionEnd(this);
|
|
@@ -168064,7 +168129,7 @@ var Config = class _Config {
|
|
|
168064
168129
|
return this.omniPolicyTools;
|
|
168065
168130
|
}
|
|
168066
168131
|
async loadOmniMediaReader() {
|
|
168067
|
-
return import("./omni-
|
|
168132
|
+
return import("./omni-SLZABQRH.js");
|
|
168068
168133
|
}
|
|
168069
168134
|
/** Normalized `omni.processing` view. Undefined until tool warmup
|
|
168070
168135
|
* completes (or when omni is disabled). */
|
|
@@ -168187,10 +168252,29 @@ var Config = class _Config {
|
|
|
168187
168252
|
getO1ConnectSession() {
|
|
168188
168253
|
return this.o1ConnectSession;
|
|
168189
168254
|
}
|
|
168190
|
-
|
|
168191
|
-
|
|
168192
|
-
|
|
168255
|
+
canActivateReviewWorkflow() {
|
|
168256
|
+
return !this.shellExecutionSandbox && this.workflowsEnabled !== false && isTopLevelSession() && !this.getBareMode() && !this.provisionalWorkspace && this.isTrustedFolder() && process6.env["O1CODE_DISABLE_WORKFLOWS"] !== "1";
|
|
168257
|
+
}
|
|
168258
|
+
getResumedGatewayConversation() {
|
|
168259
|
+
return [...this.getResumedSessionData()?.conversation.messages ?? []].reverse().find((row) => {
|
|
168260
|
+
const payload = row.systemPayload;
|
|
168261
|
+
return row.subtype === "gateway_conversation" && !row.forkedFrom && row.sessionId === this.getSessionId() && payload?.actor === "main" && payload.conversationId === this.getSessionId();
|
|
168262
|
+
})?.systemPayload;
|
|
168263
|
+
}
|
|
168264
|
+
getGatewayToolSnapshotPolicy() {
|
|
168265
|
+
const previous = this.getResumedGatewayConversation();
|
|
168266
|
+
return !previous || previous.toolSnapshotPolicy === "gateway-v1" ? "gateway-v1" : "legacy-eager-v1";
|
|
168267
|
+
}
|
|
168268
|
+
/** Reserve the schema before the gateway authenticates the first request. */
|
|
168269
|
+
async prepareGatewayToolDeclarations() {
|
|
168270
|
+
const previous = this.getResumedGatewayConversation();
|
|
168271
|
+
if (previous && previous.workflowToolDeclared !== true) return;
|
|
168272
|
+
if (reachesOrganizaOne(this.getContentGeneratorConfig()) && this.canActivateReviewWorkflow()) {
|
|
168273
|
+
await this.registerWorkflowTool(this.getToolRegistry());
|
|
168193
168274
|
}
|
|
168275
|
+
}
|
|
168276
|
+
async enableReviewWorkflow() {
|
|
168277
|
+
if (!this.canActivateReviewWorkflow()) return;
|
|
168194
168278
|
if (await this.registerWorkflowTool(this.getToolRegistry())) {
|
|
168195
168279
|
this.setWorkflowsEnabled(true);
|
|
168196
168280
|
await this.getLlmClient().setTools();
|
|
@@ -169673,7 +169757,7 @@ var Config = class _Config {
|
|
|
169673
169757
|
async registerWorkflowTool(registry2) {
|
|
169674
169758
|
if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
|
|
169675
169759
|
await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
|
|
169676
|
-
const { WorkflowTool } = await import("./workflow-
|
|
169760
|
+
const { WorkflowTool } = await import("./workflow-ILU5GODQ.js");
|
|
169677
169761
|
return new WorkflowTool(this);
|
|
169678
169762
|
});
|
|
169679
169763
|
return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
|
|
@@ -169695,7 +169779,7 @@ var Config = class _Config {
|
|
|
169695
169779
|
}
|
|
169696
169780
|
if (status === "disabled") return;
|
|
169697
169781
|
const factory = /* @__PURE__ */ __name(async () => {
|
|
169698
|
-
const { ImageGenTool } = await import("./image-gen-
|
|
169782
|
+
const { ImageGenTool } = await import("./image-gen-WGMRL47H.js");
|
|
169699
169783
|
return new ImageGenTool(this);
|
|
169700
169784
|
}, "factory");
|
|
169701
169785
|
if (status === "deferred") {
|
|
@@ -169753,16 +169837,16 @@ var Config = class _Config {
|
|
|
169753
169837
|
const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
|
|
169754
169838
|
if (options2?.forSubAgent) return;
|
|
169755
169839
|
await registerLazy(ToolNames.GET_GOAL, async () => {
|
|
169756
|
-
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-
|
|
169840
|
+
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-UHHDYOKQ.js");
|
|
169757
169841
|
return new GetGoalTool2(this);
|
|
169758
169842
|
});
|
|
169759
169843
|
await registerLazy(ToolNames.UPDATE_GOAL, async () => {
|
|
169760
|
-
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-
|
|
169844
|
+
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-UHHDYOKQ.js");
|
|
169761
169845
|
return new UpdateGoalTool2(this);
|
|
169762
169846
|
});
|
|
169763
169847
|
if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
|
|
169764
169848
|
await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
|
|
169765
|
-
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-
|
|
169849
|
+
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-UHHDYOKQ.js");
|
|
169766
169850
|
return new ProposeGoalTool2(this);
|
|
169767
169851
|
});
|
|
169768
169852
|
}
|
|
@@ -169782,16 +169866,16 @@ var Config = class _Config {
|
|
|
169782
169866
|
});
|
|
169783
169867
|
}
|
|
169784
169868
|
await registerLazy(ToolNames.WEB_FETCH, async () => {
|
|
169785
|
-
const { WebFetchTool } = await import("./web-fetch-
|
|
169869
|
+
const { WebFetchTool } = await import("./web-fetch-ACG4GZWS.js");
|
|
169786
169870
|
return new WebFetchTool(this);
|
|
169787
169871
|
});
|
|
169788
169872
|
const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
|
|
169789
169873
|
if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
|
|
169790
|
-
const { evaluateWebSearchGate } = await import("./web-search-
|
|
169874
|
+
const { evaluateWebSearchGate } = await import("./web-search-FOBOKL5H.js");
|
|
169791
169875
|
const gate = evaluateWebSearchGate(this);
|
|
169792
169876
|
if (gate.ok) {
|
|
169793
169877
|
await registerLazy(ToolNames.WEB_SEARCH, async () => {
|
|
169794
|
-
const { WebSearchTool } = await import("./web-search-
|
|
169878
|
+
const { WebSearchTool } = await import("./web-search-FOBOKL5H.js");
|
|
169795
169879
|
return new WebSearchTool(this);
|
|
169796
169880
|
});
|
|
169797
169881
|
} else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
|
|
@@ -169808,8 +169892,8 @@ var Config = class _Config {
|
|
|
169808
169892
|
);
|
|
169809
169893
|
}
|
|
169810
169894
|
const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
|
|
169811
|
-
import("./local-execution-environment-
|
|
169812
|
-
import("./execution-tool-
|
|
169895
|
+
import("./local-execution-environment-MYZ2Y54Q.js"),
|
|
169896
|
+
import("./execution-tool-4AHWPEBH.js")
|
|
169813
169897
|
]);
|
|
169814
169898
|
for (const [name, tool] of createExecutionTools(this)) {
|
|
169815
169899
|
if (environment.toolNames && !environment.toolNames.has(name)) continue;
|
|
@@ -169824,7 +169908,7 @@ var Config = class _Config {
|
|
|
169824
169908
|
return new ToolCallTool(registry2);
|
|
169825
169909
|
});
|
|
169826
169910
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
169827
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
169911
|
+
const { ToolSearchTool } = await import("./tool-search-B5WIMGV2.js");
|
|
169828
169912
|
return new ToolSearchTool(this);
|
|
169829
169913
|
});
|
|
169830
169914
|
if (this.executionEnvironment && !options2?.forSubAgent) {
|
|
@@ -169836,7 +169920,7 @@ var Config = class _Config {
|
|
|
169836
169920
|
}
|
|
169837
169921
|
if (this.shellExecutionSandbox) {
|
|
169838
169922
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
169839
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
169923
|
+
const { ShellTool: ShellTool2 } = await import("./shell-XUMG65ZC.js");
|
|
169840
169924
|
return new ShellTool2(this);
|
|
169841
169925
|
});
|
|
169842
169926
|
await registerLazy(ToolNames.TASK_STOP, async () => {
|
|
@@ -169844,31 +169928,31 @@ var Config = class _Config {
|
|
|
169844
169928
|
return new TaskStopTool(this);
|
|
169845
169929
|
});
|
|
169846
169930
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
169847
|
-
const { ReadFileTool } = await import("./read-file-
|
|
169931
|
+
const { ReadFileTool } = await import("./read-file-WBHCQFBS.js");
|
|
169848
169932
|
return new ReadFileTool(this);
|
|
169849
169933
|
});
|
|
169850
169934
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
169851
|
-
const { WriteFileTool } = await import("./write-file-
|
|
169935
|
+
const { WriteFileTool } = await import("./write-file-4N2F3VNU.js");
|
|
169852
169936
|
return new WriteFileTool(this);
|
|
169853
169937
|
});
|
|
169854
169938
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
169855
|
-
const { EditTool } = await import("./edit-
|
|
169939
|
+
const { EditTool } = await import("./edit-3XYI6QI5.js");
|
|
169856
169940
|
return new EditTool(this);
|
|
169857
169941
|
});
|
|
169858
169942
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
169859
|
-
const { MonitorTool } = await import("./monitor-
|
|
169943
|
+
const { MonitorTool } = await import("./monitor-UBN77ORZ.js");
|
|
169860
169944
|
return new MonitorTool(this);
|
|
169861
169945
|
});
|
|
169862
169946
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
169863
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
169947
|
+
const { AgentTool: AgentTool2 } = await import("./agent-WO7H3FRF.js");
|
|
169864
169948
|
return new AgentTool2(this);
|
|
169865
169949
|
});
|
|
169866
169950
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
169867
|
-
const { GlobTool } = await import("./glob-
|
|
169951
|
+
const { GlobTool } = await import("./glob-FVF7TFRO.js");
|
|
169868
169952
|
return new GlobTool(this);
|
|
169869
169953
|
});
|
|
169870
169954
|
await registerLazy(ToolNames.LS, async () => {
|
|
169871
|
-
const { LSTool } = await import("./ls-
|
|
169955
|
+
const { LSTool } = await import("./ls-SSSPTK7X.js");
|
|
169872
169956
|
return new LSTool(this);
|
|
169873
169957
|
});
|
|
169874
169958
|
if (resolveInteractionMode(this) !== "headless") {
|
|
@@ -169883,19 +169967,19 @@ var Config = class _Config {
|
|
|
169883
169967
|
}
|
|
169884
169968
|
if (this.getBareMode()) {
|
|
169885
169969
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
169886
|
-
const { ReadFileTool } = await import("./read-file-
|
|
169970
|
+
const { ReadFileTool } = await import("./read-file-WBHCQFBS.js");
|
|
169887
169971
|
return new ReadFileTool(this);
|
|
169888
169972
|
});
|
|
169889
169973
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
169890
|
-
const { EditTool } = await import("./edit-
|
|
169974
|
+
const { EditTool } = await import("./edit-3XYI6QI5.js");
|
|
169891
169975
|
return new EditTool(this);
|
|
169892
169976
|
});
|
|
169893
169977
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
169894
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
169978
|
+
const { NotebookEditTool } = await import("./notebook-edit-63MI44CU.js");
|
|
169895
169979
|
return new NotebookEditTool(this);
|
|
169896
169980
|
});
|
|
169897
169981
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
169898
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
169982
|
+
const { ShellTool: ShellTool2 } = await import("./shell-XUMG65ZC.js");
|
|
169899
169983
|
return new ShellTool2(this);
|
|
169900
169984
|
});
|
|
169901
169985
|
await registerGoalWorkerTools();
|
|
@@ -169914,7 +169998,7 @@ var Config = class _Config {
|
|
|
169914
169998
|
return new ToolCallTool(registry2);
|
|
169915
169999
|
});
|
|
169916
170000
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
169917
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
170001
|
+
const { ToolSearchTool } = await import("./tool-search-B5WIMGV2.js");
|
|
169918
170002
|
return new ToolSearchTool(this);
|
|
169919
170003
|
});
|
|
169920
170004
|
await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
|
|
@@ -169922,7 +170006,7 @@ var Config = class _Config {
|
|
|
169922
170006
|
return new ReadMcpResourceTool(this);
|
|
169923
170007
|
});
|
|
169924
170008
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
169925
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
170009
|
+
const { AgentTool: AgentTool2 } = await import("./agent-WO7H3FRF.js");
|
|
169926
170010
|
return new AgentTool2(this);
|
|
169927
170011
|
});
|
|
169928
170012
|
await registerLazy(ToolNames.LIST_AGENTS, async () => {
|
|
@@ -169938,21 +170022,21 @@ var Config = class _Config {
|
|
|
169938
170022
|
return new SendMessageTool(this);
|
|
169939
170023
|
});
|
|
169940
170024
|
await registerLazy(ToolNames.SKILL, async () => {
|
|
169941
|
-
const { SkillTool } = await import("./skill-
|
|
170025
|
+
const { SkillTool } = await import("./skill-RS7AGKYN.js");
|
|
169942
170026
|
return new SkillTool(this);
|
|
169943
170027
|
});
|
|
169944
170028
|
if (this.isLsToolEnabled()) {
|
|
169945
170029
|
await registerLazy(ToolNames.LS, async () => {
|
|
169946
|
-
const { LSTool } = await import("./ls-
|
|
170030
|
+
const { LSTool } = await import("./ls-SSSPTK7X.js");
|
|
169947
170031
|
return new LSTool(this);
|
|
169948
170032
|
});
|
|
169949
170033
|
}
|
|
169950
170034
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
169951
|
-
const { ReadFileTool } = await import("./read-file-
|
|
170035
|
+
const { ReadFileTool } = await import("./read-file-WBHCQFBS.js");
|
|
169952
170036
|
return new ReadFileTool(this);
|
|
169953
170037
|
});
|
|
169954
170038
|
await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
|
|
169955
|
-
const { ZoomImageTool } = await import("./zoom-image-
|
|
170039
|
+
const { ZoomImageTool } = await import("./zoom-image-E772GQFP.js");
|
|
169956
170040
|
return new ZoomImageTool(this);
|
|
169957
170041
|
});
|
|
169958
170042
|
if (this.getUseRipgrep()) {
|
|
@@ -169967,7 +170051,7 @@ var Config = class _Config {
|
|
|
169967
170051
|
recordStartupEvent("config_initialize_ripgrep_probe_end");
|
|
169968
170052
|
if (useRipgrep) {
|
|
169969
170053
|
await registerLazy(ToolNames.GREP, async () => {
|
|
169970
|
-
const { RipGrepTool } = await import("./ripGrep-
|
|
170054
|
+
const { RipGrepTool } = await import("./ripGrep-RXD7MQDC.js");
|
|
169971
170055
|
return new RipGrepTool(this);
|
|
169972
170056
|
});
|
|
169973
170057
|
} else {
|
|
@@ -169980,7 +170064,7 @@ var Config = class _Config {
|
|
|
169980
170064
|
)
|
|
169981
170065
|
);
|
|
169982
170066
|
await registerLazy(ToolNames.GREP, async () => {
|
|
169983
|
-
const { GrepTool } = await import("./grep-
|
|
170067
|
+
const { GrepTool } = await import("./grep-5HGH34M6.js");
|
|
169984
170068
|
return new GrepTool(this);
|
|
169985
170069
|
});
|
|
169986
170070
|
}
|
|
@@ -169988,32 +170072,32 @@ var Config = class _Config {
|
|
|
169988
170072
|
recordStartupEvent("config_initialize_ripgrep_probe_start");
|
|
169989
170073
|
recordStartupEvent("config_initialize_ripgrep_probe_end");
|
|
169990
170074
|
await registerLazy(ToolNames.GREP, async () => {
|
|
169991
|
-
const { GrepTool } = await import("./grep-
|
|
170075
|
+
const { GrepTool } = await import("./grep-5HGH34M6.js");
|
|
169992
170076
|
return new GrepTool(this);
|
|
169993
170077
|
});
|
|
169994
170078
|
}
|
|
169995
170079
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
169996
|
-
const { GlobTool } = await import("./glob-
|
|
170080
|
+
const { GlobTool } = await import("./glob-FVF7TFRO.js");
|
|
169997
170081
|
return new GlobTool(this);
|
|
169998
170082
|
});
|
|
169999
170083
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
170000
|
-
const { EditTool } = await import("./edit-
|
|
170084
|
+
const { EditTool } = await import("./edit-3XYI6QI5.js");
|
|
170001
170085
|
return new EditTool(this);
|
|
170002
170086
|
});
|
|
170003
170087
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
170004
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
170088
|
+
const { NotebookEditTool } = await import("./notebook-edit-63MI44CU.js");
|
|
170005
170089
|
return new NotebookEditTool(this);
|
|
170006
170090
|
});
|
|
170007
170091
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
170008
|
-
const { WriteFileTool } = await import("./write-file-
|
|
170092
|
+
const { WriteFileTool } = await import("./write-file-4N2F3VNU.js");
|
|
170009
170093
|
return new WriteFileTool(this);
|
|
170010
170094
|
});
|
|
170011
170095
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
170012
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
170096
|
+
const { ShellTool: ShellTool2 } = await import("./shell-XUMG65ZC.js");
|
|
170013
170097
|
return new ShellTool2(this);
|
|
170014
170098
|
});
|
|
170015
170099
|
await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
|
|
170016
|
-
const { ReportFindingsTool } = await import("./report-findings-
|
|
170100
|
+
const { ReportFindingsTool } = await import("./report-findings-S6QO46V2.js");
|
|
170017
170101
|
return new ReportFindingsTool();
|
|
170018
170102
|
});
|
|
170019
170103
|
const supportsUserInteraction = resolveInteractionMode(this) !== "headless";
|
|
@@ -170025,22 +170109,22 @@ var Config = class _Config {
|
|
|
170025
170109
|
}
|
|
170026
170110
|
if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
|
|
170027
170111
|
await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
|
|
170028
|
-
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-
|
|
170112
|
+
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-HSLDDGIZ.js");
|
|
170029
170113
|
return new ExitPlanModeTool2(this);
|
|
170030
170114
|
});
|
|
170031
170115
|
}
|
|
170032
170116
|
if (!this.sdkMode && supportsUserInteraction) {
|
|
170033
170117
|
await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
|
|
170034
|
-
const { EnterPlanModeTool } = await import("./enterPlanMode-
|
|
170118
|
+
const { EnterPlanModeTool } = await import("./enterPlanMode-T6ZQCSIY.js");
|
|
170035
170119
|
return new EnterPlanModeTool(this);
|
|
170036
170120
|
});
|
|
170037
170121
|
}
|
|
170038
170122
|
await registerLazy(ToolNames.ENTER_WORKTREE, async () => {
|
|
170039
|
-
const { EnterWorktreeTool } = await import("./enter-worktree-
|
|
170123
|
+
const { EnterWorktreeTool } = await import("./enter-worktree-FIO6VPWS.js");
|
|
170040
170124
|
return new EnterWorktreeTool(this);
|
|
170041
170125
|
});
|
|
170042
170126
|
await registerLazy(ToolNames.EXIT_WORKTREE, async () => {
|
|
170043
|
-
const { ExitWorktreeTool } = await import("./exit-worktree-
|
|
170127
|
+
const { ExitWorktreeTool } = await import("./exit-worktree-3UU4SS47.js");
|
|
170044
170128
|
return new ExitWorktreeTool(this);
|
|
170045
170129
|
});
|
|
170046
170130
|
if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
|
|
@@ -170061,7 +170145,7 @@ var Config = class _Config {
|
|
|
170061
170145
|
}
|
|
170062
170146
|
if (this.isRecordArtifactEnabled()) {
|
|
170063
170147
|
await registerLazy(ToolNames.RECORD_ARTIFACT, async () => {
|
|
170064
|
-
const { RecordArtifactTool } = await import("./record-artifact-
|
|
170148
|
+
const { RecordArtifactTool } = await import("./record-artifact-NO2DU63L.js");
|
|
170065
170149
|
return new RecordArtifactTool(this);
|
|
170066
170150
|
});
|
|
170067
170151
|
}
|
|
@@ -170098,7 +170182,7 @@ var Config = class _Config {
|
|
|
170098
170182
|
}
|
|
170099
170183
|
if (this.isAgentTeamEnabled()) {
|
|
170100
170184
|
await registerLazy(ToolNames.TEAM_CREATE, async () => {
|
|
170101
|
-
const { TeamCreateTool } = await import("./team-create-
|
|
170185
|
+
const { TeamCreateTool } = await import("./team-create-4LGDPW5M.js");
|
|
170102
170186
|
return new TeamCreateTool(this);
|
|
170103
170187
|
});
|
|
170104
170188
|
await registerLazy(ToolNames.TEAM_DELETE, async () => {
|
|
@@ -170106,7 +170190,7 @@ var Config = class _Config {
|
|
|
170106
170190
|
return new TeamDeleteTool(this);
|
|
170107
170191
|
});
|
|
170108
170192
|
await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
|
|
170109
|
-
const { TeamPlanApprovalTool } = await import("./team-plan-approval-
|
|
170193
|
+
const { TeamPlanApprovalTool } = await import("./team-plan-approval-KYQWPQXN.js");
|
|
170110
170194
|
return new TeamPlanApprovalTool(this);
|
|
170111
170195
|
});
|
|
170112
170196
|
if (!options2?.forSubAgent) {
|
|
@@ -170135,7 +170219,7 @@ var Config = class _Config {
|
|
|
170135
170219
|
const omniPolicyToolFactories = [
|
|
170136
170220
|
[
|
|
170137
170221
|
ToolNames.OMNI_DOWNSAMPLE_IMAGE,
|
|
170138
|
-
async () => new (await import("./downsample-image-
|
|
170222
|
+
async () => new (await import("./downsample-image-FUPJVVNL.js")).OmniDownsampleImageTool(this)
|
|
170139
170223
|
],
|
|
170140
170224
|
[
|
|
170141
170225
|
ToolNames.OMNI_DOWNSCALE_VIDEO,
|
|
@@ -170202,7 +170286,7 @@ var Config = class _Config {
|
|
|
170202
170286
|
}
|
|
170203
170287
|
}
|
|
170204
170288
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
170205
|
-
const { MonitorTool } = await import("./monitor-
|
|
170289
|
+
const { MonitorTool } = await import("./monitor-UBN77ORZ.js");
|
|
170206
170290
|
return new MonitorTool(this);
|
|
170207
170291
|
});
|
|
170208
170292
|
if (this.pendingMcpBudgetCallback) {
|