@comake/skl-js-engine
Version:
Standard Knowledge Language Javascript Engine
27 lines (26 loc) • 767 B
TypeScript
/**
* Constants for JSExecutor configuration
*/
export declare const EXECUTION_CONSTANTS: {
readonly defaultTimeout: 5000;
readonly defaultFunctionName: "main";
readonly maxOutputLength: 500;
readonly denoCommand: "deno";
readonly denoFlags: readonly ["run", "--unstable-detect-cjs", "--quiet", "--unstable-sloppy-imports"];
readonly processSignals: {
readonly term: "SIGTERM";
};
};
/**
* Default execution options
*/
export declare const DEFAULT_EXECUTION_OPTIONS: {
readonly timeout: 5000;
readonly functionName: "main";
readonly allowNetwork: false;
readonly allowedDomains: readonly [];
readonly allowEnv: true;
readonly allowRead: false;
readonly debugMode: false;
readonly retries: 0;
};