@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
32 lines • 1.29 kB
TypeScript
/**
* A failure after the command had already written `output`: a mirage-rs
* stream that refused its input, or a CLI leaf that prints as it goes
* (`gh --jq`), whose output stays on stdout ahead of the diagnostic.
* `message` is the refusal, without a newline: the command's stderr wording,
* or what the caller reports it as (`sort -c` gets the disordered record's
* number); `status` the status the command exits with. Mirrors Python's
* StreamRefusal.
*/
export declare class StreamRefusal extends Error {
readonly output: Uint8Array;
readonly status: number;
constructor(message: string, output: Uint8Array, status?: number);
}
/**
* A -P line search gave up at PCRE2's match limit: `message` in GNU grep's
* words, `spans` the matches -o found on the line before it. Mirrors
* Python's SearchLimit.
*/
export declare class SearchLimit extends Error {
readonly spans: [number, number][];
constructor(message: string, spans: [number, number][]);
}
/**
* A pattern mirage-rs refused to compile. `message` is the refusal as the
* program words it, without its `prog: ` prefix (`Unmatched ( or \(`).
* Mirrors Python's RegexError.
*/
export declare class RegexError extends Error {
constructor(message: string);
}
//# sourceMappingURL=errors.d.ts.map