Function
getTranscriptMtimeMs
(transcriptPath: string | null | undefined)
Source from the content-addressed store, hash-verified
| 123 | } |
| 124 | |
| 125 | function getTranscriptMtimeMs(transcriptPath: string | null | undefined): number | null { |
| 126 | if (!transcriptPath) { |
| 127 | return null; |
| 128 | } |
| 129 | |
| 130 | try { |
| 131 | return statSync(transcriptPath).mtimeMs; |
| 132 | } catch { |
| 133 | return null; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | function shouldCountTurn(input: StopHookInput): boolean { |
| 138 | return input.status === "completed" && input.loop_count === 0; |
Tested by
no test coverage detected