feat: personality pack — Python parity
Some checks are pending
Python CI / pytest (ubuntu-latest) (push) Waiting to run
Python CI / pytest (windows-latest) (push) Waiting to run
Python CI / ruff (push) Waiting to run

Python parity for the 5 personality voice commands shipped on the
Rust side:

- New `personality_handlers.py` (~150 lines): do_personality_{greet,
  thanks, compliment, how_are_you, tony_quote}. Each picks one of
  7-10 phrases per language (RU/EN) at random; greet additionally
  buckets by time-of-day (morning/midday/evening/night).
- `extensions.py`: imports + 5 proxy `do_personality_*` functions
  pointing at the new module, plus set_speak wiring so handlers can
  TTS via the runtime's voice.
- `main.py`: 5 new dispatch elifs feeding the new action types.
- `commands.yaml`: 5 new entries (`personality_*`) mapping voice
  phrases to action types.
- `tests/test_personality_handlers.py`: 6 unit tests confirming
  each handler returns a non-empty string from the expected pool.
- `.gitignore`: stop tracking runtime state generated by tests
  (profiles/, long_term_memory.json, schedule.json, macros.json,
  llm_backend.txt, llm_history.json) — these are user data, not
  source.

Tests: 54 → 60 (+6).
This commit is contained in:
Bossiara13 2026-05-16 13:53:44 +03:00
parent 6079d2730f
commit 45d9425ed7
6 changed files with 337 additions and 0 deletions

View file

@ -1495,3 +1495,57 @@ habit_streak:
- сколько дней пью воду
- трекинг привычек
action: {type: habit_streak}
personality_greet:
phrases:
- привет джарвис
- здравствуй джарвис
- доброе утро
- добрый день
- добрый вечер
- доброй ночи
- приветствую
- хай джарвис
action: {type: personality_greet}
personality_thanks:
phrases:
- спасибо
- спасибо джарвис
- благодарю
- благодарю джарвис
- спс
- ты лучший
action: {type: personality_thanks}
personality_compliment:
phrases:
- ты молодец
- ты умница
- молодец джарвис
- хорошо сработано
- отличная работа
- так держать
- ты лучший ассистент
action: {type: personality_compliment}
personality_how_are_you:
phrases:
- как дела
- как дела джарвис
- как ты
- как настроение
- как самочувствие
- как поживаешь
- что нового у тебя
action: {type: personality_how_are_you}
personality_tony_quote:
phrases:
- процитируй тони
- цитата тони старка
- что сказал бы тони
- скажи как тони
- процитируй железного человека
- цитата старка
action: {type: personality_tony_quote}