root_dir = "."
fallback_extensions = ["md"]
remap = ["kilo-docs/docs kilo-docs/pages"]

format = "detailed"
max_redirects = 2
max_retries = 3
retry_wait_time = 5
exclude_path = ["node_modules"]

accept = [
  "200",
  "202",
  "403",
  "429",
  "301",
  "307",
]

exclude = [
  '\.png$',
  'https://synthetic.new/user-settings/api',
  'https://platform.slack-edge.com/img/add_to_slack.png',
  'https://console.groq.com/pages/models',
  '^https?://([A-Za-z0-9-]+\.)?glama\.ai(/|$)',
  '^https?://(api|console)\.mistral\.ai',
  '^https?://codestral\.mistral\.ai/v1/fim/completions/?$',
  '^https?://api\.inceptionlabs\.ai/v1/fim/completions/?$',
  '^https?://(app|console)\.requesty\.ai',
  '^https?://(cloud|console)\.google\.ai',
  # API endpoint prefixes are valid but return 4xx to plain GET link checks.
  '^https?://ai-gateway\.vercel\.sh/v1/?$',
  '^https?://api\.voyageai\.com/v1/embeddings/?$',
  '^https?://inference\.do-ai\.run/v1/?$',
  '^https?://generativelanguage\.googleapis\.com/v1beta/openai/?$',
  '^https?://search\.parallel\.ai/mcp/?$',
  # xAI API and OAuth endpoints require request parameters or reject plain link checks.
  '^https?://api\.x\.ai/v1/?$',
  '^https?://accounts\.x\.ai/?$',
  '^https?://auth\.x\.ai/?$',
  '^https?://auth\.x\.ai/oauth2/(authorize|device/code|token)/?$',
  'https://opencode.ai/pages/config',
  '^localhost:3000/',
  'https://tbench.ai/',
  # GitHub URLs cause persistent HTTP/2 protocol errors when checked from GitHub Actions runners
  '^https?://github\.com/',
  # Redirects to login page, blocked by bots
  '^https?://vercel\.link/',
  # API base URL, returns 404 when fetched directly
  '^https?://api\.apertis\.ai/v1/?$',
  # Redirects to authenticated Google Cloud console
  '^https?://console\.cloud\.google\.com',
  # Consistently times out in CI
  '^https?://opncd\.ai',
  '^https?://zod\.dev/v4/changelog',
  # Example punycode domain used in homograph attack documentation — does not exist
  '^https?://xn--pitest',
  # OpenAI docs return 404 to plain GET link checks but resolve in browsers
  '^https?://platform\.openai\.com/docs/api-reference/responses/create',
]
