MCPcopy Create free account
hub / github.com/Noumena-Network/code / isStopHookAttachmentMessage

Function isStopHookAttachmentMessage

src/screens/replMessageSignals.ts:417–428  ·  view source on GitHub ↗
(message: Message)

Source from the content-addressed store, hash-verified

415}
416
417function isStopHookAttachmentMessage(message: Message): boolean {
418 if (message.type !== 'attachment') {
419 return false
420 }
421
422 const attachment = message.attachment
423 return (
424 'hookEvent' in attachment &&
425 'toolUseID' in attachment &&
426 (attachment.hookEvent === 'Stop' || attachment.hookEvent === 'SubagentStop')
427 )
428}

Callers 1

applyStopHookMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected