MCPcopy
hub / github.com/codeaashu/claude-code / writeHighWaterMark

Function writeHighWaterMark

src/utils/tasks.ts:125–131  ·  view source on GitHub ↗
(
  taskListId: string,
  value: number,
)

Source from the content-addressed store, hash-verified

123}
124
125async function writeHighWaterMark(
126 taskListId: string,
127 value: number,
128): Promise<void> {
129 const path = getHighWaterMarkPath(taskListId)
130 await writeFile(path, String(value))
131}
132
133export function isTodoV2Enabled(): boolean {
134 // Force-enable tasks in non-interactive mode (e.g. SDK users who want Task tools over TodoWrite)

Callers 2

resetTaskListFunction · 0.85
deleteTaskFunction · 0.85

Calls 1

getHighWaterMarkPathFunction · 0.85

Tested by

no test coverage detected