// src/constants.ts
var GIT_SUMMARY_PREVIEW_LENGTH = 500;
var SYSTEM_PROMPT_PREVIEW_LENGTH = 500;
var USER_PROMPT_PREVIEW_LENGTH = 1e3;
var CONTENT_PREVIEW_LENGTH = 200;
var DISCOVERY_CONTENT_TRUNCATION_LENGTH = 60;
var ISSUE_TITLE_TRUNCATION_LENGTH = 40;
var ISSUE_TITLE_TRUNCATED_TEXT_LENGTH = 37;
var FLOW_REPORT_TITLE_COLUMN_WIDTH = 25;
var WU_ID_COLUMN_WIDTH = 8;
var LANE_COLUMN_WIDTH = 15;
var CLEANUP_LIST_DISPLAY_LIMIT = 10;
var FLOW_REPORT_WU_DISPLAY_LIMIT = 10;
var TOP_ISSUES_DISPLAY_LIMIT = 5;
var RECENT_ISSUES_DISPLAY_LIMIT = 5;
var GATE_NAME_COLUMN_WIDTH = 20;
var SEVERITY_PADDING_WIDTH = 10;
var CATEGORY_PADDING_WIDTH = 20;
var GIT_CONTEXT_MAX_TOKENS = 500;
var LOG_TAIL_MAX_LINES = 40;
var LOG_TAIL_MAX_BYTES = 64 * 1024;
var ONE_DECIMAL_ROUNDING_FACTOR = 10;
var JSON_INDENT = 2;
var BYTES_PER_KB = 1024;
function formatBytes(bytes) {
  if (bytes < BYTES_PER_KB) {
    return `${bytes} B`;
  }
  const kb = (bytes / BYTES_PER_KB).toFixed(1);
  return `${kb} KB`;
}

export {
  GIT_SUMMARY_PREVIEW_LENGTH,
  SYSTEM_PROMPT_PREVIEW_LENGTH,
  USER_PROMPT_PREVIEW_LENGTH,
  CONTENT_PREVIEW_LENGTH,
  DISCOVERY_CONTENT_TRUNCATION_LENGTH,
  ISSUE_TITLE_TRUNCATION_LENGTH,
  ISSUE_TITLE_TRUNCATED_TEXT_LENGTH,
  FLOW_REPORT_TITLE_COLUMN_WIDTH,
  WU_ID_COLUMN_WIDTH,
  LANE_COLUMN_WIDTH,
  CLEANUP_LIST_DISPLAY_LIMIT,
  FLOW_REPORT_WU_DISPLAY_LIMIT,
  TOP_ISSUES_DISPLAY_LIMIT,
  RECENT_ISSUES_DISPLAY_LIMIT,
  GATE_NAME_COLUMN_WIDTH,
  SEVERITY_PADDING_WIDTH,
  CATEGORY_PADDING_WIDTH,
  GIT_CONTEXT_MAX_TOKENS,
  LOG_TAIL_MAX_LINES,
  LOG_TAIL_MAX_BYTES,
  ONE_DECIMAL_ROUNDING_FACTOR,
  JSON_INDENT,
  formatBytes
};
