( notif: NotificationOptions, terminal: TerminalNotification, )
| 16 | } |
| 17 | |
| 18 | export async function sendNotification( |
| 19 | notif: NotificationOptions, |
| 20 | terminal: TerminalNotification, |
| 21 | ): Promise<void> { |
| 22 | const config = getGlobalConfig() |
| 23 | const channel = config.preferredNotifChannel |
| 24 | |
| 25 | await executeNotificationHooks(notif) |
| 26 | |
| 27 | const methodUsed = await sendToChannel(channel, notif, terminal) |
| 28 | |
| 29 | logEvent('tengu_notification_method_used', { |
| 30 | configured_channel: |
| 31 | channel as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 32 | method_used: |
| 33 | methodUsed as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 34 | term: env.terminal as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 35 | }) |
| 36 | } |
| 37 | |
| 38 | const DEFAULT_TITLE = 'Claude Code' |
| 39 |
no test coverage detected