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

Method detect

src/session/bootstrap.js:39–44  ·  view source on GitHub ↗

Run detection and return { summary, parts } or null. Cached.

()

Source from the content-addressed store, hash-verified

37
38 /** Run detection and return { summary, parts } or null. Cached. */
39 detect() {
40 if (this.disabled) return null;
41 if (this._cache !== null) return this._cache;
42 this._cache = this._scan();
43 return this._cache;
44 }
45
46 /** Format for system prompt injection. Returns '' if nothing found. */
47 formatForPrompt() {

Callers 3

formatForPromptMethod · 0.95
verifyAndFixCompiledFunction · 0.45
runAgentLoopFunction · 0.45

Calls 1

_scanMethod · 0.95

Tested by

no test coverage detected