MCPcopy Create free account
hub / github.com/Noumena-Network/code / sessionIdExists

Function sessionIdExists

src/utils/sessionStorage.ts:429–439  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

427}
428
429export function sessionIdExists(sessionId: string): boolean {
430 const projectDir = getProjectDir(getOriginalCwd())
431 const sessionFile = join(projectDir, `${sessionId}.jsonl`)
432 const fs = getFsImplementation()
433 try {
434 fs.statSync(sessionFile)
435 return true
436 } catch {
437 return false
438 }
439}
440
441// exported for testing
442export function getNodeEnv(): string {

Callers 2

runFunction · 0.85
printResumeHintFunction · 0.85

Calls 3

getOriginalCwdFunction · 0.85
getFsImplementationFunction · 0.85
getProjectDirFunction · 0.70

Tested by

no test coverage detected