mirror of
https://github.com/block/buzz.git
synced 2026-10-28 21:11:48 +00:00
fix: rename missed known_acp_provider_exact → known_acp_runtime_exact (#900)
This commit is contained in:
@@ -17,7 +17,7 @@ const MESH_API_PORT_ENV: &str = "SPROUT_MESH_API_PORT";
|
|||||||
const MESH_CONSOLE_PORT_ENV: &str = "SPROUT_MESH_CONSOLE_PORT";
|
const MESH_CONSOLE_PORT_ENV: &str = "SPROUT_MESH_CONSOLE_PORT";
|
||||||
const RELAY_MESH_API_KEY_PLACEHOLDER: &str = "sprout-mesh-local";
|
const RELAY_MESH_API_KEY_PLACEHOLDER: &str = "sprout-mesh-local";
|
||||||
/// ACP provider relay-mesh agents run on. Sources of truth for its command +
|
/// ACP provider relay-mesh agents run on. Sources of truth for its command +
|
||||||
/// MCP live in the provider catalog (`known_acp_provider_exact`); these are
|
/// MCP live in the runtime catalog (`known_acp_runtime_exact`); these are
|
||||||
/// only the fallbacks. `sprout-agent` reads the `SPROUT_AGENT_PROVIDER` /
|
/// only the fallbacks. `sprout-agent` reads the `SPROUT_AGENT_PROVIDER` /
|
||||||
/// `OPENAI_COMPAT_*` env vars below — goose (the global default) does not.
|
/// `OPENAI_COMPAT_*` env vars below — goose (the global default) does not.
|
||||||
const MESH_AGENT_PROVIDER_ID: &str = "sprout-agent";
|
const MESH_AGENT_PROVIDER_ID: &str = "sprout-agent";
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ pub fn agent_preset(request: MeshAgentPresetRequest) -> Result<MeshAgentPreset,
|
|||||||
}
|
}
|
||||||
// Run on sprout-agent, not the global default (goose). Source command +
|
// Run on sprout-agent, not the global default (goose). Source command +
|
||||||
// MCP from the catalog so this can't drift from the provider definition.
|
// MCP from the catalog so this can't drift from the provider definition.
|
||||||
let sprout_agent = crate::managed_agents::known_acp_provider_exact(MESH_AGENT_PROVIDER_ID);
|
let sprout_agent = crate::managed_agents::known_acp_runtime_exact(MESH_AGENT_PROVIDER_ID);
|
||||||
let agent_command = sprout_agent
|
let agent_command = sprout_agent
|
||||||
.and_then(|p| p.commands.first().copied())
|
.and_then(|p| p.commands.first().copied())
|
||||||
.unwrap_or(MESH_AGENT_PROVIDER_ID)
|
.unwrap_or(MESH_AGENT_PROVIDER_ID)
|
||||||
|
|||||||
Reference in New Issue
Block a user