MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / readHighWaterMark

Function readHighWaterMark

source code/utils/tasks.ts:116–125  ·  view source on GitHub ↗
(taskListId: string)

Source from the content-addressed store, hash-verified

114}
115
116async function readHighWaterMark(taskListId: string): Promise<number> {
117 const path = getHighWaterMarkPath(taskListId)
118 try {
119 const content = (await readFile(path, 'utf-8')).trim()
120 const value = parseInt(content, 10)
121 return isNaN(value) ? 0 : value
122 } catch {
123 return 0
124 }
125}
126
127async function writeHighWaterMark(
128 taskListId: string,

Callers 3

resetTaskListFunction · 0.85
findHighestTaskIdFunction · 0.85
deleteTaskFunction · 0.85

Calls 2

getHighWaterMarkPathFunction · 0.85
readFileFunction · 0.85

Tested by

no test coverage detected