J.A.R.V.I.S-rust/resources/commands
Bossiara13 45243c3e3c feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard)
Local-LLM support so J.A.R.V.I.S. works offline without GROQ_TOKEN.

LLM multi-backend (crates/jarvis-core/src/llm/client.rs)
  - LlmBackend enum {Groq, Ollama}. Both use OpenAI-compatible /v1/chat/completions
    (Ollama exposes one natively at :11434/v1).
  - LlmClient::from_env() now dispatches on JARVIS_LLM=groq|ollama. Auto-detect:
    Groq if GROQ_TOKEN set, else Ollama.
  - New helpers: LlmClient::groq() (was: from_env), LlmClient::ollama().
  - Reqwest client now has a 60s timeout (was: unbounded — Groq freezes could hang).
  - api_key skipped when empty (Ollama doesn't need auth).
  - Defaults: OLLAMA_BASE_URL=http://localhost:11434/v1, OLLAMA_MODEL=qwen2.5:3b.
    Override via OLLAMA_BASE_URL / OLLAMA_MODEL env.
  - llm_fallback + llm_router log the active backend on init.
  - Tests: 32/32 pass. Renamed `from_env_fails` → `groq_fails_when_token_missing`,
    added `ollama_works_without_token`.

Daily briefing pack (resources/commands/daily_briefing/, 3 commands)
  - setup.lua: "настрой утренний брифинг на 9:00" → adds a daily scheduled task
    that runs now.lua via the scheduler's Lua-action support.
  - now.lua: greeting + time + active profile + scheduled task count + memory recap
    + LLM motivational nudge. Voice-triggered ("утренний брифинг") works the same.
  - off.lua: removes the scheduled task.

Pomodoro pack (resources/commands/pomodoro/, 2 commands)
  - start.lua / stop.lua + tick.lua (re-scheduled by itself). State stored in
    jarvis.state — phase alternates work (25 min) / break (5 min) until stop.

Currency conversion (resources/commands/currency/convert.lua)
  - "сколько будет 1000 долларов в рублях" — fetches CBR daily rates from
    cbr-xml-daily.ru, normalises by Nominal, prints both directions.
  - Recognises USD/EUR/CNY/GBP/JPY/RUB by substring. Pluralises russian units.

Stocks pack (resources/commands/stocks/, 1 command)
  - "сколько Сбер" → MOEX ISS /iss/engines/stock/markets/shares/securities/<TKR>.
  - Mapping of 22 popular Russian tickers to common names (Сбер→SBER, Газпром→GAZP,
    Лукойл→LKOH, Яндекс→YDEX, Т-банк→T, etc).
  - Picks TQBR (main board) row, reports LAST + LASTTOPREVPRICE%.

Habit nudges (resources/commands/habit_nudge/, 4 commands)
  - "напоминай мне пить воду"     → every 2 hours
  - "напоминай мне размяться"     → every 50 minutes
  - "напоминай отдыхать глазам"  → every 20 minutes (20-20-20 rule)
  - "отключи все привычки"        → stops all three by id.

Translate clipboard (resources/commands/translate/clipboard.lua)
  - "переведи буфер на английский" → grabs clipboard, sends to LLM, speaks first
    sentence, replaces clipboard with full translation, fires notification.

Build: cargo build --release -p jarvis-app -p jarvis-gui both green. 32/32 tests.

To use Ollama:
  1. Install + run Ollama (https://ollama.com).
  2. `ollama pull qwen2.5:3b` (or any chat model).
  3. Optional: `set JARVIS_LLM=ollama` (auto-picked if GROQ_TOKEN unset).
2026-05-15 15:51:24 +03:00
..
apps feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
brightness arch + features: jarvis.text API + brightness/window_switch/spelling/network/summarize (41 packs) 2026-05-15 13:11:18 +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 arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +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
crypto feat(commands): analog-inspired tier-2 — news, currency, crypto, fun, wiki, power, help (33 packs) 2026-05-15 12:43:09 +03:00
currency feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
daily_briefing feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
date_query feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo 2026-05-15 12:28:44 +03:00
dice arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +03:00
file_search feat(commands): add PC control packs — volume, apps, file_search, output_device 2026-05-15 00:54:52 +03:00
fun arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +03:00
games arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +03:00
habit_nudge feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
help feat(commands): analog-inspired tier-2 — news, currency, crypto, fun, wiki, power, help (33 packs) 2026-05-15 12:43:09 +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
memory_pack feat: TTS backend abstraction + 4 'imba' features + Lua packs 2026-05-15 15:32:44 +03:00
mouse arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +03:00
network arch + features: jarvis.text API + brightness/window_switch/spelling/network/summarize (41 packs) 2026-05-15 13:11:18 +03:00
news feat(commands): analog-inspired tier-2 — news, currency, crypto, fun, wiki, power, help (33 packs) 2026-05-15 12:43:09 +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
pomodoro feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
power feat(commands): analog-inspired tier-2 — news, currency, crypto, fun, wiki, power, help (33 packs) 2026-05-15 12:43:09 +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
profile_switch feat: TTS backend abstraction + 4 'imba' features + Lua packs 2026-05-15 15:32:44 +03:00
projects feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
random_choice arch + features: Lua jarvis.speak() / jarvis.llm() API, /commands GUI page, games / mouse / random_choice packs 2026-05-15 12:58:16 +03:00
reminders feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo 2026-05-15 12:28:44 +03:00
scheduler feat(scheduler): IMBA-5 proactive scheduler — reminders, daily briefings, intervals 2026-05-15 15:43:04 +03:00
sound_panel feat(commands): tier-1 — translate, math, theme toggle, project opener, sound panel 2026-05-15 12:06:30 +03:00
spelling arch + features: jarvis.text API + brightness/window_switch/spelling/network/summarize (41 packs) 2026-05-15 13:11:18 +03:00
steam project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
stocks feat: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
stop project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00
stopwatch feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo 2026-05-15 12:28:44 +03:00
summarize arch + features: jarvis.text API + brightness/window_switch/spelling/network/summarize (41 packs) 2026-05-15 13:11:18 +03: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: Ollama LLM backend + 5 utility packs (daily briefing, pomodoro, currency convert, stocks, habits, translate clipboard) 2026-05-15 15:51:24 +03:00
vision feat: TTS backend abstraction + 4 'imba' features + Lua packs 2026-05-15 15:32:44 +03:00
voice_type feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo 2026-05-15 12:28:44 +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
wiki feat(commands): analog-inspired tier-2 — news, currency, crypto, fun, wiki, power, help (33 packs) 2026-05-15 12:43:09 +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
window_switch arch + features: jarvis.text API + brightness/window_switch/spelling/network/summarize (41 packs) 2026-05-15 13:11:18 +03:00
windows project restructure with Rust workspaces 2026-01-04 05:19:47 +05:00