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

Method set

src/bot/session-map.ts:31–36  ·  view source on GitHub ↗
(key: string, sessionId: string)

Source from the content-addressed store, hash-verified

29 }
30
31 async set(key: string, sessionId: string): Promise<void> {
32 await this.load();
33 this.map[key] = sessionId;
34 await fs.mkdir(path.dirname(this.file), { recursive: true }).catch(() => {});
35 await fs.writeFile(this.file, JSON.stringify(this.map, null, 2)).catch(() => {});
36 }
37
38 async clear(key: string): Promise<void> {
39 await this.load();

Callers 15

matchModelCandidatesFunction · 0.45
buildIndexFunction · 0.45
fakeIOFunction · 0.45
index.tsFile · 0.45
registerBuiltinsMethod · 0.45
registerMethod · 0.45
startFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 1

loadMethod · 0.95

Tested by 3

matchModelCandidatesFunction · 0.36
buildIndexFunction · 0.36
fakeIOFunction · 0.36