Module shell

Source
Expand description

Pure shell prompt, process, command-history, and integration-event state.

Structs§

CommandExecution
Serializable lifecycle snapshot for one shell command.
CommandId
Shell-state-local command identity.
CommandOutputRange
Inclusive global terminal line range for command output.
PromptDetector
Stateless conservative detector for common visible shell prompt suffixes.
ShellExecutionState
Mutable pure state for shell integration and heuristic prompt tracking.
TerminalShellSnapshot
Cloned read model of current shell execution state.

Enums§

CommandStatus
Lifecycle outcome of one tracked command.
ShellEvent
Ordered shell-state change emitted for host/UI consumers.
ShellKind
Supported shell family for integration-script selection.
TerminalProcessStatus
Coarse lifecycle of the shell/PTY process.

Constants§

DEFAULT_COMMAND_HISTORY_LIMIT
Default maximum of 1,000 finished commands retained in shell history.

Functions§

shell_integration_script
Returns the built-in static shell-integration script for a known shell.