MCPcopy
hub / github.com/claude-code-best/claude-code / getSessionEnvDirPath

Function getSessionEnvDirPath

src/utils/sessionEnvironment.ts:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13let sessionEnvScript: string | null | undefined
14
15export async function getSessionEnvDirPath(): Promise<string> {
16 const sessionEnvDir = join(
17 getClaudeConfigHomeDir(),
18 'session-env',
19 getSessionId(),
20 )
21 await mkdir(sessionEnvDir, { recursive: true })
22 return sessionEnvDir
23}
24
25export async function getHookEnvFilePath(
26 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