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

Function isHookAttachmentMessage

src/utils/messages.ts:1028–1042  ·  view source on GitHub ↗
(
  message: Message,
)

Source from the content-addressed store, hash-verified

1026}
1027
1028function 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
1044function getInProgressHookCount(
1045 messages: NormalizedMessage[],

Callers 4

reorderMessagesInUIFunction · 0.85
getResolvedHookCountFunction · 0.85
buildMessageLookupsFunction · 0.85
getToolUseIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected