Expand description
PTY-backed reusable interactive shell sessions. PTY-backed shell sessions for reusable agent execution and interactive terminals.
This module manages two related session types:
- automation sessions used by the agent for reusable shell execution
- interactive sessions used by the GUI terminal manager for real typing
Structs§
- Shell
Execution Options - Execution policy for PTY-backed shell commands.
- Shell
Session Handle - Public summary for a managed PTY shell session.
- Shell
Session Metadata - Public metadata for a managed PTY shell session.
Functions§
- claim_
session - Claim a PTY shell session for direct user management.
- create_
session - Start a long-lived interactive PTY shell session immediately.
- describe_
session - Describe a PTY shell session for frontend/UI enrichment.
- execute_
in_ session - Execute a shell command inside a reusable PTY-backed session.
- execute_
in_ session_ with_ options - Execute a shell command inside a reusable PTY-backed session with an explicit policy.
- resize_
session - Resize a PTY shell session to the given column and row dimensions.
- send_
input - Send raw input bytes to a PTY shell session.
- shutdown_
session - Shut down all PTY-backed shell sessions associated with a pool key.
- stop_
process - Stop an active PTY-managed command by its command run id.
- stop_
session - Stop and remove a long-lived PTY shell session.
- subscribe_
session - Subscribe to lifecycle/output events for an existing PTY shell session.