Add SSH-authenticated transports with independent settings, protocol-aware menus and snippets, and tmux session persistence. Restore eligible iOS workspaces from encrypted transport checkpoints without adding a macOS recovery entry. Include schema migrations and regression coverage.
22 lines
1023 B
Swift
22 lines
1023 B
Swift
import Foundation
|
|
|
|
public nonisolated enum TerminalTransportError: LocalizedError, Sendable {
|
|
case invalidCheckpoint, unsupportedRoute, bootstrapFailed, unreachable, sessionFailed, suspended
|
|
public var errorDescription: String? {
|
|
switch self {
|
|
case .invalidCheckpoint:
|
|
String(localized: "The saved terminal session cannot be restored.")
|
|
case .unsupportedRoute:
|
|
String(localized: "This terminal transport is unavailable for this connection.")
|
|
case .bootstrapFailed:
|
|
String(localized: "Unable to start the terminal server. Check that it is installed on the host.")
|
|
case .unreachable:
|
|
String(localized: "The terminal server did not respond. Check the transport port and firewall.")
|
|
case .sessionFailed:
|
|
String(localized: "The terminal session cannot continue. Open a new session to connect again.")
|
|
case .suspended:
|
|
String(localized: "The terminal session is suspended.")
|
|
}
|
|
}
|
|
}
|