MCPcopy Create free account
hub / github.com/freecodexyz/free-code / pathValidation.ts

File pathValidation.ts

src/tools/BashTool/pathValidation.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { homedir } from 'os'
2import { isAbsolute, resolve } from 'path'
3import type { z } from 'zod/v4'
4import type { ToolPermissionContext } from '../../Tool.js'

Callers

nothing calls this directly

Calls 4

filterOutFlagsFunction · 0.85
parsePatternCommandFunction · 0.85
keysMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected