or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses picocolors to implement manual color control via the createColors() function. The focus is on correctly using createColors() to override automatic color detection based on configuration, and properly applying the color functions returned by createColors() to format log messages.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses createColors function",
      "description": "The implementation imports and calls the createColors() function from picocolors to create a custom color instance based on the configuration setting",
      "max_score": 40
    },
    {
      "name": "Passes config to createColors",
      "description": "The boolean value from config.enableColors is correctly passed as the argument to createColors() to control whether colors are enabled or disabled",
      "max_score": 25
    },
    {
      "name": "Uses cyan color",
      "description": "The implementation uses the cyan() function from the created colors instance to format info-level log messages",
      "max_score": 10
    },
    {
      "name": "Uses yellow color",
      "description": "The implementation uses the yellow() function from the created colors instance to format warning-level log messages",
      "max_score": 10
    },
    {
      "name": "Uses red color",
      "description": "The implementation uses the red() function from the created colors instance to format error-level log messages",
      "max_score": 10
    },
    {
      "name": "No automatic detection",
      "description": "The implementation does not use the default picocolors import (which would use automatic color detection) but instead consistently uses the manually configured colors instance from createColors()",
      "max_score": 5
    }
  ]
}