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

Method record

src/tools/dedup.js:179–184  ·  view source on GitHub ↗
(name, args, result)

Source from the content-addressed store, hash-verified

177
178 // Record a successful idempotent-write call.
179 record(name, args, result) {
180 if (this.disabled) return;
181 if (!this.isIdempotent(name)) return;
182 if (result && result.error) return; // don't lock out retries on error
183 this.seen.add(idempotentWriteKey(name, args));
184 }
185
186 // Build the canonical "skipped" result that replaces the real tool call.
187 shortCircuitResult(name) {

Callers

nothing calls this directly

Calls 3

isIdempotentMethod · 0.95
idempotentWriteKeyFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected