From 4fd9f3cbf495c0c72f67c99032ad4fb26696982c Mon Sep 17 00:00:00 2001 From: Cutshion Date: Mon, 26 Oct 2026 01:52:13 +0900 Subject: [PATCH] Add JAKA knowledge and improve weather, news and song answers Co-Authored-By: Claude Opus 5.5 --- assistant/abilities.py | 13 ++++-- assistant/battery.py | 5 ++- assistant/company_examples.py | 76 +++++++++++++++++++++++++++++++++++ assistant/web.py | 15 ++++--- audio/sing.py | 31 +++++++++----- knowledge/jaka_en.md | 27 +++++++++++++ tests/song_check.py | 8 +++- tests/test_battery.py | 3 +- tests/test_web.py | 6 ++- 9 files changed, 159 insertions(+), 25 deletions(-) create mode 100644 knowledge/jaka_en.md diff --git a/assistant/abilities.py b/assistant/abilities.py index 1d4fadb..4ac33de 100644 --- a/assistant/abilities.py +++ b/assistant/abilities.py @@ -14,7 +14,9 @@ ASKED = re.compile(r"\bwhat (?:else |all |things |kinds? of things )?(?:can|coul r"\bwhat are you (?:able to do|capable of|good at)\b|\bwhat do you do\b(?!\s+(?:with|when|if|for fun))|" r"\bwhat can you help (?:me |us )?with\b|\btell me (?:about )?(?:what you can do|your (?:abilities|skills))\b|" r"\b(?:list|show me) (?:your|what you can) (?:abilities|skills|do)\b|^\W*(?:your )?(?:abilities|skills)\W*$|" - r"(?