Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ path-guard.test.ts
File
path-guard.test.ts
packages/agent-core/test/tools/path-guard.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, it } from
'vitest'
;
2
3
import
{
4
canonicalizePath,
Callers
nothing calls this directly
Calls
8
resolvePathAccess
Function · 0.90
resolvePathAccessPath
Function · 0.90
assertPathAllowed
Function · 0.90
canonicalizePath
Function · 0.90
isWithinDirectory
Function · 0.90
isWithinWorkspace
Function · 0.90
normalizeUserPath
Function · 0.90
isSensitiveFile
Function · 0.90
Tested by
no test coverage detected