Expand description
Process execution & management methods + supporting types.
Ported from packages/core/src/agent-os.ts (process methods) and runtime-compat.ts
(ExecOptions, ExecResult, ProcessInfo, etc.).
Two distinct process views: SDK-spawned processes (processes map, keyed by user-facing pid)
back spawn + the stdin/stdout/stderr/exit subscriptions + wait/list/get/stop/kill; the kernel
process table backs exec, all_processes, process_tree.
Structs§
- Exec
Options - Base options shared by
execandspawn. - Exec
Result - Result of
exec. - Process
Exit - Process
Info - Full kernel process info (TS
KernelProcessInfo). - Process
Output - Process
Tree Node - A node in the process forest (
ProcessInfo+ children). - Spawn
Handle - The pid returned by
spawn. - Spawn
Options - Callback-free options for portable
spawn. - Spawned
Process Info - Public JSON info for SDK-spawned processes.
Enums§
- Process
Status - Process status from the kernel process table.
- Process
Stream - Spawn
Stdio stdiomode for a spawn.- Stdin
Input stdinvalue: a string or raw bytes.- Timing
Mitigation - Timing-mitigation mode for an execution.
Type Aliases§
- Output
Callback - A raw-byte streaming callback for stdout/stderr (TS
(data: Uint8Array) => void). Invoked once per output chunk as it arrives. Never assume UTF-8: chunks are delivered as raw bytes.