Skip to main content

Crate convergio_mesh

Crate convergio_mesh 

Source
Expand description

convergio-mesh โ€” Peer discovery, delta sync, delegation tracking.

Implements Extension: owns mesh_sync_stats, peer_heartbeats, host_heartbeats, mesh_peer_state, coordinator_events, delegation_progress.

Modulesยง

auth
Mesh peer authentication via HMAC-SHA256 challenge-response. Pre-shared key loaded from peers.conf [mesh] section.
capability_registry
Capability registry: CRUD and query operations on node_capabilities.
capability_routes
HTTP API routes for the node capability registry.
capability_types
Types for the node capability registry.
convergence
Post-sync convergence verification.
delegation
Delegation progress tracking.
error
General mesh error type covering auth, config, db, io, network.
ext
MeshExtension: Extension trait implementation.
mcp_defs
MCP tool definitions for the mesh extension.
peers_parser
INI parser and serialiser for ~/.claude/config/peers.conf.
peers_registry
PeersRegistry: load, save, and mutation operations.
peers_types
Peer configuration types for peers.conf INI format.
routes
HTTP API routes for mesh sync and peer management.
routes_cross_poll
Cross-poll routes: query local or remote plan summary via mesh proxy.
routes_role_config
HTTP API routes for mesh node role configuration.
routes_sync_repo
POST /api/mesh/sync-repo โ€” git pull + rebuild + CLI update on THIS node. SECURITY: This endpoint executes system commands and MUST require auth.
schema
Mesh DB migrations: peer heartbeats, sync stats, convergence, coordinator events, delegation progress.
sync
HTTP LWW sync loop: timestamp-based peer replication.
sync_apply
Sync data exchange: export local changes, apply remote changes.
sync_cursor
Sync cursor advance rule.
sync_loop
Background mesh sync loop.
transport
HTTP transport helpers for background sync.
types
Shared mesh types: sync metadata, change records, stats, delegation.