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

Function allWorkingDirectories

src/utils/permissions/filesystem.ts:667–674  ·  view source on GitHub ↗
(
  context: ToolPermissionContext,
)

Source from the content-addressed store, hash-verified

665}
666
667export function allWorkingDirectories(
668 context: ToolPermissionContext,
669): Set<string> {
670 return new Set([
671 getOriginalCwd(),
672 ...context.additionalWorkingDirectories.keys(),
673 ])
674}
675
676// Working directories are session-stable; memoize their resolved forms to
677// avoid repeated existsSync/lstatSync/realpathSync syscalls on every

Callers 5

validateCommandPathsFunction · 0.85
pathInAllowedWorkingPathFunction · 0.85

Calls 2

getOriginalCwdFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected