J.A.R.V.I.S-rust/crates
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
..
jarvis-app chore(app): instrument init steps with eprintln + label app::close calls 2026-04-27 21:07:33 +03:00
jarvis-cli feat(cli): jarvis-cli ask <prompt> via Groq 2026-04-22 19:42:12 +03:00
jarvis-core test(commands): schema and Lua script validation for resources/commands/ 2026-05-15 00:55:01 +03:00
jarvis-gui build: add vosk link search to jarvis-gui build.rs 2026-04-22 18:07:33 +03:00