MCPcopy
hub / github.com/codeaashu/claude-code / getHookEnvFilePath

Function getHookEnvFilePath

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

Source from the content-addressed store, hash-verified

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

Callers 1

execCommandHookFunction · 0.85

Calls 1

getSessionEnvDirPathFunction · 0.85

Tested by

no test coverage detected