MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / readHighWaterMark

Function readHighWaterMark

src/utils/tasks.ts:114–123  ·  view source on GitHub ↗
(taskListId: string)

Source from the content-addressed store, hash-verified

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