(m: Message)
| 75 | * everything else (tool_result, progress, etc.) is internal REPL chatter. |
| 76 | */ |
| 77 | export 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 |
no outgoing calls
no test coverage detected