MCPcopy Create free account
hub / github.com/MemTensor/MemOS / touchSession

Method touchSession

packages/memos-core/src/telemetry.ts:147–152  ·  view source on GitHub ↗
(filePath: string, id: string)

Source from the content-addressed store, hash-verified

145 }
146
147 private touchSession(filePath: string, id: string): void {
148 try {
149 fs.mkdirSync(path.dirname(filePath), { recursive: true });
150 fs.writeFileSync(filePath, `${Date.now()}|${id}`, "utf-8");
151 } catch {}
152 }
153
154 private loadOrCreateFirstSeen(stateDir: string): string {
155 const filePath = path.join(stateDir, "memos-local", ".first-seen");

Callers 1

loadOrCreateSessionIdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected