MCPcopy
hub / github.com/garrytan/gstack / readSessionState

Function readSessionState

browse/src/security.ts:559–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

557}
558
559export function readSessionState(): SessionState | null {
560 try {
561 if (!fs.existsSync(STATE_FILE)) return null;
562 return JSON.parse(fs.readFileSync(STATE_FILE, 'utf8'));
563 } catch {
564 return null;
565 }
566}
567
568// ─── User-in-the-loop review on BLOCK ────────────────────────
569//

Callers 2

security.test.tsFile · 0.90
getStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected