Versions in this module Expand all Collapse all v0 v0.2.4 Nov 12, 2026 v0.2.3 Nov 11, 2026 Changes in this version + const ModeContainer + const ModeHost + func CloseAllPersistentShells() + func CloseContainerShell(agentSessionID int64) + func ClosePersistentShell(sessionID int64) + func CloseShell(sessionID int64) + type ContainerShell struct + func GetContainerShell(svc ContainerShellService, agentSessionID, userID, projectID, templateID int64) *ContainerShell + func (s *ContainerShell) Exec(ctx context.Context, command string, timeoutMs int) (string, string, int, bool, error) + type ContainerShellService interface + Close func(ctx context.Context, terminalID int64) + Ensure func(ctx context.Context, userID, projectID, templateID, agentSessionID int64) (int64, error) + Exec func(ctx context.Context, terminalID int64, command string, timeoutSeconds int) (runtimecontext.ContainerTerminalExecResult, error) + type PersistentShell struct + func GetPersistentShell(sessionID int64, workingDir string) *PersistentShell + func (s *PersistentShell) Close(_ context.Context) + func (s *PersistentShell) Exec(ctx context.Context, command string, timeoutMs int) (string, string, int, bool, error) + type Shell interface + Exec func(ctx context.Context, command string, timeoutMs int) (stdout, stderr string, exitCode int, interrupted bool, err error) + func AcquireShell(options ShellOptions) Shell + type ShellOptions struct + Container ContainerShellService + Mode string + ProjectID int64 + SessionID int64 + TemplateID int64 + UserID int64 + WorkingDir string