MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getSessionEnvDirPath

Function getSessionEnvDirPath

source code/utils/sessionEnvironment.ts:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15let sessionEnvScript: string | null | undefined = undefined
16
17export async function getSessionEnvDirPath(): Promise<string> {
18 const sessionEnvDir = join(
19 getClaudeConfigHomeDir(),
20 'session-env',
21 getSessionId(),
22 )
23 await mkdir(sessionEnvDir, { recursive: true })
24 return sessionEnvDir
25}
26
27export async function getHookEnvFilePath(
28 hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged',

Callers 3

getHookEnvFilePathFunction · 0.85
clearCwdEnvFilesFunction · 0.85

Calls 2

getSessionIdFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected