Skip to main content

FileScope

@retinue/monorepo


@retinue/monorepo / backend/src / FileScope

Type Alias: FileScope

FileScope = object

Defined in: backend/src/toolkit/files.ts:43

Properties​

maxBytes?​

readonly optional maxBytes?: number

Defined in: backend/src/toolkit/files.ts:53


maxEntries?​

readonly optional maxEntries?: number

Defined in: backend/src/toolkit/files.ts:54


maxMatches?​

readonly optional maxMatches?: number

Defined in: backend/src/toolkit/files.ts:55


maxSearchedFiles?​

readonly optional maxSearchedFiles?: number

Defined in: backend/src/toolkit/files.ts:56


root​

readonly root: string

Defined in: backend/src/toolkit/files.ts:45

Everything readable, and the only thing readable. Resolved through realpath at construction.


writableRoot?​

readonly optional writableRoot?: string

Defined in: backend/src/toolkit/files.ts:52

Where writes may land, when writes are wanted at all.

Separate from root, and absent by default. A deployment that pointed both at the same directory would let a model edit the material it also reads — which is how a corpus a model cites becomes a corpus a model wrote.