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

Function getStore

src/session/contract_store.js:206–211  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

204
205let _instance = null;
206function getStore(cwd) {
207 if (!_instance || (cwd && _instance.cwd !== cwd)) {
208 _instance = new ContractStore(cwd);
209 }
210 return _instance;
211}
212function resetStore() { _instance = null; }
213
214module.exports = { ContractStore, getStore, resetStore, STATES, STATUSES };

Callers 3

executeContractToolFunction · 0.85
checkDoneGuardFunction · 0.85
commands.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected