@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
30 lines • 1.41 kB
TypeScript
import { Runtime } from './base.ts';
import type { RuntimeOptions } from './config.ts';
/**
* The workspace's built-in command engine as a routing marker.
*
* By default it captures nothing and serves every command no other
* runtime captures (cat, ls, echo, and anything unknown): it is the
* catch-all. Passing explicit captures flips it into an ordinary
* capturer: the workspace serves exactly those commands and anything
* unclaimed exits 126. Required: every workspace world contains
* exactly one, appended automatically when the runtimes list omits it;
* pass your own instance to customize it.
*
* It is a pure routing marker, so it carries no capability mixin: a
* line resolved to workspace runs on the workspace executor inline, the path
* the line takes anyway, so there is no interpreter entry point (run) and no
* delegate entry point (runLine) to implement.
*
* Constructed like every runtime (captures, config), with two
* workspace readings: captures undefined (the default) keeps the catch-all
* behavior, an empty array serves nothing (full lockdown); and the
* config has no fields today, the slot exists for uniformity.
*/
export declare class WorkspaceRuntime extends Runtime {
readonly name = "workspace";
readonly reach = "workspace";
readonly restricted: boolean;
constructor(options?: RuntimeOptions);
}
//# sourceMappingURL=workspace.d.ts.map