MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isEligibleBridgeMessage

Function isEligibleBridgeMessage

src/bridge/bridgeMessaging.ts:77–88  ·  view source on GitHub ↗
(m: Message)

Source from the content-addressed store, hash-verified

75 * everything else (tool_result, progress, etc.) is internal REPL chatter.
76 */
77export function isEligibleBridgeMessage(m: Message): boolean {
78 // Virtual messages (REPL inner calls) are display-only — bridge/SDK
79 // consumers see the REPL tool_use/result which summarizes the work.
80 if ((m.type === 'user' || m.type === 'assistant') && m.isVirtual) {
81 return false
82 }
83 return (
84 m.type === 'user' ||
85 m.type === 'assistant' ||
86 (m.type === 'system' && m.subtype === 'local_command')
87 )
88}
89
90/**
91 * Extract title-worthy text from a Message for onUserMessage. Returns

Callers 3

writeMessagesFunction · 0.85
wireTransportFunction · 0.85
writeMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected