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

Function createStopHookSummaryMessage

src/utils/messages.ts:4398–4426  ·  view source on GitHub ↗
(
  hookCount: number,
  hookInfos: StopHookInfo[],
  hookErrors: string[],
  preventedContinuation: boolean,
  stopReason: string | undefined,
  hasOutput: boolean,
  level: SystemMessageLevel,
  toolUseID?: string,
  hookLabel?: string,
  totalDurationMs?: number,
)

Source from the content-addressed store, hash-verified

4396}
4397
4398export function createStopHookSummaryMessage(
4399 hookCount: number,
4400 hookInfos: StopHookInfo[],
4401 hookErrors: string[],
4402 preventedContinuation: boolean,
4403 stopReason: string | undefined,
4404 hasOutput: boolean,
4405 level: SystemMessageLevel,
4406 toolUseID?: string,
4407 hookLabel?: string,
4408 totalDurationMs?: number,
4409): SystemStopHookSummaryMessage {
4410 return {
4411 type: 'system',
4412 subtype: 'stop_hook_summary',
4413 hookCount,
4414 hookInfos,
4415 hookErrors,
4416 preventedContinuation,
4417 stopReason,
4418 hasOutput,
4419 level,
4420 timestamp: new Date().toISOString(),
4421 uuid: randomUUID(),
4422 toolUseID,
4423 hookLabel,
4424 totalDurationMs,
4425 }
4426}
4427
4428export function createTurnDurationMessage(
4429 durationMs: number,

Callers 2

handleStopHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected