Voice 11: fluxer-core::voice DM calls and status selector #72

Closed
opened 2026-11-11 12:17:36 +00:00 by charles · 0 comments
Owner

Files:

  • Create: crates/fluxer-core/src/voice/calls.rs, crates/fluxer-core/src/selectors/voice_status.rs
  • Modify: effect.rs, event.rs, Cargo.toml (depend on fluxer-status-api's payload types only if that crate's payload module has no I/O dependencies; otherwise move the payload types into fluxer-proto in this task and re-export them from fluxer-status-api)
  • Test: crates/fluxer-core/tests/{calls.rs,voice_status.rs}

Interfaces:

  • Produces: Calls { by_channel: HashMap<Snowflake, Call { ringing, voice_states, message_id, region }>, incoming: Option<Snowflake> }; UserAction::{StartCall(channel_id), AcceptCall(channel_id), DeclineCall(channel_id), EndCall(channel_id)}; ApiRequest::{CallEligibility, Ring, StopRinging, EndCall}; ring chime looped via AudioCommand::PlayChime(Chime::IncomingCall) until answered/declined/CALL_DELETE; joining a DM call sends op 4 with guild_id: null.

  • selectors::voice_status(&App) -> Option<VoiceStatusPayload> per facts §9 (connection state mapping, OR-merge across a user's devices, self first then display name then id); None only before login.

  • Step 1: Write failing tests: call_create_with_me_ringing_sets_incoming, accept_joins_with_null_guild, decline_stops_ringing, call_delete_clears, status_payload_disconnected_shape, status_payload_merges_devices_and_sorts, status_payload_json_matches_fork_fixture.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): DM calls and voice status selector.

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md

**Files:** - Create: `crates/fluxer-core/src/voice/calls.rs`, `crates/fluxer-core/src/selectors/voice_status.rs` - Modify: `effect.rs`, `event.rs`, `Cargo.toml` (depend on `fluxer-status-api`'s payload types only if that crate's payload module has no I/O dependencies; otherwise move the payload types into `fluxer-proto` in this task and re-export them from `fluxer-status-api`) - Test: `crates/fluxer-core/tests/{calls.rs,voice_status.rs}` **Interfaces:** - Produces: `Calls { by_channel: HashMap<Snowflake, Call { ringing, voice_states, message_id, region }>, incoming: Option<Snowflake> }`; `UserAction::{StartCall(channel_id), AcceptCall(channel_id), DeclineCall(channel_id), EndCall(channel_id)}`; `ApiRequest::{CallEligibility, Ring, StopRinging, EndCall}`; ring chime looped via `AudioCommand::PlayChime(Chime::IncomingCall)` until answered/declined/`CALL_DELETE`; joining a DM call sends op 4 with `guild_id: null`. - `selectors::voice_status(&App) -> Option<VoiceStatusPayload>` per facts §9 (connection state mapping, OR-merge across a user's devices, self first then display name then id); `None` only before login. - [ ] **Step 1: Write failing tests**: `call_create_with_me_ringing_sets_incoming`, `accept_joins_with_null_guild`, `decline_stops_ringing`, `call_delete_clears`, `status_payload_disconnected_shape`, `status_payload_merges_devices_and_sorts`, `status_payload_json_matches_fork_fixture`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): DM calls and voice status selector`. Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md
charles added this to the Voice milestone 2026-11-11 12:17:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#72
No description provided.