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

Function getTDDState

src/session/tdd_state.js:574–579  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

572let _instance = null;
573
574function getTDDState(options) {
575 const wantedCwd = (options && options.workdir) || process.cwd();
576 if (_instance && _instance.workdir === wantedCwd) return _instance;
577 _instance = new TDDStateMachine({ workdir: wantedCwd, ...(options || {}) });
578 return _instance;
579}
580
581function resetTDDState() { _instance = null; }
582

Callers 5

constructorMethod · 0.85
_tddPostWriteMethod · 0.85
_executeToolMethod · 0.85
executeToolFunction · 0.85
_tddPostWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected