PtyConnectOptions
Options for connecting to a PTY session
Properties:
-
onData()
(data: Uint8Array) => void | Promise<void> - Callback to handle PTY output dataParameters:
data
Uint8Array
Returns
void
|Promise<void>
PtyCreateOptions
Options for creating a PTY session
Properties:
cols?
number - Number of terminal columnscwd?
string - Starting directory for the PTY session, defaults to the sandbox’s working directoryenvs?
Record<string, string> - Environment variables for the PTY sessionid
string - The unique identifier for the PTY sessionrows?
number - Number of terminal rows
PtyResult
PTY session result on exit
Properties:
error?
string - Error message if the PTY failedexitCode?
number - Exit code when the PTY process ends