J.A.R.V.I.S-rust/crates/jarvis-core/src
Bossiara13 85a004e263 test(commands): schema and Lua script validation for resources/commands/
Three unit tests catch the kind of bug that broke weather/set_city (a
phrases array instead of lang→array map silently dropped the whole pack):

- every_command_toml_parses: every resources/commands/*/command.toml round-
  trips through toml::from_str::<JCommandsList>. Reports all failures at
  once instead of failing on the first.
- lua_command_scripts_exist: for every type="lua" command, the named (or
  default script.lua) script file exists in the pack dir.
- every_command_has_phrases: structural commands (terminate/stop_chaining)
  excluded, every other command has ≥1 phrase across all languages.

Tests use env!("CARGO_MANIFEST_DIR") -> ../.. -> resources/commands so they
work from any cwd.

NB: cargo test does not run on this machine right now — aws-lc-sys needs
cl.exe (MSVC Build Tools missing). The release binary was built earlier
with MSVC available; toolchain install is a follow-up. The tests are still
valid for CI / a re-armed dev box.
2026-05-15 00:55:01 +03:00
..
audio AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
audio_processing test: vad listening window timing 2026-04-23 11:08:02 +03:00
commands some fixes + gliner first implementation 2026-02-11 07:21:50 +05:00
config AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
db AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
i18n/locales AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
intent AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
ipc feat(app): wire LlmClient into voice loop with trigger-prefix fallback 2026-04-23 02:16:02 +03:00
listener AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
llm feat(core): pop_last_user helper on conversation history 2026-04-23 02:15:41 +03:00
lua AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
models AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
recorder AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
slots AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
stt feat(core): vad-driven listening window state machine 2026-04-23 11:07:35 +03:00
time Tray options implementation + Voice system rewrite + build fixes 2026-01-07 23:29:46 +05:00
voices Commands/voices multilanguage support + Ukranian vosk model added 2026-01-13 02:21:59 +05:00
audio.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
audio_buffer.rs VAD fixes + some calibrations 2026-01-08 00:35:21 +05:00
audio_processing.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
commands.rs test(commands): schema and Lua script validation for resources/commands/ 2026-05-15 00:55:01 +03:00
config.rs feat(core): vad-driven listening window state machine 2026-04-23 11:07:35 +03:00
db.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
i18n.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
intent.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
ipc.rs Tray options implementation + Voice system rewrite + build fixes 2026-01-07 23:29:46 +05:00
lib.rs feat(core): add Groq/OpenAI-compatible LlmClient 2026-04-22 19:36:14 +03:00
listener.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
lua.rs basic Lua 5.4 implementation with few example commands 2026-01-17 05:46:38 +05:00
models.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
recorder.rs Improved wake-word & command detection, with dual mode 2026-02-08 06:37:39 +05:00
slots.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00
stt.rs feat(core): vad-driven listening window state machine 2026-04-23 11:07:35 +03:00
time.rs Tray options implementation + Voice system rewrite + build fixes 2026-01-07 23:29:46 +05:00
voices.rs AI models shared registry + Code cleanup + Better async handling + Some fixes, etc 2026-02-18 21:08:48 +05:00