1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//! # Brainwires Agent Network
//!
//! Agent-to-agent networking layer for the Brainwires Agent Framework.
//!
//! Provides IPC, remote bridge, mesh networking, routing, discovery,
//! and pluggable transports for agent communication.
//!
//! ## Protocol-Layer Stack
//!
//! The networking layer is organized as a 5-layer protocol stack:
//!
//! 1. **Identity** — agent identity, capability advertisement, credentials
//! 2. **Transport** — how bytes move (IPC, Remote, TCP, A2A, Pub/Sub)
//! 3. **Routing** — where messages go (direct, topology, broadcast, content)
//! 4. **Discovery** — how agents find each other (mDNS, registry, manual)
//! 5. **Application** — user-facing API (NetworkManager, events)
/// Networking transport layer — pluggable transports for agent communication.
// ============================================================================
// Agent Communication Backbone (IPC, Auth, Remote)
// ============================================================================
/// Authentication for agent network connections.
/// IPC (inter-process communication) socket protocol.
/// Remote bridge and realtime protocol.
/// Common agent network traits.
// ============================================================================
// Agent Management (tool registry + lifecycle trait)
// ============================================================================
/// Agent lifecycle management.
/// Pre-built MCP tools for agent operations.
pub use ;
pub use AgentToolRegistry;
// ============================================================================
// Client
// ============================================================================
/// Client for connecting to a remote agent network server.
pub use ;
// ============================================================================
// Mesh Networking (topology, routing, discovery, federation)
// ============================================================================
/// Distributed agent mesh networking — topology, routing, discovery, federation.
// ============================================================================
// Protocol-Layer Stack (Identity, Network Core)
// ============================================================================
/// Peer discovery — how agents find each other on the network.
/// Agent identity, capability advertisement, and credentials.
/// Core network types: message envelopes, events, and errors.
/// Message routing — direct, broadcast, and content-based routing.
/// Universal messaging channels (absorbed from brainwires-channels).
pub use ;
pub use ;
pub use ;
pub use IpcTransport;
pub use PubSubTransport;
pub use RemoteTransport;
pub use TcpTransport;
pub use ;