( message: Message, )
| 1026 | } |
| 1027 | |
| 1028 | function isHookAttachmentMessage( |
| 1029 | message: Message, |
| 1030 | ): message is AttachmentMessage<HookAttachment> { |
| 1031 | return ( |
| 1032 | message.type === 'attachment' && |
| 1033 | (message.attachment.type === 'hook_blocking_error' || |
| 1034 | message.attachment.type === 'hook_cancelled' || |
| 1035 | message.attachment.type === 'hook_error_during_execution' || |
| 1036 | message.attachment.type === 'hook_non_blocking_error' || |
| 1037 | message.attachment.type === 'hook_success' || |
| 1038 | message.attachment.type === 'hook_system_message' || |
| 1039 | message.attachment.type === 'hook_additional_context' || |
| 1040 | message.attachment.type === 'hook_stopped_continuation') |
| 1041 | ) |
| 1042 | } |
| 1043 | |
| 1044 | function getInProgressHookCount( |
| 1045 | messages: NormalizedMessage[], |
no outgoing calls
no test coverage detected