Skip to main content

Module limits

Module limits 

Source
Expand description

Native compatibility exports for shared VM-scoped runtime limits.

Structs§

AcpLimits
HttpLimits
JsRuntimeLimits
PluginLimits
PythonLimits
ToolLimits
VmLimits
All operator-tunable VM-scoped limits. Fields are concrete values; the Default impls own the numbers and equal today’s hardcoded constants, so unset operator config leaves behavior unchanged.
WasmLimits

Constants§

DEFAULT_ACP_MAX_READ_LINE_BYTES
DEFAULT_ACP_STDOUT_BUFFER_BYTE_LIMIT
DEFAULT_JS_CAPTURED_OUTPUT_LIMIT_BYTES
DEFAULT_JS_EVENT_PAYLOAD_LIMIT_BYTES
DEFAULT_JS_STDIN_BUFFER_LIMIT_BYTES
DEFAULT_MAX_FETCH_RESPONSE_BYTES
Default cap on vm.fetch() buffered response bodies. Historically aliased to the wire frame cap; decoupled here but still validated to stay within the negotiated frame budget.
DEFAULT_PYTHON_EXECUTION_TIMEOUT_MS
DEFAULT_PYTHON_MAX_OLD_SPACE_MB
0 keeps the Pyodide runner’s V8 old-space at the engine default.
DEFAULT_PYTHON_OUTPUT_BUFFER_MAX_BYTES
DEFAULT_PYTHON_VFS_RPC_TIMEOUT_MS
DEFAULT_TOOL_TIMEOUT_MS
DEFAULT_V8_HEAP_LIMIT_MB
DEFAULT_V8_IPC_MAX_FRAME_BYTES
DEFAULT_WASM_CAPTURED_OUTPUT_LIMIT_BYTES
DEFAULT_WASM_MAX_MODULE_FILE_BYTES
DEFAULT_WASM_SYNC_READ_LIMIT_BYTES
MAX_PERSISTED_MANIFEST_BYTES
MAX_PERSISTED_MANIFEST_FILE_BYTES
MAX_REGISTERED_TOOLKITS
MAX_REGISTERED_TOOLS_PER_VM
MAX_TOOLS_PER_TOOLKIT
MAX_TOOL_EXAMPLES_PER_TOOL
MAX_TOOL_EXAMPLE_INPUT_BYTES
MAX_TOOL_SCHEMA_BYTES
MAX_TOOL_TIMEOUT_MS

Functions§

validate_vm_limits
Cross-field validation. Fail-by-default: reject any configuration that would deadlock or violate the wire frame budget with an explicit, actionable message.
vm_limits_from_config