Optionaloptions: NodeKernelHostOptionsDestroy the kernel and release all resources
Snapshot the kernel's process table — one row per live process. Used
by Kandelo's Inspector → Procs tab. Mirrors BrowserKernel.enumProcs.
Send an HTTP request to a server running inside the kernel and return the parsed response. Bypasses real TCP by using the kernel's injected connection path directly. Prototype API.
The in-kernel server must already be listening on port. Each call
opens a fresh injected connection.
Optionaloptions: { timeoutMs?: number }Read the kernel's per-process fork counter. Used by the spawn
regression tests to assert a SYS_SPAWN call didn't fall back to
fork — getForkCount(parent) should return the same value before
and after a posix_spawn.
Returns u64::MAX (as bigint) if the pid does not exist; callers
should compare against an explicit before-value.
Initialize the kernel by spawning a dedicated worker_thread
OptionalkernelWasmBytes: ArrayBufferResize the PTY for a process
Write data to the PTY master for a process
Read /proc/[pid]/maps for a foreign process. Returns the raw text
(one line per mapping), "" if the process has no mappings, or
null if the pid is gone.
Set a process's stdin data (complete buffer with implicit EOF)
Spawn a new process. Returns a promise that resolves with the exit code.
Optionaloptions: SpawnOptionsSubscribe to the kernel-worker's syscall trace. Returns an
unsubscribe function. Mirrors BrowserKernel.subscribeSyscalls.
Terminate a specific process
Append data to a process's stdin buffer (process sees more data, no EOF)