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

Method has

src/tools/dedup.js:172–176  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

170
171 // Returns true if this call was already executed *this turn*.
172 has(name, args) {
173 if (this.disabled) return false;
174 if (!this.isIdempotent(name)) return false;
175 return this.seen.has(idempotentWriteKey(name, args));
176 }
177
178 // Record a successful idempotent-write call.
179 record(name, args, result) {

Callers 15

checkWriteMethod · 0.45
extractFromMessageFunction · 0.45
_normalizeFunction · 0.45
recordMethod · 0.45
levelMethod · 0.45
collectFilesFunction · 0.45
lookupMethod · 0.45
recordMethod · 0.45
isIdempotentMethod · 0.45
walkFunction · 0.45
recordReadToolMethod · 0.45

Calls 2

isIdempotentMethod · 0.95
idempotentWriteKeyFunction · 0.85

Tested by

no test coverage detected