fix(rebase): resolve main drift and restore CI contracts

This commit is contained in:
Chummy 2026-02-17 00:28:28 +08:00
parent b2dd3582a4
commit 413ecfd143
3 changed files with 9 additions and 3 deletions

View file

@ -219,17 +219,24 @@ impl Agent {
} else {
None
};
let composio_entity_id = if config.composio.enabled {
Some(config.composio.entity_id.as_str())
} else {
None
};
let tools = tools::all_tools_with_runtime(
&security,
runtime,
memory.clone(),
composio_key,
composio_entity_id,
&config.browser,
&config.http_request,
&config.workspace_dir,
&config.agents,
config.api_key.as_deref(),
config,
);
let provider_name = config.default_provider.as_deref().unwrap_or("openrouter");

View file

@ -219,7 +219,6 @@ pub async fn run_gateway(host: &str, port: u16, config: Config) -> Result<()> {
config.api_key.as_deref(),
)?);
// Extract webhook secret for authentication
let webhook_secret: Option<Arc<str>> = config
.channels_config

View file

@ -74,7 +74,7 @@ pub fn all_tools(
browser_config: &crate::config::BrowserConfig,
http_config: &crate::config::HttpRequestConfig,
workspace_dir: &std::path::Path,
agents: &HashMap<String, DelegateAgentConfig, S>,
agents: &HashMap<String, DelegateAgentConfig>,
fallback_api_key: Option<&str>,
config: &crate::config::Config,
) -> Vec<Box<dyn Tool>> {
@ -104,7 +104,7 @@ pub fn all_tools_with_runtime(
browser_config: &crate::config::BrowserConfig,
http_config: &crate::config::HttpRequestConfig,
workspace_dir: &std::path::Path,
agents: &HashMap<String, DelegateAgentConfig, S>,
agents: &HashMap<String, DelegateAgentConfig>,
fallback_api_key: Option<&str>,
config: &crate::config::Config,
) -> Vec<Box<dyn Tool>> {