feat: add Telegram confirmation UI components

Implements Phase 2 Task 7 - Telegram Confirmation UI:
- formatConfirmationMessage(): formats tool and args into readable message
- createConfirmationKeyboard(): creates approve/deny inline keyboard
- parseConfirmationCallback(): parses callback data from button clicks
- Full test coverage with vitest

All tests passing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
William Valentin
2026-02-03 00:29:32 -08:00
parent 782163cda6
commit 298f87615d
3 changed files with 85 additions and 0 deletions
+6
View File
@@ -1,2 +1,8 @@
export { createTelegramBot, type TelegramBotConfig } from './bot.js';
export { isAllowedChat, createMessageHandler, createResetHandler } from './handlers.js';
export {
formatConfirmationMessage,
createConfirmationKeyboard,
parseConfirmationCallback,
type ConfirmationCallbackData,
} from './confirmations.js';