import Foundation /// Read and write access needed by the port-forwarding feature. @Observable final class ForwardingLibraryModel { private let library: HostLibraryModel init(library: HostLibraryModel) { self.library = library } func portForwarding(_ id: PortForwardingRule.ID) -> PortForwardingRule? { library.portForwarding(id) } func routeSummary(for host: Host) -> String { library.routeSummary(for: host) } func sshCommand(for rule: PortForwardingRule, host: Host? = nil) -> String? { library.sshCommand(for: rule, host: host) } }