( hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged', hookIndex: number, )
| 25 | } |
| 26 | |
| 27 | export 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 | |
| 35 | export async function clearCwdEnvFiles(): Promise<void> { |
| 36 | try { |
no test coverage detected