J.A.R.V.I.S-rust/resources/commands/reminders/set.lua

130 lines
4.7 KiB
Lua
Raw Normal View History

feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
-- Reminder — schedule a one-shot Speak action via the persistent scheduler.
--
-- Why this rewrite: the previous version spawned `Start-Sleep` PowerShell
-- subprocesses that didn't survive jarvis-app restart. Now we use
-- `jarvis.scheduler.add(...)` which persists to schedule.json and fires
-- correctly even if the daemon is restarted in between.
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
local lang = jarvis.context.language
local phrase = (jarvis.context.phrase or ""):lower()
local triggers = {
"поставь напоминание через", "установи таймер на",
"напомни мне через", "напомни через", "напомни",
"remind me in", "set reminder in", "set timer for", "timer for",
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
"таймер на",
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
}
local rest = phrase
for _, t in ipairs(triggers) do
local s, e = string.find(rest, t, 1, true)
if s == 1 then
rest = rest:sub(e + 1)
break
end
end
rest = rest:gsub("^%s+", "")
local unit_words = {
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
["секунд"] = 1, ["секунду"] = 1, ["секунды"] = 1,
["second"] = 1, ["seconds"] = 1, ["sec"] = 1,
["минут"] = 60, ["минуту"] = 60, ["минуты"] = 60, ["мин"] = 60,
["minute"] = 60, ["minutes"] = 60, ["min"] = 60,
["час"] = 3600, ["часа"] = 3600, ["часов"] = 3600, ["часик"] = 3600,
["hour"] = 3600, ["hours"] = 3600, ["hr"] = 3600,
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
}
local rus_numerals = {
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
["один"] = 1, ["одну"] = 1, ["одна"] = 1,
["полторы"] = 1, ["полтора"] = 1,
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
["два"] = 2, ["две"] = 2, ["три"] = 3, ["четыре"] = 4, ["пять"] = 5,
["шесть"] = 6, ["семь"] = 7, ["восемь"] = 8, ["девять"] = 9, ["десять"] = 10,
["пятнадцать"] = 15, ["двадцать"] = 20, ["тридцать"] = 30, ["сорок"] = 40,
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
["пятьдесят"] = 50,
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
}
local number, unit, body = nil, nil, nil
local num_str, rest_after_num = rest:match("^(%d+)%s+(.+)")
if num_str then
number = tonumber(num_str)
rest = rest_after_num
else
local first_word, after = rest:match("^(%S+)%s*(.*)")
if first_word and rus_numerals[first_word] then
number = rus_numerals[first_word]
rest = after or ""
end
end
if rest and #rest > 0 then
local first_word, after = rest:match("^(%S+)%s*(.*)")
if first_word then
for w, secs in pairs(unit_words) do
if first_word:sub(1, #w) == w then
unit = secs
body = after or ""
break
end
end
end
end
if not number then
number = 5
if not unit then unit = 60 end
body = rest
elseif not unit then
unit = 60
body = rest
end
local total_seconds = number * unit
if total_seconds < 1 then total_seconds = 1 end
if total_seconds > 86400 then total_seconds = 86400 end
body = (body or ""):gsub("^%s+", ""):gsub("%s+$", "")
if body == "" then
body = lang == "ru" and "Напоминание!" or "Reminder!"
end
local function human_time(sec)
if sec < 60 then return sec .. " сек" end
if sec < 3600 then return math.floor(sec/60) .. " мин" end
return string.format("%d ч %d мин", math.floor(sec/3600), math.floor((sec%3600)/60))
end
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
-- Build the scheduler entry. Scheduler's "in N minutes" wants integer minutes
-- so we round up for sub-minute timers; users asking for "10 seconds" will get
-- ~1 minute. Honest trade-off vs the more complex previous detached-PS approach.
local minutes = math.max(1, math.floor((total_seconds + 59) / 60))
local schedule_str = "in " .. tostring(minutes) .. " minutes"
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
local speak_text = (lang == "ru" and "Сэр, напоминаю: " or "Reminder: ") .. body
local ok, err = pcall(function()
jarvis.scheduler.add({
name = lang == "ru" and ("Таймер: " .. body) or ("Timer: " .. body),
schedule = schedule_str,
action = { type = "speak", text = speak_text },
})
end)
if not ok then
jarvis.log("error", "reminder: scheduler.add failed: " .. tostring(err))
return jarvis.cmd.error(lang == "ru"
and "Не получилось поставить напоминание."
or "Couldn't set reminder.")
end
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
jarvis.system.notify(
lang == "ru" and "Таймер установлен" or "Timer set",
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
string.format(lang == "ru" and "Через %s: %s" or "In %s: %s",
human_time(total_seconds), body)
feat: 5 new packs + dotenvy + regen icon.ico + shortcuts redo Iron Man icon regenerated from resources/icons/icon.png at sizes 16/24/32/48/64/128/256 via Pillow (make_ico.py committed alongside); icon.ico is now a clean 83 KB multi-res for sharp display at any scale instead of whatever placeholder Tauri originally emitted. dotenvy added to workspace deps. jarvis-app/main.rs and jarvis-gui/ main.rs both walk up from current_exe() looking for dev.env (up to 5 parent levels), so the Desktop shortcut can launch the exe directly without a wrapper .bat to pre-set GROQ_TOKEN. Falls back to dotenvy::dotenv() (cwd lookup) if nothing found near the binary. 5 new portable Lua command packs. Bumps total from 21 to 26. cargo test -p jarvis-core --lib commands::tests still passes 3/3. reminders/ — set_reminder. Parses "напомни через N (секунд|минут| часов) <body>" or English equivalents; understands one Russian word numerals (один, две, пять, десять, пятнадцать, ...) for the count when speech recognition returns words instead of digits. Defaults to 5 minutes if number/unit missing. Spawns a detached PowerShell that Start-Sleeps then fires: BurntToast if installed, System.Speech SAPI (ru-RU voice preference), and a WScript.Shell.Popup as the guaranteed-visible last resort. date_query/ — today / tomorrow / yesterday. Single answer.lua keyed by command_id, computes the offset via PowerShell Get-Date.AddDays() in ru-RU culture so the weekday/month come out in Russian, then speaks via SAPI. voice_type/ — type_text. Strips the trigger, drops the remainder to clipboard via jarvis.system.clipboard.set, then synthesises Ctrl+V through user32!keybd_event so it lands in whatever window currently has focus. Works in any text field (note app, browser, IDE, Telegram, etc.). dice/ — coin_flip / roll_dice / random_number. Single roll.lua, seeds math.random with os.time + jitter, speaks the result. "1-6" for dice, "1-100" for random. stopwatch/ — start / check / stop. Uses jarvis.state.get/set (persisted via jarvis-core's settings DB) to remember the start timestamp, computes elapsed via jarvis.context.time.timestamp, formats as "X сек" / "X мин Y сек" / "X ч Y мин Z сек". All new packs follow the established patterns (sandbox=full, PS-via- exec helper where needed, USERPROFILE/SystemDrive everywhere, no hardcoded paths).
2026-05-15 12:28:44 +03:00
)
feat: Wave 5 — sysinfo speaks, smart reminders, outlook COM, time tracker, WOL, conversation tools Voice sysinfo overhaul (6 scripts: battery/cpu/ram/disk/time/all): - Now SPEAK the result via jarvis.cmd.ok instead of notify-only. Toast still fires for visual reference, but real Jarvis tells you out loud. - `all` joins lines with commas so TTS doesn't over-pause on linebreaks. Smart reminders (`reminders/set.lua` rewrite): - Was: detached `Start-Sleep` PowerShell subprocesses that died on jarvis-app restart and spawned a hidden process per timer. - Now: routes through `jarvis.scheduler.add(... type=speak ...)`. Persists to schedule.json, survives restart, no zombie processes. Trade-off: sub-minute timers round up to 1 min (rare in voice UX). - Drops UA triggers from earlier UA-removal sweep. Translation polish (`translate/translate.lua` + `clipboard.lua`): - Drops UA target language; adds Italian, Polish, Turkish, French ru triggers + English target detectors. - `language_iso()` helper picks the SAPI voice locale for the TARGET language (German translation → German SAPI voice if installed). LLM system prompt (config.rs): - New LLM_SYSTEM_PROMPT_EN counterpart. Both languages now mention the assistant's tooling (memory / scheduler / profiles / macros / vision / clipboard) so the LLM knows it can DO things, not suggest the user install something. - `get_llm_system_prompt(lang)` picks EN/RU. Conversation pack (NEW `conversation/`): - 2 commands. `conversation.summary` ("о чём мы говорили") pulls the last 12 turns from persisted history, asks LLM for a 1-3 sentence recap in Jarvis tone. Falls back gracefully when offline. - `conversation.repeat` ("повтори") re-speaks the last assistant message. - New Lua API `jarvis.llm_history()` returns array of {role, content} tables, excluding the system prompt. WOL pack (NEW `wol/`): - Voice "разбуди сервер" / "wake server" fires a magic packet at a MAC stored in long-term memory under `wol_<alias>` (default alias "server"). - Setup via voice: "запомни wol_server AA:BB:CC:DD:EE:FF". Falls back to `JARVIS_WOL_TARGET` env if memory empty. Handles every standard MAC format (colons / dashes / dots / bare). Broadcast on UDP 9 via PowerShell System.Net.Sockets.UdpClient. Outlook COM pack (NEW `outlook/`, via subagent): - 4 commands: unread_count, latest, send_clipboard, summarize_inbox. - PowerShell COM bridge `_outlook.ps1` with tab-delimited line protocol. - summarize_inbox calls LLM for a one-paragraph summary. Graceful failure when Outlook isn't running. Time tracker pack (NEW `time_tracker/`, via subagent): - 5 commands: start, stop, today, week, reset. - Persists via `jarvis.state` (structured object: current_session_start + sessions array of {start, end}). - Local-calendar "today" boundary, full Russian pluralisation (час/часа/часов, минута/минуты/минут, сессия/сессии/сессий). Tests: 139 rust (no regression), 81 python (60 → 81, +14 time_tracker +7 outlook). Release build green for jarvis-app and jarvis-cli. Pack count: 88 → 92 rust packs.
2026-05-16 14:34:29 +03:00
jarvis.log("info", string.format("reminder in %ds (rounded to %d min): %s",
total_seconds, minutes, body))
return jarvis.cmd.ok(string.format(
lang == "ru" and "Хорошо, напомню через %s." or "Will remind you in %s.",
human_time(total_seconds)
))