/// Wire-level constants shared with the server (frozen contract, plan §3.1).
public enum WireConstants {
    /// WS endpoint path (src/config.ts:41 `DEFAULT_WS_PATH`).
    public static let wsPath = "/term"

    /// Soft-reset prefix the server prepends to ring-buffer replay as a safety
    /// net (src/types.ts:167-170 / M2). Clients may use it to recognise the
    /// replay boundary; never strip it — it is valid ANSI for the terminal.
    public static let replaySoftResetPrefix = "\u{1B}[0m"

    /// `exit.code` value meaning the PTY spawn never succeeded (M4);
    /// `exit.reason` is required server-side in that case. Not a retryable state.
    public static let spawnFailedExitCode = -1

    /// Valid `resize` cols/rows range, inclusive (src/protocol.ts:113-115).
    public static let resizeRange: ClosedRange<Int> = 1...1000
}
