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.
78 lines
2 KiB
TOML
78 lines
2 KiB
TOML
# Unit conversion — length, weight, temperature, speed, volume.
|
|
# Pure Lua, no external API.
|
|
|
|
[[commands]]
|
|
id = "convert.length"
|
|
type = "lua"
|
|
script = "length.lua"
|
|
sandbox = "minimal"
|
|
timeout = 2000
|
|
|
|
[commands.phrases]
|
|
ru = [
|
|
"переведи метры в футы",
|
|
"переведи футы в метры",
|
|
"сколько метров",
|
|
"сколько футов",
|
|
"сколько километров",
|
|
"сколько миль",
|
|
"переведи в метры",
|
|
"переведи в футы",
|
|
"переведи в км",
|
|
"переведи в мили",
|
|
]
|
|
en = ["convert meters to feet", "convert feet to meters", "how many meters", "how many feet"]
|
|
|
|
|
|
[[commands]]
|
|
id = "convert.weight"
|
|
type = "lua"
|
|
script = "weight.lua"
|
|
sandbox = "minimal"
|
|
timeout = 2000
|
|
|
|
[commands.phrases]
|
|
ru = [
|
|
"переведи килограммы в фунты",
|
|
"переведи фунты в килограммы",
|
|
"сколько кг в фунтах",
|
|
"сколько фунтов",
|
|
"сколько килограммов",
|
|
]
|
|
en = ["convert kg to pounds", "how many pounds", "how many kg"]
|
|
|
|
|
|
[[commands]]
|
|
id = "convert.temperature"
|
|
type = "lua"
|
|
script = "temperature.lua"
|
|
sandbox = "minimal"
|
|
timeout = 2000
|
|
|
|
[commands.phrases]
|
|
ru = [
|
|
"переведи цельсий в фаренгейт",
|
|
"переведи фаренгейт в цельсий",
|
|
"сколько по фаренгейту",
|
|
"сколько по цельсию",
|
|
"сколько градусов в фаренгейтах",
|
|
]
|
|
en = ["convert celsius to fahrenheit", "celsius to fahrenheit", "fahrenheit to celsius"]
|
|
|
|
|
|
[[commands]]
|
|
id = "convert.speed"
|
|
type = "lua"
|
|
script = "speed.lua"
|
|
sandbox = "minimal"
|
|
timeout = 2000
|
|
|
|
[commands.phrases]
|
|
ru = [
|
|
"переведи километры в час в мили в час",
|
|
"переведи в кмч",
|
|
"переведи в мили в час",
|
|
"сколько миль в час",
|
|
"сколько км в час",
|
|
]
|
|
en = ["convert kmh to mph", "kmh to mph", "mph to kmh"]
|