MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / constructor

Method constructor

src/engine.ts:264–283  ·  view source on GitHub ↗
(params: {
    engine: string;
    bin: string;
    stderr: string;
    killed: boolean;
    code: number | null;
    signal: NodeJS.Signals | null;
    reason: 'timeout' | 'maxbuffer' | 'exit' | 'spawn';
    message: string;
  })

Source from the content-addressed store, hash-verified

262 readonly reason: 'timeout' | 'maxbuffer' | 'exit' | 'spawn';
263
264 constructor(params: {
265 engine: string;
266 bin: string;
267 stderr: string;
268 killed: boolean;
269 code: number | null;
270 signal: NodeJS.Signals | null;
271 reason: 'timeout' | 'maxbuffer' | 'exit' | 'spawn';
272 message: string;
273 }) {
274 super(params.message);
275 this.name = 'EngineInvocationError';
276 this.engine = params.engine;
277 this.bin = params.bin;
278 this.stderr = params.stderr;
279 this.killed = params.killed;
280 this.code = params.code;
281 this.signal = params.signal;
282 this.reason = params.reason;
283 }
284}
285
286const DEFAULT_TIMEOUT = 120_000;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected