Module TerminalStateDTO

Module TerminalStateDTO 

Source
Expand description

§TerminalStateDTO

§RESPONSIBILITY

  • Data transfer object for integrated terminal state
  • Serializable format for gRPC/IPC transmission
  • Used by Mountain to track terminal lifecycle and configuration
  • Contains runtime handles for PTY I/O

§FIELDS

  • Identifier: Unique terminal identifier
  • Name: Terminal display name
  • OSProcessIdentifier: OS process ID
  • ShellPath: Shell executable path
  • ShellArguments: Shell launch arguments
  • CurrentWorkingDirectory: Working directory path
  • EnvironmentVariables: Environment variable map
  • IsPTY: PTY mode flag
  • PTYInputTransmitter: PTY input channel sender
  • ReaderTaskHandle: Output reader task handle
  • ProcessWaitHandle: Process wait task handle

Structs§

TerminalStateDTO
Holds the complete state and runtime resources for a single pseudo-terminal (PTY) instance. This includes configuration, process identifiers, and handles for I/O tasks.

Constants§

MAX_ARGUMENT_LENGTH 🔒
Maximum argument string length
MAX_ENV_VARS 🔒
Maximum number of environment variables
MAX_SHELL_ARGUMENTS 🔒
Maximum number of shell arguments
MAX_SHELL_PATH_LENGTH 🔒
Maximum shell path length
MAX_TERMINAL_NAME_LENGTH 🔒
Maximum terminal name length