docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This evaluation assesses how effectively the engineer uses picocolors package features to implement environment-based color control. The focus is on proper usage of picocolors' environment variable detection, color functions, and manual configuration capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "isColorSupported usage",
"description": "Uses picocolors' isColorSupported property to detect automatic color support based on environment variables (NO_COLOR, FORCE_COLOR, CI, TERM)",
"max_score": 20
},
{
"name": "createColors() function",
"description": "Uses picocolors' createColors(enabled) function to manually override color support for custom configuration or testing purposes",
"max_score": 25
},
{
"name": "Color functions",
"description": "Uses appropriate picocolors color functions (cyan, green, yellow, red) for the different log levels (info, success, warning, error)",
"max_score": 20
},
{
"name": "Environment variable handling",
"description": "Solution correctly handles NO_COLOR, FORCE_COLOR, CI, and TERM environment variables through picocolors' automatic detection rather than manually checking environment variables",
"max_score": 25
},
{
"name": "Package import",
"description": "Correctly imports picocolors package using require() or ES6 import syntax and accesses its exported members",
"max_score": 10
}
]
}