mirror of
https://github.com/Kynde/dais.git
synced 2026-10-20 08:32:28 +02:00
- Clojure daemon: ndjson unix-socket control API (publish/control/target/ query/events/replay), JSONL audit log with replay-by-trace, state.json + mic-recording/speech-detected markers, timeout-only notifications - Router with whole-match keypress grammar (ported from lausu), :prefix and :key-armed fallback strategies, enter-modes, armed single-shot - Delivery backends: tmux (load-buffer/paste-buffer + send-keys, list-panes existence check) and focus (ydotool type/key with keycode chords) - Resident ear worker (pixi/faster-whisper): manual latch via pw-record, model loaded once; daemon supervises and syncs mode transitions (voice-off discards a recording, F10 stop transcribes it) - tools/: dais-ctl (node) + KDE-safe sh toggles dais-vad/dais-rec/dais-esc - 36 tests / 135 assertions; live acceptance: 3s latch recording transcribed in ~1s and routed to a type-text plan
5 lines
259 B
Bash
Executable File
5 lines
259 B
Bash
Executable File
#!/bin/sh
|
|
# Send Escape to the active dais target immediately (bind to F11). KDE-safe.
|
|
SOCK="${DAIS_SOCKET:-${XDG_RUNTIME_DIR:-/run/user/$(/usr/bin/id -u)}/dais/control.sock}"
|
|
printf '{"op":"control","action":"esc"}\n' | /usr/bin/socat - "UNIX-CONNECT:$SOCK"
|