MCPcopy Create free account
hub / github.com/altic-dev/Pilot / getSession

Method getSession

src/lib/session-store.ts:52–60  ·  view source on GitHub ↗

* Get session data by sessionId

(sessionId: string)

Source from the content-addressed store, hash-verified

50 * Get session data by sessionId
51 */
52 getSession(sessionId: string): SessionData | undefined {
53 const session = this.sessions.get(sessionId);
54 if (session) {
55 // Update last activity
56 session.lastActivity = Date.now();
57 this.sessions.set(sessionId, session);
58 }
59 return session;
60 }
61
62 /**
63 * Update session data

Callers 5

GETFunction · 0.80
POSTFunction · 0.80
DELETEFunction · 0.80
GETFunction · 0.80
POSTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected