/**
 * GET /api/health/tools — array of external-tool checks (glab, gh, git, jq).
 *
 * Used by the Pipelines view to show a banner when something needed by a
 * built-in workflow is missing, with install instructions inline. See
 * lib/health.ts for the catalog and `[tools]` startup log lines.
 */

import { NextResponse } from 'next/server';
import { checkTools } from '@/lib/health';

export async function GET() {
  return NextResponse.json({ tools: checkTools() });
}
