feat: parity — games, mouse, random_choice + new packs (90 commands)

Mirrors the rust feature/pc-tools work. yaml.safe_load + ast.parse pass.
82 → 90 commands (+8).

main.py:
+ do_launch_game / do_list_games: reads ~/Documents/jarvis-games.json
  (creates sample on first call with dota / cs2 / elden ring / witcher
  3 / factorio entries). Fuzzy name+alias match, launches via
  steam://rungameid/<appid> (webbrowser.open), epic_uri, or
  cmd /c start "" path.
+ do_mouse: action param op = left|right|middle|double|scroll_up|
  scroll_down. Embedded PowerShell P/Invokes user32!mouse_event with
  the right flag pairs.
+ do_random_choice: strips trigger, splits on " или " / " or " / ", " /
  " либо " / " чи ", picks one with random.choice.

commands.yaml +8 entries:
+ launch_game / list_games
+ mouse_left_click / mouse_right_click / mouse_double_click /
  mouse_scroll_up / mouse_scroll_down (all action:mouse, op:...)
+ random_choice
This commit is contained in:
Bossiara13 2026-05-15 12:58:32 +03:00
parent 40a46567b8
commit b3a5bcabe5
2 changed files with 186 additions and 0 deletions

View file

@ -681,6 +681,65 @@ help:
- что можешь
action: {type: help_commands}
launch_game:
phrases:
- запусти игру
- включи игру
- поиграем
- хочу поиграть
- запусти доту
- включи кс
- включи фортнайт
action: {type: launch_game}
list_games:
phrases:
- какие у меня игры
- список игр
- покажи игры
action: {type: list_games}
mouse_left_click:
phrases:
- клик
- кликни
- нажми мышкой
action: {type: mouse, op: left}
mouse_right_click:
phrases:
- правый клик
- клик правой
- правой кнопкой
action: {type: mouse, op: right}
mouse_double_click:
phrases:
- двойной клик
- дабл клик
- двойное нажатие
action: {type: mouse, op: double}
mouse_scroll_down:
phrases:
- промотай вниз
- прокрути вниз
action: {type: mouse, op: scroll_down}
mouse_scroll_up:
phrases:
- промотай вверх
- прокрути вверх
action: {type: mouse, op: scroll_up}
random_choice:
phrases:
- выбери из
- выбери
- решай за меня
- выбрать
action: {type: random_choice}
thanks:
phrases:
- спасибо