zeroclaw/src
Argenis 25b639435f
fix: merge voice-wake feature (PR #4162) with conflict resolution (#4225)
* feat(channels): add voice wake word detection channel

Add VoiceWakeChannel behind the `voice-wake` feature flag that:
- Captures audio from the default microphone via cpal
- Uses energy-based VAD to detect speech activity
- Transcribes speech via the existing transcription API (Whisper)
- Checks for a configurable wake word in the transcription
- On detection, captures the following utterance and dispatches it
  as a ChannelMessage

State machine: Listening -> Triggered -> Capturing -> Processing -> Listening

Config keys (under [channels_config.voice_wake]):
- wake_word (default: "hey zeroclaw")
- silence_timeout_ms (default: 2000)
- energy_threshold (default: 0.01)
- max_capture_secs (default: 30)

Includes tests for config parsing, state machine, RMS energy
computation, and WAV encoding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(config): fix pre-existing test compilation errors in schema.rs

- Remove #[cfg(unix)] gate on `use tempfile::TempDir` import since
  TempDir is used unconditionally in bootstrap file tests
- Add explicit type annotations on tokio::fs::* calls to resolve
  type inference failures (create_dir_all, write, read_to_string)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(channels): exclude voice-wake from all-features CI check

Add a `ci-all` meta-feature in Cargo.toml that includes every feature
except `voice-wake`, which requires `libasound2-dev` (ALSA) not present
on CI runners. Update the check-all-features CI job to use
`--features ci-all` instead of `--all-features`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Giulio V <vannini.gv@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 00:49:12 -04:00
..
agent merge: resolve conflicts with master + remove memory-mem0 from ci-all 2026-03-22 00:18:09 -04:00
approval fix(approval): support wildcard * in auto_approve and always_ask (#4184) 2026-03-21 19:38:11 -04:00
auth feat(auth): add import functionality for existing OpenAI Codex auth p… (#3762) 2026-03-21 06:49:44 -04:00
channels fix: merge voice-wake feature (PR #4162) with conflict resolution (#4225) 2026-03-22 00:49:12 -04:00
commands feat(memory): add time range filter to recall (since/until) 2026-03-21 07:46:34 -04:00
config feat(memory): layered architecture upgrade + remove mem0 backend (#4226) 2026-03-22 00:47:42 -04:00
cost fix(channels): add cost tracking and enforcement to all channels (#4143) 2026-03-21 07:37:15 -04:00
cron fix(cron): add qq to supported delivery channel whitelist (#4120) 2026-03-21 05:14:30 -04:00
daemon fix(heartbeat): prevent UTF-8 panic, add memory bounds and path validation in session context 2026-03-22 00:01:44 -04:00
doctor feat(tool): enrich delegate sub-agent system prompt and add skills_directory config key (#3344) 2026-03-21 07:53:02 -04:00
gateway merge: resolve conflicts with master (image_gen + sessions) 2026-03-21 21:18:46 -04:00
hands feat(hands): add autonomous knowledge-accumulating agent packages (#3603) 2026-03-15 16:06:14 -04:00
hardware fix(hardware): drain stdin in subprocess test to prevent broken pipe flake (#4161) 2026-03-21 12:19:53 -04:00
health refactor(sync): migrate remaining std mutex usage to parking_lot 2026-02-18 00:45:26 +08:00
heartbeat feat(heartbeat): add health metrics, adaptive intervals, and task history 2026-03-16 12:08:32 -04:00
hooks feat(hooks): add webhook-audit builtin hook (#3212) 2026-03-11 23:34:17 -04:00
integrations feat(channel): add per-channel proxy_url support for HTTP/SOCKS5 proxies (#3345) 2026-03-21 07:53:20 -04:00
memory feat(memory): layered architecture upgrade + remove mem0 backend (#4226) 2026-03-22 00:47:42 -04:00
nodes feat(nodes): add secure HMAC-SHA256 node transport layer (#3654) 2026-03-16 01:53:47 -04:00
observability fix(observability): handle missing OtelObserver match arms and add all-features CI check (#3981) 2026-03-19 17:48:35 -04:00
onboard merge: resolve conflicts with master + remove memory-mem0 from ci-all 2026-03-22 00:18:09 -04:00
peripherals feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-21 04:17:01 -04:00
plugins fix(plugins): integrate WASM tools into registry, add gateway routes and tests 2026-03-17 18:10:24 -04:00
providers fix: serialize env-dependent codex tests to prevent race (#4210) (#4218) 2026-03-22 00:14:01 -04:00
rag chore(lint): extend low-risk clippy cleanup batch 2026-02-17 16:40:58 +08:00
runtime feat(tools): add Windows support for shell tool_call execution (#3442) 2026-03-13 17:12:16 -04:00
security fix: restrict free command to Linux-only in security policy (#4198) 2026-03-21 21:02:05 -04:00
service fix: use POSIX-compatible sh -c instead of dash-specific -lc (#4209) (#4217) 2026-03-22 00:07:37 -04:00
skillforge chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
skills feat(tool): enrich delegate sub-agent system prompt and add skills_directory config key (#3344) 2026-03-21 07:53:02 -04:00
sop fix(web): call doctor endpoint with authenticated POST 2026-02-24 16:02:59 +08:00
tools merge: resolve conflicts with master (image_gen + sessions) 2026-03-21 21:18:46 -04:00
tunnel Feat/add pinggy tunnel (#4060) 2026-03-20 15:11:50 -04:00
verifiable_intent feat(verifiable_intent): add native verifiable intent lifecycle module (#2938) 2026-03-20 17:52:55 -04:00
cli_input.rs fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-21 05:14:37 -04:00
i18n.rs feat(i18n): externalize tool descriptions for translation (#3912) 2026-03-18 17:01:39 -04:00
identity.rs test: cover deterministic HashMap ordering paths 2026-02-18 21:55:40 +08:00
lib.rs fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-21 05:14:37 -04:00
main.rs feat(status): show service running state in zeroclaw status (#3751) 2026-03-21 06:49:47 -04:00
migration.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
multimodal.rs fix(agent): strip vision markers from history for non-vision providers (#3734) 2026-03-16 16:25:45 -04:00
util.rs feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-21 04:17:01 -04:00