J.A.R.V.I.S-rust/resources/commands
Bossiara13 100db82bd6 feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel
Five more portable Lua command packs. Bumps the total from 16 to 21
packs. cargo test -p jarvis-core --lib commands::tests still 3/3.

translate/ — translate.lua. Picks the target language from triggers
like "переведи на английский" / "translate to russian"; falls back to
English when only "переведи X" is heard. Sends to Groq with a strict
"translation only" system prompt at temp 0.3. Drops the result into
the clipboard, fires a notify, and speaks via PowerShell SAPI in the
matching ISO voice (ru-RU / uk-UA / en-US / de-DE etc.) so a German
translation actually sounds German.

math/ — math.lua. Strips the trigger ("посчитай" / "calculate" /
"сколько будет" / "what is" / ...), sends the remainder to Groq with
temp=0.0 and max_tokens=64, asking ONLY for the numeric result. If
the model replies "нет" (the system-prompt sentinel for non-math),
plays not_found instead of speaking nonsense. Otherwise speaks
"Получилось X" via SAPI.

theme/ — set.lua dispatched by command_id (theme_dark / theme_light).
Flips AppsUseLightTheme + SystemUsesLightTheme under
HKCU\...\Themes\Personalize via Set-ItemProperty. No reboot needed,
Windows shell re-themes immediately.

projects/ — open.lua + list.lua. Reads/creates
%USERPROFILE%\Documents\jarvis-projects.json (a flat
[{"name": ..., "path": ...}] list). open.lua strips the trigger,
exact-matches then substring-matches the project name, opens the path
in VS Code if `code.cmd` is on PATH, otherwise in Explorer. First
call creates a sample config with jarvis-rust / jarvis-python /
dietpi entries pointing under USERPROFILE so it works on any machine.
list.lua just notifies the configured project names.

sound_panel/ — open.lua. Two-liner: rundll32 mmsys.cpl,,1 (Recording
tab). Useful both as a standalone "открой настройки звука" and as
the place to fix the mic-disabled state that prevents jarvis-app
from starting.

Portability: USERPROFILE / SystemDrive / PATH lookup throughout.
2026-05-15 12:06:30 +03:00
..
apps feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
browser fix(commands): repair weather set_city schema, retire broken AHK browser pack 2026-05-15 00:54:34 +03:00
calculator project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
clipboard_read feat(commands): tier-1 PC tools — window mgmt, clipboard, notes, process killer, web search 2026-05-15 11:27:02 +03:00
codegen feat: LLM auto-fallback + codegen pack + OCR pack 2026-05-15 01:39:21 +03:00
counter basic Lua 5.4 implementation with few example commands 2026-01-17 05:46:38 +05:00
file_search feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
jarvis project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
math feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
media feat(commands): add media controls + system info packs 2026-05-15 01:19:30 +03:00
notes feat(commands): tier-1 PC tools — window mgmt, clipboard, notes, process killer, web search 2026-05-15 11:27:02 +03:00
ocr feat: LLM auto-fallback + codegen pack + OCR pack 2026-05-15 01:39:21 +03:00
output_device feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
process_kill feat(commands): tier-1 PC tools — window mgmt, clipboard, notes, process killer, web search 2026-05-15 11:27:02 +03:00
projects feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
sound_panel feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
steam project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
stop project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
sysinfo feat(commands): add media controls + system info packs 2026-05-15 01:19:30 +03:00
terminate project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
test_slots some fixes + gliner first implementation 2026-02-11 07:21:50 +05:00
theme feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
translate feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
volume feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
weather fix(commands): repair weather set_city schema, retire broken AHK browser pack 2026-05-15 00:54:34 +03:00
websearch feat(commands): tier-1 PC tools — window mgmt, clipboard, notes, process killer, web search 2026-05-15 11:27:02 +03:00
window feat(commands): tier-1 PC tools — window mgmt, clipboard, notes, process killer, web search 2026-05-15 11:27:02 +03:00
windows project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00