MCPcopy Create free account
hub / github.com/Noumena-Network/code / executeCwdChangedHooks

Function executeCwdChangedHooks

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

Source from the content-addressed store, hash-verified

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

Callers 1

onCwdChangedForHooksFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeEnvHooksFunction · 0.85

Tested by

no test coverage detected