// src/defaults.ts
var DEFAULT_SESSION_HOST_COLS = 80;
var DEFAULT_SESSION_HOST_ROWS = 32;
function normalizeSessionHostDimension(value, fallback) {
  if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
  const rounded = Math.floor(value);
  return rounded > 0 ? rounded : fallback;
}
function resolveSessionHostCols(value) {
  return normalizeSessionHostDimension(value, DEFAULT_SESSION_HOST_COLS);
}
function resolveSessionHostRows(value) {
  return normalizeSessionHostDimension(value, DEFAULT_SESSION_HOST_ROWS);
}
export {
  DEFAULT_SESSION_HOST_COLS,
  DEFAULT_SESSION_HOST_ROWS,
  resolveSessionHostCols,
  resolveSessionHostRows
};
//# sourceMappingURL=defaults.mjs.map