MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isLabeledHookSummary

Function isLabeledHookSummary

src/utils/collapseHookSummaries.ts:6–14  ·  view source on GitHub ↗
(
  msg: RenderableMessage,
)

Source from the content-addressed store, hash-verified

4} from '../types/message.js'
5
6function isLabeledHookSummary(
7 msg: RenderableMessage,
8): msg is SystemStopHookSummaryMessage {
9 return (
10 msg.type === 'system' &&
11 msg.subtype === 'stop_hook_summary' &&
12 msg.hookLabel !== undefined
13 )
14}
15
16/**
17 * Collapses consecutive hook summary messages with the same hookLabel

Callers 1

collapseHookSummariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected