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

Function saveSessionMeta

src/commands/insights.ts:988–999  ·  view source on GitHub ↗
(meta: SessionMeta)

Source from the content-addressed store, hash-verified

986}
987
988async function saveSessionMeta(meta: SessionMeta): Promise<void> {
989 try {
990 await mkdir(getSessionMetaDir(), { recursive: true })
991 } catch {
992 // Directory may already exist
993 }
994 const metaPath = join(getSessionMetaDir(), `${meta.session_id}.json`)
995 await writeFile(metaPath, jsonStringify(meta, null, 2), {
996 encoding: 'utf-8',
997 mode: 0o600,
998 })
999}
1000
1001async function extractFacetsFromAPI(
1002 log: LogOption,

Callers 1

generateUsageReportFunction · 0.85

Calls 3

mkdirFunction · 0.85
getSessionMetaDirFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected