CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-update-notifier

Update notifications for your CLI app

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This evaluation assesses how well the engineer implements TTY detection and environment-aware output control, using patterns demonstrated by the update-notifier package. Focus is on proper use of Node.js process.stdout.isTTY for terminal detection and correct stream handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "TTY Detection",
      "description": "Uses process.stdout.isTTY to check if the application is running in an interactive terminal environment",
      "max_score": 25
    },
    {
      "name": "Boolean Return",
      "description": "The isTTY() function correctly returns a boolean value based on process.stdout.isTTY",
      "max_score": 15
    },
    {
      "name": "Stderr Output",
      "description": "Writes status messages to process.stderr (not stdout) to follow Unix conventions for notifications",
      "max_score": 20
    },
    {
      "name": "TTY Suppression",
      "description": "Suppresses output when not in a TTY environment by checking process.stdout.isTTY before writing",
      "max_score": 20
    },
    {
      "name": "Output Feedback",
      "description": "The writeStatus() function returns true when a message is written, false when suppressed",
      "max_score": 10
    },
    {
      "name": "Correct Exports",
      "description": "Exports both isTTY and writeStatus functions as specified in the API",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-update-notifier

tile.json