feat(01-03): switch Matrix confirmations to text commands

- replace reaction-based helper text with !yes/!no and !skill commands
- resolve confirm and cancel through pending confirmation state
- render !settings as a read-only status dashboard
This commit is contained in:
Mikhail Putilovskij 2026-04-02 22:56:16 +03:00
parent 8a6a33a2ce
commit 01610ef768
4 changed files with 86 additions and 70 deletions

View file

@ -6,7 +6,7 @@ from adapter.matrix.handlers.chat import (
make_handle_new_chat,
make_handle_rename,
)
from adapter.matrix.handlers.confirm import handle_cancel, handle_confirm
from adapter.matrix.handlers.confirm import make_handle_cancel, make_handle_confirm
from adapter.matrix.handlers.settings import (
handle_settings,
handle_settings_connectors,
@ -36,6 +36,6 @@ def register_matrix_handlers(dispatcher: EventDispatcher, client=None, store=Non
dispatcher.register(IncomingCommand, "settings_status", handle_settings_status)
dispatcher.register(IncomingCommand, "settings_whoami", handle_settings_whoami)
dispatcher.register(IncomingCallback, "confirm", handle_confirm)
dispatcher.register(IncomingCallback, "cancel", handle_cancel)
dispatcher.register(IncomingCallback, "confirm", make_handle_confirm(store))
dispatcher.register(IncomingCallback, "cancel", make_handle_cancel(store))
dispatcher.register(IncomingCallback, "toggle_skill", handle_toggle_skill)