feat: Wave 5 Python parity — outlook COM + time tracker
Outlook COM (`outlook_handlers.py`, agent):
- 4 handlers mirroring Rust pack: unread_count, latest, send_clipboard,
summarize_inbox. Uses `win32com.client` with lazy import so the module
loads even when pywin32 is missing — handlers degrade gracefully and
speak a "Outlook недоступен" reply.
- `requirements.txt`: pywin32>=305 (optional).
- 7 unit tests mock `_outlook_session` via unittest.mock.
Time tracker (`time_tracker_handlers.py`, agent):
- 5 handlers: start, stop, today, week, reset. JSON store at
`<here>/time_tracker.json`, atomic write-then-rename.
- Same shape as the Rust pack's `jarvis.state` blob: current_session_start
+ sessions[{start,end}]. Local-calendar today boundary.
- Full Russian pluralisation (час/часа/часов, минута/минуты/минут).
- 14 unit tests using the existing `isolated_state` fixture in conftest.py.
`extensions.py` + `main.py`: imports + 9 new proxy do_* functions + 9
new dispatch elifs. `commands.yaml`: 9 new entries.
Tests: 60 → 81 (+14 tracker + 7 outlook).
This commit is contained in:
parent
45d9425ed7
commit
5265cb0fbe
8 changed files with 971 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ sounddevice
|
|||
PyYAML
|
||||
python-dotenv
|
||||
|
||||
# Outlook COM automation (Win32-only). Optional: outlook_handlers degrades
|
||||
# gracefully when this isn't installed.
|
||||
pywin32>=305
|
||||
|
||||
# Semantic intent classifier (MiniLM-L6-v2 ONNX)
|
||||
onnxruntime>=1.17
|
||||
tokenizers>=0.15
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue