or run

npx @tessl/cli init
Log in

Version

Files

docs

advanced-colors.mdbackground-colors.mdbasic-colors.mdcolor-support.mdconfiguration.mdindex.mdtext-styling.md
tile.json

rubric.jsonevals/scenario-2/

{
  "context": "Evaluates whether the solution leans on Chalk's built-in stream-aware color detection and override handling to produce the report and styled sample output for stdout and stderr. Confirms that Chalk APIs drive both the level decisions and the rendering rather than custom ANSI handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Stdout detection",
      "description": "Computes stdout support by using `chalk.supportsColor` (or a `new Chalk().supportsColor`) and its `level` data instead of reimplementing detection logic.",
      "max_score": 30
    },
    {
      "name": "Stderr detection",
      "description": "Uses Chalk's stderr-specific support (`chalkStderr.supportsColor` or `supportsColorStderr`) to determine the stderr level rather than reusing stdout or custom heuristics.",
      "max_score": 25
    },
    {
      "name": "Flag/env overrides",
      "description": "Relies on Chalk's parsing of `--color` / `--no-color` / `--color=256` / `--color=16m` flags and `FORCE_COLOR` env to set support levels (with flags taking priority over env) instead of hand-rolling override handling.",
      "max_score": 25
    },
    {
      "name": "Chalk styling",
      "description": "Generates the sample line with Chalk styling (e.g., `chalk.green`, `chalk.rgb`, or a `Chalk` instance with the detected `level`) and omits ANSI codes when the resolved level is 0.",
      "max_score": 20
    }
  ]
}