feat(app): call detection and the four response policies
- calls.rs: wake words anywhere in the utterance with near matches by edit distance on NFKD-normalised letters (Hangul splits into its letters), call modes (wakeWord, addressed, everything), designated people with both switches, and a voice stop (wake word + stop word). - policy.rs: first, inOrder, latest and important as an event-driven state machine with the time passed in: ordering by end time, waiting for an earlier-ended utterance still being transcribed, queue limit, interruption, importance ranking only on a tie with a timeout, stop dropping the queue, and a reason for every missed request. - settings: new call and response sections, validated with the key. - conversation.spec.md documents the contract; registry and roadmap updated. Wiring into the Discord core and the brain comes next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
//! Jarvis v2 app core (see `app/src/discord_core.spec.md`).
|
||||
|
||||
pub mod log;
|
||||
pub mod calls;
|
||||
pub mod chat;
|
||||
pub mod discord;
|
||||
pub mod frames;
|
||||
pub mod playback;
|
||||
pub mod policy;
|
||||
pub mod receive;
|
||||
pub mod services;
|
||||
pub mod settings;
|
||||
|
||||
Reference in New Issue
Block a user