- app/ (Electron 45 + TypeScript): the core joins one voice channel, decodes each speaker's Opus to 48 kHz stereo and streams it to the voice worker, sends speaking_end and speaker_leave, and emits speech_start/partial/final with the speaker's display name. - Sentence playback from the worker's TTS, first come first served, with stop that silences the clip at once and cancels unfinished requests; slash command join/leave/stop (create-or-update by name). - Transcription notice posted on every join; other bots ignored by default; at most maxSpeakers people transcribed at once. - Registered chat channels: live message events, history reads, sends split at 2,000 characters with mentions disabled; Message Content intent checked before login. - The app starts the Python voice worker with a fresh token in the environment, restarts it with backoff, and the worker client reconnects and fails in-flight TTS on a lost connection. - Spec in app/src/core/discord_core.spec.md; Vitest unit tests, a protocol test against the real Python worker server with fake engines, and an opt-in live test with two bots on real Discord. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
832 B
JSON
30 lines
832 B
JSON
{
|
|
"name": "jarvis-app",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Jarvis v2 Windows app: Discord voice core, voice worker supervisor (Electron + TypeScript)",
|
|
"type": "module",
|
|
"main": "dist/main.js",
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p test/tsconfig.json",
|
|
"test": "vitest run --maxWorkers=2",
|
|
"start": "npm run build && electron .",
|
|
"start:node": "npm run build && node dist/cli.js"
|
|
},
|
|
"dependencies": {
|
|
"@discordjs/voice": "^0.19.2",
|
|
"discord.js": "^14.28.1",
|
|
"opusscript": "^0.0.8",
|
|
"prism-media": "^1.3.5",
|
|
"ws": "^8.22.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.19.0",
|
|
"@types/ws": "^8.18.1",
|
|
"electron": "^45.3.0",
|
|
"typescript": "~5.9.3",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|