MCPcopy Create free account
hub / github.com/cursor/plugins / getTranscriptMtimeMs

Function getTranscriptMtimeMs

continual-learning/hooks/continual-learning-stop.ts:125–135  ·  view source on GitHub ↗
(transcriptPath: string | null | undefined)

Source from the content-addressed store, hash-verified

123}
124
125function 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
137function shouldCountTurn(input: StopHookInput): boolean {
138 return input.status === "completed" && input.loop_count === 0;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected