CI (.github/workflows/ci.yml): - Three parallel jobs on push & PR: cargo test (jarvis-core), cargo clippy (lint, warnings-as-errors), cargo check (workspace). Windows runner, stable toolchain, rust-cache for fast incremental builds. - Deliberately skips release build of jarvis-gui — that needs Node+npm +Tauri bundler and would balloon CI to ~10min per push. Drop Ukrainian: - Delete ua.ftl, remove UA from SUPPORTED_LANGUAGES. - config.rs: prune UA arms from get_wake_phrases / get_wake_grammar / get_phrases_to_remove / get_llm_trigger_phrases / get_llm_system_prompt. - stt/vosk.rs: drop UA → uk language mapping. - tray menu: drop "Українська" entry. - frontend: drop UA from Header.svelte language list, settings page language map, i18n.ts fallback. - 82 command.toml files stripped of every `ua = [...]` block (205 blocks total). Handled via subagent — TOML still parses, all 6 command tests pass. .gitignore: stop tracking dev.env / dll_probe*.py / imports_full.txt which were sitting in working tree. Tests: 128 pass (no regression). Workspace still compiles end-to-end.
70 lines
1.6 KiB
TOML
70 lines
1.6 KiB
TOML
[[commands]]
|
|
id = "shutdown_pc"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 5000
|
|
|
|
[commands.phrases]
|
|
ru = ["выключи компьютер", "выключи пк", "выключи комп"]
|
|
en = ["shutdown pc", "shut down computer"]
|
|
|
|
|
|
[[commands]]
|
|
id = "restart_pc"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 5000
|
|
|
|
[commands.phrases]
|
|
ru = ["перезагрузи компьютер", "перезагрузи пк", "ребутни", "ребут"]
|
|
en = ["restart pc", "reboot computer"]
|
|
|
|
|
|
[[commands]]
|
|
id = "sleep_pc"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 5000
|
|
|
|
[commands.phrases]
|
|
ru = ["усыпи компьютер", "усыпи пк", "режим сна", "перейди в сон"]
|
|
en = ["sleep pc", "put computer to sleep"]
|
|
|
|
|
|
[[commands]]
|
|
id = "hibernate_pc"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 5000
|
|
|
|
[commands.phrases]
|
|
ru = ["гибернация", "переведи в гибернацию", "режим гибернации"]
|
|
en = ["hibernate pc"]
|
|
|
|
|
|
[[commands]]
|
|
id = "logoff_user"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 5000
|
|
|
|
[commands.phrases]
|
|
ru = ["выйди из системы", "разлогинь", "выйди из учётки", "сеанс закончи"]
|
|
en = ["log off", "sign out"]
|
|
|
|
|
|
[[commands]]
|
|
id = "cancel_shutdown"
|
|
type = "lua"
|
|
script = "act.lua"
|
|
sandbox = "full"
|
|
timeout = 3000
|
|
|
|
[commands.phrases]
|
|
ru = ["отмени выключение", "отмени ребут", "отмени перезагрузку", "стой не выключай"]
|
|
en = ["cancel shutdown", "abort shutdown"]
|