Skip to content

Commit 33cfc85

Browse files
tlongwell-blocknpub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67dnpub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehrMax
authored
Mesh-LLM v1: relay-gated direct-iroh inference between users (WAN) (#822)
Signed-off-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Max <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>
1 parent 7c896d3 commit 33cfc85

32 files changed

Lines changed: 1567 additions & 554 deletions

‎Cargo.lock‎

Lines changed: 51 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/sprout-core/src/kind.rs‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,22 @@ pub const KIND_PAIRING: u32 = 24134;
180180
pub const KIND_TYPING_INDICATOR: u32 = 20002;
181181
/// Ephemeral: owner-scoped encrypted agent observer telemetry and control frame.
182182
pub const KIND_AGENT_OBSERVER_FRAME: u32 = 24200;
183+
/// Ephemeral: mesh status report (desktop → relay). A relay member reports its
184+
/// current mesh serve availability + EndpointAddr(s) so the relay can project a
185+
/// sanitized, relay-signed kind:30621 discovery note keyed per reporter. Tagged
186+
/// `["p", <self>]` optional; never stored — the durable record is the relay's
187+
/// 30621, not this transient input.
188+
pub const KIND_MESH_STATUS_REPORT: u32 = 24620;
189+
/// Ephemeral: mesh connect request (desktop → relay). A relay member asks the
190+
/// relay to coordinate a direct iroh hole-punch to a peer it discovered via
191+
/// kind:30621. Tagged `["p", <target_pubkey>]`. Never stored; the relay
192+
/// validates membership of both ends, then emits paired KIND_MESH_CALL_ME_NOW.
193+
pub const KIND_MESH_CONNECT_REQUEST: u32 = 24621;
194+
/// Ephemeral: mesh call-me-now signal (relay → desktop, relay-signed). The live
195+
/// dial trigger for a direct iroh hole-punch — carries the peer's EndpointAddr
196+
/// so both ends dial near-simultaneously. Tagged `["p", <recipient_pubkey>]`.
197+
/// Never stored; seconds expiry.
198+
pub const KIND_MESH_CALL_ME_NOW: u32 = 24622;
183199

184200
// Stream messaging
185201
/// NIP-29 group chat message kind. V1 used kind:10001 (replaceable range — wrong), then 40001.
@@ -372,6 +388,9 @@ pub const ALL_KINDS: &[u32] = &[
372388
KIND_NIP29_GROUP_ROLES,
373389
KIND_PRESENCE_UPDATE,
374390
KIND_TYPING_INDICATOR,
391+
KIND_MESH_STATUS_REPORT,
392+
KIND_MESH_CONNECT_REQUEST,
393+
KIND_MESH_CALL_ME_NOW,
375394
KIND_BLOSSOM_AUTH,
376395
KIND_PAIRING,
377396
KIND_AGENT_OBSERVER_FRAME,

‎crates/sprout-relay/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ metrics-exporter-prometheus = { workspace = true }
6565
dev = ["sprout-auth/dev"]
6666

6767
[dev-dependencies]
68-
mesh-llm-sdk = { git = "https://github.com/Mesh-LLM/mesh-llm.git", rev = "bd16da4955a9dceee8f1e0a02c5814944f4e12a5", package = "mesh-llm-sdk", default-features = false, features = ["client", "serve"] }
68+
mesh-llm-sdk = { git = "https://github.com/tlongwell-block/mesh-llm.git", rev = "bc2f110625ccad2c3f8557b125c063bdc030fd21", package = "mesh-llm-sdk", default-features = false, features = ["client", "serve"] }
6969
sprout-core = { workspace = true, features = ["test-utils"] }
7070
sprout-auth = { workspace = true, features = ["dev"] }
7171
reqwest = { workspace = true }

0 commit comments

Comments
 (0)