MCPcopy
hub / github.com/Doorman11991/smallcode / recordRead

Method recordRead

src/tools/read_tracker.js:52–59  ·  view source on GitHub ↗

Mark a path as read.

(filePath, cwd)

Source from the content-addressed store, hash-verified

50
51 /** Mark a path as read. */
52 recordRead(filePath, cwd) {
53 if (this.disabled) return;
54 const c = this._canon(filePath, cwd);
55 if (!c) return;
56 this.readPaths.add(c);
57 // Reading after a warning lifts the warning (but doesn't auto-clear written)
58 this.warnedPaths.delete(c);
59 }
60
61 /** Mark a path as written (so write→write doesn't trigger guard). */
62 recordWrite(filePath, cwd) {

Callers 1

executeToolFunction · 0.80

Calls 2

_canonMethod · 0.95
addMethod · 0.80

Tested by

no test coverage detected