Skip to content

Interface: FileAccessRules

Makaio Framework


Makaio Framework / tools-core / FileAccessRules

Defined in: ../../../tools/core/src/file-access.ts:6

Compiled file access rules injected into tool execution context constraints.

readonly optional allowedDirectories?: readonly string[]

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

readonly isDenied: (absolutePath) => boolean

Defined in: ../../../tools/core/src/file-access.ts:19

Sync predicate that returns true when the absolute path is denied.

string

Normalized absolute path to test

boolean