J.A.R.V.I.S-rust/resources/commands/routines/command.toml
Bossiara13 bb2799ed8c
Some checks are pending
Rust CI / cargo test (jarvis-core) (push) Waiting to run
Rust CI / cargo clippy (push) Waiting to run
Rust CI / cargo check (workspace) (push) Waiting to run
feat: Wave 8 — bedtime/morning/coffee routine packs
routines/good_night:
- Switch profile to "sleep" (silences idle banter overnight).
- Cancel one-shot timers (Таймер:/Timer:/Кухня:/Cooking: name prefix)
  so a forgotten 6-hour reminder doesn't wake the user up.
- Speak a varied 5-line RU/EN good night with cancelled-count suffix.
- Deliberately does NOT lock PC / shut displays — too destructive
  without an explicit confirm step.

routines/good_morning:
- Switch profile back to "default".
- Report scheduled task count for the day.
- Speak a varied 5-line greeting with agenda preview.

routines/coffee_break:
- Pause idle banter so Jarvis isn't talking to an empty chair.
- Schedule a 5-minute check-in via the persistent scheduler.
- Speak a varied 3-line acknowledgement.

Pack count: 97 → 98 (one pack, three commands).
Tests: 140 still pass.
2026-05-16 14:43:28 +03:00

68 lines
1.3 KiB
TOML

# Bedtime / wake-up routines — bundle several actions into one voice trigger.
# These are the Jarvis equivalents of Alexa "routines": one phrase, many
# side-effects.
[[commands]]
id = "routines.good_night"
type = "lua"
script = "good_night.lua"
sandbox = "full"
timeout = 8000
[commands.phrases]
ru = [
"спокойной ночи",
"иду спать",
"пока я в кровати",
"ночной режим",
"выключи всё на ночь",
]
en = [
"good night",
"i'm going to bed",
"bedtime mode",
"shut down for the night",
]
[[commands]]
id = "routines.good_morning"
type = "lua"
script = "good_morning.lua"
sandbox = "full"
timeout = 8000
[commands.phrases]
ru = [
"доброе утро джарвис",
"доброе утро",
"я проснулся",
"начинаем день",
]
en = [
"good morning",
"i'm awake",
"start the day",
]
[[commands]]
id = "routines.coffee_break"
type = "lua"
script = "coffee_break.lua"
sandbox = "full"
timeout = 5000
[commands.phrases]
ru = [
"иду за кофе",
"перерыв на кофе",
"перерыв на чай",
"отойду минут на пять",
]
en = [
"going for coffee",
"coffee break",
"back in 5",
"afk five minutes",
]