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

Function normalizeAllowOnly

src/tools/BashTool/prompt.ts:190–191  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

188 // cross-user global prompt cache. The sandbox already sets $TMPDIR at runtime.
189 const claudeTempDir = getNcodeTempDir()
190 const normalizeAllowOnly = (paths: string[]): string[] =>
191 [...new Set(paths)].map(p => (p === claudeTempDir ? '$TMPDIR' : p))
192
193 const filesystemConfig = {
194 read: {

Callers 1

getSimpleSandboxSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected