( hookCount: number, hookInfos: StopHookInfo[], hookErrors: string[], preventedContinuation: boolean, stopReason: string | undefined, hasOutput: boolean, level: SystemMessageLevel, toolUseID?: string, hookLabel?: string, totalDurationMs?: number, )
| 4396 | } |
| 4397 | |
| 4398 | export 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 | |
| 4428 | export function createTurnDurationMessage( |
| 4429 | durationMs: number, |
no outgoing calls
no test coverage detected