Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ homedir } from
'os'
2
import
{ isAbsolute, resolve } from
'path'
3
import
type
{ z } from
'zod/v4'
4
import
type
{ ToolPermissionContext } from
'../../Tool.js'
Callers
nothing calls this directly
Calls
4
filterOutFlags
Function · 0.85
parsePatternCommand
Function · 0.85
keys
Method · 0.80
has
Method · 0.45
Tested by
no test coverage detected