@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
23 lines • 877 B
JavaScript
/** Temporary state of one evaluation; never part of a session record. */
export class ExecutionFrame {
diagnostics = [];
cmdsubSeq = 0;
cmdsubStatus = 0;
processSub = null;
// The cancel channel for work running under this evaluation: killing a
// background job aborts it, and the mount layer folds it into the signal
// handed to runtimes. fork() carries it so a job's whole subtree shares
// one channel. Python needs no equivalent: kill cancels the asyncio task
// and cancellation is ambient.
abortSignal = null;
lineTimeout = null;
fork() {
const child = new ExecutionFrame();
child.abortSignal = this.abortSignal;
child.lineTimeout = this.lineTimeout;
if (this.routing !== undefined)
child.routing = this.routing;
return child;
}
}
//# sourceMappingURL=frame.js.map