Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ RELAY_URL=ws://localhost:3000
# (use `just web` for Vite HMR instead).
# BUZZ_WEB_DIR=./web/dist

# -----------------------------------------------------------------------------
# Desktop integrations (OAuth)
# -----------------------------------------------------------------------------
# Optional Spotify Web API app client ID. In the Spotify developer dashboard,
# register this redirect URI:
# http://127.0.0.1:18202/oauth/spotify/callback
# Spotify playback controls require Spotify Premium for each connected account.
# BUZZ_SPOTIFY_CLIENT_ID=
# BUZZ_SPOTIFY_REDIRECT_PORT=18202

# -----------------------------------------------------------------------------
# Git (NIP-34 bare repositories)
# -----------------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions crates/buzz-core/src/kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ pub const KIND_AGENT_OBSERVER_FRAME: u32 = 24200;
/// Ephemeral: huddle emoji reaction burst. Channel-scoped to the ephemeral
/// huddle channel with an `h` tag; never stored in the timeline.
pub const KIND_HUDDLE_REACTION: u32 = 24810;
/// Ephemeral: live huddle Spotify DJ handoff fallback. Channel-scoped to the
/// ephemeral huddle channel with an `h` tag; never stored in the timeline.
pub const KIND_HUDDLE_SPOTIFY_DJ_LIVE: u32 = 24811;
/// 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
Expand Down Expand Up @@ -391,6 +394,8 @@ pub const KIND_HUDDLE_PARTICIPANT_JOINED: u32 = 48101;
pub const KIND_HUDDLE_PARTICIPANT_LEFT: u32 = 48102;
/// A huddle ended.
pub const KIND_HUDDLE_ENDED: u32 = 48103;
/// Huddle Spotify DJ handoff event.
pub const KIND_HUDDLE_SPOTIFY_DJ: u32 = 48104;
/// Huddle channel guidelines/rules document.
pub const KIND_HUDDLE_GUIDELINES: u32 = 48106;

Expand Down Expand Up @@ -471,6 +476,7 @@ pub const ALL_KINDS: &[u32] = &[
KIND_PRESENCE_UPDATE,
KIND_TYPING_INDICATOR,
KIND_HUDDLE_REACTION,
KIND_HUDDLE_SPOTIFY_DJ_LIVE,
KIND_MESH_STATUS_REPORT,
KIND_MESH_CONNECT_REQUEST,
KIND_MESH_CALL_ME_NOW,
Expand Down Expand Up @@ -529,6 +535,7 @@ pub const ALL_KINDS: &[u32] = &[
KIND_HUDDLE_PARTICIPANT_JOINED,
KIND_HUDDLE_PARTICIPANT_LEFT,
KIND_HUDDLE_ENDED,
KIND_HUDDLE_SPOTIFY_DJ,
KIND_HUDDLE_GUIDELINES,
KIND_MEDIA_UPLOAD,
KIND_GIT_REPO_ANNOUNCEMENT,
Expand Down
2 changes: 1 addition & 1 deletion crates/buzz-relay/src/handlers/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn bounded_kind_label(kind: u32) -> String {
44100..=44101 => kind.to_string(),
45001..=45003 => kind.to_string(),
46001..=46012 | 46020 | 46030..=46031 => kind.to_string(),
48001 | 48100..=48103 | 48106 => kind.to_string(),
48001 | 48100..=48104 | 48106 => kind.to_string(),
49001 => kind.to_string(),
_ => "other".to_string(),
}
Expand Down
10 changes: 6 additions & 4 deletions crates/buzz-relay/src/handlers/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ use buzz_core::kind::{
KIND_GIT_PR_UPDATE, KIND_GIT_PULL_REQUEST, KIND_GIT_REPO_ANNOUNCEMENT, KIND_GIT_REPO_STATE,
KIND_GIT_STATUS_CLOSED, KIND_GIT_STATUS_DRAFT, KIND_GIT_STATUS_MERGED, KIND_GIT_STATUS_OPEN,
KIND_HUDDLE_ENDED, KIND_HUDDLE_GUIDELINES, KIND_HUDDLE_PARTICIPANT_JOINED,
KIND_HUDDLE_PARTICIPANT_LEFT, KIND_HUDDLE_STARTED, KIND_IA_ARCHIVE_REQUEST,
KIND_IA_UNARCHIVE_REQUEST, KIND_LONG_FORM, KIND_MANAGED_AGENT, KIND_MEMBER_ADDED_NOTIFICATION,
KIND_MEMBER_REMOVED_NOTIFICATION, KIND_MESH_LLM_RELAY_STATUS, KIND_MUTE_LIST,
KIND_NIP29_CREATE_GROUP, KIND_NIP29_DELETE_EVENT, KIND_NIP29_DELETE_GROUP,
KIND_HUDDLE_PARTICIPANT_LEFT, KIND_HUDDLE_SPOTIFY_DJ, KIND_HUDDLE_STARTED,
KIND_IA_ARCHIVE_REQUEST, KIND_IA_UNARCHIVE_REQUEST, KIND_LONG_FORM, KIND_MANAGED_AGENT,
KIND_MEMBER_ADDED_NOTIFICATION, KIND_MEMBER_REMOVED_NOTIFICATION, KIND_MESH_LLM_RELAY_STATUS,
KIND_MUTE_LIST, KIND_NIP29_CREATE_GROUP, KIND_NIP29_DELETE_EVENT, KIND_NIP29_DELETE_GROUP,
KIND_NIP29_EDIT_METADATA, KIND_NIP29_JOIN_REQUEST, KIND_NIP29_LEAVE_REQUEST,
KIND_NIP29_PUT_USER, KIND_NIP29_REMOVE_USER, KIND_NIP43_LEAVE_REQUEST,
KIND_NIP65_RELAY_LIST_METADATA, KIND_PERSONA, KIND_PIN_LIST, KIND_PRESENCE_UPDATE,
Expand Down Expand Up @@ -225,6 +225,7 @@ fn required_scope_for_kind(kind: u32, event: &Event) -> Result<Scope, &'static s
| KIND_HUDDLE_PARTICIPANT_JOINED
| KIND_HUDDLE_PARTICIPANT_LEFT
| KIND_HUDDLE_ENDED
| KIND_HUDDLE_SPOTIFY_DJ
| KIND_HUDDLE_GUIDELINES => Ok(Scope::ChannelsWrite),
// NIP-34: Git repository events
KIND_GIT_REPO_ANNOUNCEMENT | KIND_GIT_REPO_STATE => Ok(Scope::ReposWrite),
Expand Down Expand Up @@ -407,6 +408,7 @@ pub(crate) fn requires_h_channel_scope(kind: u32) -> bool {
| KIND_HUDDLE_PARTICIPANT_JOINED
| KIND_HUDDLE_PARTICIPANT_LEFT
| KIND_HUDDLE_ENDED
| KIND_HUDDLE_SPOTIFY_DJ
| KIND_HUDDLE_GUIDELINES
)
}
Expand Down
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ serde_yaml = "0.9"
toml = "0.8"
nostr = { version = "0.44", features = ["nip44"] }
zeroize = "1"
reqwest = { version = "0.13", features = ["json", "query", "stream"] }
reqwest = { version = "0.13", features = ["form", "json", "query", "stream"] }
url = "2"
buzz_core_pkg = { package = "buzz-core", path = "../../crates/buzz-core" }
buzz_persona_pkg = { package = "buzz-persona", path = "../../crates/buzz-persona" }
Expand Down
2 changes: 2 additions & 0 deletions desktop/src-tauri/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mod profile;
mod relay_members;
mod relay_reconnect;
mod social;
mod spotify;
mod teams;
mod workflows;
mod workspace;
Expand Down Expand Up @@ -58,6 +59,7 @@ pub use profile::*;
pub use relay_members::*;
pub use relay_reconnect::*;
pub use social::*;
pub use spotify::*;
pub use teams::*;
pub use workflows::*;
pub use workspace::*;
Loading
Loading