CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sveltejs--adapter-auto

SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer understands and implements the automatic environment detection mechanism used by @sveltejs/adapter-auto. The focus is on correctly implementing the detection order, environment variable checks, and adapter mapping that mirrors the package's behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Detection order",
      "description": "Checks environment variables in the correct precedence order: Vercel first, then Cloudflare Pages, then Netlify, then Google Cloud Run",
      "max_score": 30
    },
    {
      "name": "Environment variable checks",
      "description": "Correctly checks for the existence of specific environment variables (VERCEL, CF_PAGES, NETLIFY, GCP_BUILDPACKS) without requiring specific values",
      "max_score": 25
    },
    {
      "name": "Adapter mapping",
      "description": "Maps detected platforms to the correct adapter package names (@sveltejs/adapter-vercel, @sveltejs/adapter-cloudflare, @sveltejs/adapter-netlify, @sveltejs/adapter-node)",
      "max_score": 25
    },
    {
      "name": "Unknown platform handling",
      "description": "Returns the correct fallback structure {platform: 'unknown', adapter: null} when no known environment is detected",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sveltejs--adapter-auto

tile.json