MCPcopy
hub / github.com/codeaashu/claude-code / sendNotification

Function sendNotification

src/services/notifier.ts:18–36  ·  view source on GitHub ↗
(
  notif: NotificationOptions,
  terminal: TerminalNotification,
)

Source from the content-addressed store, hash-verified

16}
17
18export 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
38const DEFAULT_TITLE = 'Claude Code'
39

Callers 4

ConsoleOAuthFlowFunction · 0.50
REPLFunction · 0.50
useInboxPollerFunction · 0.50
useNotifyAfterTimeoutFunction · 0.50

Calls 4

getGlobalConfigFunction · 0.85
executeNotificationHooksFunction · 0.85
sendToChannelFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected