MCPcopy Create free account
hub / github.com/backnotprop/plannotator / registerSession

Function registerSession

packages/server/sessions.ts:54–56  ·  view source on GitHub ↗
(info: SessionInfo)

Source from the content-addressed store, hash-verified

52 * Register the current server session.
53 */
54export function registerSession(info: SessionInfo): void {
55 writeFileSync(sessionPath(info.pid), JSON.stringify(info, null, 2), "utf-8");
56}
57
58/**
59 * Unregister the current process's session. No-op if not found.

Callers 1

index.tsFile · 0.90

Calls 1

sessionPathFunction · 0.85

Tested by

no test coverage detected