* Check if a message content string is terminal output rather than a user prompt. * Terminal output includes bash input/output tags and caveat messages about local commands.
(content: string)
| 88 | * Terminal output includes bash input/output tags and caveat messages about local commands. |
| 89 | */ |
| 90 | function isTerminalOutput(content: string): boolean { |
| 91 | for (const tag of TERMINAL_OUTPUT_TAGS) { |
| 92 | if (content.includes(`<${tag}>`)) { |
| 93 | return true |
| 94 | } |
| 95 | } |
| 96 | return false |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Count user messages with visible text content in a list of non-sidechain messages. |
no outgoing calls
no test coverage detected