UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

38 lines • 1.75 kB
import type { FsCondition } from '../errors/index.ts'; /** Capture unresolved program names without taking over the workspace shell. */ export declare const EXTERNAL_COMMANDS = "@external"; /** Capture the whole line, Mirage's own commands included (a line executor). Mirrors Python's WHOLE_LINE. */ export declare const WHOLE_LINE = "@line"; /** * The most requests one runtime file adapter keeps in flight. * * Classifying or preloading an entry is a request of its own on a * mount that keeps no listing index, so an unbounded listing puts a * whole directory's worth of requests on the wire together. Every * request an entry point sends shares the one cap, a preload walk's included. */ export declare const LISTING_ENTRY_CONCURRENCY = 16; /** * What a stat or a listing may answer "not there" with. A directory is * an answer to both rather than an absence, and a backend that refused * the op has not said the path is gone: folding a permission or a * transport failure into "no" reports it as an absence the guest cannot * tell from a real one, so nothing else belongs here. */ export declare const ABSENT_PATH: ReadonlySet<FsCondition>; /** * What a hard link is refused with, wherever one can be spelled (node's * patched `fs.link`): a hard link is a second name for one inode, and * nothing above a mount holds that. */ export declare const HARD_LINK_REFUSAL: FsCondition; /** * How long one policy program (a profile's `policy:` or the `routePolicy`) * may run before the action it judges is refused or the route it decides * fails. One bound for every stage; a holder object so tests can tighten * it. */ export declare const SCRIPT_EVAL_TIMEOUT: { seconds: number; }; //# sourceMappingURL=constants.d.ts.map