FileJailOptions
Defined in: packages/tools/src/file/jail.ts:46
Bounds for createFileJail. Security is allow/deny lists only — cwd is the
relative-path base (default: home directory), not a privileged root.
allowRead / allowWrite omitted → [cwd]. UNBOUNDED_ALLOW_READ is host-wide
reads. null / [] on read (and [] on write) allow nothing. Deny wins over allow,
including unbounded read.
Properties
Section titled “Properties”allowRead?
Section titled “allowRead?”
optionalallowRead?:FileAllowRead
Defined in: packages/tools/src/file/jail.ts:52
allowWrite?
Section titled “allowWrite?”
optionalallowWrite?:string[]
Defined in: packages/tools/src/file/jail.ts:55
Omitted → [cwd]. [] → no writes.
optionalcwd?:string
Defined in: packages/tools/src/file/jail.ts:51
Relative-path base only — not a security root.
Omitted → os.homedir() (expanded ~, not /).
denyRead?
Section titled “denyRead?”
optionaldenyRead?:string[]
Defined in: packages/tools/src/file/jail.ts:53
denyWrite?
Section titled “denyWrite?”
optionaldenyWrite?:string[]
Defined in: packages/tools/src/file/jail.ts:56