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

Method createSession

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

* Create a new session

(sessionId: string, containerId: string)

Source from the content-addressed store, hash-verified

31 * Create a new session
32 */
33 createSession(sessionId: string, containerId: string): SessionData {
34 const session: SessionData = {
35 sessionId,
36 containerId,
37 buildStatus: 'idle',
38 previewReady: false,
39 createdAt: Date.now(),
40 lastActivity: Date.now(),
41 };
42
43 this.sessions.set(sessionId, session);
44 logger.info(`Session created: ${sessionId} (container: ${containerId})`);
45
46 return session;
47 }
48
49 /**
50 * Get session data by sessionId

Callers 1

repo-setup.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected