Interface: FileAccessRules
Makaio Framework / tools-core / FileAccessRules
Interface: FileAccessRules
Section titled “Interface: FileAccessRules”Defined in: ../../../tools/core/src/file-access.ts:6
Compiled file access rules injected into tool execution context constraints.
Properties
Section titled “Properties”allowedDirectories?
Section titled “allowedDirectories?”
readonlyoptionalallowedDirectories?: readonlystring[]
Defined in: ../../../tools/core/src/file-access.ts:13
Directory allow-list.
undefined: no directory restriction[]: deny all filesystem paths- non-empty array: allow-list to these directories
isDenied
Section titled “isDenied”
readonlyisDenied: (absolutePath) =>boolean
Defined in: ../../../tools/core/src/file-access.ts:19
Sync predicate that returns true when the absolute path is denied.
Parameters
Section titled “Parameters”absolutePath
Section titled “absolutePath”string
Normalized absolute path to test
Returns
Section titled “Returns”boolean