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

Function consumeInternalWrite

src/utils/settings/internalWrites.ts:26–33  ·  view source on GitHub ↗
(path: string, windowMs: number)

Source from the content-addressed store, hash-verified

24 * the next (real, external) change to the same file.
25 */
26export function consumeInternalWrite(path: string, windowMs: number): boolean {
27 const ts = timestamps.get(path)
28 if (ts !== undefined && Date.now() - ts < windowMs) {
29 timestamps.delete(path)
30 return true
31 }
32 return false
33}
34
35export function clearInternalWrites(): void {
36 timestamps.clear()

Callers 1

handleChangeFunction · 0.85

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected