MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / load

Method load

src/bot/session-map.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 constructor(private file: string = DEFAULT_FILE) {}
18
19 private async load(): Promise<void> {
20 if (this.loaded) return;
21 try { this.map = JSON.parse(await fs.readFile(this.file, 'utf-8')); }
22 catch { this.map = {}; }
23 this.loaded = true;
24 }
25
26 async get(key: string): Promise<string | undefined> {
27 await this.load();

Callers 15

getMethod · 0.95
setMethod · 0.95
clearMethod · 0.95
mainFunction · 0.80
index.tsFile · 0.80
getParserFunction · 0.80
diagnoseGrammarFunction · 0.80
executeMethod · 0.80
addDraftToConfigFunction · 0.80
addProviderToConfigFunction · 0.80
writeConfigKnobFunction · 0.80
dispatchActionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected