hive-agent-mcp: the send allow-list is gone, agents talk to peers over matrix
This commit is contained in:
parent
f23ce106b1
commit
c1f7bb798e
1 changed files with 14 additions and 97 deletions
|
|
@ -150,11 +150,6 @@ impl AgentServer {
|
|||
async fn send(&self, Parameters(args): Parameters<SendArgs>) -> String {
|
||||
let log = format!("{args:?}");
|
||||
let to = args.to.clone();
|
||||
// Check per-agent allow-list (services.hyperhive.agent.allowedRecipients). When no
|
||||
// policy file is present the check is a no-op.
|
||||
if let Err(refusal) = crate::send_allow::check_send_allowed(&to) {
|
||||
return run_tool_envelope("send", log, async move { refusal }).await;
|
||||
}
|
||||
run_tool_envelope("send", log, async move {
|
||||
let (resp, retries) = self
|
||||
.dispatch(hive_core_agent_sock::Request::Send {
|
||||
|
|
|
|||
Loading…
Reference in a new issue