MCPcopy Index your code
hub / github.com/codeaashu/claude-code / executeCwdChangedHooks

Function executeCwdChangedHooks

src/utils/hooks.ts:4260–4276  ·  view source on GitHub ↗
(
  oldCwd: string,
  newCwd: string,
  timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
)

Source from the content-addressed store, hash-verified

4258}
4259
4260export function executeCwdChangedHooks(
4261 oldCwd: string,
4262 newCwd: string,
4263 timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
4264): Promise<{
4265 results: HookOutsideReplResult[]
4266 watchPaths: string[]
4267 systemMessages: string[]
4268}> {
4269 const hookInput: CwdChangedHookInput = {
4270 ...createBaseHookInput(undefined),
4271 hook_event_name: 'CwdChanged',
4272 old_cwd: oldCwd,
4273 new_cwd: newCwd,
4274 }
4275 return executeEnvHooks(hookInput, timeoutMs)
4276}
4277
4278export function executeFileChangedHooks(
4279 filePath: string,

Callers 1

onCwdChangedForHooksFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeEnvHooksFunction · 0.85

Tested by

no test coverage detected