Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 51 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

// Stream messaging
/// NIP-29 group chat message kind. V1 used kind:10001 (replaceable range — wrong), then 40001.
Expand Down Expand Up @@ -372,6 +388,9 @@ pub const ALL_KINDS: &[u32] = &[
KIND_NIP29_GROUP_ROLES,
KIND_PRESENCE_UPDATE,
KIND_TYPING_INDICATOR,
KIND_MESH_STATUS_REPORT,
KIND_MESH_CONNECT_REQUEST,
KIND_MESH_CALL_ME_NOW,
KIND_BLOSSOM_AUTH,
KIND_PAIRING,
KIND_AGENT_OBSERVER_FRAME,
Expand Down
2 changes: 1 addition & 1 deletion crates/sprout-relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ metrics-exporter-prometheus = { workspace = true }
dev = ["sprout-auth/dev"]

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