You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 🔄 **Automatic recovery** — sandbox rebuilds after failures
639
639
640
640
This makes it safe to execute untrusted, AI-generated code.
@@ -646,7 +646,7 @@ This makes it safe to execute untrusted, AI-generated code.
646
646
|`HYPERLIGHT_CPU_TIMEOUT_MS`|`1000`| Maximum CPU time per execution (milliseconds). The hypervisor hard-kills the guest when exceeded. |
647
647
|`HYPERLIGHT_WALL_TIMEOUT_MS`|`5000`| Maximum wall-clock time per execution (milliseconds). Backstop for edge cases where CPU time alone doesn't catch the issue. |
648
648
|`HYPERLIGHT_HEAP_SIZE_MB`|`16`| Guest heap size in megabytes. Increase for memory-heavy computations (large arrays, BigInt work). |
649
-
|`HYPERLIGHT_STACK_SIZE_MB`|`1`| Guest stack size in megabytes. Increase for deeply recursive algorithms. |
649
+
|`HYPERLIGHT_SCRATCH_SIZE_MB`|`1`| Guest scratch size in megabytes. Increase for deeply recursive algorithms. |
650
650
|`HYPERLIGHT_TIMING_LOG`| — | Path to a file. When set, the server appends one JSON line per tool call with a timing breakdown (init, setup, compile, snapshot, execute, total). Used by the demo script to show model vs. tool time. |
651
651
|`HYPERLIGHT_CODE_LOG`| — | Path to a file. When set, the server writes the received JavaScript source code on each tool call. Used by the demo script's `--show-code` flag. |
652
652
@@ -700,7 +700,7 @@ The code exceeded the CPU time limit (default: 1000ms). Options:
700
700
701
701
Check that:
702
702
703
-
1. Node.js >= 18 is installed
703
+
1. Node.js >= 20 is installed
704
704
2. The native module is built (`ls src/js-host-api/js-host-api.*.node`)
705
705
3. Dependencies are installed (`cd examples/mcp-server && npm install`)
info "Sandbox limits: CPU ${BOLD}${CPU_TIMEOUT}ms${RESET}, wall ${BOLD}${WALL_TIMEOUT}ms${RESET}, heap ${BOLD}${HEAP_SIZE}MB${RESET}, stack${BOLD}${STACK_SIZE}MB${RESET}"
635
+
info "Sandbox limits: CPU ${BOLD}${CPU_TIMEOUT}ms${RESET}, wall ${BOLD}${WALL_TIMEOUT}ms${RESET}, heap ${BOLD}${HEAP_SIZE}MB${RESET}, scratch${BOLD}${SCRATCH_SIZE}MB${RESET}"
0 commit comments