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

Function getHookEnvFilePath

source code/utils/sessionEnvironment.ts:27–33  ·  view source on GitHub ↗
(
  hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged',
  hookIndex: number,
)

Source from the content-addressed store, hash-verified

25}
26
27export async function getHookEnvFilePath(
28 hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged',
29 hookIndex: number,
30): Promise<string> {
31 const prefix = hookEvent.toLowerCase()
32 return join(await getSessionEnvDirPath(), `${prefix}-hook-${hookIndex}.sh`)
33}
34
35export async function clearCwdEnvFiles(): Promise<void> {
36 try {

Callers 1

execCommandHookFunction · 0.85

Calls 1

getSessionEnvDirPathFunction · 0.85

Tested by

no test coverage detected