refactor: remove voice/recording/media features from frontend + prune lockfiles

- Delete pages: (dashboard)/{recordings,voice,media}/ incl. view.tsx
- Delete components/{voice,media}, hooks/{use-voice,use-recordings,use-media},
  lib/audio/ (mic-transmit, pcm-player, wav), api/{voice,recordings,media},
  types/{voice,recording,media}, lib/hash.ts
- Cut nav tiles (Active Voice Stages, Voice Recording Archive) from dashboard,
  MiniPlayer from ambient-app, hooks/types barrel exports, WS voice/media events
- Re-home guilds + textChannels to messages oRPC router (DB-derived) so the
  messages page picker keeps working; guild-picker simplified to text-only
- Clean Channel/AppConfig types of voice remnants
- Delete infra/docker/recordings/ + 11 voice/recording/video spec docs
- pnpm install: prune direct voice deps from gateway + backend lockfiles
  (prism-media/opusscript remain only as transitive discord.js deps)
This commit is contained in:
asepharyana committed 2026-09-23 19:45:14 +07:00
1 parent 33013697e0
commit ce784f8305
55 files changed
+151 -5227

No files matched your search

+1 -21
View File
@@ -1,10 +1,4 @@
import type {
ActiveSpeaker,
MediaState,
MessageRecord,
ModerationAction,
VoiceRecording,
} from "@/lib/types";
import type { MessageRecord, ModerationAction } from "@/lib/types";
// ── Connection Status ──────────────────────────────────────
@@ -46,19 +40,6 @@ export interface WsEventMap {
message_snapshot_end: { sent: number; error?: boolean };
attachment_created: unknown;
attachment_uploaded: unknown;
voice_recording_started: unknown;
voice_recording_stopped: unknown;
voice_recording_uploaded: VoiceRecording;
voice_active_user: ActiveSpeaker;
/**
* Authoritative shared live-voice snapshot — `{ activeSpeakers: [...] }`.
* The backend sends this on WS connect (initial state) and clients replace
* their local list wholesale so every user converges on the same state.
*/
voice_state: { activeSpeakers: ActiveSpeaker[] };
/** NOT delivered as JSON — arrives only via onPcm() binary handler as PcmChunk */
voice_pcm_data: never;
voice_analyzed: unknown;
analysis_queue_status: unknown;
reaction_added: unknown;
reaction_removed: unknown;
@@ -71,7 +52,6 @@ export interface WsEventMap {
guild_member_removed: unknown;
/** Live moderation action broadcast (gateway → Redis → backend → WS). */
moderation_action: ModerationAction;
media_state: MediaState;
user_state: unknown;
ui_state: unknown;
heartbeat: unknown;