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-1/

{
  "context": "This criteria evaluates how well the engineer applies @sveltejs/adapter-auto's error recovery and user guidance patterns, including environment detection logic, package manager detection, error message formatting, and providing actionable guidance to developers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Environment detection pattern",
      "description": "Uses environment variable checking pattern similar to @sveltejs/adapter-auto's adapter detection (checking process.env for specific variables, sequential checking logic). Should implement the detectEnvironment() function using environment variable detection.",
      "max_score": 20
    },
    {
      "name": "Package manager detection",
      "description": "Implements lockfile detection pattern from @sveltejs/adapter-auto (detect_lockfile and detect_package_manager functions) to identify npm, pnpm, or yarn by checking for package-lock.json, pnpm-lock.yaml, and yarn.lock files. Should implement getInstallCommand() using this pattern.",
      "max_score": 25
    },
    {
      "name": "Error message clarity",
      "description": "Provides clear, actionable error messages following @sveltejs/adapter-auto's error handling patterns. Error messages should explain what went wrong and provide specific guidance (e.g., listing valid options, showing correct file paths, or providing installation commands).",
      "max_score": 20
    },
    {
      "name": "Warning for unsupported scenarios",
      "description": "Implements warning system similar to @sveltejs/adapter-auto's fallback handling when no environment is detected or when conflicts occur. Should log warnings with helpful guidance rather than failing silently.",
      "max_score": 15
    },
    {
      "name": "Validation error handling",
      "description": "Implements validateEnvironment() function that checks for invalid configurations, unsupported platforms, and conflicting settings, following @sveltejs/adapter-auto's validation patterns. Should return structured error/warning objects.",
      "max_score": 15
    },
    {
      "name": "Installation guidance format",
      "description": "Formats installation commands appropriately based on detected package manager (npm install -D, pnpm add -D, yarn add -D), matching @sveltejs/adapter-auto's installation command templates.",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json