MCPcopy
hub / github.com/RedPlanetHQ/core / upsertSession

Function upsertSession

packages/cli/src/utils/coding-sessions.ts:53–57  ·  view source on GitHub ↗
(session: RunningSession)

Source from the content-addressed store, hash-verified

51}
52
53export function upsertSession(session: RunningSession): void {
54 const data = loadSessions();
55 data.sessions[session.sessionId] = session;
56 saveSessions(data);
57}
58
59export function deleteSession(sessionId: string): boolean {
60 const data = loadSessions();

Callers 3

handleAskFunction · 0.90
tryRespawnFunction · 0.90
codingSpawnRouteFunction · 0.90

Calls 2

loadSessionsFunction · 0.85
saveSessionsFunction · 0.85

Tested by

no test coverage detected