SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter
Overall
score
96%
{
"context": "This criteria evaluates how well the engineer uses @sveltejs/adapter-auto to implement environment detection and graceful fallback handling. The focus is on understanding and utilizing the adapter's built-in capabilities for automatic environment detection and how it handles unsupported environments.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Adapter Import",
"description": "Correctly imports the default export from @sveltejs/adapter-auto package",
"max_score": 10
},
{
"name": "Environment Detection",
"description": "Uses the adapter's automatic environment detection mechanism by calling the imported adapter function without hardcoding environment checks",
"max_score": 25
},
{
"name": "Builder Integration",
"description": "Properly implements the adapt() method that accepts a builder parameter and delegates to the adapter, following the SvelteKit Adapter interface pattern",
"max_score": 20
},
{
"name": "Fallback Warning",
"description": "Leverages the adapter's built-in logging mechanism (builder.log.warn or similar) to output warnings when no environment is detected",
"max_score": 15
},
{
"name": "Documentation Reference",
"description": "Includes a reference to documentation links in the fallback message, consistent with how adapter-auto provides guidance",
"max_score": 10
},
{
"name": "Non-Failing Behavior",
"description": "Ensures the adapter does not throw errors or reject promises when no environment is detected, allowing the build to continue gracefully",
"max_score": 15
},
{
"name": "Return Value",
"description": "Returns a properly structured adapter object with name and adapt properties that conform to the SvelteKit Adapter interface",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-sveltejs--adapter-autodocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10