(
uuid: string,
toolUseID: string,
command: string,
overrides: Partial<HookProgress> = {},
)
| 52 | } |
| 53 | |
| 54 | function createStopHookProgress( |
| 55 | uuid: string, |
| 56 | toolUseID: string, |
| 57 | command: string, |
| 58 | overrides: Partial<HookProgress> = {}, |
| 59 | ): Message { |
| 60 | return { |
| 61 | type: 'progress', |
| 62 | uuid, |
| 63 | toolUseID, |
| 64 | parentToolUseID: 'parent-tool-use', |
| 65 | timestamp: '2026-04-13T00:00:00.000Z', |
| 66 | data: { |
| 67 | type: 'hook_progress', |
| 68 | hookEvent: 'Stop', |
| 69 | hookName: `stop-hook-${uuid}`, |
| 70 | command, |
| 71 | ...overrides, |
| 72 | }, |
| 73 | } as unknown as Message |
| 74 | } |
| 75 | |
| 76 | function createStopHookAttachment(uuid: string, toolUseID: string): Message { |
| 77 | return { |
no outgoing calls
no test coverage detected