MCPcopy Index your code
hub / github.com/codeaashu/claude-code / loadCachedSessionMeta

Function loadCachedSessionMeta

src/commands/insights.ts:976–986  ·  view source on GitHub ↗
(
  sessionId: string,
)

Source from the content-addressed store, hash-verified

974}
975
976async function loadCachedSessionMeta(
977 sessionId: string,
978): Promise<SessionMeta | null> {
979 const metaPath = join(getSessionMetaDir(), `${sessionId}.json`)
980 try {
981 const content = await readFile(metaPath, { encoding: 'utf-8' })
982 return jsonParse(content)
983 } catch {
984 return null
985 }
986}
987
988async function saveSessionMeta(meta: SessionMeta): Promise<void> {
989 try {

Callers 1

generateUsageReportFunction · 0.85

Calls 3

getSessionMetaDirFunction · 0.85
readFileFunction · 0.85
jsonParseFunction · 0.85

Tested by

no test coverage detected