MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / loadSessionById

Function loadSessionById

src/core/sessions.ts:43–49  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

41}
42
43export function loadSessionById(id: string): SessionData | undefined {
44 try {
45 return JSON.parse(fs.readFileSync(path.join(getSessionsDir(), `${id}.json`), "utf8")) as SessionData
46 } catch {
47 return undefined
48 }
49}
50
51/** Sessions for a workspace, most recently updated first. */
52export function listSessions(cwd: string): SessionData[] {

Callers 1

mainFunction · 0.85

Calls 1

getSessionsDirFunction · 0.85

Tested by

no test coverage detected