Skip to content

FilesystemPermission

Defined in: _worktrees/docs-release/gaunt-sloth/node_modules/.pnpm/deepagents@1.11.1_@langchain+core@1.2.3_openai@6.47.0_ws@8.21.1_zod@4.4.3__ws@8.21.1__@_0810ca07f28c273a4c8a5ff1fd32dec8/node_modules/deepagents/dist/agent-k6GiDPCY.d.ts:718

A single filesystem permission rule.

Rules are evaluated in declaration order; the first rule whose operations includes the requested operation AND whose paths glob-matches the target path determines the outcome. If no rule matches, access is allowed (permissive default).

All paths must be absolute glob patterns (start with /, no .. or ~). Supports ** (any depth), * (within one segment), and {a,b} brace expansion. Paths are validated when passed to createFilesystemMiddleware.

optional mode?: PermissionMode

Defined in: _worktrees/docs-release/gaunt-sloth/node_modules/.pnpm/deepagents@1.11.1_@langchain+core@1.2.3_openai@6.47.0_ws@8.21.1_zod@4.4.3__ws@8.21.1__@_0810ca07f28c273a4c8a5ff1fd32dec8/node_modules/deepagents/dist/agent-k6GiDPCY.d.ts:732

Whether matching paths are permitted or blocked. Defaults to "allow".


operations: readonly FilesystemOperation[]

Defined in: _worktrees/docs-release/gaunt-sloth/node_modules/.pnpm/deepagents@1.11.1_@langchain+core@1.2.3_openai@6.47.0_ws@8.21.1_zod@4.4.3__ws@8.21.1__@_0810ca07f28c273a4c8a5ff1fd32dec8/node_modules/deepagents/dist/agent-k6GiDPCY.d.ts:722

The operations this rule applies to.


paths: string[]

Defined in: _worktrees/docs-release/gaunt-sloth/node_modules/.pnpm/deepagents@1.11.1_@langchain+core@1.2.3_openai@6.47.0_ws@8.21.1_zod@4.4.3__ws@8.21.1__@_0810ca07f28c273a4c8a5ff1fd32dec8/node_modules/deepagents/dist/agent-k6GiDPCY.d.ts:728

Absolute glob patterns for paths this rule matches. Must start with /; must not contain .. or ~. Supports ** (any depth), * (within one segment), and {a,b} brace expansion.